1//! moment.js 2//! version : 2.7.0 3//! authors : Tim Wood, Iskren Chernev, Moment.js contributors 4//! license : MIT 5//! momentjs.com 6 7(function (undefined) { 8 9 /************************************ 10 Constants 11 ************************************/ 12 13 var moment, 14 VERSION = "2.7.0", 15 // the global-scope this is NOT the global object in Node.js 16 globalScope = typeof global !== 'undefined' ? global : this, 17 oldGlobalMoment, 18 round = Math.round, 19 i, 20 21 YEAR = 0, 22 MONTH = 1, 23 DATE = 2, 24 HOUR = 3, 25 MINUTE = 4, 26 SECOND = 5, 27 MILLISECOND = 6, 28 29 // internal storage for language config files 30 languages = {}, 31 32 // moment internal properties 33 momentProperties = { 34 _isAMomentObject: null, 35 _i : null, 36 _f : null, 37 _l : null, 38 _strict : null, 39 _tzm : null, 40 _isUTC : null, 41 _offset : null, // optional. Combine with _isUTC 42 _pf : null, 43 _lang : null // optional 44 }, 45 46 // check for nodeJS 47 hasModule = (typeof module !== 'undefined' && module.exports), 48 49 // ASP.NET json date format regex 50 aspNetJsonRegex = /^\/?Date\((\-?\d+)/i, 51 aspNetTimeSpanJsonRegex = /(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/, 52 53 // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html 54 // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere 55 isoDurationRegex = /^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/, 56 57 // format tokens 58 formattingTokens = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g, 59 localFormattingTokens = /(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g, 60 61 // parsing token regexes 62 parseTokenOneOrTwoDigits = /\d\d?/, // 0 - 99 63 parseTokenOneToThreeDigits = /\d{1,3}/, // 0 - 999 64 parseTokenOneToFourDigits = /\d{1,4}/, // 0 - 9999 65 parseTokenOneToSixDigits = /[+\-]?\d{1,6}/, // -999,999 - 999,999 66 parseTokenDigits = /\d+/, // nonzero number of digits 67 parseTokenWord = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i, // any word (or two) characters or numbers including two/three word month in arabic. 68 parseTokenTimezone = /Z|[\+\-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z 69 parseTokenT = /T/i, // T (ISO separator) 70 parseTokenTimestampMs = /[\+\-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123 71 parseTokenOrdinal = /\d{1,2}/, 72 73 //strict parsing regexes 74 parseTokenOneDigit = /\d/, // 0 - 9 75 parseTokenTwoDigits = /\d\d/, // 00 - 99 76 parseTokenThreeDigits = /\d{3}/, // 000 - 999 77 parseTokenFourDigits = /\d{4}/, // 0000 - 9999 78 parseTokenSixDigits = /[+-]?\d{6}/, // -999,999 - 999,999 79 parseTokenSignedNumber = /[+-]?\d+/, // -inf - inf 80 81 // iso 8601 regex 82 // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00) 83 isoRegex = /^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/, 84 85 isoFormat = 'YYYY-MM-DDTHH:mm:ssZ', 86 87 isoDates = [ 88 ['YYYYYY-MM-DD', /[+-]\d{6}-\d{2}-\d{2}/], 89 ['YYYY-MM-DD', /\d{4}-\d{2}-\d{2}/], 90 ['GGGG-[W]WW-E', /\d{4}-W\d{2}-\d/], 91 ['GGGG-[W]WW', /\d{4}-W\d{2}/], 92 ['YYYY-DDD', /\d{4}-\d{3}/] 93 ], 94 95 // iso time formats and regexes 96 isoTimes = [ 97 ['HH:mm:ss.SSSS', /(T| )\d\d:\d\d:\d\d\.\d+/], 98 ['HH:mm:ss', /(T| )\d\d:\d\d:\d\d/], 99 ['HH:mm', /(T| )\d\d:\d\d/], 100 ['HH', /(T| )\d\d/] 101 ], 102 103 // timezone chunker "+10:00" > ["10", "00"] or "-1530" > ["-15", "30"] 104 parseTimezoneChunker = /([\+\-]|\d\d)/gi, 105 106 // getter and setter names 107 proxyGettersAndSetters = 'Date|Hours|Minutes|Seconds|Milliseconds'.split('|'), 108 unitMillisecondFactors = { 109 'Milliseconds' : 1, 110 'Seconds' : 1e3, 111 'Minutes' : 6e4, 112 'Hours' : 36e5, 113 'Days' : 864e5, 114 'Months' : 2592e6, 115 'Years' : 31536e6 116 }, 117 118 unitAliases = { 119 ms : 'millisecond', 120 s : 'second', 121 m : 'minute', 122 h : 'hour', 123 d : 'day', 124 D : 'date', 125 w : 'week', 126 W : 'isoWeek', 127 M : 'month', 128 Q : 'quarter', 129 y : 'year', 130 DDD : 'dayOfYear', 131 e : 'weekday', 132 E : 'isoWeekday', 133 gg: 'weekYear', 134 GG: 'isoWeekYear' 135 }, 136 137 camelFunctions = { 138 dayofyear : 'dayOfYear', 139 isoweekday : 'isoWeekday', 140 isoweek : 'isoWeek', 141 weekyear : 'weekYear', 142 isoweekyear : 'isoWeekYear' 143 }, 144 145 // format function strings 146 formatFunctions = {}, 147 148 // default relative time thresholds 149 relativeTimeThresholds = { 150 s: 45, //seconds to minutes 151 m: 45, //minutes to hours 152 h: 22, //hours to days 153 dd: 25, //days to month (month == 1) 154 dm: 45, //days to months (months > 1) 155 dy: 345 //days to year 156 }, 157 158 // tokens to ordinalize and pad 159 ordinalizeTokens = 'DDD w W M D d'.split(' '), 160 paddedTokens = 'M D H h m s w W'.split(' '), 161 162 formatTokenFunctions = { 163 M : function () { 164 return this.month() + 1; 165 }, 166 MMM : function (format) { 167 return this.lang().monthsShort(this, format); 168 }, 169 MMMM : function (format) { 170 return this.lang().months(this, format); 171 }, 172 D : function () { 173 return this.date(); 174 }, 175 DDD : function () { 176 return this.dayOfYear(); 177 }, 178 d : function () { 179 return this.day(); 180 }, 181 dd : function (format) { 182 return this.lang().weekdaysMin(this, format); 183 }, 184 ddd : function (format) { 185 return this.lang().weekdaysShort(this, format); 186 }, 187 dddd : function (format) { 188 return this.lang().weekdays(this, format); 189 }, 190 w : function () { 191 return this.week(); 192 }, 193 W : function () { 194 return this.isoWeek(); 195 }, 196 YY : function () { 197 return leftZeroFill(this.year() % 100, 2); 198 }, 199 YYYY : function () { 200 return leftZeroFill(this.year(), 4); 201 }, 202 YYYYY : function () { 203 return leftZeroFill(this.year(), 5); 204 }, 205 YYYYYY : function () { 206 var y = this.year(), sign = y >= 0 ? '+' : '-';
207 return sign + leftZeroFill(Math.abs(y), 6); 208 }, 209 gg : function () { 210 return leftZeroFill(this.weekYear() % 100, 2); 211 }, 212 gggg : function () { 213 return leftZeroFill(this.weekYear(), 4); 214 }, 215 ggggg : function () { 216 return leftZeroFill(this.weekYear(), 5); 217 }, 218 GG : function () { 219 return leftZeroFill(this.isoWeekYear() % 100, 2); 220 }, 221 GGGG : function () { 222 return leftZeroFill(this.isoWeekYear(), 4); 223 }, 224 GGGGG : function () { 225 return leftZeroFill(this.isoWeekYear(), 5); 226 }, 227 e : function () { 228 return this.weekday(); 229 }, 230 E : function () { 231 return this.isoWeekday(); 232 }, 233 a : function () { 234 return this.lang().meridiem(this.hours(), this.minutes(), true); 235 }, 236 A : function () { 237 return this.lang().meridiem(this.hours(), this.minutes(), false); 238 }, 239 H : function () { 240 return this.hours(); 241 }, 242 h : function () { 243 return this.hours() % 12 || 12; 244 }, 245 m : function () { 246 return this.minutes(); 247 }, 248 s : function () { 249 return this.seconds(); 250 }, 251 S : function () { 252 return toInt(this.milliseconds() / 100); 253 }, 254 SS : function () { 255 return leftZeroFill(toInt(this.milliseconds() / 10), 2); 256 }, 257 SSS : function () { 258 return leftZeroFill(this.milliseconds(), 3); 259 }, 260 SSSS : function () { 261 return leftZeroFill(this.milliseconds(), 3); 262 }, 263 Z : function () { 264 var a = -this.zone(), 265 b = "+"; 266 if (a < 0) { 267 a = -a; 268 b = "-"; 269 } 270 return b + leftZeroFill(toInt(a / 60), 2) + ":" + leftZeroFill(toInt(a) % 60, 2); 271 }, 272 ZZ : function () { 273 var a = -this.zone(), 274 b = "+"; 275 if (a < 0) { 276 a = -a; 277 b = "-"; 278 } 279 return b + leftZeroFill(toInt(a / 60), 2) + leftZeroFill(toInt(a) % 60, 2); 280 }, 281 z : function () { 282 return this.zoneAbbr(); 283 }, 284 zz : function () { 285 return this.zoneName(); 286 }, 287 X : function () { 288 return this.unix(); 289 }, 290 Q : function () { 291 return this.quarter(); 292 } 293 }, 294 295 lists = ['months', 'monthsShort', 'weekdays', 'weekdaysShort', 'weekdaysMin']; 296 297 // Pick the first defined of two or three arguments. dfl comes from 298 // default. 299 function dfl(a, b, c) { 300 switch (arguments.length) { 301 case 2: return a != null ? a : b; 302 case 3: return a != null ? a : b != null ? b : c; 303 default: throw new Error("Implement me"); 304 } 305 } 306 307 function defaultParsingFlags() { 308 // We need to deep clone this object, and es5 standard is not very 309 // helpful. 310 return { 311 empty : false, 312 unusedTokens : [], 313 unusedInput : [], 314 overflow : -2, 315 charsLeftOver : 0, 316 nullInput : false, 317 invalidMonth : null, 318 invalidFormat : false, 319 userInvalidated : false, 320 iso: false 321 }; 322 } 323 324 function deprecate(msg, fn) { 325 var firstTime = true; 326 function printMsg() { 327 if (moment.suppressDeprecationWarnings === false && 328 typeof console !== 'undefined' && console.warn) { 329 console.warn("Deprecation warning: " + msg); 330 } 331 } 332 return extend(function () { 333 if (firstTime) { 334 printMsg(); 335 firstTime = false;
336 } 337 return fn.apply(this, arguments); 338 }, fn); 339 } 340 341 function padToken(func, count) { 342 return function (a) { 343 return leftZeroFill(func.call(this, a), count); 344 }; 345 } 346 function ordinalizeToken(func, period) { 347 return function (a) { 348 return this.lang().ordinal(func.call(this, a), period); 349 }; 350 } 351 352 while (ordinalizeTokens.length) { 353 i = ordinalizeTokens.pop(); 354 formatTokenFunctions[i + 'o'] = ordinalizeToken(formatTokenFunctions[i], i); 355 } 356 while (paddedTokens.length) { 357 i = paddedTokens.pop(); 358 formatTokenFunctions[i + i] = padToken(formatTokenFunctions[i], 2); 359 } 360 formatTokenFunctions.DDDD = padToken(formatTokenFunctions.DDD, 3); 361 362 363 /************************************ 364 Constructors 365 ************************************/ 366 367 function Language() { 368 369 } 370 371 // Moment prototype object 372 function Moment(config) { 373 checkOverflow(config); 374 extend(this, config); 375 } 376 377 // Duration Constructor 378 function Duration(duration) { 379 var normalizedInput = normalizeObjectUnits(duration), 380 years = normalizedInput.year || 0, 381 quarters = normalizedInput.quarter || 0, 382 months = normalizedInput.month || 0, 383 weeks = normalizedInput.week || 0, 384 days = normalizedInput.day || 0, 385 hours = normalizedInput.hour || 0, 386 minutes = normalizedInput.minute || 0, 387 seconds = normalizedInput.second || 0, 388 milliseconds = normalizedInput.millisecond || 0; 389 390 // representation for dateAddRemove 391 this._milliseconds = +milliseconds + 392 seconds * 1e3 + // 1000 393 minutes * 6e4 + // 1000 * 60 394 hours * 36e5; // 1000 * 60 * 60 395 // Because of dateAddRemove treats 24 hours as different from a 396 // day when working around DST, we need to store them separately 397 this._days = +days + 398 weeks * 7; 399 // It is impossible translate months into days without knowing 400 // which months you are are talking about, so we have to store 401 // it separately. 402 this._months = +months + 403 quarters * 3 + 404 years * 12; 405 406 this._data = {}; 407 408 this._bubble(); 409 } 410 411 /************************************ 412 Helpers 413 ************************************/ 414 415 416 function extend(a, b) { 417 for (var i in b) { 418 if (b.hasOwnProperty(i)) { 419 a[i] = b[i]; 420 } 421 } 422 423 if (b.hasOwnProperty("toString")) { 424 a.toString = b.toString; 425 } 426 427 if (b.hasOwnProperty("valueOf")) { 428 a.valueOf = b.valueOf; 429 } 430 431 return a; 432 } 433 434 function cloneMoment(m) { 435 var result = {}, i; 436 for (i in m) { 437 if (m.hasOwnProperty(i) && momentProperties.hasOwnProperty(i)) { 438 result[i] = m[i]; 439 } 440 } 441 442 return result; 443 } 444 445 function absRound(number) { 446 if (number < 0) { 447 return Math.ceil(number); 448 } else { 449 return Math.floor(number); 450 } 451 } 452 453 // left zero fill a number 454 // see http://jsperf.com/left-zero-filling for performance comparison 455 function leftZeroFill(number, targetLength, forceSign) { 456 var output = '' + Math.abs(number), 457 sign = number >= 0; 458 459 while (output.length < targetLength) { 460 output = '0' + output; 461 } 462 return (sign ? (forceSign ? '+' : '') : '-') + output; 463 } 464 465 // helper function for _.addTime and _.subtractTime 466 function addOrSubtractDurationFromMoment(mom, duration, isAdding, updateOffset) { 467 var milliseconds = duration._milliseconds, 468 days = duration._days, 469 months = duration._months; 470 updateOffset = updateOffset == null ? true : updateOffset; 471 472 if (milliseconds) { 473 mom._d.setTime(+mom._d + milliseconds * isAdding); 474 } 475 if (days) { 476 rawSetter(mom, 'Date', rawGetter(mom, 'Date') + days * isAdding); 477 } 478 if (months) { 479 rawMonthSetter(mom, rawGetter(mom, 'Month') + months * isAdding); 480 } 481 if (updateOffset) { 482 moment.updateOffset(mom, days || months); 483 } 484 } 485 486 // check if is an array 487 function isArray(input) { 488 return Object.prototype.toString.call(input) === '[object Array]'; 489 } 490 491 function isDate(input) { 492 return Object.prototype.toString.call(input) === '[object Date]' || 493 input instanceof Date; 494 } 495 496 // compare two arrays, return the number of differences 497 function compareArrays(array1, array2, dontConvert) { 498 var len = Math.min(array1.length, array2.length), 499 lengthDiff = Math.abs(array1.length - array2.length), 500 diffs = 0, 501 i; 502 for (i = 0; i < len; i++) { 503 if ((dontConvert && array1[i] !== array2[i]) || 504 (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) { 505 diffs++; 506 } 507 } 508 return diffs + lengthDiff; 509 } 510 511 function normalizeUnits(units) { 512 if (units) { 513 var lowered = units.toLowerCase().replace(/(.)s$/, '$1'); 514 units = unitAliases[units] || camelFunctions[lowered] || lowered; 515 } 516 return units; 517 } 518
519 function normalizeObjectUnits(inputObject) { 520 var normalizedInput = {}, 521 normalizedProp, 522 prop; 523 524 for (prop in inputObject) { 525 if (inputObject.hasOwnProperty(prop)) { 526 normalizedProp = normalizeUnits(prop); 527 if (normalizedProp) { 528 normalizedInput[normalizedProp] = inputObject[prop]; 529 } 530 } 531 } 532 533 return normalizedInput; 534 } 535 536 function makeList(field) { 537 var count, setter; 538 539 if (field.indexOf('week') === 0) { 540 count = 7; 541 setter = 'day'; 542 } 543 else if (field.indexOf('month') === 0) { 544 count = 12; 545 setter = 'month'; 546 } 547 else { 548 return; 549 } 550 551 moment[field] = function (format, index) { 552 var i, getter, 553 method = moment.fn._lang[field], 554 results = []; 555 556 if (typeof format === 'number') { 557 index = format; 558 format = undefined; 559 } 560 561 getter = function (i) { 562 var m = moment().utc().set(setter, i); 563 return method.call(moment.fn._lang, m, format || ''); 564 }; 565 566 if (index != null) { 567 return getter(index); 568 } 569 else { 570 for (i = 0; i < count; i++) { 571 results.push(getter(i)); 572 } 573 return results; 574 } 575 }; 576 } 577 578 function toInt(argumentForCoercion) { 579 var coercedNumber = +argumentForCoercion, 580 value = 0; 581 582 if (coercedNumber !== 0 && isFinite(coercedNumber)) { 583 if (coercedNumber >= 0) { 584 value = Math.floor(coercedNumber); 585 } else { 586 value = Math.ceil(coercedNumber); 587 } 588 } 589 590 return value; 591 } 592 593 function daysInMonth(year, month) { 594 return new Date(Date.UTC(year, month + 1, 0)).getUTCDate(); 595 } 596 597 function weeksInYear(year, dow, doy) { 598 return weekOfYear(moment([year, 11, 31 + dow - doy]), dow, doy).week; 599 } 600 601 function daysInYear(year) { 602 return isLeapYear(year) ? 366 : 365; 603 } 604 605 function isLeapYear(year) { 606 return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0; 607 } 608 609 function checkOverflow(m) { 610 var overflow; 611 if (m._a && m._pf.overflow === -2) { 612 overflow = 613 m._a[MONTH] < 0 || m._a[MONTH] > 11 ? MONTH : 614 m._a[DATE] < 1 || m._a[DATE] > daysInMonth(m._a[YEAR], m._a[MONTH]) ? DATE : 615 m._a[HOUR] < 0 || m._a[HOUR] > 23 ? HOUR : 616 m._a[MINUTE] < 0 || m._a[MINUTE] > 59 ? MINUTE : 617 m._a[SECOND] < 0 || m._a[SECOND] > 59 ? SECOND : 618 m._a[MILLISECOND] < 0 || m._a[MILLISECOND] > 999 ? MILLISECOND : 619 -1; 620 621 if (m._pf._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) { 622 overflow = DATE; 623 } 624 625 m._pf.overflow = overflow; 626 } 627 } 628 629 function isValid(m) { 630 if (m._isValid == null) { 631 m._isValid = !isNaN(m._d.getTime()) && 632 m._pf.overflow < 0 && 633 !m._pf.empty && 634 !m._pf.invalidMonth && 635 !m._pf.nullInput && 636 !m._pf.invalidFormat && 637 !m._pf.userInvalidated; 638 639 if (m._strict) { 640 m._isValid = m._isValid && 641 m._pf.charsLeftOver === 0 && 642 m._pf.unusedTokens.length === 0; 643 } 644 } 645 return m._isValid; 646 } 647
648 function normalizeLanguage(key) { 649 return key ? key.toLowerCase().replace('_', '-') : key; 650 } 651 652 // Return a moment from input, that is local/utc/zone equivalent to model. 653 function makeAs(input, model) { 654 return model._isUTC ? moment(input).zone(model._offset || 0) : 655 moment(input).local(); 656 } 657 658 /************************************ 659 Languages 660 ************************************/ 661 662 663 extend(Language.prototype, { 664 665 set : function (config) { 666 var prop, i; 667 for (i in config) { 668 prop = config[i]; 669 if (typeof prop === 'function') { 670 this[i] = prop; 671 } else { 672 this['_' + i] = prop; 673 } 674 } 675 }, 676 677 _months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), 678 months : function (m) { 679 return this._months[m.month()]; 680 }, 681 682 _monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), 683 monthsShort : function (m) { 684 return this._monthsShort[m.month()]; 685 }, 686 687 monthsParse : function (monthName) { 688 var i, mom, regex; 689 690 if (!this._monthsParse) { 691 this._monthsParse = []; 692 } 693 694 for (i = 0; i < 12; i++) { 695 // make the regex if we don't have it already 696 if (!this._monthsParse[i]) { 697 mom = moment.utc([2000, i]); 698 regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, ''); 699 this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i'); 700 } 701 // test the regex 702 if (this._monthsParse[i].test(monthName)) { 703 return i; 704 } 705 } 706 }, 707 708 _weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), 709 weekdays : function (m) { 710 return this._weekdays[m.day()]; 711 }, 712 713 _weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), 714 weekdaysShort : function (m) { 715 return this._weekdaysShort[m.day()]; 716 }, 717 718 _weekdaysMin : "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), 719 weekdaysMin : function (m) { 720 return this._weekdaysMin[m.day()]; 721 }, 722 723 weekdaysParse : function (weekdayName) { 724 var i, mom, regex; 725 726 if (!this._weekdaysParse) { 727 this._weekdaysParse = []; 728 } 729 730 for (i = 0; i < 7; i++) { 731 // make the regex if we don't have it already 732 if (!this._weekdaysParse[i]) { 733 mom = moment([2000, 1]).day(i); 734 regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, ''); 735 this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i'); 736 } 737 // test the regex 738 if (this._weekdaysParse[i].test(weekdayName)) { 739 return i; 740 } 741 } 742 }, 743 744 _longDateFormat : { 745 LT : "h:mm A", 746 L : "MM/DD/YYYY", 747 LL : "MMMM D YYYY", 748 LLL : "MMMM D YYYY LT", 749 LLLL : "dddd, MMMM D YYYY LT" 750 }, 751 longDateFormat : function (key) { 752 var output = this._longDateFormat[key]; 753 if (!output && this._longDateFormat[key.toUpperCase()]) { 754 output = this._longDateFormat[key.toUpperCase()].replace(/MMMM|MM|DD|dddd/g, function (val) { 755 return val.slice(1); 756 }); 757 this._longDateFormat[key] = output; 758 } 759 return output; 760 }, 761 762 isPM : function (input) { 763 // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays 764 // Using charAt should be more compatible. 765 return ((input + '').toLowerCase().charAt(0) === 'p'); 766 }, 767 768 _meridiemParse : /[ap]\.?m?\.?/i, 769 meridiem : function (hours, minutes, isLower) { 770 if (hours > 11) { 771 return isLower ? 'pm' : 'PM'; 772 } else { 773 return isLower ? 'am' : 'AM'; 774 } 775 }, 776 777 _calendar : { 778 sameDay : '[Today at] LT', 779 nextDay : '[Tomorrow at] LT', 780 nextWeek : 'dddd [at] LT', 781 lastDay : '[Yesterday at] LT', 782 lastWeek : '[Last] dddd [at] LT', 783 sameElse : 'L' 784 }, 785 calendar : function (key, mom) { 786 var output = this._calendar[key]; 787 return typeof output === 'function' ? output.apply(mom) : output; 788 }, 789 790 _relativeTime : { 791 future : "in %s", 792 past : "%s ago", 793 s : "a few seconds", 794 m : "a minute", 795 mm : "%d minutes", 796 h : "an hour", 797 hh : "%d hours", 798 d : "a day", 799 dd : "%d days", 800 M : "a month", 801 MM : "%d months", 802 y : "a year", 803 yy : "%d years" 804 }, 805 relativeTime : function (number, withoutSuffix, string, isFuture) { 806 var output = this._relativeTime[string]; 807 return (typeof output === 'function') ? 808 output(number, withoutSuffix, string, isFuture) : 809 output.replace(/%d/i, number); 810 }, 811 pastFuture : function (diff, output) { 812 var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
813 return typeof format === 'function' ? format(output) : format.replace(/%s/i, output); 814 }, 815 816 ordinal : function (number) { 817 return this._ordinal.replace("%d", number); 818 }, 819 _ordinal : "%d", 820 821 preparse : function (string) { 822 return string; 823 }, 824 825 postformat : function (string) { 826 return string; 827 }, 828 829 week : function (mom) { 830 return weekOfYear(mom, this._week.dow, this._week.doy).week; 831 }, 832 833 _week : { 834 dow : 0, // Sunday is the first day of the week. 835 doy : 6 // The week that contains Jan 1st is the first week of the year. 836 }, 837 838 _invalidDate: 'Invalid date', 839 invalidDate: function () { 840 return this._invalidDate; 841 } 842 }); 843 844 // Loads a language definition into the `languages` cache. The function 845 // takes a key and optionally values. If not in the browser and no values 846 // are provided, it will load the language file module. As a convenience, 847 // this function also returns the language values. 848 function loadLang(key, values) { 849 values.abbr = key; 850 if (!languages[key]) { 851 languages[key] = new Language(); 852 } 853 languages[key].set(values); 854 return languages[key]; 855 } 856 857 // Remove a language from the `languages` cache. Mostly useful in tests. 858 function unloadLang(key) { 859 delete languages[key]; 860 } 861 862 // Determines which language definition to use and returns it. 863 // 864 // With no parameters, it will return the global language. If you 865 // pass in a language key, such as 'en', it will return the 866 // definition for 'en', so long as 'en' has already been loaded using 867 // moment.lang. 868 function getLangDefinition(key) { 869 var i = 0, j, lang, next, split, 870 get = function (k) { 871 if (!languages[k] && hasModule) { 872 try { 873 require('./lang/' + k); 874 } catch (e) { } 875 } 876 return languages[k]; 877 }; 878 879 if (!key) { 880 return moment.fn._lang; 881 } 882 883 if (!isArray(key)) { 884 //short-circuit everything else 885 lang = get(key); 886 if (lang) { 887 return lang; 888 } 889 key = [key]; 890 } 891 892 //pick the language from the array 893 //try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each 894 //substring from most specific to least, but move to the next array item if it's a more specific variant than the current root 895 while (i < key.length) { 896 split = normalizeLanguage(key[i]).split('-'); 897 j = split.length; 898 next = normalizeLanguage(key[i + 1]); 899 next = next ? next.split('-') : null; 900 while (j > 0) { 901 lang = get(split.slice(0, j).join('-')); 902 if (lang) { 903 return lang; 904 } 905 if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) { 906 //the next array item is better than a shallower substring of this one 907 break; 908 } 909 j--; 910 } 911 i++; 912 } 913 return moment.fn._lang; 914 } 915 916 /************************************ 917 Formatting 918 ************************************/ 919 920 921 function removeFormattingTokens(input) { 922 if (input.match(/\[[\s\S]/)) { 923 return input.replace(/^\[|\]$/g, ""); 924 } 925 return input.replace(/\\/g, ""); 926 } 927 928 function makeFormatFunction(format) { 929 var array = format.match(formattingTokens), i, length; 930 931 for (i = 0, length = array.length; i < length; i++) { 932 if (formatTokenFunctions[array[i]]) { 933 array[i] = formatTokenFunctions[array[i]]; 934 } else { 935 array[i] = removeFormattingTokens(array[i]); 936 } 937 } 938 939 return function (mom) { 940 var output = ""; 941 for (i = 0; i < length; i++) { 942 output += array[i] instanceof Function ? array[i].call(mom, format) : array[i]; 943 } 944 return output; 945 }; 946 } 947 948 // format date using native date object 949 function formatMoment(m, format) { 950 951 if (!m.isValid()) { 952 return m.lang().invalidDate(); 953 } 954 955 format = expandFormat(format, m.lang()); 956 957 if (!formatFunctions[format]) { 958 formatFunctions[format] = makeFormatFunction(format); 959 } 960 961 return formatFunctions[format](m); 962 } 963 964 function expandFormat(format, lang) { 965 var i = 5; 966 967 function replaceLongDateFormatTokens(input) { 968 return lang.longDateFormat(input) || input; 969 } 970 971 localFormattingTokens.lastIndex = 0; 972 while (i >= 0 && localFormattingTokens.test(format)) { 973 format = format.replace(localFormattingTokens, replaceLongDateFormatTokens); 974 localFormattingTokens.lastIndex = 0; 975 i -= 1; 976 } 977 978 return format; 979 } 980 981 982 /************************************ 983 Parsing 984 ************************************/ 985 986 987 // get the regex to find the next token 988 function getParseRegexForToken(token, config) { 989 var a, strict = config._strict; 990 switch (token) { 991 case 'Q': 992 return parseTokenOneDigit; 993 case 'DDDD': 994 return parseTokenThreeDigits; 995 case 'YYYY': 996 case 'GGGG': 997 case 'gggg': 998 return strict ? parseTokenFourDigits : parseTokenOneToFourDigits; 999 case 'Y': 1000 case 'G': 1001 case 'g': 1002 return parseTokenSignedNumber; 1003 case 'YYYYYY': 1004 case 'YYYYY': 1005 case 'GGGGG': 1006 case 'ggggg': 1007 return strict ? parseTokenSixDigits : parseTokenOneToSixDigits; 1008 case 'S': 1009 if (strict) { return parseTokenOneDigit; } 1010 /* falls through */ 1011 case 'SS': 1012 if (strict) { return parseTokenTwoDigits; } 1013 /* falls through */ 1014 case 'SSS': 1015 if (strict) { return parseTokenThreeDigits; } 1016 /* falls through */ 1017 case 'DDD': 1018 return parseTokenOneToThreeDigits; 1019 case 'MMM': 1020 case 'MMMM': 1021 case 'dd': 1022 case 'ddd': 1023 case 'dddd': 1024 return parseTokenWord; 1025 case 'a': 1026 case 'A': 1027 return getLangDefinition(config._l)._meridiemParse; 1028 case 'X': 1029 return parseTokenTimestampMs; 1030 case 'Z': 1031 case 'ZZ': 1032 return parseTokenTimezone; 1033 case 'T': 1034 return parseTokenT; 1035 case 'SSSS': 1036 return parseTokenDigits; 1037 case 'MM': 1038 case 'DD': 1039 case 'YY': 1040 case 'GG': 1041 case 'gg': 1042 case 'HH': 1043 case 'hh': 1044 case 'mm': 1045 case 'ss': 1046 case 'ww': 1047 case 'WW': 1048 return strict ? parseTokenTwoDigits : parseTokenOneOrTwoDigits; 1049 case 'M': 1050 case 'D': 1051 case 'd': 1052 case 'H': 1053 case 'h': 1054 case 'm': 1055 case 's': 1056 case 'w': 1057 case 'W': 1058 case 'e': 1059 case 'E': 1060 return parseTokenOneOrTwoDigits; 1061 case 'Do': 1062 return parseTokenOrdinal; 1063 default : 1064 a = new RegExp(regexpEscape(unescapeFormat(token.replace('\\', '')), "i")); 1065 return a; 1066 } 1067 } 1068 1069 function timezoneMinutesFromString(string) {
1070 string = string || ""; 1071 var possibleTzMatches = (string.match(parseTokenTimezone) || []), 1072 tzChunk = possibleTzMatches[possibleTzMatches.length - 1] || [], 1073 parts = (tzChunk + '').match(parseTimezoneChunker) || ['-', 0, 0], 1074 minutes = +(parts[1] * 60) + toInt(parts[2]); 1075 1076 return parts[0] === '+' ? -minutes : minutes; 1077 } 1078 1079 // function to convert string input to date 1080 function addTimeToArrayFromToken(token, input, config) { 1081 var a, datePartArray = config._a; 1082 1083 switch (token) { 1084 // QUARTER 1085 case 'Q': 1086 if (input != null) { 1087 datePartArray[MONTH] = (toInt(input) - 1) * 3; 1088 } 1089 break; 1090 // MONTH 1091 case 'M' : // fall through to MM 1092 case 'MM' : 1093 if (input != null) { 1094 datePartArray[MONTH] = toInt(input) - 1; 1095 } 1096 break; 1097 case 'MMM' : // fall through to MMMM 1098 case 'MMMM' : 1099 a = getLangDefinition(config._l).monthsParse(input); 1100 // if we didn't find a month name, mark the date as invalid. 1101 if (a != null) { 1102 datePartArray[MONTH] = a; 1103 } else { 1104 config._pf.invalidMonth = input; 1105 } 1106 break; 1107 // DAY OF MONTH 1108 case 'D' : // fall through to DD 1109 case 'DD' : 1110 if (input != null) { 1111 datePartArray[DATE] = toInt(input); 1112 } 1113 break; 1114 case 'Do' : 1115 if (input != null) { 1116 datePartArray[DATE] = toInt(parseInt(input, 10)); 1117 } 1118 break; 1119 // DAY OF YEAR 1120 case 'DDD' : // fall through to DDDD 1121 case 'DDDD' : 1122 if (input != null) { 1123 config._dayOfYear = toInt(input); 1124 } 1125 1126 break; 1127 // YEAR 1128 case 'YY' : 1129 datePartArray[YEAR] = moment.parseTwoDigitYear(input); 1130 break; 1131 case 'YYYY' : 1132 case 'YYYYY' : 1133 case 'YYYYYY' : 1134 datePartArray[YEAR] = toInt(input); 1135 break; 1136 // AM / PM 1137 case 'a' : // fall through to A 1138 case 'A' : 1139 config._isPm = getLangDefinition(config._l).isPM(input); 1140 break; 1141 // 24 HOUR 1142 case 'H' : // fall through to hh 1143 case 'HH' : // fall through to hh 1144 case 'h' : // fall through to hh 1145 case 'hh' : 1146 datePartArray[HOUR] = toInt(input); 1147 break; 1148 // MINUTE 1149 case 'm' : // fall through to mm 1150 case 'mm' : 1151 datePartArray[MINUTE] = toInt(input); 1152 break; 1153 // SECOND 1154 case 's' : // fall through to ss 1155 case 'ss' : 1156 datePartArray[SECOND] = toInt(input); 1157 break; 1158 // MILLISECOND 1159 case 'S' : 1160 case 'SS' : 1161 case 'SSS' : 1162 case 'SSSS' : 1163 datePartArray[MILLISECOND] = toInt(('0.' + input) * 1000); 1164 break; 1165 // UNIX TIMESTAMP WITH MS 1166 case 'X': 1167 config._d = new Date(parseFloat(input) * 1000); 1168 break; 1169 // TIMEZONE 1170 case 'Z' : // fall through to ZZ 1171 case 'ZZ' : 1172 config._useUTC = true; 1173 config._tzm = timezoneMinutesFromString(input); 1174 break; 1175 // WEEKDAY - human 1176 case 'dd': 1177 case 'ddd': 1178 case 'dddd': 1179 a = getLangDefinition(config._l).weekdaysParse(input); 1180 // if we didn't get a weekday name, mark the date as invalid 1181 if (a != null) { 1182 config._w = config._w || {}; 1183 config._w['d'] = a; 1184 } else { 1185 config._pf.invalidWeekday = input; 1186 } 1187 break; 1188 // WEEK, WEEK DAY - numeric 1189 case 'w': 1190 case 'ww': 1191 case 'W': 1192 case 'WW': 1193 case 'd': 1194 case 'e': 1195 case 'E': 1196 token = token.substr(0, 1); 1197 /* falls through */ 1198 case 'gggg': 1199 case 'GGGG': 1200 case 'GGGGG': 1201 token = token.substr(0, 2); 1202 if (input) { 1203 config._w = config._w || {}; 1204 config._w[token] = toInt(input); 1205 } 1206 break; 1207 case 'gg': 1208 case 'GG': 1209 config._w = config._w || {}; 1210 config._w[token] = moment.parseTwoDigitYear(input); 1211 } 1212 } 1213 1214 function dayOfYearFromWeekInfo(config) { 1215 var w, weekYear, week, weekday, dow, doy, temp, lang; 1216 1217 w = config._w; 1218 if (w.GG != null || w.W != null || w.E != null) { 1219 dow = 1; 1220 doy = 4; 1221 1222 // TODO: We need to take the current isoWeekYear, but that depends on 1223 // how we interpret now (local, utc, fixed offset). So create 1224 // a now version of current config (take local/utc/offset flags, and 1225 // create now). 1226 weekYear = dfl(w.GG, config._a[YEAR], weekOfYear(moment(), 1, 4).year); 1227 week = dfl(w.W, 1); 1228 weekday = dfl(w.E, 1); 1229 } else { 1230 lang = getLangDefinition(config._l); 1231 dow = lang._week.dow; 1232 doy = lang._week.doy; 1233
1234 weekYear = dfl(w.gg, config._a[YEAR], weekOfYear(moment(), dow, doy).year); 1235 week = dfl(w.w, 1); 1236 1237 if (w.d != null) { 1238 // weekday -- low day numbers are considered next week 1239 weekday = w.d; 1240 if (weekday < dow) { 1241 ++week; 1242 } 1243 } else if (w.e != null) { 1244 // local weekday -- counting starts from begining of week 1245 weekday = w.e + dow; 1246 } else { 1247 // default to begining of week 1248 weekday = dow; 1249 } 1250 } 1251 temp = dayOfYearFromWeeks(weekYear, week, weekday, doy, dow); 1252 1253 config._a[YEAR] = temp.year; 1254 config._dayOfYear = temp.dayOfYear; 1255 } 1256 1257 // convert an array to a date. 1258 // the array should mirror the parameters below 1259 // note: all values past the year are optional and will default to the lowest possible value. 1260 // [year, month, day , hour, minute, second, millisecond] 1261 function dateFromConfig(config) { 1262 var i, date, input = [], currentDate, yearToUse; 1263 1264 if (config._d) { 1265 return; 1266 } 1267 1268 currentDate = currentDateArray(config); 1269 1270 //compute day of the year from weeks and weekdays 1271 if (config._w && config._a[DATE] == null && config._a[MONTH] == null) { 1272 dayOfYearFromWeekInfo(config); 1273 } 1274 1275 //if the day of the year is set, figure out what it is 1276 if (config._dayOfYear) { 1277 yearToUse = dfl(config._a[YEAR], currentDate[YEAR]); 1278 1279 if (config._dayOfYear > daysInYear(yearToUse)) { 1280 config._pf._overflowDayOfYear = true; 1281 } 1282 1283 date = makeUTCDate(yearToUse, 0, config._dayOfYear); 1284 config._a[MONTH] = date.getUTCMonth(); 1285 config._a[DATE] = date.getUTCDate(); 1286 } 1287 1288 // Default to current date. 1289 // * if no year, month, day of month are given, default to today 1290 // * if day of month is given, default month and year 1291 // * if month is given, default only year 1292 // * if year is given, don't default anything 1293 for (i = 0; i < 3 && config._a[i] == null; ++i) { 1294 config._a[i] = input[i] = currentDate[i]; 1295 } 1296 1297 // Zero out whatever was not defaulted, including time 1298 for (; i < 7; i++) { 1299 config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i]; 1300 } 1301 1302 config._d = (config._useUTC ? makeUTCDate : makeDate).apply(null, input); 1303 // Apply timezone offset from input. The actual zone can be changed 1304 // with parseZone. 1305 if (config._tzm != null) { 1306 config._d.setUTCMinutes(config._d.getUTCMinutes() + config._tzm); 1307 } 1308 } 1309 1310 function dateFromObject(config) { 1311 var normalizedInput; 1312 1313 if (config._d) { 1314 return; 1315 } 1316 1317 normalizedInput = normalizeObjectUnits(config._i); 1318 config._a = [ 1319 normalizedInput.year, 1320 normalizedInput.month, 1321 normalizedInput.day, 1322 normalizedInput.hour, 1323 normalizedInput.minute, 1324 normalizedInput.second, 1325 normalizedInput.millisecond 1326 ]; 1327 1328 dateFromConfig(config); 1329 } 1330 1331 function currentDateArray(config) { 1332 var now = new Date(); 1333 if (config._useUTC) { 1334 return [ 1335 now.getUTCFullYear(), 1336 now.getUTCMonth(), 1337 now.getUTCDate() 1338 ]; 1339 } else { 1340 return [now.getFullYear(), now.getMonth(), now.getDate()]; 1341 } 1342 } 1343 1344 // date from string and format string 1345 function makeDateFromStringAndFormat(config) { 1346 1347 if (config._f === moment.ISO_8601) { 1348 parseISO(config); 1349 return; 1350 } 1351 1352 config._a = []; 1353 config._pf.empty = true; 1354 1355 // This array is used to make a Date, either with `new Date` or `Date.UTC` 1356 var lang = getLangDefinition(config._l), 1357 string = '' + config._i, 1358 i, parsedInput, tokens, token, skipped,
1359 stringLength = string.length, 1360 totalParsedInputLength = 0; 1361 1362 tokens = expandFormat(config._f, lang).match(formattingTokens) || []; 1363 1364 for (i = 0; i < tokens.length; i++) { 1365 token = tokens[i]; 1366 parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0]; 1367 if (parsedInput) { 1368 skipped = string.substr(0, string.indexOf(parsedInput)); 1369 if (skipped.length > 0) { 1370 config._pf.unusedInput.push(skipped); 1371 } 1372 string = string.slice(string.indexOf(parsedInput) + parsedInput.length); 1373 totalParsedInputLength += parsedInput.length; 1374 } 1375 // don't parse if it's not a known token 1376 if (formatTokenFunctions[token]) { 1377 if (parsedInput) { 1378 config._pf.empty = false; 1379 } 1380 else { 1381 config._pf.unusedTokens.push(token); 1382 } 1383 addTimeToArrayFromToken(token, parsedInput, config); 1384 } 1385 else if (config._strict && !parsedInput) { 1386 config._pf.unusedTokens.push(token); 1387 } 1388 } 1389 1390 // add remaining unparsed input length to the string 1391 config._pf.charsLeftOver = stringLength - totalParsedInputLength; 1392 if (string.length > 0) { 1393 config._pf.unusedInput.push(string); 1394 } 1395 1396 // handle am pm 1397 if (config._isPm && config._a[HOUR] < 12) { 1398 config._a[HOUR] += 12; 1399 } 1400 // if is 12 am, change hours to 0 1401 if (config._isPm === false && config._a[HOUR] === 12) { 1402 config._a[HOUR] = 0; 1403 } 1404 1405 dateFromConfig(config); 1406 checkOverflow(config); 1407 } 1408 1409 function unescapeFormat(s) { 1410 return s.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) { 1411 return p1 || p2 || p3 || p4; 1412 }); 1413 } 1414 1415 // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript 1416 function regexpEscape(s) { 1417 return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); 1418 } 1419 1420 // date from string and array of format strings 1421 function makeDateFromStringAndArray(config) { 1422 var tempConfig, 1423 bestMoment, 1424 1425 scoreToBeat, 1426 i, 1427 currentScore; 1428 1429 if (config._f.length === 0) { 1430 config._pf.invalidFormat = true; 1431 config._d = new Date(NaN); 1432 return; 1433 } 1434 1435 for (i = 0; i < config._f.length; i++) { 1436 currentScore = 0; 1437 tempConfig = extend({}, config); 1438 tempConfig._pf = defaultParsingFlags(); 1439 tempConfig._f = config._f[i]; 1440 makeDateFromStringAndFormat(tempConfig); 1441 1442 if (!isValid(tempConfig)) { 1443 continue; 1444 } 1445 1446 // if there is any input that was not parsed add a penalty for that format 1447 currentScore += tempConfig._pf.charsLeftOver; 1448 1449 //or tokens 1450 currentScore += tempConfig._pf.unusedTokens.length * 10; 1451 1452 tempConfig._pf.score = currentScore; 1453 1454 if (scoreToBeat == null || currentScore < scoreToBeat) { 1455 scoreToBeat = currentScore; 1456 bestMoment = tempConfig; 1457 } 1458 } 1459 1460 extend(config, bestMoment || tempConfig); 1461 } 1462 1463 // date from iso format 1464 function parseISO(config) { 1465 var i, l, 1466 string = config._i, 1467 match = isoRegex.exec(string); 1468 1469 if (match) { 1470 config._pf.iso = true; 1471 for (i = 0, l = isoDates.length; i < l; i++) { 1472 if (isoDates[i][1].exec(string)) { 1473 // match[5] should be "T" or undefined 1474 config._f = isoDates[i][0] + (match[6] || " "); 1475 break; 1476 } 1477 } 1478 for (i = 0, l = isoTimes.length; i < l; i++) { 1479 if (isoTimes[i][1].exec(string)) { 1480 config._f += isoTimes[i][0]; 1481 break; 1482 } 1483 } 1484 if (string.match(parseTokenTimezone)) { 1485 config._f += "Z"; 1486 } 1487 makeDateFromStringAndFormat(config); 1488 } else { 1489 config._isValid = false;
1490 } 1491 } 1492 1493 // date from iso format or fallback 1494 function makeDateFromString(config) { 1495 parseISO(config); 1496 if (config._isValid === false) { 1497 delete config._isValid; 1498 moment.createFromInputFallback(config); 1499 } 1500 } 1501 1502 function makeDateFromInput(config) { 1503 var input = config._i, 1504 matched = aspNetJsonRegex.exec(input); 1505 1506 if (input === undefined) { 1507 config._d = new Date(); 1508 } else if (matched) { 1509 config._d = new Date(+matched[1]); 1510 } else if (typeof input === 'string') { 1511 makeDateFromString(config); 1512 } else if (isArray(input)) { 1513 config._a = input.slice(0); 1514 dateFromConfig(config); 1515 } else if (isDate(input)) { 1516 config._d = new Date(+input); 1517 } else if (typeof(input) === 'object') { 1518 dateFromObject(config); 1519 } else if (typeof(input) === 'number') { 1520 // from milliseconds 1521 config._d = new Date(input); 1522 } else { 1523 moment.createFromInputFallback(config); 1524 } 1525 } 1526 1527 function makeDate(y, m, d, h, M, s, ms) { 1528 //can't just apply() to create a date: 1529 //http://stackoverflow.com/questions/181348/instantiating-a-javascript-object-by-calling-prototype-constructor-apply 1530 var date = new Date(y, m, d, h, M, s, ms); 1531 1532 //the date constructor doesn't accept years < 1970 1533 if (y < 1970) { 1534 date.setFullYear(y); 1535 } 1536 return date; 1537 } 1538 1539 function makeUTCDate(y) { 1540 var date = new Date(Date.UTC.apply(null, arguments)); 1541 if (y < 1970) { 1542 date.setUTCFullYear(y); 1543 } 1544 return date; 1545 } 1546 1547 function parseWeekday(input, language) { 1548 if (typeof input === 'string') { 1549 if (!isNaN(input)) { 1550 input = parseInt(input, 10); 1551 } 1552 else { 1553 input = language.weekdaysParse(input); 1554 if (typeof input !== 'number') { 1555 return null; 1556 } 1557 } 1558 } 1559 return input; 1560 } 1561 1562 /************************************ 1563 Relative Time 1564 ************************************/ 1565 1566 1567 // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize 1568 function substituteTimeAgo(string, number, withoutSuffix, isFuture, lang) { 1569 return lang.relativeTime(number || 1, !!withoutSuffix, string, isFuture); 1570 } 1571 1572 function relativeTime(milliseconds, withoutSuffix, lang) { 1573 var seconds = round(Math.abs(milliseconds) / 1000), 1574 minutes = round(seconds / 60), 1575 hours = round(minutes / 60), 1576 days = round(hours / 24), 1577 years = round(days / 365), 1578 args = seconds < relativeTimeThresholds.s && ['s', seconds] || 1579 minutes === 1 && ['m'] || 1580 minutes < relativeTimeThresholds.m && ['mm', minutes] || 1581 hours === 1 && ['h'] || 1582 hours < relativeTimeThresholds.h && ['hh', hours] || 1583 days === 1 && ['d'] || 1584 days <= relativeTimeThresholds.dd && ['dd', days] || 1585 days <= relativeTimeThresholds.dm && ['M'] || 1586 days < relativeTimeThresholds.dy && ['MM', round(days / 30)] || 1587 years === 1 && ['y'] || ['yy', years]; 1588 args[2] = withoutSuffix; 1589 args[3] = milliseconds > 0; 1590 args[4] = lang; 1591 return substituteTimeAgo.apply({}, args); 1592 } 1593 1594 1595 /************************************ 1596 Week of Year 1597 ************************************/ 1598 1599 1600 // firstDayOfWeek 0 = sun, 6 = sat 1601 // the day of the week that starts the week 1602 // (usually sunday or monday) 1603 // firstDayOfWeekOfYear 0 = sun, 6 = sat 1604 // the first week is the week that contains the first 1605 // of this day of the week 1606 // (eg. ISO weeks use thursday (4)) 1607 function weekOfYear(mom, firstDayOfWeek, firstDayOfWeekOfYear) { 1608 var end = firstDayOfWeekOfYear - firstDayOfWeek, 1609 daysToDayOfWeek = firstDayOfWeekOfYear - mom.day(), 1610 adjustedMoment; 1611 1612 1613 if (daysToDayOfWeek > end) { 1614 daysToDayOfWeek -= 7; 1615 } 1616 1617 if (daysToDayOfWeek < end - 7) { 1618 daysToDayOfWeek += 7; 1619 } 1620 1621 adjustedMoment = moment(mom).add('d', daysToDayOfWeek); 1622 return { 1623 week: Math.ceil(adjustedMoment.dayOfYear() / 7), 1624 year: adjustedMoment.year() 1625 }; 1626 } 1627 1628 //http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday 1629 function dayOfYearFromWeeks(year, week, weekday, firstDayOfWeekOfYear, firstDayOfWeek) { 1630 var d = makeUTCDate(year, 0, 1).getUTCDay(), daysToAdd, dayOfYear; 1631 1632 d = d === 0 ? 7 : d; 1633 weekday = weekday != null ? weekday : firstDayOfWeek; 1634 daysToAdd = firstDayOfWeek - d + (d > firstDayOfWeekOfYear ? 7 : 0) - (d < firstDayOfWeek ? 7 : 0); 1635 dayOfYear = 7 * (week - 1) + (weekday - firstDayOfWeek) + daysToAdd + 1; 1636 1637 return { 1638 year: dayOfYear > 0 ? year : year - 1, 1639 dayOfYear: dayOfYear > 0 ? dayOfYear : daysInYear(year - 1) + dayOfYear 1640 }; 1641 } 1642 1643 /************************************ 1644 Top Level Functions 1645 ************************************/ 1646 1647 function makeMoment(config) { 1648 var input = config._i, 1649 format = config._f; 1650 1651 if (input === null || (format === undefined && input === '')) {
1652 return moment.invalid({nullInput: true}); 1653 } 1654 1655 if (typeof input === 'string') { 1656 config._i = input = getLangDefinition().preparse(input); 1657 } 1658 1659 if (moment.isMoment(input)) { 1660 config = cloneMoment(input); 1661 1662 config._d = new Date(+input._d); 1663 } else if (format) { 1664 if (isArray(format)) { 1665 makeDateFromStringAndArray(config); 1666 } else { 1667 makeDateFromStringAndFormat(config); 1668 } 1669 } else { 1670 makeDateFromInput(config); 1671 } 1672 1673 return new Moment(config); 1674 } 1675 1676 moment = function (input, format, lang, strict) { 1677 var c; 1678 1679 if (typeof(lang) === "boolean") { 1680 strict = lang; 1681 lang = undefined; 1682 } 1683 // object construction must be done this way. 1684 // https://github.com/moment/moment/issues/1423 1685 c = {}; 1686 c._isAMomentObject = true; 1687 c._i = input; 1688 c._f = format; 1689 c._l = lang; 1690 c._strict = strict; 1691 c._isUTC = false; 1692 c._pf = defaultParsingFlags(); 1693 1694 return makeMoment(c); 1695 }; 1696 1697 moment.suppressDeprecationWarnings = false; 1698 1699 moment.createFromInputFallback = deprecate( 1700 "moment construction falls back to js Date. This is " + 1701 "discouraged and will be removed in upcoming major " + 1702 "release. Please refer to " + 1703 "https://github.com/moment/moment/issues/1407 for more info.", 1704 function (config) { 1705 config._d = new Date(config._i); 1706 }); 1707 1708 // Pick a moment m from moments so that m[fn](other) is true for all 1709 // other. This relies on the function fn to be transitive. 1710 // 1711 // moments should either be an array of moment objects or an array, whose 1712 // first element is an array of moment objects. 1713 function pickBy(fn, moments) { 1714 var res, i; 1715 if (moments.length === 1 && isArray(moments[0])) { 1716 moments = moments[0]; 1717 } 1718 if (!moments.length) { 1719 return moment(); 1720 } 1721 res = moments[0]; 1722 for (i = 1; i < moments.length; ++i) { 1723 if (moments[i][fn](res)) { 1724 res = moments[i]; 1725 } 1726 } 1727 return res; 1728 } 1729 1730 moment.min = function () { 1731 var args = [].slice.call(arguments, 0); 1732 1733 return pickBy('isBefore', args); 1734 }; 1735 1736 moment.max = function () { 1737 var args = [].slice.call(arguments, 0); 1738 1739 return pickBy('isAfter', args); 1740 }; 1741 1742 // creating with utc 1743 moment.utc = function (input, format, lang, strict) { 1744 var c; 1745 1746 if (typeof(lang) === "boolean") { 1747 strict = lang; 1748 lang = undefined; 1749 } 1750 // object construction must be done this way. 1751 // https://github.com/moment/moment/issues/1423 1752 c = {}; 1753 c._isAMomentObject = true; 1754 c._useUTC = true; 1755 c._isUTC = true; 1756 c._l = lang; 1757 c._i = input; 1758 c._f = format; 1759 c._strict = strict; 1760 c._pf = defaultParsingFlags(); 1761 1762 return makeMoment(c).utc(); 1763 }; 1764 1765 // creating with unix timestamp (in seconds) 1766 moment.unix = function (input) { 1767 return moment(input * 1000); 1768 }; 1769 1770 // duration 1771 moment.duration = function (input, key) { 1772 var duration = input, 1773 // matching against regexp is expensive, do it on demand 1774 match = null, 1775 sign, 1776 ret, 1777 parseIso; 1778 1779 if (moment.isDuration(input)) { 1780 duration = { 1781 ms: input._milliseconds, 1782 d: input._days, 1783 M: input._months 1784 }; 1785 } else if (typeof input === 'number') { 1786 duration = {}; 1787 if (key) { 1788 duration[key] = input; 1789 } else { 1790 duration.milliseconds = input; 1791 } 1792 } else if (!!(match = aspNetTimeSpanJsonRegex.exec(input))) { 1793 sign = (match[1] === "-") ? -1 : 1; 1794 duration = { 1795 y: 0, 1796 d: toInt(match[DATE]) * sign, 1797 h: toInt(match[HOUR]) * sign, 1798 m: toInt(match[MINUTE]) * sign, 1799 s: toInt(match[SECOND]) * sign, 1800 ms: toInt(match[MILLISECOND]) * sign 1801 }; 1802 } else if (!!(match = isoDurationRegex.exec(input))) { 1803 sign = (match[1] === "-") ? -1 : 1; 1804 parseIso = function (inp) { 1805 // We'd normally use ~~inp for this, but unfortunately it also 1806 // converts floats to ints. 1807 // inp may be undefined, so careful calling replace on it. 1808 var res = inp && parseFloat(inp.replace(',', '.')); 1809 // apply sign while we're at it 1810 return (isNaN(res) ? 0 : res) * sign; 1811 }; 1812 duration = { 1813 y: parseIso(match[2]), 1814 M: parseIso(match[3]), 1815 d: parseIso(match[4]), 1816 h: parseIso(match[5]), 1817 m: parseIso(match[6]), 1818 s: parseIso(match[7]), 1819 w: parseIso(match[8]) 1820 }; 1821 } 1822 1823 ret = new Duration(duration); 1824 1825 if (moment.isDuration(input) && input.hasOwnProperty('_lang')) { 1826 ret._lang = input._lang; 1827 } 1828 1829 return ret; 1830 }; 1831 1832 // version number 1833 moment.version = VERSION; 1834 1835 // default format 1836 moment.defaultFormat = isoFormat; 1837 1838 // constant that refers to the ISO standard 1839 moment.ISO_8601 = function () {}; 1840 1841 // Plugins that add properties should also add the key here (null value), 1842 // so we can properly clone ourselves. 1843 moment.momentProperties = momentProperties; 1844 1845 // This function will be called whenever a moment is mutated. 1846 // It is intended to keep the offset in sync with the timezone. 1847 moment.updateOffset = function () {}; 1848 1849 // This function allows you to set a threshold for relative time strings 1850 moment.relativeTimeThreshold = function(threshold, limit) { 1851 if (relativeTimeThresholds[threshold] === undefined) { 1852 return false;
1853 } 1854 relativeTimeThresholds[threshold] = limit; 1855 return true; 1856 }; 1857 1858 // This function will load languages and then set the global language. If 1859 // no arguments are passed in, it will simply return the current global 1860 // language key. 1861 moment.lang = function (key, values) { 1862 var r; 1863 if (!key) { 1864 return moment.fn._lang._abbr; 1865 } 1866 if (values) { 1867 loadLang(normalizeLanguage(key), values); 1868 } else if (values === null) { 1869 unloadLang(key); 1870 key = 'en'; 1871 } else if (!languages[key]) { 1872 getLangDefinition(key); 1873 } 1874 r = moment.duration.fn._lang = moment.fn._lang = getLangDefinition(key); 1875 return r._abbr; 1876 }; 1877 1878 // returns language data 1879 moment.langData = function (key) { 1880 if (key && key._lang && key._lang._abbr) { 1881 key = key._lang._abbr; 1882 } 1883 return getLangDefinition(key); 1884 }; 1885 1886 // compare moment object 1887 moment.isMoment = function (obj) { 1888 return obj instanceof Moment || 1889 (obj != null && obj.hasOwnProperty('_isAMomentObject')); 1890 }; 1891 1892 // for typechecking Duration objects 1893 moment.isDuration = function (obj) { 1894 return obj instanceof Duration; 1895 }; 1896 1897 for (i = lists.length - 1; i >= 0; --i) { 1898 makeList(lists[i]); 1899 } 1900 1901 moment.normalizeUnits = function (units) { 1902 return normalizeUnits(units); 1903 }; 1904 1905 moment.invalid = function (flags) { 1906 var m = moment.utc(NaN); 1907 if (flags != null) { 1908 extend(m._pf, flags); 1909 } 1910 else { 1911 m._pf.userInvalidated = true; 1912 } 1913 1914 return m; 1915 }; 1916 1917 moment.parseZone = function () { 1918 return moment.apply(null, arguments).parseZone(); 1919 }; 1920 1921 moment.parseTwoDigitYear = function (input) { 1922 return toInt(input) + (toInt(input) > 68 ? 1900 : 2000); 1923 }; 1924 1925 /************************************ 1926 Moment Prototype 1927 ************************************/ 1928 1929 1930 extend(moment.fn = Moment.prototype, { 1931 1932 clone : function () { 1933 return moment(this); 1934 }, 1935 1936 valueOf : function () { 1937 return +this._d + ((this._offset || 0) * 60000); 1938 }, 1939 1940 unix : function () { 1941 return Math.floor(+this / 1000); 1942 }, 1943 1944 toString : function () { 1945 return this.clone().lang('en').format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ"); 1946 }, 1947 1948 toDate : function () { 1949 return this._offset ? new Date(+this) : this._d; 1950 }, 1951 1952 toISOString : function () { 1953 var m = moment(this).utc(); 1954 if (0 < m.year() && m.year() <= 9999) { 1955 return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); 1956 } else { 1957 return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); 1958 } 1959 }, 1960 1961 toArray : function () { 1962 var m = this; 1963 return [ 1964 m.year(), 1965 m.month(), 1966 m.date(), 1967 m.hours(), 1968 m.minutes(), 1969 m.seconds(), 1970 m.milliseconds() 1971 ]; 1972 }, 1973 1974 isValid : function () { 1975 return isValid(this); 1976 }, 1977 1978 isDSTShifted : function () { 1979 1980 if (this._a) { 1981 return this.isValid() && compareArrays(this._a, (this._isUTC ? moment.utc(this._a) : moment(this._a)).toArray()) > 0; 1982 } 1983 1984 return false; 1985 }, 1986 1987 parsingFlags : function () { 1988 return extend({}, this._pf); 1989 }, 1990 1991 invalidAt: function () { 1992 return this._pf.overflow; 1993 }, 1994 1995 utc : function () { 1996 return this.zone(0); 1997 }, 1998 1999 local : function () { 2000 this.zone(0); 2001 this._isUTC = false; 2002 return this; 2003 }, 2004 2005 format : function (inputString) { 2006 var output = formatMoment(this, inputString || moment.defaultFormat); 2007 return this.lang().postformat(output); 2008 }, 2009 2010 add : function (input, val) { 2011 var dur; 2012 // switch args to support add('s', 1) and add(1, 's') 2013 if (typeof input === 'string' && typeof val === 'string') { 2014 dur = moment.duration(isNaN(+val) ? +input : +val, isNaN(+val) ? val : input); 2015 } else if (typeof input === 'string') { 2016 dur = moment.duration(+val, input); 2017 } else { 2018 dur = moment.duration(input, val); 2019 } 2020 addOrSubtractDurationFromMoment(this, dur, 1); 2021 return this; 2022 }, 2023 2024 subtract : function (input, val) { 2025 var dur; 2026 // switch args to support subtract('s', 1) and subtract(1, 's') 2027 if (typeof input === 'string' && typeof val === 'string') { 2028 dur = moment.duration(isNaN(+val) ? +input : +val, isNaN(+val) ? val : input); 2029 } else if (typeof input === 'string') { 2030 dur = moment.duration(+val, input); 2031 } else { 2032 dur = moment.duration(input, val); 2033 } 2034 addOrSubtractDurationFromMoment(this, dur, -1); 2035 return this; 2036 }, 2037 2038 diff : function (input, units, asFloat) { 2039 var that = makeAs(input, this), 2040 zoneDiff = (this.zone() - that.zone()) * 6e4, 2041 diff, output; 2042 2043 units = normalizeUnits(units); 2044 2045 if (units === 'year' || units === 'month') { 2046 // average number of days in the months in the given dates 2047 diff = (this.daysInMonth() + that.daysInMonth()) * 432e5; // 24 * 60 * 60 * 1000 / 2 2048 // difference in months 2049 output = ((this.year() - that.year()) * 12) + (this.month() - that.month()); 2050 // adjust by taking difference in days, average number of days 2051 // and dst in the given months. 2052 output += ((this - moment(this).startOf('month')) - 2053 (that - moment(that).startOf('month'))) / diff; 2054 // same as above but with zones, to negate all dst 2055 output -= ((this.zone() - moment(this).startOf('month').zone()) - 2056 (that.zone() - moment(that).startOf('month').zone())) * 6e4 / diff; 2057 if (units === 'year') { 2058 output = output / 12; 2059 } 2060 } else { 2061 diff = (this - that); 2062 output = units === 'second' ? diff / 1e3 : // 1000 2063 units === 'minute' ? diff / 6e4 : // 1000 * 60 2064 units === 'hour' ? diff / 36e5 : // 1000 * 60 * 60 2065 units === 'day' ? (diff - zoneDiff) / 864e5 : // 1000 * 60 * 60 * 24, negate dst 2066 units === 'week' ? (diff - zoneDiff) / 6048e5 : // 1000 * 60 * 60 * 24 * 7, negate dst 2067 diff; 2068 } 2069 return asFloat ? output : absRound(output); 2070 }, 2071 2072 from : function (time, withoutSuffix) { 2073 return moment.duration(this.diff(time)).lang(this.lang()._abbr).humanize(!withoutSuffix); 2074 }, 2075 2076 fromNow : function (withoutSuffix) { 2077 return this.from(moment(), withoutSuffix); 2078 }, 2079 2080 calendar : function (time) { 2081 // We want to compare the start of today, vs this. 2082 // Getting start-of-today depends on whether we're zone'd or not. 2083 var now = time || moment(), 2084 sod = makeAs(now, this).startOf('day'), 2085 diff = this.diff(sod, 'days', true), 2086 format = diff < -6 ? 'sameElse' : 2087 diff < -1 ? 'lastWeek' : 2088 diff < 0 ? 'lastDay' : 2089 diff < 1 ? 'sameDay' : 2090 diff < 2 ? 'nextDay' : 2091 diff < 7 ? 'nextWeek' : 'sameElse'; 2092 return this.format(this.lang().calendar(format, this)); 2093 }, 2094 2095 isLeapYear : function () { 2096 return isLeapYear(this.year()); 2097 }, 2098 2099 isDST : function () { 2100 return (this.zone() < this.clone().month(0).zone() || 2101 this.zone() < this.clone().month(5).zone()); 2102 }, 2103 2104 day : function (input) { 2105 var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); 2106 if (input != null) { 2107 input = parseWeekday(input, this.lang()); 2108 return this.add({ d : input - day }); 2109 } else { 2110 return day; 2111 } 2112 }, 2113 2114 month : makeAccessor('Month', true), 2115 2116 startOf: function (units) { 2117 units = normalizeUnits(units); 2118 // the following switch intentionally omits break keywords 2119 // to utilize falling through the cases. 2120 switch (units) { 2121 case 'year': 2122 this.month(0); 2123 /* falls through */ 2124 case 'quarter': 2125 case 'month': 2126 this.date(1); 2127 /* falls through */ 2128 case 'week': 2129 case 'isoWeek': 2130 case 'day': 2131 this.hours(0); 2132 /* falls through */ 2133 case 'hour': 2134 this.minutes(0); 2135 /* falls through */ 2136 case 'minute': 2137 this.seconds(0); 2138 /* falls through */ 2139 case 'second': 2140 this.milliseconds(0); 2141 /* falls through */ 2142 } 2143 2144 // weeks are a special case 2145 if (units === 'week') { 2146 this.weekday(0); 2147 } else if (units === 'isoWeek') { 2148 this.isoWeekday(1); 2149 } 2150 2151 // quarters are also special 2152 if (units === 'quarter') { 2153 this.month(Math.floor(this.month() / 3) * 3); 2154 } 2155 2156 return this; 2157 }, 2158 2159 endOf: function (units) { 2160 units = normalizeUnits(units); 2161 return this.startOf(units).add((units === 'isoWeek' ? 'week' : units), 1).subtract('ms', 1); 2162 }, 2163 2164 isAfter: function (input, units) { 2165 units = typeof units !== 'undefined' ? units : 'millisecond'; 2166 return +this.clone().startOf(units) > +moment(input).startOf(units); 2167 }, 2168 2169 isBefore: function (input, units) { 2170 units = typeof units !== 'undefined' ? units : 'millisecond'; 2171 return +this.clone().startOf(units) < +moment(input).startOf(units); 2172 }, 2173 2174 isSame: function (input, units) { 2175 units = units || 'ms'; 2176 return +this.clone().startOf(units) === +makeAs(input, this).startOf(units); 2177 }, 2178 2179 min: deprecate( 2180 "moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548", 2181 function (other) { 2182 other = moment.apply(null, arguments);
2183 return other < this ? this : other; 2184 } 2185 ), 2186 2187 max: deprecate( 2188 "moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548", 2189 function (other) { 2190 other = moment.apply(null, arguments); 2191 return other > this ? this : other; 2192 } 2193 ), 2194 2195 // keepTime = true means only change the timezone, without affecting 2196 // the local hour. So 5:31:26 +0300 --[zone(2, true)]--> 5:31:26 +0200 2197 // It is possible that 5:31:26 doesn't exist int zone +0200, so we 2198 // adjust the time as needed, to be valid. 2199 // 2200 // Keeping the time actually adds/subtracts (one hour) 2201 // from the actual represented time. That is why we call updateOffset 2202 // a second time. In case it wants us to change the offset again 2203 // _changeInProgress == true case, then we have to adjust, because 2204 // there is no such time in the given timezone. 2205 zone : function (input, keepTime) { 2206 var offset = this._offset || 0; 2207 if (input != null) { 2208 if (typeof input === "string") { 2209 input = timezoneMinutesFromString(input); 2210 } 2211 if (Math.abs(input) < 16) { 2212 input = input * 60; 2213 } 2214 this._offset = input; 2215 this._isUTC = true; 2216 if (offset !== input) { 2217 if (!keepTime || this._changeInProgress) { 2218 addOrSubtractDurationFromMoment(this, 2219 moment.duration(offset - input, 'm'), 1, false); 2220 } else if (!this._changeInProgress) { 2221 this._changeInProgress = true; 2222 moment.updateOffset(this, true); 2223 this._changeInProgress = null; 2224 } 2225 } 2226 } else { 2227 return this._isUTC ? offset : this._d.getTimezoneOffset(); 2228 } 2229 return this; 2230 }, 2231 2232 zoneAbbr : function () { 2233 return this._isUTC ? "UTC" : ""; 2234 }, 2235 2236 zoneName : function () { 2237 return this._isUTC ? "Coordinated Universal Time" : ""; 2238 }, 2239 2240 parseZone : function () { 2241 if (this._tzm) { 2242 this.zone(this._tzm); 2243 } else if (typeof this._i === 'string') { 2244 this.zone(this._i); 2245 } 2246 return this; 2247 }, 2248 2249 hasAlignedHourOffset : function (input) { 2250 if (!input) { 2251 input = 0; 2252 } 2253 else { 2254 input = moment(input).zone(); 2255 } 2256 2257 return (this.zone() - input) % 60 === 0; 2258 }, 2259 2260 daysInMonth : function () { 2261 return daysInMonth(this.year(), this.month()); 2262 }, 2263 2264 dayOfYear : function (input) { 2265 var dayOfYear = round((moment(this).startOf('day') - moment(this).startOf('year')) / 864e5) + 1; 2266 return input == null ? dayOfYear : this.add("d", (input - dayOfYear)); 2267 }, 2268 2269 quarter : function (input) { 2270 return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3); 2271 }, 2272 2273 weekYear : function (input) { 2274 var year = weekOfYear(this, this.lang()._week.dow, this.lang()._week.doy).year; 2275 return input == null ? year : this.add("y", (input - year)); 2276 }, 2277 2278 isoWeekYear : function (input) { 2279 var year = weekOfYear(this, 1, 4).year; 2280 return input == null ? year : this.add("y", (input - year)); 2281 }, 2282 2283 week : function (input) { 2284 var week = this.lang().week(this); 2285 return input == null ? week : this.add("d", (input - week) * 7); 2286 }, 2287 2288 isoWeek : function (input) { 2289 var week = weekOfYear(this, 1, 4).week; 2290 return input == null ? week : this.add("d", (input - week) * 7); 2291 }, 2292 2293 weekday : function (input) { 2294 var weekday = (this.day() + 7 - this.lang()._week.dow) % 7; 2295 return input == null ? weekday : this.add("d", input - weekday); 2296 }, 2297 2298 isoWeekday : function (input) { 2299 // behaves the same as moment#day except 2300 // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6) 2301 // as a setter, sunday should belong to the previous week. 2302 return input == null ? this.day() || 7 : this.day(this.day() % 7 ? input : input - 7); 2303 }, 2304 2305 isoWeeksInYear : function () { 2306 return weeksInYear(this.year(), 1, 4); 2307 }, 2308 2309 weeksInYear : function () { 2310 var weekInfo = this._lang._week; 2311 return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); 2312 }, 2313 2314 get : function (units) { 2315 units = normalizeUnits(units); 2316 return this[units](); 2317 }, 2318 2319 set : function (units, value) { 2320 units = normalizeUnits(units); 2321 if (typeof this[units] === 'function') { 2322 this[units](value); 2323 } 2324 return this; 2325 }, 2326 2327 // If passed a language key, it will set the language for this 2328 // instance. Otherwise, it will return the language configuration 2329 // variables for this instance. 2330 lang : function (key) { 2331 if (key === undefined) { 2332 return this._lang; 2333 } else { 2334 this._lang = getLangDefinition(key); 2335 return this; 2336 } 2337 } 2338 }); 2339 2340 function rawMonthSetter(mom, value) { 2341 var dayOfMonth; 2342 2343 // TODO: Move this out of here! 2344 if (typeof value === 'string') { 2345 value = mom.lang().monthsParse(value); 2346 // TODO: Another silent failure? 2347 if (typeof value !== 'number') { 2348 return mom; 2349 } 2350 } 2351 2352 dayOfMonth = Math.min(mom.date(), 2353 daysInMonth(mom.year(), value)); 2354 mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth); 2355 return mom; 2356 } 2357 2358 function rawGetter(mom, unit) { 2359 return mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit](); 2360 } 2361 2362 function rawSetter(mom, unit, value) { 2363 if (unit === 'Month') { 2364 return rawMonthSetter(mom, value); 2365 } else { 2366 return mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value); 2367 } 2368 } 2369 2370 function makeAccessor(unit, keepTime) { 2371 return function (value) { 2372 if (value != null) { 2373 rawSetter(this, unit, value); 2374 moment.updateOffset(this, keepTime); 2375 return this; 2376 } else { 2377 return rawGetter(this, unit); 2378 } 2379 }; 2380 } 2381 2382 moment.fn.millisecond = moment.fn.milliseconds = makeAccessor('Milliseconds', false); 2383 moment.fn.second = moment.fn.seconds = makeAccessor('Seconds', false); 2384 moment.fn.minute = moment.fn.minutes = makeAccessor('Minutes', false); 2385 // Setting the hour should keep the time, because the user explicitly 2386 // specified which hour he wants. So trying to maintain the same hour (in 2387 // a new timezone) makes sense. Adding/subtracting hours does not follow 2388 // this rule. 2389 moment.fn.hour = moment.fn.hours = makeAccessor('Hours', true); 2390 // moment.fn.month is defined separately 2391 moment.fn.date = makeAccessor('Date', true); 2392 moment.fn.dates = deprecate("dates accessor is deprecated. Use date instead.", makeAccessor('Date', true)); 2393 moment.fn.year = makeAccessor('FullYear', true); 2394 moment.fn.years = deprecate("years accessor is deprecated. Use year instead.", makeAccessor('FullYear', true)); 2395 2396 // add plural methods 2397 moment.fn.days = moment.fn.day; 2398 moment.fn.months = moment.fn.month; 2399 moment.fn.weeks = moment.fn.week; 2400 moment.fn.isoWeeks = moment.fn.isoWeek; 2401 moment.fn.quarters = moment.fn.quarter; 2402 2403 // add aliased format methods 2404 moment.fn.toJSON = moment.fn.toISOString; 2405 2406 /************************************ 2407 Duration Prototype 2408 ************************************/ 2409 2410 2411 extend(moment.duration.fn = Duration.prototype, { 2412 2413 _bubble : function () { 2414 var milliseconds = this._milliseconds, 2415 days = this._days, 2416 months = this._months, 2417 data = this._data, 2418 seconds, minutes, hours, years; 2419 2420 // The following code bubbles up values, see the tests for 2421 // examples of what that means. 2422 data.milliseconds = milliseconds % 1000; 2423 2424 seconds = absRound(milliseconds / 1000); 2425 data.seconds = seconds % 60; 2426 2427 minutes = absRound(seconds / 60); 2428 data.minutes = minutes % 60; 2429 2430 hours = absRound(minutes / 60); 2431 data.hours = hours % 24; 2432 2433 days += absRound(hours / 24); 2434 data.days = days % 30; 2435 2436 months += absRound(days / 30); 2437 data.months = months % 12; 2438 2439 years = absRound(months / 12); 2440 data.years = years; 2441 }, 2442 2443 weeks : function () { 2444 return absRound(this.days() / 7); 2445 }, 2446 2447 valueOf : function () { 2448 return this._milliseconds + 2449 this._days * 864e5 + 2450 (this._months % 12) * 2592e6 + 2451 toInt(this._months / 12) * 31536e6; 2452 }, 2453 2454 humanize : function (withSuffix) { 2455 var difference = +this, 2456 output = relativeTime(difference, !withSuffix, this.lang()); 2457 2458 if (withSuffix) { 2459 output = this.lang().pastFuture(difference, output); 2460 } 2461
2462 return this.lang().postformat(output); 2463 }, 2464 2465 add : function (input, val) { 2466 // supports only 2.0-style add(1, 's') or add(moment) 2467 var dur = moment.duration(input, val); 2468 2469 this._milliseconds += dur._milliseconds; 2470 this._days += dur._days; 2471 this._months += dur._months; 2472 2473 this._bubble(); 2474 2475 return this; 2476 }, 2477 2478 subtract : function (input, val) { 2479 var dur = moment.duration(input, val); 2480 2481 this._milliseconds -= dur._milliseconds; 2482 this._days -= dur._days; 2483 this._months -= dur._months; 2484 2485 this._bubble(); 2486 2487 return this; 2488 }, 2489 2490 get : function (units) { 2491 units = normalizeUnits(units); 2492 return this[units.toLowerCase() + 's'](); 2493 }, 2494 2495 as : function (units) { 2496 units = normalizeUnits(units); 2497 return this['as' + units.charAt(0).toUpperCase() + units.slice(1) + 's'](); 2498 }, 2499 2500 lang : moment.fn.lang, 2501 2502 toIsoString : function () { 2503 // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js 2504 var years = Math.abs(this.years()), 2505 months = Math.abs(this.months()), 2506 days = Math.abs(this.days()), 2507 hours = Math.abs(this.hours()), 2508 minutes = Math.abs(this.minutes()), 2509 seconds = Math.abs(this.seconds() + this.milliseconds() / 1000); 2510 2511 if (!this.asSeconds()) { 2512 // this is the same as C#'s (Noda) and python (isodate)... 2513 // but not other JS (goog.date) 2514 return 'P0D'; 2515 } 2516 2517 return (this.asSeconds() < 0 ? '-' : '') + 2518 'P' + 2519 (years ? years + 'Y' : '') + 2520 (months ? months + 'M' : '') + 2521 (days ? days + 'D' : '') + 2522 ((hours || minutes || seconds) ? 'T' : '') + 2523 (hours ? hours + 'H' : '') + 2524 (minutes ? minutes + 'M' : '') + 2525 (seconds ? seconds + 'S' : ''); 2526 } 2527 }); 2528 2529 function makeDurationGetter(name) { 2530 moment.duration.fn[name] = function () { 2531 return this._data[name]; 2532 }; 2533 } 2534 2535 function makeDurationAsGetter(name, factor) { 2536 moment.duration.fn['as' + name] = function () { 2537 return +this / factor; 2538 }; 2539 } 2540 2541 for (i in unitMillisecondFactors) { 2542 if (unitMillisecondFactors.hasOwnProperty(i)) { 2543 makeDurationAsGetter(i, unitMillisecondFactors[i]); 2544 makeDurationGetter(i.toLowerCase()); 2545 } 2546 } 2547 2548 makeDurationAsGetter('Weeks', 6048e5); 2549 moment.duration.fn.asMonths = function () { 2550 return (+this - this.years() * 31536e6) / 2592e6 + this.years() * 12; 2551 }; 2552 2553 2554 /************************************ 2555 Default Lang 2556 ************************************/ 2557 2558 2559 // Set default language, other languages will inherit from English. 2560 moment.lang('en', { 2561 ordinal : function (number) { 2562 var b = number % 10, 2563 output = (toInt(number % 100 / 10) === 1) ? 'th' : 2564 (b === 1) ? 'st' : 2565 (b === 2) ? 'nd' : 2566 (b === 3) ? 'rd' : 'th'; 2567 return number + output; 2568 } 2569 }); 2570 2571 // moment.js language configuration 2572// language : Moroccan Arabic (ar-ma) 2573// author : ElFadili Yassine : https://github.com/ElFadiliY 2574// author : Abdel Said : https://github.com/abdelsaid 2575 2576(function (factory) { 2577 factory(moment); 2578}(function (moment) { 2579 return moment.lang('ar-ma', { 2580 months : "ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_٠ارس_أبرÙÙ_٠اÙ_ÙÙÙÙÙ_ÙÙÙÙÙØ²_غشت_Ø´ØªÙØ¨Ø±_Ø£ÙØªÙبر_ÙÙÙØ¨Ø±_Ø¯Ø¬ÙØ¨Ø±".split("_"), 2581 monthsShort : "ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_٠ارس_أبرÙÙ_٠اÙ_ÙÙÙÙÙ_ÙÙÙÙÙØ²_غشت_Ø´ØªÙØ¨Ø±_Ø£ÙØªÙبر_ÙÙÙØ¨Ø±_Ø¯Ø¬ÙØ¨Ø±".split("_"), 2582 weekdays : "Ø§ÙØ£ØØ¯_Ø§ÙØ¥ØªÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù ÙØ³_Ø§ÙØ¬Ù عة_Ø§ÙØ³Ø¨Øª".split("_"), 2583 weekdaysShort : "Ø§ØØ¯_اتÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_اربعاء_Ø®Ù ÙØ³_ج٠عة_سبت".split("_"), 2584 weekdaysMin : "Ø_Ù_Ø«_ر_Ø®_ج_س".split("_"), 2585 longDateFormat : { 2586 LT : "HH:mm", 2587 L : "DD/MM/YYYY", 2588 LL : "D MMMM YYYY", 2589 LLL : "D MMMM YYYY LT", 2590 LLLL : "dddd D MMMM YYYY LT" 2591 }, 2592 calendar : { 2593 sameDay: "[اÙÙÙ٠عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT", 2594 nextDay: '[غدا عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 2595 nextWeek: 'dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 2596 lastDay: '[أ٠س عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 2597 lastWeek: 'dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 2598 sameElse: 'L' 2599 }, 2600 relativeTime : { 2601 future : "ÙÙ %s", 2602 past : "Ù ÙØ° %s", 2603 s : "Ø«ÙØ§Ù", 2604 m : "دÙÙÙØ©", 2605 mm : "%d Ø¯ÙØ§Ø¦Ù", 2606 h : "ساعة", 2607 hh : "%d ساعات", 2608 d : "ÙÙÙ ", 2609 dd : "%d Ø£ÙØ§Ù ", 2610 M : "Ø´ÙØ±", 2611 MM : "%d Ø£Ø´ÙØ±", 2612 y : "Ø³ÙØ©", 2613 yy : "%d سÙÙØ§Øª" 2614 }, 2615 week : { 2616 dow : 6, // Saturday is the first day of the week. 2617 doy : 12 // The week that contains Jan 1st is the first week of the year. 2618 } 2619 }); 2620})); 2621// moment.js language configuration 2622// language : Arabic Saudi Arabia (ar-sa) 2623// author : Suhail Alkowaileet : https://github.com/xsoh 2624 2625(function (factory) { 2626 factory(moment); 2627}(function (moment) { 2628 var symbolMap = { 2629 '1': 'Ù¡', 2630 '2': 'Ù¢', 2631 '3': 'Ù£', 2632 '4': 'Ù¤', 2633 '5': 'Ù¥', 2634 '6': 'Ù¦', 2635 '7': 'Ù§', 2636 '8': 'Ù¨', 2637 '9': 'Ù©', 2638 '0': 'Ù ' 2639 }, numberMap = { 2640 'Ù¡': '1', 2641 'Ù¢': '2', 2642 'Ù£': '3', 2643 'Ù¤': '4', 2644 'Ù¥': '5', 2645 'Ù¦': '6', 2646 'Ù§': '7', 2647 'Ù¨': '8', 2648 'Ù©': '9', 2649 'Ù ': '0' 2650 }; 2651 2652 return moment.lang('ar-sa', { 2653 months : "ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_٠ارس_أبرÙÙ_٠اÙÙ_ÙÙÙÙÙ_ÙÙÙÙÙ_أغسطس_سبت٠بر_Ø£ÙØªÙبر_ÙÙÙ٠بر_Ø¯ÙØ³Ù بر".split("_"), 2654 monthsShort : "ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_٠ارس_أبرÙÙ_٠اÙÙ_ÙÙÙÙÙ_ÙÙÙÙÙ_أغسطس_سبت٠بر_Ø£ÙØªÙبر_ÙÙÙ٠بر_Ø¯ÙØ³Ù بر".split("_"), 2655 weekdays : "Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù ÙØ³_Ø§ÙØ¬Ù عة_Ø§ÙØ³Ø¨Øª".split("_"), 2656 weekdaysShort : "Ø£ØØ¯_إثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_أربعاء_Ø®Ù ÙØ³_ج٠عة_سبت".split("_"), 2657 weekdaysMin : "Ø_Ù_Ø«_ر_Ø®_ج_س".split("_"), 2658 longDateFormat : { 2659 LT : "HH:mm", 2660 L : "DD/MM/YYYY", 2661 LL : "D MMMM YYYY", 2662 LLL : "D MMMM YYYY LT", 2663 LLLL : "dddd D MMMM YYYY LT" 2664 }, 2665 meridiem : function (hour, minute, isLower) { 2666 if (hour < 12) { 2667 return "ص"; 2668 } else { 2669 return "Ù "; 2670 } 2671 }, 2672 calendar : { 2673 sameDay: "[اÙÙÙ٠عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT", 2674 nextDay: '[غدا عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 2675 nextWeek: 'dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 2676 lastDay: '[أ٠س عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 2677 lastWeek: 'dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 2678 sameElse: 'L' 2679 }, 2680 relativeTime : { 2681 future : "ÙÙ %s", 2682 past : "Ù ÙØ° %s", 2683 s : "Ø«ÙØ§Ù", 2684 m : "دÙÙÙØ©", 2685 mm : "%d Ø¯ÙØ§Ø¦Ù", 2686 h : "ساعة", 2687 hh : "%d ساعات", 2688 d : "ÙÙÙ ", 2689 dd : "%d Ø£ÙØ§Ù ", 2690 M : "Ø´ÙØ±", 2691 MM : "%d Ø£Ø´ÙØ±", 2692 y : "Ø³ÙØ©", 2693 yy : "%d سÙÙØ§Øª" 2694 }, 2695 preparse: function (string) { 2696 return string.replace(/[Û°-Û¹]/g, function (match) { 2697 return numberMap[match]; 2698 }).replace(/Ø/g, ','); 2699 }, 2700 postformat: function (string) { 2701 return string.replace(/\d/g, function (match) { 2702 return symbolMap[match]; 2703 }).replace(/,/g, 'Ø'); 2704 }, 2705 week : { 2706 dow : 6, // Saturday is the first day of the week. 2707 doy : 12 // The week that contains Jan 1st is the first week of the year. 2708 } 2709 }); 2710})); 2711// moment.js language configuration 2712// language : Arabic (ar) 2713// author : Abdel Said : https://github.com/abdelsaid 2714// changes in months, weekdays : Ahmed Elkhatib 2715 2716(function (factory) { 2717 factory(moment); 2718}(function (moment) { 2719 var symbolMap = { 2720 '1': 'Ù¡', 2721 '2': 'Ù¢', 2722 '3': 'Ù£', 2723 '4': 'Ù¤', 2724 '5': 'Ù¥', 2725 '6': 'Ù¦', 2726 '7': 'Ù§', 2727 '8': 'Ù¨', 2728 '9': 'Ù©', 2729 '0': 'Ù ' 2730 }, numberMap = { 2731 'Ù¡': '1', 2732 'Ù¢': '2', 2733 'Ù£': '3', 2734 'Ù¤': '4', 2735 'Ù¥': '5', 2736 'Ù¦': '6', 2737 'Ù§': '7', 2738 'Ù¨': '8', 2739 'Ù©': '9', 2740 'Ù ': '0' 2741 }; 2742 2743 return moment.lang('ar', { 2744 months : "ÙÙØ§Ùر/ ÙØ§ÙÙÙ Ø§ÙØ«Ø§ÙÙ_ÙØ¨Ø±Ø§Ùر/ شباط_٠ارس/ آذار_أبرÙÙ/ ÙÙØ³Ø§Ù_٠اÙÙ/ Ø£ÙØ§Ø±_ÙÙÙÙÙ/ ØØ²ÙراÙ_ÙÙÙÙÙ/ ØªÙ ÙØ²_أغسطس/ آب_سبت٠بر/ Ø£ÙÙÙÙ_Ø£ÙØªÙبر/ تشرÙÙ Ø§ÙØ£ÙÙ_ÙÙÙ٠بر/ تشرÙÙ Ø§ÙØ«Ø§ÙÙ_Ø¯ÙØ³Ù بر/ ÙØ§ÙÙÙ Ø§ÙØ£ÙÙ".split("_"), 2745 monthsShort : "ÙÙØ§Ùر/ ÙØ§ÙÙÙ Ø§ÙØ«Ø§ÙÙ_ÙØ¨Ø±Ø§Ùر/ شباط_٠ارس/ آذار_أبرÙÙ/ ÙÙØ³Ø§Ù_٠اÙÙ/ Ø£ÙØ§Ø±_ÙÙÙÙÙ/ ØØ²ÙراÙ_ÙÙÙÙÙ/ ØªÙ ÙØ²_أغسطس/ آب_سبت٠بر/ Ø£ÙÙÙÙ_Ø£ÙØªÙبر/ تشرÙÙ Ø§ÙØ£ÙÙ_ÙÙÙ٠بر/ تشرÙÙ Ø§ÙØ«Ø§ÙÙ_Ø¯ÙØ³Ù بر/ ÙØ§ÙÙÙ Ø§ÙØ£ÙÙ".split("_"), 2746 weekdays : "Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù ÙØ³_Ø§ÙØ¬Ù عة_Ø§ÙØ³Ø¨Øª".split("_"), 2747 weekdaysShort : "Ø£ØØ¯_إثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_أربعاء_Ø®Ù ÙØ³_ج٠عة_سبت".split("_"), 2748 weekdaysMin : "Ø_Ù_Ø«_ر_Ø®_ج_س".split("_"), 2749 longDateFormat : { 2750 LT : "HH:mm", 2751 L : "DD/MM/YYYY", 2752 LL : "D MMMM YYYY", 2753 LLL : "D MMMM YYYY LT", 2754 LLLL : "dddd D MMMM YYYY LT" 2755 }, 2756 meridiem : function (hour, minute, isLower) { 2757 if (hour < 12) { 2758 return "ص"; 2759 } else { 2760 return "Ù "; 2761 } 2762 }, 2763 calendar : { 2764 sameDay: "[اÙÙÙ٠عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT", 2765 nextDay: '[غدا عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 2766 nextWeek: 'dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 2767 lastDay: '[أ٠س عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 2768 lastWeek: 'dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT', 2769 sameElse: 'L' 2770 }, 2771 relativeTime : { 2772 future : "ÙÙ %s", 2773 past : "Ù ÙØ° %s", 2774 s : "Ø«ÙØ§Ù", 2775 m : "دÙÙÙØ©", 2776 mm : "%d Ø¯ÙØ§Ø¦Ù", 2777 h : "ساعة", 2778 hh : "%d ساعات", 2779 d : "ÙÙÙ ", 2780 dd : "%d Ø£ÙØ§Ù ", 2781 M : "Ø´ÙØ±", 2782 MM : "%d Ø£Ø´ÙØ±", 2783 y : "Ø³ÙØ©", 2784 yy : "%d سÙÙØ§Øª" 2785 }, 2786 preparse: function (string) { 2787 return string.replace(/[Û°-Û¹]/g, function (match) { 2788 return numberMap[match]; 2789 }).replace(/Ø/g, ','); 2790 }, 2791 postformat: function (string) { 2792 return string.replace(/\d/g, function (match) { 2793 return symbolMap[match]; 2794 }).replace(/,/g, 'Ø'); 2795 }, 2796 week : { 2797 dow : 6, // Saturday is the first day of the week. 2798 doy : 12 // The week that contains Jan 1st is the first week of the year. 2799 } 2800 }); 2801})); 2802// moment.js language configuration 2803// language : azerbaijani (az) 2804// author : topchiyev : https://github.com/topchiyev 2805 2806(function (factory) { 2807 factory(moment); 2808}(function (moment) { 2809 2810 var suffixes = { 2811 1: "-inci", 2812 5: "-inci", 2813 8: "-inci", 2814 70: "-inci", 2815 80: "-inci", 2816 2817 2: "-nci", 2818 7: "-nci", 2819 20: "-nci", 2820 50: "-nci", 2821 2822 3: "-üncü", 2823 4: "-üncü", 2824 100: "-üncü", 2825 2826 6: "-ncı", 2827 2828 9: "-uncu", 2829 10: "-uncu", 2830 30: "-uncu", 2831 2832 60: "-ıncı", 2833 90: "-ıncı" 2834 }; 2835 return moment.lang('az', { 2836 months : "yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"), 2837 monthsShort : "yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"), 2838 weekdays : "Bazar_Bazar ertÉsi_ÃÉrÅÉnbÉ axÅamı_ÃÉrÅÉnbÉ_CümÉ axÅamı_CümÉ_ÅÉnbÉ".split("_"), 2839 weekdaysShort : "Baz_BzE_ÃAx_ÃÉr_CAx_Cüm_ÅÉn".split("_"), 2840 weekdaysMin : "Bz_BE_ÃA_ÃÉ_CA_Cü_ÅÉ".split("_"), 2841 longDateFormat : { 2842 LT : "HH:mm", 2843 L : "DD.MM.YYYY", 2844 LL : "D MMMM YYYY", 2845 LLL : "D MMMM YYYY LT", 2846 LLLL : "dddd, D MMMM YYYY LT" 2847 }, 2848 calendar : { 2849 sameDay : '[bugün saat] LT', 2850 nextDay : '[sabah saat] LT', 2851 nextWeek : '[gÉlÉn hÉftÉ] dddd [saat] LT', 2852 lastDay : '[dünÉn] LT',
vendor: 24,810 bytes, lines 2853-3550
2853 lastWeek : '[keçÉn hÉftÉ] dddd [saat] LT', 2854 sameElse : 'L' 2855 }, 2856 relativeTime : { 2857 future : "%s sonra", 2858 past : "%s ÉvvÉl", 2859 s : "birneÃ§É saniyyÉ", 2860 m : "bir dÉqiqÉ", 2861 mm : "%d dÉqiqÉ", 2862 h : "bir saat", 2863 hh : "%d saat", 2864 d : "bir gün", 2865 dd : "%d gün", 2866 M : "bir ay", 2867 MM : "%d ay", 2868 y : "bir il", 2869 yy : "%d il" 2870 }, 2871 meridiem : function (hour, minute, isLower) { 2872 if (hour < 4) { 2873 return "gecÉ"; 2874 } else if (hour < 12) { 2875 return "sÉhÉr"; 2876 } else if (hour < 17) { 2877 return "gündüz"; 2878 } else { 2879 return "axÅam"; 2880 } 2881 }, 2882 ordinal : function (number) { 2883 if (number === 0) { // special case for zero 2884 return number + "-ıncı"; 2885 } 2886 var a = number % 10, 2887 b = number % 100 - a, 2888 c = number >= 100 ? 100 : null; 2889 2890 return number + (suffixes[a] || suffixes[b] || suffixes[c]); 2891 }, 2892 week : { 2893 dow : 1, // Monday is the first day of the week. 2894 doy : 7 // The week that contains Jan 1st is the first week of the year. 2895 } 2896 }); 2897})); 2898// moment.js language configuration 2899// language : bulgarian (bg) 2900// author : Krasen Borisov : https://github.com/kraz 2901 2902(function (factory) { 2903 factory(moment); 2904}(function (moment) { 2905 return moment.lang('bg', { 2906 months : "ÑнÑаÑи_ÑевÑÑаÑи_маÑÑ_апÑил_май_Ñни_Ñли_авгÑÑÑ_ÑепÑемвÑи_окÑомвÑи_ноемвÑи_декемвÑи".split("_"), 2907 monthsShort : "ÑнÑ_Ñев_маÑ_апÑ_май_Ñни_Ñли_авг_Ñеп_окÑ_ное_дек".split("_"), 2908 weekdays : "неделÑ_понеделник_вÑоÑник_ÑÑÑда_ÑеÑвÑÑÑÑк_пеÑÑк_ÑÑбоÑа".split("_"), 2909 weekdaysShort : "нед_пон_вÑо_ÑÑÑ_ÑеÑ_пеÑ_ÑÑб".split("_"), 2910 weekdaysMin : "нд_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"), 2911 longDateFormat : { 2912 LT : "H:mm", 2913 L : "D.MM.YYYY", 2914 LL : "D MMMM YYYY", 2915 LLL : "D MMMM YYYY LT", 2916 LLLL : "dddd, D MMMM YYYY LT" 2917 }, 2918 calendar : { 2919 sameDay : '[ÐÐ½ÐµÑ Ð²] LT', 2920 nextDay : '[УÑÑе в] LT', 2921 nextWeek : 'dddd [в] LT', 2922 lastDay : '[ÐÑеÑа в] LT', 2923 lastWeek : function () { 2924 switch (this.day()) { 2925 case 0: 2926 case 3: 2927 case 6: 2928 return '[РизминалаÑа] dddd [в] LT'; 2929 case 1: 2930 case 2: 2931 case 4: 2932 case 5: 2933 return '[РизминалиÑ] dddd [в] LT'; 2934 } 2935 }, 2936 sameElse : 'L' 2937 }, 2938 relativeTime : { 2939 future : "Ñлед %s", 2940 past : "пÑеди %s", 2941 s : "нÑколко ÑекÑнди", 2942 m : "минÑÑа", 2943 mm : "%d минÑÑи", 2944 h : "ÑаÑ", 2945 hh : "%d ÑаÑа", 2946 d : "ден", 2947 dd : "%d дни", 2948 M : "меÑеÑ", 2949 MM : "%d меÑеÑа", 2950 y : "година", 2951 yy : "%d години" 2952 }, 2953 ordinal : function (number) { 2954 var lastDigit = number % 10, 2955 last2Digits = number % 100; 2956 if (number === 0) { 2957 return number + '-ев'; 2958 } else if (last2Digits === 0) { 2959 return number + '-ен'; 2960 } else if (last2Digits > 10 && last2Digits < 20) { 2961 return number + '-Ñи'; 2962 } else if (lastDigit === 1) { 2963 return number + '-ви'; 2964 } else if (lastDigit === 2) { 2965 return number + '-Ñи'; 2966 } else if (lastDigit === 7 || lastDigit === 8) { 2967 return number + '-ми'; 2968 } else { 2969 return number + '-Ñи'; 2970 } 2971 }, 2972 week : { 2973 dow : 1, // Monday is the first day of the week. 2974 doy : 7 // The week that contains Jan 1st is the first week of the year. 2975 } 2976 }); 2977})); 2978// moment.js language configuration 2979// language : Bengali (bn) 2980// author : Kaushik Gandhi : https://github.com/kaushikgandhi 2981 2982(function (factory) { 2983 factory(moment); 2984}(function (moment) { 2985 var symbolMap = { 2986 '1': 'à§§', 2987 '2': '২', 2988 '3': 'à§©', 2989 '4': '৪', 2990 '5': 'à§«', 2991 '6': '৬', 2992 '7': 'à§', 2993 '8': 'à§®', 2994 '9': '৯', 2995 '0': '০' 2996 }, 2997 numberMap = { 2998 'à§§': '1', 2999 '২': '2', 3000 'à§©': '3', 3001 '৪': '4', 3002 'à§«': '5', 3003 '৬': '6', 3004 'à§': '7', 3005 'à§®': '8', 3006 '৯': '9', 3007 '০': '0' 3008 }; 3009 3010 return moment.lang('bn', { 3011 months : 'à¦à¦¾à¦¨à§à§à¦¾à¦°à§_ফà§à¦¬à§à§à¦¾à¦°à§_মারà§à¦_à¦à¦ªà§à¦°à¦¿à¦²_মà§_à¦à§à¦¨_à¦à§à¦²à¦¾à¦_ঠà¦à¦¾à¦¸à§à¦_সà§à¦ªà§à¦à§à¦®à§à¦¬à¦°_ঠà¦à§à¦à§à¦¬à¦°_নà¦à§à¦®à§à¦¬à¦°_ডিসà§à¦®à§à¦¬à¦°'.split("_"), 3012 monthsShort : 'à¦à¦¾à¦¨à§_ফà§à¦¬_মারà§à¦_à¦à¦ªà¦°_মà§_à¦à§à¦¨_à¦à§à¦²_ঠà¦_সà§à¦ªà§à¦_ঠà¦à§à¦à§_নà¦_ডিসà§à¦®à§'.split("_"), 3013 weekdays : 'রবিবার_সà§à¦®à¦¬à¦¾à¦°_মà¦à§à¦à¦²à¦¬à¦¾à¦°_বà§à¦§à¦¬à¦¾à¦°_বà§à¦¹à¦¸à§à¦ªà¦¤à§à¦¤à¦¿à¦¬à¦¾à¦°_শà§à¦à§à¦°à§à¦¬à¦¾à¦°_শনিবার'.split("_"), 3014 weekdaysShort : 'রবি_সà§à¦®_মà¦à§à¦à¦²_বà§à¦§_বà§à¦¹à¦¸à§à¦ªà¦¤à§à¦¤à¦¿_শà§à¦à§à¦°à§_শনি'.split("_"), 3015 weekdaysMin : 'রব_সম_মà¦à§à¦_বà§_বà§à¦°à¦¿à¦¹_শà§_শনি'.split("_"), 3016 longDateFormat : { 3017 LT : "A h:mm সমà§", 3018 L : "DD/MM/YYYY", 3019 LL : "D MMMM YYYY", 3020 LLL : "D MMMM YYYY, LT", 3021 LLLL : "dddd, D MMMM YYYY, LT" 3022 }, 3023 calendar : { 3024 sameDay : '[à¦à¦] LT', 3025 nextDay : '[à¦à¦à¦¾à¦®à§à¦à¦¾à¦²] LT', 3026 nextWeek : 'dddd, LT', 3027 lastDay : '[à¦à¦¤à¦à¦¾à¦²] LT', 3028 lastWeek : '[à¦à¦¤] dddd, LT', 3029 sameElse : 'L' 3030 }, 3031 relativeTime : { 3032 future : "%s পরà§", 3033 past : "%s à¦à¦à§", 3034 s : "à¦à¦à¦ সà§à¦à§à¦¨à§à¦¡", 3035 m : "à¦à¦ মিনিà¦", 3036 mm : "%d মিনিà¦", 3037 h : "à¦à¦ à¦à¦¨à§à¦à¦¾", 3038 hh : "%d à¦à¦¨à§à¦à¦¾", 3039 d : "à¦à¦ দিন", 3040 dd : "%d দিন", 3041 M : "à¦à¦ মাস", 3042 MM : "%d মাস", 3043 y : "à¦à¦ বà¦à¦°", 3044 yy : "%d বà¦à¦°" 3045 }, 3046 preparse: function (string) { 3047 return string.replace(/[১২৩৪৫৬à§à§®à§¯à§¦]/g, function (match) { 3048 return numberMap[match]; 3049 }); 3050 }, 3051 postformat: function (string) { 3052 return string.replace(/\d/g, function (match) { 3053 return symbolMap[match]; 3054 }); 3055 }, 3056 //Bengali is a vast language its spoken 3057 //in different forms in various parts of the world. 3058 //I have just generalized with most common one used 3059 meridiem : function (hour, minute, isLower) { 3060 if (hour < 4) { 3061 return "রাত"; 3062 } else if (hour < 10) { 3063 return "শà¦à¦¾à¦²"; 3064 } else if (hour < 17) { 3065 return "দà§à¦ªà§à¦°"; 3066 } else if (hour < 20) { 3067 return "বিà¦à§à¦²"; 3068 } else { 3069 return "রাত"; 3070 } 3071 }, 3072 week : { 3073 dow : 0, // Sunday is the first day of the week. 3074 doy : 6 // The week that contains Jan 1st is the first week of the year. 3075 } 3076 }); 3077})); 3078// moment.js language configuration 3079// language : breton (br) 3080// author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou 3081 3082(function (factory) { 3083 factory(moment); 3084}(function (moment) { 3085 function relativeTimeWithMutation(number, withoutSuffix, key) { 3086 var format = { 3087 'mm': "munutenn", 3088 'MM': "miz", 3089 'dd': "devezh" 3090 }; 3091 return number + ' ' + mutation(format[key], number); 3092 } 3093 3094 function specialMutationForYears(number) { 3095 switch (lastNumber(number)) { 3096 case 1: 3097 case 3: 3098 case 4: 3099 case 5: 3100 case 9: 3101 return number + ' bloaz'; 3102 default: 3103 return number + ' vloaz'; 3104 } 3105 } 3106 3107 function lastNumber(number) { 3108 if (number > 9) { 3109 return lastNumber(number % 10); 3110 } 3111 return number; 3112 } 3113 3114 function mutation(text, number) { 3115 if (number === 2) { 3116 return softMutation(text); 3117 } 3118 return text; 3119 } 3120 3121 function softMutation(text) { 3122 var mutationTable = { 3123 'm': 'v', 3124 'b': 'v', 3125 'd': 'z' 3126 }; 3127 if (mutationTable[text.charAt(0)] === undefined) { 3128 return text; 3129 } 3130 return mutationTable[text.charAt(0)] + text.substring(1); 3131 } 3132 3133 return moment.lang('br', { 3134 months : "Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"), 3135 monthsShort : "Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"), 3136 weekdays : "Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"), 3137 weekdaysShort : "Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"), 3138 weekdaysMin : "Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"), 3139 longDateFormat : { 3140 LT : "h[e]mm A", 3141 L : "DD/MM/YYYY", 3142 LL : "D [a viz] MMMM YYYY", 3143 LLL : "D [a viz] MMMM YYYY LT", 3144 LLLL : "dddd, D [a viz] MMMM YYYY LT" 3145 }, 3146 calendar : { 3147 sameDay : '[Hiziv da] LT', 3148 nextDay : '[Warc\'hoazh da] LT', 3149 nextWeek : 'dddd [da] LT', 3150 lastDay : '[Dec\'h da] LT', 3151 lastWeek : 'dddd [paset da] LT', 3152 sameElse : 'L' 3153 }, 3154 relativeTime : { 3155 future : "a-benn %s", 3156 past : "%s 'zo", 3157 s : "un nebeud segondennoù", 3158 m : "ur vunutenn", 3159 mm : relativeTimeWithMutation, 3160 h : "un eur", 3161 hh : "%d eur", 3162 d : "un devezh", 3163 dd : relativeTimeWithMutation, 3164 M : "ur miz", 3165 MM : relativeTimeWithMutation, 3166 y : "ur bloaz", 3167 yy : specialMutationForYears 3168 }, 3169 ordinal : function (number) { 3170 var output = (number === 1) ? 'añ' : 'vet'; 3171 return number + output; 3172 }, 3173 week : { 3174 dow : 1, // Monday is the first day of the week. 3175 doy : 4 // The week that contains Jan 4th is the first week of the year. 3176 } 3177 }); 3178})); 3179// moment.js language configuration 3180// language : bosnian (bs) 3181// author : Nedim Cholich : https://github.com/frontyard 3182// based on (hr) translation by Bojan MarkoviÄ 3183 3184(function (factory) { 3185 factory(moment); 3186}(function (moment) { 3187 3188 function translate(number, withoutSuffix, key) { 3189 var result = number + " "; 3190 switch (key) { 3191 case 'm': 3192 return withoutSuffix ? 'jedna minuta' : 'jedne minute'; 3193 case 'mm': 3194 if (number === 1) { 3195 result += 'minuta'; 3196 } else if (number === 2 || number === 3 || number === 4) { 3197 result += 'minute'; 3198 } else { 3199 result += 'minuta'; 3200 } 3201 return result; 3202 case 'h': 3203 return withoutSuffix ? 'jedan sat' : 'jednog sata'; 3204 case 'hh': 3205 if (number === 1) { 3206 result += 'sat'; 3207 } else if (number === 2 || number === 3 || number === 4) { 3208 result += 'sata'; 3209 } else { 3210 result += 'sati'; 3211 } 3212 return result; 3213 case 'dd': 3214 if (number === 1) { 3215 result += 'dan'; 3216 } else { 3217 result += 'dana'; 3218 } 3219 return result; 3220 case 'MM': 3221 if (number === 1) { 3222 result += 'mjesec'; 3223 } else if (number === 2 || number === 3 || number === 4) { 3224 result += 'mjeseca'; 3225 } else { 3226 result += 'mjeseci'; 3227 } 3228 return result; 3229 case 'yy': 3230 if (number === 1) { 3231 result += 'godina'; 3232 } else if (number === 2 || number === 3 || number === 4) { 3233 result += 'godine'; 3234 } else { 3235 result += 'godina'; 3236 } 3237 return result; 3238 } 3239 } 3240 3241 return moment.lang('bs', { 3242 months : "januar_februar_mart_april_maj_juni_juli_avgust_septembar_oktobar_novembar_decembar".split("_"), 3243 monthsShort : "jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"), 3244 weekdays : "nedjelja_ponedjeljak_utorak_srijeda_Äetvrtak_petak_subota".split("_"), 3245 weekdaysShort : "ned._pon._uto._sri._Äet._pet._sub.".split("_"), 3246 weekdaysMin : "ne_po_ut_sr_Äe_pe_su".split("_"), 3247 longDateFormat : { 3248 LT : "H:mm", 3249 L : "DD. MM. YYYY", 3250 LL : "D. MMMM YYYY", 3251 LLL : "D. MMMM YYYY LT", 3252 LLLL : "dddd, D. MMMM YYYY LT" 3253 }, 3254 calendar : { 3255 sameDay : '[danas u] LT', 3256 nextDay : '[sutra u] LT', 3257 3258 nextWeek : function () { 3259 switch (this.day()) { 3260 case 0: 3261 return '[u] [nedjelju] [u] LT'; 3262 case 3: 3263 return '[u] [srijedu] [u] LT'; 3264 case 6: 3265 return '[u] [subotu] [u] LT'; 3266 case 1: 3267 case 2: 3268 case 4: 3269 case 5: 3270 return '[u] dddd [u] LT'; 3271 } 3272 }, 3273 lastDay : '[juÄer u] LT', 3274 lastWeek : function () { 3275 switch (this.day()) { 3276 case 0: 3277 case 3: 3278 return '[proÅ¡lu] dddd [u] LT'; 3279 case 6: 3280 return '[proÅ¡le] [subote] [u] LT'; 3281 case 1: 3282 case 2: 3283 case 4: 3284 case 5: 3285 return '[proÅ¡li] dddd [u] LT'; 3286 } 3287 }, 3288 sameElse : 'L' 3289 }, 3290 relativeTime : { 3291 future : "za %s", 3292 past : "prije %s", 3293 s : "par sekundi", 3294 m : translate, 3295 mm : translate, 3296 h : translate, 3297 hh : translate, 3298 d : "dan", 3299 dd : translate, 3300 M : "mjesec", 3301 MM : translate, 3302 y : "godinu", 3303 yy : translate 3304 }, 3305 ordinal : '%d.', 3306 week : { 3307 dow : 1, // Monday is the first day of the week. 3308 doy : 7 // The week that contains Jan 1st is the first week of the year. 3309 } 3310 }); 3311})); 3312// moment.js language configuration 3313// language : catalan (ca) 3314// author : Juan G. Hurtado : https://github.com/juanghurtado 3315 3316(function (factory) { 3317 factory(moment); 3318}(function (moment) { 3319 return moment.lang('ca', { 3320 months : "gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"), 3321 monthsShort : "gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"), 3322 weekdays : "diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"), 3323 weekdaysShort : "dg._dl._dt._dc._dj._dv._ds.".split("_"), 3324 weekdaysMin : "Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"), 3325 longDateFormat : { 3326 LT : "H:mm", 3327 L : "DD/MM/YYYY", 3328 LL : "D MMMM YYYY", 3329 LLL : "D MMMM YYYY LT", 3330 LLLL : "dddd D MMMM YYYY LT" 3331 }, 3332 calendar : { 3333 sameDay : function () { 3334 return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; 3335 }, 3336 nextDay : function () { 3337 return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; 3338 }, 3339 nextWeek : function () { 3340 return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; 3341 }, 3342 lastDay : function () { 3343 return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; 3344 }, 3345 lastWeek : function () { 3346 return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; 3347 }, 3348 sameElse : 'L' 3349 }, 3350 relativeTime : { 3351 future : "en %s", 3352 past : "fa %s", 3353 s : "uns segons", 3354 m : "un minut", 3355 mm : "%d minuts", 3356 h : "una hora", 3357 hh : "%d hores", 3358 d : "un dia", 3359 dd : "%d dies", 3360 M : "un mes", 3361 MM : "%d mesos", 3362 y : "un any", 3363 yy : "%d anys" 3364 }, 3365 ordinal : '%dº', 3366 week : { 3367 dow : 1, // Monday is the first day of the week. 3368 doy : 4 // The week that contains Jan 4th is the first week of the year. 3369 } 3370 }); 3371})); 3372// moment.js language configuration 3373// language : czech (cs) 3374// author : petrbela : https://github.com/petrbela 3375 3376(function (factory) { 3377 factory(moment); 3378}(function (moment) { 3379 var months = "leden_únor_bÅezen_duben_kvÄten_Äerven_Äervenec_srpen_záÅÃ_ÅÃjen_listopad_prosinec".split("_"), 3380 monthsShort = "led_úno_bÅe_dub_kvÄ_Ävn_Ävc_srp_záÅ_ÅÃj_lis_pro".split("_"); 3381 3382 function plural(n) { 3383 return (n > 1) && (n < 5) && (~~(n / 10) !== 1); 3384 } 3385 3386 function translate(number, withoutSuffix, key, isFuture) { 3387 var result = number + " "; 3388 switch (key) { 3389 case 's': // a few seconds / in a few seconds / a few seconds ago 3390 return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami'; 3391 case 'm': // a minute / in a minute / a minute ago 3392 return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou'); 3393 case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago 3394 if (withoutSuffix || isFuture) { 3395 return result + (plural(number) ? 'minuty' : 'minut'); 3396 } else { 3397 return result + 'minutami'; 3398 } 3399 break; 3400 case 'h': // an hour / in an hour / an hour ago 3401 return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou'); 3402 case 'hh': // 9 hours / in 9 hours / 9 hours ago 3403 if (withoutSuffix || isFuture) { 3404 return result + (plural(number) ? 'hodiny' : 'hodin'); 3405 } else { 3406 return result + 'hodinami'; 3407 } 3408 break; 3409 case 'd': // a day / in a day / a day ago 3410 return (withoutSuffix || isFuture) ? 'den' : 'dnem'; 3411 case 'dd': // 9 days / in 9 days / 9 days ago 3412 if (withoutSuffix || isFuture) { 3413 return result + (plural(number) ? 'dny' : 'dnÃ'); 3414 } else { 3415 return result + 'dny'; 3416 } 3417 break; 3418 case 'M': // a month / in a month / a month ago 3419 return (withoutSuffix || isFuture) ? 'mÄsÃc' : 'mÄsÃcem'; 3420 case 'MM': // 9 months / in 9 months / 9 months ago 3421 if (withoutSuffix || isFuture) { 3422 return result + (plural(number) ? 'mÄsÃce' : 'mÄsÃců'); 3423 } else { 3424 return result + 'mÄsÃci'; 3425 } 3426 break; 3427 case 'y': // a year / in a year / a year ago 3428 return (withoutSuffix || isFuture) ? 'rok' : 'rokem'; 3429 case 'yy': // 9 years / in 9 years / 9 years ago 3430 if (withoutSuffix || isFuture) { 3431 return result + (plural(number) ? 'roky' : 'let'); 3432 } else { 3433 return result + 'lety'; 3434 } 3435 break; 3436 } 3437 } 3438 3439 return moment.lang('cs', { 3440 months : months, 3441 monthsShort : monthsShort, 3442 monthsParse : (function (months, monthsShort) { 3443 var i, _monthsParse = []; 3444 for (i = 0; i < 12; i++) { 3445 // use custom parser to solve problem with July (Äervenec) 3446 _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i'); 3447 } 3448 return _monthsParse; 3449 }(months, monthsShort)), 3450 weekdays : "nedÄle_pondÄlÃ_úterý_stÅeda_Ätvrtek_pátek_sobota".split("_"), 3451 weekdaysShort : "ne_po_út_st_Ät_pá_so".split("_"), 3452 weekdaysMin : "ne_po_út_st_Ät_pá_so".split("_"), 3453 longDateFormat : { 3454 LT: "H.mm", 3455 L : "DD. MM. YYYY", 3456 LL : "D. MMMM YYYY", 3457 LLL : "D. MMMM YYYY LT", 3458 LLLL : "dddd D. MMMM YYYY LT" 3459 }, 3460 calendar : { 3461 sameDay: "[dnes v] LT", 3462 nextDay: '[zÃtra v] LT', 3463 nextWeek: function () { 3464 switch (this.day()) { 3465 case 0: 3466 return '[v nedÄli v] LT'; 3467 case 1: 3468 case 2: 3469 return '[v] dddd [v] LT'; 3470 case 3: 3471 return '[ve stÅedu v] LT'; 3472 case 4: 3473 return '[ve Ätvrtek v] LT'; 3474 case 5: 3475 return '[v pátek v] LT'; 3476 case 6: 3477 return '[v sobotu v] LT'; 3478 } 3479 }, 3480 lastDay: '[vÄera v] LT', 3481 lastWeek: function () { 3482 switch (this.day()) { 3483 case 0: 3484 return '[minulou nedÄli v] LT'; 3485 case 1: 3486 case 2: 3487 return '[minulé] dddd [v] LT'; 3488 case 3: 3489 return '[minulou stÅedu v] LT'; 3490 case 4: 3491 case 5: 3492 return '[minulý] dddd [v] LT'; 3493 case 6: 3494 return '[minulou sobotu v] LT'; 3495 } 3496 }, 3497 sameElse: "L" 3498 }, 3499 relativeTime : { 3500 future : "za %s", 3501 past : "pÅed %s", 3502 s : translate, 3503 m : translate, 3504 mm : translate, 3505 h : translate, 3506 hh : translate, 3507 d : translate, 3508 dd : translate, 3509 M : translate, 3510 MM : translate, 3511 y : translate, 3512 yy : translate 3513 }, 3514 ordinal : '%d.', 3515 week : { 3516 dow : 1, // Monday is the first day of the week. 3517 doy : 4 // The week that contains Jan 4th is the first week of the year. 3518 } 3519 }); 3520})); 3521// moment.js language configuration 3522// language : chuvash (cv) 3523// author : Anatoly Mironov : https://github.com/mirontoli 3524 3525(function (factory) { 3526 factory(moment); 3527}(function (moment) { 3528 return moment.lang('cv', { 3529 months : "кÄÑлаÑ_наÑÄÑ_пÑÑ_ака_май_çÄÑÑме_ÑÑÄ_çÑÑла_авÄн_Ñпа_Ñӳк_ÑаÑÑав".split("_"), 3530 monthsShort : "кÄÑ_наÑ_пÑÑ_ака_май_çÄÑ_ÑÑÄ_çÑÑ_ав_Ñпа_Ñӳк_ÑаÑ".split("_"), 3531 weekdays : "вÑÑÑаÑникÑн_ÑÑнÑикÑн_ÑÑлаÑикÑн_ÑнкÑн_кÄçнеÑникÑн_ÑÑнекÑн_ÑÄмаÑкÑн".split("_"), 3532 weekdaysShort : "вÑÑ_ÑÑн_ÑÑл_Ñн_кÄç_ÑÑн_ÑÄм".split("_"), 3533 weekdaysMin : "вÑ_Ñн_ÑÑ_Ñн_кç_ÑÑ_Ñм".split("_"), 3534 longDateFormat : { 3535 LT : "HH:mm", 3536 L : "DD-MM-YYYY", 3537 LL : "YYYY [çÑÐ»Ñ Ð¸] MMMM [ÑйÄÑ Äн] D[-мÄÑÄ]", 3538 LLL : "YYYY [çÑÐ»Ñ Ð¸] MMMM [ÑйÄÑ Äн] D[-мÄÑÄ], LT", 3539 LLLL : "dddd, YYYY [çÑÐ»Ñ Ð¸] MMMM [ÑйÄÑ Äн] D[-мÄÑÄ], LT" 3540 }, 3541 calendar : { 3542 sameDay: '[ÐаÑн] LT [ÑÐµÑ ÐµÑÑе]', 3543 nextDay: '[ЫÑан] LT [ÑÐµÑ ÐµÑÑе]', 3544 lastDay: '[ÄнеÑ] LT [ÑÐµÑ ÐµÑÑе]', 3545 nextWeek: '[ÃиÑеÑ] dddd LT [ÑÐµÑ ÐµÑÑе]', 3546 lastWeek: '[ÐÑÑнÄ] dddd LT [ÑÐµÑ ÐµÑÑе]', 3547 sameElse: 'L' 3548 }, 3549 relativeTime : { 3550 future : function (output) {
3551 var affix = /ÑÐµÑ ÐµÑ$/i.exec(output) ? "Ñен" : /çÑл$/i.exec(output) ? "Ñан" : "Ñан"; 3552 return output + affix; 3553 }, 3554 past : "%s каÑлла", 3555 s : "пÄÑ-ик çеккÑнÑ", 3556 m : "пÄÑ Ð¼Ð¸Ð½ÑÑ", 3557 mm : "%d минÑÑ", 3558 h : "пÄÑ ÑÐµÑ ÐµÑ", 3559 hh : "%d ÑÐµÑ ÐµÑ", 3560 d : "пÄÑ ÐºÑн", 3561 dd : "%d кÑн", 3562 M : "пÄÑ ÑйÄÑ ", 3563 MM : "%d ÑйÄÑ ", 3564 y : "пÄÑ Ã§Ñл", 3565 yy : "%d çÑл" 3566 }, 3567 ordinal : '%d-мÄÑ', 3568 week : { 3569 dow : 1, // Monday is the first day of the week. 3570 doy : 7 // The week that contains Jan 1st is the first week of the year. 3571 } 3572 }); 3573})); 3574// moment.js language configuration 3575// language : Welsh (cy) 3576// author : Robert Allen 3577 3578(function (factory) { 3579 factory(moment); 3580}(function (moment) { 3581 return moment.lang("cy", { 3582 months: "Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"), 3583 monthsShort: "Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"), 3584 weekdays: "Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"), 3585 weekdaysShort: "Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"), 3586 weekdaysMin: "Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"), 3587 // time formats are the same as en-gb 3588 longDateFormat: { 3589 LT: "HH:mm", 3590 L: "DD/MM/YYYY", 3591 LL: "D MMMM YYYY", 3592 LLL: "D MMMM YYYY LT", 3593 LLLL: "dddd, D MMMM YYYY LT" 3594 }, 3595 calendar: { 3596 sameDay: '[Heddiw am] LT', 3597 nextDay: '[Yfory am] LT', 3598 nextWeek: 'dddd [am] LT', 3599 lastDay: '[Ddoe am] LT', 3600 lastWeek: 'dddd [diwethaf am] LT', 3601 sameElse: 'L' 3602 }, 3603 relativeTime: { 3604 future: "mewn %s", 3605 past: "%s yn ôl", 3606 s: "ychydig eiliadau", 3607 m: "munud", 3608 mm: "%d munud", 3609 h: "awr", 3610 hh: "%d awr", 3611 d: "diwrnod", 3612 dd: "%d diwrnod", 3613 M: "mis", 3614 MM: "%d mis", 3615 y: "blwyddyn", 3616 yy: "%d flynedd" 3617 }, 3618 // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh 3619 ordinal: function (number) { 3620 var b = number, 3621 output = '', 3622 lookup = [
vendor: 21,745 bytes, lines 3623-4205
3623 '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed 3624 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed 3625 ]; 3626 3627 if (b > 20) { 3628 if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) { 3629 output = 'fed'; // not 30ain, 70ain or 90ain 3630 } else { 3631 output = 'ain'; 3632 } 3633 } else if (b > 0) { 3634 output = lookup[b]; 3635 } 3636 3637 return number + output; 3638 }, 3639 week : { 3640 dow : 1, // Monday is the first day of the week. 3641 doy : 4 // The week that contains Jan 4th is the first week of the year. 3642 } 3643 }); 3644})); 3645// moment.js language configuration 3646// language : danish (da) 3647// author : Ulrik Nielsen : https://github.com/mrbase 3648 3649(function (factory) { 3650 factory(moment); 3651}(function (moment) { 3652 return moment.lang('da', { 3653 months : "januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"), 3654 monthsShort : "jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"), 3655 weekdays : "søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"), 3656 weekdaysShort : "søn_man_tir_ons_tor_fre_lør".split("_"), 3657 weekdaysMin : "sø_ma_ti_on_to_fr_lø".split("_"), 3658 longDateFormat : { 3659 LT : "HH:mm", 3660 L : "DD/MM/YYYY", 3661 LL : "D. MMMM YYYY", 3662 LLL : "D. MMMM YYYY LT", 3663 LLLL : "dddd [d.] D. MMMM YYYY LT" 3664 }, 3665 calendar : { 3666 sameDay : '[I dag kl.] LT', 3667 nextDay : '[I morgen kl.] LT', 3668 nextWeek : 'dddd [kl.] LT', 3669 lastDay : '[I gÃ¥r kl.] LT', 3670 lastWeek : '[sidste] dddd [kl] LT', 3671 sameElse : 'L' 3672 }, 3673 relativeTime : { 3674 future : "om %s", 3675 past : "%s siden", 3676 s : "fÃ¥ sekunder", 3677 m : "et minut", 3678 mm : "%d minutter", 3679 h : "en time", 3680 hh : "%d timer", 3681 d : "en dag", 3682 dd : "%d dage", 3683 M : "en mÃ¥ned", 3684 MM : "%d mÃ¥neder", 3685 y : "et Ã¥r", 3686 yy : "%d Ã¥r" 3687 }, 3688 ordinal : '%d.', 3689 week : { 3690 dow : 1, // Monday is the first day of the week. 3691 doy : 4 // The week that contains Jan 4th is the first week of the year. 3692 } 3693 }); 3694})); 3695// moment.js language configuration 3696// language : austrian german (de-at) 3697// author : lluchs : https://github.com/lluchs 3698// author: Menelion Elensúle: https://github.com/Oire 3699// author : Martin Groller : https://github.com/MadMG 3700 3701(function (factory) { 3702 factory(moment); 3703}(function (moment) { 3704 function processRelativeTime(number, withoutSuffix, key, isFuture) { 3705 var format = { 3706 'm': ['eine Minute', 'einer Minute'], 3707 'h': ['eine Stunde', 'einer Stunde'], 3708 'd': ['ein Tag', 'einem Tag'], 3709 'dd': [number + ' Tage', number + ' Tagen'], 3710 'M': ['ein Monat', 'einem Monat'], 3711 'MM': [number + ' Monate', number + ' Monaten'], 3712 'y': ['ein Jahr', 'einem Jahr'], 3713 'yy': [number + ' Jahre', number + ' Jahren'] 3714 }; 3715 return withoutSuffix ? format[key][0] : format[key][1]; 3716 } 3717 3718 return moment.lang('de-at', { 3719 months : "Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"), 3720 monthsShort : "Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"), 3721 weekdays : "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"), 3722 weekdaysShort : "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"), 3723 weekdaysMin : "So_Mo_Di_Mi_Do_Fr_Sa".split("_"), 3724 longDateFormat : { 3725 LT: "HH:mm [Uhr]", 3726 L : "DD.MM.YYYY", 3727 LL : "D. MMMM YYYY", 3728 LLL : "D. MMMM YYYY LT", 3729 LLLL : "dddd, D. MMMM YYYY LT" 3730 }, 3731 calendar : { 3732 sameDay: "[Heute um] LT", 3733 sameElse: "L", 3734 nextDay: '[Morgen um] LT', 3735 nextWeek: 'dddd [um] LT', 3736 lastDay: '[Gestern um] LT', 3737 lastWeek: '[letzten] dddd [um] LT' 3738 }, 3739 relativeTime : { 3740 future : "in %s", 3741 past : "vor %s", 3742 s : "ein paar Sekunden", 3743 m : processRelativeTime, 3744 mm : "%d Minuten", 3745 h : processRelativeTime, 3746 hh : "%d Stunden", 3747 d : processRelativeTime, 3748 dd : processRelativeTime, 3749 M : processRelativeTime, 3750 MM : processRelativeTime, 3751 y : processRelativeTime, 3752 yy : processRelativeTime 3753 }, 3754 ordinal : '%d.', 3755 week : { 3756 dow : 1, // Monday is the first day of the week. 3757 doy : 4 // The week that contains Jan 4th is the first week of the year. 3758 } 3759 }); 3760})); 3761// moment.js language configuration 3762// language : german (de) 3763// author : lluchs : https://github.com/lluchs 3764// author: Menelion Elensúle: https://github.com/Oire 3765 3766(function (factory) { 3767 factory(moment); 3768}(function (moment) { 3769 function processRelativeTime(number, withoutSuffix, key, isFuture) { 3770 var format = { 3771 'm': ['eine Minute', 'einer Minute'], 3772 'h': ['eine Stunde', 'einer Stunde'], 3773 'd': ['ein Tag', 'einem Tag'], 3774 'dd': [number + ' Tage', number + ' Tagen'], 3775 'M': ['ein Monat', 'einem Monat'], 3776 'MM': [number + ' Monate', number + ' Monaten'], 3777 'y': ['ein Jahr', 'einem Jahr'], 3778 'yy': [number + ' Jahre', number + ' Jahren'] 3779 }; 3780 return withoutSuffix ? format[key][0] : format[key][1]; 3781 } 3782 3783 return moment.lang('de', { 3784 months : "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"), 3785 monthsShort : "Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"), 3786 weekdays : "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"), 3787 weekdaysShort : "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"), 3788 weekdaysMin : "So_Mo_Di_Mi_Do_Fr_Sa".split("_"), 3789 longDateFormat : { 3790 LT: "HH:mm [Uhr]", 3791 L : "DD.MM.YYYY", 3792 LL : "D. MMMM YYYY", 3793 LLL : "D. MMMM YYYY LT", 3794 LLLL : "dddd, D. MMMM YYYY LT" 3795 }, 3796 calendar : { 3797 sameDay: "[Heute um] LT", 3798 sameElse: "L", 3799 nextDay: '[Morgen um] LT', 3800 nextWeek: 'dddd [um] LT', 3801 lastDay: '[Gestern um] LT', 3802 lastWeek: '[letzten] dddd [um] LT' 3803 }, 3804 relativeTime : { 3805 future : "in %s", 3806 past : "vor %s", 3807 s : "ein paar Sekunden", 3808 m : processRelativeTime, 3809 mm : "%d Minuten", 3810 h : processRelativeTime, 3811 hh : "%d Stunden", 3812 d : processRelativeTime, 3813 dd : processRelativeTime, 3814 M : processRelativeTime, 3815 MM : processRelativeTime, 3816 y : processRelativeTime, 3817 yy : processRelativeTime 3818 }, 3819 ordinal : '%d.', 3820 week : { 3821 dow : 1, // Monday is the first day of the week. 3822 doy : 4 // The week that contains Jan 4th is the first week of the year. 3823 } 3824 }); 3825})); 3826// moment.js language configuration 3827// language : modern greek (el) 3828// author : Aggelos Karalias : https://github.com/mehiel 3829 3830(function (factory) { 3831 factory(moment); 3832}(function (moment) { 3833 return moment.lang('el', { 3834 monthsNominativeEl : "ÎÎ±Î½Î¿Ï Î¬ÏιοÏ_ΦεβÏÎ¿Ï Î¬ÏιοÏ_ÎάÏÏιοÏ_ÎÏÏίλιοÏ_ÎάιοÏ_ÎοÏνιοÏ_ÎοÏλιοÏ_ÎÏÎ³Î¿Ï ÏÏοÏ_ΣεÏÏÎμβÏιοÏ_ÎκÏÏβÏιοÏ_ÎοÎμβÏιοÏ_ÎεκÎμβÏιοÏ".split("_"), 3835 monthsGenitiveEl : "ÎÎ±Î½Î¿Ï Î±ÏÎ¯Î¿Ï _ΦεβÏÎ¿Ï Î±ÏÎ¯Î¿Ï _ÎαÏÏÎ¯Î¿Ï _ÎÏÏÎ¹Î»Î¯Î¿Ï _ÎαÎÎ¿Ï _ÎÎ¿Ï Î½Î¯Î¿Ï _ÎÎ¿Ï Î»Î¯Î¿Ï _ÎÏ Î³Î¿ÏÏÏÎ¿Ï _ΣεÏÏεμβÏÎ¯Î¿Ï _ÎκÏÏβÏÎ¯Î¿Ï _ÎοεμβÏÎ¯Î¿Ï _ÎεκεμβÏÎ¯Î¿Ï ".split("_"), 3836 months : function (momentToFormat, format) { 3837 if (/D/.test(format.substring(0, format.indexOf("MMMM")))) { // if there is a day number before 'MMMM' 3838 return this._monthsGenitiveEl[momentToFormat.month()]; 3839 } else { 3840 return this._monthsNominativeEl[momentToFormat.month()]; 3841 } 3842 }, 3843 monthsShort : "Îαν_Φεβ_ÎαÏ_ÎÏÏ_ÎαÏ_ÎÎ¿Ï Î½_ÎÎ¿Ï Î»_ÎÏ Î³_ΣεÏ_ÎκÏ_Îοε_Îεκ".split("_"), 3844 weekdays : "ÎÏ Ïιακή_ÎÎµÏ ÏÎÏα_ΤÏίÏη_ΤεÏάÏÏη_Î ÎμÏÏη_ΠαÏαÏÎºÎµÏ Î®_ΣάββαÏο".split("_"), 3845 weekdaysShort : "ÎÏ Ï_ÎÎµÏ _ΤÏι_ΤεÏ_Πεμ_ΠαÏ_Σαβ".split("_"), 3846 weekdaysMin : "ÎÏ _Îε_ΤÏ_Τε_Πε_Πα_Σα".split("_"), 3847 meridiem : function (hours, minutes, isLower) { 3848 if (hours > 11) { 3849 return isLower ? 'μμ' : 'ÎÎ'; 3850 } else { 3851 return isLower ? 'Ïμ' : 'Î Î'; 3852 } 3853 }, 3854 longDateFormat : { 3855 LT : "h:mm A", 3856 L : "DD/MM/YYYY", 3857 LL : "D MMMM YYYY", 3858 LLL : "D MMMM YYYY LT", 3859 LLLL : "dddd, D MMMM YYYY LT" 3860 }, 3861 calendarEl : { 3862 sameDay : '[ΣήμεÏα {}] LT', 3863 nextDay : '[ÎÏÏιο {}] LT', 3864 nextWeek : 'dddd [{}] LT', 3865 lastDay : '[Î§Î¸ÎµÏ {}] LT', 3866 lastWeek : function() { 3867 switch (this.day()) { 3868 case 6: 3869 return '[Ïο ÏÏοηγοÏμενο] dddd [{}] LT'; 3870 default: 3871 return '[Ïην ÏÏοηγοÏμενη] dddd [{}] LT'; 3872 } 3873 }, 3874 sameElse : 'L' 3875 }, 3876 calendar : function (key, mom) { 3877 var output = this._calendarEl[key], 3878 hours = mom && mom.hours(); 3879 3880 if (typeof output === 'function') { 3881 output = output.apply(mom); 3882 } 3883 3884 return output.replace("{}", (hours % 12 === 1 ? "ÏÏη" : "ÏÏιÏ")); 3885 }, 3886 relativeTime : { 3887 future : "Ïε %s", 3888 past : "%s ÏÏιν", 3889 s : "Î´ÎµÏ ÏεÏÏλεÏÏα", 3890 m : "Îνα λεÏÏÏ", 3891 mm : "%d λεÏÏά", 3892 h : "μία ÏÏα", 3893 hh : "%d ÏÏεÏ", 3894 d : "μία μÎÏα", 3895 dd : "%d μÎÏεÏ", 3896 M : "ÎÎ½Î±Ï Î¼Î®Î½Î±Ï", 3897 MM : "%d μήνεÏ", 3898 y : "ÎÎ½Î±Ï ÏÏÏνοÏ", 3899 yy : "%d ÏÏÏνια" 3900 }, 3901 ordinal : function (number) { 3902 return number + 'η'; 3903 }, 3904 week : { 3905 dow : 1, // Monday is the first day of the week. 3906 doy : 4 // The week that contains Jan 4st is the first week of the year. 3907 } 3908 }); 3909})); 3910// moment.js language configuration 3911// language : australian english (en-au) 3912 3913(function (factory) { 3914 factory(moment); 3915}(function (moment) { 3916 return moment.lang('en-au', { 3917 months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), 3918 monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), 3919 weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), 3920 weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), 3921 weekdaysMin : "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), 3922 longDateFormat : { 3923 LT : "h:mm A", 3924 L : "DD/MM/YYYY", 3925 LL : "D MMMM YYYY", 3926 LLL : "D MMMM YYYY LT", 3927 LLLL : "dddd, D MMMM YYYY LT" 3928 }, 3929 calendar : { 3930 sameDay : '[Today at] LT', 3931 nextDay : '[Tomorrow at] LT', 3932 nextWeek : 'dddd [at] LT', 3933 lastDay : '[Yesterday at] LT', 3934 lastWeek : '[Last] dddd [at] LT', 3935 sameElse : 'L' 3936 }, 3937 relativeTime : { 3938 future : "in %s", 3939 past : "%s ago", 3940 s : "a few seconds", 3941 m : "a minute", 3942 mm : "%d minutes", 3943 h : "an hour", 3944 hh : "%d hours", 3945 d : "a day", 3946 dd : "%d days", 3947 M : "a month", 3948 MM : "%d months", 3949 y : "a year", 3950 yy : "%d years" 3951 }, 3952 ordinal : function (number) { 3953 var b = number % 10, 3954 output = (~~ (number % 100 / 10) === 1) ? 'th' : 3955 (b === 1) ? 'st' : 3956 (b === 2) ? 'nd' : 3957 (b === 3) ? 'rd' : 'th'; 3958 return number + output; 3959 }, 3960 week : { 3961 dow : 1, // Monday is the first day of the week. 3962 doy : 4 // The week that contains Jan 4th is the first week of the year. 3963 } 3964 }); 3965})); 3966// moment.js language configuration 3967// language : canadian english (en-ca) 3968// author : Jonathan Abourbih : https://github.com/jonbca 3969 3970(function (factory) { 3971 factory(moment); 3972}(function (moment) { 3973 return moment.lang('en-ca', { 3974 months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), 3975 monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), 3976 weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), 3977 weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), 3978 weekdaysMin : "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), 3979 longDateFormat : { 3980 LT : "h:mm A", 3981 L : "YYYY-MM-DD", 3982 LL : "D MMMM, YYYY", 3983 LLL : "D MMMM, YYYY LT", 3984 LLLL : "dddd, D MMMM, YYYY LT" 3985 }, 3986 calendar : { 3987 sameDay : '[Today at] LT', 3988 nextDay : '[Tomorrow at] LT', 3989 nextWeek : 'dddd [at] LT', 3990 lastDay : '[Yesterday at] LT', 3991 lastWeek : '[Last] dddd [at] LT', 3992 sameElse : 'L' 3993 }, 3994 relativeTime : { 3995 future : "in %s", 3996 past : "%s ago", 3997 s : "a few seconds", 3998 m : "a minute", 3999 mm : "%d minutes", 4000 h : "an hour", 4001 hh : "%d hours", 4002 d : "a day", 4003 dd : "%d days", 4004 M : "a month", 4005 MM : "%d months", 4006 y : "a year", 4007 yy : "%d years" 4008 }, 4009 ordinal : function (number) { 4010 var b = number % 10, 4011 output = (~~ (number % 100 / 10) === 1) ? 'th' : 4012 (b === 1) ? 'st' : 4013 (b === 2) ? 'nd' : 4014 (b === 3) ? 'rd' : 'th'; 4015 return number + output; 4016 } 4017 }); 4018})); 4019// moment.js language configuration 4020// language : great britain english (en-gb) 4021// author : Chris Gedrim : https://github.com/chrisgedrim 4022 4023(function (factory) { 4024 factory(moment); 4025}(function (moment) { 4026 return moment.lang('en-gb', { 4027 months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), 4028 monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), 4029 weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), 4030 weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), 4031 weekdaysMin : "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), 4032 longDateFormat : { 4033 LT : "HH:mm", 4034 L : "DD/MM/YYYY", 4035 LL : "D MMMM YYYY", 4036 LLL : "D MMMM YYYY LT", 4037 LLLL : "dddd, D MMMM YYYY LT" 4038 }, 4039 calendar : { 4040 sameDay : '[Today at] LT', 4041 nextDay : '[Tomorrow at] LT', 4042 nextWeek : 'dddd [at] LT', 4043 lastDay : '[Yesterday at] LT', 4044 lastWeek : '[Last] dddd [at] LT', 4045 sameElse : 'L' 4046 }, 4047 relativeTime : { 4048 future : "in %s", 4049 past : "%s ago", 4050 s : "a few seconds", 4051 m : "a minute", 4052 mm : "%d minutes", 4053 h : "an hour", 4054 hh : "%d hours", 4055 d : "a day", 4056 dd : "%d days", 4057 M : "a month", 4058 MM : "%d months", 4059 y : "a year", 4060 yy : "%d years" 4061 }, 4062 ordinal : function (number) { 4063 var b = number % 10, 4064 output = (~~ (number % 100 / 10) === 1) ? 'th' : 4065 (b === 1) ? 'st' : 4066 (b === 2) ? 'nd' : 4067 (b === 3) ? 'rd' : 'th'; 4068 return number + output; 4069 }, 4070 week : { 4071 dow : 1, // Monday is the first day of the week. 4072 doy : 4 // The week that contains Jan 4th is the first week of the year. 4073 } 4074 }); 4075})); 4076// moment.js language configuration 4077// language : esperanto (eo) 4078// author : Colin Dean : https://github.com/colindean 4079// komento: Mi estas malcerta se mi korekte traktis akuzativojn en tiu traduko. 4080// Se ne, bonvolu korekti kaj avizi min por ke mi povas lerni! 4081 4082(function (factory) { 4083 factory(moment); 4084}(function (moment) { 4085 return moment.lang('eo', { 4086 months : "januaro_februaro_marto_aprilo_majo_junio_julio_aÅgusto_septembro_oktobro_novembro_decembro".split("_"), 4087 monthsShort : "jan_feb_mar_apr_maj_jun_jul_aÅg_sep_okt_nov_dec".split("_"), 4088 weekdays : "DimanÄo_Lundo_Mardo_Merkredo_Ä´aÅdo_Vendredo_Sabato".split("_"), 4089 weekdaysShort : "Dim_Lun_Mard_Merk_Ä´aÅ_Ven_Sab".split("_"), 4090 weekdaysMin : "Di_Lu_Ma_Me_Ä´a_Ve_Sa".split("_"), 4091 longDateFormat : { 4092 LT : "HH:mm", 4093 L : "YYYY-MM-DD", 4094 LL : "D[-an de] MMMM, YYYY", 4095 LLL : "D[-an de] MMMM, YYYY LT", 4096 LLLL : "dddd, [la] D[-an de] MMMM, YYYY LT" 4097 }, 4098 meridiem : function (hours, minutes, isLower) { 4099 if (hours > 11) { 4100 return isLower ? 'p.t.m.' : 'P.T.M.'; 4101 } else { 4102 return isLower ? 'a.t.m.' : 'A.T.M.'; 4103 } 4104 }, 4105 calendar : { 4106 sameDay : '[HodiaÅ je] LT', 4107 nextDay : '[MorgaÅ je] LT', 4108 nextWeek : 'dddd [je] LT', 4109 lastDay : '[HieraÅ je] LT', 4110 lastWeek : '[pasinta] dddd [je] LT', 4111 sameElse : 'L' 4112 }, 4113 relativeTime : { 4114 future : "je %s", 4115 past : "antaÅ %s", 4116 s : "sekundoj", 4117 m : "minuto", 4118 mm : "%d minutoj", 4119 h : "horo", 4120 hh : "%d horoj", 4121 d : "tago",//ne 'diurno', Äar estas uzita por proksimumo 4122 dd : "%d tagoj", 4123 M : "monato", 4124 MM : "%d monatoj", 4125 y : "jaro", 4126 yy : "%d jaroj" 4127 }, 4128 ordinal : "%da", 4129 week : { 4130 dow : 1, // Monday is the first day of the week. 4131 doy : 7 // The week that contains Jan 1st is the first week of the year. 4132 } 4133 }); 4134})); 4135// moment.js language configuration 4136// language : spanish (es) 4137// author : Julio Napurà : https://github.com/julionc 4138 4139(function (factory) { 4140 factory(moment); 4141}(function (moment) { 4142 var monthsShortDot = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"), 4143 monthsShort = "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"); 4144 4145 return moment.lang('es', { 4146 months : "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"), 4147 monthsShort : function (m, format) { 4148 if (/-MMM-/.test(format)) { 4149 return monthsShort[m.month()]; 4150 } else { 4151 return monthsShortDot[m.month()]; 4152 } 4153 }, 4154 weekdays : "domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"), 4155 weekdaysShort : "dom._lun._mar._mié._jue._vie._sáb.".split("_"), 4156 weekdaysMin : "Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"), 4157 longDateFormat : { 4158 LT : "H:mm", 4159 L : "DD/MM/YYYY", 4160 LL : "D [de] MMMM [del] YYYY", 4161 LLL : "D [de] MMMM [del] YYYY LT", 4162 LLLL : "dddd, D [de] MMMM [del] YYYY LT" 4163 }, 4164 calendar : { 4165 sameDay : function () { 4166 return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 4167 }, 4168 nextDay : function () { 4169 return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 4170 }, 4171 nextWeek : function () { 4172 return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 4173 }, 4174 lastDay : function () { 4175 return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 4176 }, 4177 lastWeek : function () { 4178 return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; 4179 }, 4180 sameElse : 'L' 4181 }, 4182 relativeTime : { 4183 future : "en %s", 4184 past : "hace %s", 4185 s : "unos segundos", 4186 m : "un minuto", 4187 mm : "%d minutos", 4188 h : "una hora", 4189 hh : "%d horas", 4190 d : "un dÃa", 4191 dd : "%d dÃas", 4192 M : "un mes", 4193 MM : "%d meses", 4194 y : "un año", 4195 yy : "%d años" 4196 }, 4197 ordinal : '%dº', 4198 week : { 4199 dow : 1, // Monday is the first day of the week. 4200 doy : 4 // The week that contains Jan 4th is the first week of the year. 4201 } 4202 }); 4203})); 4204// moment.js language configuration 4205// language : estonian (et)
4206// author : Henry Kehlmann : https://github.com/madhenry 4207// improvements : Illimar Tambek : https://github.com/ragulka 4208 4209(function (factory) { 4210 factory(moment); 4211}(function (moment) { 4212 function processRelativeTime(number, withoutSuffix, key, isFuture) { 4213 var format = { 4214 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'], 4215 'm' : ['ühe minuti', 'üks minut'], 4216 'mm': [number + ' minuti', number + ' minutit'], 4217 'h' : ['ühe tunni', 'tund aega', 'üks tund'], 4218 'hh': [number + ' tunni', number + ' tundi'], 4219 'd' : ['ühe päeva', 'üks päev'], 4220 'M' : ['kuu aja', 'kuu aega', 'üks kuu'], 4221 'MM': [number + ' kuu', number + ' kuud'], 4222 'y' : ['ühe aasta', 'aasta', 'üks aasta'], 4223 'yy': [number + ' aasta', number + ' aastat'] 4224 }; 4225 if (withoutSuffix) { 4226 return format[key][2] ? format[key][2] : format[key][1]; 4227 } 4228 return isFuture ? format[key][0] : format[key][1]; 4229 } 4230 4231 return moment.lang('et', { 4232 months : "jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"), 4233 monthsShort : "jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"), 4234 weekdays : "pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"), 4235 weekdaysShort : "P_E_T_K_N_R_L".split("_"), 4236 weekdaysMin : "P_E_T_K_N_R_L".split("_"), 4237 longDateFormat : { 4238 LT : "H:mm", 4239 L : "DD.MM.YYYY", 4240 LL : "D. MMMM YYYY", 4241 LLL : "D. MMMM YYYY LT", 4242 LLLL : "dddd, D. MMMM YYYY LT" 4243 }, 4244 calendar : { 4245 sameDay : '[Täna,] LT', 4246 nextDay : '[Homme,] LT', 4247 nextWeek : '[Järgmine] dddd LT', 4248 lastDay : '[Eile,] LT', 4249 lastWeek : '[Eelmine] dddd LT', 4250 sameElse : 'L' 4251 }, 4252 relativeTime : { 4253 future : "%s pärast", 4254 past : "%s tagasi", 4255 s : processRelativeTime, 4256 m : processRelativeTime, 4257 mm : processRelativeTime, 4258 h : processRelativeTime, 4259 hh : processRelativeTime, 4260 d : processRelativeTime, 4261 dd : '%d päeva', 4262 M : processRelativeTime, 4263 MM : processRelativeTime, 4264 y : processRelativeTime, 4265 yy : processRelativeTime 4266 }, 4267 ordinal : '%d.', 4268 week : { 4269 dow : 1, // Monday is the first day of the week. 4270 doy : 4 // The week that contains Jan 4th is the first week of the year. 4271 } 4272 }); 4273})); 4274// moment.js language configuration 4275// language : euskara (eu) 4276// author : Eneko Illarramendi : https://github.com/eillarra 4277 4278(function (factory) { 4279 factory(moment); 4280}(function (moment) { 4281 return moment.lang('eu', { 4282 months : "urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"), 4283 monthsShort : "urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"), 4284 weekdays : "igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"), 4285 weekdaysShort : "ig._al._ar._az._og._ol._lr.".split("_"), 4286 weekdaysMin : "ig_al_ar_az_og_ol_lr".split("_"), 4287 longDateFormat : { 4288 LT : "HH:mm", 4289 L : "YYYY-MM-DD", 4290 LL : "YYYY[ko] MMMM[ren] D[a]", 4291 LLL : "YYYY[ko] MMMM[ren] D[a] LT", 4292 LLLL : "dddd, YYYY[ko] MMMM[ren] D[a] LT", 4293 l : "YYYY-M-D", 4294 ll : "YYYY[ko] MMM D[a]", 4295 lll : "YYYY[ko] MMM D[a] LT", 4296 llll : "ddd, YYYY[ko] MMM D[a] LT" 4297 }, 4298 calendar : { 4299 sameDay : '[gaur] LT[etan]', 4300 nextDay : '[bihar] LT[etan]', 4301 nextWeek : 'dddd LT[etan]', 4302 lastDay : '[atzo] LT[etan]', 4303 lastWeek : '[aurreko] dddd LT[etan]', 4304 sameElse : 'L' 4305 }, 4306 relativeTime : { 4307 future : "%s barru", 4308 past : "duela %s", 4309 s : "segundo batzuk", 4310 m : "minutu bat", 4311 mm : "%d minutu", 4312 h : "ordu bat", 4313 hh : "%d ordu", 4314 d : "egun bat", 4315 dd : "%d egun", 4316 M : "hilabete bat", 4317 MM : "%d hilabete", 4318 y : "urte bat", 4319 yy : "%d urte" 4320 }, 4321 ordinal : '%d.', 4322 week : { 4323 dow : 1, // Monday is the first day of the week. 4324 doy : 7 // The week that contains Jan 1st is the first week of the year. 4325 } 4326 }); 4327})); 4328// moment.js language configuration 4329// language : Persian Language 4330// author : Ebrahim Byagowi : https://github.com/ebraminio 4331 4332(function (factory) { 4333 factory(moment); 4334}(function (moment) { 4335 var symbolMap = { 4336 '1': 'Û±', 4337 '2': 'Û²', 4338 '3': 'Û³', 4339 '4': 'Û´', 4340 '5': 'Ûµ', 4341 '6': 'Û¶', 4342 '7': 'Û·', 4343 '8': 'Û¸', 4344 '9': 'Û¹', 4345 '0': 'Û°' 4346 }, numberMap = { 4347 'Û±': '1', 4348 'Û²': '2', 4349 'Û³': '3', 4350 'Û´': '4', 4351 'Ûµ': '5', 4352 'Û¶': '6', 4353 'Û·': '7', 4354 'Û¸': '8', 4355 'Û¹': '9', 4356 'Û°': '0' 4357 }; 4358 4359 return moment.lang('fa', { 4360 months : 'ÚØ§ÙÙÛÙ_ÙÙØ±ÛÙ_٠ارس_Ø¢ÙØ±ÛÙ_Ù Ù_ÚÙØ¦Ù_ÚÙØ¦ÛÙ_Ø§ÙØª_سپتا٠بر_اکتبر_ÙÙØ§Ù بر_دسا٠بر'.split('_'), 4361 monthsShort : 'ÚØ§ÙÙÛÙ_ÙÙØ±ÛÙ_٠ارس_Ø¢ÙØ±ÛÙ_Ù Ù_ÚÙØ¦Ù_ÚÙØ¦ÛÙ_Ø§ÙØª_سپتا٠بر_اکتبر_ÙÙØ§Ù بر_دسا٠بر'.split('_'),
vendor: 37,488 bytes, lines 4362-5421
4362 weekdays : 'ÛÚ©\u200cØ´ÙØ¨Ù_Ø¯ÙØ´ÙبÙ_سÙ\u200cØ´ÙØ¨Ù_ÚÙØ§Ø±Ø´ÙبÙ_Ù¾ÙØ¬\u200cØ´ÙØ¨Ù_ج٠عÙ_Ø´ÙØ¨Ù'.split('_'), 4363 weekdaysShort : 'ÛÚ©\u200cØ´ÙØ¨Ù_Ø¯ÙØ´ÙبÙ_سÙ\u200cØ´ÙØ¨Ù_ÚÙØ§Ø±Ø´ÙبÙ_Ù¾ÙØ¬\u200cØ´ÙØ¨Ù_ج٠عÙ_Ø´ÙØ¨Ù'.split('_'), 4364 weekdaysMin : 'Û_د_س_Ú_Ù¾_ج_Ø´'.split('_'), 4365 longDateFormat : { 4366 LT : 'HH:mm', 4367 L : 'DD/MM/YYYY', 4368 LL : 'D MMMM YYYY', 4369 LLL : 'D MMMM YYYY LT', 4370 LLLL : 'dddd, D MMMM YYYY LT' 4371 }, 4372 meridiem : function (hour, minute, isLower) { 4373 if (hour < 12) { 4374 return "ÙØ¨Ù از Ø¸ÙØ±"; 4375 } else { 4376 return "بعد از Ø¸ÙØ±"; 4377 } 4378 }, 4379 calendar : { 4380 sameDay : '[Ø§Ù Ø±ÙØ² ساعت] LT', 4381 nextDay : '[ÙØ±Ø¯Ø§ ساعت] LT', 4382 nextWeek : 'dddd [ساعت] LT', 4383 lastDay : '[Ø¯ÛØ±Ùز ساعت] LT', 4384 lastWeek : 'dddd [Ù¾ÛØ´] [ساعت] LT', 4385 sameElse : 'L' 4386 }, 4387 relativeTime : { 4388 future : 'در %s', 4389 past : '%s Ù¾ÛØ´', 4390 s : 'ÚÙØ¯Û٠ثاÙÛÙ', 4391 m : 'ÛÚ© دÙÛÙÙ', 4392 mm : '%d دÙÛÙÙ', 4393 h : 'ÛÚ© ساعت', 4394 hh : '%d ساعت', 4395 d : 'ÛÚ© Ø±ÙØ²', 4396 dd : '%d Ø±ÙØ²', 4397 M : 'ÛÚ© ٠اÙ', 4398 MM : '%d ٠اÙ', 4399 y : 'ÛÚ© ساÙ', 4400 yy : '%d ساÙ' 4401 }, 4402 preparse: function (string) { 4403 return string.replace(/[Û°-Û¹]/g, function (match) { 4404 return numberMap[match]; 4405 }).replace(/Ø/g, ','); 4406 }, 4407 postformat: function (string) { 4408 return string.replace(/\d/g, function (match) { 4409 return symbolMap[match]; 4410 }).replace(/,/g, 'Ø'); 4411 }, 4412 ordinal : '%dÙ ', 4413 week : { 4414 dow : 6, // Saturday is the first day of the week. 4415 doy : 12 // The week that contains Jan 1st is the first week of the year. 4416 } 4417 }); 4418})); 4419// moment.js language configuration 4420// language : finnish (fi) 4421// author : Tarmo Aidantausta : https://github.com/bleadof 4422 4423(function (factory) { 4424 factory(moment); 4425}(function (moment) { 4426 var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '), 4427 numbersFuture = ['nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden', 4428 numbersPast[7], numbersPast[8], numbersPast[9]]; 4429 4430 function translate(number, withoutSuffix, key, isFuture) { 4431 var result = ""; 4432 switch (key) { 4433 case 's': 4434 return isFuture ? 'muutaman sekunnin' : 'muutama sekunti'; 4435 case 'm': 4436 return isFuture ? 'minuutin' : 'minuutti'; 4437 case 'mm': 4438 result = isFuture ? 'minuutin' : 'minuuttia'; 4439 break; 4440 case 'h': 4441 return isFuture ? 'tunnin' : 'tunti'; 4442 case 'hh': 4443 result = isFuture ? 'tunnin' : 'tuntia'; 4444 break; 4445 case 'd': 4446 return isFuture ? 'päivän' : 'päivä'; 4447 case 'dd': 4448 result = isFuture ? 'päivän' : 'päivää'; 4449 break; 4450 case 'M': 4451 return isFuture ? 'kuukauden' : 'kuukausi'; 4452 case 'MM': 4453 result = isFuture ? 'kuukauden' : 'kuukautta'; 4454 break; 4455 case 'y': 4456 return isFuture ? 'vuoden' : 'vuosi'; 4457 case 'yy': 4458 result = isFuture ? 'vuoden' : 'vuotta'; 4459 break; 4460 } 4461 result = verbalNumber(number, isFuture) + " " + result; 4462 return result; 4463 } 4464 4465 function verbalNumber(number, isFuture) { 4466 return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number; 4467 } 4468 4469 return moment.lang('fi', { 4470 months : "tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"), 4471 monthsShort : "tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"), 4472 weekdays : "sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"), 4473 weekdaysShort : "su_ma_ti_ke_to_pe_la".split("_"), 4474 weekdaysMin : "su_ma_ti_ke_to_pe_la".split("_"), 4475 longDateFormat : { 4476 LT : "HH.mm", 4477 L : "DD.MM.YYYY", 4478 LL : "Do MMMM[ta] YYYY", 4479 LLL : "Do MMMM[ta] YYYY, [klo] LT", 4480 LLLL : "dddd, Do MMMM[ta] YYYY, [klo] LT", 4481 l : "D.M.YYYY", 4482 ll : "Do MMM YYYY", 4483 lll : "Do MMM YYYY, [klo] LT", 4484 llll : "ddd, Do MMM YYYY, [klo] LT" 4485 }, 4486 calendar : { 4487 sameDay : '[tänään] [klo] LT', 4488 nextDay : '[huomenna] [klo] LT', 4489 nextWeek : 'dddd [klo] LT', 4490 lastDay : '[eilen] [klo] LT', 4491 lastWeek : '[viime] dddd[na] [klo] LT', 4492 sameElse : 'L' 4493 }, 4494 relativeTime : { 4495 future : "%s päästä", 4496 past : "%s sitten", 4497 s : translate, 4498 m : translate, 4499 mm : translate, 4500 h : translate, 4501 hh : translate, 4502 d : translate, 4503 dd : translate, 4504 M : translate, 4505 MM : translate, 4506 y : translate, 4507 yy : translate 4508 }, 4509 ordinal : "%d.", 4510 week : { 4511 dow : 1, // Monday is the first day of the week. 4512 doy : 4 // The week that contains Jan 4th is the first week of the year. 4513 } 4514 }); 4515})); 4516// moment.js language configuration 4517// language : faroese (fo) 4518// author : Ragnar Johannesen : https://github.com/ragnar123 4519 4520(function (factory) { 4521 factory(moment); 4522}(function (moment) { 4523 return moment.lang('fo', { 4524 months : "januar_februar_mars_aprÃl_mai_juni_juli_august_september_oktober_november_desember".split("_"), 4525 monthsShort : "jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"), 4526 weekdays : "sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_frÃggjadagur_leygardagur".split("_"), 4527 weekdaysShort : "sun_mán_týs_mik_hós_frÃ_ley".split("_"), 4528 weekdaysMin : "su_má_tý_mi_hó_fr_le".split("_"), 4529 longDateFormat : { 4530 LT : "HH:mm", 4531 L : "DD/MM/YYYY", 4532 LL : "D MMMM YYYY", 4533 LLL : "D MMMM YYYY LT", 4534 LLLL : "dddd D. MMMM, YYYY LT" 4535 }, 4536 calendar : { 4537 sameDay : '[à dag kl.] LT', 4538 nextDay : '[à morgin kl.] LT', 4539 nextWeek : 'dddd [kl.] LT', 4540 lastDay : '[à gjár kl.] LT', 4541 lastWeek : '[sÃðstu] dddd [kl] LT', 4542 sameElse : 'L' 4543 }, 4544 relativeTime : { 4545 future : "um %s", 4546 past : "%s sÃðani", 4547 s : "fá sekund", 4548 m : "ein minutt", 4549 mm : "%d minuttir", 4550 h : "ein tÃmi", 4551 hh : "%d tÃmar", 4552 d : "ein dagur", 4553 dd : "%d dagar", 4554 M : "ein mánaði", 4555 MM : "%d mánaðir", 4556 y : "eitt ár", 4557 yy : "%d ár" 4558 }, 4559 ordinal : '%d.', 4560 week : { 4561 dow : 1, // Monday is the first day of the week. 4562 doy : 4 // The week that contains Jan 4th is the first week of the year. 4563 } 4564 }); 4565})); 4566// moment.js language configuration 4567// language : canadian french (fr-ca) 4568// author : Jonathan Abourbih : https://github.com/jonbca 4569 4570(function (factory) { 4571 factory(moment); 4572}(function (moment) { 4573 return moment.lang('fr-ca', { 4574 months : "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"), 4575 monthsShort : "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"), 4576 weekdays : "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), 4577 weekdaysShort : "dim._lun._mar._mer._jeu._ven._sam.".split("_"), 4578 weekdaysMin : "Di_Lu_Ma_Me_Je_Ve_Sa".split("_"), 4579 longDateFormat : { 4580 LT : "HH:mm", 4581 L : "YYYY-MM-DD", 4582 LL : "D MMMM YYYY", 4583 LLL : "D MMMM YYYY LT", 4584 LLLL : "dddd D MMMM YYYY LT" 4585 }, 4586 calendar : { 4587 sameDay: "[Aujourd'hui à ] LT", 4588 nextDay: '[Demain à ] LT', 4589 nextWeek: 'dddd [à ] LT', 4590 lastDay: '[Hier à ] LT', 4591 lastWeek: 'dddd [dernier à ] LT', 4592 sameElse: 'L' 4593 }, 4594 relativeTime : { 4595 future : "dans %s", 4596 past : "il y a %s", 4597 s : "quelques secondes", 4598 m : "une minute", 4599 mm : "%d minutes", 4600 h : "une heure", 4601 hh : "%d heures", 4602 d : "un jour", 4603 dd : "%d jours", 4604 M : "un mois", 4605 MM : "%d mois", 4606 y : "un an", 4607 yy : "%d ans" 4608 }, 4609 ordinal : function (number) { 4610 return number + (number === 1 ? 'er' : ''); 4611 } 4612 }); 4613})); 4614// moment.js language configuration 4615// language : french (fr) 4616// author : John Fischer : https://github.com/jfroffice 4617 4618(function (factory) { 4619 factory(moment); 4620}(function (moment) { 4621 return moment.lang('fr', { 4622 months : "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"), 4623 monthsShort : "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"), 4624 weekdays : "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), 4625 weekdaysShort : "dim._lun._mar._mer._jeu._ven._sam.".split("_"), 4626 weekdaysMin : "Di_Lu_Ma_Me_Je_Ve_Sa".split("_"), 4627 longDateFormat : { 4628 LT : "HH:mm", 4629 L : "DD/MM/YYYY", 4630 LL : "D MMMM YYYY", 4631 LLL : "D MMMM YYYY LT", 4632 LLLL : "dddd D MMMM YYYY LT" 4633 }, 4634 calendar : { 4635 sameDay: "[Aujourd'hui à ] LT", 4636 nextDay: '[Demain à ] LT', 4637 nextWeek: 'dddd [à ] LT', 4638 lastDay: '[Hier à ] LT', 4639 lastWeek: 'dddd [dernier à ] LT', 4640 sameElse: 'L' 4641 }, 4642 relativeTime : { 4643 future : "dans %s", 4644 past : "il y a %s", 4645 s : "quelques secondes", 4646 m : "une minute", 4647 mm : "%d minutes", 4648 h : "une heure", 4649 hh : "%d heures", 4650 d : "un jour", 4651 dd : "%d jours", 4652 M : "un mois", 4653 MM : "%d mois", 4654 y : "un an", 4655 yy : "%d ans" 4656 }, 4657 ordinal : function (number) { 4658 return number + (number === 1 ? 'er' : ''); 4659 }, 4660 week : { 4661 dow : 1, // Monday is the first day of the week. 4662 doy : 4 // The week that contains Jan 4th is the first week of the year. 4663 } 4664 }); 4665})); 4666// moment.js language configuration 4667// language : galician (gl) 4668// author : Juan G. Hurtado : https://github.com/juanghurtado 4669 4670(function (factory) { 4671 factory(moment); 4672}(function (moment) { 4673 return moment.lang('gl', { 4674 months : "Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"), 4675 monthsShort : "Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"), 4676 weekdays : "Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"), 4677 weekdaysShort : "Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"), 4678 weekdaysMin : "Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"), 4679 longDateFormat : { 4680 LT : "H:mm", 4681 L : "DD/MM/YYYY", 4682 LL : "D MMMM YYYY", 4683 LLL : "D MMMM YYYY LT", 4684 LLLL : "dddd D MMMM YYYY LT" 4685 }, 4686 calendar : { 4687 sameDay : function () { 4688 return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; 4689 }, 4690 nextDay : function () { 4691 return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; 4692 }, 4693 nextWeek : function () { 4694 return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; 4695 }, 4696 lastDay : function () { 4697 return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT'; 4698 }, 4699 lastWeek : function () { 4700 return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; 4701 }, 4702 sameElse : 'L' 4703 }, 4704 relativeTime : { 4705 future : function (str) { 4706 if (str === "uns segundos") { 4707 return "nuns segundos"; 4708 } 4709 return "en " + str; 4710 }, 4711 past : "hai %s", 4712 s : "uns segundos", 4713 m : "un minuto", 4714 mm : "%d minutos", 4715 h : "unha hora", 4716 hh : "%d horas", 4717 d : "un dÃa", 4718 dd : "%d dÃas", 4719 M : "un mes", 4720 MM : "%d meses", 4721 y : "un ano", 4722 yy : "%d anos" 4723 }, 4724 ordinal : '%dº', 4725 week : { 4726 dow : 1, // Monday is the first day of the week. 4727 doy : 7 // The week that contains Jan 1st is the first week of the year. 4728 } 4729 }); 4730})); 4731// moment.js language configuration 4732// language : Hebrew (he) 4733// author : Tomer Cohen : https://github.com/tomer 4734// author : Moshe Simantov : https://github.com/DevelopmentIL 4735// author : Tal Ater : https://github.com/TalAter 4736 4737(function (factory) { 4738 factory(moment); 4739}(function (moment) { 4740 return moment.lang('he', { 4741 months : "×× ××ר_פ×ר××ר_×רץ_×פר××_×××_××× ×_××××_××××ס×_ספ×××ר_×××§×××ר_× ××××ר_×צ××ר".split("_"), 4742 monthsShort : "×× ×׳_פ×ר׳_×רץ_×פר׳_×××_××× ×_××××_×××׳_ספ×׳_××ק׳_× ××׳_×צ×׳".split("_"), 4743 weekdays : "ר×ש××_×©× ×_ש××ש×_ר×××¢×_×××ש×_ש×ש×_ש×ת".split("_"), 4744 weekdaysShort : "×׳_×׳_×׳_×׳_×׳_×׳_ש׳".split("_"), 4745 weekdaysMin : "×_×_×_×_×_×_ש".split("_"), 4746 longDateFormat : { 4747 LT : "HH:mm", 4748 L : "DD/MM/YYYY", 4749 LL : "D [×]MMMM YYYY", 4750 LLL : "D [×]MMMM YYYY LT", 4751 LLLL : "dddd, D [×]MMMM YYYY LT", 4752 l : "D/M/YYYY", 4753 ll : "D MMM YYYY", 4754 lll : "D MMM YYYY LT", 4755 llll : "ddd, D MMM YYYY LT" 4756 }, 4757 calendar : { 4758 sameDay : '[×××× ×Ö¾]LT', 4759 nextDay : '[××ר ×Ö¾]LT', 4760 nextWeek : 'dddd [×שע×] LT', 4761 lastDay : '[×ת××× ×Ö¾]LT', 4762 lastWeek : '[××××] dddd [×××ר×× ×שע×] LT', 4763 sameElse : 'L' 4764 }, 4765 relativeTime : { 4766 future : "××¢×× %s", 4767 past : "××¤× × %s", 4768 s : "×ספר ×©× ××ת", 4769 m : "××§×", 4770 mm : "%d ××§×ת", 4771 h : "שע×", 4772 hh : function (number) { 4773 if (number === 2) { 4774 return "שעת×××"; 4775 } 4776 return number + " שע×ת"; 4777 }, 4778 d : "×××", 4779 dd : function (number) { 4780 if (number === 2) { 4781 return "××××××"; 4782 } 4783 return number + " ××××"; 4784 }, 4785 M : "×××ש", 4786 MM : function (number) { 4787 if (number === 2) { 4788 return "×××ש×××"; 4789 } 4790 return number + " ×××ש××"; 4791 }, 4792 y : "×©× ×", 4793 yy : function (number) { 4794 if (number === 2) { 4795 return "×©× ×ª×××"; 4796 } 4797 return number + " ×©× ××"; 4798 } 4799 } 4800 }); 4801})); 4802// moment.js language configuration 4803// language : hindi (hi) 4804// author : Mayank Singhal : https://github.com/mayanksinghal 4805 4806(function (factory) { 4807 factory(moment); 4808}(function (moment) { 4809 var symbolMap = { 4810 '1': '१', 4811 '2': '२', 4812 '3': '३', 4813 '4': '४', 4814 '5': '५', 4815 '6': '६', 4816 '7': 'à¥', 4817 '8': '८', 4818 '9': '९', 4819 '0': '०' 4820 }, 4821 numberMap = { 4822 '१': '1', 4823 '२': '2', 4824 '३': '3', 4825 '४': '4', 4826 '५': '5', 4827 '६': '6', 4828 'à¥': '7', 4829 '८': '8', 4830 '९': '9', 4831 '०': '0' 4832 }; 4833 4834 return moment.lang('hi', { 4835 months : 'à¤à¤¨à¤µà¤°à¥_फ़रवरà¥_मारà¥à¤_ठपà¥à¤°à¥à¤²_मà¤_à¤à¥à¤¨_à¤à¥à¤²à¤¾à¤_ठà¤à¤¸à¥à¤¤_सितमà¥à¤¬à¤°_ठà¤à¥à¤à¥à¤¬à¤°_नवमà¥à¤¬à¤°_दिसमà¥à¤¬à¤°'.split("_"), 4836 monthsShort : 'à¤à¤¨._फ़र._मारà¥à¤_ठपà¥à¤°à¥._मà¤_à¤à¥à¤¨_à¤à¥à¤²._ठà¤._सित._ठà¤à¥à¤à¥._नव._दिस.'.split("_"), 4837 weekdays : 'रविवार_सà¥à¤®à¤µà¤¾à¤°_मà¤à¤à¤²à¤µà¤¾à¤°_बà¥à¤§à¤µà¤¾à¤°_à¤à¥à¤°à¥à¤µà¤¾à¤°_शà¥à¤à¥à¤°à¤µà¤¾à¤°_शनिवार'.split("_"), 4838 weekdaysShort : 'रवि_सà¥à¤®_मà¤à¤à¤²_बà¥à¤§_à¤à¥à¤°à¥_शà¥à¤à¥à¤°_शनि'.split("_"), 4839 weekdaysMin : 'र_सà¥_मà¤_बà¥_à¤à¥_शà¥_श'.split("_"), 4840 longDateFormat : { 4841 LT : "A h:mm बà¤à¥", 4842 L : "DD/MM/YYYY", 4843 LL : "D MMMM YYYY", 4844 LLL : "D MMMM YYYY, LT", 4845 LLLL : "dddd, D MMMM YYYY, LT" 4846 }, 4847 calendar : { 4848 sameDay : '[à¤à¤] LT', 4849 nextDay : '[à¤à¤²] LT', 4850 nextWeek : 'dddd, LT', 4851 lastDay : '[à¤à¤²] LT', 4852 lastWeek : '[पिà¤à¤²à¥] dddd, LT', 4853 sameElse : 'L' 4854 }, 4855 relativeTime : { 4856 future : "%s मà¥à¤", 4857 past : "%s पहलà¥", 4858 s : "à¤à¥à¤ हॠà¤à¥à¤·à¤£", 4859 m : "à¤à¤ मिनà¤", 4860 mm : "%d मिनà¤", 4861 h : "à¤à¤ à¤à¤à¤à¤¾", 4862 hh : "%d à¤à¤à¤à¥", 4863 d : "à¤à¤ दिन", 4864 dd : "%d दिन", 4865 M : "à¤à¤ महà¥à¤¨à¥", 4866 MM : "%d महà¥à¤¨à¥", 4867 y : "à¤à¤ वरà¥à¤·", 4868 yy : "%d वरà¥à¤·" 4869 }, 4870 preparse: function (string) { 4871 return string.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g, function (match) { 4872 return numberMap[match]; 4873 }); 4874 }, 4875 postformat: function (string) { 4876 return string.replace(/\d/g, function (match) { 4877 return symbolMap[match]; 4878 }); 4879 }, 4880 // Hindi notation for meridiems are quite fuzzy in practice. While there exists 4881 // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi. 4882 meridiem : function (hour, minute, isLower) { 4883 if (hour < 4) { 4884 return "रात"; 4885 } else if (hour < 10) { 4886 return "सà¥à¤¬à¤¹"; 4887 } else if (hour < 17) { 4888 return "दà¥à¤ªà¤¹à¤°"; 4889 } else if (hour < 20) { 4890 return "शाम"; 4891 } else { 4892 return "रात"; 4893 } 4894 }, 4895 week : { 4896 dow : 0, // Sunday is the first day of the week. 4897 doy : 6 // The week that contains Jan 1st is the first week of the year. 4898 } 4899 }); 4900})); 4901// moment.js language configuration 4902// language : hrvatski (hr) 4903// author : Bojan MarkoviÄ : https://github.com/bmarkovic 4904 4905// based on (sl) translation by Robert SedovÅ¡ek 4906 4907(function (factory) { 4908 factory(moment); 4909}(function (moment) { 4910 4911 function translate(number, withoutSuffix, key) { 4912 var result = number + " "; 4913 switch (key) { 4914 case 'm': 4915 return withoutSuffix ? 'jedna minuta' : 'jedne minute'; 4916 case 'mm': 4917 if (number === 1) { 4918 result += 'minuta'; 4919 } else if (number === 2 || number === 3 || number === 4) { 4920 result += 'minute'; 4921 } else { 4922 result += 'minuta'; 4923 } 4924 return result; 4925 case 'h': 4926 return withoutSuffix ? 'jedan sat' : 'jednog sata'; 4927 case 'hh': 4928 if (number === 1) { 4929 result += 'sat'; 4930 } else if (number === 2 || number === 3 || number === 4) { 4931 result += 'sata'; 4932 } else { 4933 result += 'sati'; 4934 } 4935 return result; 4936 case 'dd': 4937 if (number === 1) { 4938 result += 'dan'; 4939 } else { 4940 result += 'dana'; 4941 } 4942 return result; 4943 case 'MM': 4944 if (number === 1) { 4945 result += 'mjesec'; 4946 } else if (number === 2 || number === 3 || number === 4) { 4947 result += 'mjeseca'; 4948 } else { 4949 result += 'mjeseci'; 4950 } 4951 return result; 4952 case 'yy': 4953 if (number === 1) { 4954 result += 'godina'; 4955 } else if (number === 2 || number === 3 || number === 4) { 4956 result += 'godine'; 4957 } else { 4958 result += 'godina'; 4959 } 4960 return result; 4961 } 4962 } 4963 4964 return moment.lang('hr', { 4965 months : "sjeÄanj_veljaÄa_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"), 4966 monthsShort : "sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"), 4967 weekdays : "nedjelja_ponedjeljak_utorak_srijeda_Äetvrtak_petak_subota".split("_"), 4968 weekdaysShort : "ned._pon._uto._sri._Äet._pet._sub.".split("_"), 4969 weekdaysMin : "ne_po_ut_sr_Äe_pe_su".split("_"), 4970 longDateFormat : { 4971 LT : "H:mm", 4972 L : "DD. MM. YYYY", 4973 LL : "D. MMMM YYYY", 4974 LLL : "D. MMMM YYYY LT", 4975 LLLL : "dddd, D. MMMM YYYY LT" 4976 }, 4977 calendar : { 4978 sameDay : '[danas u] LT', 4979 nextDay : '[sutra u] LT', 4980 4981 nextWeek : function () { 4982 switch (this.day()) { 4983 case 0: 4984 return '[u] [nedjelju] [u] LT'; 4985 case 3: 4986 return '[u] [srijedu] [u] LT'; 4987 case 6: 4988 return '[u] [subotu] [u] LT'; 4989 case 1: 4990 case 2: 4991 case 4: 4992 case 5: 4993 return '[u] dddd [u] LT'; 4994 } 4995 }, 4996 lastDay : '[juÄer u] LT', 4997 lastWeek : function () { 4998 switch (this.day()) { 4999 case 0: 5000 case 3: 5001 return '[proÅ¡lu] dddd [u] LT'; 5002 case 6: 5003 return '[proÅ¡le] [subote] [u] LT'; 5004 case 1: 5005 case 2: 5006 case 4: 5007 case 5: 5008 return '[proÅ¡li] dddd [u] LT'; 5009 } 5010 }, 5011 sameElse : 'L' 5012 }, 5013 relativeTime : { 5014 future : "za %s", 5015 past : "prije %s", 5016 s : "par sekundi", 5017 m : translate, 5018 mm : translate, 5019 h : translate, 5020 hh : translate, 5021 d : "dan", 5022 dd : translate, 5023 M : "mjesec", 5024 MM : translate, 5025 y : "godinu", 5026 yy : translate 5027 }, 5028 ordinal : '%d.', 5029 week : { 5030 dow : 1, // Monday is the first day of the week. 5031 doy : 7 // The week that contains Jan 1st is the first week of the year. 5032 } 5033 }); 5034})); 5035// moment.js language configuration 5036// language : hungarian (hu) 5037// author : Adam Brunner : https://github.com/adambrunner 5038 5039(function (factory) { 5040 factory(moment); 5041}(function (moment) { 5042 var weekEndings = 'vasárnap hétfÅn kedden szerdán csütörtökön pénteken szombaton'.split(' '); 5043 5044 function translate(number, withoutSuffix, key, isFuture) { 5045 var num = number, 5046 suffix; 5047 5048 switch (key) { 5049 case 's': 5050 return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce'; 5051 case 'm': 5052 return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce'); 5053 case 'mm': 5054 return num + (isFuture || withoutSuffix ? ' perc' : ' perce'); 5055 case 'h': 5056 return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája'); 5057 case 'hh': 5058 return num + (isFuture || withoutSuffix ? ' óra' : ' órája'); 5059 case 'd': 5060 return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja'); 5061 case 'dd': 5062 return num + (isFuture || withoutSuffix ? ' nap' : ' napja'); 5063 case 'M': 5064 return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); 5065 case 'MM': 5066 return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); 5067 case 'y': 5068 return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve'); 5069 case 'yy': 5070 return num + (isFuture || withoutSuffix ? ' év' : ' éve'); 5071 } 5072 5073 return ''; 5074 } 5075 5076 function week(isFuture) { 5077 return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]'; 5078 } 5079 5080 return moment.lang('hu', { 5081 months : "január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"), 5082 monthsShort : "jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"), 5083 weekdays : "vasárnap_hétfÅ_kedd_szerda_csütörtök_péntek_szombat".split("_"), 5084 weekdaysShort : "vas_hét_kedd_sze_csüt_pén_szo".split("_"), 5085 weekdaysMin : "v_h_k_sze_cs_p_szo".split("_"), 5086 longDateFormat : { 5087 LT : "H:mm", 5088 L : "YYYY.MM.DD.", 5089 LL : "YYYY. MMMM D.", 5090 LLL : "YYYY. MMMM D., LT", 5091 LLLL : "YYYY. MMMM D., dddd LT" 5092 }, 5093 meridiem : function (hours, minutes, isLower) { 5094 if (hours < 12) { 5095 return isLower === true ? 'de' : 'DE'; 5096 } else { 5097 return isLower === true ? 'du' : 'DU'; 5098 } 5099 }, 5100 calendar : { 5101 sameDay : '[ma] LT[-kor]', 5102 nextDay : '[holnap] LT[-kor]', 5103 nextWeek : function () { 5104 return week.call(this, true); 5105 }, 5106 lastDay : '[tegnap] LT[-kor]', 5107 lastWeek : function () { 5108 return week.call(this, false); 5109 }, 5110 sameElse : 'L' 5111 }, 5112 relativeTime : { 5113 future : "%s múlva", 5114 past : "%s", 5115 s : translate, 5116 m : translate, 5117 mm : translate, 5118 h : translate, 5119 hh : translate, 5120 d : translate, 5121 dd : translate, 5122 M : translate, 5123 MM : translate, 5124 y : translate, 5125 yy : translate 5126 }, 5127 ordinal : '%d.', 5128 week : { 5129 dow : 1, // Monday is the first day of the week. 5130 doy : 7 // The week that contains Jan 1st is the first week of the year. 5131 } 5132 }); 5133})); 5134// moment.js language configuration 5135// language : Armenian (hy-am) 5136// author : Armendarabyan : https://github.com/armendarabyan 5137 5138(function (factory) { 5139 factory(moment); 5140}(function (moment) { 5141 5142 function monthsCaseReplace(m, format) { 5143 var months = { 5144 'nominative': 'Õ°Õ¸ÖÕ¶Õ¾Õ¡Ö_ÖÕ¥Õ¿ÖÕ¾Õ¡Ö_Õ´Õ¡ÖÕ¿_Õ¡ÕºÖÕ«Õ¬_Õ´Õ¡ÕµÕ«Õ½_Õ°Õ¸ÖÕ¶Õ«Õ½_Õ°Õ¸ÖÕ¬Õ«Õ½_Ö Õ£Õ¸Õ½Õ¿Õ¸Õ½_Õ½Õ¥ÕºÕ¿Õ¥Õ´Õ¢Õ¥Ö_Õ°Õ¸Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö_Õ¶Õ¸ÕµÕ¥Õ´Õ¢Õ¥Ö_Õ¤Õ¥Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö'.split('_'), 5145 'accusative': 'Õ°Õ¸ÖÕ¶Õ¾Õ¡ÖÕ«_ÖÕ¥Õ¿ÖÕ¾Õ¡ÖÕ«_Õ´Õ¡ÖÕ¿Õ«_Õ¡ÕºÖÕ«Õ¬Õ«_Õ´Õ¡ÕµÕ«Õ½Õ«_Õ°Õ¸ÖÕ¶Õ«Õ½Õ«_Õ°Õ¸ÖÕ¬Õ«Õ½Õ«_Ö Õ£Õ¸Õ½Õ¿Õ¸Õ½Õ«_Õ½Õ¥ÕºÕ¿Õ¥Õ´Õ¢Õ¥ÖÕ«_Õ°Õ¸Õ¯Õ¿Õ¥Õ´Õ¢Õ¥ÖÕ«_Õ¶Õ¸ÕµÕ¥Õ´Õ¢Õ¥ÖÕ«_Õ¤Õ¥Õ¯Õ¿Õ¥Õ´Õ¢Õ¥ÖÕ«'.split('_') 5146 }, 5147 5148 nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ? 5149 'accusative' : 5150 'nominative'; 5151 5152 return months[nounCase][m.month()]; 5153 } 5154 5155 function monthsShortCaseReplace(m, format) { 5156 var monthsShort = 'Õ°Õ¶Õ¾_ÖÕ¿Ö_Õ´ÖÕ¿_Õ¡ÕºÖ_Õ´ÕµÕ½_Õ°Õ¶Õ½_Õ°Õ¬Õ½_Ö Õ£Õ½_Õ½ÕºÕ¿_Õ°Õ¯Õ¿_Õ¶Õ´Õ¢_Õ¤Õ¯Õ¿'.split('_'); 5157 5158 return monthsShort[m.month()]; 5159 } 5160 5161 function weekdaysCaseReplace(m, format) { 5162 var weekdays = 'Õ¯Õ«ÖÕ¡Õ¯Õ«_Õ¥ÖÕ¯Õ¸ÖÕ·Õ¡Õ¢Õ©Õ«_Õ¥ÖÕ¥ÖÕ·Õ¡Õ¢Õ©Õ«_Õ¹Õ¸ÖÕ¥ÖÕ·Õ¡Õ¢Õ©Õ«_Õ°Õ«Õ¶Õ£Õ·Õ¡Õ¢Õ©Õ«_Õ¸ÖÖÕ¢Õ¡Õ©_Õ·Õ¡Õ¢Õ¡Õ©'.split('_'); 5163 5164 return weekdays[m.day()]; 5165 } 5166 5167 return moment.lang('hy-am', { 5168 months : monthsCaseReplace, 5169 monthsShort : monthsShortCaseReplace, 5170 weekdays : weekdaysCaseReplace, 5171 weekdaysShort : "Õ¯ÖÕ¯_Õ¥ÖÕ¯_Õ¥ÖÖ_Õ¹ÖÖ_Õ°Õ¶Õ£_Õ¸ÖÖÕ¢_Õ·Õ¢Õ©".split("_"), 5172 weekdaysMin : "Õ¯ÖÕ¯_Õ¥ÖÕ¯_Õ¥ÖÖ_Õ¹ÖÖ_Õ°Õ¶Õ£_Õ¸ÖÖÕ¢_Õ·Õ¢Õ©".split("_"), 5173 longDateFormat : { 5174 LT : "HH:mm", 5175 L : "DD.MM.YYYY", 5176 LL : "D MMMM YYYY Õ©.", 5177 LLL : "D MMMM YYYY Õ©., LT", 5178 LLLL : "dddd, D MMMM YYYY Õ©., LT" 5179 }, 5180 calendar : { 5181 sameDay: '[Õ¡ÕµÕ½Ö Ö] LT', 5182 nextDay: '[Õ¾Õ¡Õ²Õ¨] LT', 5183 lastDay: '[Õ¥ÖÕ¥Õ¯] LT', 5184 nextWeek: function () { 5185 return 'dddd [Ö ÖÕ¨ ÕªÕ¡Õ´Õ¨] LT'; 5186 }, 5187 lastWeek: function () { 5188 return '[Õ¡Õ¶ÖÕ¡Õ®] dddd [Ö ÖÕ¨ ÕªÕ¡Õ´Õ¨] LT'; 5189 }, 5190 sameElse: 'L' 5191 }, 5192 relativeTime : { 5193 future : "%s Õ°Õ¥Õ¿Õ¸", 5194 past : "%s Õ¡Õ¼Õ¡Õ»", 5195 s : "Õ´Õ« ÖÕ¡Õ¶Õ« Õ¾Õ¡ÕµÖÕ¯ÕµÕ¡Õ¶", 5196 m : "ÖÕ¸ÕºÕ¥", 5197 mm : "%d ÖÕ¸ÕºÕ¥", 5198 h : "ÕªÕ¡Õ´", 5199 hh : "%d ÕªÕ¡Õ´", 5200 d : "Ö Ö", 5201 dd : "%d Ö Ö", 5202 M : "Õ¡Õ´Õ«Õ½", 5203 MM : "%d Õ¡Õ´Õ«Õ½", 5204 y : "Õ¿Õ¡ÖÕ«", 5205 yy : "%d Õ¿Õ¡ÖÕ«" 5206 }, 5207 5208 meridiem : function (hour) { 5209 if (hour < 4) { 5210 return "Õ£Õ«Õ·Õ¥ÖÕ¾Õ¡"; 5211 } else if (hour < 12) { 5212 return "Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¾Õ¡"; 5213 } else if (hour < 17) { 5214 return "ÖÕ¥ÖÕ¥Õ¯Õ¾Õ¡"; 5215 } else { 5216 return "Õ¥ÖÕ¥Õ¯Õ¸ÕµÕ¡Õ¶"; 5217 } 5218 }, 5219 5220 ordinal: function (number, period) { 5221 switch (period) { 5222 case 'DDD': 5223 case 'w': 5224 case 'W': 5225 case 'DDDo': 5226 if (number === 1) { 5227 return number + '-Õ«Õ¶'; 5228 } 5229 return number + '-ÖÕ¤'; 5230 default: 5231 return number; 5232 } 5233 }, 5234 5235 week : { 5236 dow : 1, // Monday is the first day of the week. 5237 doy : 7 // The week that contains Jan 1st is the first week of the year. 5238 } 5239 }); 5240})); 5241// moment.js language configuration 5242// language : Bahasa Indonesia (id) 5243// author : Mohammad Satrio Utomo : https://github.com/tyok 5244// reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan 5245 5246(function (factory) { 5247 factory(moment); 5248}(function (moment) { 5249 return moment.lang('id', { 5250 months : "Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"), 5251 monthsShort : "Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"), 5252 weekdays : "Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"), 5253 weekdaysShort : "Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"), 5254 weekdaysMin : "Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"), 5255 longDateFormat : { 5256 LT : "HH.mm", 5257 L : "DD/MM/YYYY", 5258 LL : "D MMMM YYYY", 5259 LLL : "D MMMM YYYY [pukul] LT", 5260 LLLL : "dddd, D MMMM YYYY [pukul] LT" 5261 }, 5262 meridiem : function (hours, minutes, isLower) { 5263 if (hours < 11) { 5264 return 'pagi'; 5265 } else if (hours < 15) { 5266 return 'siang'; 5267 } else if (hours < 19) { 5268 return 'sore'; 5269 } else { 5270 return 'malam'; 5271 } 5272 }, 5273 calendar : { 5274 sameDay : '[Hari ini pukul] LT', 5275 nextDay : '[Besok pukul] LT', 5276 nextWeek : 'dddd [pukul] LT', 5277 lastDay : '[Kemarin pukul] LT', 5278 lastWeek : 'dddd [lalu pukul] LT', 5279 sameElse : 'L' 5280 }, 5281 relativeTime : { 5282 future : "dalam %s", 5283 past : "%s yang lalu", 5284 s : "beberapa detik", 5285 m : "semenit", 5286 mm : "%d menit", 5287 h : "sejam", 5288 hh : "%d jam", 5289 d : "sehari", 5290 dd : "%d hari", 5291 M : "sebulan", 5292 MM : "%d bulan", 5293 y : "setahun", 5294 yy : "%d tahun" 5295 }, 5296 week : { 5297 dow : 1, // Monday is the first day of the week. 5298 doy : 7 // The week that contains Jan 1st is the first week of the year. 5299 } 5300 }); 5301})); 5302// moment.js language configuration 5303// language : icelandic (is) 5304// author : Hinrik Ãrn Sigurðsson : https://github.com/hinrik 5305 5306(function (factory) { 5307 factory(moment); 5308}(function (moment) { 5309 function plural(n) { 5310 if (n % 100 === 11) { 5311 return true; 5312 } else if (n % 10 === 1) { 5313 return false; 5314 } 5315 return true; 5316 } 5317 5318 function translate(number, withoutSuffix, key, isFuture) { 5319 var result = number + " "; 5320 switch (key) { 5321 case 's': 5322 return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum'; 5323 case 'm': 5324 return withoutSuffix ? 'mÃnúta' : 'mÃnútu'; 5325 case 'mm': 5326 if (plural(number)) { 5327 return result + (withoutSuffix || isFuture ? 'mÃnútur' : 'mÃnútum'); 5328 } else if (withoutSuffix) { 5329 return result + 'mÃnúta'; 5330 } 5331 return result + 'mÃnútu'; 5332 case 'hh': 5333 if (plural(number)) { 5334 return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum'); 5335 } 5336 return result + 'klukkustund'; 5337 case 'd': 5338 if (withoutSuffix) { 5339 return 'dagur'; 5340 } 5341 return isFuture ? 'dag' : 'degi'; 5342 case 'dd': 5343 if (plural(number)) { 5344 if (withoutSuffix) { 5345 return result + 'dagar'; 5346 } 5347 return result + (isFuture ? 'daga' : 'dögum'); 5348 } else if (withoutSuffix) { 5349 return result + 'dagur'; 5350 } 5351 return result + (isFuture ? 'dag' : 'degi'); 5352 case 'M': 5353 if (withoutSuffix) { 5354 return 'mánuður'; 5355 } 5356 return isFuture ? 'mánuð' : 'mánuði'; 5357 case 'MM': 5358 if (plural(number)) { 5359 if (withoutSuffix) { 5360 return result + 'mánuðir'; 5361 } 5362 return result + (isFuture ? 'mánuði' : 'mánuðum'); 5363 } else if (withoutSuffix) { 5364 return result + 'mánuður'; 5365 } 5366 return result + (isFuture ? 'mánuð' : 'mánuði'); 5367 case 'y': 5368 return withoutSuffix || isFuture ? 'ár' : 'ári'; 5369 case 'yy': 5370 if (plural(number)) { 5371 return result + (withoutSuffix || isFuture ? 'ár' : 'árum'); 5372 } 5373 return result + (withoutSuffix || isFuture ? 'ár' : 'ári'); 5374 } 5375 } 5376 5377 return moment.lang('is', { 5378 months : "janúar_febrúar_mars_aprÃl_maÃ_júnÃ_júlÃ_ágúst_september_október_nóvember_desember".split("_"), 5379 monthsShort : "jan_feb_mar_apr_maÃ_jún_júl_ágú_sep_okt_nóv_des".split("_"), 5380 weekdays : "sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"), 5381 weekdaysShort : "sun_mán_þri_mið_fim_fös_lau".split("_"), 5382 weekdaysMin : "Su_Má_Ãr_Mi_Fi_Fö_La".split("_"), 5383 longDateFormat : { 5384 LT : "H:mm", 5385 L : "DD/MM/YYYY", 5386 LL : "D. MMMM YYYY", 5387 LLL : "D. MMMM YYYY [kl.] LT", 5388 LLLL : "dddd, D. MMMM YYYY [kl.] LT" 5389 }, 5390 calendar : { 5391 sameDay : '[à dag kl.] LT', 5392 nextDay : '[á morgun kl.] LT', 5393 nextWeek : 'dddd [kl.] LT', 5394 lastDay : '[à gær kl.] LT', 5395 lastWeek : '[sÃðasta] dddd [kl.] LT', 5396 sameElse : 'L' 5397 }, 5398 relativeTime : { 5399 future : "eftir %s", 5400 past : "fyrir %s sÃðan", 5401 s : translate, 5402 m : translate, 5403 mm : translate, 5404 h : "klukkustund", 5405 hh : translate, 5406 d : translate, 5407 dd : translate, 5408 M : translate, 5409 MM : translate, 5410 y : translate, 5411 yy : translate 5412 }, 5413 ordinal : '%d.', 5414 week : { 5415 dow : 1, // Monday is the first day of the week. 5416 doy : 4 // The week that contains Jan 4th is the first week of the year. 5417 } 5418 }); 5419})); 5420// moment.js language configuration 5421// language : italian (it)
5422// author : Lorenzo : https://github.com/aliem 5423// author: Mattia Larentis: https://github.com/nostalgiaz 5424 5425(function (factory) { 5426 factory(moment); 5427}(function (moment) { 5428 return moment.lang('it', { 5429 months : "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"), 5430 monthsShort : "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"), 5431 weekdays : "Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"), 5432 weekdaysShort : "Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"), 5433 weekdaysMin : "D_L_Ma_Me_G_V_S".split("_"), 5434 longDateFormat : { 5435 LT : "HH:mm", 5436 L : "DD/MM/YYYY", 5437 LL : "D MMMM YYYY", 5438 LLL : "D MMMM YYYY LT", 5439 LLLL : "dddd, D MMMM YYYY LT" 5440 }, 5441 calendar : { 5442 sameDay: '[Oggi alle] LT', 5443 nextDay: '[Domani alle] LT', 5444 nextWeek: 'dddd [alle] LT', 5445 lastDay: '[Ieri alle] LT', 5446 lastWeek: '[lo scorso] dddd [alle] LT', 5447 sameElse: 'L' 5448 }, 5449 relativeTime : { 5450 future : function (s) { 5451 return ((/^[0-9].+$/).test(s) ? "tra" : "in") + " " + s; 5452 }, 5453 past : "%s fa", 5454 s : "alcuni secondi", 5455 m : "un minuto", 5456 mm : "%d minuti", 5457 h : "un'ora", 5458 hh : "%d ore", 5459 d : "un giorno", 5460 dd : "%d giorni", 5461 M : "un mese", 5462 MM : "%d mesi", 5463 y : "un anno", 5464 yy : "%d anni" 5465 }, 5466 ordinal: '%dº', 5467 week : { 5468 dow : 1, // Monday is the first day of the week. 5469 doy : 4 // The week that contains Jan 4th is the first week of the year. 5470 } 5471 }); 5472})); 5473// moment.js language configuration 5474// language : japanese (ja) 5475// author : LI Long : https://github.com/baryon 5476 5477(function (factory) { 5478 factory(moment); 5479}(function (moment) { 5480 return moment.lang('ja', { 5481 months : "1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"), 5482 monthsShort : "1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"), 5483 weekdays : "æ¥ææ¥_æææ¥_ç«ææ¥_æ°´ææ¥_æ¨ææ¥_éææ¥_åææ¥".split("_"), 5484 weekdaysShort : "æ¥_æ_ç«_æ°´_æ¨_é_å".split("_"), 5485 weekdaysMin : "æ¥_æ_ç«_æ°´_æ¨_é_å".split("_"), 5486 longDateFormat : { 5487 LT : "Ahæmå", 5488 L : "YYYY/MM/DD", 5489 LL : "YYYYå¹´MæDæ¥", 5490 LLL : "YYYYå¹´MæDæ¥LT", 5491 LLLL : "YYYYå¹´MæDæ¥LT dddd" 5492 }, 5493 meridiem : function (hour, minute, isLower) { 5494 if (hour < 12) { 5495 return "åå"; 5496 } else { 5497 return "åå¾"; 5498 } 5499 }, 5500 calendar : { 5501 sameDay : '[仿¥] LT', 5502 nextDay : '[ææ¥] LT', 5503 nextWeek : '[æ¥é±]dddd LT', 5504 lastDay : '[æ¨æ¥] LT', 5505 lastWeek : '[åé±]dddd LT', 5506 sameElse : 'L' 5507 }, 5508 relativeTime : { 5509 future : "%så¾", 5510 past : "%så", 5511 s : "æ°ç§", 5512 m : "1å", 5513 mm : "%då", 5514 h : "1æé", 5515 hh : "%dæé", 5516 d : "1æ¥", 5517 dd : "%dæ¥", 5518 M : "1ã¶æ", 5519 MM : "%dã¶æ", 5520 y : "1å¹´", 5521 yy : "%då¹´" 5522 } 5523 }); 5524})); 5525// moment.js language configuration 5526// language : Georgian (ka) 5527// author : Irakli Janiashvili : https://github.com/irakli-janiashvili 5528 5529(function (factory) { 5530 factory(moment); 5531}(function (moment) { 5532 5533 function monthsCaseReplace(m, format) { 5534 var months = { 5535 'nominative': 'áááááá á_ááááá áááá_ááá á¢á_ááá ááá_áááá¡á_ááááá¡á_ááááá¡á_ááááá¡á¢á_á¡áá¥á¢ááááá á_áá¥á¢ááááá á_ááááááá á_áááááááá á'.split('_'), 5536 'accusative': 'áááááá á¡_ááááá áááá¡_ááá á¢á¡_ááá áááá¡_áááá¡á¡_ááááá¡á¡_ááááá¡á¡_ááááá¡á¢á¡_á¡áá¥á¢ááááá á¡_áá¥á¢ááááá á¡_ááááááá á¡_áááááááá á¡'.split('_') 5537 }, 5538 5539 nounCase = (/D[oD] *MMMM?/).test(format) ? 5540 'accusative' : 5541 'nominative'; 5542 5543 return months[nounCase][m.month()]; 5544 } 5545 5546 function weekdaysCaseReplace(m, format) { 5547 var weekdays = { 5548 'nominative': 'áááá á_áá á¨ááááá_á¡ááá¨ááááá_ááá®á¨ááááá_á®á£áá¨ááááá_ááá áá¡áááá_á¨ááááá'.
5548split('_'), 5549 'accusative': 'áááá áá¡_áá á¨ááááá¡_á¡ááá¨ááááá¡_ááá®á¨ááááá¡_á®á£áá¨ááááá¡_ááá áá¡áááá¡_á¨ááááá¡'.split('_') 5550 }, 5551 5552 nounCase = (/(á¬ááá|á¨ááááá)/).test(format) ? 5553 'accusative' : 5554 'nominative'; 5555 5556 return weekdays[nounCase][m.day()]; 5557 } 5558 5559 return moment.lang('ka', { 5560 months : monthsCaseReplace, 5561 monthsShort : "ááá_ááá_ááá _ááá _ááá_ááá_ááá_ááá_á¡áá¥_áá¥á¢_ááá_ááá".split("_"), 5562 weekdays : weekdaysCaseReplace, 5563 weekdaysShort : "ááá_áá á¨_á¡áá_ááá®_á®á£á_ááá _á¨áá".split("_"), 5564 weekdaysMin : "áá_áá _á¡á_áá_á®á£_áá_á¨á".split("_"), 5565 longDateFormat : { 5566 LT : "h:mm A", 5567 L : "DD/MM/YYYY", 5568 LL : "D MMMM YYYY", 5569 LLL : "D MMMM YYYY LT", 5570 LLLL : "dddd, D MMMM YYYY LT" 5571 }, 5572 calendar : { 5573 sameDay : '[áá¦áá¡] LT[-áá]', 5574 nextDay : '[á®ááá] LT[-áá]', 5575 lastDay : '[áá£á¨áá] LT[-áá]', 5576 nextWeek : '[á¨ááááá] dddd LT[-áá]', 5577 lastWeek : '[á¬ááá] dddd LT-áá', 5578 sameElse : 'L' 5579 }, 5580 relativeTime : { 5581 future : function (s) { 5582 return (/(á¬ááá|á¬á£áá|á¡áááá|á¬ááá)/).test(s) ? 5583 s.replace(/á$/, "á¨á") : 5584 s + "á¨á"; 5585 }, 5586 past : function (s) { 5587 if ((/(á¬ááá|á¬á£áá|á¡áááá|áá¦á|ááá)/).test(s)) { 5588 return s.replace(/(á|á)$/, "áá¡ á¬áá"); 5589 } 5590 if ((/á¬ááá/).test(s)) { 5591 return s.replace(/á¬ááá$/, "á¬ááá¡ á¬áá"); 5592 } 5593 }, 5594 s : "á áááááááá á¬ááá", 5595 m : "á¬á£áá", 5596 mm : "%d á¬á£áá", 5597 h : "á¡áááá", 5598 hh : "%d á¡áááá", 5599 d : "áá¦á", 5600 dd : "%d áá¦á", 5601 M : "ááá", 5602 MM : "%d ááá", 5603 y : "á¬ááá", 5604 yy : "%d á¬ááá" 5605 }, 5606 ordinal : function (number) { 5607 if (number === 0) { 5608 return number; 5609 } 5610 5611 if (number === 1) { 5612 return number + "-áá"; 5613 } 5614 5615 if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) { 5616 return "áá-" + number; 5617 } 5618 5619 return number + "-á"; 5620 }, 5621 week : { 5622 dow : 1, 5623 doy : 7 5624 } 5625 }); 5626})); 5627// moment.js language configuration 5628// language : khmer (km) 5629// author : Kruy Vanna : https://github.com/kruyvanna 5630 5631(function (factory) { 5632 factory(moment); 5633}(function (moment) { 5634 return moment.lang('km', { 5635 months: "áááá¶_áá»áááá_áá·áá¶_áááá¶_á§ááá¶_áá·áá»áá¶_áááááá¶_áá¸á á¶_ááááá¶_áá»áá¶_áá·á ááá·áá¶_áááá¼".split("_"), 5636 monthsShort: "áááá¶_áá»áááá_áá·áá¶_áááá¶_á§ááá¶_áá·áá»áá¶_áááááá¶_áá¸á á¶_ááááá¶_áá»áá¶_áá·á ááá·áá¶_áááá¼".split("_"), 5637 weekdays: "á¢á¶áá·ááá_á áááá_á¢áááá¶á_áá»á_áááá ááááá·á_áá»ááá_áá áá".split("_"), 5638 weekdaysShort: "á¢á¶áá·ááá_á áááá_á¢áááá¶á_áá»á_áááá ááááá·á_áá»ááá_áá áá".split("_"), 5639 weekdaysMin: "á¢á¶áá·ááá_á áááá_á¢áááá¶á_áá»á_áááá ááááá·á_áá»ááá_áá áá".split("_"), 5640 longDateFormat: { 5641 LT: "HH:mm", 5642 L: "DD/MM/YYYY", 5643 LL: "D MMMM YYYY", 5644 LLL: "D MMMM YYYY LT", 5645 LLLL: "dddd, D MMMM YYYY LT" 5646 }, 5647 calendar: {
5648 sameDay: '[áááááá áááá] LT', 5649 nextDay: '[ááá¢áá áááá] LT', 5650 nextWeek: 'dddd [áááá] LT', 5651 lastDay: '[áááá·ááá·á áááá] LT', 5652 lastWeek: 'dddd [ááááá¶á ááá»á] [áááá] LT', 5653 sameElse: 'L' 5654 }, 5655 relativeTime: { 5656 future: "%sááá", 5657 past: "%sáá»á", 5658 s: "ááá»áááá¶ááá·áá¶áá¸", 5659 m: "áá½ááá¶áá¸", 5660 mm: "%d áá¶áá¸", 5661 h: "áá½ááááá", 5662 hh: "%d áááá", 5663 d: "áá½ááááá", 5664 dd: "%d áááá", 5665 M: "áá½ááá", 5666 MM: "%d áá", 5667 y: "áá½ááááá¶á", 5668 yy: "%d áááá¶á" 5669 }, 5670 week: { 5671 dow: 1, // Monday is the first day of the week. 5672 doy: 4 // The week that contains Jan 4th is the first week of the year. 5673 } 5674 }); 5675})); 5676// moment.js language configuration 5677// language : korean (ko) 5678// 5679// authors 5680// 5681// - Kyungwook, Park : https://github.com/kyungw00k 5682// - Jeeeyul Lee <[email protected]> 5683(function (factory) { 5684 factory(moment); 5685}(function (moment) { 5686 return moment.lang('ko', { 5687 months : "1ì_2ì_3ì_4ì_5ì_6ì_7ì_8ì_9ì_10ì_11ì_12ì".split("_"), 5688 monthsShort : "1ì_2ì_3ì_4ì_5ì_6ì_7ì_8ì_9ì_10ì_11ì_12ì".split("_"), 5689 weekdays : "ì¼ìì¼_ììì¼_íìì¼_ììì¼_목ìì¼_ê¸ìì¼_í ìì¼".split("_"), 5690 weekdaysShort : "ì¼_ì_í_ì_목_ê¸_í ".split("_"), 5691 weekdaysMin : "ì¼_ì_í_ì_목_ê¸_í ".split("_"), 5692 longDateFormat : { 5693 LT : "A hì mmë¶", 5694 L : "YYYY.MM.DD", 5695 LL : "YYYYë MMMM Dì¼", 5696 LLL : "YYYYë MMMM Dì¼ LT", 5697 LLLL : "YYYYë MMMM Dì¼ dddd LT" 5698 }, 5699 meridiem : function (hour, minute, isUpper) { 5700 return hour < 12 ? 'ì¤ì ' : 'ì¤í'; 5701 }, 5702 calendar : { 5703 sameDay : 'ì¤ë LT', 5704 nextDay : 'ë´ì¼ LT', 5705 nextWeek : 'dddd LT', 5706 lastDay : 'ì´ì LT', 5707 lastWeek : 'ì§ë주 dddd LT', 5708 sameElse : 'L' 5709 }, 5710 relativeTime : { 5711 future : "%s í", 5712 past : "%s ì ", 5713 s : "ëªì´", 5714 ss : "%dì´", 5715 m : "ì¼ë¶", 5716 mm : "%dë¶", 5717 h : "íìê°", 5718 hh : "%dìê°", 5719 d : "í루", 5720 dd : "%dì¼", 5721 M : "íë¬", 5722 MM : "%dë¬", 5723 y : "ì¼ë ", 5724 yy : "%dë " 5725 }, 5726 ordinal : '%dì¼', 5727 meridiemParse : /(ì¤ì |ì¤í)/, 5728 isPM : function (token) { 5729 return token === "ì¤í"; 5730 } 5731 }); 5732})); 5733// moment.js language configuration 5734// language : Luxembourgish (lb) 5735// author : mweimerskirch : https://github.com/mweimerskirch 5736 5737// Note: Luxembourgish has a very particular phonological rule ("Eifeler Regel") that causes the 5738// deletion of the final "n" in certain contexts. That's what the "eifelerRegelAppliesToWeekday" 5739// and "eifelerRegelAppliesToNumber" methods are meant for 5740 5741(function (factory) { 5742 factory(moment); 5743}(function (moment) { 5744 function processRelativeTime(number, withoutSuffix, key, isFuture) { 5745 var format = { 5746 'm': ['eng Minutt', 'enger Minutt'], 5747 'h': ['eng Stonn', 'enger Stonn'], 5748 'd': ['een Dag', 'engem Dag'], 5749 'dd': [number + ' Deeg', number + ' Deeg'], 5750 'M': ['ee Mount', 'engem Mount'], 5751 'MM': [number + ' Méint', number + ' Méint'], 5752 'y': ['ee Joer', 'engem Joer'], 5753 'yy': [number + ' Joer', number + ' Joer'] 5754 }; 5755 return withoutSuffix ? format[key][0] : format[key][1]; 5756 } 5757 5758 function processFutureTime(string) { 5759 var number = string.substr(0, string.indexOf(' ')); 5760 if (eifelerRegelAppliesToNumber(number)) { 5761 return "a " + string; 5762 } 5763 return "an " + string; 5764 } 5765 5766 function processPastTime(string) { 5767 var number = string.substr(0, string.indexOf(' ')); 5768 if (eifelerRegelAppliesToNumber(number)) { 5769 return "viru " + string; 5770 } 5771 return "virun " + string; 5772 } 5773 5774 function processLastWeek(string1) { 5775 var weekday = this.format('d'); 5776 if (eifelerRegelAppliesToWeekday(weekday)) { 5777 return '[Leschte] dddd [um] LT'; 5778 } 5779 return '[Leschten] dddd [um] LT'; 5780 } 5781 5782 /** 5783 * Returns true if the word before the given week day loses the "-n" ending. 5784 * e.g. "Leschten Dënschdeg" but "Leschte Méindeg" 5785 * 5786 * @param weekday {integer} 5787 * @returns {boolean} 5788 */ 5789 function eifelerRegelAppliesToWeekday(weekday) { 5790 weekday = parseInt(weekday, 10); 5791 switch (weekday) {
vendor: 4,796 bytes, lines 5792-5931
5792 case 0: // Sonndeg 5793 case 1: // Méindeg 5794 case 3: // Mëttwoch 5795 case 5: // Freideg 5796 case 6: // Samschdeg 5797 return true; 5798 default: // 2 Dënschdeg, 4 Donneschdeg 5799 return false; 5800 } 5801 } 5802 5803 /** 5804 * Returns true if the word before the given number loses the "-n" ending. 5805 * e.g. "an 10 Deeg" but "a 5 Deeg" 5806 * 5807 * @param number {integer} 5808 * @returns {boolean} 5809 */ 5810 function eifelerRegelAppliesToNumber(number) { 5811 number = parseInt(number, 10); 5812 if (isNaN(number)) { 5813 return false; 5814 } 5815 if (number < 0) { 5816 // Negative Number --> always true 5817 return true; 5818 } else if (number < 10) { 5819 // Only 1 digit 5820 if (4 <= number && number <= 7) { 5821 return true; 5822 } 5823 return false; 5824 } else if (number < 100) { 5825 // 2 digits 5826 var lastDigit = number % 10, firstDigit = number / 10; 5827 if (lastDigit === 0) { 5828 return eifelerRegelAppliesToNumber(firstDigit); 5829 } 5830 return eifelerRegelAppliesToNumber(lastDigit); 5831 } else if (number < 10000) { 5832 // 3 or 4 digits --> recursively check first digit 5833 while (number >= 10) { 5834 number = number / 10; 5835 } 5836 return eifelerRegelAppliesToNumber(number); 5837 } else { 5838 // Anything larger than 4 digits: recursively check first n-3 digits 5839 number = number / 1000; 5840 return eifelerRegelAppliesToNumber(number); 5841 } 5842 } 5843 5844 return moment.lang('lb', { 5845 months: "Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"), 5846 monthsShort: "Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"), 5847 weekdays: "Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"), 5848 weekdaysShort: "So._Mé._Dë._Më._Do._Fr._Sa.".split("_"), 5849 weekdaysMin: "So_Mé_Dë_Më_Do_Fr_Sa".split("_"), 5850 longDateFormat: { 5851 LT: "H:mm [Auer]", 5852 L: "DD.MM.YYYY", 5853 LL: "D. MMMM YYYY", 5854 LLL: "D. MMMM YYYY LT", 5855 LLLL: "dddd, D. MMMM YYYY LT" 5856 }, 5857 calendar: { 5858 sameDay: "[Haut um] LT", 5859 sameElse: "L", 5860 nextDay: '[Muer um] LT', 5861 nextWeek: 'dddd [um] LT', 5862 lastDay: '[Gëschter um] LT', 5863 lastWeek: processLastWeek 5864 }, 5865 relativeTime: { 5866 future: processFutureTime, 5867 past: processPastTime, 5868 s: "e puer Sekonnen", 5869 m: processRelativeTime, 5870 mm: "%d Minutten", 5871 h: processRelativeTime, 5872 hh: "%d Stonnen", 5873 d: processRelativeTime, 5874 dd: processRelativeTime, 5875 M: processRelativeTime, 5876 MM: processRelativeTime, 5877 y: processRelativeTime, 5878 yy: processRelativeTime 5879 }, 5880 ordinal: '%d.', 5881 week: { 5882 dow: 1, // Monday is the first day of the week. 5883 doy: 4 // The week that contains Jan 4th is the first week of the year. 5884 } 5885 }); 5886})); 5887// moment.js language configuration 5888// language : Lithuanian (lt) 5889// author : Mindaugas MozÅ«ras : https://github.com/mmozuras 5890 5891(function (factory) { 5892 factory(moment); 5893}(function (moment) { 5894 var units = { 5895 "m" : "minutÄ_minutÄs_minutÄ", 5896 "mm": "minutÄs_minuÄių_minutes", 5897 "h" : "valanda_valandos_valandÄ ", 5898 "hh": "valandos_valandų_valandas", 5899 "d" : "diena_dienos_dienÄ ", 5900 "dd": "dienos_dienų_dienas", 5901 "M" : "mÄnuo_mÄnesio_mÄnesį", 5902 "MM": "mÄnesiai_mÄnesių_mÄnesius", 5903 "y" : "metai_metų_metus", 5904 "yy": "metai_metų_metus" 5905 }, 5906 weekDays = "sekmadienis_pirmadienis_antradienis_treÄiadienis_ketvirtadienis_penktadienis_Å¡eÅ¡tadienis".split("_"); 5907 5908 function translateSeconds(number, withoutSuffix, key, isFuture) { 5909 if (withoutSuffix) { 5910 return "kelios sekundÄs"; 5911 } else { 5912 return isFuture ? "kelių sekundžių" : "kelias sekundes"; 5913 } 5914 } 5915 5916 function translateSingular(number, withoutSuffix, key, isFuture) { 5917 return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]); 5918 } 5919 5920 function special(number) { 5921 return number % 10 === 0 || (number > 10 && number < 20); 5922 } 5923 5924 function forms(key) { 5925 return units[key].split("_"); 5926 } 5927 5928 function translate(number, withoutSuffix, key, isFuture) { 5929 var result = number + " "; 5930 if (number === 1) { 5931 return result + translateSingular(number, withoutSuffix, key[
59310], isFuture); 5932 } else if (withoutSuffix) { 5933 return result + (special(number) ? forms(key)[1] : forms(key)[0]); 5934 } else { 5935 if (isFuture) { 5936 return result + forms(key)[1]; 5937 } else { 5938 return result + (special(number) ? forms(key)[1] : forms(key)[2]); 5939 } 5940 } 5941 } 5942 5943 function relativeWeekDay(moment, format) { 5944 var nominative = format.indexOf('dddd HH:mm') === -1, 5945 weekDay = weekDays[moment.day()]; 5946 5947 return nominative ? weekDay : weekDay.substring(0, weekDay.length - 2) + "į"; 5948 } 5949 5950 return moment.lang("lt", { 5951 months : "sausio_vasario_kovo_balandžio_gegužÄs_biržÄlio_liepos_rugpjÅ«Äio_rugsÄjo_spalio_lapkriÄio_gruodžio".split("_"), 5952 monthsShort : "sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"), 5953 weekdays : relativeWeekDay, 5954 weekdaysShort : "Sek_Pir_Ant_Tre_Ket_Pen_Å eÅ¡".split("_"), 5955 weekdaysMin : "S_P_A_T_K_Pn_Å ".split("_"), 5956 longDateFormat : { 5957 LT : "HH:mm", 5958 L : "YYYY-MM-DD", 5959 LL : "YYYY [m.] MMMM D [d.]", 5960 LLL : "YYYY [m.] MMMM D [d.], LT [val.]", 5961 LLLL : "YYYY [m.] MMMM D [d.], dddd, LT [val.]", 5962 l : "YYYY-MM-DD", 5963 ll : "YYYY [m.] MMMM D [d.]", 5964 lll : "YYYY [m.] MMMM D [d.], LT [val.]", 5965 llll : "YYYY [m.] MMMM D [d.], ddd, LT [val.]" 5966 }, 5967 calendar : { 5968 sameDay : "[Å iandien] LT", 5969 nextDay : "[Rytoj] LT", 5970 nextWeek : "dddd LT", 5971 lastDay : "[Vakar] LT", 5972 lastWeek : "[PraÄjusį] dddd LT", 5973 sameElse : "L" 5974 }, 5975 relativeTime : { 5976 future : "po %s", 5977 past : "prieÅ¡ %s", 5978 s : translateSeconds, 5979 m : translateSingular, 5980 mm : translate, 5981 h : translateSingular, 5982 hh : translate, 5983 d : translateSingular, 5984 dd : translate, 5985 M : translateSingular, 5986 MM : translate, 5987 y : translateSingular, 5988 yy : translate 5989 }, 5990 ordinal : function (number) { 5991 return number + '-oji'; 5992 }, 5993 week : { 5994 dow : 1, // Monday is the first day of the week. 5995 doy : 4 // The week that contains Jan 4th is the first week of the year. 5996 } 5997 }); 5998})); 5999// moment.js language configuration 6000// language : latvian (lv) 6001// author : Kristaps Karlsons : https://github.com/skakri 6002 6003(function (factory) { 6004 factory(moment); 6005}(function (moment) { 6006 var units = { 6007 'mm': 'minÅ«ti_minÅ«tes_minÅ«te_minÅ«tes', 6008 'hh': 'stundu_stundas_stunda_stundas', 6009 'dd': 'dienu_dienas_diena_dienas', 6010 'MM': 'mÄnesi_mÄneÅ¡us_mÄnesis_mÄneÅ¡i', 6011 'yy': 'gadu_gadus_gads_gadi' 6012 }; 6013 6014 function format(word, number, withoutSuffix) { 6015 var forms = word.split('_'); 6016 if (withoutSuffix) { 6017 return number % 10 === 1 && number !== 11 ? forms[2] : forms[3]; 6018 } else { 6019 return number % 10 === 1 && number !== 11 ? forms[0] : forms[1]; 6020 } 6021 } 6022 6023 function relativeTimeWithPlural(number, withoutSuffix, key) { 6024 return number + ' ' + format(units[key], number, withoutSuffix); 6025 } 6026 6027 return moment.lang('lv', { 6028 months : "janvÄris_februÄris_marts_aprÄ«lis_maijs_jÅ«nijs_jÅ«lijs_augusts_septembris_oktobris_novembris_decembris".split("_"), 6029 monthsShort : "jan_feb_mar_apr_mai_jÅ«n_jÅ«l_aug_sep_okt_nov_dec".split("_"), 6030 weekdays : "svÄtdiena_pirmdiena_otrdiena_treÅ¡diena_ceturtdiena_piektdiena_sestdiena".split("_"), 6031 weekdaysShort : "Sv_P_O_T_C_Pk_S".split("_"), 6032 weekdaysMin : "Sv_P_O_T_C_Pk_S".split("_"), 6033 longDateFormat : { 6034 LT : "HH:mm", 6035 L : "DD.MM.YYYY", 6036 LL : "YYYY. [gada] D. MMMM", 6037 LLL : "YYYY. [gada] D. MMMM, LT", 6038 LLLL : "YYYY. [gada] D. MMMM, dddd, LT" 6039 }, 6040 calendar : { 6041 sameDay : '[Å odien pulksten] LT', 6042 nextDay : '[RÄ«t pulksten] LT', 6043 nextWeek : 'dddd [pulksten] LT', 6044 lastDay : '[Vakar pulksten] LT', 6045 lastWeek : '[PagÄjuÅ¡Ä] dddd [pulksten] LT', 6046 sameElse : 'L' 6047 }, 6048 relativeTime : { 6049 future : "%s vÄlÄk", 6050 past : "%s agrÄk", 6051 s : "dažas sekundes", 6052 m : "minÅ«ti", 6053 mm : relativeTimeWithPlural, 6054 h : "stundu", 6055 hh : relativeTimeWithPlural,
vendor: 9,293 bytes, lines 6056-6288
6056 d : "dienu", 6057 dd : relativeTimeWithPlural, 6058 M : "mÄnesi", 6059 MM : relativeTimeWithPlural, 6060 y : "gadu", 6061 yy : relativeTimeWithPlural 6062 }, 6063 ordinal : '%d.', 6064 week : { 6065 dow : 1, // Monday is the first day of the week. 6066 doy : 4 // The week that contains Jan 4th is the first week of the year. 6067 } 6068 }); 6069})); 6070// moment.js language configuration 6071// language : macedonian (mk) 6072// author : Borislav Mickov : https://github.com/B0k0 6073 6074(function (factory) { 6075 factory(moment); 6076}(function (moment) { 6077 return moment.lang('mk', { 6078 months : "ÑанÑаÑи_ÑевÑÑаÑи_маÑÑ_апÑил_маÑ_ÑÑни_ÑÑли_авгÑÑÑ_ÑепÑемвÑи_окÑомвÑи_ноемвÑи_декемвÑи".split("_"), 6079 monthsShort : "Ñан_Ñев_маÑ_апÑ_маÑ_ÑÑн_ÑÑл_авг_Ñеп_окÑ_ное_дек".split("_"), 6080 weekdays : "недела_понеделник_вÑоÑник_ÑÑеда_ÑеÑвÑÑок_пеÑок_ÑабоÑа".split("_"), 6081 weekdaysShort : "нед_пон_вÑо_ÑÑе_ÑеÑ_пеÑ_Ñаб".split("_"), 6082 weekdaysMin : "нe_пo_вÑ_ÑÑ_Ñе_пе_Ña".split("_"), 6083 longDateFormat : { 6084 LT : "H:mm", 6085 L : "D.MM.YYYY", 6086 LL : "D MMMM YYYY", 6087 LLL : "D MMMM YYYY LT", 6088 LLLL : "dddd, D MMMM YYYY LT" 6089 }, 6090 calendar : { 6091 sameDay : '[ÐÐµÐ½ÐµÑ Ð²Ð¾] LT', 6092 nextDay : '[УÑÑе во] LT', 6093 nextWeek : 'dddd [во] LT', 6094 lastDay : '[ÐÑеÑа во] LT', 6095 lastWeek : function () { 6096 switch (this.day()) { 6097 case 0: 6098 case 3: 6099 case 6: 6100 return '[Ðо изминаÑаÑа] dddd [во] LT'; 6101 case 1: 6102 case 2: 6103 case 4: 6104 case 5: 6105 return '[Ðо изминаÑиоÑ] dddd [во] LT'; 6106 } 6107 }, 6108 sameElse : 'L' 6109 }, 6110 relativeTime : { 6111 future : "поÑле %s", 6112 past : "пÑед %s", 6113 s : "Ð½ÐµÐºÐ¾Ð»ÐºÑ ÑекÑнди", 6114 m : "минÑÑа", 6115 mm : "%d минÑÑи", 6116 h : "ÑаÑ", 6117 hh : "%d ÑаÑа", 6118 d : "ден", 6119 dd : "%d дена", 6120 M : "меÑеÑ", 6121 MM : "%d меÑеÑи", 6122 y : "година", 6123 yy : "%d години" 6124 }, 6125 ordinal : function (number) { 6126 var lastDigit = number % 10, 6127 last2Digits = number % 100; 6128 if (number === 0) { 6129 return number + '-ев'; 6130 } else if (last2Digits === 0) { 6131 return number + '-ен'; 6132 } else if (last2Digits > 10 && last2Digits < 20) { 6133 return number + '-Ñи'; 6134 } else if (lastDigit === 1) { 6135 return number + '-ви'; 6136 } else if (lastDigit === 2) { 6137 return number + '-Ñи'; 6138 } else if (lastDigit === 7 || lastDigit === 8) { 6139 return number + '-ми'; 6140 } else { 6141 return number + '-Ñи'; 6142 } 6143 }, 6144 week : { 6145 dow : 1, // Monday is the first day of the week. 6146 doy : 7 // The week that contains Jan 1st is the first week of the year. 6147 } 6148 }); 6149})); 6150// moment.js language configuration 6151// language : malayalam (ml) 6152// author : Floyd Pink : https://github.com/floydpink 6153 6154(function (factory) { 6155 factory(moment); 6156}(function (moment) { 6157 return moment.lang('ml', { 6158 months : 'à´à´¨àµà´µà´°à´¿_à´«àµà´¬àµà´°àµà´µà´°à´¿_മാർà´àµà´àµ_à´à´ªàµà´°à´¿àµ½_à´®àµà´¯àµ_à´àµàµº_à´àµà´²àµ_à´à´à´¸àµà´±àµà´±àµ_à´¸àµà´ªàµà´±àµà´±à´à´¬àµ¼_à´à´àµà´àµà´¬àµ¼_നവà´à´¬àµ¼_à´¡à´¿à´¸à´à´¬àµ¼'.split("_"), 6159 monthsShort : 'à´à´¨àµ._à´«àµà´¬àµà´°àµ._മാർ._à´à´ªàµà´°à´¿._à´®àµà´¯àµ_à´àµàµº_à´àµà´²àµ._à´à´._à´¸àµà´ªàµà´±àµà´±._à´à´àµà´àµ._നവà´._à´¡à´¿à´¸à´.'.split("_"), 6160 weekdays : 'à´à´¾à´¯à´±à´¾à´´àµà´_തിà´àµà´à´³à´¾à´´àµà´_à´àµà´µàµà´µà´¾à´´àµà´_à´¬àµà´§à´¨à´¾à´´àµà´_à´µàµà´¯à´¾à´´à´¾à´´àµà´_à´µàµà´³àµà´³à´¿à´¯à´¾à´´àµà´_ശനിയാഴàµà´'.split("_"), 6161 weekdaysShort : 'à´à´¾à´¯àµ¼_തിà´àµà´àµ¾_à´àµà´µàµà´µ_à´¬àµà´§àµ»_à´µàµà´¯à´¾à´´à´_à´µàµà´³àµà´³à´¿_ശനി'.split("_"), 6162 weekdaysMin : 'à´à´¾_തി_à´àµ_à´¬àµ_à´µàµà´¯à´¾_à´µàµ_à´¶'.split("_"), 6163 longDateFormat : { 6164 LT : "A h:mm -à´¨àµ", 6165 L : "DD/MM/YYYY", 6166 LL : "D MMMM YYYY", 6167 LLL : "D MMMM YYYY, LT", 6168 LLLL : "dddd, D MMMM YYYY, LT" 6169 }, 6170 calendar : { 6171 sameDay : '[à´à´¨àµà´¨àµ] LT', 6172 nextDay : '[നാളàµ] LT', 6173 nextWeek : 'dddd, LT', 6174 lastDay : '[à´à´¨àµà´¨à´²àµ] LT', 6175 lastWeek : '[à´à´´à´¿à´àµà´] dddd, LT', 6176 sameElse : 'L' 6177 }, 6178 relativeTime : { 6179 future : "%s à´à´´à´¿à´àµà´àµ", 6180 past : "%s à´®àµàµ»à´ªàµ", 6181 s : "ഠൽപ നിമിഷà´àµà´àµ¾", 6182 m : "à´à´°àµ മിനിറàµà´±àµ", 6183 mm : "%d മിനിറàµà´±àµ", 6184 h : "à´à´°àµ മണിà´àµà´àµàµ¼", 6185 hh : "%d മണിà´àµà´àµàµ¼", 6186 d : "à´à´°àµ ദിവസà´", 6187 dd : "%d ദിവസà´", 6188 M : "à´à´°àµ മാസà´", 6189 MM : "%d മാസà´", 6190 y : "à´à´°àµ വർഷà´", 6191 yy : "%d വർഷà´" 6192 }, 6193 meridiem : function (hour, minute, isLower) { 6194 if (hour < 4) { 6195 return "രാതàµà´°à´¿"; 6196 } else if (hour < 12) { 6197 return "രാവിലàµ"; 6198 } else if (hour < 17) { 6199 return "à´à´àµà´ à´à´´à´¿à´àµà´àµ"; 6200 } else if (hour < 20) { 6201 return "à´µàµà´àµà´¨àµà´¨àµà´°à´"; 6202 } else { 6203 return "രാതàµà´°à´¿"; 6204 } 6205 } 6206 }); 6207})); 6208// moment.js language configuration 6209// language : Marathi (mr) 6210// author : Harshad Kale : https://github.com/kalehv 6211 6212(function (factory) { 6213 factory(moment); 6214}(function (moment) { 6215 var symbolMap = { 6216 '1': '१', 6217 '2': '२', 6218 '3': '३', 6219 '4': '४', 6220 '5': '५', 6221 '6': '६', 6222 '7': 'à¥', 6223 '8': '८', 6224 '9': '९', 6225 '0': '०' 6226 }, 6227 numberMap = { 6228 '१': '1', 6229 '२': '2', 6230 '३': '3', 6231 '४': '4', 6232 '५': '5', 6233 '६': '6', 6234 'à¥': '7', 6235 '८': '8', 6236 '९': '9', 6237 '०': '0' 6238 }; 6239 6240 return moment.lang('mr', { 6241 months : 'à¤à¤¾à¤¨à¥à¤µà¤¾à¤°à¥_फà¥à¤¬à¥à¤°à¥à¤µà¤¾à¤°à¥_मारà¥à¤_à¤à¤ªà¥à¤°à¤¿à¤²_मà¥_à¤à¥à¤¨_à¤à¥à¤²à¥_à¤à¤à¤¸à¥à¤_सपà¥à¤à¥à¤à¤¬à¤°_à¤à¤à¥à¤à¥à¤¬à¤°_नà¥à¤µà¥à¤¹à¥à¤à¤¬à¤°_डिसà¥à¤à¤¬à¤°'.split("_"), 6242 monthsShort: 'à¤à¤¾à¤¨à¥._फà¥à¤¬à¥à¤°à¥._मारà¥à¤._à¤à¤ªà¥à¤°à¤¿._मà¥._à¤à¥à¤¨._à¤à¥à¤²à¥._à¤à¤._सपà¥à¤à¥à¤._à¤à¤à¥à¤à¥._नà¥à¤µà¥à¤¹à¥à¤._डिसà¥à¤.'.split("_"), 6243 weekdays : 'रविवार_सà¥à¤®à¤µà¤¾à¤°_मà¤à¤à¤³à¤µà¤¾à¤°_बà¥à¤§à¤µà¤¾à¤°_à¤à¥à¤°à¥à¤µà¤¾à¤°_शà¥à¤à¥à¤°à¤µà¤¾à¤°_शनिवार'.split("_"), 6244 weekdaysShort : 'रवि_सà¥à¤®_मà¤à¤à¤³_बà¥à¤§_à¤à¥à¤°à¥_शà¥à¤à¥à¤°_शनि'.split("_"), 6245 weekdaysMin : 'र_सà¥_मà¤_बà¥_à¤à¥_शà¥_श'.split("_"), 6246 longDateFormat : { 6247 LT : "A h:mm वाà¤à¤¤à¤¾", 6248 L : "DD/MM/YYYY", 6249 LL : "D MMMM YYYY", 6250 LLL : "D MMMM YYYY, LT", 6251 LLLL : "dddd, D MMMM YYYY, LT" 6252 }, 6253 calendar : { 6254 sameDay : '[à¤à¤] LT', 6255 nextDay : '[à¤à¤¦à¥à¤¯à¤¾] LT', 6256 nextWeek : 'dddd, LT', 6257 lastDay : '[à¤à¤¾à¤²] LT', 6258 lastWeek: '[माà¤à¥à¤²] dddd, LT', 6259 sameElse : 'L' 6260 }, 6261 relativeTime : { 6262 future : "%s नà¤à¤¤à¤°", 6263 past : "%s पà¥à¤°à¥à¤µà¥", 6264 s : "सà¥à¤à¤à¤¦", 6265 m: "à¤à¤ मिनिà¤", 6266 mm: "%d मिनिà¤à¥", 6267 h : "à¤à¤ तास", 6268 hh : "%d तास", 6269 d : "à¤à¤ दिवस", 6270 dd : "%d दिवस", 6271 M : "à¤à¤ महिना", 6272 MM : "%d महिनà¥", 6273 y : "à¤à¤ वरà¥à¤·", 6274 yy : "%d वरà¥à¤·à¥" 6275 }, 6276 preparse: function (string) { 6277 return string.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g, function (match) { 6278 return numberMap[match]; 6279 }); 6280 }, 6281 postformat: function (string) { 6282 return string.replace(/\d/g, function (match) { 6283 return symbolMap[match]; 6284 }); 6285 }, 6286 meridiem: function (hour, minute, isLower) 6287 { 6288 if (hour < 4) {
6289 return "रातà¥à¤°à¥"; 6290 } else if (hour < 10) { 6291 return "सà¤à¤¾à¤³à¥"; 6292 } else if (hour < 17) { 6293 return "दà¥à¤ªà¤¾à¤°à¥"; 6294 } else if (hour < 20) { 6295 return "सायà¤à¤à¤¾à¤³à¥"; 6296 } else { 6297 return "रातà¥à¤°à¥"; 6298 } 6299 }, 6300 week : { 6301 dow : 0, // Sunday is the first day of the week. 6302 doy : 6 // The week that contains Jan 1st is the first week of the year. 6303 } 6304 }); 6305})); 6306// moment.js language configuration 6307// language : Bahasa Malaysia (ms-MY) 6308// author : Weldan Jamili : https://github.com/weldan 6309 6310(function (factory) { 6311 factory(moment); 6312}(function (moment) { 6313 return moment.lang('ms-my', { 6314 months : "Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"), 6315 monthsShort : "Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"), 6316 weekdays : "Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"), 6317 weekdaysShort : "Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"), 6318 weekdaysMin : "Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"), 6319 longDateFormat : { 6320 LT : "HH.mm", 6321 L : "DD/MM/YYYY", 6322 LL : "D MMMM YYYY", 6323 LLL : "D MMMM YYYY [pukul] LT", 6324 LLLL : "dddd, D MMMM YYYY [pukul] LT" 6325 }, 6326 meridiem : function (hours, minutes, isLower) { 6327 if (hours < 11) { 6328 return 'pagi'; 6329 } else if (hours < 15) { 6330 return 'tengahari'; 6331 } else if (hours < 19) { 6332 return 'petang'; 6333 } else { 6334 return 'malam'; 6335 } 6336 }, 6337 calendar : { 6338 sameDay : '[Hari ini pukul] LT', 6339 nextDay : '[Esok pukul] LT', 6340 nextWeek : 'dddd [pukul] LT', 6341 lastDay : '[Kelmarin pukul] LT', 6342 lastWeek : 'dddd [lepas pukul] LT', 6343 sameElse : 'L' 6344 }, 6345 relativeTime : { 6346 future : "dalam %s", 6347 past : "%s yang lepas", 6348 s : "beberapa saat", 6349 m : "seminit", 6350 mm : "%d minit", 6351 h : "sejam", 6352 hh : "%d jam", 6353 d : "sehari", 6354 dd : "%d hari", 6355 M : "sebulan", 6356 MM : "%d bulan", 6357 y : "setahun", 6358 yy : "%d tahun" 6359 }, 6360 week : { 6361 dow : 1, // Monday is the first day of the week. 6362 doy : 7 // The week that contains Jan 1st is the first week of the year. 6363 } 6364 }); 6365})); 6366// moment.js language configuration 6367// language : norwegian bokmÃ¥l (nb) 6368// authors : Espen Hovlandsdal : https://github.com/rexxars 6369// Sigurd Gartmann : https://github.com/sigurdga 6370 6371(function (factory) { 6372 factory(moment); 6373}(function (moment) { 6374 return moment.lang('nb', { 6375 months : "januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"), 6376 monthsShort : "jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"), 6377 weekdays : "søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"), 6378 weekdaysShort : "sø._ma._ti._on._to._fr._lø.".split("_"), 6379 weekdaysMin : "sø_ma_ti_on_to_fr_lø".split("_"), 6380 longDateFormat : { 6381 LT : "H.mm", 6382 L : "DD.MM.YYYY", 6383 LL : "D. MMMM YYYY", 6384 LLL : "D. MMMM YYYY [kl.] LT", 6385 LLLL : "dddd D. MMMM YYYY [kl.] LT" 6386 }, 6387 calendar : { 6388 sameDay: '[i dag kl.] LT', 6389 nextDay: '[i morgen kl.] LT', 6390 nextWeek: 'dddd [kl.] LT', 6391 lastDay: '[i gÃ¥r kl.] LT', 6392 lastWeek: '[forrige] dddd [kl.] LT', 6393 sameElse: 'L' 6394 }, 6395 relativeTime : { 6396 future : "om %s", 6397 past : "for %s siden", 6398 s : "noen sekunder", 6399 m : "ett minutt", 6400 mm : "%d minutter", 6401 h : "en time", 6402 hh : "%d timer", 6403 d : "en dag", 6404 dd : "%d dager", 6405 M : "en mÃ¥ned", 6406 MM : "%d mÃ¥neder", 6407 y : "ett Ã¥r", 6408 yy : "%d Ã¥r" 6409 }, 6410 ordinal : '%d.', 6411 week : { 6412 dow : 1, // Monday is the first day of the week. 6413 doy : 4 // The week that contains Jan 4th is the first week of the year. 6414 } 6415 }); 6416})); 6417// moment.js language configuration 6418// language : nepali/nepalese 6419// author : suvash : https://github.com/suvash 6420 6421(function (factory) { 6422 factory(moment); 6423}(function (moment) { 6424 var symbolMap = { 6425 '1': '१', 6426 '2': '२', 6427 '3': '३', 6428 '4': '४', 6429 '5': '५', 6430 '6': '६', 6431 '7': 'à¥', 6432 '8': '८', 6433 '9': '९', 6434 '0': '०' 6435 }, 6436 numberMap = { 6437 '१': '1', 6438 '२': '2', 6439 '३': '3', 6440 '४': '4', 6441 '५': '5', 6442 '६': '6', 6443 'à¥': '7', 6444 '८': '8', 6445 '९': '9', 6446 '०': '0' 6447 }; 6448 6449 return moment.lang('ne', { 6450 months : 'à¤à¤¨à¤µà¤°à¥_फà¥à¤¬à¥à¤°à¥à¤µà¤°à¥_मारà¥à¤_ठपà¥à¤°à¤¿à¤²_मà¤_à¤à¥à¤¨_à¤à¥à¤²à¤¾à¤_ठà¤à¤·à¥à¤_सà¥à¤ªà¥à¤à¥à¤®à¥à¤¬à¤°_ठà¤à¥à¤à¥à¤¬à¤°_नà¥à¤à¥à¤®à¥à¤¬à¤°_डिसà¥à¤®à¥à¤¬à¤°'.split("_"), 6451 monthsShort : 'à¤à¤¨._फà¥à¤¬à¥à¤°à¥._मारà¥à¤_ठपà¥à¤°à¤¿._मà¤_à¤à¥à¤¨_à¤à¥à¤²à¤¾à¤._ठà¤._सà¥à¤ªà¥à¤._ठà¤à¥à¤à¥._नà¥à¤à¥._डिसà¥.'.split("_"), 6452 weekdays : 'à¤à¤à¤¤à¤¬à¤¾à¤°_सà¥à¤®à¤¬à¤¾à¤°_मà¤à¥à¤à¤²à¤¬à¤¾à¤°_बà¥à¤§à¤¬à¤¾à¤°_बिहिबार_शà¥à¤à¥à¤°à¤¬à¤¾à¤°_शनिबार'.split("_"), 6453 weekdaysShort : 'à¤à¤à¤¤._सà¥à¤®._मà¤à¥à¤à¤²._बà¥à¤§._बिहि._शà¥à¤à¥à¤°._शनि.'.split("_"), 6454 weekdaysMin : 'à¤à¤._सà¥._मà¤à¥_बà¥._बि._शà¥._श.'.split("_"), 6455 longDateFormat : { 6456 LT : "Aà¤à¥ h:mm बà¤à¥", 6457 L : "DD/MM/YYYY", 6458 LL : "D MMMM YYYY", 6459 LLL : "D MMMM YYYY, LT", 6460 LLLL : "dddd, D MMMM YYYY, LT" 6461 }, 6462 preparse: function (string) { 6463 return string.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g, function (match) { 6464 return numberMap[match]; 6465 }); 6466 }, 6467 postformat: function (string) { 6468 return string.replace(/\d/g, function (match) { 6469 return symbolMap[match]; 6470 }); 6471 }, 6472 meridiem : function (hour, minute, isLower) { 6473 if (hour < 3) {
6474 return "रातà¥"; 6475 } else if (hour < 10) { 6476 return "बिहान"; 6477 } else if (hour < 15) { 6478 return "दिà¤à¤à¤¸à¥"; 6479 } else if (hour < 18) { 6480 return "बà¥à¤²à¥à¤à¤¾"; 6481 } else if (hour < 20) { 6482 return "साà¤à¤"; 6483 } else { 6484 return "रातà¥"; 6485 } 6486 }, 6487 calendar : { 6488 sameDay : '[à¤à¤] LT', 6489 nextDay : '[à¤à¥à¤²à¥] LT', 6490 nextWeek : '[à¤à¤à¤à¤¦à¥] dddd[,] LT', 6491 lastDay : '[हिà¤à¥] LT', 6492 lastWeek : '[à¤à¤à¤à¥] dddd[,] LT', 6493 sameElse : 'L' 6494 }, 6495 relativeTime : { 6496 future : "%sमा", 6497 past : "%s ठà¤à¤¾à¤¡à¥", 6498 s : "à¤à¥à¤¹à¥ समय", 6499 m : "à¤à¤ मिनà¥à¤", 6500 mm : "%d मिनà¥à¤", 6501 h : "à¤à¤ à¤à¤£à¥à¤à¤¾", 6502 hh : "%d à¤à¤£à¥à¤à¤¾", 6503 d : "à¤à¤ दिन", 6504 dd : "%d दिन", 6505 M : "à¤à¤ महिना", 6506 MM : "%d महिना", 6507 y : "à¤à¤ बरà¥à¤·", 6508 yy : "%d बरà¥à¤·" 6509 }, 6510 week : { 6511 dow : 1, // Monday is the first day of the week. 6512 doy : 7 // The week that contains Jan 1st is the first week of the year. 6513 } 6514 }); 6515})); 6516// moment.js language configuration 6517// language : dutch (nl) 6518// author : Joris Röling : https://github.com/jjupiter 6519 6520(function (factory) { 6521 factory(moment); 6522}(function (moment) { 6523 var monthsShortWithDots = "jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"), 6524 monthsShortWithoutDots = "jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"); 6525 6526 return moment.lang('nl', { 6527 months : "januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"), 6528 monthsShort : function (m, format) { 6529 if (/-MMM-/.test(format)) { 6530 return monthsShortWithoutDots[m.month()]; 6531 } else { 6532 return monthsShortWithDots[m.month()]; 6533 } 6534 }, 6535 weekdays : "zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"), 6536 weekdaysShort : "zo._ma._di._wo._do._vr._za.".split("_"), 6537 weekdaysMin : "Zo_Ma_Di_Wo_Do_Vr_Za".split("_"), 6538 longDateFormat : { 6539 LT : "HH:mm", 6540 L : "DD-MM-YYYY", 6541 LL : "D MMMM YYYY", 6542 LLL : "D MMMM YYYY LT", 6543 LLLL : "dddd D MMMM YYYY LT" 6544 }, 6545 calendar : { 6546 sameDay: '[vandaag om] LT', 6547 nextDay: '[morgen om] LT', 6548 nextWeek: 'dddd [om] LT', 6549 lastDay: '[gisteren om] LT', 6550 lastWeek: '[afgelopen] dddd [om] LT', 6551 sameElse: 'L' 6552 }, 6553 relativeTime : { 6554 future : "over %s", 6555 past : "%s geleden", 6556 s : "een paar seconden", 6557 m : "één minuut", 6558 mm : "%d minuten", 6559 h : "één uur", 6560 hh : "%d uur", 6561 d : "één dag", 6562 dd : "%d dagen", 6563 M : "één maand", 6564 MM : "%d maanden",
vendor: 40,341 bytes, lines 6565-7682
6565 y : "één jaar", 6566 yy : "%d jaar" 6567 }, 6568 ordinal : function (number) { 6569 return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); 6570 }, 6571 week : { 6572 dow : 1, // Monday is the first day of the week. 6573 doy : 4 // The week that contains Jan 4th is the first week of the year. 6574 } 6575 }); 6576})); 6577// moment.js language configuration 6578// language : norwegian nynorsk (nn) 6579// author : https://github.com/mechuwind 6580 6581(function (factory) { 6582 factory(moment); 6583}(function (moment) { 6584 return moment.lang('nn', { 6585 months : "januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"), 6586 monthsShort : "jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"), 6587 weekdays : "sundag_mÃ¥ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"), 6588 weekdaysShort : "sun_mÃ¥n_tys_ons_tor_fre_lau".split("_"), 6589 weekdaysMin : "su_mÃ¥_ty_on_to_fr_lø".split("_"), 6590 longDateFormat : { 6591 LT : "HH:mm", 6592 L : "DD.MM.YYYY", 6593 LL : "D MMMM YYYY", 6594 LLL : "D MMMM YYYY LT", 6595 LLLL : "dddd D MMMM YYYY LT" 6596 }, 6597 calendar : { 6598 sameDay: '[I dag klokka] LT', 6599 nextDay: '[I morgon klokka] LT', 6600 nextWeek: 'dddd [klokka] LT', 6601 lastDay: '[I gÃ¥r klokka] LT', 6602 lastWeek: '[FøregÃ¥ande] dddd [klokka] LT', 6603 sameElse: 'L' 6604 }, 6605 relativeTime : { 6606 future : "om %s", 6607 past : "for %s sidan", 6608 s : "nokre sekund", 6609 m : "eit minutt", 6610 mm : "%d minutt", 6611 h : "ein time", 6612 hh : "%d timar", 6613 d : "ein dag", 6614 dd : "%d dagar", 6615 M : "ein mÃ¥nad", 6616 MM : "%d mÃ¥nader", 6617 y : "eit Ã¥r", 6618 yy : "%d Ã¥r" 6619 }, 6620 ordinal : '%d.', 6621 week : { 6622 dow : 1, // Monday is the first day of the week. 6623 doy : 4 // The week that contains Jan 4th is the first week of the year. 6624 } 6625 }); 6626})); 6627// moment.js language configuration 6628// language : polish (pl) 6629// author : Rafal Hirsz : https://github.com/evoL 6630 6631(function (factory) { 6632 factory(moment); 6633}(function (moment) { 6634 var monthsNominative = "styczeÅ_luty_marzec_kwiecieÅ_maj_czerwiec_lipiec_sierpieÅ_wrzesieÅ_październik_listopad_grudzieÅ".split("_"), 6635 monthsSubjective = "stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrzeÅnia_października_listopada_grudnia".split("_"); 6636 6637 function plural(n) { 6638 return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1); 6639 } 6640 6641 function translate(number, withoutSuffix, key) { 6642 var result = number + " "; 6643 switch (key) { 6644 case 'm': 6645 return withoutSuffix ? 'minuta' : 'minutÄ'; 6646 case 'mm': 6647 return result + (plural(number) ? 'minuty' : 'minut'); 6648 case 'h': 6649 return withoutSuffix ? 'godzina' : 'godzinÄ'; 6650 case 'hh': 6651 return result + (plural(number) ? 'godziny' : 'godzin'); 6652 case 'MM': 6653 return result + (plural(number) ? 'miesiÄ ce' : 'miesiÄcy'); 6654 case 'yy': 6655 return result + (plural(number) ? 'lata' : 'lat'); 6656 } 6657 } 6658 6659 return moment.lang('pl', { 6660 months : function (momentToFormat, format) { 6661 if (/D MMMM/.test(format)) { 6662 return monthsSubjective[momentToFormat.month()]; 6663 } else { 6664 return monthsNominative[momentToFormat.month()]; 6665 } 6666 }, 6667 monthsShort : "sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"), 6668 weekdays : "niedziela_poniedziaÅek_wtorek_Åroda_czwartek_piÄ tek_sobota".split("_"), 6669 weekdaysShort : "nie_pon_wt_År_czw_pt_sb".split("_"), 6670 weekdaysMin : "N_Pn_Wt_År_Cz_Pt_So".split("_"), 6671 longDateFormat : { 6672 LT : "HH:mm", 6673 L : "DD.MM.YYYY", 6674 LL : "D MMMM YYYY", 6675 LLL : "D MMMM YYYY LT", 6676 LLLL : "dddd, D MMMM YYYY LT" 6677 }, 6678 calendar : { 6679 sameDay: '[DziÅ o] LT', 6680 nextDay: '[Jutro o] LT', 6681 nextWeek: '[W] dddd [o] LT', 6682 lastDay: '[Wczoraj o] LT', 6683 lastWeek: function () { 6684 switch (this.day()) { 6685 case 0: 6686 return '[W zeszÅÄ niedzielÄ o] LT'; 6687 case 3: 6688 return '[W zeszÅÄ ÅrodÄ o] LT'; 6689 case 6: 6690 return '[W zeszÅÄ sobotÄ o] LT'; 6691 default: 6692 return '[W zeszÅy] dddd [o] LT'; 6693 } 6694 }, 6695 sameElse: 'L' 6696 }, 6697 relativeTime : { 6698 future : "za %s", 6699 past : "%s temu", 6700 s : "kilka sekund", 6701 m : translate, 6702 mm : translate, 6703 h : translate, 6704 hh : translate, 6705 d : "1 dzieÅ", 6706 dd : '%d dni', 6707 M : "miesiÄ c", 6708 MM : translate, 6709 y : "rok", 6710 yy : translate 6711 }, 6712 ordinal : '%d.', 6713 week : { 6714 dow : 1, // Monday is the first day of the week. 6715 doy : 4 // The week that contains Jan 4th is the first week of the year. 6716 } 6717 }); 6718})); 6719// moment.js language configuration 6720// language : brazilian portuguese (pt-br) 6721// author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira 6722 6723(function (factory) { 6724 factory(moment); 6725}(function (moment) { 6726 return moment.lang('pt-br', { 6727 months : "janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"), 6728 monthsShort : "jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"), 6729 weekdays : "domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"), 6730 weekdaysShort : "dom_seg_ter_qua_qui_sex_sáb".split("_"), 6731 weekdaysMin : "dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"), 6732 longDateFormat : { 6733 LT : "HH:mm", 6734 L : "DD/MM/YYYY", 6735 LL : "D [de] MMMM [de] YYYY", 6736 LLL : "D [de] MMMM [de] YYYY [à s] LT", 6737 LLLL : "dddd, D [de] MMMM [de] YYYY [à s] LT" 6738 }, 6739 calendar : { 6740 sameDay: '[Hoje à s] LT', 6741 nextDay: '[Amanhã à s] LT', 6742 nextWeek: 'dddd [à s] LT', 6743 lastDay: '[Ontem à s] LT', 6744 lastWeek: function () { 6745 return (this.day() === 0 || this.day() === 6) ? 6746 '[Ãltimo] dddd [à s] LT' : // Saturday + Sunday 6747 '[Ãltima] dddd [à s] LT'; // Monday - Friday 6748 }, 6749 sameElse: 'L' 6750 }, 6751 relativeTime : { 6752 future : "em %s", 6753 past : "%s atrás", 6754 s : "segundos", 6755 m : "um minuto", 6756 mm : "%d minutos", 6757 h : "uma hora", 6758 hh : "%d horas", 6759 d : "um dia", 6760 dd : "%d dias", 6761 M : "um mês", 6762 MM : "%d meses", 6763 y : "um ano", 6764 yy : "%d anos" 6765 }, 6766 ordinal : '%dº' 6767 }); 6768})); 6769// moment.js language configuration 6770// language : portuguese (pt) 6771// author : Jefferson : https://github.com/jalex79 6772 6773(function (factory) { 6774 factory(moment); 6775}(function (moment) { 6776 return moment.lang('pt', { 6777 months : "janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"), 6778 monthsShort : "jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"), 6779 weekdays : "domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"), 6780 weekdaysShort : "dom_seg_ter_qua_qui_sex_sáb".split("_"), 6781 weekdaysMin : "dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"), 6782 longDateFormat : { 6783 LT : "HH:mm", 6784 L : "DD/MM/YYYY", 6785 LL : "D [de] MMMM [de] YYYY", 6786 LLL : "D [de] MMMM [de] YYYY LT", 6787 LLLL : "dddd, D [de] MMMM [de] YYYY LT" 6788 }, 6789 calendar : { 6790 sameDay: '[Hoje à s] LT', 6791 nextDay: '[Amanhã à s] LT', 6792 nextWeek: 'dddd [à s] LT', 6793 lastDay: '[Ontem à s] LT', 6794 lastWeek: function () { 6795 return (this.day() === 0 || this.day() === 6) ? 6796 '[Ãltimo] dddd [à s] LT' : // Saturday + Sunday 6797 '[Ãltima] dddd [à s] LT'; // Monday - Friday 6798 }, 6799 sameElse: 'L' 6800 }, 6801 relativeTime : { 6802 future : "em %s", 6803 past : "há %s", 6804 s : "segundos", 6805 m : "um minuto", 6806 mm : "%d minutos", 6807 h : "uma hora", 6808 hh : "%d horas", 6809 d : "um dia", 6810 dd : "%d dias", 6811 M : "um mês", 6812 MM : "%d meses", 6813 y : "um ano", 6814 yy : "%d anos" 6815 }, 6816 ordinal : '%dº', 6817 week : { 6818 dow : 1, // Monday is the first day of the week. 6819 doy : 4 // The week that contains Jan 4th is the first week of the year. 6820 } 6821 }); 6822})); 6823// moment.js language configuration 6824// language : romanian (ro) 6825// author : Vlad Gurdiga : https://github.com/gurdiga 6826// author : Valentin Agachi : https://github.com/avaly 6827 6828(function (factory) { 6829 factory(moment); 6830}(function (moment) { 6831 function relativeTimeWithPlural(number, withoutSuffix, key) { 6832 var format = { 6833 'mm': 'minute', 6834 'hh': 'ore', 6835 'dd': 'zile', 6836 'MM': 'luni', 6837 'yy': 'ani' 6838 }, 6839 separator = ' '; 6840 if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) { 6841 separator = ' de '; 6842 } 6843 6844 return number + separator + format[key]; 6845 } 6846 6847 return moment.lang('ro', { 6848 months : "ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"), 6849 monthsShort : "ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"), 6850 weekdays : "duminicÄ_luni_marÈi_miercuri_joi_vineri_sâmbÄtÄ".split("_"), 6851 weekdaysShort : "Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"), 6852 weekdaysMin : "Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"), 6853 longDateFormat : { 6854 LT : "H:mm", 6855 L : "DD.MM.YYYY", 6856 LL : "D MMMM YYYY", 6857 LLL : "D MMMM YYYY H:mm", 6858 LLLL : "dddd, D MMMM YYYY H:mm" 6859 }, 6860 calendar : { 6861 sameDay: "[azi la] LT", 6862 nextDay: '[mâine la] LT', 6863 nextWeek: 'dddd [la] LT', 6864 lastDay: '[ieri la] LT', 6865 lastWeek: '[fosta] dddd [la] LT', 6866 sameElse: 'L' 6867 }, 6868 relativeTime : { 6869 future : "peste %s", 6870 past : "%s în urmÄ", 6871 s : "câteva secunde", 6872 m : "un minut", 6873 mm : relativeTimeWithPlural, 6874 h : "o orÄ", 6875 hh : relativeTimeWithPlural, 6876 d : "o zi", 6877 dd : relativeTimeWithPlural, 6878 M : "o lunÄ", 6879 MM : relativeTimeWithPlural, 6880 y : "un an", 6881 yy : relativeTimeWithPlural 6882 }, 6883 week : { 6884 dow : 1, // Monday is the first day of the week. 6885 doy : 7 // The week that contains Jan 1st is the first week of the year. 6886 } 6887 }); 6888})); 6889// moment.js language configuration 6890// language : russian (ru) 6891// author : Viktorminator : https://github.com/Viktorminator 6892// Author : Menelion Elensúle : https://github.com/Oire 6893 6894(function (factory) { 6895 factory(moment); 6896}(function (moment) { 6897 function plural(word, num) { 6898 var forms = word.split('_'); 6899 return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); 6900 } 6901 6902 function relativeTimeWithPlural(number, withoutSuffix, key) { 6903 var format = { 6904 'mm': withoutSuffix ? 'минÑÑа_минÑÑÑ_минÑÑ' : 'минÑÑÑ_минÑÑÑ_минÑÑ', 6905 'hh': 'ÑаÑ_ÑаÑа_ÑаÑов', 6906 'dd': 'денÑ_днÑ_дней', 6907 'MM': 'меÑÑÑ_меÑÑÑа_меÑÑÑев', 6908 'yy': 'год_года_леÑ' 6909 }; 6910 if (key === 'm') { 6911 return withoutSuffix ? 'минÑÑа' : 'минÑÑÑ'; 6912 } 6913 else { 6914 return number + ' ' + plural(format[key], +number); 6915 } 6916 } 6917 6918 function monthsCaseReplace(m, format) { 6919 var months = { 6920 'nominative': 'ÑнваÑÑ_ÑевÑалÑ_маÑÑ_апÑелÑ_май_иÑнÑ_иÑлÑ_авгÑÑÑ_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ'.split('_'), 6921 'accusative': 'ÑнваÑÑ_ÑевÑалÑ_маÑÑа_апÑелÑ_маÑ_иÑнÑ_иÑлÑ_авгÑÑÑа_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ'.split('_') 6922 }, 6923 6924 nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ? 6925 'accusative' : 6926 'nominative'; 6927 6928 return months[nounCase][m.month()]; 6929 } 6930 6931 function monthsShortCaseReplace(m, format) { 6932 var monthsShort = { 6933 'nominative': 'Ñнв_Ñев_маÑ_апÑ_май_иÑнÑ_иÑлÑ_авг_Ñен_окÑ_ноÑ_дек'.split('_'), 6934 'accusative': 'Ñнв_Ñев_маÑ_апÑ_маÑ_иÑнÑ_иÑлÑ_авг_Ñен_окÑ_ноÑ_дек'.split('_') 6935 }, 6936 6937 nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ? 6938 'accusative' : 6939 'nominative'; 6940 6941 return monthsShort[nounCase][m.month()]; 6942 } 6943 6944 function weekdaysCaseReplace(m, format) { 6945 var weekdays = { 6946 'nominative': 'воÑкÑеÑенÑе_понеделÑник_вÑоÑник_ÑÑеда_ÑеÑвеÑг_пÑÑниÑа_ÑÑббоÑа'.split('_'), 6947 'accusative': 'воÑкÑеÑенÑе_понеделÑник_вÑоÑник_ÑÑедÑ_ÑеÑвеÑг_пÑÑниÑÑ_ÑÑббоÑÑ'.split('_') 6948 }, 6949 6950 nounCase = (/\[ ?[Ðв] ?(?:пÑоÑлÑÑ|ÑледÑÑÑÑÑ)? ?\] ?dddd/).test(format) ? 6951 'accusative' : 6952 'nominative'; 6953 6954 return weekdays[nounCase][m.day()]; 6955 } 6956 6957 return moment.lang('ru', { 6958 months : monthsCaseReplace, 6959 monthsShort : monthsShortCaseReplace, 6960 weekdays : weekdaysCaseReplace, 6961 weekdaysShort : "вÑ_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"), 6962 weekdaysMin : "вÑ_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"), 6963 monthsParse : [/^Ñнв/i, /^Ñев/i, /^маÑ/i, /^апÑ/i, /^ма[й|Ñ]/i, /^иÑн/i, /^иÑл/i, /^авг/i, /^Ñен/i, /^окÑ/i, /^ноÑ/i, /^дек/i], 6964 longDateFormat : { 6965 LT : "HH:mm", 6966 L : "DD.MM.YYYY", 6967 LL : "D MMMM YYYY г.", 6968 LLL : "D MMMM YYYY г., LT", 6969 LLLL : "dddd, D MMMM YYYY г., LT" 6970 }, 6971 calendar : { 6972 sameDay: '[Ð¡ÐµÐ³Ð¾Ð´Ð½Ñ Ð²] LT', 6973 nextDay: '[ÐавÑÑа в] LT', 6974 lastDay: '[ÐÑеÑа в] LT', 6975 nextWeek: function () { 6976 return this.day() === 2 ? '[Ðо] dddd [в] LT' : '[Ð] dddd [в] LT'; 6977 }, 6978 lastWeek: function () { 6979 switch (this.day()) { 6980 case 0: 6981 return '[РпÑоÑлое] dddd [в] LT'; 6982 case 1: 6983 case 2: 6984 case 4: 6985 return '[РпÑоÑлÑй] dddd [в] LT'; 6986 case 3: 6987 case 5: 6988 case 6: 6989 return '[РпÑоÑлÑÑ] dddd [в] LT'; 6990 } 6991 }, 6992 sameElse: 'L' 6993 }, 6994 relativeTime : { 6995 future : "ÑеÑез %s", 6996 past : "%s назад", 6997 s : "неÑколÑко ÑекÑнд", 6998 m : relativeTimeWithPlural, 6999 mm : relativeTimeWithPlural, 7000 h : "ÑаÑ", 7001 hh : relativeTimeWithPlural, 7002 d : "денÑ", 7003 dd : relativeTimeWithPlural, 7004 M : "меÑÑÑ", 7005 MM : relativeTimeWithPlural, 7006 y : "год", 7007 yy : relativeTimeWithPlural 7008 }, 7009 7010 meridiemParse: /ноÑи|ÑÑÑа|днÑ|веÑеÑа/i, 7011 isPM : function (input) { 7012 return /^(днÑ|веÑеÑа)$/.test(input); 7013 }, 7014 7015 meridiem : function (hour, minute, isLower) { 7016 if (hour < 4) { 7017 return "ноÑи"; 7018 } else if (hour < 12) { 7019 return "ÑÑÑа"; 7020 } else if (hour < 17) { 7021 return "днÑ"; 7022 } else { 7023 return "веÑеÑа"; 7024 } 7025 }, 7026 7027 ordinal: function (number, period) { 7028 switch (period) { 7029 case 'M': 7030 case 'd': 7031 case 'DDD': 7032 return number + '-й'; 7033 case 'D': 7034 return number + '-го'; 7035 case 'w': 7036 case 'W': 7037 return number + '-Ñ'; 7038 default: 7039 return number; 7040 } 7041 }, 7042 7043 week : { 7044 dow : 1, // Monday is the first day of the week. 7045 doy : 7 // The week that contains Jan 1st is the first week of the year. 7046 } 7047 }); 7048})); 7049// moment.js language configuration 7050// language : slovak (sk) 7051// author : Martin Minka : https://github.com/k2s 7052// based on work of petrbela : https://github.com/petrbela 7053 7054(function (factory) { 7055 factory(moment); 7056}(function (moment) { 7057 var months = "január_február_marec_aprÃl_máj_jún_júl_august_september_október_november_december".split("_"), 7058 monthsShort = "jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"); 7059 7060 function plural(n) { 7061 return (n > 1) && (n < 5); 7062 } 7063 7064 function translate(number, withoutSuffix, key, isFuture) { 7065 var result = number + " "; 7066 switch (key) { 7067 case 's': // a few seconds / in a few seconds / a few seconds ago 7068 return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami'; 7069 case 'm': // a minute / in a minute / a minute ago 7070 return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou'); 7071 case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago 7072 if (withoutSuffix || isFuture) { 7073 return result + (plural(number) ? 'minúty' : 'minút'); 7074 } else { 7075 return result + 'minútami'; 7076 } 7077 break; 7078 case 'h': // an hour / in an hour / an hour ago 7079 return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou'); 7080 case 'hh': // 9 hours / in 9 hours / 9 hours ago 7081 if (withoutSuffix || isFuture) { 7082 return result + (plural(number) ? 'hodiny' : 'hodÃn'); 7083 } else { 7084 return result + 'hodinami'; 7085 } 7086 break; 7087 case 'd': // a day / in a day / a day ago 7088 return (withoutSuffix || isFuture) ? 'deÅ' : 'dÅom'; 7089 case 'dd': // 9 days / in 9 days / 9 days ago 7090 if (withoutSuffix || isFuture) { 7091 return result + (plural(number) ? 'dni' : 'dnÃ'); 7092 } else { 7093 return result + 'dÅami'; 7094 } 7095 break; 7096 case 'M': // a month / in a month / a month ago 7097 return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom'; 7098 case 'MM': // 9 months / in 9 months / 9 months ago 7099 if (withoutSuffix || isFuture) { 7100 return result + (plural(number) ? 'mesiace' : 'mesiacov'); 7101 } else { 7102 return result + 'mesiacmi'; 7103 } 7104 break; 7105 case 'y': // a year / in a year / a year ago 7106 return (withoutSuffix || isFuture) ? 'rok' : 'rokom'; 7107 case 'yy': // 9 years / in 9 years / 9 years ago 7108 if (withoutSuffix || isFuture) { 7109 return result + (plural(number) ? 'roky' : 'rokov'); 7110 } else { 7111 return result + 'rokmi'; 7112 } 7113 break; 7114 } 7115 } 7116 7117 return moment.lang('sk', { 7118 months : months, 7119 monthsShort : monthsShort, 7120 monthsParse : (function (months, monthsShort) { 7121 var i, _monthsParse = []; 7122 for (i = 0; i < 12; i++) { 7123 // use custom parser to solve problem with July (Äervenec) 7124 _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i'); 7125 } 7126 return _monthsParse; 7127 }(months, monthsShort)), 7128 weekdays : "nedeľa_pondelok_utorok_streda_Å¡tvrtok_piatok_sobota".split("_"), 7129 weekdaysShort : "ne_po_ut_st_Å¡t_pi_so".split("_"), 7130 weekdaysMin : "ne_po_ut_st_Å¡t_pi_so".split("_"), 7131 longDateFormat : { 7132 LT: "H:mm", 7133 L : "DD.MM.YYYY", 7134 LL : "D. MMMM YYYY", 7135 LLL : "D. MMMM YYYY LT", 7136 LLLL : "dddd D. MMMM YYYY LT" 7137 }, 7138 calendar : { 7139 sameDay: "[dnes o] LT", 7140 nextDay: '[zajtra o] LT', 7141 nextWeek: function () { 7142 switch (this.day()) { 7143 case 0: 7144 return '[v nedeľu o] LT'; 7145 case 1: 7146 case 2: 7147 return '[v] dddd [o] LT'; 7148 case 3: 7149 return '[v stredu o] LT'; 7150 case 4: 7151 return '[vo Å¡tvrtok o] LT'; 7152 case 5: 7153 return '[v piatok o] LT'; 7154 case 6: 7155 return '[v sobotu o] LT'; 7156 } 7157 }, 7158 lastDay: '[vÄera o] LT', 7159 lastWeek: function () { 7160 switch (this.day()) { 7161 case 0: 7162 return '[minulú nedeľu o] LT'; 7163 case 1: 7164 case 2: 7165 return '[minulý] dddd [o] LT'; 7166 case 3: 7167 return '[minulú stredu o] LT'; 7168 case 4: 7169 case 5: 7170 return '[minulý] dddd [o] LT'; 7171 case 6: 7172 return '[minulú sobotu o] LT'; 7173 } 7174 }, 7175 sameElse: "L" 7176 }, 7177 relativeTime : { 7178 future : "za %s", 7179 past : "pred %s", 7180 s : translate, 7181 m : translate, 7182 mm : translate, 7183 h : translate, 7184 hh : translate, 7185 d : translate, 7186 dd : translate, 7187 M : translate, 7188 MM : translate, 7189 y : translate, 7190 yy : translate 7191 }, 7192 ordinal : '%d.', 7193 week : { 7194 dow : 1, // Monday is the first day of the week. 7195 doy : 4 // The week that contains Jan 4th is the first week of the year. 7196 } 7197 }); 7198})); 7199// moment.js language configuration 7200// language : slovenian (sl) 7201// author : Robert SedovÅ¡ek : https://github.com/sedovsek 7202 7203(function (factory) { 7204 factory(moment); 7205}(function (moment) { 7206 function translate(number, withoutSuffix, key) { 7207 var result = number + " "; 7208 switch (key) { 7209 case 'm': 7210 return withoutSuffix ? 'ena minuta' : 'eno minuto'; 7211 case 'mm': 7212 if (number === 1) { 7213 result += 'minuta'; 7214 } else if (number === 2) { 7215 result += 'minuti'; 7216 } else if (number === 3 || number === 4) { 7217 result += 'minute'; 7218 } else { 7219 result += 'minut'; 7220 } 7221 return result; 7222 case 'h': 7223 return withoutSuffix ? 'ena ura' : 'eno uro'; 7224 case 'hh': 7225 if (number === 1) { 7226 result += 'ura'; 7227 } else if (number === 2) { 7228 result += 'uri'; 7229 } else if (number === 3 || number === 4) { 7230 result += 'ure'; 7231 } else { 7232 result += 'ur'; 7233 } 7234 return result; 7235 case 'dd': 7236 if (number === 1) { 7237 result += 'dan'; 7238 } else { 7239 result += 'dni'; 7240 } 7241 return result; 7242 case 'MM': 7243 if (number === 1) { 7244 result += 'mesec'; 7245 } else if (number === 2) { 7246 result += 'meseca'; 7247 } else if (number === 3 || number === 4) { 7248 result += 'mesece'; 7249 } else { 7250 result += 'mesecev'; 7251 } 7252 return result; 7253 case 'yy': 7254 if (number === 1) { 7255 result += 'leto'; 7256 } else if (number === 2) { 7257 result += 'leti'; 7258 } else if (number === 3 || number === 4) { 7259 result += 'leta'; 7260 } else { 7261 result += 'let'; 7262 } 7263 return result; 7264 } 7265 } 7266 7267 return moment.lang('sl', { 7268 months : "januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"), 7269 monthsShort : "jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"), 7270 weekdays : "nedelja_ponedeljek_torek_sreda_Äetrtek_petek_sobota".split("_"), 7271 weekdaysShort : "ned._pon._tor._sre._Äet._pet._sob.".split("_"), 7272 weekdaysMin : "ne_po_to_sr_Äe_pe_so".split("_"), 7273 longDateFormat : { 7274 LT : "H:mm", 7275 L : "DD. MM. YYYY", 7276 LL : "D. MMMM YYYY", 7277 LLL : "D. MMMM YYYY LT", 7278 LLLL : "dddd, D. MMMM YYYY LT" 7279 }, 7280 calendar : { 7281 sameDay : '[danes ob] LT', 7282 nextDay : '[jutri ob] LT', 7283 7284 nextWeek : function () { 7285 switch (this.day()) { 7286 case 0: 7287 return '[v] [nedeljo] [ob] LT'; 7288 case 3: 7289 return '[v] [sredo] [ob] LT'; 7290 case 6: 7291 return '[v] [soboto] [ob] LT'; 7292 case 1: 7293 case 2: 7294 case 4: 7295 case 5: 7296 return '[v] dddd [ob] LT'; 7297 } 7298 }, 7299 lastDay : '[vÄeraj ob] LT', 7300 lastWeek : function () { 7301 switch (this.day()) { 7302 case 0: 7303 case 3: 7304 case 6: 7305 return '[prejÅ¡nja] dddd [ob] LT'; 7306 case 1: 7307 case 2: 7308 case 4: 7309 case 5: 7310 return '[prejÅ¡nji] dddd [ob] LT'; 7311 } 7312 }, 7313 sameElse : 'L' 7314 }, 7315 relativeTime : { 7316 future : "Äez %s", 7317 past : "%s nazaj", 7318 s : "nekaj sekund", 7319 m : translate, 7320 mm : translate, 7321 h : translate, 7322 hh : translate, 7323 d : "en dan", 7324 dd : translate, 7325 M : "en mesec", 7326 MM : translate, 7327 y : "eno leto", 7328 yy : translate 7329 }, 7330 ordinal : '%d.', 7331 week : { 7332 dow : 1, // Monday is the first day of the week. 7333 doy : 7 // The week that contains Jan 1st is the first week of the year. 7334 } 7335 }); 7336})); 7337// moment.js language configuration 7338// language : Albanian (sq) 7339// author : Flakërim Ismani : https://github.com/flakerimi 7340// author: Menelion Elensúle: https://github.com/Oire (tests) 7341// author : Oerd Cukalla : https://github.com/oerd (fixes) 7342 7343(function (factory) { 7344 factory(moment); 7345}(function (moment) { 7346 return moment.lang('sq', { 7347 months : "Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"), 7348 monthsShort : "Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"), 7349 weekdays : "E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"), 7350 weekdaysShort : "Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"), 7351 weekdaysMin : "D_H_Ma_Më_E_P_Sh".split("_"), 7352 meridiem : function (hours, minutes, isLower) { 7353 return hours < 12 ? 'PD' : 'MD'; 7354 }, 7355 longDateFormat : { 7356 LT : "HH:mm", 7357 L : "DD/MM/YYYY", 7358 LL : "D MMMM YYYY", 7359 LLL : "D MMMM YYYY LT", 7360 LLLL : "dddd, D MMMM YYYY LT" 7361 }, 7362 calendar : { 7363 sameDay : '[Sot në] LT', 7364 nextDay : '[Nesër në] LT', 7365 nextWeek : 'dddd [në] LT', 7366 lastDay : '[Dje në] LT', 7367 lastWeek : 'dddd [e kaluar në] LT', 7368 sameElse : 'L' 7369 }, 7370 relativeTime : { 7371 future : "në %s", 7372 past : "%s më parë", 7373 s : "disa sekonda", 7374 m : "një minutë", 7375 mm : "%d minuta", 7376 h : "një orë", 7377 hh : "%d orë", 7378 d : "një ditë", 7379 dd : "%d ditë", 7380 M : "një muaj", 7381 MM : "%d muaj", 7382 y : "një vit", 7383 yy : "%d vite" 7384 }, 7385 ordinal : '%d.', 7386 week : { 7387 dow : 1, // Monday is the first day of the week. 7388 doy : 4 // The week that contains Jan 4th is the first week of the year. 7389 } 7390 }); 7391})); 7392// moment.js language configuration 7393// language : Serbian-cyrillic (sr-cyrl) 7394// author : Milan JanaÄkoviÄ<[email protected]> : https://github.com/milan-j 7395 7396(function (factory) { 7397 factory(moment); 7398}(function (moment) { 7399 7400 var translator = { 7401 words: { //Different grammatical cases 7402 m: ['Ñедан минÑÑ', 'Ñедне минÑÑе'], 7403 mm: ['минÑÑ', 'минÑÑе', 'минÑÑа'], 7404 h: ['Ñедан ÑаÑ', 'Ñедног ÑаÑа'], 7405 hh: ['ÑаÑ', 'ÑаÑа', 'ÑаÑи'], 7406 dd: ['дан', 'дана', 'дана'], 7407 MM: ['меÑеÑ', 'меÑеÑа', 'меÑеÑи'], 7408 yy: ['година', 'године', 'година'] 7409 }, 7410 correctGrammaticalCase: function (number, wordKey) { 7411 return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]); 7412 }, 7413 translate: function (number, withoutSuffix, key) { 7414 var wordKey = translator.words[key]; 7415 if (key.length === 1) { 7416 return withoutSuffix ? wordKey[0] : wordKey[1]; 7417 } else { 7418 return number + ' ' + translator.correctGrammaticalCase(number, wordKey); 7419 } 7420 } 7421 }; 7422 7423 return moment.lang('sr-cyrl', { 7424 months: ['ÑанÑаÑ', 'ÑебÑÑаÑ', 'маÑÑ', 'апÑил', 'маÑ', 'ÑÑн', 'ÑÑл', 'авгÑÑÑ', 'ÑепÑембаÑ', 'окÑобаÑ', 'новембаÑ', 'деÑембаÑ'], 7425 monthsShort: ['Ñан.', 'Ñеб.', 'маÑ.', 'апÑ.', 'маÑ', 'ÑÑн', 'ÑÑл', 'авг.', 'Ñеп.', 'окÑ.', 'нов.', 'деÑ.'], 7426 weekdays: ['недеÑа', 'понедеÑак', 'ÑÑоÑак', 'ÑÑеда', 'ÑеÑвÑÑак', 'пеÑак', 'ÑÑбоÑа'], 7427 weekdaysShort: ['нед.', 'пон.', 'ÑÑо.', 'ÑÑе.', 'ÑеÑ.', 'пеÑ.', 'ÑÑб.'], 7428 weekdaysMin: ['не', 'по', 'ÑÑ', 'ÑÑ', 'Ñе', 'пе', 'ÑÑ'], 7429 longDateFormat: { 7430 LT: "H:mm", 7431 L: "DD. MM. YYYY", 7432 LL: "D. MMMM YYYY", 7433 LLL: "D. MMMM YYYY LT", 7434 LLLL: "dddd, D. MMMM YYYY LT" 7435 }, 7436 calendar: { 7437 sameDay: '[Ð´Ð°Ð½Ð°Ñ Ñ] LT', 7438 nextDay: '[ÑÑÑÑа Ñ] LT', 7439 7440 nextWeek: function () { 7441 switch (this.day()) { 7442 case 0: 7443 return '[Ñ] [недеÑÑ] [Ñ] LT'; 7444 case 3: 7445 return '[Ñ] [ÑÑедÑ] [Ñ] LT'; 7446 case 6: 7447 return '[Ñ] [ÑÑбоÑÑ] [Ñ] LT'; 7448 case 1: 7449 case 2: 7450 case 4: 7451 case 5: 7452 return '[Ñ] dddd [Ñ] LT'; 7453 } 7454 }, 7455 lastDay : '[ÑÑÑе Ñ] LT', 7456 lastWeek : function () { 7457 var lastWeekDays = [ 7458 '[пÑоÑле] [недеÑе] [Ñ] LT', 7459 '[пÑоÑлог] [понедеÑка] [Ñ] LT', 7460 '[пÑоÑлог] [ÑÑоÑка] [Ñ] LT', 7461 '[пÑоÑле] [ÑÑеде] [Ñ] LT', 7462 '[пÑоÑлог] [ÑеÑвÑÑка] [Ñ] LT', 7463 '[пÑоÑлог] [пеÑка] [Ñ] LT', 7464 '[пÑоÑле] [ÑÑбоÑе] [Ñ] LT' 7465 ]; 7466 return lastWeekDays[this.day()]; 7467 }, 7468 sameElse : 'L' 7469 }, 7470 relativeTime : { 7471 future : "за %s", 7472 past : "пÑе %s", 7473 s : "неколико ÑекÑнди", 7474 m : translator.translate, 7475 mm : translator.translate, 7476 h : translator.translate, 7477 hh : translator.translate, 7478 d : "дан", 7479 dd : translator.translate, 7480 M : "меÑеÑ", 7481 MM : translator.translate, 7482 y : "годинÑ", 7483 yy : translator.translate 7484 }, 7485 ordinal : '%d.', 7486 week : { 7487 dow : 1, // Monday is the first day of the week. 7488 doy : 7 // The week that contains Jan 1st is the first week of the year. 7489 } 7490 }); 7491})); 7492// moment.js language configuration 7493// language : Serbian-latin (sr) 7494// author : Milan JanaÄkoviÄ<[email protected]> : https://github.com/milan-j 7495 7496(function (factory) { 7497 factory(moment); 7498}(function (moment) { 7499 7500 var translator = { 7501 words: { //Different grammatical cases 7502 m: ['jedan minut', 'jedne minute'], 7503 mm: ['minut', 'minute', 'minuta'], 7504 h: ['jedan sat', 'jednog sata'], 7505 hh: ['sat', 'sata', 'sati'], 7506 dd: ['dan', 'dana', 'dana'], 7507 MM: ['mesec', 'meseca', 'meseci'], 7508 yy: ['godina', 'godine', 'godina'] 7509 }, 7510 correctGrammaticalCase: function (number, wordKey) { 7511 return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]); 7512 }, 7513 translate: function (number, withoutSuffix, key) { 7514 var wordKey = translator.words[key]; 7515 if (key.length === 1) { 7516 return withoutSuffix ? wordKey[0] : wordKey[1]; 7517 } else { 7518 return number + ' ' + translator.correctGrammaticalCase(number, wordKey); 7519 } 7520 } 7521 }; 7522 7523 return moment.lang('sr', { 7524 months: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'], 7525 monthsShort: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun', 'jul', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'], 7526 weekdays: ['nedelja', 'ponedeljak', 'utorak', 'sreda', 'Äetvrtak', 'petak', 'subota'], 7527 weekdaysShort: ['ned.', 'pon.', 'uto.', 'sre.', 'Äet.', 'pet.', 'sub.'], 7528 weekdaysMin: ['ne', 'po', 'ut', 'sr', 'Äe', 'pe', 'su'], 7529 longDateFormat: { 7530 LT: "H:mm", 7531 L: "DD. MM. YYYY", 7532 LL: "D. MMMM YYYY", 7533 LLL: "D. MMMM YYYY LT", 7534 LLLL: "dddd, D. MMMM YYYY LT" 7535 }, 7536 calendar: { 7537 sameDay: '[danas u] LT', 7538 nextDay: '[sutra u] LT', 7539 7540 nextWeek: function () { 7541 switch (this.day()) { 7542 case 0: 7543 return '[u] [nedelju] [u] LT'; 7544 case 3: 7545 return '[u] [sredu] [u] LT'; 7546 case 6: 7547 return '[u] [subotu] [u] LT'; 7548 case 1: 7549 case 2: 7550 case 4: 7551 case 5: 7552 return '[u] dddd [u] LT'; 7553 } 7554 }, 7555 lastDay : '[juÄe u] LT', 7556 lastWeek : function () { 7557 var lastWeekDays = [ 7558 '[proÅ¡le] [nedelje] [u] LT', 7559 '[proÅ¡log] [ponedeljka] [u] LT', 7560 '[proÅ¡log] [utorka] [u] LT', 7561 '[proÅ¡le] [srede] [u] LT', 7562 '[proÅ¡log] [Äetvrtka] [u] LT', 7563 '[proÅ¡log] [petka] [u] LT', 7564 '[proÅ¡le] [subote] [u] LT' 7565 ]; 7566 return lastWeekDays[this.day()]; 7567 }, 7568 sameElse : 'L' 7569 }, 7570 relativeTime : { 7571 future : "za %s", 7572 past : "pre %s", 7573 s : "nekoliko sekundi", 7574 m : translator.translate, 7575 mm : translator.translate, 7576 h : translator.translate, 7577 hh : translator.translate, 7578 d : "dan", 7579 dd : translator.translate, 7580 M : "mesec", 7581 MM : translator.translate, 7582 y : "godinu", 7583 yy : translator.translate 7584 }, 7585 ordinal : '%d.', 7586 week : { 7587 dow : 1, // Monday is the first day of the week. 7588 doy : 7 // The week that contains Jan 1st is the first week of the year. 7589 } 7590 }); 7591})); 7592// moment.js language configuration 7593// language : swedish (sv) 7594// author : Jens Alm : https://github.com/ulmus 7595 7596(function (factory) { 7597 factory(moment); 7598}(function (moment) { 7599 return moment.lang('sv', { 7600 months : "januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"), 7601 monthsShort : "jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"), 7602 weekdays : "söndag_mÃ¥ndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"), 7603 weekdaysShort : "sön_mÃ¥n_tis_ons_tor_fre_lör".split("_"), 7604 weekdaysMin : "sö_mÃ¥_ti_on_to_fr_lö".split("_"), 7605 longDateFormat : { 7606 LT : "HH:mm", 7607 L : "YYYY-MM-DD", 7608 LL : "D MMMM YYYY", 7609 LLL : "D MMMM YYYY LT", 7610 LLLL : "dddd D MMMM YYYY LT" 7611 }, 7612 calendar : { 7613 sameDay: '[Idag] LT', 7614 nextDay: '[Imorgon] LT', 7615 lastDay: '[IgÃ¥r] LT', 7616 nextWeek: 'dddd LT', 7617 lastWeek: '[Förra] dddd[en] LT', 7618 sameElse: 'L' 7619 }, 7620 relativeTime : { 7621 future : "om %s", 7622 past : "för %s sedan", 7623 s : "nÃ¥gra sekunder", 7624 m : "en minut", 7625 mm : "%d minuter", 7626 h : "en timme", 7627 hh : "%d timmar", 7628 d : "en dag", 7629 dd : "%d dagar", 7630 M : "en mÃ¥nad", 7631 MM : "%d mÃ¥nader", 7632 y : "ett Ã¥r", 7633 yy : "%d Ã¥r" 7634 }, 7635 ordinal : function (number) { 7636 var b = number % 10, 7637 output = (~~ (number % 100 / 10) === 1) ? 'e' : 7638 (b === 1) ? 'a' : 7639 (b === 2) ? 'a' : 7640 (b === 3) ? 'e' : 'e'; 7641 return number + output; 7642 }, 7643 week : { 7644 dow : 1, // Monday is the first day of the week. 7645 doy : 4 // The week that contains Jan 4th is the first week of the year. 7646 } 7647 }); 7648})); 7649// moment.js language configuration 7650// language : tamil (ta) 7651// author : Arjunkumar Krishnamoorthy : https://github.com/tk120404 7652 7653(function (factory) { 7654 factory(moment); 7655}(function (moment) { 7656 /*var symbolMap = { 7657 '1': '௧', 7658 '2': '௨', 7659 '3': '௩', 7660 '4': '௪', 7661 '5': '௫', 7662 '6': '௬', 7663 '7': 'à¯', 7664 '8': '௮', 7665 '9': '௯', 7666 '0': '௦' 7667 }, 7668 numberMap = { 7669 '௧': '1', 7670 '௨': '2', 7671 '௩': '3', 7672 '௪': '4', 7673 '௫': '5', 7674 '௬': '6', 7675 'à¯': '7', 7676 '௮': '8', 7677 '௯': '9', 7678 '௦': '0' 7679 }; */ 7680 7681 return moment.lang('ta', { 7682 months : 'à®à®©à®µà®°à®¿_பிபà¯à®°à®µà®°à®¿_மாரà¯à®à¯_à®à®ªà¯à®°à®²à¯_à®®à¯_à®à¯à®©à¯_à®à¯à®²à¯_à®à®à®¸à¯à®à¯_à®à¯à®ªà¯à®à¯à®®à¯à®ª
7682à®°à¯_à® à®à¯à®à¯à®¾à®ªà®°à¯_நவமà¯à®ªà®°à¯_à®à®¿à®à®®à¯à®ªà®°à¯'.split("_"), 7683 monthsShort : 'à®à®©à®µà®°à®¿_பிபà¯à®°à®µà®°à®¿_மாரà¯à®à¯_à®à®ªà¯à®°à®²à¯_à®®à¯_à®à¯à®©à¯_à®à¯à®²à¯_à®à®à®¸à¯à®à¯_à®à¯à®ªà¯à®à¯à®®à¯à®ªà®°à¯_à® à®à¯à®à¯à®¾à®ªà®°à¯_நவமà¯à®ªà®°à¯_à®à®¿à®à®®à¯à®ªà®°à¯'.split("_"), 7684 weekdays : 'à®à®¾à®¯à®¿à®±à¯à®±à¯à®à¯à®à®¿à®´à®®à¯_திà®à¯à®à®à¯à®à®¿à®´à®®à¯_à®à¯à®µà¯à®µà®¾à®¯à¯à®à®¿à®´à®®à¯_பà¯à®¤à®©à¯à®à®¿à®´à®®à¯_வியாழà®à¯à®à®¿à®´à®®à¯_வà¯à®³à¯à®³à®¿à®à¯à®à®¿à®´à®®à¯_à®à®©à®¿à®à¯à®à®¿à®´à®®à¯'.split("_"), 7685 weekdaysShort : 'à®à®¾à®¯à®¿à®±à¯_திà®à¯à®à®³à¯_à®à¯à®µà¯à®µà®¾à®¯à¯_பà¯à®¤à®©à¯_வியாழனà¯_வà¯à®³à¯à®³à®¿_à®à®©à®¿'.split("_"), 7686 weekdaysMin : 'à®à®¾_தி_à®à¯_பà¯_வி_வà¯_à®'.split("_"), 7687 longDateFormat : { 7688 LT : "HH:mm", 7689 L : "DD/MM/YYYY", 7690 LL : "D MMMM YYYY", 7691 LLL : "D MMMM YYYY, LT", 7692 LLLL : "dddd, D MMMM YYYY, LT" 7693 }, 7694 calendar : { 7695 sameDay : '[à®à®©à¯à®±à¯] LT', 7696 nextDay : '[நாளà¯] LT', 7697 nextWeek : 'dddd, LT', 7698 lastDay : '[நà¯à®±à¯à®±à¯] LT', 7699 lastWeek : '[à®à®à®¨à¯à®¤ வாரமà¯] dddd, LT', 7700 sameElse : 'L' 7701 }, 7702 relativeTime : { 7703 future : "%s à®à®²à¯", 7704 past : "%s à®®à¯à®©à¯", 7705 s : "à®à®°à¯ à®à®¿à®² விநாà®à®¿à®à®³à¯", 7706 m : "à®à®°à¯ நிமிà®à®®à¯", 7707 mm : "%d நிமிà®à®à¯à®à®³à¯", 7708 h : "à®à®°à¯ மணி நà¯à®°à®®à¯", 7709 hh : "%d மணி நà¯à®°à®®à¯", 7710 d : "à®à®°à¯ நாளà¯", 7711 dd : "%d நாà®à¯à®à®³à¯", 7712 M : "à®à®°à¯ மாதமà¯", 7713 MM : "%d மாதà®à¯à®à®³à¯", 7714 y : "à®à®°à¯ வரà¯à®à®®à¯", 7715 yy : "%d à®à®£à¯à®à¯à®à®³à¯" 7716 }, 7717/* preparse: function (string) { 7718 return string.replace(/[௧௨௩௪௫௬à¯à¯®à¯¯à¯¦]/g, function (match) { 7719 return numberMap[match]; 7720 }); 7721 }, 7722 postformat: function (string) { 7723 return string.replace(/\d/g, function (match) { 7724 return symbolMap[match]; 7725 }); 7726 },*/ 7727 ordinal : function (number) { 7728 return number + 'வதà¯'; 7729 }, 7730 7731 7732// refer http://ta.wikipedia.org/s/1er1 7733 7734 meridiem : function (hour, minute, isLower) { 7735 if (hour >= 6 && hour <= 10) { 7736 return " à®à®¾à®²à¯"; 7737 } else if (hour >= 10 && hour <= 14) { 7738 return " நணà¯à®ªà®à®²à¯"; 7739 } else if (hour >= 14 && hour <= 18) { 7740 return " à®à®±à¯à®ªà®¾à®à¯"; 7741 } else if (hour >= 18 && hour <= 20) { 7742 return " மாலà¯"; 7743 } else if (hour >= 20 && hour <= 24) { 7744 return " à®à®°à®µà¯"; 7745 } else if (hour >= 0 && hour <= 6) { 7746 return " வà¯à®à®±à¯"; 7747 } 7748 }, 7749 week : { 7750 dow : 0, // Sunday is the first day of the week. 7751 doy : 6 // The week that contains Jan 1st is the first week of the year. 7752 } 7753 }); 7754})); 7755// moment.js language configuration 7756// language : thai (th) 7757// author : Kridsada Thanabulpong : https://github.com/sirn 7758 7759(function (factory) { 7760 factory(moment); 7761}(function (moment) { 7762 return moment.lang('th', { 7763 months : "มà¸à¸£à¸²à¸à¸¡_à¸à¸¸à¸¡à¸ าà¸à¸±à¸à¸à¹_มีà¸à¸²à¸à¸¡_à¹à¸¡à¸©à¸²à¸¢à¸_à¸à¸¤à¸©à¸ าà¸à¸¡_มิà¸à¸¸à¸à¸²à¸¢à¸_à¸à¸£à¸à¸à¸²à¸à¸¡_สิà¸à¸«à¸²à¸à¸¡_à¸à¸±à¸à¸¢à¸²à¸¢à¸_à¸à¸¸à¸¥à¸²à¸à¸¡_à¸à¸¤à¸¨à¸à¸´à¸à¸²à¸¢à¸_à¸à¸±à¸à¸§à¸²à¸à¸¡".split("_"), 7764 monthsShort : "มà¸à¸£à¸²_à¸à¸¸à¸¡à¸ า_มีà¸à¸²_à¹à¸¡à¸©à¸²_à¸à¸¤à¸©à¸ า_มิà¸à¸¸à¸à¸²_à¸à¸£à¸à¸à¸²_สิà¸à¸«à¸²_à¸à¸±à¸à¸¢à¸²_à¸à¸¸à¸¥à¸²_à¸à¸¤à¸¨à¸à¸´à¸à¸²_à¸
7764ัà¸à¸§à¸²".split("_"), 7765 weekdays : "à¸à¸²à¸à¸´à¸à¸¢à¹_à¸à¸±à¸à¸à¸£à¹_à¸à¸±à¸à¸à¸²à¸£_à¸à¸¸à¸_à¸à¸¤à¸«à¸±à¸ªà¸à¸à¸µ_ศุà¸à¸£à¹_à¹à¸ªà¸²à¸£à¹".split("_"), 7766 weekdaysShort : "à¸à¸²à¸à¸´à¸à¸¢à¹_à¸à¸±à¸à¸à¸£à¹_à¸à¸±à¸à¸à¸²à¸£_à¸à¸¸à¸_à¸à¸¤à¸«à¸±à¸ª_ศุà¸à¸£à¹_à¹à¸ªà¸²à¸£à¹".split("_"), // yes, three characters difference 7767 weekdaysMin : "à¸à¸²._à¸._à¸._à¸._à¸à¸¤._ศ._ส.".split("_"), 7768 longDateFormat : { 7769 LT : "H à¸à¸²à¸¬à¸´à¸à¸² m à¸à¸²à¸à¸µ", 7770 L : "YYYY/MM/DD", 7771 LL : "D MMMM YYYY", 7772 LLL : "D MMMM YYYY à¹à¸§à¸¥à¸² LT", 7773 LLLL : "วัà¸ddddà¸à¸µà¹ D MMMM YYYY à¹à¸§à¸¥à¸² LT" 7774 }, 7775 meridiem : function (hour, minute, isLower) { 7776 if (hour < 12) { 7777 return "à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸"; 7778 } else { 7779 return "หลัà¸à¹à¸à¸µà¹à¸¢à¸"; 7780 } 7781 }, 7782 calendar : { 7783 sameDay : '[วัà¸à¸à¸µà¹ à¹à¸§à¸¥à¸²] LT', 7784 nextDay : '[à¸à¸£à¸¸à¹à¸à¸à¸µà¹ à¹à¸§à¸¥à¸²] LT', 7785 nextWeek : 'dddd[หà¸à¹à¸² à¹à¸§à¸¥à¸²] LT', 7786 lastDay : '[à¹à¸¡à¸·à¹à¸à¸§à¸²à¸à¸à¸µà¹ à¹à¸§à¸¥à¸²] LT', 7787 lastWeek : '[วัà¸]dddd[à¸à¸µà¹à¹à¸¥à¹à¸§ à¹à¸§à¸¥à¸²] LT', 7788 sameElse : 'L' 7789 }, 7790 relativeTime : { 7791 future : "à¸à¸µà¸ %s", 7792 past : "%sà¸à¸µà¹à¹à¸¥à¹à¸§", 7793 s : "à¹à¸¡à¹à¸à¸µà¹à¸§à¸´à¸à¸²à¸à¸µ", 7794 m : "1 à¸à¸²à¸à¸µ", 7795 mm : "%d à¸à¸²à¸à¸µ", 7796 h : "1 à¸à¸±à¹à¸§à¹à¸¡à¸", 7797 hh : "%d à¸à¸±à¹à¸§à¹à¸¡à¸", 7798 d : "1 วัà¸", 7799 dd : "%d วัà¸", 7800 M : "1 à¹à¸à¸·à¸à¸", 7801 MM : "%d à¹à¸à¸·à¸à¸", 7802 y : "1 à¸à¸µ", 7803 yy : "%d à¸à¸µ" 7804 } 7805 }); 7806})); 7807// moment.js language configuration 7808// language : Tagalog/Filipino (tl-ph) 7809// author : Dan Hagman 7810 7811(function (factory) { 7812 factory(moment); 7813}(function (moment) { 7814 return moment.lang('tl-ph', { 7815 months : "Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"), 7816 monthsShort : "Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"), 7817 weekdays : "Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"), 7818 weekdaysShort : "Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"), 7819 weekdaysMin : "Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"), 7820 longDateFormat : { 7821 LT : "HH:mm", 7822 L : "MM/D/YYYY", 7823 LL : "MMMM D, YYYY", 7824 LLL : "MMMM D, YYYY LT", 7825 LLLL : "dddd, MMMM DD, YYYY LT" 7826 }, 7827 calendar : { 7828 sameDay: "[Ngayon sa] LT", 7829 nextDay: '[Bukas sa] LT', 7830 nextWeek: 'dddd [sa] LT', 7831 lastDay: '[Kahapon sa] LT', 7832 lastWeek: 'dddd [huling linggo] LT', 7833 sameElse: 'L' 7834 }, 7835 relativeTime : { 7836 future : "sa loob ng %s", 7837 past : "%s ang nakalipas", 7838 s : "ilang segundo", 7839 m : "isang minuto", 7840 mm : "%d minuto", 7841 h : "isang oras", 7842 hh : "%d oras", 7843 d : "isang araw", 7844 dd : "%d araw", 7845 M : "isang buwan", 7846 MM : "%d buwan", 7847 y : "isang taon", 7848 yy : "%d taon" 7849 }, 7850 ordinal : function (number) { 7851 return number; 7852 }, 7853 week : { 7854 dow : 1, // Monday is the first day of the week. 7855 doy : 4 // The week that contains Jan 4th is the first week of the year. 7856 } 7857 }); 7858})); 7859// moment.js language configuration 7860// language : turkish (tr) 7861// authors : Erhan Gundogan : https://github.com/erhangundogan, 7862// Burak YiÄit Kaya: https://github.com/BYK 7863 7864(function (factory) { 7865 factory(moment); 7866}(function (moment) { 7867 7868 var suffixes = { 7869 1: "'inci", 7870 5: "'inci", 7871 8: "'inci", 7872 70: "'inci", 7873 80: "'inci", 7874 7875 2: "'nci", 7876 7: "'nci", 7877 20: "'nci", 7878 50: "'nci", 7879 7880 3: "'üncü", 7881 4: "'üncü", 7882 100: "'üncü", 7883 7884 6: "'ncı", 7885 7886 9: "'uncu", 7887 10: "'uncu", 7888 30: "'uncu", 7889 7890 60: "'ıncı", 7891 90: "'ıncı" 7892 }; 7893 7894 return moment.lang('tr', { 7895 months : "Ocak_Åubat_Mart_Nisan_Mayıs_Haziran_Temmuz_AÄustos_Eylül_Ekim_Kasım_Aralık".split("_"), 7896 monthsShort : "Oca_Åub_Mar_Nis_May_Haz_Tem_AÄu_Eyl_Eki_Kas_Ara".split("_"), 7897 weekdays : "Pazar_Pazartesi_Salı_ÃarÅamba_PerÅembe_Cuma_Cumartesi".split("_"), 7898 weekdaysShort : "Paz_Pts_Sal_Ãar_Per_Cum_Cts".split("_"), 7899 weekdaysMin : "Pz_Pt_Sa_Ãa_Pe_Cu_Ct".split("_"), 7900 longDateFormat : { 7901 LT : "HH:mm", 7902 L : "DD.MM.YYYY", 7903 LL : "D MMMM YYYY", 7904 LLL : "D MMMM YYYY LT", 7905 LLLL : "dddd, D MMMM YYYY LT" 7906 }, 7907 calendar : { 7908 sameDay : '[bugün saat] LT', 7909 nextDay : '[yarın saat] LT', 7910 nextWeek : '[haftaya] dddd [saat] LT', 7911 lastDay : '[dün] LT', 7912 lastWeek : '[geçen hafta] dddd [saat] LT', 7913 sameElse : 'L' 7914 }, 7915 relativeTime : { 7916 future : "%s sonra", 7917 past : "%s önce", 7918 s : "birkaç saniye", 7919 m : "bir dakika", 7920 mm : "%d dakika", 7921 h : "bir saat", 7922 hh : "%d saat", 7923 d : "bir gün", 7924 dd : "%d gün", 7925 M : "bir ay", 7926 MM : "%d ay", 7927 y : "bir yıl", 7928 yy : "%d yıl" 7929 }, 7930 ordinal : function (number) { 7931 if (number === 0) { // special case for zero 7932 return number + "'ıncı"; 7933 } 7934 var a = number % 10, 7935 b = number % 100 - a, 7936 c = number >= 100 ? 100 : null; 7937 7938 return number + (suffixes[a] || suffixes[b] || suffixes[c]); 7939 }, 7940 week : { 7941 dow : 1, // Monday is the first day of the week. 7942 doy : 7 // The week that contains Jan 1st is the first week of the year. 7943 } 7944 }); 7945})); 7946// moment.js language configuration 7947// language : Morocco Central Atlas TamaziÉ£t in Latin (tzm-latn) 7948// author : Abdel Said : https://github.com/abdelsaid 7949 7950(function (factory) { 7951 factory(moment); 7952}(function (moment) { 7953 return moment.lang('tzm-latn', {
vendor: 12,167 bytes, lines 7954-8253
7954 months : "innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_É£wÅ¡t_Å¡wtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"), 7955 monthsShort : "innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_É£wÅ¡t_Å¡wtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"), 7956 weekdays : "asamas_aynas_asinas_akras_akwas_asimwas_asiá¸yas".split("_"), 7957 weekdaysShort : "asamas_aynas_asinas_akras_akwas_asimwas_asiá¸yas".split("_"), 7958 weekdaysMin : "asamas_aynas_asinas_akras_akwas_asimwas_asiá¸yas".split("_"), 7959 longDateFormat : { 7960 LT : "HH:mm", 7961 L : "DD/MM/YYYY", 7962 LL : "D MMMM YYYY", 7963 LLL : "D MMMM YYYY LT", 7964 LLLL : "dddd D MMMM YYYY LT" 7965 }, 7966 calendar : { 7967 sameDay: "[asdkh g] LT", 7968 nextDay: '[aska g] LT', 7969 nextWeek: 'dddd [g] LT', 7970 lastDay: '[assant g] LT', 7971 lastWeek: 'dddd [g] LT', 7972 sameElse: 'L' 7973 }, 7974 relativeTime : { 7975 future : "dadkh s yan %s", 7976 past : "yan %s", 7977 s : "imik", 7978 m : "minuá¸", 7979 mm : "%d minuá¸", 7980 h : "saÉa", 7981 hh : "%d tassaÉin", 7982 d : "ass", 7983 dd : "%d ossan", 7984 M : "ayowr", 7985 MM : "%d iyyirn", 7986 y : "asgas", 7987 yy : "%d isgasn" 7988 }, 7989 week : { 7990 dow : 6, // Saturday is the first day of the week. 7991 doy : 12 // The week that contains Jan 1st is the first week of the year. 7992 } 7993 }); 7994})); 7995// moment.js language configuration 7996// language : Morocco Central Atlas TamaziÉ£t (tzm) 7997// author : Abdel Said : https://github.com/abdelsaid 7998 7999(function (factory) { 8000 factory(moment); 8001}(function (moment) { 8002 return moment.lang('tzm', { 8003 months : "âµâµâµâ´°âµ¢âµ_â´±âµâ´°âµ¢âµ_âµâ´°âµâµ_âµâ´±âµâµâµ_âµâ´°âµ¢âµ¢âµ_âµ¢âµâµâµ¢âµ_âµ¢âµâµâµ¢âµâµ£_âµâµâµâµ_âµâµâµâ´°âµâ´±âµâµ_â´½âµâµâ´±âµ_âµâµâµ¡â´°âµâ´±âµâµ_â´·âµâµâµâ´±âµâµ".split("_"), 8004 monthsShort : "âµâµâµâ´°âµ¢âµ_â´±âµâ´°âµ¢âµ_âµâ´°âµâµ_âµâ´±âµâµâµ_âµâ´°âµ¢âµ¢âµ_âµ¢âµâµâµ¢âµ_âµ¢âµâµâµ¢âµâµ£_âµâµâµâµ_âµâµâµâ´°âµâ´±âµâµ_â´½âµâµâ´±âµ_âµâµâµ¡â´°âµâ´±âµâµ_â´·âµâµâµâ´±âµâµ".split("_"), 8005 weekdays : "â´°âµâ´°âµâ´°âµ_â´°âµ¢âµâ´°âµ_â´°âµâµâµâ´°âµ_â´°â´½âµâ´°âµ_ⴰⴽⵡⴰâµ_â´°âµâµâµâµ¡â´°âµ_â´°âµâµâ´¹âµ¢â´°âµ".split("_"), 8006 weekdaysShort : "â´°âµâ´°âµâ´°âµ_â´°âµ¢âµâ´°âµ_â´°âµâµâµâ´°âµ_â´°â´½âµâ´°âµ_ⴰⴽⵡⴰâµ_â´°âµâµâµâµ¡â´°âµ_â´°âµâµâ´¹âµ¢â´°âµ".split("_"), 8007 weekdaysMin : "â´°âµâ´°âµâ´°âµ_â´°âµ¢âµâ´°âµ_â´°âµâµâµâ´°âµ_â´°â´½âµâ´°âµ_ⴰⴽⵡⴰâµ_â´°âµâµâµâµ¡â´°âµ_â´°âµâµâ´¹âµ¢â´°âµ".split("_"), 8008 longDateFormat : { 8009 LT : "HH:mm", 8010 L : "DD/MM/YYYY", 8011 LL : "D MMMM YYYY", 8012 LLL : "D MMMM YYYY LT", 8013 LLLL : "dddd D MMMM YYYY LT" 8014 }, 8015 calendar : { 8016 sameDay: "[â´°âµâ´·âµ â´´] LT", 8017 nextDay: '[â´°âµâ´½â´° â´´] LT', 8018 nextWeek: 'dddd [â´´] LT', 8019 lastDay: '[â´°âµâ´°âµâµ â´´] LT', 8020 lastWeek: 'dddd [â´´] LT', 8021 sameElse: 'L' 8022 }, 8023 relativeTime : { 8024 future : "ⴷⴰⴷⵠⵠⵢⴰⵠ%s", 8025 past : "ⵢⴰⵠ%s", 8026 s : "âµâµâµâ´½", 8027 m : "âµâµâµâµâ´º", 8028 mm : "%d âµâµâµâµâ´º", 8029 h : "âµâ´°âµâ´°", 8030 hh : "%d âµâ´°âµâµâ´°âµâµâµ", 8031 d : "â´°âµâµ", 8032 dd : "%d oâµâµâ´°âµ", 8033 M : "â´°âµ¢oâµâµ", 8034 MM : "%d âµâµ¢âµ¢âµâµâµ", 8035 y : "â´°âµâ´³â´°âµ", 8036 yy : "%d âµâµâ´³â´°âµâµ" 8037 }, 8038 week : { 8039 dow : 6, // Saturday is the first day of the week. 8040 doy : 12 // The week that contains Jan 1st is the first week of the year. 8041 } 8042 }); 8043})); 8044// moment.js language configuration 8045// language : ukrainian (uk) 8046// author : zemlanin : https://github.com/zemlanin 8047// Author : Menelion Elensúle : https://github.com/Oire 8048 8049(function (factory) { 8050 factory(moment); 8051}(function (moment) { 8052 function plural(word, num) { 8053 var forms = word.split('_'); 8054 return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); 8055 } 8056 8057 function relativeTimeWithPlural(number, withoutSuffix, key) { 8058 var format = { 8059 'mm': 'Ñ Ð²Ð¸Ð»Ð¸Ð½Ð°_Ñ Ð²Ð¸Ð»Ð¸Ð½Ð¸_Ñ Ð²Ð¸Ð»Ð¸Ð½', 8060 'hh': 'година_години_годин', 8061 'dd': 'денÑ_днÑ_днÑв', 8062 'MM': 'мÑÑÑÑÑ_мÑÑÑÑÑ_мÑÑÑÑÑв', 8063 'yy': 'ÑÑк_Ñоки_ÑокÑв' 8064 }; 8065 if (key === 'm') { 8066 return withoutSuffix ? 'Ñ Ð²Ð¸Ð»Ð¸Ð½Ð°' : 'Ñ Ð²Ð¸Ð»Ð¸Ð½Ñ'; 8067 } 8068 else if (key === 'h') { 8069 return withoutSuffix ? 'година' : 'годинÑ'; 8070 } 8071 else { 8072 return number + ' ' + plural(format[key], +number); 8073 } 8074 } 8075 8076 function monthsCaseReplace(m, format) { 8077 var months = { 8078 'nominative': 'ÑÑÑенÑ_лÑÑий_беÑезенÑ_квÑÑенÑ_ÑÑавенÑ_ÑеÑвенÑ_липенÑ_ÑеÑпенÑ_веÑеÑенÑ_жовÑенÑ_лиÑÑопад_гÑÑденÑ'.split('_'), 8079 'accusative': 'ÑÑÑнÑ_лÑÑого_беÑезнÑ_квÑÑнÑ_ÑÑавнÑ_ÑеÑвнÑ_липнÑ_ÑеÑпнÑ_веÑеÑнÑ_жовÑнÑ_лиÑÑопада_гÑÑднÑ'.split('_') 8080 }, 8081 8082 nounCase = (/D[oD]? *MMMM?/).test(format) ? 8083 'accusative' : 8084 'nominative'; 8085 8086 return months[nounCase][m.month()]; 8087 } 8088 8089 function weekdaysCaseReplace(m, format) { 8090 var weekdays = { 8091 'nominative': 'недÑлÑ_понедÑлок_вÑвÑоÑок_ÑеÑеда_ÑеÑвеÑ_пâÑÑниÑÑ_ÑÑбоÑа'.split('_'), 8092 'accusative': 'недÑлÑ_понедÑлок_вÑвÑоÑок_ÑеÑедÑ_ÑеÑвеÑ_пâÑÑниÑÑ_ÑÑбоÑÑ'.split('_'), 8093 'genitive': 'недÑлÑ_понедÑлка_вÑвÑоÑка_ÑеÑеди_ÑеÑвеÑга_пâÑÑниÑÑ_ÑÑбоÑи'.split('_') 8094 }, 8095 8096 nounCase = (/(\[[ÐвУÑ]\]) ?dddd/).test(format) ? 8097 'accusative' : 8098 ((/\[?(?:минÑлоÑ|наÑÑÑпноÑ)? ?\] ?dddd/).test(format) ? 8099 'genitive' : 8100 'nominative'); 8101 8102 return weekdays[nounCase][m.day()]; 8103 } 8104 8105 function processHoursFunction(str) { 8106 return function () { 8107 return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT'; 8108 }; 8109 } 8110 8111 return moment.lang('uk', { 8112 months : monthsCaseReplace, 8113 monthsShort : "ÑÑÑ_лÑÑ_беÑ_квÑÑ_ÑÑав_ÑеÑв_лип_ÑеÑп_веÑ_жовÑ_лиÑÑ_гÑÑд".split("_"), 8114 weekdays : weekdaysCaseReplace, 8115 weekdaysShort : "нд_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"), 8116 weekdaysMin : "нд_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"), 8117 longDateFormat : { 8118 LT : "HH:mm", 8119 L : "DD.MM.YYYY", 8120 LL : "D MMMM YYYY Ñ.", 8121 LLL : "D MMMM YYYY Ñ., LT", 8122 LLLL : "dddd, D MMMM YYYY Ñ., LT" 8123 }, 8124 calendar : { 8125 sameDay: processHoursFunction('[СÑÐ¾Ð³Ð¾Ð´Ð½Ñ '), 8126 nextDay: processHoursFunction('[ÐавÑÑа '), 8127 lastDay: processHoursFunction('[ÐÑоÑа '), 8128 nextWeek: processHoursFunction('[У] dddd ['), 8129 lastWeek: function () { 8130 switch (this.day()) { 8131 case 0: 8132 case 3: 8133 case 5: 8134 case 6: 8135 return processHoursFunction('[ÐинÑлоÑ] dddd [').call(this); 8136 case 1: 8137 case 2: 8138 case 4: 8139 return processHoursFunction('[ÐинÑлого] dddd [').call(this); 8140 } 8141 }, 8142 sameElse: 'L' 8143 }, 8144 relativeTime : { 8145 future : "за %s", 8146 past : "%s ÑомÑ", 8147 s : "декÑлÑка ÑекÑнд", 8148 m : relativeTimeWithPlural, 8149 mm : relativeTimeWithPlural, 8150 h : "годинÑ", 8151 hh : relativeTimeWithPlural, 8152 d : "денÑ", 8153 dd : relativeTimeWithPlural, 8154 M : "мÑÑÑÑÑ", 8155 MM : relativeTimeWithPlural, 8156 y : "ÑÑк", 8157 yy : relativeTimeWithPlural 8158 }, 8159 8160 // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason 8161 8162 meridiem : function (hour, minute, isLower) { 8163 if (hour < 4) { 8164 return "ноÑÑ"; 8165 } else if (hour < 12) { 8166 return "ÑанкÑ"; 8167 } else if (hour < 17) { 8168 return "днÑ"; 8169 } else { 8170 return "веÑоÑа"; 8171 } 8172 }, 8173 8174 ordinal: function (number, period) { 8175 switch (period) { 8176 case 'M': 8177 case 'd': 8178 case 'DDD': 8179 case 'w': 8180 case 'W': 8181 return number + '-й'; 8182 case 'D': 8183 return number + '-го'; 8184 default: 8185 return number; 8186 } 8187 }, 8188 8189 week : { 8190 dow : 1, // Monday is the first day of the week. 8191 doy : 7 // The week that contains Jan 1st is the first week of the year. 8192 } 8193 }); 8194})); 8195// moment.js language configuration 8196// language : uzbek 8197// author : Sardor Muminov : https://github.com/muminoff 8198 8199(function (factory) { 8200 factory(moment); 8201}(function (moment) { 8202 return moment.lang('uz', { 8203 months : "ÑнваÑÑ_ÑевÑалÑ_маÑÑ_апÑелÑ_май_иÑнÑ_иÑлÑ_авгÑÑÑ_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ".split("_"), 8204 monthsShort : "Ñнв_Ñев_маÑ_апÑ_май_иÑн_иÑл_авг_Ñен_окÑ_ноÑ_дек".split("_"), 8205 weekdays : "ЯкÑанба_ÐÑÑанба_СеÑанба_ЧоÑÑанба_ÐайÑанба_ÐÑма_Шанба".split("_"), 8206 weekdaysShort : "ЯкÑ_ÐÑÑ_СеÑ_ЧоÑ_Ðай_ÐÑм_Шан".split("_"), 8207 weekdaysMin : "Як_ÐÑ_Се_Чо_Ðа_ÐÑ_Ша".split("_"), 8208 longDateFormat : { 8209 LT : "HH:mm", 8210 L : "DD/MM/YYYY", 8211 LL : "D MMMM YYYY", 8212 LLL : "D MMMM YYYY LT", 8213 LLLL : "D MMMM YYYY, dddd LT" 8214 }, 8215 calendar : { 8216 sameDay : '[ÐÑгÑн ÑоаÑ] LT [да]', 8217 nextDay : '[ÐÑÑага] LT [да]', 8218 nextWeek : 'dddd [кÑни ÑоаÑ] LT [да]', 8219 lastDay : '[ÐеÑа ÑоаÑ] LT [да]', 8220 lastWeek : '[УÑган] dddd [кÑни ÑоаÑ] LT [да]', 8221 sameElse : 'L' 8222 }, 8223 relativeTime : { 8224 future : "Якин %s иÑида", 8225 past : "ÐÐ¸Ñ Ð½ÐµÑа %s олдин", 8226 s : "ÑÑÑÑаÑ", 8227 m : "Ð±Ð¸Ñ Ð´Ð°ÐºÐ¸ÐºÐ°", 8228 mm : "%d дакика", 8229 h : "Ð±Ð¸Ñ ÑоаÑ", 8230 hh : "%d ÑоаÑ", 8231 d : "Ð±Ð¸Ñ ÐºÑн", 8232 dd : "%d кÑн", 8233 M : "Ð±Ð¸Ñ Ð¾Ð¹", 8234 MM : "%d ой", 8235 y : "Ð±Ð¸Ñ Ð¹Ð¸Ð»", 8236 yy : "%d йил" 8237 }, 8238 week : { 8239 dow : 1, // Monday is the first day of the week. 8240 doy : 7 // The week that contains Jan 4th is the first week of the year. 8241 } 8242 }); 8243})); 8244// moment.js language configuration 8245// language : vietnamese (vi) 8246// author : Bang Nguyen : https://github.com/bangnk 8247 8248(function (factory) { 8249 factory(moment); 8250}(function (moment) { 8251 return moment.lang('vi', { 8252 months : "tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"), 8253 monthsShort : "Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),
8254 weekdays : "chá»§ nháºt_thứ hai_thứ ba_thứ tư_thứ nÄm_thứ sáu_thứ bảy".split("_"), 8255 weekdaysShort : "CN_T2_T3_T4_T5_T6_T7".split("_"), 8256 weekdaysMin : "CN_T2_T3_T4_T5_T6_T7".split("_"), 8257 longDateFormat : { 8258 LT : "HH:mm", 8259 L : "DD/MM/YYYY", 8260 LL : "D MMMM [nÄm] YYYY", 8261 LLL : "D MMMM [nÄm] YYYY LT", 8262 LLLL : "dddd, D MMMM [nÄm] YYYY LT", 8263 l : "DD/M/YYYY", 8264 ll : "D MMM YYYY", 8265 lll : "D MMM YYYY LT", 8266 llll : "ddd, D MMM YYYY LT" 8267 }, 8268 calendar : { 8269 sameDay: "[Hôm nay lúc] LT", 8270 nextDay: '[Ngà y mai lúc] LT', 8271 nextWeek: 'dddd [tuần tá»i lúc] LT', 8272 lastDay: '[Hôm qua lúc] LT', 8273 lastWeek: 'dddd [tuần rá»i lúc] LT', 8274 sameElse: 'L' 8275 }, 8276 relativeTime : { 8277 future : "%s tá»i", 8278 past : "%s trưá»c", 8279 s : "và i giây", 8280 m : "má»t phút", 8281 mm : "%d phút", 8282 h : "má»t giá»", 8283 hh : "%d giá»", 8284 d : "má»t ngà y", 8285 dd : "%d ngà y", 8286 M : "má»t tháng", 8287 MM : "%d tháng", 8288 y : "má»t nÄm", 8289 yy : "%d nÄm" 8290 }, 8291 ordinal : function (number) { 8292 return number; 8293 }, 8294 week : { 8295 dow : 1, // Monday is the first day of the week. 8296 doy : 4 // The week that contains Jan 4th is the first week of the year. 8297 } 8298 }); 8299})); 8300// moment.js language configuration 8301// language : chinese 8302// author : suupic : https://github.com/suupic 8303// author : Zeno Zeng : https://github.com/zenozeng 8304 8305(function (factory) { 8306 factory(moment); 8307}(function (moment) { 8308 return moment.lang('zh-cn', { 8309 months : "䏿_äºæ_䏿_åæ_äºæ_å æ_䏿_å «æ_乿_åæ_å䏿_åäºæ".split("_"), 8310 monthsShort : "1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"), 8311 weekdays : "æææ¥_ææä¸_ææäº_ææä¸_ææå_ææäº_ææå ".split("_"), 8312 weekdaysShort : "卿¥_å¨ä¸_å¨äº_å¨ä¸_å¨å_å¨äº_å¨å ".split("_"), 8313 weekdaysMin : "æ¥_ä¸_äº_ä¸_å_äº_å ".split("_"), 8314 longDateFormat : { 8315 LT : "Ahç¹mm", 8316 L : "YYYY-MM-DD", 8317 LL : "YYYYå¹´MMMDæ¥", 8318 LLL : "YYYYå¹´MMMDæ¥LT", 8319 LLLL : "YYYYå¹´MMMDæ¥ddddLT", 8320 l : "YYYY-MM-DD", 8321 ll : "YYYYå¹´MMMDæ¥", 8322 lll : "YYYYå¹´MMMDæ¥LT", 8323 llll : "YYYYå¹´MMMDæ¥ddddLT" 8324 }, 8325 meridiem : function (hour, minute, isLower) { 8326 var hm = hour * 100 + minute; 8327 if (hm < 600) { 8328 return "忍"; 8329 } else if (hm < 900) { 8330 return "æ©ä¸"; 8331 } else if (hm < 1130) { 8332 return "ä¸å"; 8333 } else if (hm < 1230) { 8334 return "ä¸å"; 8335 } else if (hm < 1800) { 8336 return "ä¸å"; 8337 } else { 8338 return "æä¸"; 8339 } 8340 }, 8341 calendar : { 8342 sameDay : function () { 8343 return this.minutes() === 0 ? "[ä»å¤©]Ah[ç¹æ´]" : "[ä»å¤©]LT"; 8344 }, 8345 nextDay : function () { 8346 return this.minutes() === 0 ? "[æå¤©]Ah[ç¹æ´]" : "[æå¤©]LT"; 8347 }, 8348 lastDay : function () { 8349 return this.minutes() === 0 ? "[æ¨å¤©]Ah[ç¹æ´]" : "[æ¨å¤©]LT"; 8350 }, 8351 nextWeek : function () { 8352 var startOfWeek, prefix; 8353 startOfWeek = moment().startOf('week'); 8354 prefix = this.unix() - startOfWeek.unix() >= 7 * 24 * 3600 ? '[ä¸]' : '[æ¬]'; 8355 return this.minutes() === 0 ? prefix + "dddAhç¹æ´" : prefix + "dddAhç¹mm"; 8356 }, 8357 lastWeek : function () { 8358 var startOfWeek, prefix; 8359 startOfWeek = moment().startOf('week'); 8360 prefix = this.unix() < startOfWeek.unix() ? '[ä¸]' : '[æ¬]'; 8361 return this.minutes() === 0 ? prefix + "dddAhç¹æ´" : prefix + "dddAhç¹mm"; 8362 }, 8363 sameElse : 'LL' 8364 }, 8365 ordinal : function (number, period) { 8366 switch (period) { 8367 case "d": 8368 case "D": 8369 case "DDD": 8370 return number + "æ¥"; 8371 case "M": 8372 return number + "æ"; 8373 case "w": 8374 case "W": 8375 return number + "å¨"; 8376 default: 8377 return number; 8378 } 8379 }, 8380 relativeTime : { 8381 future : "%så ", 8382 past : "%så", 8383 s : "å ç§", 8384 m : "1åé", 8385 mm : "%dåé", 8386 h : "1å°æ¶", 8387 hh : "%då°æ¶", 8388 d : "1天", 8389 dd : "%d天", 8390 M : "1个æ", 8391 MM : "%d个æ", 8392 y : "1å¹´", 8393 yy : "%då¹´" 8394 }, 8395 week : { 8396 // GB/T 7408-1994ãæ°æ®å åäº¤æ¢æ ¼å¼Â·ä¿¡æ¯äº¤æ¢Â·æ¥æåæ¶é´è¡¨ç¤ºæ³ãä¸ISO 8601:1988çæ 8397 dow : 1, // Monday is the first day of the week. 8398 doy : 4 // The week that contains Jan 4th is the first week of the year. 8399 } 8400 }); 8401})); 8402// moment.js language configuration 8403// language : traditional chinese (zh-tw) 8404// author : Ben : https://github.com/ben-lin 8405 8406(function (factory) { 8407 factory(moment); 8408}(function (moment) { 8409 return moment.lang('zh-tw', { 8410 months : "䏿_äºæ_䏿_åæ_äºæ_å æ_䏿_å «æ_乿_åæ_å䏿_åäºæ".split("_"), 8411 monthsShort : "1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"), 8412 weekdays : "æææ¥_ææä¸_ææäº_ææä¸_ææå_ææäº_ææå ".split("_"), 8413 weekdaysShort : "鱿¥_é±ä¸_é±äº_é±ä¸_é±å_é±äº_é±å ".split("_"), 8414 weekdaysMin : "æ¥_ä¸_äº_ä¸_å_äº_å ".split("_"), 8415 longDateFormat : { 8416 LT : "Ahé»mm", 8417 L : "YYYYå¹´MMMDæ¥", 8418 LL : "YYYYå¹´MMMDæ¥", 8419 LLL : "YYYYå¹´MMMDæ¥LT", 8420 LLLL : "YYYYå¹´MMMDæ¥ddddLT", 8421 l : "YYYYå¹´MMMDæ¥", 8422 ll : "YYYYå¹´MMMDæ¥", 8423 lll : "YYYYå¹´MMMDæ¥LT", 8424 llll : "YYYYå¹´MMMDæ¥ddddLT" 8425 }, 8426 meridiem : function (hour, minute, isLower) { 8427 var hm = hour * 100 + minute; 8428 if (hm < 900) { 8429 return "æ©ä¸"; 8430 } else if (hm < 1130) { 8431 return "ä¸å"; 8432 } else if (hm < 1230) { 8433 return "ä¸å"; 8434 } else if (hm < 1800) { 8435 return "ä¸å"; 8436 } else { 8437 return "æä¸"; 8438 } 8439 }, 8440 calendar : { 8441 sameDay : '[ä»å¤©]LT', 8442 nextDay : '[æå¤©]LT', 8443 nextWeek : '[ä¸]ddddLT', 8444 lastDay : '[æ¨å¤©]LT', 8445 lastWeek : '[ä¸]ddddLT', 8446 sameElse : 'L' 8447 }, 8448 ordinal : function (number, period) { 8449 switch (period) { 8450 case "d" : 8451 case "D" : 8452 case "DDD" : 8453 return number + "æ¥"; 8454 case "M" : 8455 return number + "æ"; 8456 case "w" : 8457 case "W" : 8458 return number + "é±"; 8459 default : 8460 return number; 8461 } 8462 }, 8463 relativeTime : { 8464 future : "%så §", 8465 past : "%så", 8466 s : "å¹¾ç§", 8467 m : "ä¸åé", 8468 mm : "%dåé", 8469 h : "ä¸å°æ", 8470 hh : "%då°æ", 8471 d : "ä¸å¤©", 8472 dd : "%d天", 8473 M : "ä¸åæ", 8474 MM : "%dåæ", 8475 y : "ä¸å¹´", 8476 yy : "%då¹´" 8477 } 8478 }); 8479})); 8480 8481 moment.lang('en'); 8482 8483 8484 /************************************ 8485 Exposing Moment 8486 ************************************/ 8487 8488 function makeGlobal(shouldDeprecate) { 8489 /*global ender:false */ 8490 if (typeof ender !== 'undefined') { 8491 return; 8492 } 8493 oldGlobalMoment = globalScope.moment; 8494 if (shouldDeprecate) { 8495 globalScope.moment = deprecate( 8496 "Accessing Moment through the global scope is " + 8497 "deprecated, and will be removed in an upcoming " + 8498 "release.", 8499 moment); 8500 } else { 8501 globalScope.moment = moment; 8502 } 8503 } 8504 8505 // CommonJS module is defined 8506 if (hasModule) { 8507 module.exports = moment; 8508 } else if (typeof define === "function" && define.amd) { 8509 define("moment", function (require, exports, module) { 8510 if (module.config && module.config() && module.config().noGlobal === true) { 8511 // release the global variable 8512 globalScope.moment = oldGlobalMoment; 8513 } 8514 8515 return moment; 8516 }); 8517 makeGlobal(true); 8518 } else { 8519 makeGlobal(); 8520 } 8521}
8521).call(this);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.