| 1 |
//! moment-with-locales.js |
| 2 |
//! version : 0.5.31 |
| 3 |
//! license : MIT |
| 4 |
//! Copyright (c) JS Foundation and other contributors |
| 5 |
//! github.com/moment |
| 6 |
//! |
| 7 |
//! Permission is hereby granted, free of charge, to any person |
| 8 |
//! obtaining a copy of this software and associated documentation |
| 9 |
//! files (the "Software"), to deal in the Software without |
| 10 |
//! restriction, including without limitation the rights to use, |
| 11 |
//! copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 12 |
//! copies of the Software, and to permit persons to whom the |
| 13 |
//! Software is furnished to do so, subject to the following |
| 14 |
//! conditions: |
| 15 |
//! |
| 16 |
//! The above copyright notice and this permission notice shall be |
| 17 |
//! included in all copies or substantial portions of the Software. |
| 18 |
//! |
| 19 |
//! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 20 |
//! EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 21 |
//! OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 22 |
//! NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 23 |
//! HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 24 |
//! WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 25 |
//! FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 26 |
//! OTHER DEALINGS IN THE SOFTWARE. |
| 27 |
|
| 28 |
;(function (global, factory) { |
| 29 |
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : |
| 30 |
typeof define === 'function' && define.amd ? define(factory) : |
| 31 |
global.moment = factory() |
| 32 |
}(this, (function () { 'use strict'; |
| 33 |
|
| 34 |
var hookCallback; |
| 35 |
|
| 36 |
function hooks() { |
| 37 |
return hookCallback.apply(null, arguments); |
| 38 |
} |
| 39 |
|
| 40 |
// This is done to register the method called with moment() |
| 41 |
// without creating circular dependencies. |
| 42 |
function setHookCallback(callback) { |
| 43 |
hookCallback = callback; |
| 44 |
} |
| 45 |
|
| 46 |
function isArray(input) { |
| 47 |
return ( |
| 48 |
input instanceof Array || |
| 49 |
Object.prototype.toString.call(input) === '[object Array]' |
| 50 |
); |
| 51 |
} |
| 52 |
|
| 53 |
function isObject(input) { |
| 54 |
// IE8 will treat undefined and null as object if it wasn't for |
| 55 |
// input != null |
| 56 |
return ( |
| 57 |
input != null && |
| 58 |
Object.prototype.toString.call(input) === '[object Object]' |
| 59 |
); |
| 60 |
} |
| 61 |
|
| 62 |
function hasOwnProp(a, b) { |
| 63 |
return Object.prototype.hasOwnProperty.call(a, b); |
| 64 |
} |
| 65 |
|
| 66 |
function isObjectEmpty(obj) { |
| 67 |
if (Object.getOwnPropertyNames) { |
| 68 |
return Object.getOwnPropertyNames(obj).length === 0; |
| 69 |
} else { |
| 70 |
var k; |
| 71 |
for (k in obj) { |
| 72 |
if (hasOwnProp(obj, k)) { |
| 73 |
return false; |
| 74 |
} |
| 75 |
} |
| 76 |
return true; |
| 77 |
} |
| 78 |
} |
| 79 |
|
| 80 |
function isUndefined(input) { |
| 81 |
return input === void 0; |
| 82 |
} |
| 83 |
|
| 84 |
function isNumber(input) { |
| 85 |
return ( |
| 86 |
typeof input === 'number' || |
| 87 |
Object.prototype.toString.call(input) === '[object Number]' |
| 88 |
); |
| 89 |
} |
| 90 |
|
| 91 |
function isDate(input) { |
| 92 |
return ( |
| 93 |
input instanceof Date || |
| 94 |
Object.prototype.toString.call(input) === '[object Date]' |
| 95 |
); |
| 96 |
} |
| 97 |
|
| 98 |
function map(arr, fn) { |
| 99 |
var res = [], |
| 100 |
i; |
| 101 |
for (i = 0; i < arr.length; ++i) { |
| 102 |
res.push(fn(arr[i], i)); |
| 103 |
} |
| 104 |
return res; |
| 105 |
} |
| 106 |
|
| 107 |
function extend(a, b) { |
| 108 |
for (var i in b) { |
| 109 |
if (hasOwnProp(b, i)) { |
| 110 |
a[i] = b[i]; |
| 111 |
} |
| 112 |
} |
| 113 |
|
| 114 |
if (hasOwnProp(b, 'toString')) { |
| 115 |
a.toString = b.toString; |
| 116 |
} |
| 117 |
|
| 118 |
if (hasOwnProp(b, 'valueOf')) { |
| 119 |
a.valueOf = b.valueOf; |
| 120 |
} |
| 121 |
|
| 122 |
return a; |
| 123 |
} |
| 124 |
|
| 125 |
function createUTC(input, format, locale, strict) { |
| 126 |
return createLocalOrUTC(input, format, locale, strict, true).utc(); |
| 127 |
} |
| 128 |
|
| 129 |
function defaultParsingFlags() { |
| 130 |
// We need to deep clone this object. |
| 131 |
return { |
| 132 |
empty: false, |
| 133 |
unusedTokens: [], |
| 134 |
unusedInput: [], |
| 135 |
overflow: -2, |
| 136 |
charsLeftOver: 0, |
| 137 |
nullInput: false, |
| 138 |
invalidEra: null, |
| 139 |
invalidMonth: null, |
| 140 |
invalidFormat: false, |
| 141 |
userInvalidated: false, |
| 142 |
iso: false, |
| 143 |
parsedDateParts: [], |
| 144 |
era: null, |
| 145 |
meridiem: null, |
| 146 |
rfc2822: false, |
| 147 |
weekdayMismatch: false, |
| 148 |
}; |
| 149 |
} |
| 150 |
|
| 151 |
function getParsingFlags(m) { |
| 152 |
if (m._pf == null) { |
| 153 |
m._pf = defaultParsingFlags(); |
| 154 |
} |
| 155 |
return m._pf; |
| 156 |
} |
| 157 |
|
| 158 |
var some; |
| 159 |
if (Array.prototype.some) { |
| 160 |
some = Array.prototype.some; |
| 161 |
} else { |
| 162 |
some = function (fun) { |
| 163 |
var t = Object(this), |
| 164 |
len = t.length >>> 0, |
| 165 |
i; |
| 166 |
|
| 167 |
for (i = 0; i < len; i++) { |
| 168 |
if (i in t && fun.call(this, t[i], i, t)) { |
| 169 |
return true; |
| 170 |
} |
| 171 |
} |
| 172 |
|
| 173 |
return false; |
| 174 |
}; |
| 175 |
} |
| 176 |
|
| 177 |
function isValid(m) { |
| 178 |
if (m._isValid == null) { |
| 179 |
var flags = getParsingFlags(m), |
| 180 |
parsedParts = some.call(flags.parsedDateParts, function (i) { |
| 181 |
return i != null; |
| 182 |
}), |
| 183 |
isNowValid = |
| 184 |
!isNaN(m._d.getTime()) && |
| 185 |
flags.overflow < 0 && |
| 186 |
!flags.empty && |
| 187 |
!flags.invalidEra && |
| 188 |
!flags.invalidMonth && |
| 189 |
!flags.invalidWeekday && |
| 190 |
!flags.weekdayMismatch && |
| 191 |
!flags.nullInput && |
| 192 |
!flags.invalidFormat && |
| 193 |
!flags.userInvalidated && |
| 194 |
(!flags.meridiem || (flags.meridiem && parsedParts)); |
| 195 |
|
| 196 |
if (m._strict) { |
| 197 |
isNowValid = |
| 198 |
isNowValid && |
| 199 |
flags.charsLeftOver === 0 && |
| 200 |
flags.unusedTokens.length === 0 && |
| 201 |
flags.bigHour === undefined; |
| 202 |
} |
| 203 |
|
| 204 |
if (Object.isFrozen == null || !Object.isFrozen(m)) { |
| 205 |
m._isValid = isNowValid; |
| 206 |
} else { |
| 207 |
return isNowValid; |
| 208 |
} |
| 209 |
} |
| 210 |
return m._isValid; |
| 211 |
} |
| 212 |
|
| 213 |
function createInvalid(flags) { |
| 214 |
var m = createUTC(NaN); |
| 215 |
if (flags != null) { |
| 216 |
extend(getParsingFlags(m), flags); |
| 217 |
} else { |
| 218 |
getParsingFlags(m).userInvalidated = true; |
| 219 |
} |
| 220 |
|
| 221 |
return m; |
| 222 |
} |
| 223 |
|
| 224 |
// Plugins that add properties should also add the key here (null value), |
| 225 |
// so we can properly clone ourselves. |
| 226 |
var momentProperties = (hooks.momentProperties = []), |
| 227 |
updateInProgress = false; |
| 228 |
|
| 229 |
function copyConfig(to, from) { |
| 230 |
var i, prop, val; |
| 231 |
|
| 232 |
if (!isUndefined(from._isAMomentObject)) { |
| 233 |
to._isAMomentObject = from._isAMomentObject; |
| 234 |
} |
| 235 |
if (!isUndefined(from._i)) { |
| 236 |
to._i = from._i; |
| 237 |
} |
| 238 |
if (!isUndefined(from._f)) { |
| 239 |
to._f = from._f; |
| 240 |
} |
| 241 |
if (!isUndefined(from._l)) { |
| 242 |
to._l = from._l; |
| 243 |
} |
| 244 |
if (!isUndefined(from._strict)) { |
| 245 |
to._strict = from._strict; |
| 246 |
} |
| 247 |
if (!isUndefined(from._tzm)) { |
| 248 |
to._tzm = from._tzm; |
| 249 |
} |
| 250 |
if (!isUndefined(from._isUTC)) { |
| 251 |
to._isUTC = from._isUTC; |
| 252 |
} |
| 253 |
if (!isUndefined(from._offset)) { |
| 254 |
to._offset = from._offset; |
| 255 |
} |
| 256 |
if (!isUndefined(from._pf)) { |
| 257 |
to._pf = getParsingFlags(from); |
| 258 |
} |
| 259 |
if (!isUndefined(from._locale)) { |
| 260 |
to._locale = from._locale; |
| 261 |
} |
| 262 |
|
| 263 |
if (momentProperties.length > 0) { |
| 264 |
for (i = 0; i < momentProperties.length; i++) { |
| 265 |
prop = momentProperties[i]; |
| 266 |
val = from[prop]; |
| 267 |
if (!isUndefined(val)) { |
| 268 |
to[prop] = val; |
| 269 |
} |
| 270 |
} |
| 271 |
} |
| 272 |
|
| 273 |
return to; |
| 274 |
} |
| 275 |
|
| 276 |
// Moment prototype object |
| 277 |
function Moment(config) { |
| 278 |
copyConfig(this, config); |
| 279 |
this._d = new Date(config._d != null ? config._d.getTime() : NaN); |
| 280 |
if (!this.isValid()) { |
| 281 |
this._d = new Date(NaN); |
| 282 |
} |
| 283 |
// Prevent infinite loop in case updateOffset creates new moment |
| 284 |
// objects. |
| 285 |
if (updateInProgress === false) { |
| 286 |
updateInProgress = true; |
| 287 |
hooks.updateOffset(this); |
| 288 |
updateInProgress = false; |
| 289 |
} |
| 290 |
} |
| 291 |
|
| 292 |
function isMoment(obj) { |
| 293 |
return ( |
| 294 |
obj instanceof Moment || (obj != null && obj._isAMomentObject != null) |
| 295 |
); |
| 296 |
} |
| 297 |
|
| 298 |
function warn(msg) { |
| 299 |
if ( |
| 300 |
hooks.suppressDeprecationWarnings === false && |
| 301 |
typeof console !== 'undefined' && |
| 302 |
console.warn |
| 303 |
) { |
| 304 |
console.warn('Deprecation warning: ' + msg); |
| 305 |
} |
| 306 |
} |
| 307 |
|
| 308 |
function deprecate(msg, fn) { |
| 309 |
var firstTime = true; |
| 310 |
|
| 311 |
return extend(function () { |
| 312 |
if (hooks.deprecationHandler != null) { |
| 313 |
hooks.deprecationHandler(null, msg); |
| 314 |
} |
| 315 |
if (firstTime) { |
| 316 |
var args = [], |
| 317 |
arg, |
| 318 |
i, |
| 319 |
key; |
| 320 |
for (i = 0; i < arguments.length; i++) { |
| 321 |
arg = ''; |
| 322 |
if (typeof arguments[i] === 'object') { |
| 323 |
arg += '\n[' + i + '] '; |
| 324 |
for (key in arguments[0]) { |
| 325 |
if (hasOwnProp(arguments[0], key)) { |
| 326 |
arg += key + ': ' + arguments[0][key] + ', '; |
| 327 |
} |
| 328 |
} |
| 329 |
arg = arg.slice(0, -2); // Remove trailing comma and space |
| 330 |
} else { |
| 331 |
arg = arguments[i]; |
| 332 |
} |
| 333 |
args.push(arg); |
| 334 |
} |
| 335 |
warn( |
| 336 |
msg + |
| 337 |
'\nArguments: ' + |
| 338 |
Array.prototype.slice.call(args).join('') + |
| 339 |
'\n' + |
| 340 |
new Error().stack |
| 341 |
); |
| 342 |
firstTime = false; |
| 343 |
} |
| 344 |
return fn.apply(this, arguments); |
| 345 |
}, fn); |
| 346 |
} |
| 347 |
|
| 348 |
var deprecations = {}; |
| 349 |
|
| 350 |
function deprecateSimple(name, msg) { |
| 351 |
if (hooks.deprecationHandler != null) { |
| 352 |
hooks.deprecationHandler(name, msg); |
| 353 |
} |
| 354 |
if (!deprecations[name]) { |
| 355 |
warn(msg); |
| 356 |
deprecations[name] = true; |
| 357 |
} |
| 358 |
} |
| 359 |
|
| 360 |
hooks.suppressDeprecationWarnings = false; |
| 361 |
hooks.deprecationHandler = null; |
| 362 |
|
| 363 |
function isFunction(input) { |
| 364 |
return ( |
| 365 |
(typeof Function !== 'undefined' && input instanceof Function) || |
| 366 |
Object.prototype.toString.call(input) === '[object Function]' |
| 367 |
); |
| 368 |
} |
| 369 |
|
| 370 |
function set(config) { |
| 371 |
var prop, i; |
| 372 |
for (i in config) { |
| 373 |
if (hasOwnProp(config, i)) { |
| 374 |
prop = config[i]; |
| 375 |
if (isFunction(prop)) { |
| 376 |
this[i] = prop; |
| 377 |
} else { |
| 378 |
this['_' + i] = prop; |
| 379 |
} |
| 380 |
} |
| 381 |
} |
| 382 |
this._config = config; |
| 383 |
// Lenient ordinal parsing accepts just a number in addition to |
| 384 |
// number + (possibly) stuff coming from _dayOfMonthOrdinalParse. |
| 385 |
// TODO: Remove "ordinalParse" fallback in next major release. |
| 386 |
this._dayOfMonthOrdinalParseLenient = new RegExp( |
| 387 |
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + |
| 388 |
'|' + |
| 389 |
/\d{1,2}/.source |
| 390 |
); |
| 391 |
} |
| 392 |
|
| 393 |
function mergeConfigs(parentConfig, childConfig) { |
| 394 |
var res = extend({}, parentConfig), |
| 395 |
prop; |
| 396 |
for (prop in childConfig) { |
| 397 |
if (hasOwnProp(childConfig, prop)) { |
| 398 |
if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) { |
| 399 |
res[prop] = {}; |
| 400 |
extend(res[prop], parentConfig[prop]); |
| 401 |
extend(res[prop], childConfig[prop]); |
| 402 |
} else if (childConfig[prop] != null) { |
| 403 |
res[prop] = childConfig[prop]; |
| 404 |
} else { |
| 405 |
delete res[prop]; |
| 406 |
} |
| 407 |
} |
| 408 |
} |
| 409 |
for (prop in parentConfig) { |
| 410 |
if ( |
| 411 |
hasOwnProp(parentConfig, prop) && |
| 412 |
!hasOwnProp(childConfig, prop) && |
| 413 |
isObject(parentConfig[prop]) |
| 414 |
) { |
| 415 |
// make sure changes to properties don't modify parent config |
| 416 |
res[prop] = extend({}, res[prop]); |
| 417 |
} |
| 418 |
} |
| 419 |
return res; |
| 420 |
} |
| 421 |
|
| 422 |
function Locale(config) { |
| 423 |
if (config != null) { |
| 424 |
this.set(config); |
| 425 |
} |
| 426 |
} |
| 427 |
|
| 428 |
var keys; |
| 429 |
|
| 430 |
if (Object.keys) { |
| 431 |
keys = Object.keys; |
| 432 |
} else { |
| 433 |
keys = function (obj) { |
| 434 |
var i, |
| 435 |
res = []; |
| 436 |
for (i in obj) { |
| 437 |
if (hasOwnProp(obj, i)) { |
| 438 |
res.push(i); |
| 439 |
} |
| 440 |
} |
| 441 |
return res; |
| 442 |
}; |
| 443 |
} |
| 444 |
|
| 445 |
var defaultCalendar = { |
| 446 |
sameDay: '[Today at] LT', |
| 447 |
nextDay: '[Tomorrow at] LT', |
| 448 |
nextWeek: 'dddd [at] LT', |
| 449 |
lastDay: '[Yesterday at] LT', |
| 450 |
lastWeek: '[Last] dddd [at] LT', |
| 451 |
sameElse: 'L', |
| 452 |
}; |
| 453 |
|
| 454 |
function calendar(key, mom, now) { |
| 455 |
var output = this._calendar[key] || this._calendar['sameElse']; |
| 456 |
return isFunction(output) ? output.call(mom, now) : output; |
| 457 |
} |
| 458 |
|
| 459 |
function zeroFill(number, targetLength, forceSign) { |
| 460 |
var absNumber = '' + Math.abs(number), |
| 461 |
zerosToFill = targetLength - absNumber.length, |
| 462 |
sign = number >= 0; |
| 463 |
return ( |
| 464 |
(sign ? (forceSign ? '+' : '') : '-') + |
| 465 |
Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + |
| 466 |
absNumber |
| 467 |
); |
| 468 |
} |
| 469 |
|
| 470 |
var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, |
| 471 |
localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, |
| 472 |
formatFunctions = {}, |
| 473 |
formatTokenFunctions = {}; |
| 474 |
|
| 475 |
// token: 'M' |
| 476 |
// padded: ['MM', 2] |
| 477 |
// ordinal: 'Mo' |
| 478 |
// callback: function () { this.month() + 1 } |
| 479 |
function addFormatToken(token, padded, ordinal, callback) { |
| 480 |
var func = callback; |
| 481 |
if (typeof callback === 'string') { |
| 482 |
func = function () { |
| 483 |
return this[callback](); |
| 484 |
}; |
| 485 |
} |
| 486 |
if (token) { |
| 487 |
formatTokenFunctions[token] = func; |
| 488 |
} |
| 489 |
if (padded) { |
| 490 |
formatTokenFunctions[padded[0]] = function () { |
| 491 |
return zeroFill(func.apply(this, arguments), padded[1], padded[2]); |
| 492 |
}; |
| 493 |
} |
| 494 |
if (ordinal) { |
| 495 |
formatTokenFunctions[ordinal] = function () { |
| 496 |
return this.localeData().ordinal( |
| 497 |
func.apply(this, arguments), |
| 498 |
token |
| 499 |
); |
| 500 |
}; |
| 501 |
} |
| 502 |
} |
| 503 |
|
| 504 |
function removeFormattingTokens(input) { |
| 505 |
if (input.match(/\[[\s\S]/)) { |
| 506 |
return input.replace(/^\[|\]$/g, ''); |
| 507 |
} |
| 508 |
return input.replace(/\\/g, ''); |
| 509 |
} |
| 510 |
|
| 511 |
function makeFormatFunction(format) { |
| 512 |
var array = format.match(formattingTokens), |
| 513 |
i, |
| 514 |
length; |
| 515 |
|
| 516 |
for (i = 0, length = array.length; i < length; i++) { |
| 517 |
if (formatTokenFunctions[array[i]]) { |
| 518 |
array[i] = formatTokenFunctions[array[i]]; |
| 519 |
} else { |
| 520 |
array[i] = removeFormattingTokens(array[i]); |
| 521 |
} |
| 522 |
} |
| 523 |
|
| 524 |
return function (mom) { |
| 525 |
var output = '', |
| 526 |
i; |
| 527 |
for (i = 0; i < length; i++) { |
| 528 |
output += isFunction(array[i]) |
| 529 |
? array[i].call(mom, format) |
| 530 |
: array[i]; |
| 531 |
} |
| 532 |
return output; |
| 533 |
}; |
| 534 |
} |
| 535 |
|
| 536 |
// format date using native date object |
| 537 |
function formatMoment(m, format) { |
| 538 |
if (!m.isValid()) { |
| 539 |
return m.localeData().invalidDate(); |
| 540 |
} |
| 541 |
|
| 542 |
format = expandFormat(format, m.localeData()); |
| 543 |
formatFunctions[format] = |
| 544 |
formatFunctions[format] || makeFormatFunction(format); |
| 545 |
|
| 546 |
return formatFunctions[format](m); |
| 547 |
} |
| 548 |
|
| 549 |
function expandFormat(format, locale) { |
| 550 |
var i = 5; |
| 551 |
|
| 552 |
function replaceLongDateFormatTokens(input) { |
| 553 |
return locale.longDateFormat(input) || input; |
| 554 |
} |
| 555 |
|
| 556 |
localFormattingTokens.lastIndex = 0; |
| 557 |
while (i >= 0 && localFormattingTokens.test(format)) { |
| 558 |
format = format.replace( |
| 559 |
localFormattingTokens, |
| 560 |
replaceLongDateFormatTokens |
| 561 |
); |
| 562 |
localFormattingTokens.lastIndex = 0; |
| 563 |
i -= 1; |
| 564 |
} |
| 565 |
|
| 566 |
return format; |
| 567 |
} |
| 568 |
|
| 569 |
var defaultLongDateFormat = { |
| 570 |
LTS: 'h:mm:ss A', |
| 571 |
LT: 'h:mm A', |
| 572 |
L: 'MM/DD/YYYY', |
| 573 |
LL: 'MMMM D, YYYY', |
| 574 |
LLL: 'MMMM D, YYYY h:mm A', |
| 575 |
LLLL: 'dddd, MMMM D, YYYY h:mm A', |
| 576 |
}; |
| 577 |
|
| 578 |
function longDateFormat(key) { |
| 579 |
var format = this._longDateFormat[key], |
| 580 |
formatUpper = this._longDateFormat[key.toUpperCase()]; |
| 581 |
|
| 582 |
if (format || !formatUpper) { |
| 583 |
return format; |
| 584 |
} |
| 585 |
|
| 586 |
this._longDateFormat[key] = formatUpper |
| 587 |
.match(formattingTokens) |
| 588 |
.map(function (tok) { |
| 589 |
if ( |
| 590 |
tok === 'MMMM' || |
| 591 |
tok === 'MM' || |
| 592 |
tok === 'DD' || |
| 593 |
tok === 'dddd' |
| 594 |
) { |
| 595 |
return tok.slice(1); |
| 596 |
} |
| 597 |
return tok; |
| 598 |
}) |
| 599 |
.join(''); |
| 600 |
|
| 601 |
return this._longDateFormat[key]; |
| 602 |
} |
| 603 |
|
| 604 |
var defaultInvalidDate = 'Invalid date'; |
| 605 |
|
| 606 |
function invalidDate() { |
| 607 |
return this._invalidDate; |
| 608 |
} |
| 609 |
|
| 610 |
var defaultOrdinal = '%d', |
| 611 |
defaultDayOfMonthOrdinalParse = /\d{1,2}/; |
| 612 |
|
| 613 |
function ordinal(number) { |
| 614 |
return this._ordinal.replace('%d', number); |
| 615 |
} |
| 616 |
|
| 617 |
var defaultRelativeTime = { |
| 618 |
future: 'in %s', |
| 619 |
past: '%s ago', |
| 620 |
s: 'a few seconds', |
| 621 |
ss: '%d seconds', |
| 622 |
m: 'a minute', |
| 623 |
mm: '%d minutes', |
| 624 |
h: 'an hour', |
| 625 |
hh: '%d hours', |
| 626 |
d: 'a day', |
| 627 |
dd: '%d days', |
| 628 |
w: 'a week', |
| 629 |
ww: '%d weeks', |
| 630 |
M: 'a month', |
| 631 |
MM: '%d months', |
| 632 |
y: 'a year', |
| 633 |
yy: '%d years', |
| 634 |
}; |
| 635 |
|
| 636 |
function relativeTime(number, withoutSuffix, string, isFuture) { |
| 637 |
var output = this._relativeTime[string]; |
| 638 |
return isFunction(output) |
| 639 |
? output(number, withoutSuffix, string, isFuture) |
| 640 |
: output.replace(/%d/i, number); |
| 641 |
} |
| 642 |
|
| 643 |
function pastFuture(diff, output) { |
| 644 |
var format = this._relativeTime[diff > 0 ? 'future' : 'past']; |
| 645 |
return isFunction(format) ? format(output) : format.replace(/%s/i, output); |
| 646 |
} |
| 647 |
|
| 648 |
var aliases = {}; |
| 649 |
|
| 650 |
function addUnitAlias(unit, shorthand) { |
| 651 |
var lowerCase = unit.toLowerCase(); |
| 652 |
aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit; |
| 653 |
} |
| 654 |
|
| 655 |
function normalizeUnits(units) { |
| 656 |
return typeof units === 'string' |
| 657 |
? aliases[units] || aliases[units.toLowerCase()] |
| 658 |
: undefined; |
| 659 |
} |
| 660 |
|
| 661 |
function normalizeObjectUnits(inputObject) { |
| 662 |
var normalizedInput = {}, |
| 663 |
normalizedProp, |
| 664 |
prop; |
| 665 |
|
| 666 |
for (prop in inputObject) { |
| 667 |
if (hasOwnProp(inputObject, prop)) { |
| 668 |
normalizedProp = normalizeUnits(prop); |
| 669 |
if (normalizedProp) { |
| 670 |
normalizedInput[normalizedProp] = inputObject[prop]; |
| 671 |
} |
| 672 |
} |
| 673 |
} |
| 674 |
|
| 675 |
return normalizedInput; |
| 676 |
} |
| 677 |
|
| 678 |
var priorities = {}; |
| 679 |
|
| 680 |
function addUnitPriority(unit, priority) { |
| 681 |
priorities[unit] = priority; |
| 682 |
} |
| 683 |
|
| 684 |
function getPrioritizedUnits(unitsObj) { |
| 685 |
var units = [], |
| 686 |
u; |
| 687 |
for (u in unitsObj) { |
| 688 |
if (hasOwnProp(unitsObj, u)) { |
| 689 |
units.push({ unit: u, priority: priorities[u] }); |
| 690 |
} |
| 691 |
} |
| 692 |
units.sort(function (a, b) { |
| 693 |
return a.priority - b.priority; |
| 694 |
}); |
| 695 |
return units; |
| 696 |
} |
| 697 |
|
| 698 |
function isLeapYear(year) { |
| 699 |
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0; |
| 700 |
} |
| 701 |
|
| 702 |
function absFloor(number) { |
| 703 |
if (number < 0) { |
| 704 |
// -0 -> 0 |
| 705 |
return Math.ceil(number) || 0; |
| 706 |
} else { |
| 707 |
return Math.floor(number); |
| 708 |
} |
| 709 |
} |
| 710 |
|
| 711 |
function toInt(argumentForCoercion) { |
| 712 |
var coercedNumber = +argumentForCoercion, |
| 713 |
value = 0; |
| 714 |
|
| 715 |
if (coercedNumber !== 0 && isFinite(coercedNumber)) { |
| 716 |
value = absFloor(coercedNumber); |
| 717 |
} |
| 718 |
|
| 719 |
return value; |
| 720 |
} |
| 721 |
|
| 722 |
function makeGetSet(unit, keepTime) { |
| 723 |
return function (value) { |
| 724 |
if (value != null) { |
| 725 |
set$1(this, unit, value); |
| 726 |
hooks.updateOffset(this, keepTime); |
| 727 |
return this; |
| 728 |
} else { |
| 729 |
return get(this, unit); |
| 730 |
} |
| 731 |
}; |
| 732 |
} |
| 733 |
|
| 734 |
function get(mom, unit) { |
| 735 |
return mom.isValid() |
| 736 |
? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() |
| 737 |
: NaN; |
| 738 |
} |
| 739 |
|
| 740 |
function set$1(mom, unit, value) { |
| 741 |
if (mom.isValid() && !isNaN(value)) { |
| 742 |
if ( |
| 743 |
unit === 'FullYear' && |
| 744 |
isLeapYear(mom.year()) && |
| 745 |
mom.month() === 1 && |
| 746 |
mom.date() === 29 |
| 747 |
) { |
| 748 |
value = toInt(value); |
| 749 |
mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit]( |
| 750 |
value, |
| 751 |
mom.month(), |
| 752 |
daysInMonth(value, mom.month()) |
| 753 |
); |
| 754 |
} else { |
| 755 |
mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value); |
| 756 |
} |
| 757 |
} |
| 758 |
} |
| 759 |
|
| 760 |
// MOMENTS |
| 761 |
|
| 762 |
function stringGet(units) { |
| 763 |
units = normalizeUnits(units); |
| 764 |
if (isFunction(this[units])) { |
| 765 |
return this[units](); |
| 766 |
} |
| 767 |
return this; |
| 768 |
} |
| 769 |
|
| 770 |
function stringSet(units, value) { |
| 771 |
if (typeof units === 'object') { |
| 772 |
units = normalizeObjectUnits(units); |
| 773 |
var prioritized = getPrioritizedUnits(units), |
| 774 |
i; |
| 775 |
for (i = 0; i < prioritized.length; i++) { |
| 776 |
this[prioritized[i].unit](units[prioritized[i].unit]); |
| 777 |
} |
| 778 |
} else { |
| 779 |
units = normalizeUnits(units); |
| 780 |
if (isFunction(this[units])) { |
| 781 |
return this[units](value); |
| 782 |
} |
| 783 |
} |
| 784 |
return this; |
| 785 |
} |
| 786 |
|
| 787 |
var match1 = /\d/, // 0 - 9 |
| 788 |
match2 = /\d\d/, // 00 - 99 |
| 789 |
match3 = /\d{3}/, // 000 - 999 |
| 790 |
match4 = /\d{4}/, // 0000 - 9999 |
| 791 |
match6 = /[+-]?\d{6}/, // -999999 - 999999 |
| 792 |
match1to2 = /\d\d?/, // 0 - 99 |
| 793 |
match3to4 = /\d\d\d\d?/, // 999 - 9999 |
| 794 |
match5to6 = /\d\d\d\d\d\d?/, // 99999 - 999999 |
| 795 |
match1to3 = /\d{1,3}/, // 0 - 999 |
| 796 |
match1to4 = /\d{1,4}/, // 0 - 9999 |
| 797 |
match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999 |
| 798 |
matchUnsigned = /\d+/, // 0 - inf |
| 799 |
matchSigned = /[+-]?\d+/, // -inf - inf |
| 800 |
matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z |
| 801 |
matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z |
| 802 |
matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123 |
| 803 |
// any word (or two) characters or numbers including two/three word month in arabic. |
| 804 |
// includes scottish gaelic two word and hyphenated months |
| 805 |
matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, |
| 806 |
regexes; |
| 807 |
|
| 808 |
regexes = {}; |
| 809 |
|
| 810 |
function addRegexToken(token, regex, strictRegex) { |
| 811 |
regexes[token] = isFunction(regex) |
| 812 |
? regex |
| 813 |
: function (isStrict, localeData) { |
| 814 |
return isStrict && strictRegex ? strictRegex : regex; |
| 815 |
}; |
| 816 |
} |
| 817 |
|
| 818 |
function getParseRegexForToken(token, config) { |
| 819 |
if (!hasOwnProp(regexes, token)) { |
| 820 |
return new RegExp(unescapeFormat(token)); |
| 821 |
} |
| 822 |
|
| 823 |
return regexes[token](config._strict, config._locale); |
| 824 |
} |
| 825 |
|
| 826 |
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript |
| 827 |
function unescapeFormat(s) { |
| 828 |
return regexEscape( |
| 829 |
s |
| 830 |
.replace('\\', '') |
| 831 |
.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function ( |
| 832 |
matched, |
| 833 |
p1, |
| 834 |
p2, |
| 835 |
p3, |
| 836 |
p4 |
| 837 |
) { |
| 838 |
return p1 || p2 || p3 || p4; |
| 839 |
}) |
| 840 |
); |
| 841 |
} |
| 842 |
|
| 843 |
function regexEscape(s) { |
| 844 |
return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); |
| 845 |
} |
| 846 |
|
| 847 |
var tokens = {}; |
| 848 |
|
| 849 |
function addParseToken(token, callback) { |
| 850 |
var i, |
| 851 |
func = callback; |
| 852 |
if (typeof token === 'string') { |
| 853 |
token = [token]; |
| 854 |
} |
| 855 |
if (isNumber(callback)) { |
| 856 |
func = function (input, array) { |
| 857 |
array[callback] = toInt(input); |
| 858 |
}; |
| 859 |
} |
| 860 |
for (i = 0; i < token.length; i++) { |
| 861 |
tokens[token[i]] = func; |
| 862 |
} |
| 863 |
} |
| 864 |
|
| 865 |
function addWeekParseToken(token, callback) { |
| 866 |
addParseToken(token, function (input, array, config, token) { |
| 867 |
config._w = config._w || {}; |
| 868 |
callback(input, config._w, config, token); |
| 869 |
}); |
| 870 |
} |
| 871 |
|
| 872 |
function addTimeToArrayFromToken(token, input, config) { |
| 873 |
if (input != null && hasOwnProp(tokens, token)) { |
| 874 |
tokens[token](input, config._a, config, token); |
| 875 |
} |
| 876 |
} |
| 877 |
|
| 878 |
var YEAR = 0, |
| 879 |
MONTH = 1, |
| 880 |
DATE = 2, |
| 881 |
HOUR = 3, |
| 882 |
MINUTE = 4, |
| 883 |
SECOND = 5, |
| 884 |
MILLISECOND = 6, |
| 885 |
WEEK = 7, |
| 886 |
WEEKDAY = 8; |
| 887 |
|
| 888 |
function mod(n, x) { |
| 889 |
return ((n % x) + x) % x; |
| 890 |
} |
| 891 |
|
| 892 |
var indexOf; |
| 893 |
|
| 894 |
if (Array.prototype.indexOf) { |
| 895 |
indexOf = Array.prototype.indexOf; |
| 896 |
} else { |
| 897 |
indexOf = function (o) { |
| 898 |
// I know |
| 899 |
var i; |
| 900 |
for (i = 0; i < this.length; ++i) { |
| 901 |
if (this[i] === o) { |
| 902 |
return i; |
| 903 |
} |
| 904 |
} |
| 905 |
return -1; |
| 906 |
}; |
| 907 |
} |
| 908 |
|
| 909 |
function daysInMonth(year, month) { |
| 910 |
if (isNaN(year) || isNaN(month)) { |
| 911 |
return NaN; |
| 912 |
} |
| 913 |
var modMonth = mod(month, 12); |
| 914 |
year += (month - modMonth) / 12; |
| 915 |
return modMonth === 1 |
| 916 |
? isLeapYear(year) |
| 917 |
? 29 |
| 918 |
: 28 |
| 919 |
: 31 - ((modMonth % 7) % 2); |
| 920 |
} |
| 921 |
|
| 922 |
// FORMATTING |
| 923 |
|
| 924 |
addFormatToken('M', ['MM', 2], 'Mo', function () { |
| 925 |
return this.month() + 1; |
| 926 |
}); |
| 927 |
|
| 928 |
addFormatToken('MMM', 0, 0, function (format) { |
| 929 |
return this.localeData().monthsShort(this, format); |
| 930 |
}); |
| 931 |
|
| 932 |
addFormatToken('MMMM', 0, 0, function (format) { |
| 933 |
return this.localeData().months(this, format); |
| 934 |
}); |
| 935 |
|
| 936 |
// ALIASES |
| 937 |
|
| 938 |
addUnitAlias('month', 'M'); |
| 939 |
|
| 940 |
// PRIORITY |
| 941 |
|
| 942 |
addUnitPriority('month', 8); |
| 943 |
|
| 944 |
// PARSING |
| 945 |
|
| 946 |
addRegexToken('M', match1to2); |
| 947 |
addRegexToken('MM', match1to2, match2); |
| 948 |
addRegexToken('MMM', function (isStrict, locale) { |
| 949 |
return locale.monthsShortRegex(isStrict); |
| 950 |
}); |
| 951 |
addRegexToken('MMMM', function (isStrict, locale) { |
| 952 |
return locale.monthsRegex(isStrict); |
| 953 |
}); |
| 954 |
|
| 955 |
addParseToken(['M', 'MM'], function (input, array) { |
| 956 |
array[MONTH] = toInt(input) - 1; |
| 957 |
}); |
| 958 |
|
| 959 |
addParseToken(['MMM', 'MMMM'], function (input, array, config, token) { |
| 960 |
var month = config._locale.monthsParse(input, token, config._strict); |
| 961 |
// if we didn't find a month name, mark the date as invalid. |
| 962 |
if (month != null) { |
| 963 |
array[MONTH] = month; |
| 964 |
} else { |
| 965 |
getParsingFlags(config).invalidMonth = input; |
| 966 |
} |
| 967 |
}); |
| 968 |
|
| 969 |
// LOCALES |
| 970 |
|
| 971 |
var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split( |
| 972 |
'_' |
| 973 |
), |
| 974 |
defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( |
| 975 |
'_' |
| 976 |
), |
| 977 |
MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, |
| 978 |
defaultMonthsShortRegex = matchWord, |
| 979 |
defaultMonthsRegex = matchWord; |
| 980 |
|
| 981 |
function localeMonths(m, format) { |
| 982 |
if (!m) { |
| 983 |
return isArray(this._months) |
| 984 |
? this._months |
| 985 |
: this._months['standalone']; |
| 986 |
} |
| 987 |
return isArray(this._months) |
| 988 |
? this._months[m.month()] |
| 989 |
: this._months[ |
| 990 |
(this._months.isFormat || MONTHS_IN_FORMAT).test(format) |
| 991 |
? 'format' |
| 992 |
: 'standalone' |
| 993 |
][m.month()]; |
| 994 |
} |
| 995 |
|
| 996 |
function localeMonthsShort(m, format) { |
| 997 |
if (!m) { |
| 998 |
return isArray(this._monthsShort) |
| 999 |
? this._monthsShort |
| 1000 |
: this._monthsShort['standalone']; |
| 1001 |
} |
| 1002 |
return isArray(this._monthsShort) |
| 1003 |
? this._monthsShort[m.month()] |
| 1004 |
: this._monthsShort[ |
| 1005 |
MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone' |
| 1006 |
][m.month()]; |
| 1007 |
} |
| 1008 |
|
| 1009 |
function handleStrictParse(monthName, format, strict) { |
| 1010 |
var i, |
| 1011 |
ii, |
| 1012 |
mom, |
| 1013 |
llc = monthName.toLocaleLowerCase(); |
| 1014 |
if (!this._monthsParse) { |
| 1015 |
// this is not used |
| 1016 |
this._monthsParse = []; |
| 1017 |
this._longMonthsParse = []; |
| 1018 |
this._shortMonthsParse = []; |
| 1019 |
for (i = 0; i < 12; ++i) { |
| 1020 |
mom = createUTC([2000, i]); |
| 1021 |
this._shortMonthsParse[i] = this.monthsShort( |
| 1022 |
mom, |
| 1023 |
'' |
| 1024 |
).toLocaleLowerCase(); |
| 1025 |
this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase(); |
| 1026 |
} |
| 1027 |
} |
| 1028 |
|
| 1029 |
if (strict) { |
| 1030 |
if (format === 'MMM') { |
| 1031 |
ii = indexOf.call(this._shortMonthsParse, llc); |
| 1032 |
return ii !== -1 ? ii : null; |
| 1033 |
} else { |
| 1034 |
ii = indexOf.call(this._longMonthsParse, llc); |
| 1035 |
return ii !== -1 ? ii : null; |
| 1036 |
} |
| 1037 |
} else { |
| 1038 |
if (format === 'MMM') { |
| 1039 |
ii = indexOf.call(this._shortMonthsParse, llc); |
| 1040 |
if (ii !== -1) { |
| 1041 |
return ii; |
| 1042 |
} |
| 1043 |
ii = indexOf.call(this._longMonthsParse, llc); |
| 1044 |
return ii !== -1 ? ii : null; |
| 1045 |
} else { |
| 1046 |
ii = indexOf.call(this._longMonthsParse, llc); |
| 1047 |
if (ii !== -1) { |
| 1048 |
return ii; |
| 1049 |
} |
| 1050 |
ii = indexOf.call(this._shortMonthsParse, llc); |
| 1051 |
return ii !== -1 ? ii : null; |
| 1052 |
} |
| 1053 |
} |
| 1054 |
} |
| 1055 |
|
| 1056 |
function localeMonthsParse(monthName, format, strict) { |
| 1057 |
var i, mom, regex; |
| 1058 |
|
| 1059 |
if (this._monthsParseExact) { |
| 1060 |
return handleStrictParse.call(this, monthName, format, strict); |
| 1061 |
} |
| 1062 |
|
| 1063 |
if (!this._monthsParse) { |
| 1064 |
this._monthsParse = []; |
| 1065 |
this._longMonthsParse = []; |
| 1066 |
this._shortMonthsParse = []; |
| 1067 |
} |
| 1068 |
|
| 1069 |
// TODO: add sorting |
| 1070 |
// Sorting makes sure if one month (or abbr) is a prefix of another |
| 1071 |
// see sorting in computeMonthsParse |
| 1072 |
for (i = 0; i < 12; i++) { |
| 1073 |
// make the regex if we don't have it already |
| 1074 |
mom = createUTC([2000, i]); |
| 1075 |
if (strict && !this._longMonthsParse[i]) { |
| 1076 |
this._longMonthsParse[i] = new RegExp( |
| 1077 |
'^' + this.months(mom, '').replace('.', '') + '$', |
| 1078 |
'i' |
| 1079 |
); |
| 1080 |
this._shortMonthsParse[i] = new RegExp( |
| 1081 |
'^' + this.monthsShort(mom, '').replace('.', '') + '$', |
| 1082 |
'i' |
| 1083 |
); |
| 1084 |
} |
| 1085 |
if (!strict && !this._monthsParse[i]) { |
| 1086 |
regex = |
| 1087 |
'^' + this.months(mom, '') + '|^' + this.monthsShort(mom, ''); |
| 1088 |
this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i'); |
| 1089 |
} |
| 1090 |
// test the regex |
| 1091 |
if ( |
| 1092 |
strict && |
| 1093 |
format === 'MMMM' && |
| 1094 |
this._longMonthsParse[i].test(monthName) |
| 1095 |
) { |
| 1096 |
return i; |
| 1097 |
} else if ( |
| 1098 |
strict && |
| 1099 |
format === 'MMM' && |
| 1100 |
this._shortMonthsParse[i].test(monthName) |
| 1101 |
) { |
| 1102 |
return i; |
| 1103 |
} else if (!strict && this._monthsParse[i].test(monthName)) { |
| 1104 |
return i; |
| 1105 |
} |
| 1106 |
} |
| 1107 |
} |
| 1108 |
|
| 1109 |
// MOMENTS |
| 1110 |
|
| 1111 |
function setMonth(mom, value) { |
| 1112 |
var dayOfMonth; |
| 1113 |
|
| 1114 |
if (!mom.isValid()) { |
| 1115 |
// No op |
| 1116 |
return mom; |
| 1117 |
} |
| 1118 |
|
| 1119 |
if (typeof value === 'string') { |
| 1120 |
if (/^\d+$/.test(value)) { |
| 1121 |
value = toInt(value); |
| 1122 |
} else { |
| 1123 |
value = mom.localeData().monthsParse(value); |
| 1124 |
// TODO: Another silent failure? |
| 1125 |
if (!isNumber(value)) { |
| 1126 |
return mom; |
| 1127 |
} |
| 1128 |
} |
| 1129 |
} |
| 1130 |
|
| 1131 |
dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value)); |
| 1132 |
mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth); |
| 1133 |
return mom; |
| 1134 |
} |
| 1135 |
|
| 1136 |
function getSetMonth(value) { |
| 1137 |
if (value != null) { |
| 1138 |
setMonth(this, value); |
| 1139 |
hooks.updateOffset(this, true); |
| 1140 |
return this; |
| 1141 |
} else { |
| 1142 |
return get(this, 'Month'); |
| 1143 |
} |
| 1144 |
} |
| 1145 |
|
| 1146 |
function getDaysInMonth() { |
| 1147 |
return daysInMonth(this.year(), this.month()); |
| 1148 |
} |
| 1149 |
|
| 1150 |
function monthsShortRegex(isStrict) { |
| 1151 |
if (this._monthsParseExact) { |
| 1152 |
if (!hasOwnProp(this, '_monthsRegex')) { |
| 1153 |
computeMonthsParse.call(this); |
| 1154 |
} |
| 1155 |
if (isStrict) { |
| 1156 |
return this._monthsShortStrictRegex; |
| 1157 |
} else { |
| 1158 |
return this._monthsShortRegex; |
| 1159 |
} |
| 1160 |
} else { |
| 1161 |
if (!hasOwnProp(this, '_monthsShortRegex')) { |
| 1162 |
this._monthsShortRegex = defaultMonthsShortRegex; |
| 1163 |
} |
| 1164 |
return this._monthsShortStrictRegex && isStrict |
| 1165 |
? this._monthsShortStrictRegex |
| 1166 |
: this._monthsShortRegex; |
| 1167 |
} |
| 1168 |
} |
| 1169 |
|
| 1170 |
function monthsRegex(isStrict) { |
| 1171 |
if (this._monthsParseExact) { |
| 1172 |
if (!hasOwnProp(this, '_monthsRegex')) { |
| 1173 |
computeMonthsParse.call(this); |
| 1174 |
} |
| 1175 |
if (isStrict) { |
| 1176 |
return this._monthsStrictRegex; |
| 1177 |
} else { |
| 1178 |
return this._monthsRegex; |
| 1179 |
} |
| 1180 |
} else { |
| 1181 |
if (!hasOwnProp(this, '_monthsRegex')) { |
| 1182 |
this._monthsRegex = defaultMonthsRegex; |
| 1183 |
} |
| 1184 |
return this._monthsStrictRegex && isStrict |
| 1185 |
? this._monthsStrictRegex |
| 1186 |
: this._monthsRegex; |
| 1187 |
} |
| 1188 |
} |
| 1189 |
|
| 1190 |
function computeMonthsParse() { |
| 1191 |
function cmpLenRev(a, b) { |
| 1192 |
return b.length - a.length; |
| 1193 |
} |
| 1194 |
|
| 1195 |
var shortPieces = [], |
| 1196 |
longPieces = [], |
| 1197 |
mixedPieces = [], |
| 1198 |
i, |
| 1199 |
mom; |
| 1200 |
for (i = 0; i < 12; i++) { |
| 1201 |
// make the regex if we don't have it already |
| 1202 |
mom = createUTC([2000, i]); |
| 1203 |
shortPieces.push(this.monthsShort(mom, '')); |
| 1204 |
longPieces.push(this.months(mom, '')); |
| 1205 |
mixedPieces.push(this.months(mom, '')); |
| 1206 |
mixedPieces.push(this.monthsShort(mom, '')); |
| 1207 |
} |
| 1208 |
// Sorting makes sure if one month (or abbr) is a prefix of another it |
| 1209 |
// will match the longer piece. |
| 1210 |
shortPieces.sort(cmpLenRev); |
| 1211 |
longPieces.sort(cmpLenRev); |
| 1212 |
mixedPieces.sort(cmpLenRev); |
| 1213 |
for (i = 0; i < 12; i++) { |
| 1214 |
shortPieces[i] = regexEscape(shortPieces[i]); |
| 1215 |
longPieces[i] = regexEscape(longPieces[i]); |
| 1216 |
} |
| 1217 |
for (i = 0; i < 24; i++) { |
| 1218 |
mixedPieces[i] = regexEscape(mixedPieces[i]); |
| 1219 |
} |
| 1220 |
|
| 1221 |
this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); |
| 1222 |
this._monthsShortRegex = this._monthsRegex; |
| 1223 |
this._monthsStrictRegex = new RegExp( |
| 1224 |
'^(' + longPieces.join('|') + ')', |
| 1225 |
'i' |
| 1226 |
); |
| 1227 |
this._monthsShortStrictRegex = new RegExp( |
| 1228 |
'^(' + shortPieces.join('|') + ')', |
| 1229 |
'i' |
| 1230 |
); |
| 1231 |
} |
| 1232 |
|
| 1233 |
// FORMATTING |
| 1234 |
|
| 1235 |
addFormatToken('Y', 0, 0, function () { |
| 1236 |
var y = this.year(); |
| 1237 |
return y <= 9999 ? zeroFill(y, 4) : '+' + y; |
| 1238 |
}); |
| 1239 |
|
| 1240 |
addFormatToken(0, ['YY', 2], 0, function () { |
| 1241 |
return this.year() % 100; |
| 1242 |
}); |
| 1243 |
|
| 1244 |
addFormatToken(0, ['YYYY', 4], 0, 'year'); |
| 1245 |
addFormatToken(0, ['YYYYY', 5], 0, 'year'); |
| 1246 |
addFormatToken(0, ['YYYYYY', 6, true], 0, 'year'); |
| 1247 |
|
| 1248 |
// ALIASES |
| 1249 |
|
| 1250 |
addUnitAlias('year', 'y'); |
| 1251 |
|
| 1252 |
// PRIORITIES |
| 1253 |
|
| 1254 |
addUnitPriority('year', 1); |
| 1255 |
|
| 1256 |
// PARSING |
| 1257 |
|
| 1258 |
addRegexToken('Y', matchSigned); |
| 1259 |
addRegexToken('YY', match1to2, match2); |
| 1260 |
addRegexToken('YYYY', match1to4, match4); |
| 1261 |
addRegexToken('YYYYY', match1to6, match6); |
| 1262 |
addRegexToken('YYYYYY', match1to6, match6); |
| 1263 |
|
| 1264 |
addParseToken(['YYYYY', 'YYYYYY'], YEAR); |
| 1265 |
addParseToken('YYYY', function (input, array) { |
| 1266 |
array[YEAR] = |
| 1267 |
input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input); |
| 1268 |
}); |
| 1269 |
addParseToken('YY', function (input, array) { |
| 1270 |
array[YEAR] = hooks.parseTwoDigitYear(input); |
| 1271 |
}); |
| 1272 |
addParseToken('Y', function (input, array) { |
| 1273 |
array[YEAR] = parseInt(input, 10); |
| 1274 |
}); |
| 1275 |
|
| 1276 |
// HELPERS |
| 1277 |
|
| 1278 |
function daysInYear(year) { |
| 1279 |
return isLeapYear(year) ? 366 : 365; |
| 1280 |
} |
| 1281 |
|
| 1282 |
// HOOKS |
| 1283 |
|
| 1284 |
hooks.parseTwoDigitYear = function (input) { |
| 1285 |
return toInt(input) + (toInt(input) > 68 ? 1900 : 2000); |
| 1286 |
}; |
| 1287 |
|
| 1288 |
// MOMENTS |
| 1289 |
|
| 1290 |
var getSetYear = makeGetSet('FullYear', true); |
| 1291 |
|
| 1292 |
function getIsLeapYear() { |
| 1293 |
return isLeapYear(this.year()); |
| 1294 |
} |
| 1295 |
|
| 1296 |
function createDate(y, m, d, h, M, s, ms) { |
| 1297 |
// can't just apply() to create a date: |
| 1298 |
// https://stackoverflow.com/q/181348 |
| 1299 |
var date; |
| 1300 |
// the date constructor remaps years 0-99 to 1900-1999 |
| 1301 |
if (y < 100 && y >= 0) { |
| 1302 |
// preserve leap years using a full 400 year cycle, then reset |
| 1303 |
date = new Date(y + 400, m, d, h, M, s, ms); |
| 1304 |
if (isFinite(date.getFullYear())) { |
| 1305 |
date.setFullYear(y); |
| 1306 |
} |
| 1307 |
} else { |
| 1308 |
date = new Date(y, m, d, h, M, s, ms); |
| 1309 |
} |
| 1310 |
|
| 1311 |
return date; |
| 1312 |
} |
| 1313 |
|
| 1314 |
function createUTCDate(y) { |
| 1315 |
var date, args; |
| 1316 |
// the Date.UTC function remaps years 0-99 to 1900-1999 |
| 1317 |
if (y < 100 && y >= 0) { |
| 1318 |
args = Array.prototype.slice.call(arguments); |
| 1319 |
// preserve leap years using a full 400 year cycle, then reset |
| 1320 |
args[0] = y + 400; |
| 1321 |
date = new Date(Date.UTC.apply(null, args)); |
| 1322 |
if (isFinite(date.getUTCFullYear())) { |
| 1323 |
date.setUTCFullYear(y); |
| 1324 |
} |
| 1325 |
} else { |
| 1326 |
date = new Date(Date.UTC.apply(null, arguments)); |
| 1327 |
} |
| 1328 |
|
| 1329 |
return date; |
| 1330 |
} |
| 1331 |
|
| 1332 |
// start-of-first-week - start-of-year |
| 1333 |
function firstWeekOffset(year, dow, doy) { |
| 1334 |
var // first-week day -- which january is always in the first week (4 for iso, 1 for other) |
| 1335 |
fwd = 7 + dow - doy, |
| 1336 |
// first-week day local weekday -- which local weekday is fwd |
| 1337 |
fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7; |
| 1338 |
|
| 1339 |
return -fwdlw + fwd - 1; |
| 1340 |
} |
| 1341 |
|
| 1342 |
// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday |
| 1343 |
function dayOfYearFromWeeks(year, week, weekday, dow, doy) { |
| 1344 |
var localWeekday = (7 + weekday - dow) % 7, |
| 1345 |
weekOffset = firstWeekOffset(year, dow, doy), |
| 1346 |
dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, |
| 1347 |
resYear, |
| 1348 |
resDayOfYear; |
| 1349 |
|
| 1350 |
if (dayOfYear <= 0) { |
| 1351 |
resYear = year - 1; |
| 1352 |
resDayOfYear = daysInYear(resYear) + dayOfYear; |
| 1353 |
} else if (dayOfYear > daysInYear(year)) { |
| 1354 |
resYear = year + 1; |
| 1355 |
resDayOfYear = dayOfYear - daysInYear(year); |
| 1356 |
} else { |
| 1357 |
resYear = year; |
| 1358 |
resDayOfYear = dayOfYear; |
| 1359 |
} |
| 1360 |
|
| 1361 |
return { |
| 1362 |
year: resYear, |
| 1363 |
dayOfYear: resDayOfYear, |
| 1364 |
}; |
| 1365 |
} |
| 1366 |
|
| 1367 |
function weekOfYear(mom, dow, doy) { |
| 1368 |
var weekOffset = firstWeekOffset(mom.year(), dow, doy), |
| 1369 |
week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, |
| 1370 |
resWeek, |
| 1371 |
resYear; |
| 1372 |
|
| 1373 |
if (week < 1) { |
| 1374 |
resYear = mom.year() - 1; |
| 1375 |
resWeek = week + weeksInYear(resYear, dow, doy); |
| 1376 |
} else if (week > weeksInYear(mom.year(), dow, doy)) { |
| 1377 |
resWeek = week - weeksInYear(mom.year(), dow, doy); |
| 1378 |
resYear = mom.year() + 1; |
| 1379 |
} else { |
| 1380 |
resYear = mom.year(); |
| 1381 |
resWeek = week; |
| 1382 |
} |
| 1383 |
|
| 1384 |
return { |
| 1385 |
week: resWeek, |
| 1386 |
year: resYear, |
| 1387 |
}; |
| 1388 |
} |
| 1389 |
|
| 1390 |
function weeksInYear(year, dow, doy) { |
| 1391 |
var weekOffset = firstWeekOffset(year, dow, doy), |
| 1392 |
weekOffsetNext = firstWeekOffset(year + 1, dow, doy); |
| 1393 |
return (daysInYear(year) - weekOffset + weekOffsetNext) / 7; |
| 1394 |
} |
| 1395 |
|
| 1396 |
// FORMATTING |
| 1397 |
|
| 1398 |
addFormatToken('w', ['ww', 2], 'wo', 'week'); |
| 1399 |
addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek'); |
| 1400 |
|
| 1401 |
// ALIASES |
| 1402 |
|
| 1403 |
addUnitAlias('week', 'w'); |
| 1404 |
addUnitAlias('isoWeek', 'W'); |
| 1405 |
|
| 1406 |
// PRIORITIES |
| 1407 |
|
| 1408 |
addUnitPriority('week', 5); |
| 1409 |
addUnitPriority('isoWeek', 5); |
| 1410 |
|
| 1411 |
// PARSING |
| 1412 |
|
| 1413 |
addRegexToken('w', match1to2); |
| 1414 |
addRegexToken('ww', match1to2, match2); |
| 1415 |
addRegexToken('W', match1to2); |
| 1416 |
addRegexToken('WW', match1to2, match2); |
| 1417 |
|
| 1418 |
addWeekParseToken(['w', 'ww', 'W', 'WW'], function ( |
| 1419 |
input, |
| 1420 |
week, |
| 1421 |
config, |
| 1422 |
token |
| 1423 |
) { |
| 1424 |
week[token.substr(0, 1)] = toInt(input); |
| 1425 |
}); |
| 1426 |
|
| 1427 |
// HELPERS |
| 1428 |
|
| 1429 |
// LOCALES |
| 1430 |
|
| 1431 |
function localeWeek(mom) { |
| 1432 |
return weekOfYear(mom, this._week.dow, this._week.doy).week; |
| 1433 |
} |
| 1434 |
|
| 1435 |
var defaultLocaleWeek = { |
| 1436 |
dow: 0, // Sunday is the first day of the week. |
| 1437 |
doy: 6, // The week that contains Jan 6th is the first week of the year. |
| 1438 |
}; |
| 1439 |
|
| 1440 |
function localeFirstDayOfWeek() { |
| 1441 |
return this._week.dow; |
| 1442 |
} |
| 1443 |
|
| 1444 |
function localeFirstDayOfYear() { |
| 1445 |
return this._week.doy; |
| 1446 |
} |
| 1447 |
|
| 1448 |
// MOMENTS |
| 1449 |
|
| 1450 |
function getSetWeek(input) { |
| 1451 |
var week = this.localeData().week(this); |
| 1452 |
return input == null ? week : this.add((input - week) * 7, 'd'); |
| 1453 |
} |
| 1454 |
|
| 1455 |
function getSetISOWeek(input) { |
| 1456 |
var week = weekOfYear(this, 1, 4).week; |
| 1457 |
return input == null ? week : this.add((input - week) * 7, 'd'); |
| 1458 |
} |
| 1459 |
|
| 1460 |
// FORMATTING |
| 1461 |
|
| 1462 |
addFormatToken('d', 0, 'do', 'day'); |
| 1463 |
|
| 1464 |
addFormatToken('dd', 0, 0, function (format) { |
| 1465 |
return this.localeData().weekdaysMin(this, format); |
| 1466 |
}); |
| 1467 |
|
| 1468 |
addFormatToken('ddd', 0, 0, function (format) { |
| 1469 |
return this.localeData().weekdaysShort(this, format); |
| 1470 |
}); |
| 1471 |
|
| 1472 |
addFormatToken('dddd', 0, 0, function (format) { |
| 1473 |
return this.localeData().weekdays(this, format); |
| 1474 |
}); |
| 1475 |
|
| 1476 |
addFormatToken('e', 0, 0, 'weekday'); |
| 1477 |
addFormatToken('E', 0, 0, 'isoWeekday'); |
| 1478 |
|
| 1479 |
// ALIASES |
| 1480 |
|
| 1481 |
addUnitAlias('day', 'd'); |
| 1482 |
addUnitAlias('weekday', 'e'); |
| 1483 |
addUnitAlias('isoWeekday', 'E'); |
| 1484 |
|
| 1485 |
// PRIORITY |
| 1486 |
addUnitPriority('day', 11); |
| 1487 |
addUnitPriority('weekday', 11); |
| 1488 |
addUnitPriority('isoWeekday', 11); |
| 1489 |
|
| 1490 |
// PARSING |
| 1491 |
|
| 1492 |
addRegexToken('d', match1to2); |
| 1493 |
addRegexToken('e', match1to2); |
| 1494 |
addRegexToken('E', match1to2); |
| 1495 |
addRegexToken('dd', function (isStrict, locale) { |
| 1496 |
return locale.weekdaysMinRegex(isStrict); |
| 1497 |
}); |
| 1498 |
addRegexToken('ddd', function (isStrict, locale) { |
| 1499 |
return locale.weekdaysShortRegex(isStrict); |
| 1500 |
}); |
| 1501 |
addRegexToken('dddd', function (isStrict, locale) { |
| 1502 |
return locale.weekdaysRegex(isStrict); |
| 1503 |
}); |
| 1504 |
|
| 1505 |
addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) { |
| 1506 |
var weekday = config._locale.weekdaysParse(input, token, config._strict); |
| 1507 |
// if we didn't get a weekday name, mark the date as invalid |
| 1508 |
if (weekday != null) { |
| 1509 |
week.d = weekday; |
| 1510 |
} else { |
| 1511 |
getParsingFlags(config).invalidWeekday = input; |
| 1512 |
} |
| 1513 |
}); |
| 1514 |
|
| 1515 |
addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) { |
| 1516 |
week[token] = toInt(input); |
| 1517 |
}); |
| 1518 |
|
| 1519 |
// HELPERS |
| 1520 |
|
| 1521 |
function parseWeekday(input, locale) { |
| 1522 |
if (typeof input !== 'string') { |
| 1523 |
return input; |
| 1524 |
} |
| 1525 |
|
| 1526 |
if (!isNaN(input)) { |
| 1527 |
return parseInt(input, 10); |
| 1528 |
} |
| 1529 |
|
| 1530 |
input = locale.weekdaysParse(input); |
| 1531 |
if (typeof input === 'number') { |
| 1532 |
return input; |
| 1533 |
} |
| 1534 |
|
| 1535 |
return null; |
| 1536 |
} |
| 1537 |
|
| 1538 |
function parseIsoWeekday(input, locale) { |
| 1539 |
if (typeof input === 'string') { |
| 1540 |
return locale.weekdaysParse(input) % 7 || 7; |
| 1541 |
} |
| 1542 |
return isNaN(input) ? null : input; |
| 1543 |
} |
| 1544 |
|
| 1545 |
// LOCALES |
| 1546 |
function shiftWeekdays(ws, n) { |
| 1547 |
return ws.slice(n, 7).concat(ws.slice(0, n)); |
| 1548 |
} |
| 1549 |
|
| 1550 |
var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( |
| 1551 |
'_' |
| 1552 |
), |
| 1553 |
defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), |
| 1554 |
defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), |
| 1555 |
defaultWeekdaysRegex = matchWord, |
| 1556 |
defaultWeekdaysShortRegex = matchWord, |
| 1557 |
defaultWeekdaysMinRegex = matchWord; |
| 1558 |
|
| 1559 |
function localeWeekdays(m, format) { |
| 1560 |
var weekdays = isArray(this._weekdays) |
| 1561 |
? this._weekdays |
| 1562 |
: this._weekdays[ |
| 1563 |
m && m !== true && this._weekdays.isFormat.test(format) |
| 1564 |
? 'format' |
| 1565 |
: 'standalone' |
| 1566 |
]; |
| 1567 |
return m === true |
| 1568 |
? shiftWeekdays(weekdays, this._week.dow) |
| 1569 |
: m |
| 1570 |
? weekdays[m.day()] |
| 1571 |
: weekdays; |
| 1572 |
} |
| 1573 |
|
| 1574 |
function localeWeekdaysShort(m) { |
| 1575 |
return m === true |
| 1576 |
? shiftWeekdays(this._weekdaysShort, this._week.dow) |
| 1577 |
: m |
| 1578 |
? this._weekdaysShort[m.day()] |
| 1579 |
: this._weekdaysShort; |
| 1580 |
} |
| 1581 |
|
| 1582 |
function localeWeekdaysMin(m) { |
| 1583 |
return m === true |
| 1584 |
? shiftWeekdays(this._weekdaysMin, this._week.dow) |
| 1585 |
: m |
| 1586 |
? this._weekdaysMin[m.day()] |
| 1587 |
: this._weekdaysMin; |
| 1588 |
} |
| 1589 |
|
| 1590 |
function handleStrictParse$1(weekdayName, format, strict) { |
| 1591 |
var i, |
| 1592 |
ii, |
| 1593 |
mom, |
| 1594 |
llc = weekdayName.toLocaleLowerCase(); |
| 1595 |
if (!this._weekdaysParse) { |
| 1596 |
this._weekdaysParse = []; |
| 1597 |
this._shortWeekdaysParse = []; |
| 1598 |
this._minWeekdaysParse = []; |
| 1599 |
|
| 1600 |
for (i = 0; i < 7; ++i) { |
| 1601 |
mom = createUTC([2000, 1]).day(i); |
| 1602 |
this._minWeekdaysParse[i] = this.weekdaysMin( |
| 1603 |
mom, |
| 1604 |
'' |
| 1605 |
).toLocaleLowerCase(); |
| 1606 |
this._shortWeekdaysParse[i] = this.weekdaysShort( |
| 1607 |
mom, |
| 1608 |
'' |
| 1609 |
).toLocaleLowerCase(); |
| 1610 |
this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase(); |
| 1611 |
} |
| 1612 |
} |
| 1613 |
|
| 1614 |
if (strict) { |
| 1615 |
if (format === 'dddd') { |
| 1616 |
ii = indexOf.call(this._weekdaysParse, llc); |
| 1617 |
return ii !== -1 ? ii : null; |
| 1618 |
} else if (format === 'ddd') { |
| 1619 |
ii = indexOf.call(this._shortWeekdaysParse, llc); |
| 1620 |
return ii !== -1 ? ii : null; |
| 1621 |
} else { |
| 1622 |
ii = indexOf.call(this._minWeekdaysParse, llc); |
| 1623 |
return ii !== -1 ? ii : null; |
| 1624 |
} |
| 1625 |
} else { |
| 1626 |
if (format === 'dddd') { |
| 1627 |
ii = indexOf.call(this._weekdaysParse, llc); |
| 1628 |
if (ii !== -1) { |
| 1629 |
return ii; |
| 1630 |
} |
| 1631 |
ii = indexOf.call(this._shortWeekdaysParse, llc); |
| 1632 |
if (ii !== -1) { |
| 1633 |
return ii; |
| 1634 |
} |
| 1635 |
ii = indexOf.call(this._minWeekdaysParse, llc); |
| 1636 |
return ii !== -1 ? ii : null; |
| 1637 |
} else if (format === 'ddd') { |
| 1638 |
ii = indexOf.call(this._shortWeekdaysParse, llc); |
| 1639 |
if (ii !== -1) { |
| 1640 |
return ii; |
| 1641 |
} |
| 1642 |
ii = indexOf.call(this._weekdaysParse, llc); |
| 1643 |
if (ii !== -1) { |
| 1644 |
return ii; |
| 1645 |
} |
| 1646 |
ii = indexOf.call(this._minWeekdaysParse, llc); |
| 1647 |
return ii !== -1 ? ii : null; |
| 1648 |
} else { |
| 1649 |
ii = indexOf.call(this._minWeekdaysParse, llc); |
| 1650 |
if (ii !== -1) { |
| 1651 |
return ii; |
| 1652 |
} |
| 1653 |
ii = indexOf.call(this._weekdaysParse, llc); |
| 1654 |
if (ii !== -1) { |
| 1655 |
return ii; |
| 1656 |
} |
| 1657 |
ii = indexOf.call(this._shortWeekdaysParse, llc); |
| 1658 |
return ii !== -1 ? ii : null; |
| 1659 |
} |
| 1660 |
} |
| 1661 |
} |
| 1662 |
|
| 1663 |
function localeWeekdaysParse(weekdayName, format, strict) { |
| 1664 |
var i, mom, regex; |
| 1665 |
|
| 1666 |
if (this._weekdaysParseExact) { |
| 1667 |
return handleStrictParse$1.call(this, weekdayName, format, strict); |
| 1668 |
} |
| 1669 |
|
| 1670 |
if (!this._weekdaysParse) { |
| 1671 |
this._weekdaysParse = []; |
| 1672 |
this._minWeekdaysParse = []; |
| 1673 |
this._shortWeekdaysParse = []; |
| 1674 |
this._fullWeekdaysParse = []; |
| 1675 |
} |
| 1676 |
|
| 1677 |
for (i = 0; i < 7; i++) { |
| 1678 |
// make the regex if we don't have it already |
| 1679 |
|
| 1680 |
mom = createUTC([2000, 1]).day(i); |
| 1681 |
if (strict && !this._fullWeekdaysParse[i]) { |
| 1682 |
this._fullWeekdaysParse[i] = new RegExp( |
| 1683 |
'^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', |
| 1684 |
'i' |
| 1685 |
); |
| 1686 |
this._shortWeekdaysParse[i] = new RegExp( |
| 1687 |
'^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', |
| 1688 |
'i' |
| 1689 |
); |
| 1690 |
this._minWeekdaysParse[i] = new RegExp( |
| 1691 |
'^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', |
| 1692 |
'i' |
| 1693 |
); |
| 1694 |
} |
| 1695 |
if (!this._weekdaysParse[i]) { |
| 1696 |
regex = |
| 1697 |
'^' + |
| 1698 |
this.weekdays(mom, '') + |
| 1699 |
'|^' + |
| 1700 |
this.weekdaysShort(mom, '') + |
| 1701 |
'|^' + |
| 1702 |
this.weekdaysMin(mom, ''); |
| 1703 |
this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i'); |
| 1704 |
} |
| 1705 |
// test the regex |
| 1706 |
if ( |
| 1707 |
strict && |
| 1708 |
format === 'dddd' && |
| 1709 |
this._fullWeekdaysParse[i].test(weekdayName) |
| 1710 |
) { |
| 1711 |
return i; |
| 1712 |
} else if ( |
| 1713 |
strict && |
| 1714 |
format === 'ddd' && |
| 1715 |
this._shortWeekdaysParse[i].test(weekdayName) |
| 1716 |
) { |
| 1717 |
return i; |
| 1718 |
} else if ( |
| 1719 |
strict && |
| 1720 |
format === 'dd' && |
| 1721 |
this._minWeekdaysParse[i].test(weekdayName) |
| 1722 |
) { |
| 1723 |
return i; |
| 1724 |
} else if (!strict && this._weekdaysParse[i].test(weekdayName)) { |
| 1725 |
return i; |
| 1726 |
} |
| 1727 |
} |
| 1728 |
} |
| 1729 |
|
| 1730 |
// MOMENTS |
| 1731 |
|
| 1732 |
function getSetDayOfWeek(input) { |
| 1733 |
if (!this.isValid()) { |
| 1734 |
return input != null ? this : NaN; |
| 1735 |
} |
| 1736 |
var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); |
| 1737 |
if (input != null) { |
| 1738 |
input = parseWeekday(input, this.localeData()); |
| 1739 |
return this.add(input - day, 'd'); |
| 1740 |
} else { |
| 1741 |
return day; |
| 1742 |
} |
| 1743 |
} |
| 1744 |
|
| 1745 |
function getSetLocaleDayOfWeek(input) { |
| 1746 |
if (!this.isValid()) { |
| 1747 |
return input != null ? this : NaN; |
| 1748 |
} |
| 1749 |
var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; |
| 1750 |
return input == null ? weekday : this.add(input - weekday, 'd'); |
| 1751 |
} |
| 1752 |
|
| 1753 |
function getSetISODayOfWeek(input) { |
| 1754 |
if (!this.isValid()) { |
| 1755 |
return input != null ? this : NaN; |
| 1756 |
} |
| 1757 |
|
| 1758 |
// behaves the same as moment#day except |
| 1759 |
// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6) |
| 1760 |
// as a setter, sunday should belong to the previous week. |
| 1761 |
|
| 1762 |
if (input != null) { |
| 1763 |
var weekday = parseIsoWeekday(input, this.localeData()); |
| 1764 |
return this.day(this.day() % 7 ? weekday : weekday - 7); |
| 1765 |
} else { |
| 1766 |
return this.day() || 7; |
| 1767 |
} |
| 1768 |
} |
| 1769 |
|
| 1770 |
function weekdaysRegex(isStrict) { |
| 1771 |
if (this._weekdaysParseExact) { |
| 1772 |
if (!hasOwnProp(this, '_weekdaysRegex')) { |
| 1773 |
computeWeekdaysParse.call(this); |
| 1774 |
} |
| 1775 |
if (isStrict) { |
| 1776 |
return this._weekdaysStrictRegex; |
| 1777 |
} else { |
| 1778 |
return this._weekdaysRegex; |
| 1779 |
} |
| 1780 |
} else { |
| 1781 |
if (!hasOwnProp(this, '_weekdaysRegex')) { |
| 1782 |
this._weekdaysRegex = defaultWeekdaysRegex; |
| 1783 |
} |
| 1784 |
return this._weekdaysStrictRegex && isStrict |
| 1785 |
? this._weekdaysStrictRegex |
| 1786 |
: this._weekdaysRegex; |
| 1787 |
} |
| 1788 |
} |
| 1789 |
|
| 1790 |
function weekdaysShortRegex(isStrict) { |
| 1791 |
if (this._weekdaysParseExact) { |
| 1792 |
if (!hasOwnProp(this, '_weekdaysRegex')) { |
| 1793 |
computeWeekdaysParse.call(this); |
| 1794 |
} |
| 1795 |
if (isStrict) { |
| 1796 |
return this._weekdaysShortStrictRegex; |
| 1797 |
} else { |
| 1798 |
return this._weekdaysShortRegex; |
| 1799 |
} |
| 1800 |
} else { |
| 1801 |
if (!hasOwnProp(this, '_weekdaysShortRegex')) { |
| 1802 |
this._weekdaysShortRegex = defaultWeekdaysShortRegex; |
| 1803 |
} |
| 1804 |
return this._weekdaysShortStrictRegex && isStrict |
| 1805 |
? this._weekdaysShortStrictRegex |
| 1806 |
: this._weekdaysShortRegex; |
| 1807 |
} |
| 1808 |
} |
| 1809 |
|
| 1810 |
function weekdaysMinRegex(isStrict) { |
| 1811 |
if (this._weekdaysParseExact) { |
| 1812 |
if (!hasOwnProp(this, '_weekdaysRegex')) { |
| 1813 |
computeWeekdaysParse.call(this); |
| 1814 |
} |
| 1815 |
if (isStrict) { |
| 1816 |
return this._weekdaysMinStrictRegex; |
| 1817 |
} else { |
| 1818 |
return this._weekdaysMinRegex; |
| 1819 |
} |
| 1820 |
} else { |
| 1821 |
if (!hasOwnProp(this, '_weekdaysMinRegex')) { |
| 1822 |
this._weekdaysMinRegex = defaultWeekdaysMinRegex; |
| 1823 |
} |
| 1824 |
return this._weekdaysMinStrictRegex && isStrict |
| 1825 |
? this._weekdaysMinStrictRegex |
| 1826 |
: this._weekdaysMinRegex; |
| 1827 |
} |
| 1828 |
} |
| 1829 |
|
| 1830 |
function computeWeekdaysParse() { |
| 1831 |
function cmpLenRev(a, b) { |
| 1832 |
return b.length - a.length; |
| 1833 |
} |
| 1834 |
|
| 1835 |
var minPieces = [], |
| 1836 |
shortPieces = [], |
| 1837 |
longPieces = [], |
| 1838 |
mixedPieces = [], |
| 1839 |
i, |
| 1840 |
mom, |
| 1841 |
minp, |
| 1842 |
shortp, |
| 1843 |
longp; |
| 1844 |
for (i = 0; i < 7; i++) { |
| 1845 |
// make the regex if we don't have it already |
| 1846 |
mom = createUTC([2000, 1]).day(i); |
| 1847 |
minp = regexEscape(this.weekdaysMin(mom, '')); |
| 1848 |
shortp = regexEscape(this.weekdaysShort(mom, '')); |
| 1849 |
longp = regexEscape(this.weekdays(mom, '')); |
| 1850 |
minPieces.push(minp); |
| 1851 |
shortPieces.push(shortp); |
| 1852 |
longPieces.push(longp); |
| 1853 |
mixedPieces.push(minp); |
| 1854 |
mixedPieces.push(shortp); |
| 1855 |
mixedPieces.push(longp); |
| 1856 |
} |
| 1857 |
// Sorting makes sure if one weekday (or abbr) is a prefix of another it |
| 1858 |
// will match the longer piece. |
| 1859 |
minPieces.sort(cmpLenRev); |
| 1860 |
shortPieces.sort(cmpLenRev); |
| 1861 |
longPieces.sort(cmpLenRev); |
| 1862 |
mixedPieces.sort(cmpLenRev); |
| 1863 |
|
| 1864 |
this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); |
| 1865 |
this._weekdaysShortRegex = this._weekdaysRegex; |
| 1866 |
this._weekdaysMinRegex = this._weekdaysRegex; |
| 1867 |
|
| 1868 |
this._weekdaysStrictRegex = new RegExp( |
| 1869 |
'^(' + longPieces.join('|') + ')', |
| 1870 |
'i' |
| 1871 |
); |
| 1872 |
this._weekdaysShortStrictRegex = new RegExp( |
| 1873 |
'^(' + shortPieces.join('|') + ')', |
| 1874 |
'i' |
| 1875 |
); |
| 1876 |
this._weekdaysMinStrictRegex = new RegExp( |
| 1877 |
'^(' + minPieces.join('|') + ')', |
| 1878 |
'i' |
| 1879 |
); |
| 1880 |
} |
| 1881 |
|
| 1882 |
// FORMATTING |
| 1883 |
|
| 1884 |
function hFormat() { |
| 1885 |
return this.hours() % 12 || 12; |
| 1886 |
} |
| 1887 |
|
| 1888 |
function kFormat() { |
| 1889 |
return this.hours() || 24; |
| 1890 |
} |
| 1891 |
|
| 1892 |
addFormatToken('H', ['HH', 2], 0, 'hour'); |
| 1893 |
addFormatToken('h', ['hh', 2], 0, hFormat); |
| 1894 |
addFormatToken('k', ['kk', 2], 0, kFormat); |
| 1895 |
|
| 1896 |
addFormatToken('hmm', 0, 0, function () { |
| 1897 |
return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2); |
| 1898 |
}); |
| 1899 |
|
| 1900 |
addFormatToken('hmmss', 0, 0, function () { |
| 1901 |
return ( |
| 1902 |
'' + |
| 1903 |
hFormat.apply(this) + |
| 1904 |
zeroFill(this.minutes(), 2) + |
| 1905 |
zeroFill(this.seconds(), 2) |
| 1906 |
); |
| 1907 |
}); |
| 1908 |
|
| 1909 |
addFormatToken('Hmm', 0, 0, function () { |
| 1910 |
return '' + this.hours() + zeroFill(this.minutes(), 2); |
| 1911 |
}); |
| 1912 |
|
| 1913 |
addFormatToken('Hmmss', 0, 0, function () { |
| 1914 |
return ( |
| 1915 |
'' + |
| 1916 |
this.hours() + |
| 1917 |
zeroFill(this.minutes(), 2) + |
| 1918 |
zeroFill(this.seconds(), 2) |
| 1919 |
); |
| 1920 |
}); |
| 1921 |
|
| 1922 |
function meridiem(token, lowercase) { |
| 1923 |
addFormatToken(token, 0, 0, function () { |
| 1924 |
return this.localeData().meridiem( |
| 1925 |
this.hours(), |
| 1926 |
this.minutes(), |
| 1927 |
lowercase |
| 1928 |
); |
| 1929 |
}); |
| 1930 |
} |
| 1931 |
|
| 1932 |
meridiem('a', true); |
| 1933 |
meridiem('A', false); |
| 1934 |
|
| 1935 |
// ALIASES |
| 1936 |
|
| 1937 |
addUnitAlias('hour', 'h'); |
| 1938 |
|
| 1939 |
// PRIORITY |
| 1940 |
addUnitPriority('hour', 13); |
| 1941 |
|
| 1942 |
// PARSING |
| 1943 |
|
| 1944 |
function matchMeridiem(isStrict, locale) { |
| 1945 |
return locale._meridiemParse; |
| 1946 |
} |
| 1947 |
|
| 1948 |
addRegexToken('a', matchMeridiem); |
| 1949 |
addRegexToken('A', matchMeridiem); |
| 1950 |
addRegexToken('H', match1to2); |
| 1951 |
addRegexToken('h', match1to2); |
| 1952 |
addRegexToken('k', match1to2); |
| 1953 |
addRegexToken('HH', match1to2, match2); |
| 1954 |
addRegexToken('hh', match1to2, match2); |
| 1955 |
addRegexToken('kk', match1to2, match2); |
| 1956 |
|
| 1957 |
addRegexToken('hmm', match3to4); |
| 1958 |
addRegexToken('hmmss', match5to6); |
| 1959 |
addRegexToken('Hmm', match3to4); |
| 1960 |
addRegexToken('Hmmss', match5to6); |
| 1961 |
|
| 1962 |
addParseToken(['H', 'HH'], HOUR); |
| 1963 |
addParseToken(['k', 'kk'], function (input, array, config) { |
| 1964 |
var kInput = toInt(input); |
| 1965 |
array[HOUR] = kInput === 24 ? 0 : kInput; |
| 1966 |
}); |
| 1967 |
addParseToken(['a', 'A'], function (input, array, config) { |
| 1968 |
config._isPm = config._locale.isPM(input); |
| 1969 |
config._meridiem = input; |
| 1970 |
}); |
| 1971 |
addParseToken(['h', 'hh'], function (input, array, config) { |
| 1972 |
array[HOUR] = toInt(input); |
| 1973 |
getParsingFlags(config).bigHour = true; |
| 1974 |
}); |
| 1975 |
addParseToken('hmm', function (input, array, config) { |
| 1976 |
var pos = input.length - 2; |
| 1977 |
array[HOUR] = toInt(input.substr(0, pos)); |
| 1978 |
array[MINUTE] = toInt(input.substr(pos)); |
| 1979 |
getParsingFlags(config).bigHour = true; |
| 1980 |
}); |
| 1981 |
addParseToken('hmmss', function (input, array, config) { |
| 1982 |
var pos1 = input.length - 4, |
| 1983 |
pos2 = input.length - 2; |
| 1984 |
array[HOUR] = toInt(input.substr(0, pos1)); |
| 1985 |
array[MINUTE] = toInt(input.substr(pos1, 2)); |
| 1986 |
array[SECOND] = toInt(input.substr(pos2)); |
| 1987 |
getParsingFlags(config).bigHour = true; |
| 1988 |
}); |
| 1989 |
addParseToken('Hmm', function (input, array, config) { |
| 1990 |
var pos = input.length - 2; |
| 1991 |
array[HOUR] = toInt(input.substr(0, pos)); |
| 1992 |
array[MINUTE] = toInt(input.substr(pos)); |
| 1993 |
}); |
| 1994 |
addParseToken('Hmmss', function (input, array, config) { |
| 1995 |
var pos1 = input.length - 4, |
| 1996 |
pos2 = input.length - 2; |
| 1997 |
array[HOUR] = toInt(input.substr(0, pos1)); |
| 1998 |
array[MINUTE] = toInt(input.substr(pos1, 2)); |
| 1999 |
array[SECOND] = toInt(input.substr(pos2)); |
| 2000 |
}); |
| 2001 |
|
| 2002 |
// LOCALES |
| 2003 |
|
| 2004 |
function localeIsPM(input) { |
| 2005 |
// IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays |
| 2006 |
// Using charAt should be more compatible. |
| 2007 |
return (input + '').toLowerCase().charAt(0) === 'p'; |
| 2008 |
} |
| 2009 |
|
| 2010 |
var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i, |
| 2011 |
// Setting the hour should keep the time, because the user explicitly |
| 2012 |
// specified which hour they want. So trying to maintain the same hour (in |
| 2013 |
// a new timezone) makes sense. Adding/subtracting hours does not follow |
| 2014 |
// this rule. |
| 2015 |
getSetHour = makeGetSet('Hours', true); |
| 2016 |
|
| 2017 |
function localeMeridiem(hours, minutes, isLower) { |
| 2018 |
if (hours > 11) { |
| 2019 |
return isLower ? 'pm' : 'PM'; |
| 2020 |
} else { |
| 2021 |
return isLower ? 'am' : 'AM'; |
| 2022 |
} |
| 2023 |
} |
| 2024 |
|
| 2025 |
var baseConfig = { |
| 2026 |
calendar: defaultCalendar, |
| 2027 |
longDateFormat: defaultLongDateFormat, |
| 2028 |
invalidDate: defaultInvalidDate, |
| 2029 |
ordinal: defaultOrdinal, |
| 2030 |
dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse, |
| 2031 |
relativeTime: defaultRelativeTime, |
| 2032 |
|
| 2033 |
months: defaultLocaleMonths, |
| 2034 |
monthsShort: defaultLocaleMonthsShort, |
| 2035 |
|
| 2036 |
week: defaultLocaleWeek, |
| 2037 |
|
| 2038 |
weekdays: defaultLocaleWeekdays, |
| 2039 |
weekdaysMin: defaultLocaleWeekdaysMin, |
| 2040 |
weekdaysShort: defaultLocaleWeekdaysShort, |
| 2041 |
|
| 2042 |
meridiemParse: defaultLocaleMeridiemParse, |
| 2043 |
}; |
| 2044 |
|
| 2045 |
// internal storage for locale config files |
| 2046 |
var locales = {}, |
| 2047 |
localeFamilies = {}, |
| 2048 |
globalLocale; |
| 2049 |
|
| 2050 |
function commonPrefix(arr1, arr2) { |
| 2051 |
var i, |
| 2052 |
minl = Math.min(arr1.length, arr2.length); |
| 2053 |
for (i = 0; i < minl; i += 1) { |
| 2054 |
if (arr1[i] !== arr2[i]) { |
| 2055 |
return i; |
| 2056 |
} |
| 2057 |
} |
| 2058 |
return minl; |
| 2059 |
} |
| 2060 |
|
| 2061 |
function normalizeLocale(key) { |
| 2062 |
return key ? key.toLowerCase().replace('_', '-') : key; |
| 2063 |
} |
| 2064 |
|
| 2065 |
// pick the locale from the array |
| 2066 |
// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each |
| 2067 |
// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root |
| 2068 |
function chooseLocale(names) { |
| 2069 |
var i = 0, |
| 2070 |
j, |
| 2071 |
next, |
| 2072 |
locale, |
| 2073 |
split; |
| 2074 |
|
| 2075 |
while (i < names.length) { |
| 2076 |
split = normalizeLocale(names[i]).split('-'); |
| 2077 |
j = split.length; |
| 2078 |
next = normalizeLocale(names[i + 1]); |
| 2079 |
next = next ? next.split('-') : null; |
| 2080 |
while (j > 0) { |
| 2081 |
locale = loadLocale(split.slice(0, j).join('-')); |
| 2082 |
if (locale) { |
| 2083 |
return locale; |
| 2084 |
} |
| 2085 |
if ( |
| 2086 |
next && |
| 2087 |
next.length >= j && |
| 2088 |
commonPrefix(split, next) >= j - 1 |
| 2089 |
) { |
| 2090 |
//the next array item is better than a shallower substring of this one |
| 2091 |
break; |
| 2092 |
} |
| 2093 |
j--; |
| 2094 |
} |
| 2095 |
i++; |
| 2096 |
} |
| 2097 |
return globalLocale; |
| 2098 |
} |
| 2099 |
|
| 2100 |
function loadLocale(name) { |
| 2101 |
var oldLocale = null, |
| 2102 |
aliasedRequire; |
| 2103 |
// TODO: Find a better way to register and load all the locales in Node |
| 2104 |
if ( |
| 2105 |
locales[name] === undefined && |
| 2106 |
typeof module !== 'undefined' && |
| 2107 |
module && |
| 2108 |
module.exports |
| 2109 |
) { |
| 2110 |
try { |
| 2111 |
oldLocale = globalLocale._abbr; |
| 2112 |
aliasedRequire = require; |
| 2113 |
aliasedRequire('./locale/' + name); |
| 2114 |
getSetGlobalLocale(oldLocale); |
| 2115 |
} catch (e) { |
| 2116 |
// mark as not found to avoid repeating expensive file require call causing high CPU |
| 2117 |
// when trying to find en-US, en_US, en-us for every format call |
| 2118 |
locales[name] = null; // null means not found |
| 2119 |
} |
| 2120 |
} |
| 2121 |
return locales[name]; |
| 2122 |
} |
| 2123 |
|
| 2124 |
// This function will load locale and then set the global locale. If |
| 2125 |
// no arguments are passed in, it will simply return the current global |
| 2126 |
// locale key. |
| 2127 |
function getSetGlobalLocale(key, values) { |
| 2128 |
var data; |
| 2129 |
if (key) { |
| 2130 |
if (isUndefined(values)) { |
| 2131 |
data = getLocale(key); |
| 2132 |
} else { |
| 2133 |
data = defineLocale(key, values); |
| 2134 |
} |
| 2135 |
|
| 2136 |
if (data) { |
| 2137 |
// moment.duration._locale = moment._locale = data; |
| 2138 |
globalLocale = data; |
| 2139 |
} else { |
| 2140 |
if (typeof console !== 'undefined' && console.warn) { |
| 2141 |
//warn user if arguments are passed but the locale could not be set |
| 2142 |
console.warn( |
| 2143 |
'Locale ' + key + ' not found. Did you forget to load it?' |
| 2144 |
); |
| 2145 |
} |
| 2146 |
} |
| 2147 |
} |
| 2148 |
|
| 2149 |
return globalLocale._abbr; |
| 2150 |
} |
| 2151 |
|
| 2152 |
function defineLocale(name, config) { |
| 2153 |
if (config !== null) { |
| 2154 |
var locale, |
| 2155 |
parentConfig = baseConfig; |
| 2156 |
config.abbr = name; |
| 2157 |
if (locales[name] != null) { |
| 2158 |
deprecateSimple( |
| 2159 |
'defineLocaleOverride', |
| 2160 |
'use moment.updateLocale(localeName, config) to change ' + |
| 2161 |
'an existing locale. moment.defineLocale(localeName, ' + |
| 2162 |
'config) should only be used for creating a new locale ' + |
| 2163 |
'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.' |
| 2164 |
); |
| 2165 |
parentConfig = locales[name]._config; |
| 2166 |
} else if (config.parentLocale != null) { |
| 2167 |
if (locales[config.parentLocale] != null) { |
| 2168 |
parentConfig = locales[config.parentLocale]._config; |
| 2169 |
} else { |
| 2170 |
locale = loadLocale(config.parentLocale); |
| 2171 |
if (locale != null) { |
| 2172 |
parentConfig = locale._config; |
| 2173 |
} else { |
| 2174 |
if (!localeFamilies[config.parentLocale]) { |
| 2175 |
localeFamilies[config.parentLocale] = []; |
| 2176 |
} |
| 2177 |
localeFamilies[config.parentLocale].push({ |
| 2178 |
name: name, |
| 2179 |
config: config, |
| 2180 |
}); |
| 2181 |
return null; |
| 2182 |
} |
| 2183 |
} |
| 2184 |
} |
| 2185 |
locales[name] = new Locale(mergeConfigs(parentConfig, config)); |
| 2186 |
|
| 2187 |
if (localeFamilies[name]) { |
| 2188 |
localeFamilies[name].forEach(function (x) { |
| 2189 |
defineLocale(x.name, x.config); |
| 2190 |
}); |
| 2191 |
} |
| 2192 |
|
| 2193 |
// backwards compat for now: also set the locale |
| 2194 |
// make sure we set the locale AFTER all child locales have been |
| 2195 |
// created, so we won't end up with the child locale set. |
| 2196 |
getSetGlobalLocale(name); |
| 2197 |
|
| 2198 |
return locales[name]; |
| 2199 |
} else { |
| 2200 |
// useful for testing |
| 2201 |
delete locales[name]; |
| 2202 |
return null; |
| 2203 |
} |
| 2204 |
} |
| 2205 |
|
| 2206 |
function updateLocale(name, config) { |
| 2207 |
if (config != null) { |
| 2208 |
var locale, |
| 2209 |
tmpLocale, |
| 2210 |
parentConfig = baseConfig; |
| 2211 |
|
| 2212 |
if (locales[name] != null && locales[name].parentLocale != null) { |
| 2213 |
// Update existing child locale in-place to avoid memory-leaks |
| 2214 |
locales[name].set(mergeConfigs(locales[name]._config, config)); |
| 2215 |
} else { |
| 2216 |
// MERGE |
| 2217 |
tmpLocale = loadLocale(name); |
| 2218 |
if (tmpLocale != null) { |
| 2219 |
parentConfig = tmpLocale._config; |
| 2220 |
} |
| 2221 |
config = mergeConfigs(parentConfig, config); |
| 2222 |
if (tmpLocale == null) { |
| 2223 |
// updateLocale is called for creating a new locale |
| 2224 |
// Set abbr so it will have a name (getters return |
| 2225 |
// undefined otherwise). |
| 2226 |
config.abbr = name; |
| 2227 |
} |
| 2228 |
locale = new Locale(config); |
| 2229 |
locale.parentLocale = locales[name]; |
| 2230 |
locales[name] = locale; |
| 2231 |
} |
| 2232 |
|
| 2233 |
// backwards compat for now: also set the locale |
| 2234 |
getSetGlobalLocale(name); |
| 2235 |
} else { |
| 2236 |
// pass null for config to unupdate, useful for tests |
| 2237 |
if (locales[name] != null) { |
| 2238 |
if (locales[name].parentLocale != null) { |
| 2239 |
locales[name] = locales[name].parentLocale; |
| 2240 |
if (name === getSetGlobalLocale()) { |
| 2241 |
getSetGlobalLocale(name); |
| 2242 |
} |
| 2243 |
} else if (locales[name] != null) { |
| 2244 |
delete locales[name]; |
| 2245 |
} |
| 2246 |
} |
| 2247 |
} |
| 2248 |
return locales[name]; |
| 2249 |
} |
| 2250 |
|
| 2251 |
// returns locale data |
| 2252 |
function getLocale(key) { |
| 2253 |
var locale; |
| 2254 |
|
| 2255 |
if (key && key._locale && key._locale._abbr) { |
| 2256 |
key = key._locale._abbr; |
| 2257 |
} |
| 2258 |
|
| 2259 |
if (!key) { |
| 2260 |
return globalLocale; |
| 2261 |
} |
| 2262 |
|
| 2263 |
if (!isArray(key)) { |
| 2264 |
//short-circuit everything else |
| 2265 |
locale = loadLocale(key); |
| 2266 |
if (locale) { |
| 2267 |
return locale; |
| 2268 |
} |
| 2269 |
key = [key]; |
| 2270 |
} |
| 2271 |
|
| 2272 |
return chooseLocale(key); |
| 2273 |
} |
| 2274 |
|
| 2275 |
function listLocales() { |
| 2276 |
return keys(locales); |
| 2277 |
} |
| 2278 |
|
| 2279 |
function checkOverflow(m) { |
| 2280 |
var overflow, |
| 2281 |
a = m._a; |
| 2282 |
|
| 2283 |
if (a && getParsingFlags(m).overflow === -2) { |
| 2284 |
overflow = |
| 2285 |
a[MONTH] < 0 || a[MONTH] > 11 |
| 2286 |
? MONTH |
| 2287 |
: a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) |
| 2288 |
? DATE |
| 2289 |
: a[HOUR] < 0 || |
| 2290 |
a[HOUR] > 24 || |
| 2291 |
(a[HOUR] === 24 && |
| 2292 |
(a[MINUTE] !== 0 || |
| 2293 |
a[SECOND] !== 0 || |
| 2294 |
a[MILLISECOND] !== 0)) |
| 2295 |
? HOUR |
| 2296 |
: a[MINUTE] < 0 || a[MINUTE] > 59 |
| 2297 |
? MINUTE |
| 2298 |
: a[SECOND] < 0 || a[SECOND] > 59 |
| 2299 |
? SECOND |
| 2300 |
: a[MILLISECOND] < 0 || a[MILLISECOND] > 999 |
| 2301 |
? MILLISECOND |
| 2302 |
: -1; |
| 2303 |
|
| 2304 |
if ( |
| 2305 |
getParsingFlags(m)._overflowDayOfYear && |
| 2306 |
(overflow < YEAR || overflow > DATE) |
| 2307 |
) { |
| 2308 |
overflow = DATE; |
| 2309 |
} |
| 2310 |
if (getParsingFlags(m)._overflowWeeks && overflow === -1) { |
| 2311 |
overflow = WEEK; |
| 2312 |
} |
| 2313 |
if (getParsingFlags(m)._overflowWeekday && overflow === -1) { |
| 2314 |
overflow = WEEKDAY; |
| 2315 |
} |
| 2316 |
|
| 2317 |
getParsingFlags(m).overflow = overflow; |
| 2318 |
} |
| 2319 |
|
| 2320 |
return m; |
| 2321 |
} |
| 2322 |
|
| 2323 |
// iso 8601 regex |
| 2324 |
// 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) |
| 2325 |
var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, |
| 2326 |
basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, |
| 2327 |
tzRegex = /Z|[+-]\d\d(?::?\d\d)?/, |
| 2328 |
isoDates = [ |
| 2329 |
['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], |
| 2330 |
['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], |
| 2331 |
['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], |
| 2332 |
['GGGG-[W]WW', /\d{4}-W\d\d/, false], |
| 2333 |
['YYYY-DDD', /\d{4}-\d{3}/], |
| 2334 |
['YYYY-MM', /\d{4}-\d\d/, false], |
| 2335 |
['YYYYYYMMDD', /[+-]\d{10}/], |
| 2336 |
['YYYYMMDD', /\d{8}/], |
| 2337 |
['GGGG[W]WWE', /\d{4}W\d{3}/], |
| 2338 |
['GGGG[W]WW', /\d{4}W\d{2}/, false], |
| 2339 |
['YYYYDDD', /\d{7}/], |
| 2340 |
['YYYYMM', /\d{6}/, false], |
| 2341 |
['YYYY', /\d{4}/, false], |
| 2342 |
], |
| 2343 |
// iso time formats and regexes |
| 2344 |
isoTimes = [ |
| 2345 |
['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], |
| 2346 |
['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], |
| 2347 |
['HH:mm:ss', /\d\d:\d\d:\d\d/], |
| 2348 |
['HH:mm', /\d\d:\d\d/], |
| 2349 |
['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], |
| 2350 |
['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], |
| 2351 |
['HHmmss', /\d\d\d\d\d\d/], |
| 2352 |
['HHmm', /\d\d\d\d/], |
| 2353 |
['HH', /\d\d/], |
| 2354 |
], |
| 2355 |
aspNetJsonRegex = /^\/?Date\((-?\d+)/i, |
| 2356 |
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3 |
| 2357 |
rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, |
| 2358 |
obsOffsets = { |
| 2359 |
UT: 0, |
| 2360 |
GMT: 0, |
| 2361 |
EDT: -4 * 60, |
| 2362 |
EST: -5 * 60, |
| 2363 |
CDT: -5 * 60, |
| 2364 |
CST: -6 * 60, |
| 2365 |
MDT: -6 * 60, |
| 2366 |
MST: -7 * 60, |
| 2367 |
PDT: -7 * 60, |
| 2368 |
PST: -8 * 60, |
| 2369 |
}; |
| 2370 |
|
| 2371 |
// date from iso format |
| 2372 |
function configFromISO(config) { |
| 2373 |
var i, |
| 2374 |
l, |
| 2375 |
string = config._i, |
| 2376 |
match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), |
| 2377 |
allowTime, |
| 2378 |
dateFormat, |
| 2379 |
timeFormat, |
| 2380 |
tzFormat; |
| 2381 |
|
| 2382 |
if (match) { |
| 2383 |
getParsingFlags(config).iso = true; |
| 2384 |
|
| 2385 |
for (i = 0, l = isoDates.length; i < l; i++) { |
| 2386 |
if (isoDates[i][1].exec(match[1])) { |
| 2387 |
dateFormat = isoDates[i][0]; |
| 2388 |
allowTime = isoDates[i][2] !== false; |
| 2389 |
break; |
| 2390 |
} |
| 2391 |
} |
| 2392 |
if (dateFormat == null) { |
| 2393 |
config._isValid = false; |
| 2394 |
return; |
| 2395 |
} |
| 2396 |
if (match[3]) { |
| 2397 |
for (i = 0, l = isoTimes.length; i < l; i++) { |
| 2398 |
if (isoTimes[i][1].exec(match[3])) { |
| 2399 |
// match[2] should be 'T' or space |
| 2400 |
timeFormat = (match[2] || ' ') + isoTimes[i][0]; |
| 2401 |
break; |
| 2402 |
} |
| 2403 |
} |
| 2404 |
if (timeFormat == null) { |
| 2405 |
config._isValid = false; |
| 2406 |
return; |
| 2407 |
} |
| 2408 |
} |
| 2409 |
if (!allowTime && timeFormat != null) { |
| 2410 |
config._isValid = false; |
| 2411 |
return; |
| 2412 |
} |
| 2413 |
if (match[4]) { |
| 2414 |
if (tzRegex.exec(match[4])) { |
| 2415 |
tzFormat = 'Z'; |
| 2416 |
} else { |
| 2417 |
config._isValid = false; |
| 2418 |
return; |
| 2419 |
} |
| 2420 |
} |
| 2421 |
config._f = dateFormat + (timeFormat || '') + (tzFormat || ''); |
| 2422 |
configFromStringAndFormat(config); |
| 2423 |
} else { |
| 2424 |
config._isValid = false; |
| 2425 |
} |
| 2426 |
} |
| 2427 |
|
| 2428 |
function extractFromRFC2822Strings( |
| 2429 |
yearStr, |
| 2430 |
monthStr, |
| 2431 |
dayStr, |
| 2432 |
hourStr, |
| 2433 |
minuteStr, |
| 2434 |
secondStr |
| 2435 |
) { |
| 2436 |
var result = [ |
| 2437 |
untruncateYear(yearStr), |
| 2438 |
defaultLocaleMonthsShort.indexOf(monthStr), |
| 2439 |
parseInt(dayStr, 10), |
| 2440 |
parseInt(hourStr, 10), |
| 2441 |
parseInt(minuteStr, 10), |
| 2442 |
]; |
| 2443 |
|
| 2444 |
if (secondStr) { |
| 2445 |
result.push(parseInt(secondStr, 10)); |
| 2446 |
} |
| 2447 |
|
| 2448 |
return result; |
| 2449 |
} |
| 2450 |
|
| 2451 |
function untruncateYear(yearStr) { |
| 2452 |
var year = parseInt(yearStr, 10); |
| 2453 |
if (year <= 49) { |
| 2454 |
return 2000 + year; |
| 2455 |
} else if (year <= 999) { |
| 2456 |
return 1900 + year; |
| 2457 |
} |
| 2458 |
return year; |
| 2459 |
} |
| 2460 |
|
| 2461 |
function preprocessRFC2822(s) { |
| 2462 |
// Remove comments and folding whitespace and replace multiple-spaces with a single space |
| 2463 |
return s |
| 2464 |
.replace(/\([^)]*\)|[\n\t]/g, ' ') |
| 2465 |
.replace(/(\s\s+)/g, ' ') |
| 2466 |
.replace(/^\s\s*/, '') |
| 2467 |
.replace(/\s\s*$/, ''); |
| 2468 |
} |
| 2469 |
|
| 2470 |
function checkWeekday(weekdayStr, parsedInput, config) { |
| 2471 |
if (weekdayStr) { |
| 2472 |
// TODO: Replace the vanilla JS Date object with an independent day-of-week check. |
| 2473 |
var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr), |
| 2474 |
weekdayActual = new Date( |
| 2475 |
parsedInput[0], |
| 2476 |
parsedInput[1], |
| 2477 |
parsedInput[2] |
| 2478 |
).getDay(); |
| 2479 |
if (weekdayProvided !== weekdayActual) { |
| 2480 |
getParsingFlags(config).weekdayMismatch = true; |
| 2481 |
config._isValid = false; |
| 2482 |
return false; |
| 2483 |
} |
| 2484 |
} |
| 2485 |
return true; |
| 2486 |
} |
| 2487 |
|
| 2488 |
function calculateOffset(obsOffset, militaryOffset, numOffset) { |
| 2489 |
if (obsOffset) { |
| 2490 |
return obsOffsets[obsOffset]; |
| 2491 |
} else if (militaryOffset) { |
| 2492 |
// the only allowed military tz is Z |
| 2493 |
return 0; |
| 2494 |
} else { |
| 2495 |
var hm = parseInt(numOffset, 10), |
| 2496 |
m = hm % 100, |
| 2497 |
h = (hm - m) / 100; |
| 2498 |
return h * 60 + m; |
| 2499 |
} |
| 2500 |
} |
| 2501 |
|
| 2502 |
// date and time from ref 2822 format |
| 2503 |
function configFromRFC2822(config) { |
| 2504 |
var match = rfc2822.exec(preprocessRFC2822(config._i)), |
| 2505 |
parsedArray; |
| 2506 |
if (match) { |
| 2507 |
parsedArray = extractFromRFC2822Strings( |
| 2508 |
match[4], |
| 2509 |
match[3], |
| 2510 |
match[2], |
| 2511 |
match[5], |
| 2512 |
match[6], |
| 2513 |
match[7] |
| 2514 |
); |
| 2515 |
if (!checkWeekday(match[1], parsedArray, config)) { |
| 2516 |
return; |
| 2517 |
} |
| 2518 |
|
| 2519 |
config._a = parsedArray; |
| 2520 |
config._tzm = calculateOffset(match[8], match[9], match[10]); |
| 2521 |
|
| 2522 |
config._d = createUTCDate.apply(null, config._a); |
| 2523 |
config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); |
| 2524 |
|
| 2525 |
getParsingFlags(config).rfc2822 = true; |
| 2526 |
} else { |
| 2527 |
config._isValid = false; |
| 2528 |
} |
| 2529 |
} |
| 2530 |
|
| 2531 |
// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict |
| 2532 |
function configFromString(config) { |
| 2533 |
var matched = aspNetJsonRegex.exec(config._i); |
| 2534 |
if (matched !== null) { |
| 2535 |
config._d = new Date(+matched[1]); |
| 2536 |
return; |
| 2537 |
} |
| 2538 |
|
| 2539 |
configFromISO(config); |
| 2540 |
if (config._isValid === false) { |
| 2541 |
delete config._isValid; |
| 2542 |
} else { |
| 2543 |
return; |
| 2544 |
} |
| 2545 |
|
| 2546 |
configFromRFC2822(config); |
| 2547 |
if (config._isValid === false) { |
| 2548 |
delete config._isValid; |
| 2549 |
} else { |
| 2550 |
return; |
| 2551 |
} |
| 2552 |
|
| 2553 |
if (config._strict) { |
| 2554 |
config._isValid = false; |
| 2555 |
} else { |
| 2556 |
// Final attempt, use Input Fallback |
| 2557 |
hooks.createFromInputFallback(config); |
| 2558 |
} |
| 2559 |
} |
| 2560 |
|
| 2561 |
hooks.createFromInputFallback = deprecate( |
| 2562 |
'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' + |
| 2563 |
'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' + |
| 2564 |
'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.', |
| 2565 |
function (config) { |
| 2566 |
config._d = new Date(config._i + (config._useUTC ? ' UTC' : '')); |
| 2567 |
} |
| 2568 |
); |
| 2569 |
|
| 2570 |
// Pick the first defined of two or three arguments. |
| 2571 |
function defaults(a, b, c) { |
| 2572 |
if (a != null) { |
| 2573 |
return a; |
| 2574 |
} |
| 2575 |
if (b != null) { |
| 2576 |
return b; |
| 2577 |
} |
| 2578 |
return c; |
| 2579 |
} |
| 2580 |
|
| 2581 |
function currentDateArray(config) { |
| 2582 |
// hooks is actually the exported moment object |
| 2583 |
var nowValue = new Date(hooks.now()); |
| 2584 |
if (config._useUTC) { |
| 2585 |
return [ |
| 2586 |
nowValue.getUTCFullYear(), |
| 2587 |
nowValue.getUTCMonth(), |
| 2588 |
nowValue.getUTCDate(), |
| 2589 |
]; |
| 2590 |
} |
| 2591 |
return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()]; |
| 2592 |
} |
| 2593 |
|
| 2594 |
// convert an array to a date. |
| 2595 |
// the array should mirror the parameters below |
| 2596 |
// note: all values past the year are optional and will default to the lowest possible value. |
| 2597 |
// [year, month, day , hour, minute, second, millisecond] |
| 2598 |
function configFromArray(config) { |
| 2599 |
var i, |
| 2600 |
date, |
| 2601 |
input = [], |
| 2602 |
currentDate, |
| 2603 |
expectedWeekday, |
| 2604 |
yearToUse; |
| 2605 |
|
| 2606 |
if (config._d) { |
| 2607 |
return; |
| 2608 |
} |
| 2609 |
|
| 2610 |
currentDate = currentDateArray(config); |
| 2611 |
|
| 2612 |
//compute day of the year from weeks and weekdays |
| 2613 |
if (config._w && config._a[DATE] == null && config._a[MONTH] == null) { |
| 2614 |
dayOfYearFromWeekInfo(config); |
| 2615 |
} |
| 2616 |
|
| 2617 |
//if the day of the year is set, figure out what it is |
| 2618 |
if (config._dayOfYear != null) { |
| 2619 |
yearToUse = defaults(config._a[YEAR], currentDate[YEAR]); |
| 2620 |
|
| 2621 |
if ( |
| 2622 |
config._dayOfYear > daysInYear(yearToUse) || |
| 2623 |
config._dayOfYear === 0 |
| 2624 |
) { |
| 2625 |
getParsingFlags(config)._overflowDayOfYear = true; |
| 2626 |
} |
| 2627 |
|
| 2628 |
date = createUTCDate(yearToUse, 0, config._dayOfYear); |
| 2629 |
config._a[MONTH] = date.getUTCMonth(); |
| 2630 |
config._a[DATE] = date.getUTCDate(); |
| 2631 |
} |
| 2632 |
|
| 2633 |
// Default to current date. |
| 2634 |
// * if no year, month, day of month are given, default to today |
| 2635 |
// * if day of month is given, default month and year |
| 2636 |
// * if month is given, default only year |
| 2637 |
// * if year is given, don't default anything |
| 2638 |
for (i = 0; i < 3 && config._a[i] == null; ++i) { |
| 2639 |
config._a[i] = input[i] = currentDate[i]; |
| 2640 |
} |
| 2641 |
|
| 2642 |
// Zero out whatever was not defaulted, including time |
| 2643 |
for (; i < 7; i++) { |
| 2644 |
config._a[i] = input[i] = |
| 2645 |
config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i]; |
| 2646 |
} |
| 2647 |
|
| 2648 |
// Check for 24:00:00.000 |
| 2649 |
if ( |
| 2650 |
config._a[HOUR] === 24 && |
| 2651 |
config._a[MINUTE] === 0 && |
| 2652 |
config._a[SECOND] === 0 && |
| 2653 |
config._a[MILLISECOND] === 0 |
| 2654 |
) { |
| 2655 |
config._nextDay = true; |
| 2656 |
config._a[HOUR] = 0; |
| 2657 |
} |
| 2658 |
|
| 2659 |
config._d = (config._useUTC ? createUTCDate : createDate).apply( |
| 2660 |
null, |
| 2661 |
input |
| 2662 |
); |
| 2663 |
expectedWeekday = config._useUTC |
| 2664 |
? config._d.getUTCDay() |
| 2665 |
: config._d.getDay(); |
| 2666 |
|
| 2667 |
// Apply timezone offset from input. The actual utcOffset can be changed |
| 2668 |
// with parseZone. |
| 2669 |
if (config._tzm != null) { |
| 2670 |
config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); |
| 2671 |
} |
| 2672 |
|
| 2673 |
if (config._nextDay) { |
| 2674 |
config._a[HOUR] = 24; |
| 2675 |
} |
| 2676 |
|
| 2677 |
// check for mismatching day of week |
| 2678 |
if ( |
| 2679 |
config._w && |
| 2680 |
typeof config._w.d !== 'undefined' && |
| 2681 |
config._w.d !== expectedWeekday |
| 2682 |
) { |
| 2683 |
getParsingFlags(config).weekdayMismatch = true; |
| 2684 |
} |
| 2685 |
} |
| 2686 |
|
| 2687 |
function dayOfYearFromWeekInfo(config) { |
| 2688 |
var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek; |
| 2689 |
|
| 2690 |
w = config._w; |
| 2691 |
if (w.GG != null || w.W != null || w.E != null) { |
| 2692 |
dow = 1; |
| 2693 |
doy = 4; |
| 2694 |
|
| 2695 |
// TODO: We need to take the current isoWeekYear, but that depends on |
| 2696 |
// how we interpret now (local, utc, fixed offset). So create |
| 2697 |
// a now version of current config (take local/utc/offset flags, and |
| 2698 |
// create now). |
| 2699 |
weekYear = defaults( |
| 2700 |
w.GG, |
| 2701 |
config._a[YEAR], |
| 2702 |
weekOfYear(createLocal(), 1, 4).year |
| 2703 |
); |
| 2704 |
week = defaults(w.W, 1); |
| 2705 |
weekday = defaults(w.E, 1); |
| 2706 |
if (weekday < 1 || weekday > 7) { |
| 2707 |
weekdayOverflow = true; |
| 2708 |
} |
| 2709 |
} else { |
| 2710 |
dow = config._locale._week.dow; |
| 2711 |
doy = config._locale._week.doy; |
| 2712 |
|
| 2713 |
curWeek = weekOfYear(createLocal(), dow, doy); |
| 2714 |
|
| 2715 |
weekYear = defaults(w.gg, config._a[YEAR], curWeek.year); |
| 2716 |
|
| 2717 |
// Default to current week. |
| 2718 |
week = defaults(w.w, curWeek.week); |
| 2719 |
|
| 2720 |
if (w.d != null) { |
| 2721 |
// weekday -- low day numbers are considered next week |
| 2722 |
weekday = w.d; |
| 2723 |
if (weekday < 0 || weekday > 6) { |
| 2724 |
weekdayOverflow = true; |
| 2725 |
} |
| 2726 |
} else if (w.e != null) { |
| 2727 |
// local weekday -- counting starts from beginning of week |
| 2728 |
weekday = w.e + dow; |
| 2729 |
if (w.e < 0 || w.e > 6) { |
| 2730 |
weekdayOverflow = true; |
| 2731 |
} |
| 2732 |
} else { |
| 2733 |
// default to beginning of week |
| 2734 |
weekday = dow; |
| 2735 |
} |
| 2736 |
} |
| 2737 |
if (week < 1 || week > weeksInYear(weekYear, dow, doy)) { |
| 2738 |
getParsingFlags(config)._overflowWeeks = true; |
| 2739 |
} else if (weekdayOverflow != null) { |
| 2740 |
getParsingFlags(config)._overflowWeekday = true; |
| 2741 |
} else { |
| 2742 |
temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy); |
| 2743 |
config._a[YEAR] = temp.year; |
| 2744 |
config._dayOfYear = temp.dayOfYear; |
| 2745 |
} |
| 2746 |
} |
| 2747 |
|
| 2748 |
// constant that refers to the ISO standard |
| 2749 |
hooks.ISO_8601 = function () {}; |
| 2750 |
|
| 2751 |
// constant that refers to the RFC 2822 form |
| 2752 |
hooks.RFC_2822 = function () {}; |
| 2753 |
|
| 2754 |
// date from string and format string |
| 2755 |
function configFromStringAndFormat(config) { |
| 2756 |
// TODO: Move this to another part of the creation flow to prevent circular deps |
| 2757 |
if (config._f === hooks.ISO_8601) { |
| 2758 |
configFromISO(config); |
| 2759 |
return; |
| 2760 |
} |
| 2761 |
if (config._f === hooks.RFC_2822) { |
| 2762 |
configFromRFC2822(config); |
| 2763 |
return; |
| 2764 |
} |
| 2765 |
config._a = []; |
| 2766 |
getParsingFlags(config).empty = true; |
| 2767 |
|
| 2768 |
// This array is used to make a Date, either with `new Date` or `Date.UTC` |
| 2769 |
var string = '' + config._i, |
| 2770 |
i, |
| 2771 |
parsedInput, |
| 2772 |
tokens, |
| 2773 |
token, |
| 2774 |
skipped, |
| 2775 |
stringLength = string.length, |
| 2776 |
totalParsedInputLength = 0, |
| 2777 |
era; |
| 2778 |
|
| 2779 |
tokens = |
| 2780 |
expandFormat(config._f, config._locale).match(formattingTokens) || []; |
| 2781 |
|
| 2782 |
for (i = 0; i < tokens.length; i++) { |
| 2783 |
token = tokens[i]; |
| 2784 |
parsedInput = (string.match(getParseRegexForToken(token, config)) || |
| 2785 |
[])[0]; |
| 2786 |
if (parsedInput) { |
| 2787 |
skipped = string.substr(0, string.indexOf(parsedInput)); |
| 2788 |
if (skipped.length > 0) { |
| 2789 |
getParsingFlags(config).unusedInput.push(skipped); |
| 2790 |
} |
| 2791 |
string = string.slice( |
| 2792 |
string.indexOf(parsedInput) + parsedInput.length |
| 2793 |
); |
| 2794 |
totalParsedInputLength += parsedInput.length; |
| 2795 |
} |
| 2796 |
// don't parse if it's not a known token |
| 2797 |
if (formatTokenFunctions[token]) { |
| 2798 |
if (parsedInput) { |
| 2799 |
getParsingFlags(config).empty = false; |
| 2800 |
} else { |
| 2801 |
getParsingFlags(config).unusedTokens.push(token); |
| 2802 |
} |
| 2803 |
addTimeToArrayFromToken(token, parsedInput, config); |
| 2804 |
} else if (config._strict && !parsedInput) { |
| 2805 |
getParsingFlags(config).unusedTokens.push(token); |
| 2806 |
} |
| 2807 |
} |
| 2808 |
|
| 2809 |
// add remaining unparsed input length to the string |
| 2810 |
getParsingFlags(config).charsLeftOver = |
| 2811 |
stringLength - totalParsedInputLength; |
| 2812 |
if (string.length > 0) { |
| 2813 |
getParsingFlags(config).unusedInput.push(string); |
| 2814 |
} |
| 2815 |
|
| 2816 |
// clear _12h flag if hour is <= 12 |
| 2817 |
if ( |
| 2818 |
config._a[HOUR] <= 12 && |
| 2819 |
getParsingFlags(config).bigHour === true && |
| 2820 |
config._a[HOUR] > 0 |
| 2821 |
) { |
| 2822 |
getParsingFlags(config).bigHour = undefined; |
| 2823 |
} |
| 2824 |
|
| 2825 |
getParsingFlags(config).parsedDateParts = config._a.slice(0); |
| 2826 |
getParsingFlags(config).meridiem = config._meridiem; |
| 2827 |
// handle meridiem |
| 2828 |
config._a[HOUR] = meridiemFixWrap( |
| 2829 |
config._locale, |
| 2830 |
config._a[HOUR], |
| 2831 |
config._meridiem |
| 2832 |
); |
| 2833 |
|
| 2834 |
// handle era |
| 2835 |
era = getParsingFlags(config).era; |
| 2836 |
if (era !== null) { |
| 2837 |
config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]); |
| 2838 |
} |
| 2839 |
|
| 2840 |
configFromArray(config); |
| 2841 |
checkOverflow(config); |
| 2842 |
} |
| 2843 |
|
| 2844 |
function meridiemFixWrap(locale, hour, meridiem) { |
| 2845 |
var isPm; |
| 2846 |
|
| 2847 |
if (meridiem == null) { |
| 2848 |
// nothing to do |
| 2849 |
return hour; |
| 2850 |
} |
| 2851 |
if (locale.meridiemHour != null) { |
| 2852 |
return locale.meridiemHour(hour, meridiem); |
| 2853 |
} else if (locale.isPM != null) { |
| 2854 |
// Fallback |
| 2855 |
isPm = locale.isPM(meridiem); |
| 2856 |
if (isPm && hour < 12) { |
| 2857 |
hour += 12; |
| 2858 |
} |
| 2859 |
if (!isPm && hour === 12) { |
| 2860 |
hour = 0; |
| 2861 |
} |
| 2862 |
return hour; |
| 2863 |
} else { |
| 2864 |
// this is not supposed to happen |
| 2865 |
return hour; |
| 2866 |
} |
| 2867 |
} |
| 2868 |
|
| 2869 |
// date from string and array of format strings |
| 2870 |
function configFromStringAndArray(config) { |
| 2871 |
var tempConfig, |
| 2872 |
bestMoment, |
| 2873 |
scoreToBeat, |
| 2874 |
i, |
| 2875 |
currentScore, |
| 2876 |
validFormatFound, |
| 2877 |
bestFormatIsValid = false; |
| 2878 |
|
| 2879 |
if (config._f.length === 0) { |
| 2880 |
getParsingFlags(config).invalidFormat = true; |
| 2881 |
config._d = new Date(NaN); |
| 2882 |
return; |
| 2883 |
} |
| 2884 |
|
| 2885 |
for (i = 0; i < config._f.length; i++) { |
| 2886 |
currentScore = 0; |
| 2887 |
validFormatFound = false; |
| 2888 |
tempConfig = copyConfig({}, config); |
| 2889 |
if (config._useUTC != null) { |
| 2890 |
tempConfig._useUTC = config._useUTC; |
| 2891 |
} |
| 2892 |
tempConfig._f = config._f[i]; |
| 2893 |
configFromStringAndFormat(tempConfig); |
| 2894 |
|
| 2895 |
if (isValid(tempConfig)) { |
| 2896 |
validFormatFound = true; |
| 2897 |
} |
| 2898 |
|
| 2899 |
// if there is any input that was not parsed add a penalty for that format |
| 2900 |
currentScore += getParsingFlags(tempConfig).charsLeftOver; |
| 2901 |
|
| 2902 |
//or tokens |
| 2903 |
currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10; |
| 2904 |
|
| 2905 |
getParsingFlags(tempConfig).score = currentScore; |
| 2906 |
|
| 2907 |
if (!bestFormatIsValid) { |
| 2908 |
if ( |
| 2909 |
scoreToBeat == null || |
| 2910 |
currentScore < scoreToBeat || |
| 2911 |
validFormatFound |
| 2912 |
) { |
| 2913 |
scoreToBeat = currentScore; |
| 2914 |
bestMoment = tempConfig; |
| 2915 |
if (validFormatFound) { |
| 2916 |
bestFormatIsValid = true; |
| 2917 |
} |
| 2918 |
} |
| 2919 |
} else { |
| 2920 |
if (currentScore < scoreToBeat) { |
| 2921 |
scoreToBeat = currentScore; |
| 2922 |
bestMoment = tempConfig; |
| 2923 |
} |
| 2924 |
} |
| 2925 |
} |
| 2926 |
|
| 2927 |
extend(config, bestMoment || tempConfig); |
| 2928 |
} |
| 2929 |
|
| 2930 |
function configFromObject(config) { |
| 2931 |
if (config._d) { |
| 2932 |
return; |
| 2933 |
} |
| 2934 |
|
| 2935 |
var i = normalizeObjectUnits(config._i), |
| 2936 |
dayOrDate = i.day === undefined ? i.date : i.day; |
| 2937 |
config._a = map( |
| 2938 |
[i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond], |
| 2939 |
function (obj) { |
| 2940 |
return obj && parseInt(obj, 10); |
| 2941 |
} |
| 2942 |
); |
| 2943 |
|
| 2944 |
configFromArray(config); |
| 2945 |
} |
| 2946 |
|
| 2947 |
function createFromConfig(config) { |
| 2948 |
var res = new Moment(checkOverflow(prepareConfig(config))); |
| 2949 |
if (res._nextDay) { |
| 2950 |
// Adding is smart enough around DST |
| 2951 |
res.add(1, 'd'); |
| 2952 |
res._nextDay = undefined; |
| 2953 |
} |
| 2954 |
|
| 2955 |
return res; |
| 2956 |
} |
| 2957 |
|
| 2958 |
function prepareConfig(config) { |
| 2959 |
var input = config._i, |
| 2960 |
format = config._f; |
| 2961 |
|
| 2962 |
config._locale = config._locale || getLocale(config._l); |
| 2963 |
|
| 2964 |
if (input === null || (format === undefined && input === '')) { |
| 2965 |
return createInvalid({ nullInput: true }); |
| 2966 |
} |
| 2967 |
|
| 2968 |
if (typeof input === 'string') { |
| 2969 |
config._i = input = config._locale.preparse(input); |
| 2970 |
} |
| 2971 |
|
| 2972 |
if (isMoment(input)) { |
| 2973 |
return new Moment(checkOverflow(input)); |
| 2974 |
} else if (isDate(input)) { |
| 2975 |
config._d = input; |
| 2976 |
} else if (isArray(format)) { |
| 2977 |
configFromStringAndArray(config); |
| 2978 |
} else if (format) { |
| 2979 |
configFromStringAndFormat(config); |
| 2980 |
} else { |
| 2981 |
configFromInput(config); |
| 2982 |
} |
| 2983 |
|
| 2984 |
if (!isValid(config)) { |
| 2985 |
config._d = null; |
| 2986 |
} |
| 2987 |
|
| 2988 |
return config; |
| 2989 |
} |
| 2990 |
|
| 2991 |
function configFromInput(config) { |
| 2992 |
var input = config._i; |
| 2993 |
if (isUndefined(input)) { |
| 2994 |
config._d = new Date(hooks.now()); |
| 2995 |
} else if (isDate(input)) { |
| 2996 |
config._d = new Date(input.valueOf()); |
| 2997 |
} else if (typeof input === 'string') { |
| 2998 |
configFromString(config); |
| 2999 |
} else if (isArray(input)) { |
| 3000 |
config._a = map(input.slice(0), function (obj) { |
| 3001 |
return parseInt(obj, 10); |
| 3002 |
}); |
| 3003 |
configFromArray(config); |
| 3004 |
} else if (isObject(input)) { |
| 3005 |
configFromObject(config); |
| 3006 |
} else if (isNumber(input)) { |
| 3007 |
// from milliseconds |
| 3008 |
config._d = new Date(input); |
| 3009 |
} else { |
| 3010 |
hooks.createFromInputFallback(config); |
| 3011 |
} |
| 3012 |
} |
| 3013 |
|
| 3014 |
function createLocalOrUTC(input, format, locale, strict, isUTC) { |
| 3015 |
var c = {}; |
| 3016 |
|
| 3017 |
if (format === true || format === false) { |
| 3018 |
strict = format; |
| 3019 |
format = undefined; |
| 3020 |
} |
| 3021 |
|
| 3022 |
if (locale === true || locale === false) { |
| 3023 |
strict = locale; |
| 3024 |
locale = undefined; |
| 3025 |
} |
| 3026 |
|
| 3027 |
if ( |
| 3028 |
(isObject(input) && isObjectEmpty(input)) || |
| 3029 |
(isArray(input) && input.length === 0) |
| 3030 |
) { |
| 3031 |
input = undefined; |
| 3032 |
} |
| 3033 |
// object construction must be done this way. |
| 3034 |
// https://github.com/moment/moment/issues/1423 |
| 3035 |
c._isAMomentObject = true; |
| 3036 |
c._useUTC = c._isUTC = isUTC; |
| 3037 |
c._l = locale; |
| 3038 |
c._i = input; |
| 3039 |
c._f = format; |
| 3040 |
c._strict = strict; |
| 3041 |
|
| 3042 |
return createFromConfig(c); |
| 3043 |
} |
| 3044 |
|
| 3045 |
function createLocal(input, format, locale, strict) { |
| 3046 |
return createLocalOrUTC(input, format, locale, strict, false); |
| 3047 |
} |
| 3048 |
|
| 3049 |
var prototypeMin = deprecate( |
| 3050 |
'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', |
| 3051 |
function () { |
| 3052 |
var other = createLocal.apply(null, arguments); |
| 3053 |
if (this.isValid() && other.isValid()) { |
| 3054 |
return other < this ? this : other; |
| 3055 |
} else { |
| 3056 |
return createInvalid(); |
| 3057 |
} |
| 3058 |
} |
| 3059 |
), |
| 3060 |
prototypeMax = deprecate( |
| 3061 |
'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', |
| 3062 |
function () { |
| 3063 |
var other = createLocal.apply(null, arguments); |
| 3064 |
if (this.isValid() && other.isValid()) { |
| 3065 |
return other > this ? this : other; |
| 3066 |
} else { |
| 3067 |
return createInvalid(); |
| 3068 |
} |
| 3069 |
} |
| 3070 |
); |
| 3071 |
|
| 3072 |
// Pick a moment m from moments so that m[fn](other) is true for all |
| 3073 |
// other. This relies on the function fn to be transitive. |
| 3074 |
// |
| 3075 |
// moments should either be an array of moment objects or an array, whose |
| 3076 |
// first element is an array of moment objects. |
| 3077 |
function pickBy(fn, moments) { |
| 3078 |
var res, i; |
| 3079 |
if (moments.length === 1 && isArray(moments[0])) { |
| 3080 |
moments = moments[0]; |
| 3081 |
} |
| 3082 |
if (!moments.length) { |
| 3083 |
return createLocal(); |
| 3084 |
} |
| 3085 |
res = moments[0]; |
| 3086 |
for (i = 1; i < moments.length; ++i) { |
| 3087 |
if (!moments[i].isValid() || moments[i][fn](res)) { |
| 3088 |
res = moments[i]; |
| 3089 |
} |
| 3090 |
} |
| 3091 |
return res; |
| 3092 |
} |
| 3093 |
|
| 3094 |
// TODO: Use [].sort instead? |
| 3095 |
function min() { |
| 3096 |
var args = [].slice.call(arguments, 0); |
| 3097 |
|
| 3098 |
return pickBy('isBefore', args); |
| 3099 |
} |
| 3100 |
|
| 3101 |
function max() { |
| 3102 |
var args = [].slice.call(arguments, 0); |
| 3103 |
|
| 3104 |
return pickBy('isAfter', args); |
| 3105 |
} |
| 3106 |
|
| 3107 |
var now = function () { |
| 3108 |
return Date.now ? Date.now() : +new Date(); |
| 3109 |
}; |
| 3110 |
|
| 3111 |
var ordering = [ |
| 3112 |
'year', |
| 3113 |
'quarter', |
| 3114 |
'month', |
| 3115 |
'week', |
| 3116 |
'day', |
| 3117 |
'hour', |
| 3118 |
'minute', |
| 3119 |
'second', |
| 3120 |
'millisecond', |
| 3121 |
]; |
| 3122 |
|
| 3123 |
function isDurationValid(m) { |
| 3124 |
var key, |
| 3125 |
unitHasDecimal = false, |
| 3126 |
i; |
| 3127 |
for (key in m) { |
| 3128 |
if ( |
| 3129 |
hasOwnProp(m, key) && |
| 3130 |
!( |
| 3131 |
indexOf.call(ordering, key) !== -1 && |
| 3132 |
(m[key] == null || !isNaN(m[key])) |
| 3133 |
) |
| 3134 |
) { |
| 3135 |
return false; |
| 3136 |
} |
| 3137 |
} |
| 3138 |
|
| 3139 |
for (i = 0; i < ordering.length; ++i) { |
| 3140 |
if (m[ordering[i]]) { |
| 3141 |
if (unitHasDecimal) { |
| 3142 |
return false; // only allow non-integers for smallest unit |
| 3143 |
} |
| 3144 |
if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) { |
| 3145 |
unitHasDecimal = true; |
| 3146 |
} |
| 3147 |
} |
| 3148 |
} |
| 3149 |
|
| 3150 |
return true; |
| 3151 |
} |
| 3152 |
|
| 3153 |
function isValid$1() { |
| 3154 |
return this._isValid; |
| 3155 |
} |
| 3156 |
|
| 3157 |
function createInvalid$1() { |
| 3158 |
return createDuration(NaN); |
| 3159 |
} |
| 3160 |
|
| 3161 |
function Duration(duration) { |
| 3162 |
var normalizedInput = normalizeObjectUnits(duration), |
| 3163 |
years = normalizedInput.year || 0, |
| 3164 |
quarters = normalizedInput.quarter || 0, |
| 3165 |
months = normalizedInput.month || 0, |
| 3166 |
weeks = normalizedInput.week || normalizedInput.isoWeek || 0, |
| 3167 |
days = normalizedInput.day || 0, |
| 3168 |
hours = normalizedInput.hour || 0, |
| 3169 |
minutes = normalizedInput.minute || 0, |
| 3170 |
seconds = normalizedInput.second || 0, |
| 3171 |
milliseconds = normalizedInput.millisecond || 0; |
| 3172 |
|
| 3173 |
this._isValid = isDurationValid(normalizedInput); |
| 3174 |
|
| 3175 |
// representation for dateAddRemove |
| 3176 |
this._milliseconds = |
| 3177 |
+milliseconds + |
| 3178 |
seconds * 1e3 + // 1000 |
| 3179 |
minutes * 6e4 + // 1000 * 60 |
| 3180 |
hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978 |
| 3181 |
// Because of dateAddRemove treats 24 hours as different from a |
| 3182 |
// day when working around DST, we need to store them separately |
| 3183 |
this._days = +days + weeks * 7; |
| 3184 |
// It is impossible to translate months into days without knowing |
| 3185 |
// which months you are are talking about, so we have to store |
| 3186 |
// it separately. |
| 3187 |
this._months = +months + quarters * 3 + years * 12; |
| 3188 |
|
| 3189 |
this._data = {}; |
| 3190 |
|
| 3191 |
this._locale = getLocale(); |
| 3192 |
|
| 3193 |
this._bubble(); |
| 3194 |
} |
| 3195 |
|
| 3196 |
function isDuration(obj) { |
| 3197 |
return obj instanceof Duration; |
| 3198 |
} |
| 3199 |
|
| 3200 |
function absRound(number) { |
| 3201 |
if (number < 0) { |
| 3202 |
return Math.round(-1 * number) * -1; |
| 3203 |
} else { |
| 3204 |
return Math.round(number); |
| 3205 |
} |
| 3206 |
} |
| 3207 |
|
| 3208 |
// compare two arrays, return the number of differences |
| 3209 |
function compareArrays(array1, array2, dontConvert) { |
| 3210 |
var len = Math.min(array1.length, array2.length), |
| 3211 |
lengthDiff = Math.abs(array1.length - array2.length), |
| 3212 |
diffs = 0, |
| 3213 |
i; |
| 3214 |
for (i = 0; i < len; i++) { |
| 3215 |
if ( |
| 3216 |
(dontConvert && array1[i] !== array2[i]) || |
| 3217 |
(!dontConvert && toInt(array1[i]) !== toInt(array2[i])) |
| 3218 |
) { |
| 3219 |
diffs++; |
| 3220 |
} |
| 3221 |
} |
| 3222 |
return diffs + lengthDiff; |
| 3223 |
} |
| 3224 |
|
| 3225 |
// FORMATTING |
| 3226 |
|
| 3227 |
function offset(token, separator) { |
| 3228 |
addFormatToken(token, 0, 0, function () { |
| 3229 |
var offset = this.utcOffset(), |
| 3230 |
sign = '+'; |
| 3231 |
if (offset < 0) { |
| 3232 |
offset = -offset; |
| 3233 |
sign = '-'; |
| 3234 |
} |
| 3235 |
return ( |
| 3236 |
sign + |
| 3237 |
zeroFill(~~(offset / 60), 2) + |
| 3238 |
separator + |
| 3239 |
zeroFill(~~offset % 60, 2) |
| 3240 |
); |
| 3241 |
}); |
| 3242 |
} |
| 3243 |
|
| 3244 |
offset('Z', ':'); |
| 3245 |
offset('ZZ', ''); |
| 3246 |
|
| 3247 |
// PARSING |
| 3248 |
|
| 3249 |
addRegexToken('Z', matchShortOffset); |
| 3250 |
addRegexToken('ZZ', matchShortOffset); |
| 3251 |
addParseToken(['Z', 'ZZ'], function (input, array, config) { |
| 3252 |
config._useUTC = true; |
| 3253 |
config._tzm = offsetFromString(matchShortOffset, input); |
| 3254 |
}); |
| 3255 |
|
| 3256 |
// HELPERS |
| 3257 |
|
| 3258 |
// timezone chunker |
| 3259 |
// '+10:00' > ['10', '00'] |
| 3260 |
// '-1530' > ['-15', '30'] |
| 3261 |
var chunkOffset = /([\+\-]|\d\d)/gi; |
| 3262 |
|
| 3263 |
function offsetFromString(matcher, string) { |
| 3264 |
var matches = (string || '').match(matcher), |
| 3265 |
chunk, |
| 3266 |
parts, |
| 3267 |
minutes; |
| 3268 |
|
| 3269 |
if (matches === null) { |
| 3270 |
return null; |
| 3271 |
} |
| 3272 |
|
| 3273 |
chunk = matches[matches.length - 1] || []; |
| 3274 |
parts = (chunk + '').match(chunkOffset) || ['-', 0, 0]; |
| 3275 |
minutes = +(parts[1] * 60) + toInt(parts[2]); |
| 3276 |
|
| 3277 |
return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes; |
| 3278 |
} |
| 3279 |
|
| 3280 |
// Return a moment from input, that is local/utc/zone equivalent to model. |
| 3281 |
function cloneWithOffset(input, model) { |
| 3282 |
var res, diff; |
| 3283 |
if (model._isUTC) { |
| 3284 |
res = model.clone(); |
| 3285 |
diff = |
| 3286 |
(isMoment(input) || isDate(input) |
| 3287 |
? input.valueOf() |
| 3288 |
: createLocal(input).valueOf()) - res.valueOf(); |
| 3289 |
// Use low-level api, because this fn is low-level api. |
| 3290 |
res._d.setTime(res._d.valueOf() + diff); |
| 3291 |
hooks.updateOffset(res, false); |
| 3292 |
return res; |
| 3293 |
} else { |
| 3294 |
return createLocal(input).local(); |
| 3295 |
} |
| 3296 |
} |
| 3297 |
|
| 3298 |
function getDateOffset(m) { |
| 3299 |
// On Firefox.24 Date#getTimezoneOffset returns a floating point. |
| 3300 |
// https://github.com/moment/moment/pull/1871 |
| 3301 |
return -Math.round(m._d.getTimezoneOffset()); |
| 3302 |
} |
| 3303 |
|
| 3304 |
// HOOKS |
| 3305 |
|
| 3306 |
// This function will be called whenever a moment is mutated. |
| 3307 |
// It is intended to keep the offset in sync with the timezone. |
| 3308 |
hooks.updateOffset = function () {}; |
| 3309 |
|
| 3310 |
// MOMENTS |
| 3311 |
|
| 3312 |
// keepLocalTime = true means only change the timezone, without |
| 3313 |
// affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]--> |
| 3314 |
// 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset |
| 3315 |
// +0200, so we adjust the time as needed, to be valid. |
| 3316 |
// |
| 3317 |
// Keeping the time actually adds/subtracts (one hour) |
| 3318 |
// from the actual represented time. That is why we call updateOffset |
| 3319 |
// a second time. In case it wants us to change the offset again |
| 3320 |
// _changeInProgress == true case, then we have to adjust, because |
| 3321 |
// there is no such time in the given timezone. |
| 3322 |
function getSetOffset(input, keepLocalTime, keepMinutes) { |
| 3323 |
var offset = this._offset || 0, |
| 3324 |
localAdjust; |
| 3325 |
if (!this.isValid()) { |
| 3326 |
return input != null ? this : NaN; |
| 3327 |
} |
| 3328 |
if (input != null) { |
| 3329 |
if (typeof input === 'string') { |
| 3330 |
input = offsetFromString(matchShortOffset, input); |
| 3331 |
if (input === null) { |
| 3332 |
return this; |
| 3333 |
} |
| 3334 |
} else if (Math.abs(input) < 16 && !keepMinutes) { |
| 3335 |
input = input * 60; |
| 3336 |
} |
| 3337 |
if (!this._isUTC && keepLocalTime) { |
| 3338 |
localAdjust = getDateOffset(this); |
| 3339 |
} |
| 3340 |
this._offset = input; |
| 3341 |
this._isUTC = true; |
| 3342 |
if (localAdjust != null) { |
| 3343 |
this.add(localAdjust, 'm'); |
| 3344 |
} |
| 3345 |
if (offset !== input) { |
| 3346 |
if (!keepLocalTime || this._changeInProgress) { |
| 3347 |
addSubtract( |
| 3348 |
this, |
| 3349 |
createDuration(input - offset, 'm'), |
| 3350 |
1, |
| 3351 |
false |
| 3352 |
); |
| 3353 |
} else if (!this._changeInProgress) { |
| 3354 |
this._changeInProgress = true; |
| 3355 |
hooks.updateOffset(this, true); |
| 3356 |
this._changeInProgress = null; |
| 3357 |
} |
| 3358 |
} |
| 3359 |
return this; |
| 3360 |
} else { |
| 3361 |
return this._isUTC ? offset : getDateOffset(this); |
| 3362 |
} |
| 3363 |
} |
| 3364 |
|
| 3365 |
function getSetZone(input, keepLocalTime) { |
| 3366 |
if (input != null) { |
| 3367 |
if (typeof input !== 'string') { |
| 3368 |
input = -input; |
| 3369 |
} |
| 3370 |
|
| 3371 |
this.utcOffset(input, keepLocalTime); |
| 3372 |
|
| 3373 |
return this; |
| 3374 |
} else { |
| 3375 |
return -this.utcOffset(); |
| 3376 |
} |
| 3377 |
} |
| 3378 |
|
| 3379 |
function setOffsetToUTC(keepLocalTime) { |
| 3380 |
return this.utcOffset(0, keepLocalTime); |
| 3381 |
} |
| 3382 |
|
| 3383 |
function setOffsetToLocal(keepLocalTime) { |
| 3384 |
if (this._isUTC) { |
| 3385 |
this.utcOffset(0, keepLocalTime); |
| 3386 |
this._isUTC = false; |
| 3387 |
|
| 3388 |
if (keepLocalTime) { |
| 3389 |
this.subtract(getDateOffset(this), 'm'); |
| 3390 |
} |
| 3391 |
} |
| 3392 |
return this; |
| 3393 |
} |
| 3394 |
|
| 3395 |
function setOffsetToParsedOffset() { |
| 3396 |
if (this._tzm != null) { |
| 3397 |
this.utcOffset(this._tzm, false, true); |
| 3398 |
} else if (typeof this._i === 'string') { |
| 3399 |
var tZone = offsetFromString(matchOffset, this._i); |
| 3400 |
if (tZone != null) { |
| 3401 |
this.utcOffset(tZone); |
| 3402 |
} else { |
| 3403 |
this.utcOffset(0, true); |
| 3404 |
} |
| 3405 |
} |
| 3406 |
return this; |
| 3407 |
} |
| 3408 |
|
| 3409 |
function hasAlignedHourOffset(input) { |
| 3410 |
if (!this.isValid()) { |
| 3411 |
return false; |
| 3412 |
} |
| 3413 |
input = input ? createLocal(input).utcOffset() : 0; |
| 3414 |
|
| 3415 |
return (this.utcOffset() - input) % 60 === 0; |
| 3416 |
} |
| 3417 |
|
| 3418 |
function isDaylightSavingTime() { |
| 3419 |
return ( |
| 3420 |
this.utcOffset() > this.clone().month(0).utcOffset() || |
| 3421 |
this.utcOffset() > this.clone().month(5).utcOffset() |
| 3422 |
); |
| 3423 |
} |
| 3424 |
|
| 3425 |
function isDaylightSavingTimeShifted() { |
| 3426 |
if (!isUndefined(this._isDSTShifted)) { |
| 3427 |
return this._isDSTShifted; |
| 3428 |
} |
| 3429 |
|
| 3430 |
var c = {}, |
| 3431 |
other; |
| 3432 |
|
| 3433 |
copyConfig(c, this); |
| 3434 |
c = prepareConfig(c); |
| 3435 |
|
| 3436 |
if (c._a) { |
| 3437 |
other = c._isUTC ? createUTC(c._a) : createLocal(c._a); |
| 3438 |
this._isDSTShifted = |
| 3439 |
this.isValid() && compareArrays(c._a, other.toArray()) > 0; |
| 3440 |
} else { |
| 3441 |
this._isDSTShifted = false; |
| 3442 |
} |
| 3443 |
|
| 3444 |
return this._isDSTShifted; |
| 3445 |
} |
| 3446 |
|
| 3447 |
function isLocal() { |
| 3448 |
return this.isValid() ? !this._isUTC : false; |
| 3449 |
} |
| 3450 |
|
| 3451 |
function isUtcOffset() { |
| 3452 |
return this.isValid() ? this._isUTC : false; |
| 3453 |
} |
| 3454 |
|
| 3455 |
function isUtc() { |
| 3456 |
return this.isValid() ? this._isUTC && this._offset === 0 : false; |
| 3457 |
} |
| 3458 |
|
| 3459 |
// ASP.NET json date format regex |
| 3460 |
var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, |
| 3461 |
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html |
| 3462 |
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere |
| 3463 |
// and further modified to allow for strings containing both week and day |
| 3464 |
isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; |
| 3465 |
|
| 3466 |
function createDuration(input, key) { |
| 3467 |
var duration = input, |
| 3468 |
// matching against regexp is expensive, do it on demand |
| 3469 |
match = null, |
| 3470 |
sign, |
| 3471 |
ret, |
| 3472 |
diffRes; |
| 3473 |
|
| 3474 |
if (isDuration(input)) { |
| 3475 |
duration = { |
| 3476 |
ms: input._milliseconds, |
| 3477 |
d: input._days, |
| 3478 |
M: input._months, |
| 3479 |
}; |
| 3480 |
} else if (isNumber(input) || !isNaN(+input)) { |
| 3481 |
duration = {}; |
| 3482 |
if (key) { |
| 3483 |
duration[key] = +input; |
| 3484 |
} else { |
| 3485 |
duration.milliseconds = +input; |
| 3486 |
} |
| 3487 |
} else if ((match = aspNetRegex.exec(input))) { |
| 3488 |
sign = match[1] === '-' ? -1 : 1; |
| 3489 |
duration = { |
| 3490 |
y: 0, |
| 3491 |
d: toInt(match[DATE]) * sign, |
| 3492 |
h: toInt(match[HOUR]) * sign, |
| 3493 |
m: toInt(match[MINUTE]) * sign, |
| 3494 |
s: toInt(match[SECOND]) * sign, |
| 3495 |
ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match |
| 3496 |
}; |
| 3497 |
} else if ((match = isoRegex.exec(input))) { |
| 3498 |
sign = match[1] === '-' ? -1 : 1; |
| 3499 |
duration = { |
| 3500 |
y: parseIso(match[2], sign), |
| 3501 |
M: parseIso(match[3], sign), |
| 3502 |
w: parseIso(match[4], sign), |
| 3503 |
d: parseIso(match[5], sign), |
| 3504 |
h: parseIso(match[6], sign), |
| 3505 |
m: parseIso(match[7], sign), |
| 3506 |
s: parseIso(match[8], sign), |
| 3507 |
}; |
| 3508 |
} else if (duration == null) { |
| 3509 |
// checks for null or undefined |
| 3510 |
duration = {}; |
| 3511 |
} else if ( |
| 3512 |
typeof duration === 'object' && |
| 3513 |
('from' in duration || 'to' in duration) |
| 3514 |
) { |
| 3515 |
diffRes = momentsDifference( |
| 3516 |
createLocal(duration.from), |
| 3517 |
createLocal(duration.to) |
| 3518 |
); |
| 3519 |
|
| 3520 |
duration = {}; |
| 3521 |
duration.ms = diffRes.milliseconds; |
| 3522 |
duration.M = diffRes.months; |
| 3523 |
} |
| 3524 |
|
| 3525 |
ret = new Duration(duration); |
| 3526 |
|
| 3527 |
if (isDuration(input) && hasOwnProp(input, '_locale')) { |
| 3528 |
ret._locale = input._locale; |
| 3529 |
} |
| 3530 |
|
| 3531 |
if (isDuration(input) && hasOwnProp(input, '_isValid')) { |
| 3532 |
ret._isValid = input._isValid; |
| 3533 |
} |
| 3534 |
|
| 3535 |
return ret; |
| 3536 |
} |
| 3537 |
|
| 3538 |
createDuration.fn = Duration.prototype; |
| 3539 |
createDuration.invalid = createInvalid$1; |
| 3540 |
|
| 3541 |
function parseIso(inp, sign) { |
| 3542 |
// We'd normally use ~~inp for this, but unfortunately it also |
| 3543 |
// converts floats to ints. |
| 3544 |
// inp may be undefined, so careful calling replace on it. |
| 3545 |
var res = inp && parseFloat(inp.replace(',', '.')); |
| 3546 |
// apply sign while we're at it |
| 3547 |
return (isNaN(res) ? 0 : res) * sign; |
| 3548 |
} |
| 3549 |
|
| 3550 |
function positiveMomentsDifference(base, other) { |
| 3551 |
var res = {}; |
| 3552 |
|
| 3553 |
res.months = |
| 3554 |
other.month() - base.month() + (other.year() - base.year()) * 12; |
| 3555 |
if (base.clone().add(res.months, 'M').isAfter(other)) { |
| 3556 |
--res.months; |
| 3557 |
} |
| 3558 |
|
| 3559 |
res.milliseconds = +other - +base.clone().add(res.months, 'M'); |
| 3560 |
|
| 3561 |
return res; |
| 3562 |
} |
| 3563 |
|
| 3564 |
function momentsDifference(base, other) { |
| 3565 |
var res; |
| 3566 |
if (!(base.isValid() && other.isValid())) { |
| 3567 |
return { milliseconds: 0, months: 0 }; |
| 3568 |
} |
| 3569 |
|
| 3570 |
other = cloneWithOffset(other, base); |
| 3571 |
if (base.isBefore(other)) { |
| 3572 |
res = positiveMomentsDifference(base, other); |
| 3573 |
} else { |
| 3574 |
res = positiveMomentsDifference(other, base); |
| 3575 |
res.milliseconds = -res.milliseconds; |
| 3576 |
res.months = -res.months; |
| 3577 |
} |
| 3578 |
|
| 3579 |
return res; |
| 3580 |
} |
| 3581 |
|
| 3582 |
// TODO: remove 'name' arg after deprecation is removed |
| 3583 |
function createAdder(direction, name) { |
| 3584 |
return function (val, period) { |
| 3585 |
var dur, tmp; |
| 3586 |
//invert the arguments, but complain about it |
| 3587 |
if (period !== null && !isNaN(+period)) { |
| 3588 |
deprecateSimple( |
| 3589 |
name, |
| 3590 |
'moment().' + |
| 3591 |
name + |
| 3592 |
'(period, number) is deprecated. Please use moment().' + |
| 3593 |
name + |
| 3594 |
'(number, period). ' + |
| 3595 |
'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.' |
| 3596 |
); |
| 3597 |
tmp = val; |
| 3598 |
val = period; |
| 3599 |
period = tmp; |
| 3600 |
} |
| 3601 |
|
| 3602 |
dur = createDuration(val, period); |
| 3603 |
addSubtract(this, dur, direction); |
| 3604 |
return this; |
| 3605 |
}; |
| 3606 |
} |
| 3607 |
|
| 3608 |
function addSubtract(mom, duration, isAdding, updateOffset) { |
| 3609 |
var milliseconds = duration._milliseconds, |
| 3610 |
days = absRound(duration._days), |
| 3611 |
months = absRound(duration._months); |
| 3612 |
|
| 3613 |
if (!mom.isValid()) { |
| 3614 |
// No op |
| 3615 |
return; |
| 3616 |
} |
| 3617 |
|
| 3618 |
updateOffset = updateOffset == null ? true : updateOffset; |
| 3619 |
|
| 3620 |
if (months) { |
| 3621 |
setMonth(mom, get(mom, 'Month') + months * isAdding); |
| 3622 |
} |
| 3623 |
if (days) { |
| 3624 |
set$1(mom, 'Date', get(mom, 'Date') + days * isAdding); |
| 3625 |
} |
| 3626 |
if (milliseconds) { |
| 3627 |
mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding); |
| 3628 |
} |
| 3629 |
if (updateOffset) { |
| 3630 |
hooks.updateOffset(mom, days || months); |
| 3631 |
} |
| 3632 |
} |
| 3633 |
|
| 3634 |
var add = createAdder(1, 'add'), |
| 3635 |
subtract = createAdder(-1, 'subtract'); |
| 3636 |
|
| 3637 |
function isString(input) { |
| 3638 |
return typeof input === 'string' || input instanceof String; |
| 3639 |
} |
| 3640 |
|
| 3641 |
// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined |
| 3642 |
function isMomentInput(input) { |
| 3643 |
return ( |
| 3644 |
isMoment(input) || |
| 3645 |
isDate(input) || |
| 3646 |
isString(input) || |
| 3647 |
isNumber(input) || |
| 3648 |
isNumberOrStringArray(input) || |
| 3649 |
isMomentInputObject(input) || |
| 3650 |
input === null || |
| 3651 |
input === undefined |
| 3652 |
); |
| 3653 |
} |
| 3654 |
|
| 3655 |
function isMomentInputObject(input) { |
| 3656 |
var objectTest = isObject(input) && !isObjectEmpty(input), |
| 3657 |
propertyTest = false, |
| 3658 |
properties = [ |
| 3659 |
'years', |
| 3660 |
'year', |
| 3661 |
'y', |
| 3662 |
'months', |
| 3663 |
'month', |
| 3664 |
'M', |
| 3665 |
'days', |
| 3666 |
'day', |
| 3667 |
'd', |
| 3668 |
'dates', |
| 3669 |
'date', |
| 3670 |
'D', |
| 3671 |
'hours', |
| 3672 |
'hour', |
| 3673 |
'h', |
| 3674 |
'minutes', |
| 3675 |
'minute', |
| 3676 |
'm', |
| 3677 |
'seconds', |
| 3678 |
'second', |
| 3679 |
's', |
| 3680 |
'milliseconds', |
| 3681 |
'millisecond', |
| 3682 |
'ms', |
| 3683 |
], |
| 3684 |
i, |
| 3685 |
property; |
| 3686 |
|
| 3687 |
for (i = 0; i < properties.length; i += 1) { |
| 3688 |
property = properties[i]; |
| 3689 |
propertyTest = propertyTest || hasOwnProp(input, property); |
| 3690 |
} |
| 3691 |
|
| 3692 |
return objectTest && propertyTest; |
| 3693 |
} |
| 3694 |
|
| 3695 |
function isNumberOrStringArray(input) { |
| 3696 |
var arrayTest = isArray(input), |
| 3697 |
dataTypeTest = false; |
| 3698 |
if (arrayTest) { |
| 3699 |
dataTypeTest = |
| 3700 |
input.filter(function (item) { |
| 3701 |
return !isNumber(item) && isString(input); |
| 3702 |
}).length === 0; |
| 3703 |
} |
| 3704 |
return arrayTest && dataTypeTest; |
| 3705 |
} |
| 3706 |
|
| 3707 |
function isCalendarSpec(input) { |
| 3708 |
var objectTest = isObject(input) && !isObjectEmpty(input), |
| 3709 |
propertyTest = false, |
| 3710 |
properties = [ |
| 3711 |
'sameDay', |
| 3712 |
'nextDay', |
| 3713 |
'lastDay', |
| 3714 |
'nextWeek', |
| 3715 |
'lastWeek', |
| 3716 |
'sameElse', |
| 3717 |
], |
| 3718 |
i, |
| 3719 |
property; |
| 3720 |
|
| 3721 |
for (i = 0; i < properties.length; i += 1) { |
| 3722 |
property = properties[i]; |
| 3723 |
propertyTest = propertyTest || hasOwnProp(input, property); |
| 3724 |
} |
| 3725 |
|
| 3726 |
return objectTest && propertyTest; |
| 3727 |
} |
| 3728 |
|
| 3729 |
function getCalendarFormat(myMoment, now) { |
| 3730 |
var diff = myMoment.diff(now, 'days', true); |
| 3731 |
return diff < -6 |
| 3732 |
? 'sameElse' |
| 3733 |
: diff < -1 |
| 3734 |
? 'lastWeek' |
| 3735 |
: diff < 0 |
| 3736 |
? 'lastDay' |
| 3737 |
: diff < 1 |
| 3738 |
? 'sameDay' |
| 3739 |
: diff < 2 |
| 3740 |
? 'nextDay' |
| 3741 |
: diff < 7 |
| 3742 |
? 'nextWeek' |
| 3743 |
: 'sameElse'; |
| 3744 |
} |
| 3745 |
|
| 3746 |
function calendar$1(time, formats) { |
| 3747 |
// Support for single parameter, formats only overload to the calendar function |
| 3748 |
if (arguments.length === 1) { |
| 3749 |
if (!arguments[0]) { |
| 3750 |
time = undefined; |
| 3751 |
formats = undefined; |
| 3752 |
} else if (isMomentInput(arguments[0])) { |
| 3753 |
time = arguments[0]; |
| 3754 |
formats = undefined; |
| 3755 |
} else if (isCalendarSpec(arguments[0])) { |
| 3756 |
formats = arguments[0]; |
| 3757 |
time = undefined; |
| 3758 |
} |
| 3759 |
} |
| 3760 |
// We want to compare the start of today, vs this. |
| 3761 |
// Getting start-of-today depends on whether we're local/utc/offset or not. |
| 3762 |
var now = time || createLocal(), |
| 3763 |
sod = cloneWithOffset(now, this).startOf('day'), |
| 3764 |
format = hooks.calendarFormat(this, sod) || 'sameElse', |
| 3765 |
output = |
| 3766 |
formats && |
| 3767 |
(isFunction(formats[format]) |
| 3768 |
? formats[format].call(this, now) |
| 3769 |
: formats[format]); |
| 3770 |
|
| 3771 |
return this.format( |
| 3772 |
output || this.localeData().calendar(format, this, createLocal(now)) |
| 3773 |
); |
| 3774 |
} |
| 3775 |
|
| 3776 |
function clone() { |
| 3777 |
return new Moment(this); |
| 3778 |
} |
| 3779 |
|
| 3780 |
function isAfter(input, units) { |
| 3781 |
var localInput = isMoment(input) ? input : createLocal(input); |
| 3782 |
if (!(this.isValid() && localInput.isValid())) { |
| 3783 |
return false; |
| 3784 |
} |
| 3785 |
units = normalizeUnits(units) || 'millisecond'; |
| 3786 |
if (units === 'millisecond') { |
| 3787 |
return this.valueOf() > localInput.valueOf(); |
| 3788 |
} else { |
| 3789 |
return localInput.valueOf() < this.clone().startOf(units).valueOf(); |
| 3790 |
} |
| 3791 |
} |
| 3792 |
|
| 3793 |
function isBefore(input, units) { |
| 3794 |
var localInput = isMoment(input) ? input : createLocal(input); |
| 3795 |
if (!(this.isValid() && localInput.isValid())) { |
| 3796 |
return false; |
| 3797 |
} |
| 3798 |
units = normalizeUnits(units) || 'millisecond'; |
| 3799 |
if (units === 'millisecond') { |
| 3800 |
return this.valueOf() < localInput.valueOf(); |
| 3801 |
} else { |
| 3802 |
return this.clone().endOf(units).valueOf() < localInput.valueOf(); |
| 3803 |
} |
| 3804 |
} |
| 3805 |
|
| 3806 |
function isBetween(from, to, units, inclusivity) { |
| 3807 |
var localFrom = isMoment(from) ? from : createLocal(from), |
| 3808 |
localTo = isMoment(to) ? to : createLocal(to); |
| 3809 |
if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) { |
| 3810 |
return false; |
| 3811 |
} |
| 3812 |
inclusivity = inclusivity || '()'; |
| 3813 |
return ( |
| 3814 |
(inclusivity[0] === '(' |
| 3815 |
? this.isAfter(localFrom, units) |
| 3816 |
: !this.isBefore(localFrom, units)) && |
| 3817 |
(inclusivity[1] === ')' |
| 3818 |
? this.isBefore(localTo, units) |
| 3819 |
: !this.isAfter(localTo, units)) |
| 3820 |
); |
| 3821 |
} |
| 3822 |
|
| 3823 |
function isSame(input, units) { |
| 3824 |
var localInput = isMoment(input) ? input : createLocal(input), |
| 3825 |
inputMs; |
| 3826 |
if (!(this.isValid() && localInput.isValid())) { |
| 3827 |
return false; |
| 3828 |
} |
| 3829 |
units = normalizeUnits(units) || 'millisecond'; |
| 3830 |
if (units === 'millisecond') { |
| 3831 |
return this.valueOf() === localInput.valueOf(); |
| 3832 |
} else { |
| 3833 |
inputMs = localInput.valueOf(); |
| 3834 |
return ( |
| 3835 |
this.clone().startOf(units).valueOf() <= inputMs && |
| 3836 |
inputMs <= this.clone().endOf(units).valueOf() |
| 3837 |
); |
| 3838 |
} |
| 3839 |
} |
| 3840 |
|
| 3841 |
function isSameOrAfter(input, units) { |
| 3842 |
return this.isSame(input, units) || this.isAfter(input, units); |
| 3843 |
} |
| 3844 |
|
| 3845 |
function isSameOrBefore(input, units) { |
| 3846 |
return this.isSame(input, units) || this.isBefore(input, units); |
| 3847 |
} |
| 3848 |
|
| 3849 |
function diff(input, units, asFloat) { |
| 3850 |
var that, zoneDelta, output; |
| 3851 |
|
| 3852 |
if (!this.isValid()) { |
| 3853 |
return NaN; |
| 3854 |
} |
| 3855 |
|
| 3856 |
that = cloneWithOffset(input, this); |
| 3857 |
|
| 3858 |
if (!that.isValid()) { |
| 3859 |
return NaN; |
| 3860 |
} |
| 3861 |
|
| 3862 |
zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4; |
| 3863 |
|
| 3864 |
units = normalizeUnits(units); |
| 3865 |
|
| 3866 |
switch (units) { |
| 3867 |
case 'year': |
| 3868 |
output = monthDiff(this, that) / 12; |
| 3869 |
break; |
| 3870 |
case 'month': |
| 3871 |
output = monthDiff(this, that); |
| 3872 |
break; |
| 3873 |
case 'quarter': |
| 3874 |
output = monthDiff(this, that) / 3; |
| 3875 |
break; |
| 3876 |
case 'second': |
| 3877 |
output = (this - that) / 1e3; |
| 3878 |
break; // 1000 |
| 3879 |
case 'minute': |
| 3880 |
output = (this - that) / 6e4; |
| 3881 |
break; // 1000 * 60 |
| 3882 |
case 'hour': |
| 3883 |
output = (this - that) / 36e5; |
| 3884 |
break; // 1000 * 60 * 60 |
| 3885 |
case 'day': |
| 3886 |
output = (this - that - zoneDelta) / 864e5; |
| 3887 |
break; // 1000 * 60 * 60 * 24, negate dst |
| 3888 |
case 'week': |
| 3889 |
output = (this - that - zoneDelta) / 6048e5; |
| 3890 |
break; // 1000 * 60 * 60 * 24 * 7, negate dst |
| 3891 |
default: |
| 3892 |
output = this - that; |
| 3893 |
} |
| 3894 |
|
| 3895 |
return asFloat ? output : absFloor(output); |
| 3896 |
} |
| 3897 |
|
| 3898 |
function monthDiff(a, b) { |
| 3899 |
if (a.date() < b.date()) { |
| 3900 |
// end-of-month calculations work correct when the start month has more |
| 3901 |
// days than the end month. |
| 3902 |
return -monthDiff(b, a); |
| 3903 |
} |
| 3904 |
// difference in months |
| 3905 |
var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()), |
| 3906 |
// b is in (anchor - 1 month, anchor + 1 month) |
| 3907 |
anchor = a.clone().add(wholeMonthDiff, 'months'), |
| 3908 |
anchor2, |
| 3909 |
adjust; |
| 3910 |
|
| 3911 |
if (b - anchor < 0) { |
| 3912 |
anchor2 = a.clone().add(wholeMonthDiff - 1, 'months'); |
| 3913 |
// linear across the month |
| 3914 |
adjust = (b - anchor) / (anchor - anchor2); |
| 3915 |
} else { |
| 3916 |
anchor2 = a.clone().add(wholeMonthDiff + 1, 'months'); |
| 3917 |
// linear across the month |
| 3918 |
adjust = (b - anchor) / (anchor2 - anchor); |
| 3919 |
} |
| 3920 |
|
| 3921 |
//check for negative zero, return zero if negative zero |
| 3922 |
return -(wholeMonthDiff + adjust) || 0; |
| 3923 |
} |
| 3924 |
|
| 3925 |
hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'; |
| 3926 |
hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]'; |
| 3927 |
|
| 3928 |
function toString() { |
| 3929 |
return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); |
| 3930 |
} |
| 3931 |
|
| 3932 |
function toISOString(keepOffset) { |
| 3933 |
if (!this.isValid()) { |
| 3934 |
return null; |
| 3935 |
} |
| 3936 |
var utc = keepOffset !== true, |
| 3937 |
m = utc ? this.clone().utc() : this; |
| 3938 |
if (m.year() < 0 || m.year() > 9999) { |
| 3939 |
return formatMoment( |
| 3940 |
m, |
| 3941 |
utc |
| 3942 |
? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' |
| 3943 |
: 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ' |
| 3944 |
); |
| 3945 |
} |
| 3946 |
if (isFunction(Date.prototype.toISOString)) { |
| 3947 |
// native implementation is ~50x faster, use it when we can |
| 3948 |
if (utc) { |
| 3949 |
return this.toDate().toISOString(); |
| 3950 |
} else { |
| 3951 |
return new Date(this.valueOf() + this.utcOffset() * 60 * 1000) |
| 3952 |
.toISOString() |
| 3953 |
.replace('Z', formatMoment(m, 'Z')); |
| 3954 |
} |
| 3955 |
} |
| 3956 |
return formatMoment( |
| 3957 |
m, |
| 3958 |
utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ' |
| 3959 |
); |
| 3960 |
} |
| 3961 |
|
| 3962 |
/** |
| 3963 |
* Return a human readable representation of a moment that can |
| 3964 |
* also be evaluated to get a new moment which is the same |
| 3965 |
* |
| 3966 |
* @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects |
| 3967 |
*/ |
| 3968 |
function inspect() { |
| 3969 |
if (!this.isValid()) { |
| 3970 |
return 'moment.invalid(/* ' + this._i + ' */)'; |
| 3971 |
} |
| 3972 |
var func = 'moment', |
| 3973 |
zone = '', |
| 3974 |
prefix, |
| 3975 |
year, |
| 3976 |
datetime, |
| 3977 |
suffix; |
| 3978 |
if (!this.isLocal()) { |
| 3979 |
func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone'; |
| 3980 |
zone = 'Z'; |
| 3981 |
} |
| 3982 |
prefix = '[' + func + '("]'; |
| 3983 |
year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY'; |
| 3984 |
datetime = '-MM-DD[T]HH:mm:ss.SSS'; |
| 3985 |
suffix = zone + '[")]'; |
| 3986 |
|
| 3987 |
return this.format(prefix + year + datetime + suffix); |
| 3988 |
} |
| 3989 |
|
| 3990 |
function format(inputString) { |
| 3991 |
if (!inputString) { |
| 3992 |
inputString = this.isUtc() |
| 3993 |
? hooks.defaultFormatUtc |
| 3994 |
: hooks.defaultFormat; |
| 3995 |
} |
| 3996 |
var output = formatMoment(this, inputString); |
| 3997 |
return this.localeData().postformat(output); |
| 3998 |
} |
| 3999 |
|
| 4000 |
function from(time, withoutSuffix) { |
| 4001 |
if ( |
| 4002 |
this.isValid() && |
| 4003 |
((isMoment(time) && time.isValid()) || createLocal(time).isValid()) |
| 4004 |
) { |
| 4005 |
return createDuration({ to: this, from: time }) |
| 4006 |
.locale(this.locale()) |
| 4007 |
.humanize(!withoutSuffix); |
| 4008 |
} else { |
| 4009 |
return this.localeData().invalidDate(); |
| 4010 |
} |
| 4011 |
} |
| 4012 |
|
| 4013 |
function fromNow(withoutSuffix) { |
| 4014 |
return this.from(createLocal(), withoutSuffix); |
| 4015 |
} |
| 4016 |
|
| 4017 |
function to(time, withoutSuffix) { |
| 4018 |
if ( |
| 4019 |
this.isValid() && |
| 4020 |
((isMoment(time) && time.isValid()) || createLocal(time).isValid()) |
| 4021 |
) { |
| 4022 |
return createDuration({ from: this, to: time }) |
| 4023 |
.locale(this.locale()) |
| 4024 |
.humanize(!withoutSuffix); |
| 4025 |
} else { |
| 4026 |
return this.localeData().invalidDate(); |
| 4027 |
} |
| 4028 |
} |
| 4029 |
|
| 4030 |
function toNow(withoutSuffix) { |
| 4031 |
return this.to(createLocal(), withoutSuffix); |
| 4032 |
} |
| 4033 |
|
| 4034 |
// If passed a locale key, it will set the locale for this |
| 4035 |
// instance. Otherwise, it will return the locale configuration |
| 4036 |
// variables for this instance. |
| 4037 |
function locale(key) { |
| 4038 |
var newLocaleData; |
| 4039 |
|
| 4040 |
if (key === undefined) { |
| 4041 |
return this._locale._abbr; |
| 4042 |
} else { |
| 4043 |
newLocaleData = getLocale(key); |
| 4044 |
if (newLocaleData != null) { |
| 4045 |
this._locale = newLocaleData; |
| 4046 |
} |
| 4047 |
return this; |
| 4048 |
} |
| 4049 |
} |
| 4050 |
|
| 4051 |
var lang = deprecate( |
| 4052 |
'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', |
| 4053 |
function (key) { |
| 4054 |
if (key === undefined) { |
| 4055 |
return this.localeData(); |
| 4056 |
} else { |
| 4057 |
return this.locale(key); |
| 4058 |
} |
| 4059 |
} |
| 4060 |
); |
| 4061 |
|
| 4062 |
function localeData() { |
| 4063 |
return this._locale; |
| 4064 |
} |
| 4065 |
|
| 4066 |
var MS_PER_SECOND = 1000, |
| 4067 |
MS_PER_MINUTE = 60 * MS_PER_SECOND, |
| 4068 |
MS_PER_HOUR = 60 * MS_PER_MINUTE, |
| 4069 |
MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR; |
| 4070 |
|
| 4071 |
// actual modulo - handles negative numbers (for dates before 1970): |
| 4072 |
function mod$1(dividend, divisor) { |
| 4073 |
return ((dividend % divisor) + divisor) % divisor; |
| 4074 |
} |
| 4075 |
|
| 4076 |
function localStartOfDate(y, m, d) { |
| 4077 |
// the date constructor remaps years 0-99 to 1900-1999 |
| 4078 |
if (y < 100 && y >= 0) { |
| 4079 |
// preserve leap years using a full 400 year cycle, then reset |
| 4080 |
return new Date(y + 400, m, d) - MS_PER_400_YEARS; |
| 4081 |
} else { |
| 4082 |
return new Date(y, m, d).valueOf(); |
| 4083 |
} |
| 4084 |
} |
| 4085 |
|
| 4086 |
function utcStartOfDate(y, m, d) { |
| 4087 |
// Date.UTC remaps years 0-99 to 1900-1999 |
| 4088 |
if (y < 100 && y >= 0) { |
| 4089 |
// preserve leap years using a full 400 year cycle, then reset |
| 4090 |
return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS; |
| 4091 |
} else { |
| 4092 |
return Date.UTC(y, m, d); |
| 4093 |
} |
| 4094 |
} |
| 4095 |
|
| 4096 |
function startOf(units) { |
| 4097 |
var time, startOfDate; |
| 4098 |
units = normalizeUnits(units); |
| 4099 |
if (units === undefined || units === 'millisecond' || !this.isValid()) { |
| 4100 |
return this; |
| 4101 |
} |
| 4102 |
|
| 4103 |
startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; |
| 4104 |
|
| 4105 |
switch (units) { |
| 4106 |
case 'year': |
| 4107 |
time = startOfDate(this.year(), 0, 1); |
| 4108 |
break; |
| 4109 |
case 'quarter': |
| 4110 |
time = startOfDate( |
| 4111 |
this.year(), |
| 4112 |
this.month() - (this.month() % 3), |
| 4113 |
1 |
| 4114 |
); |
| 4115 |
break; |
| 4116 |
case 'month': |
| 4117 |
time = startOfDate(this.year(), this.month(), 1); |
| 4118 |
break; |
| 4119 |
case 'week': |
| 4120 |
time = startOfDate( |
| 4121 |
this.year(), |
| 4122 |
this.month(), |
| 4123 |
this.date() - this.weekday() |
| 4124 |
); |
| 4125 |
break; |
| 4126 |
case 'isoWeek': |
| 4127 |
time = startOfDate( |
| 4128 |
this.year(), |
| 4129 |
this.month(), |
| 4130 |
this.date() - (this.isoWeekday() - 1) |
| 4131 |
); |
| 4132 |
break; |
| 4133 |
case 'day': |
| 4134 |
case 'date': |
| 4135 |
time = startOfDate(this.year(), this.month(), this.date()); |
| 4136 |
break; |
| 4137 |
case 'hour': |
| 4138 |
time = this._d.valueOf(); |
| 4139 |
time -= mod$1( |
| 4140 |
time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), |
| 4141 |
MS_PER_HOUR |
| 4142 |
); |
| 4143 |
break; |
| 4144 |
case 'minute': |
| 4145 |
time = this._d.valueOf(); |
| 4146 |
time -= mod$1(time, MS_PER_MINUTE); |
| 4147 |
break; |
| 4148 |
case 'second': |
| 4149 |
time = this._d.valueOf(); |
| 4150 |
time -= mod$1(time, MS_PER_SECOND); |
| 4151 |
break; |
| 4152 |
} |
| 4153 |
|
| 4154 |
this._d.setTime(time); |
| 4155 |
hooks.updateOffset(this, true); |
| 4156 |
return this; |
| 4157 |
} |
| 4158 |
|
| 4159 |
function endOf(units) { |
| 4160 |
var time, startOfDate; |
| 4161 |
units = normalizeUnits(units); |
| 4162 |
if (units === undefined || units === 'millisecond' || !this.isValid()) { |
| 4163 |
return this; |
| 4164 |
} |
| 4165 |
|
| 4166 |
startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; |
| 4167 |
|
| 4168 |
switch (units) { |
| 4169 |
case 'year': |
| 4170 |
time = startOfDate(this.year() + 1, 0, 1) - 1; |
| 4171 |
break; |
| 4172 |
case 'quarter': |
| 4173 |
time = |
| 4174 |
startOfDate( |
| 4175 |
this.year(), |
| 4176 |
this.month() - (this.month() % 3) + 3, |
| 4177 |
1 |
| 4178 |
) - 1; |
| 4179 |
break; |
| 4180 |
case 'month': |
| 4181 |
time = startOfDate(this.year(), this.month() + 1, 1) - 1; |
| 4182 |
break; |
| 4183 |
case 'week': |
| 4184 |
time = |
| 4185 |
startOfDate( |
| 4186 |
this.year(), |
| 4187 |
this.month(), |
| 4188 |
this.date() - this.weekday() + 7 |
| 4189 |
) - 1; |
| 4190 |
break; |
| 4191 |
case 'isoWeek': |
| 4192 |
time = |
| 4193 |
startOfDate( |
| 4194 |
this.year(), |
| 4195 |
this.month(), |
| 4196 |
this.date() - (this.isoWeekday() - 1) + 7 |
| 4197 |
) - 1; |
| 4198 |
break; |
| 4199 |
case 'day': |
| 4200 |
case 'date': |
| 4201 |
time = startOfDate(this.year(), this.month(), this.date() + 1) - 1; |
| 4202 |
break; |
| 4203 |
case 'hour': |
| 4204 |
time = this._d.valueOf(); |
| 4205 |
time += |
| 4206 |
MS_PER_HOUR - |
| 4207 |
mod$1( |
| 4208 |
time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), |
| 4209 |
MS_PER_HOUR |
| 4210 |
) - |
| 4211 |
1; |
| 4212 |
break; |
| 4213 |
case 'minute': |
| 4214 |
time = this._d.valueOf(); |
| 4215 |
time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1; |
| 4216 |
break; |
| 4217 |
case 'second': |
| 4218 |
time = this._d.valueOf(); |
| 4219 |
time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1; |
| 4220 |
break; |
| 4221 |
} |
| 4222 |
|
| 4223 |
this._d.setTime(time); |
| 4224 |
hooks.updateOffset(this, true); |
| 4225 |
return this; |
| 4226 |
} |
| 4227 |
|
| 4228 |
function valueOf() { |
| 4229 |
return this._d.valueOf() - (this._offset || 0) * 60000; |
| 4230 |
} |
| 4231 |
|
| 4232 |
function unix() { |
| 4233 |
return Math.floor(this.valueOf() / 1000); |
| 4234 |
} |
| 4235 |
|
| 4236 |
function toDate() { |
| 4237 |
return new Date(this.valueOf()); |
| 4238 |
} |
| 4239 |
|
| 4240 |
function toArray() { |
| 4241 |
var m = this; |
| 4242 |
return [ |
| 4243 |
m.year(), |
| 4244 |
m.month(), |
| 4245 |
m.date(), |
| 4246 |
m.hour(), |
| 4247 |
m.minute(), |
| 4248 |
m.second(), |
| 4249 |
m.millisecond(), |
| 4250 |
]; |
| 4251 |
} |
| 4252 |
|
| 4253 |
function toObject() { |
| 4254 |
var m = this; |
| 4255 |
return { |
| 4256 |
years: m.year(), |
| 4257 |
months: m.month(), |
| 4258 |
date: m.date(), |
| 4259 |
hours: m.hours(), |
| 4260 |
minutes: m.minutes(), |
| 4261 |
seconds: m.seconds(), |
| 4262 |
milliseconds: m.milliseconds(), |
| 4263 |
}; |
| 4264 |
} |
| 4265 |
|
| 4266 |
function toJSON() { |
| 4267 |
// new Date(NaN).toJSON() === null |
| 4268 |
return this.isValid() ? this.toISOString() : null; |
| 4269 |
} |
| 4270 |
|
| 4271 |
function isValid$2() { |
| 4272 |
return isValid(this); |
| 4273 |
} |
| 4274 |
|
| 4275 |
function parsingFlags() { |
| 4276 |
return extend({}, getParsingFlags(this)); |
| 4277 |
} |
| 4278 |
|
| 4279 |
function invalidAt() { |
| 4280 |
return getParsingFlags(this).overflow; |
| 4281 |
} |
| 4282 |
|
| 4283 |
function creationData() { |
| 4284 |
return { |
| 4285 |
input: this._i, |
| 4286 |
format: this._f, |
| 4287 |
locale: this._locale, |
| 4288 |
isUTC: this._isUTC, |
| 4289 |
strict: this._strict, |
| 4290 |
}; |
| 4291 |
} |
| 4292 |
|
| 4293 |
addFormatToken('N', 0, 0, 'eraAbbr'); |
| 4294 |
addFormatToken('NN', 0, 0, 'eraAbbr'); |
| 4295 |
addFormatToken('NNN', 0, 0, 'eraAbbr'); |
| 4296 |
addFormatToken('NNNN', 0, 0, 'eraName'); |
| 4297 |
addFormatToken('NNNNN', 0, 0, 'eraNarrow'); |
| 4298 |
|
| 4299 |
addFormatToken('y', ['y', 1], 'yo', 'eraYear'); |
| 4300 |
addFormatToken('y', ['yy', 2], 0, 'eraYear'); |
| 4301 |
addFormatToken('y', ['yyy', 3], 0, 'eraYear'); |
| 4302 |
addFormatToken('y', ['yyyy', 4], 0, 'eraYear'); |
| 4303 |
|
| 4304 |
addRegexToken('N', matchEraAbbr); |
| 4305 |
addRegexToken('NN', matchEraAbbr); |
| 4306 |
addRegexToken('NNN', matchEraAbbr); |
| 4307 |
addRegexToken('NNNN', matchEraName); |
| 4308 |
addRegexToken('NNNNN', matchEraNarrow); |
| 4309 |
|
| 4310 |
addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function ( |
| 4311 |
input, |
| 4312 |
array, |
| 4313 |
config, |
| 4314 |
token |
| 4315 |
) { |
| 4316 |
var era = config._locale.erasParse(input, token, config._strict); |
| 4317 |
if (era) { |
| 4318 |
getParsingFlags(config).era = era; |
| 4319 |
} else { |
| 4320 |
getParsingFlags(config).invalidEra = input; |
| 4321 |
} |
| 4322 |
}); |
| 4323 |
|
| 4324 |
addRegexToken('y', matchUnsigned); |
| 4325 |
addRegexToken('yy', matchUnsigned); |
| 4326 |
addRegexToken('yyy', matchUnsigned); |
| 4327 |
addRegexToken('yyyy', matchUnsigned); |
| 4328 |
addRegexToken('yo', matchEraYearOrdinal); |
| 4329 |
|
| 4330 |
addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR); |
| 4331 |
addParseToken(['yo'], function (input, array, config, token) { |
| 4332 |
var match; |
| 4333 |
if (config._locale._eraYearOrdinalRegex) { |
| 4334 |
match = input.match(config._locale._eraYearOrdinalRegex); |
| 4335 |
} |
| 4336 |
|
| 4337 |
if (config._locale.eraYearOrdinalParse) { |
| 4338 |
array[YEAR] = config._locale.eraYearOrdinalParse(input, match); |
| 4339 |
} else { |
| 4340 |
array[YEAR] = parseInt(input, 10); |
| 4341 |
} |
| 4342 |
}); |
| 4343 |
|
| 4344 |
function localeEras(m, format) { |
| 4345 |
var i, |
| 4346 |
l, |
| 4347 |
date, |
| 4348 |
eras = this._eras || getLocale('en')._eras; |
| 4349 |
for (i = 0, l = eras.length; i < l; ++i) { |
| 4350 |
switch (typeof eras[i].since) { |
| 4351 |
case 'string': |
| 4352 |
// truncate time |
| 4353 |
date = hooks(eras[i].since).startOf('day'); |
| 4354 |
eras[i].since = date.valueOf(); |
| 4355 |
break; |
| 4356 |
} |
| 4357 |
|
| 4358 |
switch (typeof eras[i].until) { |
| 4359 |
case 'undefined': |
| 4360 |
eras[i].until = +Infinity; |
| 4361 |
break; |
| 4362 |
case 'string': |
| 4363 |
// truncate time |
| 4364 |
date = hooks(eras[i].until).startOf('day').valueOf(); |
| 4365 |
eras[i].until = date.valueOf(); |
| 4366 |
break; |
| 4367 |
} |
| 4368 |
} |
| 4369 |
return eras; |
| 4370 |
} |
| 4371 |
|
| 4372 |
function localeErasParse(eraName, format, strict) { |
| 4373 |
var i, |
| 4374 |
l, |
| 4375 |
eras = this.eras(), |
| 4376 |
name, |
| 4377 |
abbr, |
| 4378 |
narrow; |
| 4379 |
eraName = eraName.toUpperCase(); |
| 4380 |
|
| 4381 |
for (i = 0, l = eras.length; i < l; ++i) { |
| 4382 |
name = eras[i].name.toUpperCase(); |
| 4383 |
abbr = eras[i].abbr.toUpperCase(); |
| 4384 |
narrow = eras[i].narrow.toUpperCase(); |
| 4385 |
|
| 4386 |
if (strict) { |
| 4387 |
switch (format) { |
| 4388 |
case 'N': |
| 4389 |
case 'NN': |
| 4390 |
case 'NNN': |
| 4391 |
if (abbr === eraName) { |
| 4392 |
return eras[i]; |
| 4393 |
} |
| 4394 |
break; |
| 4395 |
|
| 4396 |
case 'NNNN': |
| 4397 |
if (name === eraName) { |
| 4398 |
return eras[i]; |
| 4399 |
} |
| 4400 |
break; |
| 4401 |
|
| 4402 |
case 'NNNNN': |
| 4403 |
if (narrow === eraName) { |
| 4404 |
return eras[i]; |
| 4405 |
} |
| 4406 |
break; |
| 4407 |
} |
| 4408 |
} else if ([name, abbr, narrow].indexOf(eraName) >= 0) { |
| 4409 |
return eras[i]; |
| 4410 |
} |
| 4411 |
} |
| 4412 |
} |
| 4413 |
|
| 4414 |
function localeErasConvertYear(era, year) { |
| 4415 |
var dir = era.since <= era.until ? +1 : -1; |
| 4416 |
if (year === undefined) { |
| 4417 |
return hooks(era.since).year(); |
| 4418 |
} else { |
| 4419 |
return hooks(era.since).year() + (year - era.offset) * dir; |
| 4420 |
} |
| 4421 |
} |
| 4422 |
|
| 4423 |
function getEraName() { |
| 4424 |
var i, |
| 4425 |
l, |
| 4426 |
val, |
| 4427 |
eras = this.localeData().eras(); |
| 4428 |
for (i = 0, l = eras.length; i < l; ++i) { |
| 4429 |
// truncate time |
| 4430 |
val = this.clone().startOf('day').valueOf(); |
| 4431 |
|
| 4432 |
if (eras[i].since <= val && val <= eras[i].until) { |
| 4433 |
return eras[i].name; |
| 4434 |
} |
| 4435 |
if (eras[i].until <= val && val <= eras[i].since) { |
| 4436 |
return eras[i].name; |
| 4437 |
} |
| 4438 |
} |
| 4439 |
|
| 4440 |
return ''; |
| 4441 |
} |
| 4442 |
|
| 4443 |
function getEraNarrow() { |
| 4444 |
var i, |
| 4445 |
l, |
| 4446 |
val, |
| 4447 |
eras = this.localeData().eras(); |
| 4448 |
for (i = 0, l = eras.length; i < l; ++i) { |
| 4449 |
// truncate time |
| 4450 |
val = this.clone().startOf('day').valueOf(); |
| 4451 |
|
| 4452 |
if (eras[i].since <= val && val <= eras[i].until) { |
| 4453 |
return eras[i].narrow; |
| 4454 |
} |
| 4455 |
if (eras[i].until <= val && val <= eras[i].since) { |
| 4456 |
return eras[i].narrow; |
| 4457 |
} |
| 4458 |
} |
| 4459 |
|
| 4460 |
return ''; |
| 4461 |
} |
| 4462 |
|
| 4463 |
function getEraAbbr() { |
| 4464 |
var i, |
| 4465 |
l, |
| 4466 |
val, |
| 4467 |
eras = this.localeData().eras(); |
| 4468 |
for (i = 0, l = eras.length; i < l; ++i) { |
| 4469 |
// truncate time |
| 4470 |
val = this.clone().startOf('day').valueOf(); |
| 4471 |
|
| 4472 |
if (eras[i].since <= val && val <= eras[i].until) { |
| 4473 |
return eras[i].abbr; |
| 4474 |
} |
| 4475 |
if (eras[i].until <= val && val <= eras[i].since) { |
| 4476 |
return eras[i].abbr; |
| 4477 |
} |
| 4478 |
} |
| 4479 |
|
| 4480 |
return ''; |
| 4481 |
} |
| 4482 |
|
| 4483 |
function getEraYear() { |
| 4484 |
var i, |
| 4485 |
l, |
| 4486 |
dir, |
| 4487 |
val, |
| 4488 |
eras = this.localeData().eras(); |
| 4489 |
for (i = 0, l = eras.length; i < l; ++i) { |
| 4490 |
dir = eras[i].since <= eras[i].until ? +1 : -1; |
| 4491 |
|
| 4492 |
// truncate time |
| 4493 |
val = this.clone().startOf('day').valueOf(); |
| 4494 |
|
| 4495 |
if ( |
| 4496 |
(eras[i].since <= val && val <= eras[i].until) || |
| 4497 |
(eras[i].until <= val && val <= eras[i].since) |
| 4498 |
) { |
| 4499 |
return ( |
| 4500 |
(this.year() - hooks(eras[i].since).year()) * dir + |
| 4501 |
eras[i].offset |
| 4502 |
); |
| 4503 |
} |
| 4504 |
} |
| 4505 |
|
| 4506 |
return this.year(); |
| 4507 |
} |
| 4508 |
|
| 4509 |
function erasNameRegex(isStrict) { |
| 4510 |
if (!hasOwnProp(this, '_erasNameRegex')) { |
| 4511 |
computeErasParse.call(this); |
| 4512 |
} |
| 4513 |
return isStrict ? this._erasNameRegex : this._erasRegex; |
| 4514 |
} |
| 4515 |
|
| 4516 |
function erasAbbrRegex(isStrict) { |
| 4517 |
if (!hasOwnProp(this, '_erasAbbrRegex')) { |
| 4518 |
computeErasParse.call(this); |
| 4519 |
} |
| 4520 |
return isStrict ? this._erasAbbrRegex : this._erasRegex; |
| 4521 |
} |
| 4522 |
|
| 4523 |
function erasNarrowRegex(isStrict) { |
| 4524 |
if (!hasOwnProp(this, '_erasNarrowRegex')) { |
| 4525 |
computeErasParse.call(this); |
| 4526 |
} |
| 4527 |
return isStrict ? this._erasNarrowRegex : this._erasRegex; |
| 4528 |
} |
| 4529 |
|
| 4530 |
function matchEraAbbr(isStrict, locale) { |
| 4531 |
return locale.erasAbbrRegex(isStrict); |
| 4532 |
} |
| 4533 |
|
| 4534 |
function matchEraName(isStrict, locale) { |
| 4535 |
return locale.erasNameRegex(isStrict); |
| 4536 |
} |
| 4537 |
|
| 4538 |
function matchEraNarrow(isStrict, locale) { |
| 4539 |
return locale.erasNarrowRegex(isStrict); |
| 4540 |
} |
| 4541 |
|
| 4542 |
function matchEraYearOrdinal(isStrict, locale) { |
| 4543 |
return locale._eraYearOrdinalRegex || matchUnsigned; |
| 4544 |
} |
| 4545 |
|
| 4546 |
function computeErasParse() { |
| 4547 |
var abbrPieces = [], |
| 4548 |
namePieces = [], |
| 4549 |
narrowPieces = [], |
| 4550 |
mixedPieces = [], |
| 4551 |
i, |
| 4552 |
l, |
| 4553 |
eras = this.eras(); |
| 4554 |
|
| 4555 |
for (i = 0, l = eras.length; i < l; ++i) { |
| 4556 |
namePieces.push(regexEscape(eras[i].name)); |
| 4557 |
abbrPieces.push(regexEscape(eras[i].abbr)); |
| 4558 |
narrowPieces.push(regexEscape(eras[i].narrow)); |
| 4559 |
|
| 4560 |
mixedPieces.push(regexEscape(eras[i].name)); |
| 4561 |
mixedPieces.push(regexEscape(eras[i].abbr)); |
| 4562 |
mixedPieces.push(regexEscape(eras[i].narrow)); |
| 4563 |
} |
| 4564 |
|
| 4565 |
this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); |
| 4566 |
this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i'); |
| 4567 |
this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i'); |
| 4568 |
this._erasNarrowRegex = new RegExp( |
| 4569 |
'^(' + narrowPieces.join('|') + ')', |
| 4570 |
'i' |
| 4571 |
); |
| 4572 |
} |
| 4573 |
|
| 4574 |
// FORMATTING |
| 4575 |
|
| 4576 |
addFormatToken(0, ['gg', 2], 0, function () { |
| 4577 |
return this.weekYear() % 100; |
| 4578 |
}); |
| 4579 |
|
| 4580 |
addFormatToken(0, ['GG', 2], 0, function () { |
| 4581 |
return this.isoWeekYear() % 100; |
| 4582 |
}); |
| 4583 |
|
| 4584 |
function addWeekYearFormatToken(token, getter) { |
| 4585 |
addFormatToken(0, [token, token.length], 0, getter); |
| 4586 |
} |
| 4587 |
|
| 4588 |
addWeekYearFormatToken('gggg', 'weekYear'); |
| 4589 |
addWeekYearFormatToken('ggggg', 'weekYear'); |
| 4590 |
addWeekYearFormatToken('GGGG', 'isoWeekYear'); |
| 4591 |
addWeekYearFormatToken('GGGGG', 'isoWeekYear'); |
| 4592 |
|
| 4593 |
// ALIASES |
| 4594 |
|
| 4595 |
addUnitAlias('weekYear', 'gg'); |
| 4596 |
addUnitAlias('isoWeekYear', 'GG'); |
| 4597 |
|
| 4598 |
// PRIORITY |
| 4599 |
|
| 4600 |
addUnitPriority('weekYear', 1); |
| 4601 |
addUnitPriority('isoWeekYear', 1); |
| 4602 |
|
| 4603 |
// PARSING |
| 4604 |
|
| 4605 |
addRegexToken('G', matchSigned); |
| 4606 |
addRegexToken('g', matchSigned); |
| 4607 |
addRegexToken('GG', match1to2, match2); |
| 4608 |
addRegexToken('gg', match1to2, match2); |
| 4609 |
addRegexToken('GGGG', match1to4, match4); |
| 4610 |
addRegexToken('gggg', match1to4, match4); |
| 4611 |
addRegexToken('GGGGG', match1to6, match6); |
| 4612 |
addRegexToken('ggggg', match1to6, match6); |
| 4613 |
|
| 4614 |
addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function ( |
| 4615 |
input, |
| 4616 |
week, |
| 4617 |
config, |
| 4618 |
token |
| 4619 |
) { |
| 4620 |
week[token.substr(0, 2)] = toInt(input); |
| 4621 |
}); |
| 4622 |
|
| 4623 |
addWeekParseToken(['gg', 'GG'], function (input, week, config, token) { |
| 4624 |
week[token] = hooks.parseTwoDigitYear(input); |
| 4625 |
}); |
| 4626 |
|
| 4627 |
// MOMENTS |
| 4628 |
|
| 4629 |
function getSetWeekYear(input) { |
| 4630 |
return getSetWeekYearHelper.call( |
| 4631 |
this, |
| 4632 |
input, |
| 4633 |
this.week(), |
| 4634 |
this.weekday(), |
| 4635 |
this.localeData()._week.dow, |
| 4636 |
this.localeData()._week.doy |
| 4637 |
); |
| 4638 |
} |
| 4639 |
|
| 4640 |
function getSetISOWeekYear(input) { |
| 4641 |
return getSetWeekYearHelper.call( |
| 4642 |
this, |
| 4643 |
input, |
| 4644 |
this.isoWeek(), |
| 4645 |
this.isoWeekday(), |
| 4646 |
1, |
| 4647 |
4 |
| 4648 |
); |
| 4649 |
} |
| 4650 |
|
| 4651 |
function getISOWeeksInYear() { |
| 4652 |
return weeksInYear(this.year(), 1, 4); |
| 4653 |
} |
| 4654 |
|
| 4655 |
function getISOWeeksInISOWeekYear() { |
| 4656 |
return weeksInYear(this.isoWeekYear(), 1, 4); |
| 4657 |
} |
| 4658 |
|
| 4659 |
function getWeeksInYear() { |
| 4660 |
var weekInfo = this.localeData()._week; |
| 4661 |
return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); |
| 4662 |
} |
| 4663 |
|
| 4664 |
function getWeeksInWeekYear() { |
| 4665 |
var weekInfo = this.localeData()._week; |
| 4666 |
return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy); |
| 4667 |
} |
| 4668 |
|
| 4669 |
function getSetWeekYearHelper(input, week, weekday, dow, doy) { |
| 4670 |
var weeksTarget; |
| 4671 |
if (input == null) { |
| 4672 |
return weekOfYear(this, dow, doy).year; |
| 4673 |
} else { |
| 4674 |
weeksTarget = weeksInYear(input, dow, doy); |
| 4675 |
if (week > weeksTarget) { |
| 4676 |
week = weeksTarget; |
| 4677 |
} |
| 4678 |
return setWeekAll.call(this, input, week, weekday, dow, doy); |
| 4679 |
} |
| 4680 |
} |
| 4681 |
|
| 4682 |
function setWeekAll(weekYear, week, weekday, dow, doy) { |
| 4683 |
var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), |
| 4684 |
date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear); |
| 4685 |
|
| 4686 |
this.year(date.getUTCFullYear()); |
| 4687 |
this.month(date.getUTCMonth()); |
| 4688 |
this.date(date.getUTCDate()); |
| 4689 |
return this; |
| 4690 |
} |
| 4691 |
|
| 4692 |
// FORMATTING |
| 4693 |
|
| 4694 |
addFormatToken('Q', 0, 'Qo', 'quarter'); |
| 4695 |
|
| 4696 |
// ALIASES |
| 4697 |
|
| 4698 |
addUnitAlias('quarter', 'Q'); |
| 4699 |
|
| 4700 |
// PRIORITY |
| 4701 |
|
| 4702 |
addUnitPriority('quarter', 7); |
| 4703 |
|
| 4704 |
// PARSING |
| 4705 |
|
| 4706 |
addRegexToken('Q', match1); |
| 4707 |
addParseToken('Q', function (input, array) { |
| 4708 |
array[MONTH] = (toInt(input) - 1) * 3; |
| 4709 |
}); |
| 4710 |
|
| 4711 |
// MOMENTS |
| 4712 |
|
| 4713 |
function getSetQuarter(input) { |
| 4714 |
return input == null |
| 4715 |
? Math.ceil((this.month() + 1) / 3) |
| 4716 |
: this.month((input - 1) * 3 + (this.month() % 3)); |
| 4717 |
} |
| 4718 |
|
| 4719 |
// FORMATTING |
| 4720 |
|
| 4721 |
addFormatToken('D', ['DD', 2], 'Do', 'date'); |
| 4722 |
|
| 4723 |
// ALIASES |
| 4724 |
|
| 4725 |
addUnitAlias('date', 'D'); |
| 4726 |
|
| 4727 |
// PRIORITY |
| 4728 |
addUnitPriority('date', 9); |
| 4729 |
|
| 4730 |
// PARSING |
| 4731 |
|
| 4732 |
addRegexToken('D', match1to2); |
| 4733 |
addRegexToken('DD', match1to2, match2); |
| 4734 |
addRegexToken('Do', function (isStrict, locale) { |
| 4735 |
// TODO: Remove "ordinalParse" fallback in next major release. |
| 4736 |
return isStrict |
| 4737 |
? locale._dayOfMonthOrdinalParse || locale._ordinalParse |
| 4738 |
: locale._dayOfMonthOrdinalParseLenient; |
| 4739 |
}); |
| 4740 |
|
| 4741 |
addParseToken(['D', 'DD'], DATE); |
| 4742 |
addParseToken('Do', function (input, array) { |
| 4743 |
array[DATE] = toInt(input.match(match1to2)[0]); |
| 4744 |
}); |
| 4745 |
|
| 4746 |
// MOMENTS |
| 4747 |
|
| 4748 |
var getSetDayOfMonth = makeGetSet('Date', true); |
| 4749 |
|
| 4750 |
// FORMATTING |
| 4751 |
|
| 4752 |
addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'); |
| 4753 |
|
| 4754 |
// ALIASES |
| 4755 |
|
| 4756 |
addUnitAlias('dayOfYear', 'DDD'); |
| 4757 |
|
| 4758 |
// PRIORITY |
| 4759 |
addUnitPriority('dayOfYear', 4); |
| 4760 |
|
| 4761 |
// PARSING |
| 4762 |
|
| 4763 |
addRegexToken('DDD', match1to3); |
| 4764 |
addRegexToken('DDDD', match3); |
| 4765 |
addParseToken(['DDD', 'DDDD'], function (input, array, config) { |
| 4766 |
config._dayOfYear = toInt(input); |
| 4767 |
}); |
| 4768 |
|
| 4769 |
// HELPERS |
| 4770 |
|
| 4771 |
// MOMENTS |
| 4772 |
|
| 4773 |
function getSetDayOfYear(input) { |
| 4774 |
var dayOfYear = |
| 4775 |
Math.round( |
| 4776 |
(this.clone().startOf('day') - this.clone().startOf('year')) / 864e5 |
| 4777 |
) + 1; |
| 4778 |
return input == null ? dayOfYear : this.add(input - dayOfYear, 'd'); |
| 4779 |
} |
| 4780 |
|
| 4781 |
// FORMATTING |
| 4782 |
|
| 4783 |
addFormatToken('m', ['mm', 2], 0, 'minute'); |
| 4784 |
|
| 4785 |
// ALIASES |
| 4786 |
|
| 4787 |
addUnitAlias('minute', 'm'); |
| 4788 |
|
| 4789 |
// PRIORITY |
| 4790 |
|
| 4791 |
addUnitPriority('minute', 14); |
| 4792 |
|
| 4793 |
// PARSING |
| 4794 |
|
| 4795 |
addRegexToken('m', match1to2); |
| 4796 |
addRegexToken('mm', match1to2, match2); |
| 4797 |
addParseToken(['m', 'mm'], MINUTE); |
| 4798 |
|
| 4799 |
// MOMENTS |
| 4800 |
|
| 4801 |
var getSetMinute = makeGetSet('Minutes', false); |
| 4802 |
|
| 4803 |
// FORMATTING |
| 4804 |
|
| 4805 |
addFormatToken('s', ['ss', 2], 0, 'second'); |
| 4806 |
|
| 4807 |
// ALIASES |
| 4808 |
|
| 4809 |
addUnitAlias('second', 's'); |
| 4810 |
|
| 4811 |
// PRIORITY |
| 4812 |
|
| 4813 |
addUnitPriority('second', 15); |
| 4814 |
|
| 4815 |
// PARSING |
| 4816 |
|
| 4817 |
addRegexToken('s', match1to2); |
| 4818 |
addRegexToken('ss', match1to2, match2); |
| 4819 |
addParseToken(['s', 'ss'], SECOND); |
| 4820 |
|
| 4821 |
// MOMENTS |
| 4822 |
|
| 4823 |
var getSetSecond = makeGetSet('Seconds', false); |
| 4824 |
|
| 4825 |
// FORMATTING |
| 4826 |
|
| 4827 |
addFormatToken('S', 0, 0, function () { |
| 4828 |
return ~~(this.millisecond() / 100); |
| 4829 |
}); |
| 4830 |
|
| 4831 |
addFormatToken(0, ['SS', 2], 0, function () { |
| 4832 |
return ~~(this.millisecond() / 10); |
| 4833 |
}); |
| 4834 |
|
| 4835 |
addFormatToken(0, ['SSS', 3], 0, 'millisecond'); |
| 4836 |
addFormatToken(0, ['SSSS', 4], 0, function () { |
| 4837 |
return this.millisecond() * 10; |
| 4838 |
}); |
| 4839 |
addFormatToken(0, ['SSSSS', 5], 0, function () { |
| 4840 |
return this.millisecond() * 100; |
| 4841 |
}); |
| 4842 |
addFormatToken(0, ['SSSSSS', 6], 0, function () { |
| 4843 |
return this.millisecond() * 1000; |
| 4844 |
}); |
| 4845 |
addFormatToken(0, ['SSSSSSS', 7], 0, function () { |
| 4846 |
return this.millisecond() * 10000; |
| 4847 |
}); |
| 4848 |
addFormatToken(0, ['SSSSSSSS', 8], 0, function () { |
| 4849 |
return this.millisecond() * 100000; |
| 4850 |
}); |
| 4851 |
addFormatToken(0, ['SSSSSSSSS', 9], 0, function () { |
| 4852 |
return this.millisecond() * 1000000; |
| 4853 |
}); |
| 4854 |
|
| 4855 |
// ALIASES |
| 4856 |
|
| 4857 |
addUnitAlias('millisecond', 'ms'); |
| 4858 |
|
| 4859 |
// PRIORITY |
| 4860 |
|
| 4861 |
addUnitPriority('millisecond', 16); |
| 4862 |
|
| 4863 |
// PARSING |
| 4864 |
|
| 4865 |
addRegexToken('S', match1to3, match1); |
| 4866 |
addRegexToken('SS', match1to3, match2); |
| 4867 |
addRegexToken('SSS', match1to3, match3); |
| 4868 |
|
| 4869 |
var token, getSetMillisecond; |
| 4870 |
for (token = 'SSSS'; token.length <= 9; token += 'S') { |
| 4871 |
addRegexToken(token, matchUnsigned); |
| 4872 |
} |
| 4873 |
|
| 4874 |
function parseMs(input, array) { |
| 4875 |
array[MILLISECOND] = toInt(('0.' + input) * 1000); |
| 4876 |
} |
| 4877 |
|
| 4878 |
for (token = 'S'; token.length <= 9; token += 'S') { |
| 4879 |
addParseToken(token, parseMs); |
| 4880 |
} |
| 4881 |
|
| 4882 |
getSetMillisecond = makeGetSet('Milliseconds', false); |
| 4883 |
|
| 4884 |
// FORMATTING |
| 4885 |
|
| 4886 |
addFormatToken('z', 0, 0, 'zoneAbbr'); |
| 4887 |
addFormatToken('zz', 0, 0, 'zoneName'); |
| 4888 |
|
| 4889 |
// MOMENTS |
| 4890 |
|
| 4891 |
function getZoneAbbr() { |
| 4892 |
return this._isUTC ? 'UTC' : ''; |
| 4893 |
} |
| 4894 |
|
| 4895 |
function getZoneName() { |
| 4896 |
return this._isUTC ? 'Coordinated Universal Time' : ''; |
| 4897 |
} |
| 4898 |
|
| 4899 |
var proto = Moment.prototype; |
| 4900 |
|
| 4901 |
proto.add = add; |
| 4902 |
proto.calendar = calendar$1; |
| 4903 |
proto.clone = clone; |
| 4904 |
proto.diff = diff; |
| 4905 |
proto.endOf = endOf; |
| 4906 |
proto.format = format; |
| 4907 |
proto.from = from; |
| 4908 |
proto.fromNow = fromNow; |
| 4909 |
proto.to = to; |
| 4910 |
proto.toNow = toNow; |
| 4911 |
proto.get = stringGet; |
| 4912 |
proto.invalidAt = invalidAt; |
| 4913 |
proto.isAfter = isAfter; |
| 4914 |
proto.isBefore = isBefore; |
| 4915 |
proto.isBetween = isBetween; |
| 4916 |
proto.isSame = isSame; |
| 4917 |
proto.isSameOrAfter = isSameOrAfter; |
| 4918 |
proto.isSameOrBefore = isSameOrBefore; |
| 4919 |
proto.isValid = isValid$2; |
| 4920 |
proto.lang = lang; |
| 4921 |
proto.locale = locale; |
| 4922 |
proto.localeData = localeData; |
| 4923 |
proto.max = prototypeMax; |
| 4924 |
proto.min = prototypeMin; |
| 4925 |
proto.parsingFlags = parsingFlags; |
| 4926 |
proto.set = stringSet; |
| 4927 |
proto.startOf = startOf; |
| 4928 |
proto.subtract = subtract; |
| 4929 |
proto.toArray = toArray; |
| 4930 |
proto.toObject = toObject; |
| 4931 |
proto.toDate = toDate; |
| 4932 |
proto.toISOString = toISOString; |
| 4933 |
proto.inspect = inspect; |
| 4934 |
if (typeof Symbol !== 'undefined' && Symbol.for != null) { |
| 4935 |
proto[Symbol.for('nodejs.util.inspect.custom')] = function () { |
| 4936 |
return 'Moment<' + this.format() + '>'; |
| 4937 |
}; |
| 4938 |
} |
| 4939 |
proto.toJSON = toJSON; |
| 4940 |
proto.toString = toString; |
| 4941 |
proto.unix = unix; |
| 4942 |
proto.valueOf = valueOf; |
| 4943 |
proto.creationData = creationData; |
| 4944 |
proto.eraName = getEraName; |
| 4945 |
proto.eraNarrow = getEraNarrow; |
| 4946 |
proto.eraAbbr = getEraAbbr; |
| 4947 |
proto.eraYear = getEraYear; |
| 4948 |
proto.year = getSetYear; |
| 4949 |
proto.isLeapYear = getIsLeapYear; |
| 4950 |
proto.weekYear = getSetWeekYear; |
| 4951 |
proto.isoWeekYear = getSetISOWeekYear; |
| 4952 |
proto.quarter = proto.quarters = getSetQuarter; |
| 4953 |
proto.month = getSetMonth; |
| 4954 |
proto.daysInMonth = getDaysInMonth; |
| 4955 |
proto.week = proto.weeks = getSetWeek; |
| 4956 |
proto.isoWeek = proto.isoWeeks = getSetISOWeek; |
| 4957 |
proto.weeksInYear = getWeeksInYear; |
| 4958 |
proto.weeksInWeekYear = getWeeksInWeekYear; |
| 4959 |
proto.isoWeeksInYear = getISOWeeksInYear; |
| 4960 |
proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear; |
| 4961 |
proto.date = getSetDayOfMonth; |
| 4962 |
proto.day = proto.days = getSetDayOfWeek; |
| 4963 |
proto.weekday = getSetLocaleDayOfWeek; |
| 4964 |
proto.isoWeekday = getSetISODayOfWeek; |
| 4965 |
proto.dayOfYear = getSetDayOfYear; |
| 4966 |
proto.hour = proto.hours = getSetHour; |
| 4967 |
proto.minute = proto.minutes = getSetMinute; |
| 4968 |
proto.second = proto.seconds = getSetSecond; |
| 4969 |
proto.millisecond = proto.milliseconds = getSetMillisecond; |
| 4970 |
proto.utcOffset = getSetOffset; |
| 4971 |
proto.utc = setOffsetToUTC; |
| 4972 |
proto.local = setOffsetToLocal; |
| 4973 |
proto.parseZone = setOffsetToParsedOffset; |
| 4974 |
proto.hasAlignedHourOffset = hasAlignedHourOffset; |
| 4975 |
proto.isDST = isDaylightSavingTime; |
| 4976 |
proto.isLocal = isLocal; |
| 4977 |
proto.isUtcOffset = isUtcOffset; |
| 4978 |
proto.isUtc = isUtc; |
| 4979 |
proto.isUTC = isUtc; |
| 4980 |
proto.zoneAbbr = getZoneAbbr; |
| 4981 |
proto.zoneName = getZoneName; |
| 4982 |
proto.dates = deprecate( |
| 4983 |
'dates accessor is deprecated. Use date instead.', |
| 4984 |
getSetDayOfMonth |
| 4985 |
); |
| 4986 |
proto.months = deprecate( |
| 4987 |
'months accessor is deprecated. Use month instead', |
| 4988 |
getSetMonth |
| 4989 |
); |
| 4990 |
proto.years = deprecate( |
| 4991 |
'years accessor is deprecated. Use year instead', |
| 4992 |
getSetYear |
| 4993 |
); |
| 4994 |
proto.zone = deprecate( |
| 4995 |
'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', |
| 4996 |
getSetZone |
| 4997 |
); |
| 4998 |
proto.isDSTShifted = deprecate( |
| 4999 |
'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', |
| 5000 |
isDaylightSavingTimeShifted |
| 5001 |
); |
| 5002 |
|
| 5003 |
function createUnix(input) { |
| 5004 |
return createLocal(input * 1000); |
| 5005 |
} |
| 5006 |
|
| 5007 |
function createInZone() { |
| 5008 |
return createLocal.apply(null, arguments).parseZone(); |
| 5009 |
} |
| 5010 |
|
| 5011 |
function preParsePostFormat(string) { |
| 5012 |
return string; |
| 5013 |
} |
| 5014 |
|
| 5015 |
var proto$1 = Locale.prototype; |
| 5016 |
|
| 5017 |
proto$1.calendar = calendar; |
| 5018 |
proto$1.longDateFormat = longDateFormat; |
| 5019 |
proto$1.invalidDate = invalidDate; |
| 5020 |
proto$1.ordinal = ordinal; |
| 5021 |
proto$1.preparse = preParsePostFormat; |
| 5022 |
proto$1.postformat = preParsePostFormat; |
| 5023 |
proto$1.relativeTime = relativeTime; |
| 5024 |
proto$1.pastFuture = pastFuture; |
| 5025 |
proto$1.set = set; |
| 5026 |
proto$1.eras = localeEras; |
| 5027 |
proto$1.erasParse = localeErasParse; |
| 5028 |
proto$1.erasConvertYear = localeErasConvertYear; |
| 5029 |
proto$1.erasAbbrRegex = erasAbbrRegex; |
| 5030 |
proto$1.erasNameRegex = erasNameRegex; |
| 5031 |
proto$1.erasNarrowRegex = erasNarrowRegex; |
| 5032 |
|
| 5033 |
proto$1.months = localeMonths; |
| 5034 |
proto$1.monthsShort = localeMonthsShort; |
| 5035 |
proto$1.monthsParse = localeMonthsParse; |
| 5036 |
proto$1.monthsRegex = monthsRegex; |
| 5037 |
proto$1.monthsShortRegex = monthsShortRegex; |
| 5038 |
proto$1.week = localeWeek; |
| 5039 |
proto$1.firstDayOfYear = localeFirstDayOfYear; |
| 5040 |
proto$1.firstDayOfWeek = localeFirstDayOfWeek; |
| 5041 |
|
| 5042 |
proto$1.weekdays = localeWeekdays; |
| 5043 |
proto$1.weekdaysMin = localeWeekdaysMin; |
| 5044 |
proto$1.weekdaysShort = localeWeekdaysShort; |
| 5045 |
proto$1.weekdaysParse = localeWeekdaysParse; |
| 5046 |
|
| 5047 |
proto$1.weekdaysRegex = weekdaysRegex; |
| 5048 |
proto$1.weekdaysShortRegex = weekdaysShortRegex; |
| 5049 |
proto$1.weekdaysMinRegex = weekdaysMinRegex; |
| 5050 |
|
| 5051 |
proto$1.isPM = localeIsPM; |
| 5052 |
proto$1.meridiem = localeMeridiem; |
| 5053 |
|
| 5054 |
function get$1(format, index, field, setter) { |
| 5055 |
var locale = getLocale(), |
| 5056 |
utc = createUTC().set(setter, index); |
| 5057 |
return locale[field](utc, format); |
| 5058 |
} |
| 5059 |
|
| 5060 |
function listMonthsImpl(format, index, field) { |
| 5061 |
if (isNumber(format)) { |
| 5062 |
index = format; |
| 5063 |
format = undefined; |
| 5064 |
} |
| 5065 |
|
| 5066 |
format = format || ''; |
| 5067 |
|
| 5068 |
if (index != null) { |
| 5069 |
return get$1(format, index, field, 'month'); |
| 5070 |
} |
| 5071 |
|
| 5072 |
var i, |
| 5073 |
out = []; |
| 5074 |
for (i = 0; i < 12; i++) { |
| 5075 |
out[i] = get$1(format, i, field, 'month'); |
| 5076 |
} |
| 5077 |
return out; |
| 5078 |
} |
| 5079 |
|
| 5080 |
// () |
| 5081 |
// (5) |
| 5082 |
// (fmt, 5) |
| 5083 |
// (fmt) |
| 5084 |
// (true) |
| 5085 |
// (true, 5) |
| 5086 |
// (true, fmt, 5) |
| 5087 |
// (true, fmt) |
| 5088 |
function listWeekdaysImpl(localeSorted, format, index, field) { |
| 5089 |
if (typeof localeSorted === 'boolean') { |
| 5090 |
if (isNumber(format)) { |
| 5091 |
index = format; |
| 5092 |
format = undefined; |
| 5093 |
} |
| 5094 |
|
| 5095 |
format = format || ''; |
| 5096 |
} else { |
| 5097 |
format = localeSorted; |
| 5098 |
index = format; |
| 5099 |
localeSorted = false; |
| 5100 |
|
| 5101 |
if (isNumber(format)) { |
| 5102 |
index = format; |
| 5103 |
format = undefined; |
| 5104 |
} |
| 5105 |
|
| 5106 |
format = format || ''; |
| 5107 |
} |
| 5108 |
|
| 5109 |
var locale = getLocale(), |
| 5110 |
shift = localeSorted ? locale._week.dow : 0, |
| 5111 |
i, |
| 5112 |
out = []; |
| 5113 |
|
| 5114 |
if (index != null) { |
| 5115 |
return get$1(format, (index + shift) % 7, field, 'day'); |
| 5116 |
} |
| 5117 |
|
| 5118 |
for (i = 0; i < 7; i++) { |
| 5119 |
out[i] = get$1(format, (i + shift) % 7, field, 'day'); |
| 5120 |
} |
| 5121 |
return out; |
| 5122 |
} |
| 5123 |
|
| 5124 |
function listMonths(format, index) { |
| 5125 |
return listMonthsImpl(format, index, 'months'); |
| 5126 |
} |
| 5127 |
|
| 5128 |
function listMonthsShort(format, index) { |
| 5129 |
return listMonthsImpl(format, index, 'monthsShort'); |
| 5130 |
} |
| 5131 |
|
| 5132 |
function listWeekdays(localeSorted, format, index) { |
| 5133 |
return listWeekdaysImpl(localeSorted, format, index, 'weekdays'); |
| 5134 |
} |
| 5135 |
|
| 5136 |
function listWeekdaysShort(localeSorted, format, index) { |
| 5137 |
return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort'); |
| 5138 |
} |
| 5139 |
|
| 5140 |
function listWeekdaysMin(localeSorted, format, index) { |
| 5141 |
return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin'); |
| 5142 |
} |
| 5143 |
|
| 5144 |
getSetGlobalLocale('en', { |
| 5145 |
eras: [ |
| 5146 |
{ |
| 5147 |
since: '0001-01-01', |
| 5148 |
until: +Infinity, |
| 5149 |
offset: 1, |
| 5150 |
name: 'Anno Domini', |
| 5151 |
narrow: 'AD', |
| 5152 |
abbr: 'AD', |
| 5153 |
}, |
| 5154 |
{ |
| 5155 |
since: '0000-12-31', |
| 5156 |
until: -Infinity, |
| 5157 |
offset: 1, |
| 5158 |
name: 'Before Christ', |
| 5159 |
narrow: 'BC', |
| 5160 |
abbr: 'BC', |
| 5161 |
}, |
| 5162 |
], |
| 5163 |
dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, |
| 5164 |
ordinal: function (number) { |
| 5165 |
var b = number % 10, |
| 5166 |
output = |
| 5167 |
toInt((number % 100) / 10) === 1 |
| 5168 |
? 'th' |
| 5169 |
: b === 1 |
| 5170 |
? 'st' |
| 5171 |
: b === 2 |
| 5172 |
? 'nd' |
| 5173 |
: b === 3 |
| 5174 |
? 'rd' |
| 5175 |
: 'th'; |
| 5176 |
return number + output; |
| 5177 |
}, |
| 5178 |
}); |
| 5179 |
|
| 5180 |
// Side effect imports |
| 5181 |
|
| 5182 |
hooks.lang = deprecate( |
| 5183 |
'moment.lang is deprecated. Use moment.locale instead.', |
| 5184 |
getSetGlobalLocale |
| 5185 |
); |
| 5186 |
hooks.langData = deprecate( |
| 5187 |
'moment.langData is deprecated. Use moment.localeData instead.', |
| 5188 |
getLocale |
| 5189 |
); |
| 5190 |
|
| 5191 |
var mathAbs = Math.abs; |
| 5192 |
|
| 5193 |
function abs() { |
| 5194 |
var data = this._data; |
| 5195 |
|
| 5196 |
this._milliseconds = mathAbs(this._milliseconds); |
| 5197 |
this._days = mathAbs(this._days); |
| 5198 |
this._months = mathAbs(this._months); |
| 5199 |
|
| 5200 |
data.milliseconds = mathAbs(data.milliseconds); |
| 5201 |
data.seconds = mathAbs(data.seconds); |
| 5202 |
data.minutes = mathAbs(data.minutes); |
| 5203 |
data.hours = mathAbs(data.hours); |
| 5204 |
data.months = mathAbs(data.months); |
| 5205 |
data.years = mathAbs(data.years); |
| 5206 |
|
| 5207 |
return this; |
| 5208 |
} |
| 5209 |
|
| 5210 |
function addSubtract$1(duration, input, value, direction) { |
| 5211 |
var other = createDuration(input, value); |
| 5212 |
|
| 5213 |
duration._milliseconds += direction * other._milliseconds; |
| 5214 |
duration._days += direction * other._days; |
| 5215 |
duration._months += direction * other._months; |
| 5216 |
|
| 5217 |
return duration._bubble(); |
| 5218 |
} |
| 5219 |
|
| 5220 |
// supports only 2.0-style add(1, 's') or add(duration) |
| 5221 |
function add$1(input, value) { |
| 5222 |
return addSubtract$1(this, input, value, 1); |
| 5223 |
} |
| 5224 |
|
| 5225 |
// supports only 2.0-style subtract(1, 's') or subtract(duration) |
| 5226 |
function subtract$1(input, value) { |
| 5227 |
return addSubtract$1(this, input, value, -1); |
| 5228 |
} |
| 5229 |
|
| 5230 |
function absCeil(number) { |
| 5231 |
if (number < 0) { |
| 5232 |
return Math.floor(number); |
| 5233 |
} else { |
| 5234 |
return Math.ceil(number); |
| 5235 |
} |
| 5236 |
} |
| 5237 |
|
| 5238 |
function bubble() { |
| 5239 |
var milliseconds = this._milliseconds, |
| 5240 |
days = this._days, |
| 5241 |
months = this._months, |
| 5242 |
data = this._data, |
| 5243 |
seconds, |
| 5244 |
minutes, |
| 5245 |
hours, |
| 5246 |
years, |
| 5247 |
monthsFromDays; |
| 5248 |
|
| 5249 |
// if we have a mix of positive and negative values, bubble down first |
| 5250 |
// check: https://github.com/moment/moment/issues/2166 |
| 5251 |
if ( |
| 5252 |
!( |
| 5253 |
(milliseconds >= 0 && days >= 0 && months >= 0) || |
| 5254 |
(milliseconds <= 0 && days <= 0 && months <= 0) |
| 5255 |
) |
| 5256 |
) { |
| 5257 |
milliseconds += absCeil(monthsToDays(months) + days) * 864e5; |
| 5258 |
days = 0; |
| 5259 |
months = 0; |
| 5260 |
} |
| 5261 |
|
| 5262 |
// The following code bubbles up values, see the tests for |
| 5263 |
// examples of what that means. |
| 5264 |
data.milliseconds = milliseconds % 1000; |
| 5265 |
|
| 5266 |
seconds = absFloor(milliseconds / 1000); |
| 5267 |
data.seconds = seconds % 60; |
| 5268 |
|
| 5269 |
minutes = absFloor(seconds / 60); |
| 5270 |
data.minutes = minutes % 60; |
| 5271 |
|
| 5272 |
hours = absFloor(minutes / 60); |
| 5273 |
data.hours = hours % 24; |
| 5274 |
|
| 5275 |
days += absFloor(hours / 24); |
| 5276 |
|
| 5277 |
// convert days to months |
| 5278 |
monthsFromDays = absFloor(daysToMonths(days)); |
| 5279 |
months += monthsFromDays; |
| 5280 |
days -= absCeil(monthsToDays(monthsFromDays)); |
| 5281 |
|
| 5282 |
// 12 months -> 1 year |
| 5283 |
years = absFloor(months / 12); |
| 5284 |
months %= 12; |
| 5285 |
|
| 5286 |
data.days = days; |
| 5287 |
data.months = months; |
| 5288 |
data.years = years; |
| 5289 |
|
| 5290 |
return this; |
| 5291 |
} |
| 5292 |
|
| 5293 |
function daysToMonths(days) { |
| 5294 |
// 400 years have 146097 days (taking into account leap year rules) |
| 5295 |
// 400 years have 12 months === 4800 |
| 5296 |
return (days * 4800) / 146097; |
| 5297 |
} |
| 5298 |
|
| 5299 |
function monthsToDays(months) { |
| 5300 |
// the reverse of daysToMonths |
| 5301 |
return (months * 146097) / 4800; |
| 5302 |
} |
| 5303 |
|
| 5304 |
function as(units) { |
| 5305 |
if (!this.isValid()) { |
| 5306 |
return NaN; |
| 5307 |
} |
| 5308 |
var days, |
| 5309 |
months, |
| 5310 |
milliseconds = this._milliseconds; |
| 5311 |
|
| 5312 |
units = normalizeUnits(units); |
| 5313 |
|
| 5314 |
if (units === 'month' || units === 'quarter' || units === 'year') { |
| 5315 |
days = this._days + milliseconds / 864e5; |
| 5316 |
months = this._months + daysToMonths(days); |
| 5317 |
switch (units) { |
| 5318 |
case 'month': |
| 5319 |
return months; |
| 5320 |
case 'quarter': |
| 5321 |
return months / 3; |
| 5322 |
case 'year': |
| 5323 |
return months / 12; |
| 5324 |
} |
| 5325 |
} else { |
| 5326 |
// handle milliseconds separately because of floating point math errors (issue #1867) |
| 5327 |
days = this._days + Math.round(monthsToDays(this._months)); |
| 5328 |
switch (units) { |
| 5329 |
case 'week': |
| 5330 |
return days / 7 + milliseconds / 6048e5; |
| 5331 |
case 'day': |
| 5332 |
return days + milliseconds / 864e5; |
| 5333 |
case 'hour': |
| 5334 |
return days * 24 + milliseconds / 36e5; |
| 5335 |
case 'minute': |
| 5336 |
return days * 1440 + milliseconds / 6e4; |
| 5337 |
case 'second': |
| 5338 |
return days * 86400 + milliseconds / 1000; |
| 5339 |
// Math.floor prevents floating point math errors here |
| 5340 |
case 'millisecond': |
| 5341 |
return Math.floor(days * 864e5) + milliseconds; |
| 5342 |
default: |
| 5343 |
throw new Error('Unknown unit ' + units); |
| 5344 |
} |
| 5345 |
} |
| 5346 |
} |
| 5347 |
|
| 5348 |
// TODO: Use this.as('ms')? |
| 5349 |
function valueOf$1() { |
| 5350 |
if (!this.isValid()) { |
| 5351 |
return NaN; |
| 5352 |
} |
| 5353 |
return ( |
| 5354 |
this._milliseconds + |
| 5355 |
this._days * 864e5 + |
| 5356 |
(this._months % 12) * 2592e6 + |
| 5357 |
toInt(this._months / 12) * 31536e6 |
| 5358 |
); |
| 5359 |
} |
| 5360 |
|
| 5361 |
function makeAs(alias) { |
| 5362 |
return function () { |
| 5363 |
return this.as(alias); |
| 5364 |
}; |
| 5365 |
} |
| 5366 |
|
| 5367 |
var asMilliseconds = makeAs('ms'), |
| 5368 |
asSeconds = makeAs('s'), |
| 5369 |
asMinutes = makeAs('m'), |
| 5370 |
asHours = makeAs('h'), |
| 5371 |
asDays = makeAs('d'), |
| 5372 |
asWeeks = makeAs('w'), |
| 5373 |
asMonths = makeAs('M'), |
| 5374 |
asQuarters = makeAs('Q'), |
| 5375 |
asYears = makeAs('y'); |
| 5376 |
|
| 5377 |
function clone$1() { |
| 5378 |
return createDuration(this); |
| 5379 |
} |
| 5380 |
|
| 5381 |
function get$2(units) { |
| 5382 |
units = normalizeUnits(units); |
| 5383 |
return this.isValid() ? this[units + 's']() : NaN; |
| 5384 |
} |
| 5385 |
|
| 5386 |
function makeGetter(name) { |
| 5387 |
return function () { |
| 5388 |
return this.isValid() ? this._data[name] : NaN; |
| 5389 |
}; |
| 5390 |
} |
| 5391 |
|
| 5392 |
var milliseconds = makeGetter('milliseconds'), |
| 5393 |
seconds = makeGetter('seconds'), |
| 5394 |
minutes = makeGetter('minutes'), |
| 5395 |
hours = makeGetter('hours'), |
| 5396 |
days = makeGetter('days'), |
| 5397 |
months = makeGetter('months'), |
| 5398 |
years = makeGetter('years'); |
| 5399 |
|
| 5400 |
function weeks() { |
| 5401 |
return absFloor(this.days() / 7); |
| 5402 |
} |
| 5403 |
|
| 5404 |
var round = Math.round, |
| 5405 |
thresholds = { |
| 5406 |
ss: 44, // a few seconds to seconds |
| 5407 |
s: 45, // seconds to minute |
| 5408 |
m: 45, // minutes to hour |
| 5409 |
h: 22, // hours to day |
| 5410 |
d: 26, // days to month/week |
| 5411 |
w: null, // weeks to month |
| 5412 |
M: 11, // months to year |
| 5413 |
}; |
| 5414 |
|
| 5415 |
// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize |
| 5416 |
function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) { |
| 5417 |
return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture); |
| 5418 |
} |
| 5419 |
|
| 5420 |
function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) { |
| 5421 |
var duration = createDuration(posNegDuration).abs(), |
| 5422 |
seconds = round(duration.as('s')), |
| 5423 |
minutes = round(duration.as('m')), |
| 5424 |
hours = round(duration.as('h')), |
| 5425 |
days = round(duration.as('d')), |
| 5426 |
months = round(duration.as('M')), |
| 5427 |
weeks = round(duration.as('w')), |
| 5428 |
years = round(duration.as('y')), |
| 5429 |
a = |
| 5430 |
(seconds <= thresholds.ss && ['s', seconds]) || |
| 5431 |
(seconds < thresholds.s && ['ss', seconds]) || |
| 5432 |
(minutes <= 1 && ['m']) || |
| 5433 |
(minutes < thresholds.m && ['mm', minutes]) || |
| 5434 |
(hours <= 1 && ['h']) || |
| 5435 |
(hours < thresholds.h && ['hh', hours]) || |
| 5436 |
(days <= 1 && ['d']) || |
| 5437 |
(days < thresholds.d && ['dd', days]); |
| 5438 |
|
| 5439 |
if (thresholds.w != null) { |
| 5440 |
a = |
| 5441 |
a || |
| 5442 |
(weeks <= 1 && ['w']) || |
| 5443 |
(weeks < thresholds.w && ['ww', weeks]); |
| 5444 |
} |
| 5445 |
a = a || |
| 5446 |
(months <= 1 && ['M']) || |
| 5447 |
(months < thresholds.M && ['MM', months]) || |
| 5448 |
(years <= 1 && ['y']) || ['yy', years]; |
| 5449 |
|
| 5450 |
a[2] = withoutSuffix; |
| 5451 |
a[3] = +posNegDuration > 0; |
| 5452 |
a[4] = locale; |
| 5453 |
return substituteTimeAgo.apply(null, a); |
| 5454 |
} |
| 5455 |
|
| 5456 |
// This function allows you to set the rounding function for relative time strings |
| 5457 |
function getSetRelativeTimeRounding(roundingFunction) { |
| 5458 |
if (roundingFunction === undefined) { |
| 5459 |
return round; |
| 5460 |
} |
| 5461 |
if (typeof roundingFunction === 'function') { |
| 5462 |
round = roundingFunction; |
| 5463 |
return true; |
| 5464 |
} |
| 5465 |
return false; |
| 5466 |
} |
| 5467 |
|
| 5468 |
// This function allows you to set a threshold for relative time strings |
| 5469 |
function getSetRelativeTimeThreshold(threshold, limit) { |
| 5470 |
if (thresholds[threshold] === undefined) { |
| 5471 |
return false; |
| 5472 |
} |
| 5473 |
if (limit === undefined) { |
| 5474 |
return thresholds[threshold]; |
| 5475 |
} |
| 5476 |
thresholds[threshold] = limit; |
| 5477 |
if (threshold === 's') { |
| 5478 |
thresholds.ss = limit - 1; |
| 5479 |
} |
| 5480 |
return true; |
| 5481 |
} |
| 5482 |
|
| 5483 |
function humanize(argWithSuffix, argThresholds) { |
| 5484 |
if (!this.isValid()) { |
| 5485 |
return this.localeData().invalidDate(); |
| 5486 |
} |
| 5487 |
|
| 5488 |
var withSuffix = false, |
| 5489 |
th = thresholds, |
| 5490 |
locale, |
| 5491 |
output; |
| 5492 |
|
| 5493 |
if (typeof argWithSuffix === 'object') { |
| 5494 |
argThresholds = argWithSuffix; |
| 5495 |
argWithSuffix = false; |
| 5496 |
} |
| 5497 |
if (typeof argWithSuffix === 'boolean') { |
| 5498 |
withSuffix = argWithSuffix; |
| 5499 |
} |
| 5500 |
if (typeof argThresholds === 'object') { |
| 5501 |
th = Object.assign({}, thresholds, argThresholds); |
| 5502 |
if (argThresholds.s != null && argThresholds.ss == null) { |
| 5503 |
th.ss = argThresholds.s - 1; |
| 5504 |
} |
| 5505 |
} |
| 5506 |
|
| 5507 |
locale = this.localeData(); |
| 5508 |
output = relativeTime$1(this, !withSuffix, th, locale); |
| 5509 |
|
| 5510 |
if (withSuffix) { |
| 5511 |
output = locale.pastFuture(+this, output); |
| 5512 |
} |
| 5513 |
|
| 5514 |
return locale.postformat(output); |
| 5515 |
} |
| 5516 |
|
| 5517 |
var abs$1 = Math.abs; |
| 5518 |
|
| 5519 |
function sign(x) { |
| 5520 |
return (x > 0) - (x < 0) || +x; |
| 5521 |
} |
| 5522 |
|
| 5523 |
function toISOString$1() { |
| 5524 |
// for ISO strings we do not use the normal bubbling rules: |
| 5525 |
// * milliseconds bubble up until they become hours |
| 5526 |
// * days do not bubble at all |
| 5527 |
// * months bubble up until they become years |
| 5528 |
// This is because there is no context-free conversion between hours and days |
| 5529 |
// (think of clock changes) |
| 5530 |
// and also not between days and months (28-31 days per month) |
| 5531 |
if (!this.isValid()) { |
| 5532 |
return this.localeData().invalidDate(); |
| 5533 |
} |
| 5534 |
|
| 5535 |
var seconds = abs$1(this._milliseconds) / 1000, |
| 5536 |
days = abs$1(this._days), |
| 5537 |
months = abs$1(this._months), |
| 5538 |
minutes, |
| 5539 |
hours, |
| 5540 |
years, |
| 5541 |
s, |
| 5542 |
total = this.asSeconds(), |
| 5543 |
totalSign, |
| 5544 |
ymSign, |
| 5545 |
daysSign, |
| 5546 |
hmsSign; |
| 5547 |
|
| 5548 |
if (!total) { |
| 5549 |
// this is the same as C#'s (Noda) and python (isodate)... |
| 5550 |
// but not other JS (goog.date) |
| 5551 |
return 'P0D'; |
| 5552 |
} |
| 5553 |
|
| 5554 |
// 3600 seconds -> 60 minutes -> 1 hour |
| 5555 |
minutes = absFloor(seconds / 60); |
| 5556 |
hours = absFloor(minutes / 60); |
| 5557 |
seconds %= 60; |
| 5558 |
minutes %= 60; |
| 5559 |
|
| 5560 |
// 12 months -> 1 year |
| 5561 |
years = absFloor(months / 12); |
| 5562 |
months %= 12; |
| 5563 |
|
| 5564 |
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js |
| 5565 |
s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : ''; |
| 5566 |
|
| 5567 |
totalSign = total < 0 ? '-' : ''; |
| 5568 |
ymSign = sign(this._months) !== sign(total) ? '-' : ''; |
| 5569 |
daysSign = sign(this._days) !== sign(total) ? '-' : ''; |
| 5570 |
hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : ''; |
| 5571 |
|
| 5572 |
return ( |
| 5573 |
totalSign + |
| 5574 |
'P' + |
| 5575 |
(years ? ymSign + years + 'Y' : '') + |
| 5576 |
(months ? ymSign + months + 'M' : '') + |
| 5577 |
(days ? daysSign + days + 'D' : '') + |
| 5578 |
(hours || minutes || seconds ? 'T' : '') + |
| 5579 |
(hours ? hmsSign + hours + 'H' : '') + |
| 5580 |
(minutes ? hmsSign + minutes + 'M' : '') + |
| 5581 |
(seconds ? hmsSign + s + 'S' : '') |
| 5582 |
); |
| 5583 |
} |
| 5584 |
|
| 5585 |
var proto$2 = Duration.prototype; |
| 5586 |
|
| 5587 |
proto$2.isValid = isValid$1; |
| 5588 |
proto$2.abs = abs; |
| 5589 |
proto$2.add = add$1; |
| 5590 |
proto$2.subtract = subtract$1; |
| 5591 |
proto$2.as = as; |
| 5592 |
proto$2.asMilliseconds = asMilliseconds; |
| 5593 |
proto$2.asSeconds = asSeconds; |
| 5594 |
proto$2.asMinutes = asMinutes; |
| 5595 |
proto$2.asHours = asHours; |
| 5596 |
proto$2.asDays = asDays; |
| 5597 |
proto$2.asWeeks = asWeeks; |
| 5598 |
proto$2.asMonths = asMonths; |
| 5599 |
proto$2.asQuarters = asQuarters; |
| 5600 |
proto$2.asYears = asYears; |
| 5601 |
proto$2.valueOf = valueOf$1; |
| 5602 |
proto$2._bubble = bubble; |
| 5603 |
proto$2.clone = clone$1; |
| 5604 |
proto$2.get = get$2; |
| 5605 |
proto$2.milliseconds = milliseconds; |
| 5606 |
proto$2.seconds = seconds; |
| 5607 |
proto$2.minutes = minutes; |
| 5608 |
proto$2.hours = hours; |
| 5609 |
proto$2.days = days; |
| 5610 |
proto$2.weeks = weeks; |
| 5611 |
proto$2.months = months; |
| 5612 |
proto$2.years = years; |
| 5613 |
proto$2.humanize = humanize; |
| 5614 |
proto$2.toISOString = toISOString$1; |
| 5615 |
proto$2.toString = toISOString$1; |
| 5616 |
proto$2.toJSON = toISOString$1; |
| 5617 |
proto$2.locale = locale; |
| 5618 |
proto$2.localeData = localeData; |
| 5619 |
|
| 5620 |
proto$2.toIsoString = deprecate( |
| 5621 |
'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', |
| 5622 |
toISOString$1 |
| 5623 |
); |
| 5624 |
proto$2.lang = lang; |
| 5625 |
|
| 5626 |
// FORMATTING |
| 5627 |
|
| 5628 |
addFormatToken('X', 0, 0, 'unix'); |
| 5629 |
addFormatToken('x', 0, 0, 'valueOf'); |
| 5630 |
|
| 5631 |
// PARSING |
| 5632 |
|
| 5633 |
addRegexToken('x', matchSigned); |
| 5634 |
addRegexToken('X', matchTimestamp); |
| 5635 |
addParseToken('X', function (input, array, config) { |
| 5636 |
config._d = new Date(parseFloat(input) * 1000); |
| 5637 |
}); |
| 5638 |
addParseToken('x', function (input, array, config) { |
| 5639 |
config._d = new Date(toInt(input)); |
| 5640 |
}); |
| 5641 |
|
| 5642 |
//! moment.js |
| 5643 |
|
| 5644 |
hooks.version = '2.29.1'; |
| 5645 |
|
| 5646 |
setHookCallback(createLocal); |
| 5647 |
|
| 5648 |
hooks.fn = proto; |
| 5649 |
hooks.min = min; |
| 5650 |
hooks.max = max; |
| 5651 |
hooks.now = now; |
| 5652 |
hooks.utc = createUTC; |
| 5653 |
hooks.unix = createUnix; |
| 5654 |
hooks.months = listMonths; |
| 5655 |
hooks.isDate = isDate; |
| 5656 |
hooks.locale = getSetGlobalLocale; |
| 5657 |
hooks.invalid = createInvalid; |
| 5658 |
hooks.duration = createDuration; |
| 5659 |
hooks.isMoment = isMoment; |
| 5660 |
hooks.weekdays = listWeekdays; |
| 5661 |
hooks.parseZone = createInZone; |
| 5662 |
hooks.localeData = getLocale; |
| 5663 |
hooks.isDuration = isDuration; |
| 5664 |
hooks.monthsShort = listMonthsShort; |
| 5665 |
hooks.weekdaysMin = listWeekdaysMin; |
| 5666 |
hooks.defineLocale = defineLocale; |
| 5667 |
hooks.updateLocale = updateLocale; |
| 5668 |
hooks.locales = listLocales; |
| 5669 |
hooks.weekdaysShort = listWeekdaysShort; |
| 5670 |
hooks.normalizeUnits = normalizeUnits; |
| 5671 |
hooks.relativeTimeRounding = getSetRelativeTimeRounding; |
| 5672 |
hooks.relativeTimeThreshold = getSetRelativeTimeThreshold; |
| 5673 |
hooks.calendarFormat = getCalendarFormat; |
| 5674 |
hooks.prototype = proto; |
| 5675 |
|
| 5676 |
// currently HTML5 input type only supports 24-hour formats |
| 5677 |
hooks.HTML5_FMT = { |
| 5678 |
DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" /> |
| 5679 |
DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" /> |
| 5680 |
DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" /> |
| 5681 |
DATE: 'YYYY-MM-DD', // <input type="date" /> |
| 5682 |
TIME: 'HH:mm', // <input type="time" /> |
| 5683 |
TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" /> |
| 5684 |
TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" /> |
| 5685 |
WEEK: 'GGGG-[W]WW', // <input type="week" /> |
| 5686 |
MONTH: 'YYYY-MM', // <input type="month" /> |
| 5687 |
}; |
| 5688 |
|
| 5689 |
//! moment.js locale configuration |
| 5690 |
|
| 5691 |
hooks.defineLocale('af', { |
| 5692 |
months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split( |
| 5693 |
'_' |
| 5694 |
), |
| 5695 |
monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'), |
| 5696 |
weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split( |
| 5697 |
'_' |
| 5698 |
), |
| 5699 |
weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), |
| 5700 |
weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), |
| 5701 |
meridiemParse: /vm|nm/i, |
| 5702 |
isPM: function (input) { |
| 5703 |
return /^nm$/i.test(input); |
| 5704 |
}, |
| 5705 |
meridiem: function (hours, minutes, isLower) { |
| 5706 |
if (hours < 12) { |
| 5707 |
return isLower ? 'vm' : 'VM'; |
| 5708 |
} else { |
| 5709 |
return isLower ? 'nm' : 'NM'; |
| 5710 |
} |
| 5711 |
}, |
| 5712 |
longDateFormat: { |
| 5713 |
LT: 'HH:mm', |
| 5714 |
LTS: 'HH:mm:ss', |
| 5715 |
L: 'DD/MM/YYYY', |
| 5716 |
LL: 'D MMMM YYYY', |
| 5717 |
LLL: 'D MMMM YYYY HH:mm', |
| 5718 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 5719 |
}, |
| 5720 |
calendar: { |
| 5721 |
sameDay: '[Vandag om] LT', |
| 5722 |
nextDay: '[Môre om] LT', |
| 5723 |
nextWeek: 'dddd [om] LT', |
| 5724 |
lastDay: '[Gister om] LT', |
| 5725 |
lastWeek: '[Laas] dddd [om] LT', |
| 5726 |
sameElse: 'L', |
| 5727 |
}, |
| 5728 |
relativeTime: { |
| 5729 |
future: 'oor %s', |
| 5730 |
past: '%s gelede', |
| 5731 |
s: "'n paar sekondes", |
| 5732 |
ss: '%d sekondes', |
| 5733 |
m: "'n minuut", |
| 5734 |
mm: '%d minute', |
| 5735 |
h: "'n uur", |
| 5736 |
hh: '%d ure', |
| 5737 |
d: "'n dag", |
| 5738 |
dd: '%d dae', |
| 5739 |
M: "'n maand", |
| 5740 |
MM: '%d maande', |
| 5741 |
y: "'n jaar", |
| 5742 |
yy: '%d jaar', |
| 5743 |
}, |
| 5744 |
dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, |
| 5745 |
ordinal: function (number) { |
| 5746 |
return ( |
| 5747 |
number + |
| 5748 |
(number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') |
| 5749 |
); // Thanks to Joris Röling : https://github.com/jjupiter |
| 5750 |
}, |
| 5751 |
week: { |
| 5752 |
dow: 1, // Maandag is die eerste dag van die week. |
| 5753 |
doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar. |
| 5754 |
}, |
| 5755 |
}); |
| 5756 |
|
| 5757 |
//! moment.js locale configuration |
| 5758 |
|
| 5759 |
var pluralForm = function (n) { |
| 5760 |
return n === 0 |
| 5761 |
? 0 |
| 5762 |
: n === 1 |
| 5763 |
? 1 |
| 5764 |
: n === 2 |
| 5765 |
? 2 |
| 5766 |
: n % 100 >= 3 && n % 100 <= 10 |
| 5767 |
? 3 |
| 5768 |
: n % 100 >= 11 |
| 5769 |
? 4 |
| 5770 |
: 5; |
| 5771 |
}, |
| 5772 |
plurals = { |
| 5773 |
s: [ |
| 5774 |
'أقل من ثانية', |
| 5775 |
'ثانية واحدة', |
| 5776 |
['ثانيتان', 'ثانيتين'], |
| 5777 |
'%d ثوان', |
| 5778 |
'%d ثانية', |
| 5779 |
'%d ثانية', |
| 5780 |
], |
| 5781 |
m: [ |
| 5782 |
'أقل من دقيقة', |
| 5783 |
'دقيقة واحدة', |
| 5784 |
['دقيقتان', 'دقيقتين'], |
| 5785 |
'%d دقائق', |
| 5786 |
'%d دقيقة', |
| 5787 |
'%d دقيقة', |
| 5788 |
], |
| 5789 |
h: [ |
| 5790 |
'أقل من ساعة', |
| 5791 |
'ساعة واحدة', |
| 5792 |
['ساعتان', 'ساعتين'], |
| 5793 |
'%d ساعات', |
| 5794 |
'%d ساعة', |
| 5795 |
'%d ساعة', |
| 5796 |
], |
| 5797 |
d: [ |
| 5798 |
'أقل من يوم', |
| 5799 |
'يوم واحد', |
| 5800 |
['يومان', 'يومين'], |
| 5801 |
'%d أيام', |
| 5802 |
'%d يومًا', |
| 5803 |
'%d يوم', |
| 5804 |
], |
| 5805 |
M: [ |
| 5806 |
'أقل من شهر', |
| 5807 |
'شهر واحد', |
| 5808 |
['شهران', 'شهرين'], |
| 5809 |
'%d أشهر', |
| 5810 |
'%d شهرا', |
| 5811 |
'%d شهر', |
| 5812 |
], |
| 5813 |
y: [ |
| 5814 |
'أقل من عام', |
| 5815 |
'عام واحد', |
| 5816 |
['عامان', 'عامين'], |
| 5817 |
'%d أعوام', |
| 5818 |
'%d عامًا', |
| 5819 |
'%d عام', |
| 5820 |
], |
| 5821 |
}, |
| 5822 |
pluralize = function (u) { |
| 5823 |
return function (number, withoutSuffix, string, isFuture) { |
| 5824 |
var f = pluralForm(number), |
| 5825 |
str = plurals[u][pluralForm(number)]; |
| 5826 |
if (f === 2) { |
| 5827 |
str = str[withoutSuffix ? 0 : 1]; |
| 5828 |
} |
| 5829 |
return str.replace(/%d/i, number); |
| 5830 |
}; |
| 5831 |
}, |
| 5832 |
months$1 = [ |
| 5833 |
'جانفي', |
| 5834 |
'فيفري', |
| 5835 |
'مارس', |
| 5836 |
'أفريل', |
| 5837 |
'ماي', |
| 5838 |
'جوان', |
| 5839 |
'جويلية', |
| 5840 |
'أوت', |
| 5841 |
'سبتمبر', |
| 5842 |
'أكتوبر', |
| 5843 |
'نوفمبر', |
| 5844 |
'ديسمبر', |
| 5845 |
]; |
| 5846 |
|
| 5847 |
hooks.defineLocale('ar-dz', { |
| 5848 |
months: months$1, |
| 5849 |
monthsShort: months$1, |
| 5850 |
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), |
| 5851 |
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), |
| 5852 |
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), |
| 5853 |
weekdaysParseExact: true, |
| 5854 |
longDateFormat: { |
| 5855 |
LT: 'HH:mm', |
| 5856 |
LTS: 'HH:mm:ss', |
| 5857 |
L: 'D/\u200FM/\u200FYYYY', |
| 5858 |
LL: 'D MMMM YYYY', |
| 5859 |
LLL: 'D MMMM YYYY HH:mm', |
| 5860 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 5861 |
}, |
| 5862 |
meridiemParse: /ص|م/, |
| 5863 |
isPM: function (input) { |
| 5864 |
return 'م' === input; |
| 5865 |
}, |
| 5866 |
meridiem: function (hour, minute, isLower) { |
| 5867 |
if (hour < 12) { |
| 5868 |
return 'ص'; |
| 5869 |
} else { |
| 5870 |
return 'م'; |
| 5871 |
} |
| 5872 |
}, |
| 5873 |
calendar: { |
| 5874 |
sameDay: '[اليوم عند الساعة] LT', |
| 5875 |
nextDay: '[غدًا عند الساعة] LT', |
| 5876 |
nextWeek: 'dddd [عند الساعة] LT', |
| 5877 |
lastDay: '[أمس عند الساعة] LT', |
| 5878 |
lastWeek: 'dddd [عند الساعة] LT', |
| 5879 |
sameElse: 'L', |
| 5880 |
}, |
| 5881 |
relativeTime: { |
| 5882 |
future: 'بعد %s', |
| 5883 |
past: 'منذ %s', |
| 5884 |
s: pluralize('s'), |
| 5885 |
ss: pluralize('s'), |
| 5886 |
m: pluralize('m'), |
| 5887 |
mm: pluralize('m'), |
| 5888 |
h: pluralize('h'), |
| 5889 |
hh: pluralize('h'), |
| 5890 |
d: pluralize('d'), |
| 5891 |
dd: pluralize('d'), |
| 5892 |
M: pluralize('M'), |
| 5893 |
MM: pluralize('M'), |
| 5894 |
y: pluralize('y'), |
| 5895 |
yy: pluralize('y'), |
| 5896 |
}, |
| 5897 |
postformat: function (string) { |
| 5898 |
return string.replace(/,/g, '،'); |
| 5899 |
}, |
| 5900 |
week: { |
| 5901 |
dow: 0, // Sunday is the first day of the week. |
| 5902 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 5903 |
}, |
| 5904 |
}); |
| 5905 |
|
| 5906 |
//! moment.js locale configuration |
| 5907 |
|
| 5908 |
hooks.defineLocale('ar-kw', { |
| 5909 |
months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( |
| 5910 |
'_' |
| 5911 |
), |
| 5912 |
monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( |
| 5913 |
'_' |
| 5914 |
), |
| 5915 |
weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), |
| 5916 |
weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), |
| 5917 |
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), |
| 5918 |
weekdaysParseExact: true, |
| 5919 |
longDateFormat: { |
| 5920 |
LT: 'HH:mm', |
| 5921 |
LTS: 'HH:mm:ss', |
| 5922 |
L: 'DD/MM/YYYY', |
| 5923 |
LL: 'D MMMM YYYY', |
| 5924 |
LLL: 'D MMMM YYYY HH:mm', |
| 5925 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 5926 |
}, |
| 5927 |
calendar: { |
| 5928 |
sameDay: '[اليوم على الساعة] LT', |
| 5929 |
nextDay: '[غدا على الساعة] LT', |
| 5930 |
nextWeek: 'dddd [على الساعة] LT', |
| 5931 |
lastDay: '[أمس على الساعة] LT', |
| 5932 |
lastWeek: 'dddd [على الساعة] LT', |
| 5933 |
sameElse: 'L', |
| 5934 |
}, |
| 5935 |
relativeTime: { |
| 5936 |
future: 'في %s', |
| 5937 |
past: 'منذ %s', |
| 5938 |
s: 'ثوان', |
| 5939 |
ss: '%d ثانية', |
| 5940 |
m: 'دقيقة', |
| 5941 |
mm: '%d دقائق', |
| 5942 |
h: 'ساعة', |
| 5943 |
hh: '%d ساعات', |
| 5944 |
d: 'يوم', |
| 5945 |
dd: '%d أيام', |
| 5946 |
M: 'شهر', |
| 5947 |
MM: '%d أشهر', |
| 5948 |
y: 'سنة', |
| 5949 |
yy: '%d سنوات', |
| 5950 |
}, |
| 5951 |
week: { |
| 5952 |
dow: 0, // Sunday is the first day of the week. |
| 5953 |
doy: 12, // The week that contains Jan 12th is the first week of the year. |
| 5954 |
}, |
| 5955 |
}); |
| 5956 |
|
| 5957 |
//! moment.js locale configuration |
| 5958 |
|
| 5959 |
var symbolMap = { |
| 5960 |
1: '1', |
| 5961 |
2: '2', |
| 5962 |
3: '3', |
| 5963 |
4: '4', |
| 5964 |
5: '5', |
| 5965 |
6: '6', |
| 5966 |
7: '7', |
| 5967 |
8: '8', |
| 5968 |
9: '9', |
| 5969 |
0: '0', |
| 5970 |
}, |
| 5971 |
pluralForm$1 = function (n) { |
| 5972 |
return n === 0 |
| 5973 |
? 0 |
| 5974 |
: n === 1 |
| 5975 |
? 1 |
| 5976 |
: n === 2 |
| 5977 |
? 2 |
| 5978 |
: n % 100 >= 3 && n % 100 <= 10 |
| 5979 |
? 3 |
| 5980 |
: n % 100 >= 11 |
| 5981 |
? 4 |
| 5982 |
: 5; |
| 5983 |
}, |
| 5984 |
plurals$1 = { |
| 5985 |
s: [ |
| 5986 |
'أقل من ثانية', |
| 5987 |
'ثانية واحدة', |
| 5988 |
['ثانيتان', 'ثانيتين'], |
| 5989 |
'%d ثوان', |
| 5990 |
'%d ثانية', |
| 5991 |
'%d ثانية', |
| 5992 |
], |
| 5993 |
m: [ |
| 5994 |
'أقل من دقيقة', |
| 5995 |
'دقيقة واحدة', |
| 5996 |
['دقيقتان', 'دقيقتين'], |
| 5997 |
'%d دقائق', |
| 5998 |
'%d دقيقة', |
| 5999 |
'%d دقيقة', |
| 6000 |
], |
| 6001 |
h: [ |
| 6002 |
'أقل من ساعة', |
| 6003 |
'ساعة واحدة', |
| 6004 |
['ساعتان', 'ساعتين'], |
| 6005 |
'%d ساعات', |
| 6006 |
'%d ساعة', |
| 6007 |
'%d ساعة', |
| 6008 |
], |
| 6009 |
d: [ |
| 6010 |
'أقل من يوم', |
| 6011 |
'يوم واحد', |
| 6012 |
['يومان', 'يومين'], |
| 6013 |
'%d أيام', |
| 6014 |
'%d يومًا', |
| 6015 |
'%d يوم', |
| 6016 |
], |
| 6017 |
M: [ |
| 6018 |
'أقل من شهر', |
| 6019 |
'شهر واحد', |
| 6020 |
['شهران', 'شهرين'], |
| 6021 |
'%d أشهر', |
| 6022 |
'%d شهرا', |
| 6023 |
'%d شهر', |
| 6024 |
], |
| 6025 |
y: [ |
| 6026 |
'أقل من عام', |
| 6027 |
'عام واحد', |
| 6028 |
['عامان', 'عامين'], |
| 6029 |
'%d أعوام', |
| 6030 |
'%d عامًا', |
| 6031 |
'%d عام', |
| 6032 |
], |
| 6033 |
}, |
| 6034 |
pluralize$1 = function (u) { |
| 6035 |
return function (number, withoutSuffix, string, isFuture) { |
| 6036 |
var f = pluralForm$1(number), |
| 6037 |
str = plurals$1[u][pluralForm$1(number)]; |
| 6038 |
if (f === 2) { |
| 6039 |
str = str[withoutSuffix ? 0 : 1]; |
| 6040 |
} |
| 6041 |
return str.replace(/%d/i, number); |
| 6042 |
}; |
| 6043 |
}, |
| 6044 |
months$2 = [ |
| 6045 |
'يناير', |
| 6046 |
'فبراير', |
| 6047 |
'مارس', |
| 6048 |
'أبريل', |
| 6049 |
'مايو', |
| 6050 |
'يونيو', |
| 6051 |
'يوليو', |
| 6052 |
'أغسطس', |
| 6053 |
'سبتمبر', |
| 6054 |
'أكتوبر', |
| 6055 |
'نوفمبر', |
| 6056 |
'ديسمبر', |
| 6057 |
]; |
| 6058 |
|
| 6059 |
hooks.defineLocale('ar-ly', { |
| 6060 |
months: months$2, |
| 6061 |
monthsShort: months$2, |
| 6062 |
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), |
| 6063 |
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), |
| 6064 |
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), |
| 6065 |
weekdaysParseExact: true, |
| 6066 |
longDateFormat: { |
| 6067 |
LT: 'HH:mm', |
| 6068 |
LTS: 'HH:mm:ss', |
| 6069 |
L: 'D/\u200FM/\u200FYYYY', |
| 6070 |
LL: 'D MMMM YYYY', |
| 6071 |
LLL: 'D MMMM YYYY HH:mm', |
| 6072 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 6073 |
}, |
| 6074 |
meridiemParse: /ص|م/, |
| 6075 |
isPM: function (input) { |
| 6076 |
return 'م' === input; |
| 6077 |
}, |
| 6078 |
meridiem: function (hour, minute, isLower) { |
| 6079 |
if (hour < 12) { |
| 6080 |
return 'ص'; |
| 6081 |
} else { |
| 6082 |
return 'م'; |
| 6083 |
} |
| 6084 |
}, |
| 6085 |
calendar: { |
| 6086 |
sameDay: '[اليوم عند الساعة] LT', |
| 6087 |
nextDay: '[غدًا عند الساعة] LT', |
| 6088 |
nextWeek: 'dddd [عند الساعة] LT', |
| 6089 |
lastDay: '[أمس عند الساعة] LT', |
| 6090 |
lastWeek: 'dddd [عند الساعة] LT', |
| 6091 |
sameElse: 'L', |
| 6092 |
}, |
| 6093 |
relativeTime: { |
| 6094 |
future: 'بعد %s', |
| 6095 |
past: 'منذ %s', |
| 6096 |
s: pluralize$1('s'), |
| 6097 |
ss: pluralize$1('s'), |
| 6098 |
m: pluralize$1('m'), |
| 6099 |
mm: pluralize$1('m'), |
| 6100 |
h: pluralize$1('h'), |
| 6101 |
hh: pluralize$1('h'), |
| 6102 |
d: pluralize$1('d'), |
| 6103 |
dd: pluralize$1('d'), |
| 6104 |
M: pluralize$1('M'), |
| 6105 |
MM: pluralize$1('M'), |
| 6106 |
y: pluralize$1('y'), |
| 6107 |
yy: pluralize$1('y'), |
| 6108 |
}, |
| 6109 |
preparse: function (string) { |
| 6110 |
return string.replace(/،/g, ','); |
| 6111 |
}, |
| 6112 |
postformat: function (string) { |
| 6113 |
return string |
| 6114 |
.replace(/\d/g, function (match) { |
| 6115 |
return symbolMap[match]; |
| 6116 |
}) |
| 6117 |
.replace(/,/g, '،'); |
| 6118 |
}, |
| 6119 |
week: { |
| 6120 |
dow: 6, // Saturday is the first day of the week. |
| 6121 |
doy: 12, // The week that contains Jan 12th is the first week of the year. |
| 6122 |
}, |
| 6123 |
}); |
| 6124 |
|
| 6125 |
//! moment.js locale configuration |
| 6126 |
|
| 6127 |
hooks.defineLocale('ar-ma', { |
| 6128 |
months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( |
| 6129 |
'_' |
| 6130 |
), |
| 6131 |
monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( |
| 6132 |
'_' |
| 6133 |
), |
| 6134 |
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), |
| 6135 |
weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), |
| 6136 |
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), |
| 6137 |
weekdaysParseExact: true, |
| 6138 |
longDateFormat: { |
| 6139 |
LT: 'HH:mm', |
| 6140 |
LTS: 'HH:mm:ss', |
| 6141 |
L: 'DD/MM/YYYY', |
| 6142 |
LL: 'D MMMM YYYY', |
| 6143 |
LLL: 'D MMMM YYYY HH:mm', |
| 6144 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 6145 |
}, |
| 6146 |
calendar: { |
| 6147 |
sameDay: '[اليوم على الساعة] LT', |
| 6148 |
nextDay: '[غدا على الساعة] LT', |
| 6149 |
nextWeek: 'dddd [على الساعة] LT', |
| 6150 |
lastDay: '[أمس على الساعة] LT', |
| 6151 |
lastWeek: 'dddd [على الساعة] LT', |
| 6152 |
sameElse: 'L', |
| 6153 |
}, |
| 6154 |
relativeTime: { |
| 6155 |
future: 'في %s', |
| 6156 |
past: 'منذ %s', |
| 6157 |
s: 'ثوان', |
| 6158 |
ss: '%d ثانية', |
| 6159 |
m: 'دقيقة', |
| 6160 |
mm: '%d دقائق', |
| 6161 |
h: 'ساعة', |
| 6162 |
hh: '%d ساعات', |
| 6163 |
d: 'يوم', |
| 6164 |
dd: '%d أيام', |
| 6165 |
M: 'شهر', |
| 6166 |
MM: '%d أشهر', |
| 6167 |
y: 'سنة', |
| 6168 |
yy: '%d سنوات', |
| 6169 |
}, |
| 6170 |
week: { |
| 6171 |
dow: 1, // Monday is the first day of the week. |
| 6172 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 6173 |
}, |
| 6174 |
}); |
| 6175 |
|
| 6176 |
//! moment.js locale configuration |
| 6177 |
|
| 6178 |
var symbolMap$1 = { |
| 6179 |
1: '١', |
| 6180 |
2: '٢', |
| 6181 |
3: '٣', |
| 6182 |
4: '٤', |
| 6183 |
5: '٥', |
| 6184 |
6: '٦', |
| 6185 |
7: '٧', |
| 6186 |
8: '٨', |
| 6187 |
9: '٩', |
| 6188 |
0: '٠', |
| 6189 |
}, |
| 6190 |
numberMap = { |
| 6191 |
'١': '1', |
| 6192 |
'٢': '2', |
| 6193 |
'٣': '3', |
| 6194 |
'٤': '4', |
| 6195 |
'٥': '5', |
| 6196 |
'٦': '6', |
| 6197 |
'٧': '7', |
| 6198 |
'٨': '8', |
| 6199 |
'٩': '9', |
| 6200 |
'٠': '0', |
| 6201 |
}; |
| 6202 |
|
| 6203 |
hooks.defineLocale('ar-sa', { |
| 6204 |
months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( |
| 6205 |
'_' |
| 6206 |
), |
| 6207 |
monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( |
| 6208 |
'_' |
| 6209 |
), |
| 6210 |
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), |
| 6211 |
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), |
| 6212 |
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), |
| 6213 |
weekdaysParseExact: true, |
| 6214 |
longDateFormat: { |
| 6215 |
LT: 'HH:mm', |
| 6216 |
LTS: 'HH:mm:ss', |
| 6217 |
L: 'DD/MM/YYYY', |
| 6218 |
LL: 'D MMMM YYYY', |
| 6219 |
LLL: 'D MMMM YYYY HH:mm', |
| 6220 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 6221 |
}, |
| 6222 |
meridiemParse: /ص|م/, |
| 6223 |
isPM: function (input) { |
| 6224 |
return 'م' === input; |
| 6225 |
}, |
| 6226 |
meridiem: function (hour, minute, isLower) { |
| 6227 |
if (hour < 12) { |
| 6228 |
return 'ص'; |
| 6229 |
} else { |
| 6230 |
return 'م'; |
| 6231 |
} |
| 6232 |
}, |
| 6233 |
calendar: { |
| 6234 |
sameDay: '[اليوم على الساعة] LT', |
| 6235 |
nextDay: '[غدا على الساعة] LT', |
| 6236 |
nextWeek: 'dddd [على الساعة] LT', |
| 6237 |
lastDay: '[أمس على الساعة] LT', |
| 6238 |
lastWeek: 'dddd [على الساعة] LT', |
| 6239 |
sameElse: 'L', |
| 6240 |
}, |
| 6241 |
relativeTime: { |
| 6242 |
future: 'في %s', |
| 6243 |
past: 'منذ %s', |
| 6244 |
s: 'ثوان', |
| 6245 |
ss: '%d ثانية', |
| 6246 |
m: 'دقيقة', |
| 6247 |
mm: '%d دقائق', |
| 6248 |
h: 'ساعة', |
| 6249 |
hh: '%d ساعات', |
| 6250 |
d: 'يوم', |
| 6251 |
dd: '%d أيام', |
| 6252 |
M: 'شهر', |
| 6253 |
MM: '%d أشهر', |
| 6254 |
y: 'سنة', |
| 6255 |
yy: '%d سنوات', |
| 6256 |
}, |
| 6257 |
preparse: function (string) { |
| 6258 |
return string |
| 6259 |
.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { |
| 6260 |
return numberMap[match]; |
| 6261 |
}) |
| 6262 |
.replace(/،/g, ','); |
| 6263 |
}, |
| 6264 |
postformat: function (string) { |
| 6265 |
return string |
| 6266 |
.replace(/\d/g, function (match) { |
| 6267 |
return symbolMap$1[match]; |
| 6268 |
}) |
| 6269 |
.replace(/,/g, '،'); |
| 6270 |
}, |
| 6271 |
week: { |
| 6272 |
dow: 0, // Sunday is the first day of the week. |
| 6273 |
doy: 6, // The week that contains Jan 6th is the first week of the year. |
| 6274 |
}, |
| 6275 |
}); |
| 6276 |
|
| 6277 |
//! moment.js locale configuration |
| 6278 |
|
| 6279 |
hooks.defineLocale('ar-tn', { |
| 6280 |
months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( |
| 6281 |
'_' |
| 6282 |
), |
| 6283 |
monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( |
| 6284 |
'_' |
| 6285 |
), |
| 6286 |
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), |
| 6287 |
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), |
| 6288 |
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), |
| 6289 |
weekdaysParseExact: true, |
| 6290 |
longDateFormat: { |
| 6291 |
LT: 'HH:mm', |
| 6292 |
LTS: 'HH:mm:ss', |
| 6293 |
L: 'DD/MM/YYYY', |
| 6294 |
LL: 'D MMMM YYYY', |
| 6295 |
LLL: 'D MMMM YYYY HH:mm', |
| 6296 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 6297 |
}, |
| 6298 |
calendar: { |
| 6299 |
sameDay: '[اليوم على الساعة] LT', |
| 6300 |
nextDay: '[غدا على الساعة] LT', |
| 6301 |
nextWeek: 'dddd [على الساعة] LT', |
| 6302 |
lastDay: '[أمس على الساعة] LT', |
| 6303 |
lastWeek: 'dddd [على الساعة] LT', |
| 6304 |
sameElse: 'L', |
| 6305 |
}, |
| 6306 |
relativeTime: { |
| 6307 |
future: 'في %s', |
| 6308 |
past: 'منذ %s', |
| 6309 |
s: 'ثوان', |
| 6310 |
ss: '%d ثانية', |
| 6311 |
m: 'دقيقة', |
| 6312 |
mm: '%d دقائق', |
| 6313 |
h: 'ساعة', |
| 6314 |
hh: '%d ساعات', |
| 6315 |
d: 'يوم', |
| 6316 |
dd: '%d أيام', |
| 6317 |
M: 'شهر', |
| 6318 |
MM: '%d أشهر', |
| 6319 |
y: 'سنة', |
| 6320 |
yy: '%d سنوات', |
| 6321 |
}, |
| 6322 |
week: { |
| 6323 |
dow: 1, // Monday is the first day of the week. |
| 6324 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 6325 |
}, |
| 6326 |
}); |
| 6327 |
|
| 6328 |
//! moment.js locale configuration |
| 6329 |
|
| 6330 |
var symbolMap$2 = { |
| 6331 |
1: '١', |
| 6332 |
2: '٢', |
| 6333 |
3: '٣', |
| 6334 |
4: '٤', |
| 6335 |
5: '٥', |
| 6336 |
6: '٦', |
| 6337 |
7: '٧', |
| 6338 |
8: '٨', |
| 6339 |
9: '٩', |
| 6340 |
0: '٠', |
| 6341 |
}, |
| 6342 |
numberMap$1 = { |
| 6343 |
'١': '1', |
| 6344 |
'٢': '2', |
| 6345 |
'٣': '3', |
| 6346 |
'٤': '4', |
| 6347 |
'٥': '5', |
| 6348 |
'٦': '6', |
| 6349 |
'٧': '7', |
| 6350 |
'٨': '8', |
| 6351 |
'٩': '9', |
| 6352 |
'٠': '0', |
| 6353 |
}, |
| 6354 |
pluralForm$2 = function (n) { |
| 6355 |
return n === 0 |
| 6356 |
? 0 |
| 6357 |
: n === 1 |
| 6358 |
? 1 |
| 6359 |
: n === 2 |
| 6360 |
? 2 |
| 6361 |
: n % 100 >= 3 && n % 100 <= 10 |
| 6362 |
? 3 |
| 6363 |
: n % 100 >= 11 |
| 6364 |
? 4 |
| 6365 |
: 5; |
| 6366 |
}, |
| 6367 |
plurals$2 = { |
| 6368 |
s: [ |
| 6369 |
'أقل من ثانية', |
| 6370 |
'ثانية واحدة', |
| 6371 |
['ثانيتان', 'ثانيتين'], |
| 6372 |
'%d ثوان', |
| 6373 |
'%d ثانية', |
| 6374 |
'%d ثانية', |
| 6375 |
], |
| 6376 |
m: [ |
| 6377 |
'أقل من دقيقة', |
| 6378 |
'دقيقة واحدة', |
| 6379 |
['دقيقتان', 'دقيقتين'], |
| 6380 |
'%d دقائق', |
| 6381 |
'%d دقيقة', |
| 6382 |
'%d دقيقة', |
| 6383 |
], |
| 6384 |
h: [ |
| 6385 |
'أقل من ساعة', |
| 6386 |
'ساعة واحدة', |
| 6387 |
['ساعتان', 'ساعتين'], |
| 6388 |
'%d ساعات', |
| 6389 |
'%d ساعة', |
| 6390 |
'%d ساعة', |
| 6391 |
], |
| 6392 |
d: [ |
| 6393 |
'أقل من يوم', |
| 6394 |
'يوم واحد', |
| 6395 |
['يومان', 'يومين'], |
| 6396 |
'%d أيام', |
| 6397 |
'%d يومًا', |
| 6398 |
'%d يوم', |
| 6399 |
], |
| 6400 |
M: [ |
| 6401 |
'أقل من شهر', |
| 6402 |
'شهر واحد', |
| 6403 |
['شهران', 'شهرين'], |
| 6404 |
'%d أشهر', |
| 6405 |
'%d شهرا', |
| 6406 |
'%d شهر', |
| 6407 |
], |
| 6408 |
y: [ |
| 6409 |
'أقل من عام', |
| 6410 |
'عام واحد', |
| 6411 |
['عامان', 'عامين'], |
| 6412 |
'%d أعوام', |
| 6413 |
'%d عامًا', |
| 6414 |
'%d عام', |
| 6415 |
], |
| 6416 |
}, |
| 6417 |
pluralize$2 = function (u) { |
| 6418 |
return function (number, withoutSuffix, string, isFuture) { |
| 6419 |
var f = pluralForm$2(number), |
| 6420 |
str = plurals$2[u][pluralForm$2(number)]; |
| 6421 |
if (f === 2) { |
| 6422 |
str = str[withoutSuffix ? 0 : 1]; |
| 6423 |
} |
| 6424 |
return str.replace(/%d/i, number); |
| 6425 |
}; |
| 6426 |
}, |
| 6427 |
months$3 = [ |
| 6428 |
'يناير', |
| 6429 |
'فبراير', |
| 6430 |
'مارس', |
| 6431 |
'أبريل', |
| 6432 |
'مايو', |
| 6433 |
'يونيو', |
| 6434 |
'يوليو', |
| 6435 |
'أغسطس', |
| 6436 |
'سبتمبر', |
| 6437 |
'أكتوبر', |
| 6438 |
'نوفمبر', |
| 6439 |
'ديسمبر', |
| 6440 |
]; |
| 6441 |
|
| 6442 |
hooks.defineLocale('ar', { |
| 6443 |
months: months$3, |
| 6444 |
monthsShort: months$3, |
| 6445 |
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), |
| 6446 |
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), |
| 6447 |
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), |
| 6448 |
weekdaysParseExact: true, |
| 6449 |
longDateFormat: { |
| 6450 |
LT: 'HH:mm', |
| 6451 |
LTS: 'HH:mm:ss', |
| 6452 |
L: 'D/\u200FM/\u200FYYYY', |
| 6453 |
LL: 'D MMMM YYYY', |
| 6454 |
LLL: 'D MMMM YYYY HH:mm', |
| 6455 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 6456 |
}, |
| 6457 |
meridiemParse: /ص|م/, |
| 6458 |
isPM: function (input) { |
| 6459 |
return 'م' === input; |
| 6460 |
}, |
| 6461 |
meridiem: function (hour, minute, isLower) { |
| 6462 |
if (hour < 12) { |
| 6463 |
return 'ص'; |
| 6464 |
} else { |
| 6465 |
return 'م'; |
| 6466 |
} |
| 6467 |
}, |
| 6468 |
calendar: { |
| 6469 |
sameDay: '[اليوم عند الساعة] LT', |
| 6470 |
nextDay: '[غدًا عند الساعة] LT', |
| 6471 |
nextWeek: 'dddd [عند الساعة] LT', |
| 6472 |
lastDay: '[أمس عند الساعة] LT', |
| 6473 |
lastWeek: 'dddd [عند الساعة] LT', |
| 6474 |
sameElse: 'L', |
| 6475 |
}, |
| 6476 |
relativeTime: { |
| 6477 |
future: 'بعد %s', |
| 6478 |
past: 'منذ %s', |
| 6479 |
s: pluralize$2('s'), |
| 6480 |
ss: pluralize$2('s'), |
| 6481 |
m: pluralize$2('m'), |
| 6482 |
mm: pluralize$2('m'), |
| 6483 |
h: pluralize$2('h'), |
| 6484 |
hh: pluralize$2('h'), |
| 6485 |
d: pluralize$2('d'), |
| 6486 |
dd: pluralize$2('d'), |
| 6487 |
M: pluralize$2('M'), |
| 6488 |
MM: pluralize$2('M'), |
| 6489 |
y: pluralize$2('y'), |
| 6490 |
yy: pluralize$2('y'), |
| 6491 |
}, |
| 6492 |
preparse: function (string) { |
| 6493 |
return string |
| 6494 |
.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { |
| 6495 |
return numberMap$1[match]; |
| 6496 |
}) |
| 6497 |
.replace(/،/g, ','); |
| 6498 |
}, |
| 6499 |
postformat: function (string) { |
| 6500 |
return string |
| 6501 |
.replace(/\d/g, function (match) { |
| 6502 |
return symbolMap$2[match]; |
| 6503 |
}) |
| 6504 |
.replace(/,/g, '،'); |
| 6505 |
}, |
| 6506 |
week: { |
| 6507 |
dow: 6, // Saturday is the first day of the week. |
| 6508 |
doy: 12, // The week that contains Jan 12th is the first week of the year. |
| 6509 |
}, |
| 6510 |
}); |
| 6511 |
|
| 6512 |
//! moment.js locale configuration |
| 6513 |
|
| 6514 |
var suffixes = { |
| 6515 |
1: '-inci', |
| 6516 |
5: '-inci', |
| 6517 |
8: '-inci', |
| 6518 |
70: '-inci', |
| 6519 |
80: '-inci', |
| 6520 |
2: '-nci', |
| 6521 |
7: '-nci', |
| 6522 |
20: '-nci', |
| 6523 |
50: '-nci', |
| 6524 |
3: '-üncü', |
| 6525 |
4: '-üncü', |
| 6526 |
100: '-üncü', |
| 6527 |
6: '-ncı', |
| 6528 |
9: '-uncu', |
| 6529 |
10: '-uncu', |
| 6530 |
30: '-uncu', |
| 6531 |
60: '-ıncı', |
| 6532 |
90: '-ıncı', |
| 6533 |
}; |
| 6534 |
|
| 6535 |
hooks.defineLocale('az', { |
| 6536 |
months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split( |
| 6537 |
'_' |
| 6538 |
), |
| 6539 |
monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'), |
| 6540 |
weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split( |
| 6541 |
'_' |
| 6542 |
), |
| 6543 |
weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'), |
| 6544 |
weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'), |
| 6545 |
weekdaysParseExact: true, |
| 6546 |
longDateFormat: { |
| 6547 |
LT: 'HH:mm', |
| 6548 |
LTS: 'HH:mm:ss', |
| 6549 |
L: 'DD.MM.YYYY', |
| 6550 |
LL: 'D MMMM YYYY', |
| 6551 |
LLL: 'D MMMM YYYY HH:mm', |
| 6552 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 6553 |
}, |
| 6554 |
calendar: { |
| 6555 |
sameDay: '[bugün saat] LT', |
| 6556 |
nextDay: '[sabah saat] LT', |
| 6557 |
nextWeek: '[gələn həftə] dddd [saat] LT', |
| 6558 |
lastDay: '[dünən] LT', |
| 6559 |
lastWeek: '[keçən həftə] dddd [saat] LT', |
| 6560 |
sameElse: 'L', |
| 6561 |
}, |
| 6562 |
relativeTime: { |
| 6563 |
future: '%s sonra', |
| 6564 |
past: '%s əvvəl', |
| 6565 |
s: 'bir neçə saniyə', |
| 6566 |
ss: '%d saniyə', |
| 6567 |
m: 'bir dəqiqə', |
| 6568 |
mm: '%d dəqiqə', |
| 6569 |
h: 'bir saat', |
| 6570 |
hh: '%d saat', |
| 6571 |
d: 'bir gün', |
| 6572 |
dd: '%d gün', |
| 6573 |
M: 'bir ay', |
| 6574 |
MM: '%d ay', |
| 6575 |
y: 'bir il', |
| 6576 |
yy: '%d il', |
| 6577 |
}, |
| 6578 |
meridiemParse: /gecə|səhər|gündüz|axşam/, |
| 6579 |
isPM: function (input) { |
| 6580 |
return /^(gündüz|axşam)$/.test(input); |
| 6581 |
}, |
| 6582 |
meridiem: function (hour, minute, isLower) { |
| 6583 |
if (hour < 4) { |
| 6584 |
return 'gecə'; |
| 6585 |
} else if (hour < 12) { |
| 6586 |
return 'səhər'; |
| 6587 |
} else if (hour < 17) { |
| 6588 |
return 'gündüz'; |
| 6589 |
} else { |
| 6590 |
return 'axşam'; |
| 6591 |
} |
| 6592 |
}, |
| 6593 |
dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/, |
| 6594 |
ordinal: function (number) { |
| 6595 |
if (number === 0) { |
| 6596 |
// special case for zero |
| 6597 |
return number + '-ıncı'; |
| 6598 |
} |
| 6599 |
var a = number % 10, |
| 6600 |
b = (number % 100) - a, |
| 6601 |
c = number >= 100 ? 100 : null; |
| 6602 |
return number + (suffixes[a] || suffixes[b] || suffixes[c]); |
| 6603 |
}, |
| 6604 |
week: { |
| 6605 |
dow: 1, // Monday is the first day of the week. |
| 6606 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 6607 |
}, |
| 6608 |
}); |
| 6609 |
|
| 6610 |
//! moment.js locale configuration |
| 6611 |
|
| 6612 |
function plural(word, num) { |
| 6613 |
var forms = word.split('_'); |
| 6614 |
return num % 10 === 1 && num % 100 !== 11 |
| 6615 |
? forms[0] |
| 6616 |
: num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) |
| 6617 |
? forms[1] |
| 6618 |
: forms[2]; |
| 6619 |
} |
| 6620 |
function relativeTimeWithPlural(number, withoutSuffix, key) { |
| 6621 |
var format = { |
| 6622 |
ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', |
| 6623 |
mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін', |
| 6624 |
hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін', |
| 6625 |
dd: 'дзень_дні_дзён', |
| 6626 |
MM: 'месяц_месяцы_месяцаў', |
| 6627 |
yy: 'год_гады_гадоў', |
| 6628 |
}; |
| 6629 |
if (key === 'm') { |
| 6630 |
return withoutSuffix ? 'хвіліна' : 'хвіліну'; |
| 6631 |
} else if (key === 'h') { |
| 6632 |
return withoutSuffix ? 'гадзіна' : 'гадзіну'; |
| 6633 |
} else { |
| 6634 |
return number + ' ' + plural(format[key], +number); |
| 6635 |
} |
| 6636 |
} |
| 6637 |
|
| 6638 |
hooks.defineLocale('be', { |
| 6639 |
months: { |
| 6640 |
format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split( |
| 6641 |
'_' |
| 6642 |
), |
| 6643 |
standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split( |
| 6644 |
'_' |
| 6645 |
), |
| 6646 |
}, |
| 6647 |
monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split( |
| 6648 |
'_' |
| 6649 |
), |
| 6650 |
weekdays: { |
| 6651 |
format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split( |
| 6652 |
'_' |
| 6653 |
), |
| 6654 |
standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split( |
| 6655 |
'_' |
| 6656 |
), |
| 6657 |
isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/, |
| 6658 |
}, |
| 6659 |
weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), |
| 6660 |
weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), |
| 6661 |
longDateFormat: { |
| 6662 |
LT: 'HH:mm', |
| 6663 |
LTS: 'HH:mm:ss', |
| 6664 |
L: 'DD.MM.YYYY', |
| 6665 |
LL: 'D MMMM YYYY г.', |
| 6666 |
LLL: 'D MMMM YYYY г., HH:mm', |
| 6667 |
LLLL: 'dddd, D MMMM YYYY г., HH:mm', |
| 6668 |
}, |
| 6669 |
calendar: { |
| 6670 |
sameDay: '[Сёння ў] LT', |
| 6671 |
nextDay: '[Заўтра ў] LT', |
| 6672 |
lastDay: '[Учора ў] LT', |
| 6673 |
nextWeek: function () { |
| 6674 |
return '[У] dddd [ў] LT'; |
| 6675 |
}, |
| 6676 |
lastWeek: function () { |
| 6677 |
switch (this.day()) { |
| 6678 |
case 0: |
| 6679 |
case 3: |
| 6680 |
case 5: |
| 6681 |
case 6: |
| 6682 |
return '[У мінулую] dddd [ў] LT'; |
| 6683 |
case 1: |
| 6684 |
case 2: |
| 6685 |
case 4: |
| 6686 |
return '[У мінулы] dddd [ў] LT'; |
| 6687 |
} |
| 6688 |
}, |
| 6689 |
sameElse: 'L', |
| 6690 |
}, |
| 6691 |
relativeTime: { |
| 6692 |
future: 'праз %s', |
| 6693 |
past: '%s таму', |
| 6694 |
s: 'некалькі секунд', |
| 6695 |
m: relativeTimeWithPlural, |
| 6696 |
mm: relativeTimeWithPlural, |
| 6697 |
h: relativeTimeWithPlural, |
| 6698 |
hh: relativeTimeWithPlural, |
| 6699 |
d: 'дзень', |
| 6700 |
dd: relativeTimeWithPlural, |
| 6701 |
M: 'месяц', |
| 6702 |
MM: relativeTimeWithPlural, |
| 6703 |
y: 'год', |
| 6704 |
yy: relativeTimeWithPlural, |
| 6705 |
}, |
| 6706 |
meridiemParse: /ночы|раніцы|дня|вечара/, |
| 6707 |
isPM: function (input) { |
| 6708 |
return /^(дня|вечара)$/.test(input); |
| 6709 |
}, |
| 6710 |
meridiem: function (hour, minute, isLower) { |
| 6711 |
if (hour < 4) { |
| 6712 |
return 'ночы'; |
| 6713 |
} else if (hour < 12) { |
| 6714 |
return 'раніцы'; |
| 6715 |
} else if (hour < 17) { |
| 6716 |
return 'дня'; |
| 6717 |
} else { |
| 6718 |
return 'вечара'; |
| 6719 |
} |
| 6720 |
}, |
| 6721 |
dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/, |
| 6722 |
ordinal: function (number, period) { |
| 6723 |
switch (period) { |
| 6724 |
case 'M': |
| 6725 |
case 'd': |
| 6726 |
case 'DDD': |
| 6727 |
case 'w': |
| 6728 |
case 'W': |
| 6729 |
return (number % 10 === 2 || number % 10 === 3) && |
| 6730 |
number % 100 !== 12 && |
| 6731 |
number % 100 !== 13 |
| 6732 |
? number + '-і' |
| 6733 |
: number + '-ы'; |
| 6734 |
case 'D': |
| 6735 |
return number + '-га'; |
| 6736 |
default: |
| 6737 |
return number; |
| 6738 |
} |
| 6739 |
}, |
| 6740 |
week: { |
| 6741 |
dow: 1, // Monday is the first day of the week. |
| 6742 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 6743 |
}, |
| 6744 |
}); |
| 6745 |
|
| 6746 |
//! moment.js locale configuration |
| 6747 |
|
| 6748 |
hooks.defineLocale('bg', { |
| 6749 |
months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split( |
| 6750 |
'_' |
| 6751 |
), |
| 6752 |
monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'), |
| 6753 |
weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split( |
| 6754 |
'_' |
| 6755 |
), |
| 6756 |
weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'), |
| 6757 |
weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), |
| 6758 |
longDateFormat: { |
| 6759 |
LT: 'H:mm', |
| 6760 |
LTS: 'H:mm:ss', |
| 6761 |
L: 'D.MM.YYYY', |
| 6762 |
LL: 'D MMMM YYYY', |
| 6763 |
LLL: 'D MMMM YYYY H:mm', |
| 6764 |
LLLL: 'dddd, D MMMM YYYY H:mm', |
| 6765 |
}, |
| 6766 |
calendar: { |
| 6767 |
sameDay: '[Днес в] LT', |
| 6768 |
nextDay: '[Утре в] LT', |
| 6769 |
nextWeek: 'dddd [в] LT', |
| 6770 |
lastDay: '[Вчера в] LT', |
| 6771 |
lastWeek: function () { |
| 6772 |
switch (this.day()) { |
| 6773 |
case 0: |
| 6774 |
case 3: |
| 6775 |
case 6: |
| 6776 |
return '[Миналата] dddd [в] LT'; |
| 6777 |
case 1: |
| 6778 |
case 2: |
| 6779 |
case 4: |
| 6780 |
case 5: |
| 6781 |
return '[Миналия] dddd [в] LT'; |
| 6782 |
} |
| 6783 |
}, |
| 6784 |
sameElse: 'L', |
| 6785 |
}, |
| 6786 |
relativeTime: { |
| 6787 |
future: 'след %s', |
| 6788 |
past: 'преди %s', |
| 6789 |
s: 'няколко секунди', |
| 6790 |
ss: '%d секунди', |
| 6791 |
m: 'минута', |
| 6792 |
mm: '%d минути', |
| 6793 |
h: 'час', |
| 6794 |
hh: '%d часа', |
| 6795 |
d: 'ден', |
| 6796 |
dd: '%d дена', |
| 6797 |
w: 'седмица', |
| 6798 |
ww: '%d седмици', |
| 6799 |
M: 'месец', |
| 6800 |
MM: '%d месеца', |
| 6801 |
y: 'година', |
| 6802 |
yy: '%d години', |
| 6803 |
}, |
| 6804 |
dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, |
| 6805 |
ordinal: function (number) { |
| 6806 |
var lastDigit = number % 10, |
| 6807 |
last2Digits = number % 100; |
| 6808 |
if (number === 0) { |
| 6809 |
return number + '-ев'; |
| 6810 |
} else if (last2Digits === 0) { |
| 6811 |
return number + '-ен'; |
| 6812 |
} else if (last2Digits > 10 && last2Digits < 20) { |
| 6813 |
return number + '-ти'; |
| 6814 |
} else if (lastDigit === 1) { |
| 6815 |
return number + '-ви'; |
| 6816 |
} else if (lastDigit === 2) { |
| 6817 |
return number + '-ри'; |
| 6818 |
} else if (lastDigit === 7 || lastDigit === 8) { |
| 6819 |
return number + '-ми'; |
| 6820 |
} else { |
| 6821 |
return number + '-ти'; |
| 6822 |
} |
| 6823 |
}, |
| 6824 |
week: { |
| 6825 |
dow: 1, // Monday is the first day of the week. |
| 6826 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 6827 |
}, |
| 6828 |
}); |
| 6829 |
|
| 6830 |
//! moment.js locale configuration |
| 6831 |
|
| 6832 |
hooks.defineLocale('bm', { |
| 6833 |
months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split( |
| 6834 |
'_' |
| 6835 |
), |
| 6836 |
monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'), |
| 6837 |
weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'), |
| 6838 |
weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'), |
| 6839 |
weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'), |
| 6840 |
longDateFormat: { |
| 6841 |
LT: 'HH:mm', |
| 6842 |
LTS: 'HH:mm:ss', |
| 6843 |
L: 'DD/MM/YYYY', |
| 6844 |
LL: 'MMMM [tile] D [san] YYYY', |
| 6845 |
LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', |
| 6846 |
LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', |
| 6847 |
}, |
| 6848 |
calendar: { |
| 6849 |
sameDay: '[Bi lɛrɛ] LT', |
| 6850 |
nextDay: '[Sini lɛrɛ] LT', |
| 6851 |
nextWeek: 'dddd [don lɛrɛ] LT', |
| 6852 |
lastDay: '[Kunu lɛrɛ] LT', |
| 6853 |
lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT', |
| 6854 |
sameElse: 'L', |
| 6855 |
}, |
| 6856 |
relativeTime: { |
| 6857 |
future: '%s kɔnɔ', |
| 6858 |
past: 'a bɛ %s bɔ', |
| 6859 |
s: 'sanga dama dama', |
| 6860 |
ss: 'sekondi %d', |
| 6861 |
m: 'miniti kelen', |
| 6862 |
mm: 'miniti %d', |
| 6863 |
h: 'lɛrɛ kelen', |
| 6864 |
hh: 'lɛrɛ %d', |
| 6865 |
d: 'tile kelen', |
| 6866 |
dd: 'tile %d', |
| 6867 |
M: 'kalo kelen', |
| 6868 |
MM: 'kalo %d', |
| 6869 |
y: 'san kelen', |
| 6870 |
yy: 'san %d', |
| 6871 |
}, |
| 6872 |
week: { |
| 6873 |
dow: 1, // Monday is the first day of the week. |
| 6874 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 6875 |
}, |
| 6876 |
}); |
| 6877 |
|
| 6878 |
//! moment.js locale configuration |
| 6879 |
|
| 6880 |
var symbolMap$3 = { |
| 6881 |
1: '১', |
| 6882 |
2: '২', |
| 6883 |
3: '৩', |
| 6884 |
4: '৪', |
| 6885 |
5: '৫', |
| 6886 |
6: '৬', |
| 6887 |
7: '৭', |
| 6888 |
8: '৮', |
| 6889 |
9: '৯', |
| 6890 |
0: '০', |
| 6891 |
}, |
| 6892 |
numberMap$2 = { |
| 6893 |
'১': '1', |
| 6894 |
'২': '2', |
| 6895 |
'৩': '3', |
| 6896 |
'৪': '4', |
| 6897 |
'৫': '5', |
| 6898 |
'৬': '6', |
| 6899 |
'৭': '7', |
| 6900 |
'৮': '8', |
| 6901 |
'৯': '9', |
| 6902 |
'০': '0', |
| 6903 |
}; |
| 6904 |
|
| 6905 |
hooks.defineLocale('bn-bd', { |
| 6906 |
months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split( |
| 6907 |
'_' |
| 6908 |
), |
| 6909 |
monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split( |
| 6910 |
'_' |
| 6911 |
), |
| 6912 |
weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split( |
| 6913 |
'_' |
| 6914 |
), |
| 6915 |
weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'), |
| 6916 |
weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'), |
| 6917 |
longDateFormat: { |
| 6918 |
LT: 'A h:mm সময়', |
| 6919 |
LTS: 'A h:mm:ss সময়', |
| 6920 |
L: 'DD/MM/YYYY', |
| 6921 |
LL: 'D MMMM YYYY', |
| 6922 |
LLL: 'D MMMM YYYY, A h:mm সময়', |
| 6923 |
LLLL: 'dddd, D MMMM YYYY, A h:mm সময়', |
| 6924 |
}, |
| 6925 |
calendar: { |
| 6926 |
sameDay: '[আজ] LT', |
| 6927 |
nextDay: '[আগামীকাল] LT', |
| 6928 |
nextWeek: 'dddd, LT', |
| 6929 |
lastDay: '[গতকাল] LT', |
| 6930 |
lastWeek: '[গত] dddd, LT', |
| 6931 |
sameElse: 'L', |
| 6932 |
}, |
| 6933 |
relativeTime: { |
| 6934 |
future: '%s পরে', |
| 6935 |
past: '%s আগে', |
| 6936 |
s: 'কয়েক সেকেন্ড', |
| 6937 |
ss: '%d সেকেন্ড', |
| 6938 |
m: 'এক মিনিট', |
| 6939 |
mm: '%d মিনিট', |
| 6940 |
h: 'এক ঘন্টা', |
| 6941 |
hh: '%d ঘন্টা', |
| 6942 |
d: 'এক দিন', |
| 6943 |
dd: '%d দিন', |
| 6944 |
M: 'এক মাস', |
| 6945 |
MM: '%d মাস', |
| 6946 |
y: 'এক বছর', |
| 6947 |
yy: '%d বছর', |
| 6948 |
}, |
| 6949 |
preparse: function (string) { |
| 6950 |
return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) { |
| 6951 |
return numberMap$2[match]; |
| 6952 |
}); |
| 6953 |
}, |
| 6954 |
postformat: function (string) { |
| 6955 |
return string.replace(/\d/g, function (match) { |
| 6956 |
return symbolMap$3[match]; |
| 6957 |
}); |
| 6958 |
}, |
| 6959 |
|
| 6960 |
meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/, |
| 6961 |
meridiemHour: function (hour, meridiem) { |
| 6962 |
if (hour === 12) { |
| 6963 |
hour = 0; |
| 6964 |
} |
| 6965 |
if (meridiem === 'রাত') { |
| 6966 |
return hour < 4 ? hour : hour + 12; |
| 6967 |
} else if (meridiem === 'ভোর') { |
| 6968 |
return hour; |
| 6969 |
} else if (meridiem === 'সকাল') { |
| 6970 |
return hour; |
| 6971 |
} else if (meridiem === 'দুপুর') { |
| 6972 |
return hour >= 3 ? hour : hour + 12; |
| 6973 |
} else if (meridiem === 'বিকাল') { |
| 6974 |
return hour + 12; |
| 6975 |
} else if (meridiem === 'সন্ধ্যা') { |
| 6976 |
return hour + 12; |
| 6977 |
} |
| 6978 |
}, |
| 6979 |
|
| 6980 |
meridiem: function (hour, minute, isLower) { |
| 6981 |
if (hour < 4) { |
| 6982 |
return 'রাত'; |
| 6983 |
} else if (hour < 6) { |
| 6984 |
return 'ভোর'; |
| 6985 |
} else if (hour < 12) { |
| 6986 |
return 'সকাল'; |
| 6987 |
} else if (hour < 15) { |
| 6988 |
return 'দুপুর'; |
| 6989 |
} else if (hour < 18) { |
| 6990 |
return 'বিকাল'; |
| 6991 |
} else if (hour < 20) { |
| 6992 |
return 'সন্ধ্যা'; |
| 6993 |
} else { |
| 6994 |
return 'রাত'; |
| 6995 |
} |
| 6996 |
}, |
| 6997 |
week: { |
| 6998 |
dow: 0, // Sunday is the first day of the week. |
| 6999 |
doy: 6, // The week that contains Jan 6th is the first week of the year. |
| 7000 |
}, |
| 7001 |
}); |
| 7002 |
|
| 7003 |
//! moment.js locale configuration |
| 7004 |
|
| 7005 |
var symbolMap$4 = { |
| 7006 |
1: '১', |
| 7007 |
2: '২', |
| 7008 |
3: '৩', |
| 7009 |
4: '৪', |
| 7010 |
5: '৫', |
| 7011 |
6: '৬', |
| 7012 |
7: '৭', |
| 7013 |
8: '৮', |
| 7014 |
9: '৯', |
| 7015 |
0: '০', |
| 7016 |
}, |
| 7017 |
numberMap$3 = { |
| 7018 |
'১': '1', |
| 7019 |
'২': '2', |
| 7020 |
'৩': '3', |
| 7021 |
'৪': '4', |
| 7022 |
'৫': '5', |
| 7023 |
'৬': '6', |
| 7024 |
'৭': '7', |
| 7025 |
'৮': '8', |
| 7026 |
'৯': '9', |
| 7027 |
'০': '0', |
| 7028 |
}; |
| 7029 |
|
| 7030 |
hooks.defineLocale('bn', { |
| 7031 |
months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split( |
| 7032 |
'_' |
| 7033 |
), |
| 7034 |
monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split( |
| 7035 |
'_' |
| 7036 |
), |
| 7037 |
weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split( |
| 7038 |
'_' |
| 7039 |
), |
| 7040 |
weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'), |
| 7041 |
weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'), |
| 7042 |
longDateFormat: { |
| 7043 |
LT: 'A h:mm সময়', |
| 7044 |
LTS: 'A h:mm:ss সময়', |
| 7045 |
L: 'DD/MM/YYYY', |
| 7046 |
LL: 'D MMMM YYYY', |
| 7047 |
LLL: 'D MMMM YYYY, A h:mm সময়', |
| 7048 |
LLLL: 'dddd, D MMMM YYYY, A h:mm সময়', |
| 7049 |
}, |
| 7050 |
calendar: { |
| 7051 |
sameDay: '[আজ] LT', |
| 7052 |
nextDay: '[আগামীকাল] LT', |
| 7053 |
nextWeek: 'dddd, LT', |
| 7054 |
lastDay: '[গতকাল] LT', |
| 7055 |
lastWeek: '[গত] dddd, LT', |
| 7056 |
sameElse: 'L', |
| 7057 |
}, |
| 7058 |
relativeTime: { |
| 7059 |
future: '%s পরে', |
| 7060 |
past: '%s আগে', |
| 7061 |
s: 'কয়েক সেকেন্ড', |
| 7062 |
ss: '%d সেকেন্ড', |
| 7063 |
m: 'এক মিনিট', |
| 7064 |
mm: '%d মিনিট', |
| 7065 |
h: 'এক ঘন্টা', |
| 7066 |
hh: '%d ঘন্টা', |
| 7067 |
d: 'এক দিন', |
| 7068 |
dd: '%d দিন', |
| 7069 |
M: 'এক মাস', |
| 7070 |
MM: '%d মাস', |
| 7071 |
y: 'এক বছর', |
| 7072 |
yy: '%d বছর', |
| 7073 |
}, |
| 7074 |
preparse: function (string) { |
| 7075 |
return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) { |
| 7076 |
return numberMap$3[match]; |
| 7077 |
}); |
| 7078 |
}, |
| 7079 |
postformat: function (string) { |
| 7080 |
return string.replace(/\d/g, function (match) { |
| 7081 |
return symbolMap$4[match]; |
| 7082 |
}); |
| 7083 |
}, |
| 7084 |
meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/, |
| 7085 |
meridiemHour: function (hour, meridiem) { |
| 7086 |
if (hour === 12) { |
| 7087 |
hour = 0; |
| 7088 |
} |
| 7089 |
if ( |
| 7090 |
(meridiem === 'রাত' && hour >= 4) || |
| 7091 |
(meridiem === 'দুপুর' && hour < 5) || |
| 7092 |
meridiem === 'বিকাল' |
| 7093 |
) { |
| 7094 |
return hour + 12; |
| 7095 |
} else { |
| 7096 |
return hour; |
| 7097 |
} |
| 7098 |
}, |
| 7099 |
meridiem: function (hour, minute, isLower) { |
| 7100 |
if (hour < 4) { |
| 7101 |
return 'রাত'; |
| 7102 |
} else if (hour < 10) { |
| 7103 |
return 'সকাল'; |
| 7104 |
} else if (hour < 17) { |
| 7105 |
return 'দুপুর'; |
| 7106 |
} else if (hour < 20) { |
| 7107 |
return 'বিকাল'; |
| 7108 |
} else { |
| 7109 |
return 'রাত'; |
| 7110 |
} |
| 7111 |
}, |
| 7112 |
week: { |
| 7113 |
dow: 0, // Sunday is the first day of the week. |
| 7114 |
doy: 6, // The week that contains Jan 6th is the first week of the year. |
| 7115 |
}, |
| 7116 |
}); |
| 7117 |
|
| 7118 |
//! moment.js locale configuration |
| 7119 |
|
| 7120 |
var symbolMap$5 = { |
| 7121 |
1: '༡', |
| 7122 |
2: '༢', |
| 7123 |
3: '༣', |
| 7124 |
4: '༤', |
| 7125 |
5: '༥', |
| 7126 |
6: '༦', |
| 7127 |
7: '༧', |
| 7128 |
8: '༨', |
| 7129 |
9: '༩', |
| 7130 |
0: '༠', |
| 7131 |
}, |
| 7132 |
numberMap$4 = { |
| 7133 |
'༡': '1', |
| 7134 |
'༢': '2', |
| 7135 |
'༣': '3', |
| 7136 |
'༤': '4', |
| 7137 |
'༥': '5', |
| 7138 |
'༦': '6', |
| 7139 |
'༧': '7', |
| 7140 |
'༨': '8', |
| 7141 |
'༩': '9', |
| 7142 |
'༠': '0', |
| 7143 |
}; |
| 7144 |
|
| 7145 |
hooks.defineLocale('bo', { |
| 7146 |
months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split( |
| 7147 |
'_' |
| 7148 |
), |
| 7149 |
monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split( |
| 7150 |
'_' |
| 7151 |
), |
| 7152 |
monthsShortRegex: /^(ཟླ་\d{1,2})/, |
| 7153 |
monthsParseExact: true, |
| 7154 |
weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split( |
| 7155 |
'_' |
| 7156 |
), |
| 7157 |
weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split( |
| 7158 |
'_' |
| 7159 |
), |
| 7160 |
weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'), |
| 7161 |
longDateFormat: { |
| 7162 |
LT: 'A h:mm', |
| 7163 |
LTS: 'A h:mm:ss', |
| 7164 |
L: 'DD/MM/YYYY', |
| 7165 |
LL: 'D MMMM YYYY', |
| 7166 |
LLL: 'D MMMM YYYY, A h:mm', |
| 7167 |
LLLL: 'dddd, D MMMM YYYY, A h:mm', |
| 7168 |
}, |
| 7169 |
calendar: { |
| 7170 |
sameDay: '[དི་རིང] LT', |
| 7171 |
nextDay: '[སང་ཉིན] LT', |
| 7172 |
nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT', |
| 7173 |
lastDay: '[ཁ་སང] LT', |
| 7174 |
lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT', |
| 7175 |
sameElse: 'L', |
| 7176 |
}, |
| 7177 |
relativeTime: { |
| 7178 |
future: '%s ལ་', |
| 7179 |
past: '%s སྔན་ལ', |
| 7180 |
s: 'ལམ་སང', |
| 7181 |
ss: '%d སྐར་ཆ།', |
| 7182 |
m: 'སྐར་མ་གཅིག', |
| 7183 |
mm: '%d སྐར་མ', |
| 7184 |
h: 'ཆུ་ཚོད་གཅིག', |
| 7185 |
hh: '%d ཆུ་ཚོད', |
| 7186 |
d: 'ཉིན་གཅིག', |
| 7187 |
dd: '%d ཉིན་', |
| 7188 |
M: 'ཟླ་བ་གཅིག', |
| 7189 |
MM: '%d ཟླ་བ', |
| 7190 |
y: 'ལོ་གཅིག', |
| 7191 |
yy: '%d ལོ', |
| 7192 |
}, |
| 7193 |
preparse: function (string) { |
| 7194 |
return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) { |
| 7195 |
return numberMap$4[match]; |
| 7196 |
}); |
| 7197 |
}, |
| 7198 |
postformat: function (string) { |
| 7199 |
return string.replace(/\d/g, function (match) { |
| 7200 |
return symbolMap$5[match]; |
| 7201 |
}); |
| 7202 |
}, |
| 7203 |
meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/, |
| 7204 |
meridiemHour: function (hour, meridiem) { |
| 7205 |
if (hour === 12) { |
| 7206 |
hour = 0; |
| 7207 |
} |
| 7208 |
if ( |
| 7209 |
(meridiem === 'མཚན་མོ' && hour >= 4) || |
| 7210 |
(meridiem === 'ཉིན་གུང' && hour < 5) || |
| 7211 |
meridiem === 'དགོང་དག' |
| 7212 |
) { |
| 7213 |
return hour + 12; |
| 7214 |
} else { |
| 7215 |
return hour; |
| 7216 |
} |
| 7217 |
}, |
| 7218 |
meridiem: function (hour, minute, isLower) { |
| 7219 |
if (hour < 4) { |
| 7220 |
return 'མཚན་མོ'; |
| 7221 |
} else if (hour < 10) { |
| 7222 |
return 'ཞོགས་ཀས'; |
| 7223 |
} else if (hour < 17) { |
| 7224 |
return 'ཉིན་གུང'; |
| 7225 |
} else if (hour < 20) { |
| 7226 |
return 'དགོང་དག'; |
| 7227 |
} else { |
| 7228 |
return 'མཚན་མོ'; |
| 7229 |
} |
| 7230 |
}, |
| 7231 |
week: { |
| 7232 |
dow: 0, // Sunday is the first day of the week. |
| 7233 |
doy: 6, // The week that contains Jan 6th is the first week of the year. |
| 7234 |
}, |
| 7235 |
}); |
| 7236 |
|
| 7237 |
//! moment.js locale configuration |
| 7238 |
|
| 7239 |
function relativeTimeWithMutation(number, withoutSuffix, key) { |
| 7240 |
var format = { |
| 7241 |
mm: 'munutenn', |
| 7242 |
MM: 'miz', |
| 7243 |
dd: 'devezh', |
| 7244 |
}; |
| 7245 |
return number + ' ' + mutation(format[key], number); |
| 7246 |
} |
| 7247 |
function specialMutationForYears(number) { |
| 7248 |
switch (lastNumber(number)) { |
| 7249 |
case 1: |
| 7250 |
case 3: |
| 7251 |
case 4: |
| 7252 |
case 5: |
| 7253 |
case 9: |
| 7254 |
return number + ' bloaz'; |
| 7255 |
default: |
| 7256 |
return number + ' vloaz'; |
| 7257 |
} |
| 7258 |
} |
| 7259 |
function lastNumber(number) { |
| 7260 |
if (number > 9) { |
| 7261 |
return lastNumber(number % 10); |
| 7262 |
} |
| 7263 |
return number; |
| 7264 |
} |
| 7265 |
function mutation(text, number) { |
| 7266 |
if (number === 2) { |
| 7267 |
return softMutation(text); |
| 7268 |
} |
| 7269 |
return text; |
| 7270 |
} |
| 7271 |
function softMutation(text) { |
| 7272 |
var mutationTable = { |
| 7273 |
m: 'v', |
| 7274 |
b: 'v', |
| 7275 |
d: 'z', |
| 7276 |
}; |
| 7277 |
if (mutationTable[text.charAt(0)] === undefined) { |
| 7278 |
return text; |
| 7279 |
} |
| 7280 |
return mutationTable[text.charAt(0)] + text.substring(1); |
| 7281 |
} |
| 7282 |
|
| 7283 |
var monthsParse = [ |
| 7284 |
/^gen/i, |
| 7285 |
/^c[ʼ\']hwe/i, |
| 7286 |
/^meu/i, |
| 7287 |
/^ebr/i, |
| 7288 |
/^mae/i, |
| 7289 |
/^(mez|eve)/i, |
| 7290 |
/^gou/i, |
| 7291 |
/^eos/i, |
| 7292 |
/^gwe/i, |
| 7293 |
/^her/i, |
| 7294 |
/^du/i, |
| 7295 |
/^ker/i, |
| 7296 |
], |
| 7297 |
monthsRegex$1 = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i, |
| 7298 |
monthsStrictRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i, |
| 7299 |
monthsShortStrictRegex = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i, |
| 7300 |
fullWeekdaysParse = [ |
| 7301 |
/^sul/i, |
| 7302 |
/^lun/i, |
| 7303 |
/^meurzh/i, |
| 7304 |
/^merc[ʼ\']her/i, |
| 7305 |
/^yaou/i, |
| 7306 |
/^gwener/i, |
| 7307 |
/^sadorn/i, |
| 7308 |
], |
| 7309 |
shortWeekdaysParse = [ |
| 7310 |
/^Sul/i, |
| 7311 |
/^Lun/i, |
| 7312 |
/^Meu/i, |
| 7313 |
/^Mer/i, |
| 7314 |
/^Yao/i, |
| 7315 |
/^Gwe/i, |
| 7316 |
/^Sad/i, |
| 7317 |
], |
| 7318 |
minWeekdaysParse = [ |
| 7319 |
/^Su/i, |
| 7320 |
/^Lu/i, |
| 7321 |
/^Me([^r]|$)/i, |
| 7322 |
/^Mer/i, |
| 7323 |
/^Ya/i, |
| 7324 |
/^Gw/i, |
| 7325 |
/^Sa/i, |
| 7326 |
]; |
| 7327 |
|
| 7328 |
hooks.defineLocale('br', { |
| 7329 |
months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split( |
| 7330 |
'_' |
| 7331 |
), |
| 7332 |
monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'), |
| 7333 |
weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'), |
| 7334 |
weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'), |
| 7335 |
weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'), |
| 7336 |
weekdaysParse: minWeekdaysParse, |
| 7337 |
fullWeekdaysParse: fullWeekdaysParse, |
| 7338 |
shortWeekdaysParse: shortWeekdaysParse, |
| 7339 |
minWeekdaysParse: minWeekdaysParse, |
| 7340 |
|
| 7341 |
monthsRegex: monthsRegex$1, |
| 7342 |
monthsShortRegex: monthsRegex$1, |
| 7343 |
monthsStrictRegex: monthsStrictRegex, |
| 7344 |
monthsShortStrictRegex: monthsShortStrictRegex, |
| 7345 |
monthsParse: monthsParse, |
| 7346 |
longMonthsParse: monthsParse, |
| 7347 |
shortMonthsParse: monthsParse, |
| 7348 |
|
| 7349 |
longDateFormat: { |
| 7350 |
LT: 'HH:mm', |
| 7351 |
LTS: 'HH:mm:ss', |
| 7352 |
L: 'DD/MM/YYYY', |
| 7353 |
LL: 'D [a viz] MMMM YYYY', |
| 7354 |
LLL: 'D [a viz] MMMM YYYY HH:mm', |
| 7355 |
LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm', |
| 7356 |
}, |
| 7357 |
calendar: { |
| 7358 |
sameDay: '[Hiziv da] LT', |
| 7359 |
nextDay: '[Warcʼhoazh da] LT', |
| 7360 |
nextWeek: 'dddd [da] LT', |
| 7361 |
lastDay: '[Decʼh da] LT', |
| 7362 |
lastWeek: 'dddd [paset da] LT', |
| 7363 |
sameElse: 'L', |
| 7364 |
}, |
| 7365 |
relativeTime: { |
| 7366 |
future: 'a-benn %s', |
| 7367 |
past: '%s ʼzo', |
| 7368 |
s: 'un nebeud segondennoù', |
| 7369 |
ss: '%d eilenn', |
| 7370 |
m: 'ur vunutenn', |
| 7371 |
mm: relativeTimeWithMutation, |
| 7372 |
h: 'un eur', |
| 7373 |
hh: '%d eur', |
| 7374 |
d: 'un devezh', |
| 7375 |
dd: relativeTimeWithMutation, |
| 7376 |
M: 'ur miz', |
| 7377 |
MM: relativeTimeWithMutation, |
| 7378 |
y: 'ur bloaz', |
| 7379 |
yy: specialMutationForYears, |
| 7380 |
}, |
| 7381 |
dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/, |
| 7382 |
ordinal: function (number) { |
| 7383 |
var output = number === 1 ? 'añ' : 'vet'; |
| 7384 |
return number + output; |
| 7385 |
}, |
| 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 |
meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn |
| 7391 |
isPM: function (token) { |
| 7392 |
return token === 'g.m.'; |
| 7393 |
}, |
| 7394 |
meridiem: function (hour, minute, isLower) { |
| 7395 |
return hour < 12 ? 'a.m.' : 'g.m.'; |
| 7396 |
}, |
| 7397 |
}); |
| 7398 |
|
| 7399 |
//! moment.js locale configuration |
| 7400 |
|
| 7401 |
function translate(number, withoutSuffix, key) { |
| 7402 |
var result = number + ' '; |
| 7403 |
switch (key) { |
| 7404 |
case 'ss': |
| 7405 |
if (number === 1) { |
| 7406 |
result += 'sekunda'; |
| 7407 |
} else if (number === 2 || number === 3 || number === 4) { |
| 7408 |
result += 'sekunde'; |
| 7409 |
} else { |
| 7410 |
result += 'sekundi'; |
| 7411 |
} |
| 7412 |
return result; |
| 7413 |
case 'm': |
| 7414 |
return withoutSuffix ? 'jedna minuta' : 'jedne minute'; |
| 7415 |
case 'mm': |
| 7416 |
if (number === 1) { |
| 7417 |
result += 'minuta'; |
| 7418 |
} else if (number === 2 || number === 3 || number === 4) { |
| 7419 |
result += 'minute'; |
| 7420 |
} else { |
| 7421 |
result += 'minuta'; |
| 7422 |
} |
| 7423 |
return result; |
| 7424 |
case 'h': |
| 7425 |
return withoutSuffix ? 'jedan sat' : 'jednog sata'; |
| 7426 |
case 'hh': |
| 7427 |
if (number === 1) { |
| 7428 |
result += 'sat'; |
| 7429 |
} else if (number === 2 || number === 3 || number === 4) { |
| 7430 |
result += 'sata'; |
| 7431 |
} else { |
| 7432 |
result += 'sati'; |
| 7433 |
} |
| 7434 |
return result; |
| 7435 |
case 'dd': |
| 7436 |
if (number === 1) { |
| 7437 |
result += 'dan'; |
| 7438 |
} else { |
| 7439 |
result += 'dana'; |
| 7440 |
} |
| 7441 |
return result; |
| 7442 |
case 'MM': |
| 7443 |
if (number === 1) { |
| 7444 |
result += 'mjesec'; |
| 7445 |
} else if (number === 2 || number === 3 || number === 4) { |
| 7446 |
result += 'mjeseca'; |
| 7447 |
} else { |
| 7448 |
result += 'mjeseci'; |
| 7449 |
} |
| 7450 |
return result; |
| 7451 |
case 'yy': |
| 7452 |
if (number === 1) { |
| 7453 |
result += 'godina'; |
| 7454 |
} else if (number === 2 || number === 3 || number === 4) { |
| 7455 |
result += 'godine'; |
| 7456 |
} else { |
| 7457 |
result += 'godina'; |
| 7458 |
} |
| 7459 |
return result; |
| 7460 |
} |
| 7461 |
} |
| 7462 |
|
| 7463 |
hooks.defineLocale('bs', { |
| 7464 |
months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split( |
| 7465 |
'_' |
| 7466 |
), |
| 7467 |
monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split( |
| 7468 |
'_' |
| 7469 |
), |
| 7470 |
monthsParseExact: true, |
| 7471 |
weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( |
| 7472 |
'_' |
| 7473 |
), |
| 7474 |
weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), |
| 7475 |
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), |
| 7476 |
weekdaysParseExact: true, |
| 7477 |
longDateFormat: { |
| 7478 |
LT: 'H:mm', |
| 7479 |
LTS: 'H:mm:ss', |
| 7480 |
L: 'DD.MM.YYYY', |
| 7481 |
LL: 'D. MMMM YYYY', |
| 7482 |
LLL: 'D. MMMM YYYY H:mm', |
| 7483 |
LLLL: 'dddd, D. MMMM YYYY H:mm', |
| 7484 |
}, |
| 7485 |
calendar: { |
| 7486 |
sameDay: '[danas u] LT', |
| 7487 |
nextDay: '[sutra u] LT', |
| 7488 |
nextWeek: function () { |
| 7489 |
switch (this.day()) { |
| 7490 |
case 0: |
| 7491 |
return '[u] [nedjelju] [u] LT'; |
| 7492 |
case 3: |
| 7493 |
return '[u] [srijedu] [u] LT'; |
| 7494 |
case 6: |
| 7495 |
return '[u] [subotu] [u] LT'; |
| 7496 |
case 1: |
| 7497 |
case 2: |
| 7498 |
case 4: |
| 7499 |
case 5: |
| 7500 |
return '[u] dddd [u] LT'; |
| 7501 |
} |
| 7502 |
}, |
| 7503 |
lastDay: '[jučer u] LT', |
| 7504 |
lastWeek: function () { |
| 7505 |
switch (this.day()) { |
| 7506 |
case 0: |
| 7507 |
case 3: |
| 7508 |
return '[prošlu] dddd [u] LT'; |
| 7509 |
case 6: |
| 7510 |
return '[prošle] [subote] [u] LT'; |
| 7511 |
case 1: |
| 7512 |
case 2: |
| 7513 |
case 4: |
| 7514 |
case 5: |
| 7515 |
return '[prošli] dddd [u] LT'; |
| 7516 |
} |
| 7517 |
}, |
| 7518 |
sameElse: 'L', |
| 7519 |
}, |
| 7520 |
relativeTime: { |
| 7521 |
future: 'za %s', |
| 7522 |
past: 'prije %s', |
| 7523 |
s: 'par sekundi', |
| 7524 |
ss: translate, |
| 7525 |
m: translate, |
| 7526 |
mm: translate, |
| 7527 |
h: translate, |
| 7528 |
hh: translate, |
| 7529 |
d: 'dan', |
| 7530 |
dd: translate, |
| 7531 |
M: 'mjesec', |
| 7532 |
MM: translate, |
| 7533 |
y: 'godinu', |
| 7534 |
yy: translate, |
| 7535 |
}, |
| 7536 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 7537 |
ordinal: '%d.', |
| 7538 |
week: { |
| 7539 |
dow: 1, // Monday is the first day of the week. |
| 7540 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 7541 |
}, |
| 7542 |
}); |
| 7543 |
|
| 7544 |
//! moment.js locale configuration |
| 7545 |
|
| 7546 |
hooks.defineLocale('ca', { |
| 7547 |
months: { |
| 7548 |
standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split( |
| 7549 |
'_' |
| 7550 |
), |
| 7551 |
format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split( |
| 7552 |
'_' |
| 7553 |
), |
| 7554 |
isFormat: /D[oD]?(\s)+MMMM/, |
| 7555 |
}, |
| 7556 |
monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split( |
| 7557 |
'_' |
| 7558 |
), |
| 7559 |
monthsParseExact: true, |
| 7560 |
weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split( |
| 7561 |
'_' |
| 7562 |
), |
| 7563 |
weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'), |
| 7564 |
weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'), |
| 7565 |
weekdaysParseExact: true, |
| 7566 |
longDateFormat: { |
| 7567 |
LT: 'H:mm', |
| 7568 |
LTS: 'H:mm:ss', |
| 7569 |
L: 'DD/MM/YYYY', |
| 7570 |
LL: 'D MMMM [de] YYYY', |
| 7571 |
ll: 'D MMM YYYY', |
| 7572 |
LLL: 'D MMMM [de] YYYY [a les] H:mm', |
| 7573 |
lll: 'D MMM YYYY, H:mm', |
| 7574 |
LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm', |
| 7575 |
llll: 'ddd D MMM YYYY, H:mm', |
| 7576 |
}, |
| 7577 |
calendar: { |
| 7578 |
sameDay: function () { |
| 7579 |
return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; |
| 7580 |
}, |
| 7581 |
nextDay: function () { |
| 7582 |
return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; |
| 7583 |
}, |
| 7584 |
nextWeek: function () { |
| 7585 |
return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; |
| 7586 |
}, |
| 7587 |
lastDay: function () { |
| 7588 |
return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; |
| 7589 |
}, |
| 7590 |
lastWeek: function () { |
| 7591 |
return ( |
| 7592 |
'[el] dddd [passat a ' + |
| 7593 |
(this.hours() !== 1 ? 'les' : 'la') + |
| 7594 |
'] LT' |
| 7595 |
); |
| 7596 |
}, |
| 7597 |
sameElse: 'L', |
| 7598 |
}, |
| 7599 |
relativeTime: { |
| 7600 |
future: "d'aquí %s", |
| 7601 |
past: 'fa %s', |
| 7602 |
s: 'uns segons', |
| 7603 |
ss: '%d segons', |
| 7604 |
m: 'un minut', |
| 7605 |
mm: '%d minuts', |
| 7606 |
h: 'una hora', |
| 7607 |
hh: '%d hores', |
| 7608 |
d: 'un dia', |
| 7609 |
dd: '%d dies', |
| 7610 |
M: 'un mes', |
| 7611 |
MM: '%d mesos', |
| 7612 |
y: 'un any', |
| 7613 |
yy: '%d anys', |
| 7614 |
}, |
| 7615 |
dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, |
| 7616 |
ordinal: function (number, period) { |
| 7617 |
var output = |
| 7618 |
number === 1 |
| 7619 |
? 'r' |
| 7620 |
: number === 2 |
| 7621 |
? 'n' |
| 7622 |
: number === 3 |
| 7623 |
? 'r' |
| 7624 |
: number === 4 |
| 7625 |
? 't' |
| 7626 |
: 'è'; |
| 7627 |
if (period === 'w' || period === 'W') { |
| 7628 |
output = 'a'; |
| 7629 |
} |
| 7630 |
return number + output; |
| 7631 |
}, |
| 7632 |
week: { |
| 7633 |
dow: 1, // Monday is the first day of the week. |
| 7634 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 7635 |
}, |
| 7636 |
}); |
| 7637 |
|
| 7638 |
//! moment.js locale configuration |
| 7639 |
|
| 7640 |
var months$4 = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split( |
| 7641 |
'_' |
| 7642 |
), |
| 7643 |
monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'), |
| 7644 |
monthsParse$1 = [ |
| 7645 |
/^led/i, |
| 7646 |
/^úno/i, |
| 7647 |
/^bře/i, |
| 7648 |
/^dub/i, |
| 7649 |
/^kvě/i, |
| 7650 |
/^(čvn|červen$|června)/i, |
| 7651 |
/^(čvc|červenec|července)/i, |
| 7652 |
/^srp/i, |
| 7653 |
/^zář/i, |
| 7654 |
/^říj/i, |
| 7655 |
/^lis/i, |
| 7656 |
/^pro/i, |
| 7657 |
], |
| 7658 |
// NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched. |
| 7659 |
// Otherwise parser matches '1. červenec' as '1. červen' + 'ec'. |
| 7660 |
monthsRegex$2 = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i; |
| 7661 |
|
| 7662 |
function plural$1(n) { |
| 7663 |
return n > 1 && n < 5 && ~~(n / 10) !== 1; |
| 7664 |
} |
| 7665 |
function translate$1(number, withoutSuffix, key, isFuture) { |
| 7666 |
var result = number + ' '; |
| 7667 |
switch (key) { |
| 7668 |
case 's': // a few seconds / in a few seconds / a few seconds ago |
| 7669 |
return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami'; |
| 7670 |
case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago |
| 7671 |
if (withoutSuffix || isFuture) { |
| 7672 |
return result + (plural$1(number) ? 'sekundy' : 'sekund'); |
| 7673 |
} else { |
| 7674 |
return result + 'sekundami'; |
| 7675 |
} |
| 7676 |
case 'm': // a minute / in a minute / a minute ago |
| 7677 |
return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou'; |
| 7678 |
case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago |
| 7679 |
if (withoutSuffix || isFuture) { |
| 7680 |
return result + (plural$1(number) ? 'minuty' : 'minut'); |
| 7681 |
} else { |
| 7682 |
return result + 'minutami'; |
| 7683 |
} |
| 7684 |
case 'h': // an hour / in an hour / an hour ago |
| 7685 |
return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou'; |
| 7686 |
case 'hh': // 9 hours / in 9 hours / 9 hours ago |
| 7687 |
if (withoutSuffix || isFuture) { |
| 7688 |
return result + (plural$1(number) ? 'hodiny' : 'hodin'); |
| 7689 |
} else { |
| 7690 |
return result + 'hodinami'; |
| 7691 |
} |
| 7692 |
case 'd': // a day / in a day / a day ago |
| 7693 |
return withoutSuffix || isFuture ? 'den' : 'dnem'; |
| 7694 |
case 'dd': // 9 days / in 9 days / 9 days ago |
| 7695 |
if (withoutSuffix || isFuture) { |
| 7696 |
return result + (plural$1(number) ? 'dny' : 'dní'); |
| 7697 |
} else { |
| 7698 |
return result + 'dny'; |
| 7699 |
} |
| 7700 |
case 'M': // a month / in a month / a month ago |
| 7701 |
return withoutSuffix || isFuture ? 'měsíc' : 'měsícem'; |
| 7702 |
case 'MM': // 9 months / in 9 months / 9 months ago |
| 7703 |
if (withoutSuffix || isFuture) { |
| 7704 |
return result + (plural$1(number) ? 'měsíce' : 'měsíců'); |
| 7705 |
} else { |
| 7706 |
return result + 'měsíci'; |
| 7707 |
} |
| 7708 |
case 'y': // a year / in a year / a year ago |
| 7709 |
return withoutSuffix || isFuture ? 'rok' : 'rokem'; |
| 7710 |
case 'yy': // 9 years / in 9 years / 9 years ago |
| 7711 |
if (withoutSuffix || isFuture) { |
| 7712 |
return result + (plural$1(number) ? 'roky' : 'let'); |
| 7713 |
} else { |
| 7714 |
return result + 'lety'; |
| 7715 |
} |
| 7716 |
} |
| 7717 |
} |
| 7718 |
|
| 7719 |
hooks.defineLocale('cs', { |
| 7720 |
months: months$4, |
| 7721 |
monthsShort: monthsShort, |
| 7722 |
monthsRegex: monthsRegex$2, |
| 7723 |
monthsShortRegex: monthsRegex$2, |
| 7724 |
// NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched. |
| 7725 |
// Otherwise parser matches '1. červenec' as '1. červen' + 'ec'. |
| 7726 |
monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i, |
| 7727 |
monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i, |
| 7728 |
monthsParse: monthsParse$1, |
| 7729 |
longMonthsParse: monthsParse$1, |
| 7730 |
shortMonthsParse: monthsParse$1, |
| 7731 |
weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'), |
| 7732 |
weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'), |
| 7733 |
weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'), |
| 7734 |
longDateFormat: { |
| 7735 |
LT: 'H:mm', |
| 7736 |
LTS: 'H:mm:ss', |
| 7737 |
L: 'DD.MM.YYYY', |
| 7738 |
LL: 'D. MMMM YYYY', |
| 7739 |
LLL: 'D. MMMM YYYY H:mm', |
| 7740 |
LLLL: 'dddd D. MMMM YYYY H:mm', |
| 7741 |
l: 'D. M. YYYY', |
| 7742 |
}, |
| 7743 |
calendar: { |
| 7744 |
sameDay: '[dnes v] LT', |
| 7745 |
nextDay: '[zítra v] LT', |
| 7746 |
nextWeek: function () { |
| 7747 |
switch (this.day()) { |
| 7748 |
case 0: |
| 7749 |
return '[v neděli v] LT'; |
| 7750 |
case 1: |
| 7751 |
case 2: |
| 7752 |
return '[v] dddd [v] LT'; |
| 7753 |
case 3: |
| 7754 |
return '[ve středu v] LT'; |
| 7755 |
case 4: |
| 7756 |
return '[ve čtvrtek v] LT'; |
| 7757 |
case 5: |
| 7758 |
return '[v pátek v] LT'; |
| 7759 |
case 6: |
| 7760 |
return '[v sobotu v] LT'; |
| 7761 |
} |
| 7762 |
}, |
| 7763 |
lastDay: '[včera v] LT', |
| 7764 |
lastWeek: function () { |
| 7765 |
switch (this.day()) { |
| 7766 |
case 0: |
| 7767 |
return '[minulou neděli v] LT'; |
| 7768 |
case 1: |
| 7769 |
case 2: |
| 7770 |
return '[minulé] dddd [v] LT'; |
| 7771 |
case 3: |
| 7772 |
return '[minulou středu v] LT'; |
| 7773 |
case 4: |
| 7774 |
case 5: |
| 7775 |
return '[minulý] dddd [v] LT'; |
| 7776 |
case 6: |
| 7777 |
return '[minulou sobotu v] LT'; |
| 7778 |
} |
| 7779 |
}, |
| 7780 |
sameElse: 'L', |
| 7781 |
}, |
| 7782 |
relativeTime: { |
| 7783 |
future: 'za %s', |
| 7784 |
past: 'před %s', |
| 7785 |
s: translate$1, |
| 7786 |
ss: translate$1, |
| 7787 |
m: translate$1, |
| 7788 |
mm: translate$1, |
| 7789 |
h: translate$1, |
| 7790 |
hh: translate$1, |
| 7791 |
d: translate$1, |
| 7792 |
dd: translate$1, |
| 7793 |
M: translate$1, |
| 7794 |
MM: translate$1, |
| 7795 |
y: translate$1, |
| 7796 |
yy: translate$1, |
| 7797 |
}, |
| 7798 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 7799 |
ordinal: '%d.', |
| 7800 |
week: { |
| 7801 |
dow: 1, // Monday is the first day of the week. |
| 7802 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 7803 |
}, |
| 7804 |
}); |
| 7805 |
|
| 7806 |
//! moment.js locale configuration |
| 7807 |
|
| 7808 |
hooks.defineLocale('cv', { |
| 7809 |
months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split( |
| 7810 |
'_' |
| 7811 |
), |
| 7812 |
monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'), |
| 7813 |
weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split( |
| 7814 |
'_' |
| 7815 |
), |
| 7816 |
weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'), |
| 7817 |
weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'), |
| 7818 |
longDateFormat: { |
| 7819 |
LT: 'HH:mm', |
| 7820 |
LTS: 'HH:mm:ss', |
| 7821 |
L: 'DD-MM-YYYY', |
| 7822 |
LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]', |
| 7823 |
LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', |
| 7824 |
LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', |
| 7825 |
}, |
| 7826 |
calendar: { |
| 7827 |
sameDay: '[Паян] LT [сехетре]', |
| 7828 |
nextDay: '[Ыран] LT [сехетре]', |
| 7829 |
lastDay: '[Ӗнер] LT [сехетре]', |
| 7830 |
nextWeek: '[Ҫитес] dddd LT [сехетре]', |
| 7831 |
lastWeek: '[Иртнӗ] dddd LT [сехетре]', |
| 7832 |
sameElse: 'L', |
| 7833 |
}, |
| 7834 |
relativeTime: { |
| 7835 |
future: function (output) { |
| 7836 |
var affix = /сехет$/i.exec(output) |
| 7837 |
? 'рен' |
| 7838 |
: /ҫул$/i.exec(output) |
| 7839 |
? 'тан' |
| 7840 |
: 'ран'; |
| 7841 |
return output + affix; |
| 7842 |
}, |
| 7843 |
past: '%s каялла', |
| 7844 |
s: 'пӗр-ик ҫеккунт', |
| 7845 |
ss: '%d ҫеккунт', |
| 7846 |
m: 'пӗр минут', |
| 7847 |
mm: '%d минут', |
| 7848 |
h: 'пӗр сехет', |
| 7849 |
hh: '%d сехет', |
| 7850 |
d: 'пӗр кун', |
| 7851 |
dd: '%d кун', |
| 7852 |
M: 'пӗр уйӑх', |
| 7853 |
MM: '%d уйӑх', |
| 7854 |
y: 'пӗр ҫул', |
| 7855 |
yy: '%d ҫул', |
| 7856 |
}, |
| 7857 |
dayOfMonthOrdinalParse: /\d{1,2}-мӗш/, |
| 7858 |
ordinal: '%d-мӗш', |
| 7859 |
week: { |
| 7860 |
dow: 1, // Monday is the first day of the week. |
| 7861 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 7862 |
}, |
| 7863 |
}); |
| 7864 |
|
| 7865 |
//! moment.js locale configuration |
| 7866 |
|
| 7867 |
hooks.defineLocale('cy', { |
| 7868 |
months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split( |
| 7869 |
'_' |
| 7870 |
), |
| 7871 |
monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split( |
| 7872 |
'_' |
| 7873 |
), |
| 7874 |
weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split( |
| 7875 |
'_' |
| 7876 |
), |
| 7877 |
weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), |
| 7878 |
weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), |
| 7879 |
weekdaysParseExact: true, |
| 7880 |
// time formats are the same as en-gb |
| 7881 |
longDateFormat: { |
| 7882 |
LT: 'HH:mm', |
| 7883 |
LTS: 'HH:mm:ss', |
| 7884 |
L: 'DD/MM/YYYY', |
| 7885 |
LL: 'D MMMM YYYY', |
| 7886 |
LLL: 'D MMMM YYYY HH:mm', |
| 7887 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 7888 |
}, |
| 7889 |
calendar: { |
| 7890 |
sameDay: '[Heddiw am] LT', |
| 7891 |
nextDay: '[Yfory am] LT', |
| 7892 |
nextWeek: 'dddd [am] LT', |
| 7893 |
lastDay: '[Ddoe am] LT', |
| 7894 |
lastWeek: 'dddd [diwethaf am] LT', |
| 7895 |
sameElse: 'L', |
| 7896 |
}, |
| 7897 |
relativeTime: { |
| 7898 |
future: 'mewn %s', |
| 7899 |
past: '%s yn ôl', |
| 7900 |
s: 'ychydig eiliadau', |
| 7901 |
ss: '%d eiliad', |
| 7902 |
m: 'munud', |
| 7903 |
mm: '%d munud', |
| 7904 |
h: 'awr', |
| 7905 |
hh: '%d awr', |
| 7906 |
d: 'diwrnod', |
| 7907 |
dd: '%d diwrnod', |
| 7908 |
M: 'mis', |
| 7909 |
MM: '%d mis', |
| 7910 |
y: 'blwyddyn', |
| 7911 |
yy: '%d flynedd', |
| 7912 |
}, |
| 7913 |
dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, |
| 7914 |
// traditional ordinal numbers above 31 are not commonly used in colloquial Welsh |
| 7915 |
ordinal: function (number) { |
| 7916 |
var b = number, |
| 7917 |
output = '', |
| 7918 |
lookup = [ |
| 7919 |
'', |
| 7920 |
'af', |
| 7921 |
'il', |
| 7922 |
'ydd', |
| 7923 |
'ydd', |
| 7924 |
'ed', |
| 7925 |
'ed', |
| 7926 |
'ed', |
| 7927 |
'fed', |
| 7928 |
'fed', |
| 7929 |
'fed', // 1af to 10fed |
| 7930 |
'eg', |
| 7931 |
'fed', |
| 7932 |
'eg', |
| 7933 |
'eg', |
| 7934 |
'fed', |
| 7935 |
'eg', |
| 7936 |
'eg', |
| 7937 |
'fed', |
| 7938 |
'eg', |
| 7939 |
'fed', // 11eg to 20fed |
| 7940 |
]; |
| 7941 |
if (b > 20) { |
| 7942 |
if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) { |
| 7943 |
output = 'fed'; // not 30ain, 70ain or 90ain |
| 7944 |
} else { |
| 7945 |
output = 'ain'; |
| 7946 |
} |
| 7947 |
} else if (b > 0) { |
| 7948 |
output = lookup[b]; |
| 7949 |
} |
| 7950 |
return number + output; |
| 7951 |
}, |
| 7952 |
week: { |
| 7953 |
dow: 1, // Monday is the first day of the week. |
| 7954 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 7955 |
}, |
| 7956 |
}); |
| 7957 |
|
| 7958 |
//! moment.js locale configuration |
| 7959 |
|
| 7960 |
hooks.defineLocale('da', { |
| 7961 |
months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split( |
| 7962 |
'_' |
| 7963 |
), |
| 7964 |
monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), |
| 7965 |
weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), |
| 7966 |
weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'), |
| 7967 |
weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), |
| 7968 |
longDateFormat: { |
| 7969 |
LT: 'HH:mm', |
| 7970 |
LTS: 'HH:mm:ss', |
| 7971 |
L: 'DD.MM.YYYY', |
| 7972 |
LL: 'D. MMMM YYYY', |
| 7973 |
LLL: 'D. MMMM YYYY HH:mm', |
| 7974 |
LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm', |
| 7975 |
}, |
| 7976 |
calendar: { |
| 7977 |
sameDay: '[i dag kl.] LT', |
| 7978 |
nextDay: '[i morgen kl.] LT', |
| 7979 |
nextWeek: 'på dddd [kl.] LT', |
| 7980 |
lastDay: '[i går kl.] LT', |
| 7981 |
lastWeek: '[i] dddd[s kl.] LT', |
| 7982 |
sameElse: 'L', |
| 7983 |
}, |
| 7984 |
relativeTime: { |
| 7985 |
future: 'om %s', |
| 7986 |
past: '%s siden', |
| 7987 |
s: 'få sekunder', |
| 7988 |
ss: '%d sekunder', |
| 7989 |
m: 'et minut', |
| 7990 |
mm: '%d minutter', |
| 7991 |
h: 'en time', |
| 7992 |
hh: '%d timer', |
| 7993 |
d: 'en dag', |
| 7994 |
dd: '%d dage', |
| 7995 |
M: 'en måned', |
| 7996 |
MM: '%d måneder', |
| 7997 |
y: 'et år', |
| 7998 |
yy: '%d år', |
| 7999 |
}, |
| 8000 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 8001 |
ordinal: '%d.', |
| 8002 |
week: { |
| 8003 |
dow: 1, // Monday is the first day of the week. |
| 8004 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 8005 |
}, |
| 8006 |
}); |
| 8007 |
|
| 8008 |
//! moment.js locale configuration |
| 8009 |
|
| 8010 |
function processRelativeTime(number, withoutSuffix, key, isFuture) { |
| 8011 |
var format = { |
| 8012 |
m: ['eine Minute', 'einer Minute'], |
| 8013 |
h: ['eine Stunde', 'einer Stunde'], |
| 8014 |
d: ['ein Tag', 'einem Tag'], |
| 8015 |
dd: [number + ' Tage', number + ' Tagen'], |
| 8016 |
w: ['eine Woche', 'einer Woche'], |
| 8017 |
M: ['ein Monat', 'einem Monat'], |
| 8018 |
MM: [number + ' Monate', number + ' Monaten'], |
| 8019 |
y: ['ein Jahr', 'einem Jahr'], |
| 8020 |
yy: [number + ' Jahre', number + ' Jahren'], |
| 8021 |
}; |
| 8022 |
return withoutSuffix ? format[key][0] : format[key][1]; |
| 8023 |
} |
| 8024 |
|
| 8025 |
hooks.defineLocale('de-at', { |
| 8026 |
months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( |
| 8027 |
'_' |
| 8028 |
), |
| 8029 |
monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( |
| 8030 |
'_' |
| 8031 |
), |
| 8032 |
monthsParseExact: true, |
| 8033 |
weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( |
| 8034 |
'_' |
| 8035 |
), |
| 8036 |
weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), |
| 8037 |
weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), |
| 8038 |
weekdaysParseExact: true, |
| 8039 |
longDateFormat: { |
| 8040 |
LT: 'HH:mm', |
| 8041 |
LTS: 'HH:mm:ss', |
| 8042 |
L: 'DD.MM.YYYY', |
| 8043 |
LL: 'D. MMMM YYYY', |
| 8044 |
LLL: 'D. MMMM YYYY HH:mm', |
| 8045 |
LLLL: 'dddd, D. MMMM YYYY HH:mm', |
| 8046 |
}, |
| 8047 |
calendar: { |
| 8048 |
sameDay: '[heute um] LT [Uhr]', |
| 8049 |
sameElse: 'L', |
| 8050 |
nextDay: '[morgen um] LT [Uhr]', |
| 8051 |
nextWeek: 'dddd [um] LT [Uhr]', |
| 8052 |
lastDay: '[gestern um] LT [Uhr]', |
| 8053 |
lastWeek: '[letzten] dddd [um] LT [Uhr]', |
| 8054 |
}, |
| 8055 |
relativeTime: { |
| 8056 |
future: 'in %s', |
| 8057 |
past: 'vor %s', |
| 8058 |
s: 'ein paar Sekunden', |
| 8059 |
ss: '%d Sekunden', |
| 8060 |
m: processRelativeTime, |
| 8061 |
mm: '%d Minuten', |
| 8062 |
h: processRelativeTime, |
| 8063 |
hh: '%d Stunden', |
| 8064 |
d: processRelativeTime, |
| 8065 |
dd: processRelativeTime, |
| 8066 |
w: processRelativeTime, |
| 8067 |
ww: '%d Wochen', |
| 8068 |
M: processRelativeTime, |
| 8069 |
MM: processRelativeTime, |
| 8070 |
y: processRelativeTime, |
| 8071 |
yy: processRelativeTime, |
| 8072 |
}, |
| 8073 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 8074 |
ordinal: '%d.', |
| 8075 |
week: { |
| 8076 |
dow: 1, // Monday is the first day of the week. |
| 8077 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 8078 |
}, |
| 8079 |
}); |
| 8080 |
|
| 8081 |
//! moment.js locale configuration |
| 8082 |
|
| 8083 |
function processRelativeTime$1(number, withoutSuffix, key, isFuture) { |
| 8084 |
var format = { |
| 8085 |
m: ['eine Minute', 'einer Minute'], |
| 8086 |
h: ['eine Stunde', 'einer Stunde'], |
| 8087 |
d: ['ein Tag', 'einem Tag'], |
| 8088 |
dd: [number + ' Tage', number + ' Tagen'], |
| 8089 |
w: ['eine Woche', 'einer Woche'], |
| 8090 |
M: ['ein Monat', 'einem Monat'], |
| 8091 |
MM: [number + ' Monate', number + ' Monaten'], |
| 8092 |
y: ['ein Jahr', 'einem Jahr'], |
| 8093 |
yy: [number + ' Jahre', number + ' Jahren'], |
| 8094 |
}; |
| 8095 |
return withoutSuffix ? format[key][0] : format[key][1]; |
| 8096 |
} |
| 8097 |
|
| 8098 |
hooks.defineLocale('de-ch', { |
| 8099 |
months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( |
| 8100 |
'_' |
| 8101 |
), |
| 8102 |
monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( |
| 8103 |
'_' |
| 8104 |
), |
| 8105 |
monthsParseExact: true, |
| 8106 |
weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( |
| 8107 |
'_' |
| 8108 |
), |
| 8109 |
weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), |
| 8110 |
weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), |
| 8111 |
weekdaysParseExact: true, |
| 8112 |
longDateFormat: { |
| 8113 |
LT: 'HH:mm', |
| 8114 |
LTS: 'HH:mm:ss', |
| 8115 |
L: 'DD.MM.YYYY', |
| 8116 |
LL: 'D. MMMM YYYY', |
| 8117 |
LLL: 'D. MMMM YYYY HH:mm', |
| 8118 |
LLLL: 'dddd, D. MMMM YYYY HH:mm', |
| 8119 |
}, |
| 8120 |
calendar: { |
| 8121 |
sameDay: '[heute um] LT [Uhr]', |
| 8122 |
sameElse: 'L', |
| 8123 |
nextDay: '[morgen um] LT [Uhr]', |
| 8124 |
nextWeek: 'dddd [um] LT [Uhr]', |
| 8125 |
lastDay: '[gestern um] LT [Uhr]', |
| 8126 |
lastWeek: '[letzten] dddd [um] LT [Uhr]', |
| 8127 |
}, |
| 8128 |
relativeTime: { |
| 8129 |
future: 'in %s', |
| 8130 |
past: 'vor %s', |
| 8131 |
s: 'ein paar Sekunden', |
| 8132 |
ss: '%d Sekunden', |
| 8133 |
m: processRelativeTime$1, |
| 8134 |
mm: '%d Minuten', |
| 8135 |
h: processRelativeTime$1, |
| 8136 |
hh: '%d Stunden', |
| 8137 |
d: processRelativeTime$1, |
| 8138 |
dd: processRelativeTime$1, |
| 8139 |
w: processRelativeTime$1, |
| 8140 |
ww: '%d Wochen', |
| 8141 |
M: processRelativeTime$1, |
| 8142 |
MM: processRelativeTime$1, |
| 8143 |
y: processRelativeTime$1, |
| 8144 |
yy: processRelativeTime$1, |
| 8145 |
}, |
| 8146 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 8147 |
ordinal: '%d.', |
| 8148 |
week: { |
| 8149 |
dow: 1, // Monday is the first day of the week. |
| 8150 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 8151 |
}, |
| 8152 |
}); |
| 8153 |
|
| 8154 |
//! moment.js locale configuration |
| 8155 |
|
| 8156 |
function processRelativeTime$2(number, withoutSuffix, key, isFuture) { |
| 8157 |
var format = { |
| 8158 |
m: ['eine Minute', 'einer Minute'], |
| 8159 |
h: ['eine Stunde', 'einer Stunde'], |
| 8160 |
d: ['ein Tag', 'einem Tag'], |
| 8161 |
dd: [number + ' Tage', number + ' Tagen'], |
| 8162 |
w: ['eine Woche', 'einer Woche'], |
| 8163 |
M: ['ein Monat', 'einem Monat'], |
| 8164 |
MM: [number + ' Monate', number + ' Monaten'], |
| 8165 |
y: ['ein Jahr', 'einem Jahr'], |
| 8166 |
yy: [number + ' Jahre', number + ' Jahren'], |
| 8167 |
}; |
| 8168 |
return withoutSuffix ? format[key][0] : format[key][1]; |
| 8169 |
} |
| 8170 |
|
| 8171 |
hooks.defineLocale('de', { |
| 8172 |
months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( |
| 8173 |
'_' |
| 8174 |
), |
| 8175 |
monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( |
| 8176 |
'_' |
| 8177 |
), |
| 8178 |
monthsParseExact: true, |
| 8179 |
weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( |
| 8180 |
'_' |
| 8181 |
), |
| 8182 |
weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), |
| 8183 |
weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), |
| 8184 |
weekdaysParseExact: true, |
| 8185 |
longDateFormat: { |
| 8186 |
LT: 'HH:mm', |
| 8187 |
LTS: 'HH:mm:ss', |
| 8188 |
L: 'DD.MM.YYYY', |
| 8189 |
LL: 'D. MMMM YYYY', |
| 8190 |
LLL: 'D. MMMM YYYY HH:mm', |
| 8191 |
LLLL: 'dddd, D. MMMM YYYY HH:mm', |
| 8192 |
}, |
| 8193 |
calendar: { |
| 8194 |
sameDay: '[heute um] LT [Uhr]', |
| 8195 |
sameElse: 'L', |
| 8196 |
nextDay: '[morgen um] LT [Uhr]', |
| 8197 |
nextWeek: 'dddd [um] LT [Uhr]', |
| 8198 |
lastDay: '[gestern um] LT [Uhr]', |
| 8199 |
lastWeek: '[letzten] dddd [um] LT [Uhr]', |
| 8200 |
}, |
| 8201 |
relativeTime: { |
| 8202 |
future: 'in %s', |
| 8203 |
past: 'vor %s', |
| 8204 |
s: 'ein paar Sekunden', |
| 8205 |
ss: '%d Sekunden', |
| 8206 |
m: processRelativeTime$2, |
| 8207 |
mm: '%d Minuten', |
| 8208 |
h: processRelativeTime$2, |
| 8209 |
hh: '%d Stunden', |
| 8210 |
d: processRelativeTime$2, |
| 8211 |
dd: processRelativeTime$2, |
| 8212 |
w: processRelativeTime$2, |
| 8213 |
ww: '%d Wochen', |
| 8214 |
M: processRelativeTime$2, |
| 8215 |
MM: processRelativeTime$2, |
| 8216 |
y: processRelativeTime$2, |
| 8217 |
yy: processRelativeTime$2, |
| 8218 |
}, |
| 8219 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 8220 |
ordinal: '%d.', |
| 8221 |
week: { |
| 8222 |
dow: 1, // Monday is the first day of the week. |
| 8223 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 8224 |
}, |
| 8225 |
}); |
| 8226 |
|
| 8227 |
//! moment.js locale configuration |
| 8228 |
|
| 8229 |
var months$5 = [ |
| 8230 |
'ޖެނުއަރީ', |
| 8231 |
'ފެބްރުއަރީ', |
| 8232 |
'މާރިޗު', |
| 8233 |
'އޭޕްރީލު', |
| 8234 |
'މޭ', |
| 8235 |
'ޖޫން', |
| 8236 |
'ޖުލައި', |
| 8237 |
'އޯގަސްޓު', |
| 8238 |
'ސެޕްޓެމްބަރު', |
| 8239 |
'އޮކްޓޯބަރު', |
| 8240 |
'ނޮވެމްބަރު', |
| 8241 |
'ޑިސެމްބަރު', |
| 8242 |
], |
| 8243 |
weekdays = [ |
| 8244 |
'އާދިއްތަ', |
| 8245 |
'ހޯމަ', |
| 8246 |
'އަންގާރަ', |
| 8247 |
'ބުދަ', |
| 8248 |
'ބުރާސްފަތި', |
| 8249 |
'ހުކުރު', |
| 8250 |
'ހޮނިހިރު', |
| 8251 |
]; |
| 8252 |
|
| 8253 |
hooks.defineLocale('dv', { |
| 8254 |
months: months$5, |
| 8255 |
monthsShort: months$5, |
| 8256 |
weekdays: weekdays, |
| 8257 |
weekdaysShort: weekdays, |
| 8258 |
weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'), |
| 8259 |
longDateFormat: { |
| 8260 |
LT: 'HH:mm', |
| 8261 |
LTS: 'HH:mm:ss', |
| 8262 |
L: 'D/M/YYYY', |
| 8263 |
LL: 'D MMMM YYYY', |
| 8264 |
LLL: 'D MMMM YYYY HH:mm', |
| 8265 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 8266 |
}, |
| 8267 |
meridiemParse: /މކ|މފ/, |
| 8268 |
isPM: function (input) { |
| 8269 |
return 'މފ' === input; |
| 8270 |
}, |
| 8271 |
meridiem: function (hour, minute, isLower) { |
| 8272 |
if (hour < 12) { |
| 8273 |
return 'މކ'; |
| 8274 |
} else { |
| 8275 |
return 'މފ'; |
| 8276 |
} |
| 8277 |
}, |
| 8278 |
calendar: { |
| 8279 |
sameDay: '[މިއަދު] LT', |
| 8280 |
nextDay: '[މާދަމާ] LT', |
| 8281 |
nextWeek: 'dddd LT', |
| 8282 |
lastDay: '[އިއްޔެ] LT', |
| 8283 |
lastWeek: '[ފާއިތުވި] dddd LT', |
| 8284 |
sameElse: 'L', |
| 8285 |
}, |
| 8286 |
relativeTime: { |
| 8287 |
future: 'ތެރޭގައި %s', |
| 8288 |
past: 'ކުރިން %s', |
| 8289 |
s: 'ސިކުންތުކޮޅެއް', |
| 8290 |
ss: 'd% ސިކުންތު', |
| 8291 |
m: 'މިނިޓެއް', |
| 8292 |
mm: 'މިނިޓު %d', |
| 8293 |
h: 'ގަޑިއިރެއް', |
| 8294 |
hh: 'ގަޑިއިރު %d', |
| 8295 |
d: 'ދުވަހެއް', |
| 8296 |
dd: 'ދުވަސް %d', |
| 8297 |
M: 'މަހެއް', |
| 8298 |
MM: 'މަސް %d', |
| 8299 |
y: 'އަހަރެއް', |
| 8300 |
yy: 'އަހަރު %d', |
| 8301 |
}, |
| 8302 |
preparse: function (string) { |
| 8303 |
return string.replace(/،/g, ','); |
| 8304 |
}, |
| 8305 |
postformat: function (string) { |
| 8306 |
return string.replace(/,/g, '،'); |
| 8307 |
}, |
| 8308 |
week: { |
| 8309 |
dow: 7, // Sunday is the first day of the week. |
| 8310 |
doy: 12, // The week that contains Jan 12th is the first week of the year. |
| 8311 |
}, |
| 8312 |
}); |
| 8313 |
|
| 8314 |
//! moment.js locale configuration |
| 8315 |
|
| 8316 |
function isFunction$1(input) { |
| 8317 |
return ( |
| 8318 |
(typeof Function !== 'undefined' && input instanceof Function) || |
| 8319 |
Object.prototype.toString.call(input) === '[object Function]' |
| 8320 |
); |
| 8321 |
} |
| 8322 |
|
| 8323 |
hooks.defineLocale('el', { |
| 8324 |
monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split( |
| 8325 |
'_' |
| 8326 |
), |
| 8327 |
monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split( |
| 8328 |
'_' |
| 8329 |
), |
| 8330 |
months: function (momentToFormat, format) { |
| 8331 |
if (!momentToFormat) { |
| 8332 |
return this._monthsNominativeEl; |
| 8333 |
} else if ( |
| 8334 |
typeof format === 'string' && |
| 8335 |
/D/.test(format.substring(0, format.indexOf('MMMM'))) |
| 8336 |
) { |
| 8337 |
// if there is a day number before 'MMMM' |
| 8338 |
return this._monthsGenitiveEl[momentToFormat.month()]; |
| 8339 |
} else { |
| 8340 |
return this._monthsNominativeEl[momentToFormat.month()]; |
| 8341 |
} |
| 8342 |
}, |
| 8343 |
monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'), |
| 8344 |
weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split( |
| 8345 |
'_' |
| 8346 |
), |
| 8347 |
weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'), |
| 8348 |
weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'), |
| 8349 |
meridiem: function (hours, minutes, isLower) { |
| 8350 |
if (hours > 11) { |
| 8351 |
return isLower ? 'μμ' : 'ΜΜ'; |
| 8352 |
} else { |
| 8353 |
return isLower ? 'πμ' : 'ΠΜ'; |
| 8354 |
} |
| 8355 |
}, |
| 8356 |
isPM: function (input) { |
| 8357 |
return (input + '').toLowerCase()[0] === 'μ'; |
| 8358 |
}, |
| 8359 |
meridiemParse: /[ΠΜ]\.?Μ?\.?/i, |
| 8360 |
longDateFormat: { |
| 8361 |
LT: 'h:mm A', |
| 8362 |
LTS: 'h:mm:ss A', |
| 8363 |
L: 'DD/MM/YYYY', |
| 8364 |
LL: 'D MMMM YYYY', |
| 8365 |
LLL: 'D MMMM YYYY h:mm A', |
| 8366 |
LLLL: 'dddd, D MMMM YYYY h:mm A', |
| 8367 |
}, |
| 8368 |
calendarEl: { |
| 8369 |
sameDay: '[Σήμερα {}] LT', |
| 8370 |
nextDay: '[Αύριο {}] LT', |
| 8371 |
nextWeek: 'dddd [{}] LT', |
| 8372 |
lastDay: '[Χθες {}] LT', |
| 8373 |
lastWeek: function () { |
| 8374 |
switch (this.day()) { |
| 8375 |
case 6: |
| 8376 |
return '[το προηγούμενο] dddd [{}] LT'; |
| 8377 |
default: |
| 8378 |
return '[την προηγούμενη] dddd [{}] LT'; |
| 8379 |
} |
| 8380 |
}, |
| 8381 |
sameElse: 'L', |
| 8382 |
}, |
| 8383 |
calendar: function (key, mom) { |
| 8384 |
var output = this._calendarEl[key], |
| 8385 |
hours = mom && mom.hours(); |
| 8386 |
if (isFunction$1(output)) { |
| 8387 |
output = output.apply(mom); |
| 8388 |
} |
| 8389 |
return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις'); |
| 8390 |
}, |
| 8391 |
relativeTime: { |
| 8392 |
future: 'σε %s', |
| 8393 |
past: '%s πριν', |
| 8394 |
s: 'λίγα δευτερόλεπτα', |
| 8395 |
ss: '%d δευτερόλεπτα', |
| 8396 |
m: 'ένα λεπτό', |
| 8397 |
mm: '%d λεπτά', |
| 8398 |
h: 'μία ώρα', |
| 8399 |
hh: '%d ώρες', |
| 8400 |
d: 'μία μέρα', |
| 8401 |
dd: '%d μέρες', |
| 8402 |
M: 'ένας μήνας', |
| 8403 |
MM: '%d μήνες', |
| 8404 |
y: 'ένας χρόνος', |
| 8405 |
yy: '%d χρόνια', |
| 8406 |
}, |
| 8407 |
dayOfMonthOrdinalParse: /\d{1,2}η/, |
| 8408 |
ordinal: '%dη', |
| 8409 |
week: { |
| 8410 |
dow: 1, // Monday is the first day of the week. |
| 8411 |
doy: 4, // The week that contains Jan 4st is the first week of the year. |
| 8412 |
}, |
| 8413 |
}); |
| 8414 |
|
| 8415 |
//! moment.js locale configuration |
| 8416 |
|
| 8417 |
hooks.defineLocale('en-au', { |
| 8418 |
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( |
| 8419 |
'_' |
| 8420 |
), |
| 8421 |
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), |
| 8422 |
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( |
| 8423 |
'_' |
| 8424 |
), |
| 8425 |
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), |
| 8426 |
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), |
| 8427 |
longDateFormat: { |
| 8428 |
LT: 'h:mm A', |
| 8429 |
LTS: 'h:mm:ss A', |
| 8430 |
L: 'DD/MM/YYYY', |
| 8431 |
LL: 'D MMMM YYYY', |
| 8432 |
LLL: 'D MMMM YYYY h:mm A', |
| 8433 |
LLLL: 'dddd, D MMMM YYYY h:mm A', |
| 8434 |
}, |
| 8435 |
calendar: { |
| 8436 |
sameDay: '[Today at] LT', |
| 8437 |
nextDay: '[Tomorrow at] LT', |
| 8438 |
nextWeek: 'dddd [at] LT', |
| 8439 |
lastDay: '[Yesterday at] LT', |
| 8440 |
lastWeek: '[Last] dddd [at] LT', |
| 8441 |
sameElse: 'L', |
| 8442 |
}, |
| 8443 |
relativeTime: { |
| 8444 |
future: 'in %s', |
| 8445 |
past: '%s ago', |
| 8446 |
s: 'a few seconds', |
| 8447 |
ss: '%d seconds', |
| 8448 |
m: 'a minute', |
| 8449 |
mm: '%d minutes', |
| 8450 |
h: 'an hour', |
| 8451 |
hh: '%d hours', |
| 8452 |
d: 'a day', |
| 8453 |
dd: '%d days', |
| 8454 |
M: 'a month', |
| 8455 |
MM: '%d months', |
| 8456 |
y: 'a year', |
| 8457 |
yy: '%d years', |
| 8458 |
}, |
| 8459 |
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, |
| 8460 |
ordinal: function (number) { |
| 8461 |
var b = number % 10, |
| 8462 |
output = |
| 8463 |
~~((number % 100) / 10) === 1 |
| 8464 |
? 'th' |
| 8465 |
: b === 1 |
| 8466 |
? 'st' |
| 8467 |
: b === 2 |
| 8468 |
? 'nd' |
| 8469 |
: b === 3 |
| 8470 |
? 'rd' |
| 8471 |
: 'th'; |
| 8472 |
return number + output; |
| 8473 |
}, |
| 8474 |
week: { |
| 8475 |
dow: 0, // Sunday is the first day of the week. |
| 8476 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 8477 |
}, |
| 8478 |
}); |
| 8479 |
|
| 8480 |
//! moment.js locale configuration |
| 8481 |
|
| 8482 |
hooks.defineLocale('en-ca', { |
| 8483 |
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( |
| 8484 |
'_' |
| 8485 |
), |
| 8486 |
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), |
| 8487 |
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( |
| 8488 |
'_' |
| 8489 |
), |
| 8490 |
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), |
| 8491 |
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), |
| 8492 |
longDateFormat: { |
| 8493 |
LT: 'h:mm A', |
| 8494 |
LTS: 'h:mm:ss A', |
| 8495 |
L: 'YYYY-MM-DD', |
| 8496 |
LL: 'MMMM D, YYYY', |
| 8497 |
LLL: 'MMMM D, YYYY h:mm A', |
| 8498 |
LLLL: 'dddd, MMMM D, YYYY h:mm A', |
| 8499 |
}, |
| 8500 |
calendar: { |
| 8501 |
sameDay: '[Today at] LT', |
| 8502 |
nextDay: '[Tomorrow at] LT', |
| 8503 |
nextWeek: 'dddd [at] LT', |
| 8504 |
lastDay: '[Yesterday at] LT', |
| 8505 |
lastWeek: '[Last] dddd [at] LT', |
| 8506 |
sameElse: 'L', |
| 8507 |
}, |
| 8508 |
relativeTime: { |
| 8509 |
future: 'in %s', |
| 8510 |
past: '%s ago', |
| 8511 |
s: 'a few seconds', |
| 8512 |
ss: '%d seconds', |
| 8513 |
m: 'a minute', |
| 8514 |
mm: '%d minutes', |
| 8515 |
h: 'an hour', |
| 8516 |
hh: '%d hours', |
| 8517 |
d: 'a day', |
| 8518 |
dd: '%d days', |
| 8519 |
M: 'a month', |
| 8520 |
MM: '%d months', |
| 8521 |
y: 'a year', |
| 8522 |
yy: '%d years', |
| 8523 |
}, |
| 8524 |
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, |
| 8525 |
ordinal: function (number) { |
| 8526 |
var b = number % 10, |
| 8527 |
output = |
| 8528 |
~~((number % 100) / 10) === 1 |
| 8529 |
? 'th' |
| 8530 |
: b === 1 |
| 8531 |
? 'st' |
| 8532 |
: b === 2 |
| 8533 |
? 'nd' |
| 8534 |
: b === 3 |
| 8535 |
? 'rd' |
| 8536 |
: 'th'; |
| 8537 |
return number + output; |
| 8538 |
}, |
| 8539 |
}); |
| 8540 |
|
| 8541 |
//! moment.js locale configuration |
| 8542 |
|
| 8543 |
hooks.defineLocale('en-gb', { |
| 8544 |
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( |
| 8545 |
'_' |
| 8546 |
), |
| 8547 |
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), |
| 8548 |
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( |
| 8549 |
'_' |
| 8550 |
), |
| 8551 |
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), |
| 8552 |
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), |
| 8553 |
longDateFormat: { |
| 8554 |
LT: 'HH:mm', |
| 8555 |
LTS: 'HH:mm:ss', |
| 8556 |
L: 'DD/MM/YYYY', |
| 8557 |
LL: 'D MMMM YYYY', |
| 8558 |
LLL: 'D MMMM YYYY HH:mm', |
| 8559 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 8560 |
}, |
| 8561 |
calendar: { |
| 8562 |
sameDay: '[Today at] LT', |
| 8563 |
nextDay: '[Tomorrow at] LT', |
| 8564 |
nextWeek: 'dddd [at] LT', |
| 8565 |
lastDay: '[Yesterday at] LT', |
| 8566 |
lastWeek: '[Last] dddd [at] LT', |
| 8567 |
sameElse: 'L', |
| 8568 |
}, |
| 8569 |
relativeTime: { |
| 8570 |
future: 'in %s', |
| 8571 |
past: '%s ago', |
| 8572 |
s: 'a few seconds', |
| 8573 |
ss: '%d seconds', |
| 8574 |
m: 'a minute', |
| 8575 |
mm: '%d minutes', |
| 8576 |
h: 'an hour', |
| 8577 |
hh: '%d hours', |
| 8578 |
d: 'a day', |
| 8579 |
dd: '%d days', |
| 8580 |
M: 'a month', |
| 8581 |
MM: '%d months', |
| 8582 |
y: 'a year', |
| 8583 |
yy: '%d years', |
| 8584 |
}, |
| 8585 |
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, |
| 8586 |
ordinal: function (number) { |
| 8587 |
var b = number % 10, |
| 8588 |
output = |
| 8589 |
~~((number % 100) / 10) === 1 |
| 8590 |
? 'th' |
| 8591 |
: b === 1 |
| 8592 |
? 'st' |
| 8593 |
: b === 2 |
| 8594 |
? 'nd' |
| 8595 |
: b === 3 |
| 8596 |
? 'rd' |
| 8597 |
: 'th'; |
| 8598 |
return number + output; |
| 8599 |
}, |
| 8600 |
week: { |
| 8601 |
dow: 1, // Monday is the first day of the week. |
| 8602 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 8603 |
}, |
| 8604 |
}); |
| 8605 |
|
| 8606 |
//! moment.js locale configuration |
| 8607 |
|
| 8608 |
hooks.defineLocale('en-ie', { |
| 8609 |
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( |
| 8610 |
'_' |
| 8611 |
), |
| 8612 |
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), |
| 8613 |
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( |
| 8614 |
'_' |
| 8615 |
), |
| 8616 |
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), |
| 8617 |
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), |
| 8618 |
longDateFormat: { |
| 8619 |
LT: 'HH:mm', |
| 8620 |
LTS: 'HH:mm:ss', |
| 8621 |
L: 'DD/MM/YYYY', |
| 8622 |
LL: 'D MMMM YYYY', |
| 8623 |
LLL: 'D MMMM YYYY HH:mm', |
| 8624 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 8625 |
}, |
| 8626 |
calendar: { |
| 8627 |
sameDay: '[Today at] LT', |
| 8628 |
nextDay: '[Tomorrow at] LT', |
| 8629 |
nextWeek: 'dddd [at] LT', |
| 8630 |
lastDay: '[Yesterday at] LT', |
| 8631 |
lastWeek: '[Last] dddd [at] LT', |
| 8632 |
sameElse: 'L', |
| 8633 |
}, |
| 8634 |
relativeTime: { |
| 8635 |
future: 'in %s', |
| 8636 |
past: '%s ago', |
| 8637 |
s: 'a few seconds', |
| 8638 |
ss: '%d seconds', |
| 8639 |
m: 'a minute', |
| 8640 |
mm: '%d minutes', |
| 8641 |
h: 'an hour', |
| 8642 |
hh: '%d hours', |
| 8643 |
d: 'a day', |
| 8644 |
dd: '%d days', |
| 8645 |
M: 'a month', |
| 8646 |
MM: '%d months', |
| 8647 |
y: 'a year', |
| 8648 |
yy: '%d years', |
| 8649 |
}, |
| 8650 |
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, |
| 8651 |
ordinal: function (number) { |
| 8652 |
var b = number % 10, |
| 8653 |
output = |
| 8654 |
~~((number % 100) / 10) === 1 |
| 8655 |
? 'th' |
| 8656 |
: b === 1 |
| 8657 |
? 'st' |
| 8658 |
: b === 2 |
| 8659 |
? 'nd' |
| 8660 |
: b === 3 |
| 8661 |
? 'rd' |
| 8662 |
: 'th'; |
| 8663 |
return number + output; |
| 8664 |
}, |
| 8665 |
week: { |
| 8666 |
dow: 1, // Monday is the first day of the week. |
| 8667 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 8668 |
}, |
| 8669 |
}); |
| 8670 |
|
| 8671 |
//! moment.js locale configuration |
| 8672 |
|
| 8673 |
hooks.defineLocale('en-il', { |
| 8674 |
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( |
| 8675 |
'_' |
| 8676 |
), |
| 8677 |
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), |
| 8678 |
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( |
| 8679 |
'_' |
| 8680 |
), |
| 8681 |
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), |
| 8682 |
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), |
| 8683 |
longDateFormat: { |
| 8684 |
LT: 'HH:mm', |
| 8685 |
LTS: 'HH:mm:ss', |
| 8686 |
L: 'DD/MM/YYYY', |
| 8687 |
LL: 'D MMMM YYYY', |
| 8688 |
LLL: 'D MMMM YYYY HH:mm', |
| 8689 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 8690 |
}, |
| 8691 |
calendar: { |
| 8692 |
sameDay: '[Today at] LT', |
| 8693 |
nextDay: '[Tomorrow at] LT', |
| 8694 |
nextWeek: 'dddd [at] LT', |
| 8695 |
lastDay: '[Yesterday at] LT', |
| 8696 |
lastWeek: '[Last] dddd [at] LT', |
| 8697 |
sameElse: 'L', |
| 8698 |
}, |
| 8699 |
relativeTime: { |
| 8700 |
future: 'in %s', |
| 8701 |
past: '%s ago', |
| 8702 |
s: 'a few seconds', |
| 8703 |
ss: '%d seconds', |
| 8704 |
m: 'a minute', |
| 8705 |
mm: '%d minutes', |
| 8706 |
h: 'an hour', |
| 8707 |
hh: '%d hours', |
| 8708 |
d: 'a day', |
| 8709 |
dd: '%d days', |
| 8710 |
M: 'a month', |
| 8711 |
MM: '%d months', |
| 8712 |
y: 'a year', |
| 8713 |
yy: '%d years', |
| 8714 |
}, |
| 8715 |
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, |
| 8716 |
ordinal: function (number) { |
| 8717 |
var b = number % 10, |
| 8718 |
output = |
| 8719 |
~~((number % 100) / 10) === 1 |
| 8720 |
? 'th' |
| 8721 |
: b === 1 |
| 8722 |
? 'st' |
| 8723 |
: b === 2 |
| 8724 |
? 'nd' |
| 8725 |
: b === 3 |
| 8726 |
? 'rd' |
| 8727 |
: 'th'; |
| 8728 |
return number + output; |
| 8729 |
}, |
| 8730 |
}); |
| 8731 |
|
| 8732 |
//! moment.js locale configuration |
| 8733 |
|
| 8734 |
hooks.defineLocale('en-in', { |
| 8735 |
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( |
| 8736 |
'_' |
| 8737 |
), |
| 8738 |
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), |
| 8739 |
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( |
| 8740 |
'_' |
| 8741 |
), |
| 8742 |
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), |
| 8743 |
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), |
| 8744 |
longDateFormat: { |
| 8745 |
LT: 'h:mm A', |
| 8746 |
LTS: 'h:mm:ss A', |
| 8747 |
L: 'DD/MM/YYYY', |
| 8748 |
LL: 'D MMMM YYYY', |
| 8749 |
LLL: 'D MMMM YYYY h:mm A', |
| 8750 |
LLLL: 'dddd, D MMMM YYYY h:mm A', |
| 8751 |
}, |
| 8752 |
calendar: { |
| 8753 |
sameDay: '[Today at] LT', |
| 8754 |
nextDay: '[Tomorrow at] LT', |
| 8755 |
nextWeek: 'dddd [at] LT', |
| 8756 |
lastDay: '[Yesterday at] LT', |
| 8757 |
lastWeek: '[Last] dddd [at] LT', |
| 8758 |
sameElse: 'L', |
| 8759 |
}, |
| 8760 |
relativeTime: { |
| 8761 |
future: 'in %s', |
| 8762 |
past: '%s ago', |
| 8763 |
s: 'a few seconds', |
| 8764 |
ss: '%d seconds', |
| 8765 |
m: 'a minute', |
| 8766 |
mm: '%d minutes', |
| 8767 |
h: 'an hour', |
| 8768 |
hh: '%d hours', |
| 8769 |
d: 'a day', |
| 8770 |
dd: '%d days', |
| 8771 |
M: 'a month', |
| 8772 |
MM: '%d months', |
| 8773 |
y: 'a year', |
| 8774 |
yy: '%d years', |
| 8775 |
}, |
| 8776 |
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, |
| 8777 |
ordinal: function (number) { |
| 8778 |
var b = number % 10, |
| 8779 |
output = |
| 8780 |
~~((number % 100) / 10) === 1 |
| 8781 |
? 'th' |
| 8782 |
: b === 1 |
| 8783 |
? 'st' |
| 8784 |
: b === 2 |
| 8785 |
? 'nd' |
| 8786 |
: b === 3 |
| 8787 |
? 'rd' |
| 8788 |
: 'th'; |
| 8789 |
return number + output; |
| 8790 |
}, |
| 8791 |
week: { |
| 8792 |
dow: 0, // Sunday is the first day of the week. |
| 8793 |
doy: 6, // The week that contains Jan 1st is the first week of the year. |
| 8794 |
}, |
| 8795 |
}); |
| 8796 |
|
| 8797 |
//! moment.js locale configuration |
| 8798 |
|
| 8799 |
hooks.defineLocale('en-nz', { |
| 8800 |
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( |
| 8801 |
'_' |
| 8802 |
), |
| 8803 |
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), |
| 8804 |
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( |
| 8805 |
'_' |
| 8806 |
), |
| 8807 |
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), |
| 8808 |
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), |
| 8809 |
longDateFormat: { |
| 8810 |
LT: 'h:mm A', |
| 8811 |
LTS: 'h:mm:ss A', |
| 8812 |
L: 'DD/MM/YYYY', |
| 8813 |
LL: 'D MMMM YYYY', |
| 8814 |
LLL: 'D MMMM YYYY h:mm A', |
| 8815 |
LLLL: 'dddd, D MMMM YYYY h:mm A', |
| 8816 |
}, |
| 8817 |
calendar: { |
| 8818 |
sameDay: '[Today at] LT', |
| 8819 |
nextDay: '[Tomorrow at] LT', |
| 8820 |
nextWeek: 'dddd [at] LT', |
| 8821 |
lastDay: '[Yesterday at] LT', |
| 8822 |
lastWeek: '[Last] dddd [at] LT', |
| 8823 |
sameElse: 'L', |
| 8824 |
}, |
| 8825 |
relativeTime: { |
| 8826 |
future: 'in %s', |
| 8827 |
past: '%s ago', |
| 8828 |
s: 'a few seconds', |
| 8829 |
ss: '%d seconds', |
| 8830 |
m: 'a minute', |
| 8831 |
mm: '%d minutes', |
| 8832 |
h: 'an hour', |
| 8833 |
hh: '%d hours', |
| 8834 |
d: 'a day', |
| 8835 |
dd: '%d days', |
| 8836 |
M: 'a month', |
| 8837 |
MM: '%d months', |
| 8838 |
y: 'a year', |
| 8839 |
yy: '%d years', |
| 8840 |
}, |
| 8841 |
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, |
| 8842 |
ordinal: function (number) { |
| 8843 |
var b = number % 10, |
| 8844 |
output = |
| 8845 |
~~((number % 100) / 10) === 1 |
| 8846 |
? 'th' |
| 8847 |
: b === 1 |
| 8848 |
? 'st' |
| 8849 |
: b === 2 |
| 8850 |
? 'nd' |
| 8851 |
: b === 3 |
| 8852 |
? 'rd' |
| 8853 |
: 'th'; |
| 8854 |
return number + output; |
| 8855 |
}, |
| 8856 |
week: { |
| 8857 |
dow: 1, // Monday is the first day of the week. |
| 8858 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 8859 |
}, |
| 8860 |
}); |
| 8861 |
|
| 8862 |
//! moment.js locale configuration |
| 8863 |
|
| 8864 |
hooks.defineLocale('en-sg', { |
| 8865 |
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( |
| 8866 |
'_' |
| 8867 |
), |
| 8868 |
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), |
| 8869 |
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( |
| 8870 |
'_' |
| 8871 |
), |
| 8872 |
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), |
| 8873 |
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), |
| 8874 |
longDateFormat: { |
| 8875 |
LT: 'HH:mm', |
| 8876 |
LTS: 'HH:mm:ss', |
| 8877 |
L: 'DD/MM/YYYY', |
| 8878 |
LL: 'D MMMM YYYY', |
| 8879 |
LLL: 'D MMMM YYYY HH:mm', |
| 8880 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 8881 |
}, |
| 8882 |
calendar: { |
| 8883 |
sameDay: '[Today at] LT', |
| 8884 |
nextDay: '[Tomorrow at] LT', |
| 8885 |
nextWeek: 'dddd [at] LT', |
| 8886 |
lastDay: '[Yesterday at] LT', |
| 8887 |
lastWeek: '[Last] dddd [at] LT', |
| 8888 |
sameElse: 'L', |
| 8889 |
}, |
| 8890 |
relativeTime: { |
| 8891 |
future: 'in %s', |
| 8892 |
past: '%s ago', |
| 8893 |
s: 'a few seconds', |
| 8894 |
ss: '%d seconds', |
| 8895 |
m: 'a minute', |
| 8896 |
mm: '%d minutes', |
| 8897 |
h: 'an hour', |
| 8898 |
hh: '%d hours', |
| 8899 |
d: 'a day', |
| 8900 |
dd: '%d days', |
| 8901 |
M: 'a month', |
| 8902 |
MM: '%d months', |
| 8903 |
y: 'a year', |
| 8904 |
yy: '%d years', |
| 8905 |
}, |
| 8906 |
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, |
| 8907 |
ordinal: function (number) { |
| 8908 |
var b = number % 10, |
| 8909 |
output = |
| 8910 |
~~((number % 100) / 10) === 1 |
| 8911 |
? 'th' |
| 8912 |
: b === 1 |
| 8913 |
? 'st' |
| 8914 |
: b === 2 |
| 8915 |
? 'nd' |
| 8916 |
: b === 3 |
| 8917 |
? 'rd' |
| 8918 |
: 'th'; |
| 8919 |
return number + output; |
| 8920 |
}, |
| 8921 |
week: { |
| 8922 |
dow: 1, // Monday is the first day of the week. |
| 8923 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 8924 |
}, |
| 8925 |
}); |
| 8926 |
|
| 8927 |
//! moment.js locale configuration |
| 8928 |
|
| 8929 |
hooks.defineLocale('eo', { |
| 8930 |
months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split( |
| 8931 |
'_' |
| 8932 |
), |
| 8933 |
monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'), |
| 8934 |
weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'), |
| 8935 |
weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'), |
| 8936 |
weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'), |
| 8937 |
longDateFormat: { |
| 8938 |
LT: 'HH:mm', |
| 8939 |
LTS: 'HH:mm:ss', |
| 8940 |
L: 'YYYY-MM-DD', |
| 8941 |
LL: '[la] D[-an de] MMMM, YYYY', |
| 8942 |
LLL: '[la] D[-an de] MMMM, YYYY HH:mm', |
| 8943 |
LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm', |
| 8944 |
llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm', |
| 8945 |
}, |
| 8946 |
meridiemParse: /[ap]\.t\.m/i, |
| 8947 |
isPM: function (input) { |
| 8948 |
return input.charAt(0).toLowerCase() === 'p'; |
| 8949 |
}, |
| 8950 |
meridiem: function (hours, minutes, isLower) { |
| 8951 |
if (hours > 11) { |
| 8952 |
return isLower ? 'p.t.m.' : 'P.T.M.'; |
| 8953 |
} else { |
| 8954 |
return isLower ? 'a.t.m.' : 'A.T.M.'; |
| 8955 |
} |
| 8956 |
}, |
| 8957 |
calendar: { |
| 8958 |
sameDay: '[Hodiaŭ je] LT', |
| 8959 |
nextDay: '[Morgaŭ je] LT', |
| 8960 |
nextWeek: 'dddd[n je] LT', |
| 8961 |
lastDay: '[Hieraŭ je] LT', |
| 8962 |
lastWeek: '[pasintan] dddd[n je] LT', |
| 8963 |
sameElse: 'L', |
| 8964 |
}, |
| 8965 |
relativeTime: { |
| 8966 |
future: 'post %s', |
| 8967 |
past: 'antaŭ %s', |
| 8968 |
s: 'kelkaj sekundoj', |
| 8969 |
ss: '%d sekundoj', |
| 8970 |
m: 'unu minuto', |
| 8971 |
mm: '%d minutoj', |
| 8972 |
h: 'unu horo', |
| 8973 |
hh: '%d horoj', |
| 8974 |
d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo |
| 8975 |
dd: '%d tagoj', |
| 8976 |
M: 'unu monato', |
| 8977 |
MM: '%d monatoj', |
| 8978 |
y: 'unu jaro', |
| 8979 |
yy: '%d jaroj', |
| 8980 |
}, |
| 8981 |
dayOfMonthOrdinalParse: /\d{1,2}a/, |
| 8982 |
ordinal: '%da', |
| 8983 |
week: { |
| 8984 |
dow: 1, // Monday is the first day of the week. |
| 8985 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 8986 |
}, |
| 8987 |
}); |
| 8988 |
|
| 8989 |
//! moment.js locale configuration |
| 8990 |
|
| 8991 |
var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( |
| 8992 |
'_' |
| 8993 |
), |
| 8994 |
monthsShort$1 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), |
| 8995 |
monthsParse$2 = [ |
| 8996 |
/^ene/i, |
| 8997 |
/^feb/i, |
| 8998 |
/^mar/i, |
| 8999 |
/^abr/i, |
| 9000 |
/^may/i, |
| 9001 |
/^jun/i, |
| 9002 |
/^jul/i, |
| 9003 |
/^ago/i, |
| 9004 |
/^sep/i, |
| 9005 |
/^oct/i, |
| 9006 |
/^nov/i, |
| 9007 |
/^dic/i, |
| 9008 |
], |
| 9009 |
monthsRegex$3 = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; |
| 9010 |
|
| 9011 |
hooks.defineLocale('es-do', { |
| 9012 |
months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( |
| 9013 |
'_' |
| 9014 |
), |
| 9015 |
monthsShort: function (m, format) { |
| 9016 |
if (!m) { |
| 9017 |
return monthsShortDot; |
| 9018 |
} else if (/-MMM-/.test(format)) { |
| 9019 |
return monthsShort$1[m.month()]; |
| 9020 |
} else { |
| 9021 |
return monthsShortDot[m.month()]; |
| 9022 |
} |
| 9023 |
}, |
| 9024 |
monthsRegex: monthsRegex$3, |
| 9025 |
monthsShortRegex: monthsRegex$3, |
| 9026 |
monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, |
| 9027 |
monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, |
| 9028 |
monthsParse: monthsParse$2, |
| 9029 |
longMonthsParse: monthsParse$2, |
| 9030 |
shortMonthsParse: monthsParse$2, |
| 9031 |
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), |
| 9032 |
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), |
| 9033 |
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), |
| 9034 |
weekdaysParseExact: true, |
| 9035 |
longDateFormat: { |
| 9036 |
LT: 'h:mm A', |
| 9037 |
LTS: 'h:mm:ss A', |
| 9038 |
L: 'DD/MM/YYYY', |
| 9039 |
LL: 'D [de] MMMM [de] YYYY', |
| 9040 |
LLL: 'D [de] MMMM [de] YYYY h:mm A', |
| 9041 |
LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A', |
| 9042 |
}, |
| 9043 |
calendar: { |
| 9044 |
sameDay: function () { |
| 9045 |
return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; |
| 9046 |
}, |
| 9047 |
nextDay: function () { |
| 9048 |
return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; |
| 9049 |
}, |
| 9050 |
nextWeek: function () { |
| 9051 |
return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; |
| 9052 |
}, |
| 9053 |
lastDay: function () { |
| 9054 |
return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; |
| 9055 |
}, |
| 9056 |
lastWeek: function () { |
| 9057 |
return ( |
| 9058 |
'[el] dddd [pasado a la' + |
| 9059 |
(this.hours() !== 1 ? 's' : '') + |
| 9060 |
'] LT' |
| 9061 |
); |
| 9062 |
}, |
| 9063 |
sameElse: 'L', |
| 9064 |
}, |
| 9065 |
relativeTime: { |
| 9066 |
future: 'en %s', |
| 9067 |
past: 'hace %s', |
| 9068 |
s: 'unos segundos', |
| 9069 |
ss: '%d segundos', |
| 9070 |
m: 'un minuto', |
| 9071 |
mm: '%d minutos', |
| 9072 |
h: 'una hora', |
| 9073 |
hh: '%d horas', |
| 9074 |
d: 'un día', |
| 9075 |
dd: '%d días', |
| 9076 |
w: 'una semana', |
| 9077 |
ww: '%d semanas', |
| 9078 |
M: 'un mes', |
| 9079 |
MM: '%d meses', |
| 9080 |
y: 'un año', |
| 9081 |
yy: '%d años', |
| 9082 |
}, |
| 9083 |
dayOfMonthOrdinalParse: /\d{1,2}º/, |
| 9084 |
ordinal: '%dº', |
| 9085 |
week: { |
| 9086 |
dow: 1, // Monday is the first day of the week. |
| 9087 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 9088 |
}, |
| 9089 |
}); |
| 9090 |
|
| 9091 |
//! moment.js locale configuration |
| 9092 |
|
| 9093 |
var monthsShortDot$1 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( |
| 9094 |
'_' |
| 9095 |
), |
| 9096 |
monthsShort$2 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), |
| 9097 |
monthsParse$3 = [ |
| 9098 |
/^ene/i, |
| 9099 |
/^feb/i, |
| 9100 |
/^mar/i, |
| 9101 |
/^abr/i, |
| 9102 |
/^may/i, |
| 9103 |
/^jun/i, |
| 9104 |
/^jul/i, |
| 9105 |
/^ago/i, |
| 9106 |
/^sep/i, |
| 9107 |
/^oct/i, |
| 9108 |
/^nov/i, |
| 9109 |
/^dic/i, |
| 9110 |
], |
| 9111 |
monthsRegex$4 = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; |
| 9112 |
|
| 9113 |
hooks.defineLocale('es-mx', { |
| 9114 |
months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( |
| 9115 |
'_' |
| 9116 |
), |
| 9117 |
monthsShort: function (m, format) { |
| 9118 |
if (!m) { |
| 9119 |
return monthsShortDot$1; |
| 9120 |
} else if (/-MMM-/.test(format)) { |
| 9121 |
return monthsShort$2[m.month()]; |
| 9122 |
} else { |
| 9123 |
return monthsShortDot$1[m.month()]; |
| 9124 |
} |
| 9125 |
}, |
| 9126 |
monthsRegex: monthsRegex$4, |
| 9127 |
monthsShortRegex: monthsRegex$4, |
| 9128 |
monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, |
| 9129 |
monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, |
| 9130 |
monthsParse: monthsParse$3, |
| 9131 |
longMonthsParse: monthsParse$3, |
| 9132 |
shortMonthsParse: monthsParse$3, |
| 9133 |
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), |
| 9134 |
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), |
| 9135 |
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), |
| 9136 |
weekdaysParseExact: true, |
| 9137 |
longDateFormat: { |
| 9138 |
LT: 'H:mm', |
| 9139 |
LTS: 'H:mm:ss', |
| 9140 |
L: 'DD/MM/YYYY', |
| 9141 |
LL: 'D [de] MMMM [de] YYYY', |
| 9142 |
LLL: 'D [de] MMMM [de] YYYY H:mm', |
| 9143 |
LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm', |
| 9144 |
}, |
| 9145 |
calendar: { |
| 9146 |
sameDay: function () { |
| 9147 |
return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; |
| 9148 |
}, |
| 9149 |
nextDay: function () { |
| 9150 |
return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; |
| 9151 |
}, |
| 9152 |
nextWeek: function () { |
| 9153 |
return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; |
| 9154 |
}, |
| 9155 |
lastDay: function () { |
| 9156 |
return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; |
| 9157 |
}, |
| 9158 |
lastWeek: function () { |
| 9159 |
return ( |
| 9160 |
'[el] dddd [pasado a la' + |
| 9161 |
(this.hours() !== 1 ? 's' : '') + |
| 9162 |
'] LT' |
| 9163 |
); |
| 9164 |
}, |
| 9165 |
sameElse: 'L', |
| 9166 |
}, |
| 9167 |
relativeTime: { |
| 9168 |
future: 'en %s', |
| 9169 |
past: 'hace %s', |
| 9170 |
s: 'unos segundos', |
| 9171 |
ss: '%d segundos', |
| 9172 |
m: 'un minuto', |
| 9173 |
mm: '%d minutos', |
| 9174 |
h: 'una hora', |
| 9175 |
hh: '%d horas', |
| 9176 |
d: 'un día', |
| 9177 |
dd: '%d días', |
| 9178 |
w: 'una semana', |
| 9179 |
ww: '%d semanas', |
| 9180 |
M: 'un mes', |
| 9181 |
MM: '%d meses', |
| 9182 |
y: 'un año', |
| 9183 |
yy: '%d años', |
| 9184 |
}, |
| 9185 |
dayOfMonthOrdinalParse: /\d{1,2}º/, |
| 9186 |
ordinal: '%dº', |
| 9187 |
week: { |
| 9188 |
dow: 0, // Sunday is the first day of the week. |
| 9189 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 9190 |
}, |
| 9191 |
invalidDate: 'Fecha inválida', |
| 9192 |
}); |
| 9193 |
|
| 9194 |
//! moment.js locale configuration |
| 9195 |
|
| 9196 |
var monthsShortDot$2 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( |
| 9197 |
'_' |
| 9198 |
), |
| 9199 |
monthsShort$3 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), |
| 9200 |
monthsParse$4 = [ |
| 9201 |
/^ene/i, |
| 9202 |
/^feb/i, |
| 9203 |
/^mar/i, |
| 9204 |
/^abr/i, |
| 9205 |
/^may/i, |
| 9206 |
/^jun/i, |
| 9207 |
/^jul/i, |
| 9208 |
/^ago/i, |
| 9209 |
/^sep/i, |
| 9210 |
/^oct/i, |
| 9211 |
/^nov/i, |
| 9212 |
/^dic/i, |
| 9213 |
], |
| 9214 |
monthsRegex$5 = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; |
| 9215 |
|
| 9216 |
hooks.defineLocale('es-us', { |
| 9217 |
months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( |
| 9218 |
'_' |
| 9219 |
), |
| 9220 |
monthsShort: function (m, format) { |
| 9221 |
if (!m) { |
| 9222 |
return monthsShortDot$2; |
| 9223 |
} else if (/-MMM-/.test(format)) { |
| 9224 |
return monthsShort$3[m.month()]; |
| 9225 |
} else { |
| 9226 |
return monthsShortDot$2[m.month()]; |
| 9227 |
} |
| 9228 |
}, |
| 9229 |
monthsRegex: monthsRegex$5, |
| 9230 |
monthsShortRegex: monthsRegex$5, |
| 9231 |
monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, |
| 9232 |
monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, |
| 9233 |
monthsParse: monthsParse$4, |
| 9234 |
longMonthsParse: monthsParse$4, |
| 9235 |
shortMonthsParse: monthsParse$4, |
| 9236 |
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), |
| 9237 |
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), |
| 9238 |
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), |
| 9239 |
weekdaysParseExact: true, |
| 9240 |
longDateFormat: { |
| 9241 |
LT: 'h:mm A', |
| 9242 |
LTS: 'h:mm:ss A', |
| 9243 |
L: 'MM/DD/YYYY', |
| 9244 |
LL: 'D [de] MMMM [de] YYYY', |
| 9245 |
LLL: 'D [de] MMMM [de] YYYY h:mm A', |
| 9246 |
LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A', |
| 9247 |
}, |
| 9248 |
calendar: { |
| 9249 |
sameDay: function () { |
| 9250 |
return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; |
| 9251 |
}, |
| 9252 |
nextDay: function () { |
| 9253 |
return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; |
| 9254 |
}, |
| 9255 |
nextWeek: function () { |
| 9256 |
return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; |
| 9257 |
}, |
| 9258 |
lastDay: function () { |
| 9259 |
return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; |
| 9260 |
}, |
| 9261 |
lastWeek: function () { |
| 9262 |
return ( |
| 9263 |
'[el] dddd [pasado a la' + |
| 9264 |
(this.hours() !== 1 ? 's' : '') + |
| 9265 |
'] LT' |
| 9266 |
); |
| 9267 |
}, |
| 9268 |
sameElse: 'L', |
| 9269 |
}, |
| 9270 |
relativeTime: { |
| 9271 |
future: 'en %s', |
| 9272 |
past: 'hace %s', |
| 9273 |
s: 'unos segundos', |
| 9274 |
ss: '%d segundos', |
| 9275 |
m: 'un minuto', |
| 9276 |
mm: '%d minutos', |
| 9277 |
h: 'una hora', |
| 9278 |
hh: '%d horas', |
| 9279 |
d: 'un día', |
| 9280 |
dd: '%d días', |
| 9281 |
w: 'una semana', |
| 9282 |
ww: '%d semanas', |
| 9283 |
M: 'un mes', |
| 9284 |
MM: '%d meses', |
| 9285 |
y: 'un año', |
| 9286 |
yy: '%d años', |
| 9287 |
}, |
| 9288 |
dayOfMonthOrdinalParse: /\d{1,2}º/, |
| 9289 |
ordinal: '%dº', |
| 9290 |
week: { |
| 9291 |
dow: 0, // Sunday is the first day of the week. |
| 9292 |
doy: 6, // The week that contains Jan 6th is the first week of the year. |
| 9293 |
}, |
| 9294 |
}); |
| 9295 |
|
| 9296 |
//! moment.js locale configuration |
| 9297 |
|
| 9298 |
var monthsShortDot$3 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( |
| 9299 |
'_' |
| 9300 |
), |
| 9301 |
monthsShort$4 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), |
| 9302 |
monthsParse$5 = [ |
| 9303 |
/^ene/i, |
| 9304 |
/^feb/i, |
| 9305 |
/^mar/i, |
| 9306 |
/^abr/i, |
| 9307 |
/^may/i, |
| 9308 |
/^jun/i, |
| 9309 |
/^jul/i, |
| 9310 |
/^ago/i, |
| 9311 |
/^sep/i, |
| 9312 |
/^oct/i, |
| 9313 |
/^nov/i, |
| 9314 |
/^dic/i, |
| 9315 |
], |
| 9316 |
monthsRegex$6 = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; |
| 9317 |
|
| 9318 |
hooks.defineLocale('es', { |
| 9319 |
months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( |
| 9320 |
'_' |
| 9321 |
), |
| 9322 |
monthsShort: function (m, format) { |
| 9323 |
if (!m) { |
| 9324 |
return monthsShortDot$3; |
| 9325 |
} else if (/-MMM-/.test(format)) { |
| 9326 |
return monthsShort$4[m.month()]; |
| 9327 |
} else { |
| 9328 |
return monthsShortDot$3[m.month()]; |
| 9329 |
} |
| 9330 |
}, |
| 9331 |
monthsRegex: monthsRegex$6, |
| 9332 |
monthsShortRegex: monthsRegex$6, |
| 9333 |
monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, |
| 9334 |
monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, |
| 9335 |
monthsParse: monthsParse$5, |
| 9336 |
longMonthsParse: monthsParse$5, |
| 9337 |
shortMonthsParse: monthsParse$5, |
| 9338 |
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), |
| 9339 |
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), |
| 9340 |
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), |
| 9341 |
weekdaysParseExact: true, |
| 9342 |
longDateFormat: { |
| 9343 |
LT: 'H:mm', |
| 9344 |
LTS: 'H:mm:ss', |
| 9345 |
L: 'DD/MM/YYYY', |
| 9346 |
LL: 'D [de] MMMM [de] YYYY', |
| 9347 |
LLL: 'D [de] MMMM [de] YYYY H:mm', |
| 9348 |
LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm', |
| 9349 |
}, |
| 9350 |
calendar: { |
| 9351 |
sameDay: function () { |
| 9352 |
return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; |
| 9353 |
}, |
| 9354 |
nextDay: function () { |
| 9355 |
return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; |
| 9356 |
}, |
| 9357 |
nextWeek: function () { |
| 9358 |
return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; |
| 9359 |
}, |
| 9360 |
lastDay: function () { |
| 9361 |
return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; |
| 9362 |
}, |
| 9363 |
lastWeek: function () { |
| 9364 |
return ( |
| 9365 |
'[el] dddd [pasado a la' + |
| 9366 |
(this.hours() !== 1 ? 's' : '') + |
| 9367 |
'] LT' |
| 9368 |
); |
| 9369 |
}, |
| 9370 |
sameElse: 'L', |
| 9371 |
}, |
| 9372 |
relativeTime: { |
| 9373 |
future: 'en %s', |
| 9374 |
past: 'hace %s', |
| 9375 |
s: 'unos segundos', |
| 9376 |
ss: '%d segundos', |
| 9377 |
m: 'un minuto', |
| 9378 |
mm: '%d minutos', |
| 9379 |
h: 'una hora', |
| 9380 |
hh: '%d horas', |
| 9381 |
d: 'un día', |
| 9382 |
dd: '%d días', |
| 9383 |
w: 'una semana', |
| 9384 |
ww: '%d semanas', |
| 9385 |
M: 'un mes', |
| 9386 |
MM: '%d meses', |
| 9387 |
y: 'un año', |
| 9388 |
yy: '%d años', |
| 9389 |
}, |
| 9390 |
dayOfMonthOrdinalParse: /\d{1,2}º/, |
| 9391 |
ordinal: '%dº', |
| 9392 |
week: { |
| 9393 |
dow: 1, // Monday is the first day of the week. |
| 9394 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 9395 |
}, |
| 9396 |
invalidDate: 'Fecha inválida', |
| 9397 |
}); |
| 9398 |
|
| 9399 |
//! moment.js locale configuration |
| 9400 |
|
| 9401 |
function processRelativeTime$3(number, withoutSuffix, key, isFuture) { |
| 9402 |
var format = { |
| 9403 |
s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'], |
| 9404 |
ss: [number + 'sekundi', number + 'sekundit'], |
| 9405 |
m: ['ühe minuti', 'üks minut'], |
| 9406 |
mm: [number + ' minuti', number + ' minutit'], |
| 9407 |
h: ['ühe tunni', 'tund aega', 'üks tund'], |
| 9408 |
hh: [number + ' tunni', number + ' tundi'], |
| 9409 |
d: ['ühe päeva', 'üks päev'], |
| 9410 |
M: ['kuu aja', 'kuu aega', 'üks kuu'], |
| 9411 |
MM: [number + ' kuu', number + ' kuud'], |
| 9412 |
y: ['ühe aasta', 'aasta', 'üks aasta'], |
| 9413 |
yy: [number + ' aasta', number + ' aastat'], |
| 9414 |
}; |
| 9415 |
if (withoutSuffix) { |
| 9416 |
return format[key][2] ? format[key][2] : format[key][1]; |
| 9417 |
} |
| 9418 |
return isFuture ? format[key][0] : format[key][1]; |
| 9419 |
} |
| 9420 |
|
| 9421 |
hooks.defineLocale('et', { |
| 9422 |
months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split( |
| 9423 |
'_' |
| 9424 |
), |
| 9425 |
monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split( |
| 9426 |
'_' |
| 9427 |
), |
| 9428 |
weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split( |
| 9429 |
'_' |
| 9430 |
), |
| 9431 |
weekdaysShort: 'P_E_T_K_N_R_L'.split('_'), |
| 9432 |
weekdaysMin: 'P_E_T_K_N_R_L'.split('_'), |
| 9433 |
longDateFormat: { |
| 9434 |
LT: 'H:mm', |
| 9435 |
LTS: 'H:mm:ss', |
| 9436 |
L: 'DD.MM.YYYY', |
| 9437 |
LL: 'D. MMMM YYYY', |
| 9438 |
LLL: 'D. MMMM YYYY H:mm', |
| 9439 |
LLLL: 'dddd, D. MMMM YYYY H:mm', |
| 9440 |
}, |
| 9441 |
calendar: { |
| 9442 |
sameDay: '[Täna,] LT', |
| 9443 |
nextDay: '[Homme,] LT', |
| 9444 |
nextWeek: '[Järgmine] dddd LT', |
| 9445 |
lastDay: '[Eile,] LT', |
| 9446 |
lastWeek: '[Eelmine] dddd LT', |
| 9447 |
sameElse: 'L', |
| 9448 |
}, |
| 9449 |
relativeTime: { |
| 9450 |
future: '%s pärast', |
| 9451 |
past: '%s tagasi', |
| 9452 |
s: processRelativeTime$3, |
| 9453 |
ss: processRelativeTime$3, |
| 9454 |
m: processRelativeTime$3, |
| 9455 |
mm: processRelativeTime$3, |
| 9456 |
h: processRelativeTime$3, |
| 9457 |
hh: processRelativeTime$3, |
| 9458 |
d: processRelativeTime$3, |
| 9459 |
dd: '%d päeva', |
| 9460 |
M: processRelativeTime$3, |
| 9461 |
MM: processRelativeTime$3, |
| 9462 |
y: processRelativeTime$3, |
| 9463 |
yy: processRelativeTime$3, |
| 9464 |
}, |
| 9465 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 9466 |
ordinal: '%d.', |
| 9467 |
week: { |
| 9468 |
dow: 1, // Monday is the first day of the week. |
| 9469 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 9470 |
}, |
| 9471 |
}); |
| 9472 |
|
| 9473 |
//! moment.js locale configuration |
| 9474 |
|
| 9475 |
hooks.defineLocale('eu', { |
| 9476 |
months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split( |
| 9477 |
'_' |
| 9478 |
), |
| 9479 |
monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split( |
| 9480 |
'_' |
| 9481 |
), |
| 9482 |
monthsParseExact: true, |
| 9483 |
weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split( |
| 9484 |
'_' |
| 9485 |
), |
| 9486 |
weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'), |
| 9487 |
weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'), |
| 9488 |
weekdaysParseExact: true, |
| 9489 |
longDateFormat: { |
| 9490 |
LT: 'HH:mm', |
| 9491 |
LTS: 'HH:mm:ss', |
| 9492 |
L: 'YYYY-MM-DD', |
| 9493 |
LL: 'YYYY[ko] MMMM[ren] D[a]', |
| 9494 |
LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm', |
| 9495 |
LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm', |
| 9496 |
l: 'YYYY-M-D', |
| 9497 |
ll: 'YYYY[ko] MMM D[a]', |
| 9498 |
lll: 'YYYY[ko] MMM D[a] HH:mm', |
| 9499 |
llll: 'ddd, YYYY[ko] MMM D[a] HH:mm', |
| 9500 |
}, |
| 9501 |
calendar: { |
| 9502 |
sameDay: '[gaur] LT[etan]', |
| 9503 |
nextDay: '[bihar] LT[etan]', |
| 9504 |
nextWeek: 'dddd LT[etan]', |
| 9505 |
lastDay: '[atzo] LT[etan]', |
| 9506 |
lastWeek: '[aurreko] dddd LT[etan]', |
| 9507 |
sameElse: 'L', |
| 9508 |
}, |
| 9509 |
relativeTime: { |
| 9510 |
future: '%s barru', |
| 9511 |
past: 'duela %s', |
| 9512 |
s: 'segundo batzuk', |
| 9513 |
ss: '%d segundo', |
| 9514 |
m: 'minutu bat', |
| 9515 |
mm: '%d minutu', |
| 9516 |
h: 'ordu bat', |
| 9517 |
hh: '%d ordu', |
| 9518 |
d: 'egun bat', |
| 9519 |
dd: '%d egun', |
| 9520 |
M: 'hilabete bat', |
| 9521 |
MM: '%d hilabete', |
| 9522 |
y: 'urte bat', |
| 9523 |
yy: '%d urte', |
| 9524 |
}, |
| 9525 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 9526 |
ordinal: '%d.', |
| 9527 |
week: { |
| 9528 |
dow: 1, // Monday is the first day of the week. |
| 9529 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 9530 |
}, |
| 9531 |
}); |
| 9532 |
|
| 9533 |
//! moment.js locale configuration |
| 9534 |
|
| 9535 |
var symbolMap$6 = { |
| 9536 |
1: '۱', |
| 9537 |
2: '۲', |
| 9538 |
3: '۳', |
| 9539 |
4: '۴', |
| 9540 |
5: '۵', |
| 9541 |
6: '۶', |
| 9542 |
7: '۷', |
| 9543 |
8: '۸', |
| 9544 |
9: '۹', |
| 9545 |
0: '۰', |
| 9546 |
}, |
| 9547 |
numberMap$5 = { |
| 9548 |
'۱': '1', |
| 9549 |
'۲': '2', |
| 9550 |
'۳': '3', |
| 9551 |
'۴': '4', |
| 9552 |
'۵': '5', |
| 9553 |
'۶': '6', |
| 9554 |
'۷': '7', |
| 9555 |
'۸': '8', |
| 9556 |
'۹': '9', |
| 9557 |
'۰': '0', |
| 9558 |
}; |
| 9559 |
|
| 9560 |
hooks.defineLocale('fa', { |
| 9561 |
months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( |
| 9562 |
'_' |
| 9563 |
), |
| 9564 |
monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( |
| 9565 |
'_' |
| 9566 |
), |
| 9567 |
weekdays: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split( |
| 9568 |
'_' |
| 9569 |
), |
| 9570 |
weekdaysShort: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split( |
| 9571 |
'_' |
| 9572 |
), |
| 9573 |
weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'), |
| 9574 |
weekdaysParseExact: true, |
| 9575 |
longDateFormat: { |
| 9576 |
LT: 'HH:mm', |
| 9577 |
LTS: 'HH:mm:ss', |
| 9578 |
L: 'DD/MM/YYYY', |
| 9579 |
LL: 'D MMMM YYYY', |
| 9580 |
LLL: 'D MMMM YYYY HH:mm', |
| 9581 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 9582 |
}, |
| 9583 |
meridiemParse: /قبل از ظهر|بعد از ظهر/, |
| 9584 |
isPM: function (input) { |
| 9585 |
return /بعد از ظهر/.test(input); |
| 9586 |
}, |
| 9587 |
meridiem: function (hour, minute, isLower) { |
| 9588 |
if (hour < 12) { |
| 9589 |
return 'قبل از ظهر'; |
| 9590 |
} else { |
| 9591 |
return 'بعد از ظهر'; |
| 9592 |
} |
| 9593 |
}, |
| 9594 |
calendar: { |
| 9595 |
sameDay: '[امروز ساعت] LT', |
| 9596 |
nextDay: '[فردا ساعت] LT', |
| 9597 |
nextWeek: 'dddd [ساعت] LT', |
| 9598 |
lastDay: '[دیروز ساعت] LT', |
| 9599 |
lastWeek: 'dddd [پیش] [ساعت] LT', |
| 9600 |
sameElse: 'L', |
| 9601 |
}, |
| 9602 |
relativeTime: { |
| 9603 |
future: 'در %s', |
| 9604 |
past: '%s پیش', |
| 9605 |
s: 'چند ثانیه', |
| 9606 |
ss: '%d ثانیه', |
| 9607 |
m: 'یک دقیقه', |
| 9608 |
mm: '%d دقیقه', |
| 9609 |
h: 'یک ساعت', |
| 9610 |
hh: '%d ساعت', |
| 9611 |
d: 'یک روز', |
| 9612 |
dd: '%d روز', |
| 9613 |
M: 'یک ماه', |
| 9614 |
MM: '%d ماه', |
| 9615 |
y: 'یک سال', |
| 9616 |
yy: '%d سال', |
| 9617 |
}, |
| 9618 |
preparse: function (string) { |
| 9619 |
return string |
| 9620 |
.replace(/[۰-۹]/g, function (match) { |
| 9621 |
return numberMap$5[match]; |
| 9622 |
}) |
| 9623 |
.replace(/،/g, ','); |
| 9624 |
}, |
| 9625 |
postformat: function (string) { |
| 9626 |
return string |
| 9627 |
.replace(/\d/g, function (match) { |
| 9628 |
return symbolMap$6[match]; |
| 9629 |
}) |
| 9630 |
.replace(/,/g, '،'); |
| 9631 |
}, |
| 9632 |
dayOfMonthOrdinalParse: /\d{1,2}م/, |
| 9633 |
ordinal: '%dم', |
| 9634 |
week: { |
| 9635 |
dow: 6, // Saturday is the first day of the week. |
| 9636 |
doy: 12, // The week that contains Jan 12th is the first week of the year. |
| 9637 |
}, |
| 9638 |
}); |
| 9639 |
|
| 9640 |
//! moment.js locale configuration |
| 9641 |
|
| 9642 |
var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split( |
| 9643 |
' ' |
| 9644 |
), |
| 9645 |
numbersFuture = [ |
| 9646 |
'nolla', |
| 9647 |
'yhden', |
| 9648 |
'kahden', |
| 9649 |
'kolmen', |
| 9650 |
'neljän', |
| 9651 |
'viiden', |
| 9652 |
'kuuden', |
| 9653 |
numbersPast[7], |
| 9654 |
numbersPast[8], |
| 9655 |
numbersPast[9], |
| 9656 |
]; |
| 9657 |
function translate$2(number, withoutSuffix, key, isFuture) { |
| 9658 |
var result = ''; |
| 9659 |
switch (key) { |
| 9660 |
case 's': |
| 9661 |
return isFuture ? 'muutaman sekunnin' : 'muutama sekunti'; |
| 9662 |
case 'ss': |
| 9663 |
result = isFuture ? 'sekunnin' : 'sekuntia'; |
| 9664 |
break; |
| 9665 |
case 'm': |
| 9666 |
return isFuture ? 'minuutin' : 'minuutti'; |
| 9667 |
case 'mm': |
| 9668 |
result = isFuture ? 'minuutin' : 'minuuttia'; |
| 9669 |
break; |
| 9670 |
case 'h': |
| 9671 |
return isFuture ? 'tunnin' : 'tunti'; |
| 9672 |
case 'hh': |
| 9673 |
result = isFuture ? 'tunnin' : 'tuntia'; |
| 9674 |
break; |
| 9675 |
case 'd': |
| 9676 |
return isFuture ? 'päivän' : 'päivä'; |
| 9677 |
case 'dd': |
| 9678 |
result = isFuture ? 'päivän' : 'päivää'; |
| 9679 |
break; |
| 9680 |
case 'M': |
| 9681 |
return isFuture ? 'kuukauden' : 'kuukausi'; |
| 9682 |
case 'MM': |
| 9683 |
result = isFuture ? 'kuukauden' : 'kuukautta'; |
| 9684 |
break; |
| 9685 |
case 'y': |
| 9686 |
return isFuture ? 'vuoden' : 'vuosi'; |
| 9687 |
case 'yy': |
| 9688 |
result = isFuture ? 'vuoden' : 'vuotta'; |
| 9689 |
break; |
| 9690 |
} |
| 9691 |
result = verbalNumber(number, isFuture) + ' ' + result; |
| 9692 |
return result; |
| 9693 |
} |
| 9694 |
function verbalNumber(number, isFuture) { |
| 9695 |
return number < 10 |
| 9696 |
? isFuture |
| 9697 |
? numbersFuture[number] |
| 9698 |
: numbersPast[number] |
| 9699 |
: number; |
| 9700 |
} |
| 9701 |
|
| 9702 |
hooks.defineLocale('fi', { |
| 9703 |
months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split( |
| 9704 |
'_' |
| 9705 |
), |
| 9706 |
monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split( |
| 9707 |
'_' |
| 9708 |
), |
| 9709 |
weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split( |
| 9710 |
'_' |
| 9711 |
), |
| 9712 |
weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'), |
| 9713 |
weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'), |
| 9714 |
longDateFormat: { |
| 9715 |
LT: 'HH.mm', |
| 9716 |
LTS: 'HH.mm.ss', |
| 9717 |
L: 'DD.MM.YYYY', |
| 9718 |
LL: 'Do MMMM[ta] YYYY', |
| 9719 |
LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm', |
| 9720 |
LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm', |
| 9721 |
l: 'D.M.YYYY', |
| 9722 |
ll: 'Do MMM YYYY', |
| 9723 |
lll: 'Do MMM YYYY, [klo] HH.mm', |
| 9724 |
llll: 'ddd, Do MMM YYYY, [klo] HH.mm', |
| 9725 |
}, |
| 9726 |
calendar: { |
| 9727 |
sameDay: '[tänään] [klo] LT', |
| 9728 |
nextDay: '[huomenna] [klo] LT', |
| 9729 |
nextWeek: 'dddd [klo] LT', |
| 9730 |
lastDay: '[eilen] [klo] LT', |
| 9731 |
lastWeek: '[viime] dddd[na] [klo] LT', |
| 9732 |
sameElse: 'L', |
| 9733 |
}, |
| 9734 |
relativeTime: { |
| 9735 |
future: '%s päästä', |
| 9736 |
past: '%s sitten', |
| 9737 |
s: translate$2, |
| 9738 |
ss: translate$2, |
| 9739 |
m: translate$2, |
| 9740 |
mm: translate$2, |
| 9741 |
h: translate$2, |
| 9742 |
hh: translate$2, |
| 9743 |
d: translate$2, |
| 9744 |
dd: translate$2, |
| 9745 |
M: translate$2, |
| 9746 |
MM: translate$2, |
| 9747 |
y: translate$2, |
| 9748 |
yy: translate$2, |
| 9749 |
}, |
| 9750 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 9751 |
ordinal: '%d.', |
| 9752 |
week: { |
| 9753 |
dow: 1, // Monday is the first day of the week. |
| 9754 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 9755 |
}, |
| 9756 |
}); |
| 9757 |
|
| 9758 |
//! moment.js locale configuration |
| 9759 |
|
| 9760 |
hooks.defineLocale('fil', { |
| 9761 |
months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split( |
| 9762 |
'_' |
| 9763 |
), |
| 9764 |
monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), |
| 9765 |
weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split( |
| 9766 |
'_' |
| 9767 |
), |
| 9768 |
weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), |
| 9769 |
weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), |
| 9770 |
longDateFormat: { |
| 9771 |
LT: 'HH:mm', |
| 9772 |
LTS: 'HH:mm:ss', |
| 9773 |
L: 'MM/D/YYYY', |
| 9774 |
LL: 'MMMM D, YYYY', |
| 9775 |
LLL: 'MMMM D, YYYY HH:mm', |
| 9776 |
LLLL: 'dddd, MMMM DD, YYYY HH:mm', |
| 9777 |
}, |
| 9778 |
calendar: { |
| 9779 |
sameDay: 'LT [ngayong araw]', |
| 9780 |
nextDay: '[Bukas ng] LT', |
| 9781 |
nextWeek: 'LT [sa susunod na] dddd', |
| 9782 |
lastDay: 'LT [kahapon]', |
| 9783 |
lastWeek: 'LT [noong nakaraang] dddd', |
| 9784 |
sameElse: 'L', |
| 9785 |
}, |
| 9786 |
relativeTime: { |
| 9787 |
future: 'sa loob ng %s', |
| 9788 |
past: '%s ang nakalipas', |
| 9789 |
s: 'ilang segundo', |
| 9790 |
ss: '%d segundo', |
| 9791 |
m: 'isang minuto', |
| 9792 |
mm: '%d minuto', |
| 9793 |
h: 'isang oras', |
| 9794 |
hh: '%d oras', |
| 9795 |
d: 'isang araw', |
| 9796 |
dd: '%d araw', |
| 9797 |
M: 'isang buwan', |
| 9798 |
MM: '%d buwan', |
| 9799 |
y: 'isang taon', |
| 9800 |
yy: '%d taon', |
| 9801 |
}, |
| 9802 |
dayOfMonthOrdinalParse: /\d{1,2}/, |
| 9803 |
ordinal: function (number) { |
| 9804 |
return number; |
| 9805 |
}, |
| 9806 |
week: { |
| 9807 |
dow: 1, // Monday is the first day of the week. |
| 9808 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 9809 |
}, |
| 9810 |
}); |
| 9811 |
|
| 9812 |
//! moment.js locale configuration |
| 9813 |
|
| 9814 |
hooks.defineLocale('fo', { |
| 9815 |
months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split( |
| 9816 |
'_' |
| 9817 |
), |
| 9818 |
monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), |
| 9819 |
weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split( |
| 9820 |
'_' |
| 9821 |
), |
| 9822 |
weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'), |
| 9823 |
weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'), |
| 9824 |
longDateFormat: { |
| 9825 |
LT: 'HH:mm', |
| 9826 |
LTS: 'HH:mm:ss', |
| 9827 |
L: 'DD/MM/YYYY', |
| 9828 |
LL: 'D MMMM YYYY', |
| 9829 |
LLL: 'D MMMM YYYY HH:mm', |
| 9830 |
LLLL: 'dddd D. MMMM, YYYY HH:mm', |
| 9831 |
}, |
| 9832 |
calendar: { |
| 9833 |
sameDay: '[Í dag kl.] LT', |
| 9834 |
nextDay: '[Í morgin kl.] LT', |
| 9835 |
nextWeek: 'dddd [kl.] LT', |
| 9836 |
lastDay: '[Í gjár kl.] LT', |
| 9837 |
lastWeek: '[síðstu] dddd [kl] LT', |
| 9838 |
sameElse: 'L', |
| 9839 |
}, |
| 9840 |
relativeTime: { |
| 9841 |
future: 'um %s', |
| 9842 |
past: '%s síðani', |
| 9843 |
s: 'fá sekund', |
| 9844 |
ss: '%d sekundir', |
| 9845 |
m: 'ein minuttur', |
| 9846 |
mm: '%d minuttir', |
| 9847 |
h: 'ein tími', |
| 9848 |
hh: '%d tímar', |
| 9849 |
d: 'ein dagur', |
| 9850 |
dd: '%d dagar', |
| 9851 |
M: 'ein mánaður', |
| 9852 |
MM: '%d mánaðir', |
| 9853 |
y: 'eitt ár', |
| 9854 |
yy: '%d ár', |
| 9855 |
}, |
| 9856 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 9857 |
ordinal: '%d.', |
| 9858 |
week: { |
| 9859 |
dow: 1, // Monday is the first day of the week. |
| 9860 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 9861 |
}, |
| 9862 |
}); |
| 9863 |
|
| 9864 |
//! moment.js locale configuration |
| 9865 |
|
| 9866 |
hooks.defineLocale('fr-ca', { |
| 9867 |
months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( |
| 9868 |
'_' |
| 9869 |
), |
| 9870 |
monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( |
| 9871 |
'_' |
| 9872 |
), |
| 9873 |
monthsParseExact: true, |
| 9874 |
weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), |
| 9875 |
weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), |
| 9876 |
weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), |
| 9877 |
weekdaysParseExact: true, |
| 9878 |
longDateFormat: { |
| 9879 |
LT: 'HH:mm', |
| 9880 |
LTS: 'HH:mm:ss', |
| 9881 |
L: 'YYYY-MM-DD', |
| 9882 |
LL: 'D MMMM YYYY', |
| 9883 |
LLL: 'D MMMM YYYY HH:mm', |
| 9884 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 9885 |
}, |
| 9886 |
calendar: { |
| 9887 |
sameDay: '[Aujourd’hui à] LT', |
| 9888 |
nextDay: '[Demain à] LT', |
| 9889 |
nextWeek: 'dddd [à] LT', |
| 9890 |
lastDay: '[Hier à] LT', |
| 9891 |
lastWeek: 'dddd [dernier à] LT', |
| 9892 |
sameElse: 'L', |
| 9893 |
}, |
| 9894 |
relativeTime: { |
| 9895 |
future: 'dans %s', |
| 9896 |
past: 'il y a %s', |
| 9897 |
s: 'quelques secondes', |
| 9898 |
ss: '%d secondes', |
| 9899 |
m: 'une minute', |
| 9900 |
mm: '%d minutes', |
| 9901 |
h: 'une heure', |
| 9902 |
hh: '%d heures', |
| 9903 |
d: 'un jour', |
| 9904 |
dd: '%d jours', |
| 9905 |
M: 'un mois', |
| 9906 |
MM: '%d mois', |
| 9907 |
y: 'un an', |
| 9908 |
yy: '%d ans', |
| 9909 |
}, |
| 9910 |
dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, |
| 9911 |
ordinal: function (number, period) { |
| 9912 |
switch (period) { |
| 9913 |
// Words with masculine grammatical gender: mois, trimestre, jour |
| 9914 |
default: |
| 9915 |
case 'M': |
| 9916 |
case 'Q': |
| 9917 |
case 'D': |
| 9918 |
case 'DDD': |
| 9919 |
case 'd': |
| 9920 |
return number + (number === 1 ? 'er' : 'e'); |
| 9921 |
|
| 9922 |
// Words with feminine grammatical gender: semaine |
| 9923 |
case 'w': |
| 9924 |
case 'W': |
| 9925 |
return number + (number === 1 ? 're' : 'e'); |
| 9926 |
} |
| 9927 |
}, |
| 9928 |
}); |
| 9929 |
|
| 9930 |
//! moment.js locale configuration |
| 9931 |
|
| 9932 |
hooks.defineLocale('fr-ch', { |
| 9933 |
months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( |
| 9934 |
'_' |
| 9935 |
), |
| 9936 |
monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( |
| 9937 |
'_' |
| 9938 |
), |
| 9939 |
monthsParseExact: true, |
| 9940 |
weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), |
| 9941 |
weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), |
| 9942 |
weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), |
| 9943 |
weekdaysParseExact: true, |
| 9944 |
longDateFormat: { |
| 9945 |
LT: 'HH:mm', |
| 9946 |
LTS: 'HH:mm:ss', |
| 9947 |
L: 'DD.MM.YYYY', |
| 9948 |
LL: 'D MMMM YYYY', |
| 9949 |
LLL: 'D MMMM YYYY HH:mm', |
| 9950 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 9951 |
}, |
| 9952 |
calendar: { |
| 9953 |
sameDay: '[Aujourd’hui à] LT', |
| 9954 |
nextDay: '[Demain à] LT', |
| 9955 |
nextWeek: 'dddd [à] LT', |
| 9956 |
lastDay: '[Hier à] LT', |
| 9957 |
lastWeek: 'dddd [dernier à] LT', |
| 9958 |
sameElse: 'L', |
| 9959 |
}, |
| 9960 |
relativeTime: { |
| 9961 |
future: 'dans %s', |
| 9962 |
past: 'il y a %s', |
| 9963 |
s: 'quelques secondes', |
| 9964 |
ss: '%d secondes', |
| 9965 |
m: 'une minute', |
| 9966 |
mm: '%d minutes', |
| 9967 |
h: 'une heure', |
| 9968 |
hh: '%d heures', |
| 9969 |
d: 'un jour', |
| 9970 |
dd: '%d jours', |
| 9971 |
M: 'un mois', |
| 9972 |
MM: '%d mois', |
| 9973 |
y: 'un an', |
| 9974 |
yy: '%d ans', |
| 9975 |
}, |
| 9976 |
dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, |
| 9977 |
ordinal: function (number, period) { |
| 9978 |
switch (period) { |
| 9979 |
// Words with masculine grammatical gender: mois, trimestre, jour |
| 9980 |
default: |
| 9981 |
case 'M': |
| 9982 |
case 'Q': |
| 9983 |
case 'D': |
| 9984 |
case 'DDD': |
| 9985 |
case 'd': |
| 9986 |
return number + (number === 1 ? 'er' : 'e'); |
| 9987 |
|
| 9988 |
// Words with feminine grammatical gender: semaine |
| 9989 |
case 'w': |
| 9990 |
case 'W': |
| 9991 |
return number + (number === 1 ? 're' : 'e'); |
| 9992 |
} |
| 9993 |
}, |
| 9994 |
week: { |
| 9995 |
dow: 1, // Monday is the first day of the week. |
| 9996 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 9997 |
}, |
| 9998 |
}); |
| 9999 |
|
| 10000 |
//! moment.js locale configuration |
| 10001 |
|
| 10002 |
var monthsStrictRegex$1 = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, |
| 10003 |
monthsShortStrictRegex$1 = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i, |
| 10004 |
monthsRegex$7 = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, |
| 10005 |
monthsParse$6 = [ |
| 10006 |
/^janv/i, |
| 10007 |
/^févr/i, |
| 10008 |
/^mars/i, |
| 10009 |
/^avr/i, |
| 10010 |
/^mai/i, |
| 10011 |
/^juin/i, |
| 10012 |
/^juil/i, |
| 10013 |
/^août/i, |
| 10014 |
/^sept/i, |
| 10015 |
/^oct/i, |
| 10016 |
/^nov/i, |
| 10017 |
/^déc/i, |
| 10018 |
]; |
| 10019 |
|
| 10020 |
hooks.defineLocale('fr', { |
| 10021 |
months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( |
| 10022 |
'_' |
| 10023 |
), |
| 10024 |
monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( |
| 10025 |
'_' |
| 10026 |
), |
| 10027 |
monthsRegex: monthsRegex$7, |
| 10028 |
monthsShortRegex: monthsRegex$7, |
| 10029 |
monthsStrictRegex: monthsStrictRegex$1, |
| 10030 |
monthsShortStrictRegex: monthsShortStrictRegex$1, |
| 10031 |
monthsParse: monthsParse$6, |
| 10032 |
longMonthsParse: monthsParse$6, |
| 10033 |
shortMonthsParse: monthsParse$6, |
| 10034 |
weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), |
| 10035 |
weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), |
| 10036 |
weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), |
| 10037 |
weekdaysParseExact: true, |
| 10038 |
longDateFormat: { |
| 10039 |
LT: 'HH:mm', |
| 10040 |
LTS: 'HH:mm:ss', |
| 10041 |
L: 'DD/MM/YYYY', |
| 10042 |
LL: 'D MMMM YYYY', |
| 10043 |
LLL: 'D MMMM YYYY HH:mm', |
| 10044 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 10045 |
}, |
| 10046 |
calendar: { |
| 10047 |
sameDay: '[Aujourd’hui à] LT', |
| 10048 |
nextDay: '[Demain à] LT', |
| 10049 |
nextWeek: 'dddd [à] LT', |
| 10050 |
lastDay: '[Hier à] LT', |
| 10051 |
lastWeek: 'dddd [dernier à] LT', |
| 10052 |
sameElse: 'L', |
| 10053 |
}, |
| 10054 |
relativeTime: { |
| 10055 |
future: 'dans %s', |
| 10056 |
past: 'il y a %s', |
| 10057 |
s: 'quelques secondes', |
| 10058 |
ss: '%d secondes', |
| 10059 |
m: 'une minute', |
| 10060 |
mm: '%d minutes', |
| 10061 |
h: 'une heure', |
| 10062 |
hh: '%d heures', |
| 10063 |
d: 'un jour', |
| 10064 |
dd: '%d jours', |
| 10065 |
w: 'une semaine', |
| 10066 |
ww: '%d semaines', |
| 10067 |
M: 'un mois', |
| 10068 |
MM: '%d mois', |
| 10069 |
y: 'un an', |
| 10070 |
yy: '%d ans', |
| 10071 |
}, |
| 10072 |
dayOfMonthOrdinalParse: /\d{1,2}(er|)/, |
| 10073 |
ordinal: function (number, period) { |
| 10074 |
switch (period) { |
| 10075 |
// TODO: Return 'e' when day of month > 1. Move this case inside |
| 10076 |
// block for masculine words below. |
| 10077 |
// See https://github.com/moment/moment/issues/3375 |
| 10078 |
case 'D': |
| 10079 |
return number + (number === 1 ? 'er' : ''); |
| 10080 |
|
| 10081 |
// Words with masculine grammatical gender: mois, trimestre, jour |
| 10082 |
default: |
| 10083 |
case 'M': |
| 10084 |
case 'Q': |
| 10085 |
case 'DDD': |
| 10086 |
case 'd': |
| 10087 |
return number + (number === 1 ? 'er' : 'e'); |
| 10088 |
|
| 10089 |
// Words with feminine grammatical gender: semaine |
| 10090 |
case 'w': |
| 10091 |
case 'W': |
| 10092 |
return number + (number === 1 ? 're' : 'e'); |
| 10093 |
} |
| 10094 |
}, |
| 10095 |
week: { |
| 10096 |
dow: 1, // Monday is the first day of the week. |
| 10097 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 10098 |
}, |
| 10099 |
}); |
| 10100 |
|
| 10101 |
//! moment.js locale configuration |
| 10102 |
|
| 10103 |
var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split( |
| 10104 |
'_' |
| 10105 |
), |
| 10106 |
monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split( |
| 10107 |
'_' |
| 10108 |
); |
| 10109 |
|
| 10110 |
hooks.defineLocale('fy', { |
| 10111 |
months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split( |
| 10112 |
'_' |
| 10113 |
), |
| 10114 |
monthsShort: function (m, format) { |
| 10115 |
if (!m) { |
| 10116 |
return monthsShortWithDots; |
| 10117 |
} else if (/-MMM-/.test(format)) { |
| 10118 |
return monthsShortWithoutDots[m.month()]; |
| 10119 |
} else { |
| 10120 |
return monthsShortWithDots[m.month()]; |
| 10121 |
} |
| 10122 |
}, |
| 10123 |
monthsParseExact: true, |
| 10124 |
weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split( |
| 10125 |
'_' |
| 10126 |
), |
| 10127 |
weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'), |
| 10128 |
weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'), |
| 10129 |
weekdaysParseExact: true, |
| 10130 |
longDateFormat: { |
| 10131 |
LT: 'HH:mm', |
| 10132 |
LTS: 'HH:mm:ss', |
| 10133 |
L: 'DD-MM-YYYY', |
| 10134 |
LL: 'D MMMM YYYY', |
| 10135 |
LLL: 'D MMMM YYYY HH:mm', |
| 10136 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 10137 |
}, |
| 10138 |
calendar: { |
| 10139 |
sameDay: '[hjoed om] LT', |
| 10140 |
nextDay: '[moarn om] LT', |
| 10141 |
nextWeek: 'dddd [om] LT', |
| 10142 |
lastDay: '[juster om] LT', |
| 10143 |
lastWeek: '[ôfrûne] dddd [om] LT', |
| 10144 |
sameElse: 'L', |
| 10145 |
}, |
| 10146 |
relativeTime: { |
| 10147 |
future: 'oer %s', |
| 10148 |
past: '%s lyn', |
| 10149 |
s: 'in pear sekonden', |
| 10150 |
ss: '%d sekonden', |
| 10151 |
m: 'ien minút', |
| 10152 |
mm: '%d minuten', |
| 10153 |
h: 'ien oere', |
| 10154 |
hh: '%d oeren', |
| 10155 |
d: 'ien dei', |
| 10156 |
dd: '%d dagen', |
| 10157 |
M: 'ien moanne', |
| 10158 |
MM: '%d moannen', |
| 10159 |
y: 'ien jier', |
| 10160 |
yy: '%d jierren', |
| 10161 |
}, |
| 10162 |
dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, |
| 10163 |
ordinal: function (number) { |
| 10164 |
return ( |
| 10165 |
number + |
| 10166 |
(number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') |
| 10167 |
); |
| 10168 |
}, |
| 10169 |
week: { |
| 10170 |
dow: 1, // Monday is the first day of the week. |
| 10171 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 10172 |
}, |
| 10173 |
}); |
| 10174 |
|
| 10175 |
//! moment.js locale configuration |
| 10176 |
|
| 10177 |
var months$6 = [ |
| 10178 |
'Eanáir', |
| 10179 |
'Feabhra', |
| 10180 |
'Márta', |
| 10181 |
'Aibreán', |
| 10182 |
'Bealtaine', |
| 10183 |
'Meitheamh', |
| 10184 |
'Iúil', |
| 10185 |
'Lúnasa', |
| 10186 |
'Meán Fómhair', |
| 10187 |
'Deireadh Fómhair', |
| 10188 |
'Samhain', |
| 10189 |
'Nollaig', |
| 10190 |
], |
| 10191 |
monthsShort$5 = [ |
| 10192 |
'Ean', |
| 10193 |
'Feabh', |
| 10194 |
'Márt', |
| 10195 |
'Aib', |
| 10196 |
'Beal', |
| 10197 |
'Meith', |
| 10198 |
'Iúil', |
| 10199 |
'Lún', |
| 10200 |
'M.F.', |
| 10201 |
'D.F.', |
| 10202 |
'Samh', |
| 10203 |
'Noll', |
| 10204 |
], |
| 10205 |
weekdays$1 = [ |
| 10206 |
'Dé Domhnaigh', |
| 10207 |
'Dé Luain', |
| 10208 |
'Dé Máirt', |
| 10209 |
'Dé Céadaoin', |
| 10210 |
'Déardaoin', |
| 10211 |
'Dé hAoine', |
| 10212 |
'Dé Sathairn', |
| 10213 |
], |
| 10214 |
weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'], |
| 10215 |
weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa']; |
| 10216 |
|
| 10217 |
hooks.defineLocale('ga', { |
| 10218 |
months: months$6, |
| 10219 |
monthsShort: monthsShort$5, |
| 10220 |
monthsParseExact: true, |
| 10221 |
weekdays: weekdays$1, |
| 10222 |
weekdaysShort: weekdaysShort, |
| 10223 |
weekdaysMin: weekdaysMin, |
| 10224 |
longDateFormat: { |
| 10225 |
LT: 'HH:mm', |
| 10226 |
LTS: 'HH:mm:ss', |
| 10227 |
L: 'DD/MM/YYYY', |
| 10228 |
LL: 'D MMMM YYYY', |
| 10229 |
LLL: 'D MMMM YYYY HH:mm', |
| 10230 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 10231 |
}, |
| 10232 |
calendar: { |
| 10233 |
sameDay: '[Inniu ag] LT', |
| 10234 |
nextDay: '[Amárach ag] LT', |
| 10235 |
nextWeek: 'dddd [ag] LT', |
| 10236 |
lastDay: '[Inné ag] LT', |
| 10237 |
lastWeek: 'dddd [seo caite] [ag] LT', |
| 10238 |
sameElse: 'L', |
| 10239 |
}, |
| 10240 |
relativeTime: { |
| 10241 |
future: 'i %s', |
| 10242 |
past: '%s ó shin', |
| 10243 |
s: 'cúpla soicind', |
| 10244 |
ss: '%d soicind', |
| 10245 |
m: 'nóiméad', |
| 10246 |
mm: '%d nóiméad', |
| 10247 |
h: 'uair an chloig', |
| 10248 |
hh: '%d uair an chloig', |
| 10249 |
d: 'lá', |
| 10250 |
dd: '%d lá', |
| 10251 |
M: 'mí', |
| 10252 |
MM: '%d míonna', |
| 10253 |
y: 'bliain', |
| 10254 |
yy: '%d bliain', |
| 10255 |
}, |
| 10256 |
dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, |
| 10257 |
ordinal: function (number) { |
| 10258 |
var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh'; |
| 10259 |
return number + output; |
| 10260 |
}, |
| 10261 |
week: { |
| 10262 |
dow: 1, // Monday is the first day of the week. |
| 10263 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 10264 |
}, |
| 10265 |
}); |
| 10266 |
|
| 10267 |
//! moment.js locale configuration |
| 10268 |
|
| 10269 |
var months$7 = [ |
| 10270 |
'Am Faoilleach', |
| 10271 |
'An Gearran', |
| 10272 |
'Am Màrt', |
| 10273 |
'An Giblean', |
| 10274 |
'An Cèitean', |
| 10275 |
'An t-Ògmhios', |
| 10276 |
'An t-Iuchar', |
| 10277 |
'An Lùnastal', |
| 10278 |
'An t-Sultain', |
| 10279 |
'An Dàmhair', |
| 10280 |
'An t-Samhain', |
| 10281 |
'An Dùbhlachd', |
| 10282 |
], |
| 10283 |
monthsShort$6 = [ |
| 10284 |
'Faoi', |
| 10285 |
'Gear', |
| 10286 |
'Màrt', |
| 10287 |
'Gibl', |
| 10288 |
'Cèit', |
| 10289 |
'Ògmh', |
| 10290 |
'Iuch', |
| 10291 |
'Lùn', |
| 10292 |
'Sult', |
| 10293 |
'Dàmh', |
| 10294 |
'Samh', |
| 10295 |
'Dùbh', |
| 10296 |
], |
| 10297 |
weekdays$2 = [ |
| 10298 |
'Didòmhnaich', |
| 10299 |
'Diluain', |
| 10300 |
'Dimàirt', |
| 10301 |
'Diciadain', |
| 10302 |
'Diardaoin', |
| 10303 |
'Dihaoine', |
| 10304 |
'Disathairne', |
| 10305 |
], |
| 10306 |
weekdaysShort$1 = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'], |
| 10307 |
weekdaysMin$1 = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa']; |
| 10308 |
|
| 10309 |
hooks.defineLocale('gd', { |
| 10310 |
months: months$7, |
| 10311 |
monthsShort: monthsShort$6, |
| 10312 |
monthsParseExact: true, |
| 10313 |
weekdays: weekdays$2, |
| 10314 |
weekdaysShort: weekdaysShort$1, |
| 10315 |
weekdaysMin: weekdaysMin$1, |
| 10316 |
longDateFormat: { |
| 10317 |
LT: 'HH:mm', |
| 10318 |
LTS: 'HH:mm:ss', |
| 10319 |
L: 'DD/MM/YYYY', |
| 10320 |
LL: 'D MMMM YYYY', |
| 10321 |
LLL: 'D MMMM YYYY HH:mm', |
| 10322 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 10323 |
}, |
| 10324 |
calendar: { |
| 10325 |
sameDay: '[An-diugh aig] LT', |
| 10326 |
nextDay: '[A-màireach aig] LT', |
| 10327 |
nextWeek: 'dddd [aig] LT', |
| 10328 |
lastDay: '[An-dè aig] LT', |
| 10329 |
lastWeek: 'dddd [seo chaidh] [aig] LT', |
| 10330 |
sameElse: 'L', |
| 10331 |
}, |
| 10332 |
relativeTime: { |
| 10333 |
future: 'ann an %s', |
| 10334 |
past: 'bho chionn %s', |
| 10335 |
s: 'beagan diogan', |
| 10336 |
ss: '%d diogan', |
| 10337 |
m: 'mionaid', |
| 10338 |
mm: '%d mionaidean', |
| 10339 |
h: 'uair', |
| 10340 |
hh: '%d uairean', |
| 10341 |
d: 'latha', |
| 10342 |
dd: '%d latha', |
| 10343 |
M: 'mìos', |
| 10344 |
MM: '%d mìosan', |
| 10345 |
y: 'bliadhna', |
| 10346 |
yy: '%d bliadhna', |
| 10347 |
}, |
| 10348 |
dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, |
| 10349 |
ordinal: function (number) { |
| 10350 |
var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh'; |
| 10351 |
return number + output; |
| 10352 |
}, |
| 10353 |
week: { |
| 10354 |
dow: 1, // Monday is the first day of the week. |
| 10355 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 10356 |
}, |
| 10357 |
}); |
| 10358 |
|
| 10359 |
//! moment.js locale configuration |
| 10360 |
|
| 10361 |
hooks.defineLocale('gl', { |
| 10362 |
months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split( |
| 10363 |
'_' |
| 10364 |
), |
| 10365 |
monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split( |
| 10366 |
'_' |
| 10367 |
), |
| 10368 |
monthsParseExact: true, |
| 10369 |
weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'), |
| 10370 |
weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'), |
| 10371 |
weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'), |
| 10372 |
weekdaysParseExact: true, |
| 10373 |
longDateFormat: { |
| 10374 |
LT: 'H:mm', |
| 10375 |
LTS: 'H:mm:ss', |
| 10376 |
L: 'DD/MM/YYYY', |
| 10377 |
LL: 'D [de] MMMM [de] YYYY', |
| 10378 |
LLL: 'D [de] MMMM [de] YYYY H:mm', |
| 10379 |
LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm', |
| 10380 |
}, |
| 10381 |
calendar: { |
| 10382 |
sameDay: function () { |
| 10383 |
return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT'; |
| 10384 |
}, |
| 10385 |
nextDay: function () { |
| 10386 |
return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT'; |
| 10387 |
}, |
| 10388 |
nextWeek: function () { |
| 10389 |
return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'; |
| 10390 |
}, |
| 10391 |
lastDay: function () { |
| 10392 |
return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT'; |
| 10393 |
}, |
| 10394 |
lastWeek: function () { |
| 10395 |
return ( |
| 10396 |
'[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT' |
| 10397 |
); |
| 10398 |
}, |
| 10399 |
sameElse: 'L', |
| 10400 |
}, |
| 10401 |
relativeTime: { |
| 10402 |
future: function (str) { |
| 10403 |
if (str.indexOf('un') === 0) { |
| 10404 |
return 'n' + str; |
| 10405 |
} |
| 10406 |
return 'en ' + str; |
| 10407 |
}, |
| 10408 |
past: 'hai %s', |
| 10409 |
s: 'uns segundos', |
| 10410 |
ss: '%d segundos', |
| 10411 |
m: 'un minuto', |
| 10412 |
mm: '%d minutos', |
| 10413 |
h: 'unha hora', |
| 10414 |
hh: '%d horas', |
| 10415 |
d: 'un día', |
| 10416 |
dd: '%d días', |
| 10417 |
M: 'un mes', |
| 10418 |
MM: '%d meses', |
| 10419 |
y: 'un ano', |
| 10420 |
yy: '%d anos', |
| 10421 |
}, |
| 10422 |
dayOfMonthOrdinalParse: /\d{1,2}º/, |
| 10423 |
ordinal: '%dº', |
| 10424 |
week: { |
| 10425 |
dow: 1, // Monday is the first day of the week. |
| 10426 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 10427 |
}, |
| 10428 |
}); |
| 10429 |
|
| 10430 |
//! moment.js locale configuration |
| 10431 |
|
| 10432 |
function processRelativeTime$4(number, withoutSuffix, key, isFuture) { |
| 10433 |
var format = { |
| 10434 |
s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'], |
| 10435 |
ss: [number + ' सॅकंडांनी', number + ' सॅकंड'], |
| 10436 |
m: ['एका मिणटान', 'एक मिनूट'], |
| 10437 |
mm: [number + ' मिणटांनी', number + ' मिणटां'], |
| 10438 |
h: ['एका वरान', 'एक वर'], |
| 10439 |
hh: [number + ' वरांनी', number + ' वरां'], |
| 10440 |
d: ['एका दिसान', 'एक दीस'], |
| 10441 |
dd: [number + ' दिसांनी', number + ' दीस'], |
| 10442 |
M: ['एका म्हयन्यान', 'एक म्हयनो'], |
| 10443 |
MM: [number + ' म्हयन्यानी', number + ' म्हयने'], |
| 10444 |
y: ['एका वर्सान', 'एक वर्स'], |
| 10445 |
yy: [number + ' वर्सांनी', number + ' वर्सां'], |
| 10446 |
}; |
| 10447 |
return isFuture ? format[key][0] : format[key][1]; |
| 10448 |
} |
| 10449 |
|
| 10450 |
hooks.defineLocale('gom-deva', { |
| 10451 |
months: { |
| 10452 |
standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split( |
| 10453 |
'_' |
| 10454 |
), |
| 10455 |
format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split( |
| 10456 |
'_' |
| 10457 |
), |
| 10458 |
isFormat: /MMMM(\s)+D[oD]?/, |
| 10459 |
}, |
| 10460 |
monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split( |
| 10461 |
'_' |
| 10462 |
), |
| 10463 |
monthsParseExact: true, |
| 10464 |
weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'), |
| 10465 |
weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'), |
| 10466 |
weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'), |
| 10467 |
weekdaysParseExact: true, |
| 10468 |
longDateFormat: { |
| 10469 |
LT: 'A h:mm [वाजतां]', |
| 10470 |
LTS: 'A h:mm:ss [वाजतां]', |
| 10471 |
L: 'DD-MM-YYYY', |
| 10472 |
LL: 'D MMMM YYYY', |
| 10473 |
LLL: 'D MMMM YYYY A h:mm [वाजतां]', |
| 10474 |
LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]', |
| 10475 |
llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]', |
| 10476 |
}, |
| 10477 |
calendar: { |
| 10478 |
sameDay: '[आयज] LT', |
| 10479 |
nextDay: '[फाल्यां] LT', |
| 10480 |
nextWeek: '[फुडलो] dddd[,] LT', |
| 10481 |
lastDay: '[काल] LT', |
| 10482 |
lastWeek: '[फाटलो] dddd[,] LT', |
| 10483 |
sameElse: 'L', |
| 10484 |
}, |
| 10485 |
relativeTime: { |
| 10486 |
future: '%s', |
| 10487 |
past: '%s आदीं', |
| 10488 |
s: processRelativeTime$4, |
| 10489 |
ss: processRelativeTime$4, |
| 10490 |
m: processRelativeTime$4, |
| 10491 |
mm: processRelativeTime$4, |
| 10492 |
h: processRelativeTime$4, |
| 10493 |
hh: processRelativeTime$4, |
| 10494 |
d: processRelativeTime$4, |
| 10495 |
dd: processRelativeTime$4, |
| 10496 |
M: processRelativeTime$4, |
| 10497 |
MM: processRelativeTime$4, |
| 10498 |
y: processRelativeTime$4, |
| 10499 |
yy: processRelativeTime$4, |
| 10500 |
}, |
| 10501 |
dayOfMonthOrdinalParse: /\d{1,2}(वेर)/, |
| 10502 |
ordinal: function (number, period) { |
| 10503 |
switch (period) { |
| 10504 |
// the ordinal 'वेर' only applies to day of the month |
| 10505 |
case 'D': |
| 10506 |
return number + 'वेर'; |
| 10507 |
default: |
| 10508 |
case 'M': |
| 10509 |
case 'Q': |
| 10510 |
case 'DDD': |
| 10511 |
case 'd': |
| 10512 |
case 'w': |
| 10513 |
case 'W': |
| 10514 |
return number; |
| 10515 |
} |
| 10516 |
}, |
| 10517 |
week: { |
| 10518 |
dow: 0, // Sunday is the first day of the week |
| 10519 |
doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4) |
| 10520 |
}, |
| 10521 |
meridiemParse: /राती|सकाळीं|दनपारां|सांजे/, |
| 10522 |
meridiemHour: function (hour, meridiem) { |
| 10523 |
if (hour === 12) { |
| 10524 |
hour = 0; |
| 10525 |
} |
| 10526 |
if (meridiem === 'राती') { |
| 10527 |
return hour < 4 ? hour : hour + 12; |
| 10528 |
} else if (meridiem === 'सकाळीं') { |
| 10529 |
return hour; |
| 10530 |
} else if (meridiem === 'दनपारां') { |
| 10531 |
return hour > 12 ? hour : hour + 12; |
| 10532 |
} else if (meridiem === 'सांजे') { |
| 10533 |
return hour + 12; |
| 10534 |
} |
| 10535 |
}, |
| 10536 |
meridiem: function (hour, minute, isLower) { |
| 10537 |
if (hour < 4) { |
| 10538 |
return 'राती'; |
| 10539 |
} else if (hour < 12) { |
| 10540 |
return 'सकाळीं'; |
| 10541 |
} else if (hour < 16) { |
| 10542 |
return 'दनपारां'; |
| 10543 |
} else if (hour < 20) { |
| 10544 |
return 'सांजे'; |
| 10545 |
} else { |
| 10546 |
return 'राती'; |
| 10547 |
} |
| 10548 |
}, |
| 10549 |
}); |
| 10550 |
|
| 10551 |
//! moment.js locale configuration |
| 10552 |
|
| 10553 |
function processRelativeTime$5(number, withoutSuffix, key, isFuture) { |
| 10554 |
var format = { |
| 10555 |
s: ['thoddea sekondamni', 'thodde sekond'], |
| 10556 |
ss: [number + ' sekondamni', number + ' sekond'], |
| 10557 |
m: ['eka mintan', 'ek minut'], |
| 10558 |
mm: [number + ' mintamni', number + ' mintam'], |
| 10559 |
h: ['eka voran', 'ek vor'], |
| 10560 |
hh: [number + ' voramni', number + ' voram'], |
| 10561 |
d: ['eka disan', 'ek dis'], |
| 10562 |
dd: [number + ' disamni', number + ' dis'], |
| 10563 |
M: ['eka mhoinean', 'ek mhoino'], |
| 10564 |
MM: [number + ' mhoineamni', number + ' mhoine'], |
| 10565 |
y: ['eka vorsan', 'ek voros'], |
| 10566 |
yy: [number + ' vorsamni', number + ' vorsam'], |
| 10567 |
}; |
| 10568 |
return isFuture ? format[key][0] : format[key][1]; |
| 10569 |
} |
| 10570 |
|
| 10571 |
hooks.defineLocale('gom-latn', { |
| 10572 |
months: { |
| 10573 |
standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split( |
| 10574 |
'_' |
| 10575 |
), |
| 10576 |
format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split( |
| 10577 |
'_' |
| 10578 |
), |
| 10579 |
isFormat: /MMMM(\s)+D[oD]?/, |
| 10580 |
}, |
| 10581 |
monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split( |
| 10582 |
'_' |
| 10583 |
), |
| 10584 |
monthsParseExact: true, |
| 10585 |
weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'), |
| 10586 |
weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'), |
| 10587 |
weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'), |
| 10588 |
weekdaysParseExact: true, |
| 10589 |
longDateFormat: { |
| 10590 |
LT: 'A h:mm [vazta]', |
| 10591 |
LTS: 'A h:mm:ss [vazta]', |
| 10592 |
L: 'DD-MM-YYYY', |
| 10593 |
LL: 'D MMMM YYYY', |
| 10594 |
LLL: 'D MMMM YYYY A h:mm [vazta]', |
| 10595 |
LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]', |
| 10596 |
llll: 'ddd, D MMM YYYY, A h:mm [vazta]', |
| 10597 |
}, |
| 10598 |
calendar: { |
| 10599 |
sameDay: '[Aiz] LT', |
| 10600 |
nextDay: '[Faleam] LT', |
| 10601 |
nextWeek: '[Fuddlo] dddd[,] LT', |
| 10602 |
lastDay: '[Kal] LT', |
| 10603 |
lastWeek: '[Fattlo] dddd[,] LT', |
| 10604 |
sameElse: 'L', |
| 10605 |
}, |
| 10606 |
relativeTime: { |
| 10607 |
future: '%s', |
| 10608 |
past: '%s adim', |
| 10609 |
s: processRelativeTime$5, |
| 10610 |
ss: processRelativeTime$5, |
| 10611 |
m: processRelativeTime$5, |
| 10612 |
mm: processRelativeTime$5, |
| 10613 |
h: processRelativeTime$5, |
| 10614 |
hh: processRelativeTime$5, |
| 10615 |
d: processRelativeTime$5, |
| 10616 |
dd: processRelativeTime$5, |
| 10617 |
M: processRelativeTime$5, |
| 10618 |
MM: processRelativeTime$5, |
| 10619 |
y: processRelativeTime$5, |
| 10620 |
yy: processRelativeTime$5, |
| 10621 |
}, |
| 10622 |
dayOfMonthOrdinalParse: /\d{1,2}(er)/, |
| 10623 |
ordinal: function (number, period) { |
| 10624 |
switch (period) { |
| 10625 |
// the ordinal 'er' only applies to day of the month |
| 10626 |
case 'D': |
| 10627 |
return number + 'er'; |
| 10628 |
default: |
| 10629 |
case 'M': |
| 10630 |
case 'Q': |
| 10631 |
case 'DDD': |
| 10632 |
case 'd': |
| 10633 |
case 'w': |
| 10634 |
case 'W': |
| 10635 |
return number; |
| 10636 |
} |
| 10637 |
}, |
| 10638 |
week: { |
| 10639 |
dow: 0, // Sunday is the first day of the week |
| 10640 |
doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4) |
| 10641 |
}, |
| 10642 |
meridiemParse: /rati|sokallim|donparam|sanje/, |
| 10643 |
meridiemHour: function (hour, meridiem) { |
| 10644 |
if (hour === 12) { |
| 10645 |
hour = 0; |
| 10646 |
} |
| 10647 |
if (meridiem === 'rati') { |
| 10648 |
return hour < 4 ? hour : hour + 12; |
| 10649 |
} else if (meridiem === 'sokallim') { |
| 10650 |
return hour; |
| 10651 |
} else if (meridiem === 'donparam') { |
| 10652 |
return hour > 12 ? hour : hour + 12; |
| 10653 |
} else if (meridiem === 'sanje') { |
| 10654 |
return hour + 12; |
| 10655 |
} |
| 10656 |
}, |
| 10657 |
meridiem: function (hour, minute, isLower) { |
| 10658 |
if (hour < 4) { |
| 10659 |
return 'rati'; |
| 10660 |
} else if (hour < 12) { |
| 10661 |
return 'sokallim'; |
| 10662 |
} else if (hour < 16) { |
| 10663 |
return 'donparam'; |
| 10664 |
} else if (hour < 20) { |
| 10665 |
return 'sanje'; |
| 10666 |
} else { |
| 10667 |
return 'rati'; |
| 10668 |
} |
| 10669 |
}, |
| 10670 |
}); |
| 10671 |
|
| 10672 |
//! moment.js locale configuration |
| 10673 |
|
| 10674 |
var symbolMap$7 = { |
| 10675 |
1: '૧', |
| 10676 |
2: '૨', |
| 10677 |
3: '૩', |
| 10678 |
4: '૪', |
| 10679 |
5: '૫', |
| 10680 |
6: '૬', |
| 10681 |
7: '૭', |
| 10682 |
8: '૮', |
| 10683 |
9: '૯', |
| 10684 |
0: '૦', |
| 10685 |
}, |
| 10686 |
numberMap$6 = { |
| 10687 |
'૧': '1', |
| 10688 |
'૨': '2', |
| 10689 |
'૩': '3', |
| 10690 |
'૪': '4', |
| 10691 |
'૫': '5', |
| 10692 |
'૬': '6', |
| 10693 |
'૭': '7', |
| 10694 |
'૮': '8', |
| 10695 |
'૯': '9', |
| 10696 |
'૦': '0', |
| 10697 |
}; |
| 10698 |
|
| 10699 |
hooks.defineLocale('gu', { |
| 10700 |
months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split( |
| 10701 |
'_' |
| 10702 |
), |
| 10703 |
monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split( |
| 10704 |
'_' |
| 10705 |
), |
| 10706 |
monthsParseExact: true, |
| 10707 |
weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split( |
| 10708 |
'_' |
| 10709 |
), |
| 10710 |
weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'), |
| 10711 |
weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'), |
| 10712 |
longDateFormat: { |
| 10713 |
LT: 'A h:mm વાગ્યે', |
| 10714 |
LTS: 'A h:mm:ss વાગ્યે', |
| 10715 |
L: 'DD/MM/YYYY', |
| 10716 |
LL: 'D MMMM YYYY', |
| 10717 |
LLL: 'D MMMM YYYY, A h:mm વાગ્યે', |
| 10718 |
LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે', |
| 10719 |
}, |
| 10720 |
calendar: { |
| 10721 |
sameDay: '[આજ] LT', |
| 10722 |
nextDay: '[કાલે] LT', |
| 10723 |
nextWeek: 'dddd, LT', |
| 10724 |
lastDay: '[ગઇકાલે] LT', |
| 10725 |
lastWeek: '[પાછલા] dddd, LT', |
| 10726 |
sameElse: 'L', |
| 10727 |
}, |
| 10728 |
relativeTime: { |
| 10729 |
future: '%s મા', |
| 10730 |
past: '%s પહેલા', |
| 10731 |
s: 'અમુક પળો', |
| 10732 |
ss: '%d સેકંડ', |
| 10733 |
m: 'એક મિનિટ', |
| 10734 |
mm: '%d મિનિટ', |
| 10735 |
h: 'એક કલાક', |
| 10736 |
hh: '%d કલાક', |
| 10737 |
d: 'એક દિવસ', |
| 10738 |
dd: '%d દિવસ', |
| 10739 |
M: 'એક મહિનો', |
| 10740 |
MM: '%d મહિનો', |
| 10741 |
y: 'એક વર્ષ', |
| 10742 |
yy: '%d વર્ષ', |
| 10743 |
}, |
| 10744 |
preparse: function (string) { |
| 10745 |
return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) { |
| 10746 |
return numberMap$6[match]; |
| 10747 |
}); |
| 10748 |
}, |
| 10749 |
postformat: function (string) { |
| 10750 |
return string.replace(/\d/g, function (match) { |
| 10751 |
return symbolMap$7[match]; |
| 10752 |
}); |
| 10753 |
}, |
| 10754 |
// Gujarati notation for meridiems are quite fuzzy in practice. While there exists |
| 10755 |
// a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati. |
| 10756 |
meridiemParse: /રાત|બપોર|સવાર|સાંજ/, |
| 10757 |
meridiemHour: function (hour, meridiem) { |
| 10758 |
if (hour === 12) { |
| 10759 |
hour = 0; |
| 10760 |
} |
| 10761 |
if (meridiem === 'રાત') { |
| 10762 |
return hour < 4 ? hour : hour + 12; |
| 10763 |
} else if (meridiem === 'સવાર') { |
| 10764 |
return hour; |
| 10765 |
} else if (meridiem === 'બપોર') { |
| 10766 |
return hour >= 10 ? hour : hour + 12; |
| 10767 |
} else if (meridiem === 'સાંજ') { |
| 10768 |
return hour + 12; |
| 10769 |
} |
| 10770 |
}, |
| 10771 |
meridiem: function (hour, minute, isLower) { |
| 10772 |
if (hour < 4) { |
| 10773 |
return 'રાત'; |
| 10774 |
} else if (hour < 10) { |
| 10775 |
return 'સવાર'; |
| 10776 |
} else if (hour < 17) { |
| 10777 |
return 'બપોર'; |
| 10778 |
} else if (hour < 20) { |
| 10779 |
return 'સાંજ'; |
| 10780 |
} else { |
| 10781 |
return 'રાત'; |
| 10782 |
} |
| 10783 |
}, |
| 10784 |
week: { |
| 10785 |
dow: 0, // Sunday is the first day of the week. |
| 10786 |
doy: 6, // The week that contains Jan 6th is the first week of the year. |
| 10787 |
}, |
| 10788 |
}); |
| 10789 |
|
| 10790 |
//! moment.js locale configuration |
| 10791 |
|
| 10792 |
hooks.defineLocale('he', { |
| 10793 |
months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split( |
| 10794 |
'_' |
| 10795 |
), |
| 10796 |
monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split( |
| 10797 |
'_' |
| 10798 |
), |
| 10799 |
weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'), |
| 10800 |
weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'), |
| 10801 |
weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'), |
| 10802 |
longDateFormat: { |
| 10803 |
LT: 'HH:mm', |
| 10804 |
LTS: 'HH:mm:ss', |
| 10805 |
L: 'DD/MM/YYYY', |
| 10806 |
LL: 'D [ב]MMMM YYYY', |
| 10807 |
LLL: 'D [ב]MMMM YYYY HH:mm', |
| 10808 |
LLLL: 'dddd, D [ב]MMMM YYYY HH:mm', |
| 10809 |
l: 'D/M/YYYY', |
| 10810 |
ll: 'D MMM YYYY', |
| 10811 |
lll: 'D MMM YYYY HH:mm', |
| 10812 |
llll: 'ddd, D MMM YYYY HH:mm', |
| 10813 |
}, |
| 10814 |
calendar: { |
| 10815 |
sameDay: '[היום ב־]LT', |
| 10816 |
nextDay: '[מחר ב־]LT', |
| 10817 |
nextWeek: 'dddd [בשעה] LT', |
| 10818 |
lastDay: '[אתמול ב־]LT', |
| 10819 |
lastWeek: '[ביום] dddd [האחרון בשעה] LT', |
| 10820 |
sameElse: 'L', |
| 10821 |
}, |
| 10822 |
relativeTime: { |
| 10823 |
future: 'בעוד %s', |
| 10824 |
past: 'לפני %s', |
| 10825 |
s: 'מספר שניות', |
| 10826 |
ss: '%d שניות', |
| 10827 |
m: 'דקה', |
| 10828 |
mm: '%d דקות', |
| 10829 |
h: 'שעה', |
| 10830 |
hh: function (number) { |
| 10831 |
if (number === 2) { |
| 10832 |
return 'שעתיים'; |
| 10833 |
} |
| 10834 |
return number + ' שעות'; |
| 10835 |
}, |
| 10836 |
d: 'יום', |
| 10837 |
dd: function (number) { |
| 10838 |
if (number === 2) { |
| 10839 |
return 'יומיים'; |
| 10840 |
} |
| 10841 |
return number + ' ימים'; |
| 10842 |
}, |
| 10843 |
M: 'חודש', |
| 10844 |
MM: function (number) { |
| 10845 |
if (number === 2) { |
| 10846 |
return 'חודשיים'; |
| 10847 |
} |
| 10848 |
return number + ' חודשים'; |
| 10849 |
}, |
| 10850 |
y: 'שנה', |
| 10851 |
yy: function (number) { |
| 10852 |
if (number === 2) { |
| 10853 |
return 'שנתיים'; |
| 10854 |
} else if (number % 10 === 0 && number !== 10) { |
| 10855 |
return number + ' שנה'; |
| 10856 |
} |
| 10857 |
return number + ' שנים'; |
| 10858 |
}, |
| 10859 |
}, |
| 10860 |
meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i, |
| 10861 |
isPM: function (input) { |
| 10862 |
return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input); |
| 10863 |
}, |
| 10864 |
meridiem: function (hour, minute, isLower) { |
| 10865 |
if (hour < 5) { |
| 10866 |
return 'לפנות בוקר'; |
| 10867 |
} else if (hour < 10) { |
| 10868 |
return 'בבוקר'; |
| 10869 |
} else if (hour < 12) { |
| 10870 |
return isLower ? 'לפנה"צ' : 'לפני הצהריים'; |
| 10871 |
} else if (hour < 18) { |
| 10872 |
return isLower ? 'אחה"צ' : 'אחרי הצהריים'; |
| 10873 |
} else { |
| 10874 |
return 'בערב'; |
| 10875 |
} |
| 10876 |
}, |
| 10877 |
}); |
| 10878 |
|
| 10879 |
//! moment.js locale configuration |
| 10880 |
|
| 10881 |
var symbolMap$8 = { |
| 10882 |
1: '१', |
| 10883 |
2: '२', |
| 10884 |
3: '३', |
| 10885 |
4: '४', |
| 10886 |
5: '५', |
| 10887 |
6: '६', |
| 10888 |
7: '७', |
| 10889 |
8: '८', |
| 10890 |
9: '९', |
| 10891 |
0: '०', |
| 10892 |
}, |
| 10893 |
numberMap$7 = { |
| 10894 |
'१': '1', |
| 10895 |
'२': '2', |
| 10896 |
'३': '3', |
| 10897 |
'४': '4', |
| 10898 |
'५': '5', |
| 10899 |
'६': '6', |
| 10900 |
'७': '7', |
| 10901 |
'८': '8', |
| 10902 |
'९': '9', |
| 10903 |
'०': '0', |
| 10904 |
}, |
| 10905 |
monthsParse$7 = [ |
| 10906 |
/^जन/i, |
| 10907 |
/^फ़र|फर/i, |
| 10908 |
/^मार्च/i, |
| 10909 |
/^अप्रै/i, |
| 10910 |
/^मई/i, |
| 10911 |
/^जून/i, |
| 10912 |
/^जुल/i, |
| 10913 |
/^अग/i, |
| 10914 |
/^सितं|सित/i, |
| 10915 |
/^अक्टू/i, |
| 10916 |
/^नव|नवं/i, |
| 10917 |
/^दिसं|दिस/i, |
| 10918 |
], |
| 10919 |
shortMonthsParse = [ |
| 10920 |
/^जन/i, |
| 10921 |
/^फ़र/i, |
| 10922 |
/^मार्च/i, |
| 10923 |
/^अप्रै/i, |
| 10924 |
/^मई/i, |
| 10925 |
/^जून/i, |
| 10926 |
/^जुल/i, |
| 10927 |
/^अग/i, |
| 10928 |
/^सित/i, |
| 10929 |
/^अक्टू/i, |
| 10930 |
/^नव/i, |
| 10931 |
/^दिस/i, |
| 10932 |
]; |
| 10933 |
|
| 10934 |
hooks.defineLocale('hi', { |
| 10935 |
months: { |
| 10936 |
format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split( |
| 10937 |
'_' |
| 10938 |
), |
| 10939 |
standalone: 'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split( |
| 10940 |
'_' |
| 10941 |
), |
| 10942 |
}, |
| 10943 |
monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split( |
| 10944 |
'_' |
| 10945 |
), |
| 10946 |
weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), |
| 10947 |
weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'), |
| 10948 |
weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), |
| 10949 |
longDateFormat: { |
| 10950 |
LT: 'A h:mm बजे', |
| 10951 |
LTS: 'A h:mm:ss बजे', |
| 10952 |
L: 'DD/MM/YYYY', |
| 10953 |
LL: 'D MMMM YYYY', |
| 10954 |
LLL: 'D MMMM YYYY, A h:mm बजे', |
| 10955 |
LLLL: 'dddd, D MMMM YYYY, A h:mm बजे', |
| 10956 |
}, |
| 10957 |
|
| 10958 |
monthsParse: monthsParse$7, |
| 10959 |
longMonthsParse: monthsParse$7, |
| 10960 |
shortMonthsParse: shortMonthsParse, |
| 10961 |
|
| 10962 |
monthsRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i, |
| 10963 |
|
| 10964 |
monthsShortRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i, |
| 10965 |
|
| 10966 |
monthsStrictRegex: /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i, |
| 10967 |
|
| 10968 |
monthsShortStrictRegex: /^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i, |
| 10969 |
|
| 10970 |
calendar: { |
| 10971 |
sameDay: '[आज] LT', |
| 10972 |
nextDay: '[कल] LT', |
| 10973 |
nextWeek: 'dddd, LT', |
| 10974 |
lastDay: '[कल] LT', |
| 10975 |
lastWeek: '[पिछले] dddd, LT', |
| 10976 |
sameElse: 'L', |
| 10977 |
}, |
| 10978 |
relativeTime: { |
| 10979 |
future: '%s में', |
| 10980 |
past: '%s पहले', |
| 10981 |
s: 'कुछ ही क्षण', |
| 10982 |
ss: '%d सेकंड', |
| 10983 |
m: 'एक मिनट', |
| 10984 |
mm: '%d मिनट', |
| 10985 |
h: 'एक घंटा', |
| 10986 |
hh: '%d घंटे', |
| 10987 |
d: 'एक दिन', |
| 10988 |
dd: '%d दिन', |
| 10989 |
M: 'एक महीने', |
| 10990 |
MM: '%d महीने', |
| 10991 |
y: 'एक वर्ष', |
| 10992 |
yy: '%d वर्ष', |
| 10993 |
}, |
| 10994 |
preparse: function (string) { |
| 10995 |
return string.replace(/[१२३४५६७८९०]/g, function (match) { |
| 10996 |
return numberMap$7[match]; |
| 10997 |
}); |
| 10998 |
}, |
| 10999 |
postformat: function (string) { |
| 11000 |
return string.replace(/\d/g, function (match) { |
| 11001 |
return symbolMap$8[match]; |
| 11002 |
}); |
| 11003 |
}, |
| 11004 |
// Hindi notation for meridiems are quite fuzzy in practice. While there exists |
| 11005 |
// a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi. |
| 11006 |
meridiemParse: /रात|सुबह|दोपहर|शाम/, |
| 11007 |
meridiemHour: function (hour, meridiem) { |
| 11008 |
if (hour === 12) { |
| 11009 |
hour = 0; |
| 11010 |
} |
| 11011 |
if (meridiem === 'रात') { |
| 11012 |
return hour < 4 ? hour : hour + 12; |
| 11013 |
} else if (meridiem === 'सुबह') { |
| 11014 |
return hour; |
| 11015 |
} else if (meridiem === 'दोपहर') { |
| 11016 |
return hour >= 10 ? hour : hour + 12; |
| 11017 |
} else if (meridiem === 'शाम') { |
| 11018 |
return hour + 12; |
| 11019 |
} |
| 11020 |
}, |
| 11021 |
meridiem: function (hour, minute, isLower) { |
| 11022 |
if (hour < 4) { |
| 11023 |
return 'रात'; |
| 11024 |
} else if (hour < 10) { |
| 11025 |
return 'सुबह'; |
| 11026 |
} else if (hour < 17) { |
| 11027 |
return 'दोपहर'; |
| 11028 |
} else if (hour < 20) { |
| 11029 |
return 'शाम'; |
| 11030 |
} else { |
| 11031 |
return 'रात'; |
| 11032 |
} |
| 11033 |
}, |
| 11034 |
week: { |
| 11035 |
dow: 0, // Sunday is the first day of the week. |
| 11036 |
doy: 6, // The week that contains Jan 6th is the first week of the year. |
| 11037 |
}, |
| 11038 |
}); |
| 11039 |
|
| 11040 |
//! moment.js locale configuration |
| 11041 |
|
| 11042 |
function translate$3(number, withoutSuffix, key) { |
| 11043 |
var result = number + ' '; |
| 11044 |
switch (key) { |
| 11045 |
case 'ss': |
| 11046 |
if (number === 1) { |
| 11047 |
result += 'sekunda'; |
| 11048 |
} else if (number === 2 || number === 3 || number === 4) { |
| 11049 |
result += 'sekunde'; |
| 11050 |
} else { |
| 11051 |
result += 'sekundi'; |
| 11052 |
} |
| 11053 |
return result; |
| 11054 |
case 'm': |
| 11055 |
return withoutSuffix ? 'jedna minuta' : 'jedne minute'; |
| 11056 |
case 'mm': |
| 11057 |
if (number === 1) { |
| 11058 |
result += 'minuta'; |
| 11059 |
} else if (number === 2 || number === 3 || number === 4) { |
| 11060 |
result += 'minute'; |
| 11061 |
} else { |
| 11062 |
result += 'minuta'; |
| 11063 |
} |
| 11064 |
return result; |
| 11065 |
case 'h': |
| 11066 |
return withoutSuffix ? 'jedan sat' : 'jednog sata'; |
| 11067 |
case 'hh': |
| 11068 |
if (number === 1) { |
| 11069 |
result += 'sat'; |
| 11070 |
} else if (number === 2 || number === 3 || number === 4) { |
| 11071 |
result += 'sata'; |
| 11072 |
} else { |
| 11073 |
result += 'sati'; |
| 11074 |
} |
| 11075 |
return result; |
| 11076 |
case 'dd': |
| 11077 |
if (number === 1) { |
| 11078 |
result += 'dan'; |
| 11079 |
} else { |
| 11080 |
result += 'dana'; |
| 11081 |
} |
| 11082 |
return result; |
| 11083 |
case 'MM': |
| 11084 |
if (number === 1) { |
| 11085 |
result += 'mjesec'; |
| 11086 |
} else if (number === 2 || number === 3 || number === 4) { |
| 11087 |
result += 'mjeseca'; |
| 11088 |
} else { |
| 11089 |
result += 'mjeseci'; |
| 11090 |
} |
| 11091 |
return result; |
| 11092 |
case 'yy': |
| 11093 |
if (number === 1) { |
| 11094 |
result += 'godina'; |
| 11095 |
} else if (number === 2 || number === 3 || number === 4) { |
| 11096 |
result += 'godine'; |
| 11097 |
} else { |
| 11098 |
result += 'godina'; |
| 11099 |
} |
| 11100 |
return result; |
| 11101 |
} |
| 11102 |
} |
| 11103 |
|
| 11104 |
hooks.defineLocale('hr', { |
| 11105 |
months: { |
| 11106 |
format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split( |
| 11107 |
'_' |
| 11108 |
), |
| 11109 |
standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split( |
| 11110 |
'_' |
| 11111 |
), |
| 11112 |
}, |
| 11113 |
monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split( |
| 11114 |
'_' |
| 11115 |
), |
| 11116 |
monthsParseExact: true, |
| 11117 |
weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( |
| 11118 |
'_' |
| 11119 |
), |
| 11120 |
weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), |
| 11121 |
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), |
| 11122 |
weekdaysParseExact: true, |
| 11123 |
longDateFormat: { |
| 11124 |
LT: 'H:mm', |
| 11125 |
LTS: 'H:mm:ss', |
| 11126 |
L: 'DD.MM.YYYY', |
| 11127 |
LL: 'Do MMMM YYYY', |
| 11128 |
LLL: 'Do MMMM YYYY H:mm', |
| 11129 |
LLLL: 'dddd, Do MMMM YYYY H:mm', |
| 11130 |
}, |
| 11131 |
calendar: { |
| 11132 |
sameDay: '[danas u] LT', |
| 11133 |
nextDay: '[sutra u] LT', |
| 11134 |
nextWeek: function () { |
| 11135 |
switch (this.day()) { |
| 11136 |
case 0: |
| 11137 |
return '[u] [nedjelju] [u] LT'; |
| 11138 |
case 3: |
| 11139 |
return '[u] [srijedu] [u] LT'; |
| 11140 |
case 6: |
| 11141 |
return '[u] [subotu] [u] LT'; |
| 11142 |
case 1: |
| 11143 |
case 2: |
| 11144 |
case 4: |
| 11145 |
case 5: |
| 11146 |
return '[u] dddd [u] LT'; |
| 11147 |
} |
| 11148 |
}, |
| 11149 |
lastDay: '[jučer u] LT', |
| 11150 |
lastWeek: function () { |
| 11151 |
switch (this.day()) { |
| 11152 |
case 0: |
| 11153 |
return '[prošlu] [nedjelju] [u] LT'; |
| 11154 |
case 3: |
| 11155 |
return '[prošlu] [srijedu] [u] LT'; |
| 11156 |
case 6: |
| 11157 |
return '[prošle] [subote] [u] LT'; |
| 11158 |
case 1: |
| 11159 |
case 2: |
| 11160 |
case 4: |
| 11161 |
case 5: |
| 11162 |
return '[prošli] dddd [u] LT'; |
| 11163 |
} |
| 11164 |
}, |
| 11165 |
sameElse: 'L', |
| 11166 |
}, |
| 11167 |
relativeTime: { |
| 11168 |
future: 'za %s', |
| 11169 |
past: 'prije %s', |
| 11170 |
s: 'par sekundi', |
| 11171 |
ss: translate$3, |
| 11172 |
m: translate$3, |
| 11173 |
mm: translate$3, |
| 11174 |
h: translate$3, |
| 11175 |
hh: translate$3, |
| 11176 |
d: 'dan', |
| 11177 |
dd: translate$3, |
| 11178 |
M: 'mjesec', |
| 11179 |
MM: translate$3, |
| 11180 |
y: 'godinu', |
| 11181 |
yy: translate$3, |
| 11182 |
}, |
| 11183 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 11184 |
ordinal: '%d.', |
| 11185 |
week: { |
| 11186 |
dow: 1, // Monday is the first day of the week. |
| 11187 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 11188 |
}, |
| 11189 |
}); |
| 11190 |
|
| 11191 |
//! moment.js locale configuration |
| 11192 |
|
| 11193 |
var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split( |
| 11194 |
' ' |
| 11195 |
); |
| 11196 |
function translate$4(number, withoutSuffix, key, isFuture) { |
| 11197 |
var num = number; |
| 11198 |
switch (key) { |
| 11199 |
case 's': |
| 11200 |
return isFuture || withoutSuffix |
| 11201 |
? 'néhány másodperc' |
| 11202 |
: 'néhány másodperce'; |
| 11203 |
case 'ss': |
| 11204 |
return num + (isFuture || withoutSuffix) |
| 11205 |
? ' másodperc' |
| 11206 |
: ' másodperce'; |
| 11207 |
case 'm': |
| 11208 |
return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce'); |
| 11209 |
case 'mm': |
| 11210 |
return num + (isFuture || withoutSuffix ? ' perc' : ' perce'); |
| 11211 |
case 'h': |
| 11212 |
return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája'); |
| 11213 |
case 'hh': |
| 11214 |
return num + (isFuture || withoutSuffix ? ' óra' : ' órája'); |
| 11215 |
case 'd': |
| 11216 |
return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja'); |
| 11217 |
case 'dd': |
| 11218 |
return num + (isFuture || withoutSuffix ? ' nap' : ' napja'); |
| 11219 |
case 'M': |
| 11220 |
return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); |
| 11221 |
case 'MM': |
| 11222 |
return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); |
| 11223 |
case 'y': |
| 11224 |
return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve'); |
| 11225 |
case 'yy': |
| 11226 |
return num + (isFuture || withoutSuffix ? ' év' : ' éve'); |
| 11227 |
} |
| 11228 |
return ''; |
| 11229 |
} |
| 11230 |
function week(isFuture) { |
| 11231 |
return ( |
| 11232 |
(isFuture ? '' : '[múlt] ') + |
| 11233 |
'[' + |
| 11234 |
weekEndings[this.day()] + |
| 11235 |
'] LT[-kor]' |
| 11236 |
); |
| 11237 |
} |
| 11238 |
|
| 11239 |
hooks.defineLocale('hu', { |
| 11240 |
months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split( |
| 11241 |
'_' |
| 11242 |
), |
| 11243 |
monthsShort: 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split( |
| 11244 |
'_' |
| 11245 |
), |
| 11246 |
monthsParseExact: true, |
| 11247 |
weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'), |
| 11248 |
weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), |
| 11249 |
weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'), |
| 11250 |
longDateFormat: { |
| 11251 |
LT: 'H:mm', |
| 11252 |
LTS: 'H:mm:ss', |
| 11253 |
L: 'YYYY.MM.DD.', |
| 11254 |
LL: 'YYYY. MMMM D.', |
| 11255 |
LLL: 'YYYY. MMMM D. H:mm', |
| 11256 |
LLLL: 'YYYY. MMMM D., dddd H:mm', |
| 11257 |
}, |
| 11258 |
meridiemParse: /de|du/i, |
| 11259 |
isPM: function (input) { |
| 11260 |
return input.charAt(1).toLowerCase() === 'u'; |
| 11261 |
}, |
| 11262 |
meridiem: function (hours, minutes, isLower) { |
| 11263 |
if (hours < 12) { |
| 11264 |
return isLower === true ? 'de' : 'DE'; |
| 11265 |
} else { |
| 11266 |
return isLower === true ? 'du' : 'DU'; |
| 11267 |
} |
| 11268 |
}, |
| 11269 |
calendar: { |
| 11270 |
sameDay: '[ma] LT[-kor]', |
| 11271 |
nextDay: '[holnap] LT[-kor]', |
| 11272 |
nextWeek: function () { |
| 11273 |
return week.call(this, true); |
| 11274 |
}, |
| 11275 |
lastDay: '[tegnap] LT[-kor]', |
| 11276 |
lastWeek: function () { |
| 11277 |
return week.call(this, false); |
| 11278 |
}, |
| 11279 |
sameElse: 'L', |
| 11280 |
}, |
| 11281 |
relativeTime: { |
| 11282 |
future: '%s múlva', |
| 11283 |
past: '%s', |
| 11284 |
s: translate$4, |
| 11285 |
ss: translate$4, |
| 11286 |
m: translate$4, |
| 11287 |
mm: translate$4, |
| 11288 |
h: translate$4, |
| 11289 |
hh: translate$4, |
| 11290 |
d: translate$4, |
| 11291 |
dd: translate$4, |
| 11292 |
M: translate$4, |
| 11293 |
MM: translate$4, |
| 11294 |
y: translate$4, |
| 11295 |
yy: translate$4, |
| 11296 |
}, |
| 11297 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 11298 |
ordinal: '%d.', |
| 11299 |
week: { |
| 11300 |
dow: 1, // Monday is the first day of the week. |
| 11301 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 11302 |
}, |
| 11303 |
}); |
| 11304 |
|
| 11305 |
//! moment.js locale configuration |
| 11306 |
|
| 11307 |
hooks.defineLocale('hy-am', { |
| 11308 |
months: { |
| 11309 |
format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split( |
| 11310 |
'_' |
| 11311 |
), |
| 11312 |
standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split( |
| 11313 |
'_' |
| 11314 |
), |
| 11315 |
}, |
| 11316 |
monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'), |
| 11317 |
weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split( |
| 11318 |
'_' |
| 11319 |
), |
| 11320 |
weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), |
| 11321 |
weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), |
| 11322 |
longDateFormat: { |
| 11323 |
LT: 'HH:mm', |
| 11324 |
LTS: 'HH:mm:ss', |
| 11325 |
L: 'DD.MM.YYYY', |
| 11326 |
LL: 'D MMMM YYYY թ.', |
| 11327 |
LLL: 'D MMMM YYYY թ., HH:mm', |
| 11328 |
LLLL: 'dddd, D MMMM YYYY թ., HH:mm', |
| 11329 |
}, |
| 11330 |
calendar: { |
| 11331 |
sameDay: '[այսօր] LT', |
| 11332 |
nextDay: '[վաղը] LT', |
| 11333 |
lastDay: '[երեկ] LT', |
| 11334 |
nextWeek: function () { |
| 11335 |
return 'dddd [օրը ժամը] LT'; |
| 11336 |
}, |
| 11337 |
lastWeek: function () { |
| 11338 |
return '[անցած] dddd [օրը ժամը] LT'; |
| 11339 |
}, |
| 11340 |
sameElse: 'L', |
| 11341 |
}, |
| 11342 |
relativeTime: { |
| 11343 |
future: '%s հետո', |
| 11344 |
past: '%s առաջ', |
| 11345 |
s: 'մի քանի վայրկյան', |
| 11346 |
ss: '%d վայրկյան', |
| 11347 |
m: 'րոպե', |
| 11348 |
mm: '%d րոպե', |
| 11349 |
h: 'ժամ', |
| 11350 |
hh: '%d ժամ', |
| 11351 |
d: 'օր', |
| 11352 |
dd: '%d օր', |
| 11353 |
M: 'ամիս', |
| 11354 |
MM: '%d ամիս', |
| 11355 |
y: 'տարի', |
| 11356 |
yy: '%d տարի', |
| 11357 |
}, |
| 11358 |
meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/, |
| 11359 |
isPM: function (input) { |
| 11360 |
return /^(ցերեկվա|երեկոյան)$/.test(input); |
| 11361 |
}, |
| 11362 |
meridiem: function (hour) { |
| 11363 |
if (hour < 4) { |
| 11364 |
return 'գիշերվա'; |
| 11365 |
} else if (hour < 12) { |
| 11366 |
return 'առավոտվա'; |
| 11367 |
} else if (hour < 17) { |
| 11368 |
return 'ցերեկվա'; |
| 11369 |
} else { |
| 11370 |
return 'երեկոյան'; |
| 11371 |
} |
| 11372 |
}, |
| 11373 |
dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/, |
| 11374 |
ordinal: function (number, period) { |
| 11375 |
switch (period) { |
| 11376 |
case 'DDD': |
| 11377 |
case 'w': |
| 11378 |
case 'W': |
| 11379 |
case 'DDDo': |
| 11380 |
if (number === 1) { |
| 11381 |
return number + '-ին'; |
| 11382 |
} |
| 11383 |
return number + '-րդ'; |
| 11384 |
default: |
| 11385 |
return number; |
| 11386 |
} |
| 11387 |
}, |
| 11388 |
week: { |
| 11389 |
dow: 1, // Monday is the first day of the week. |
| 11390 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 11391 |
}, |
| 11392 |
}); |
| 11393 |
|
| 11394 |
//! moment.js locale configuration |
| 11395 |
|
| 11396 |
hooks.defineLocale('id', { |
| 11397 |
months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split( |
| 11398 |
'_' |
| 11399 |
), |
| 11400 |
monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'), |
| 11401 |
weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), |
| 11402 |
weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), |
| 11403 |
weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), |
| 11404 |
longDateFormat: { |
| 11405 |
LT: 'HH.mm', |
| 11406 |
LTS: 'HH.mm.ss', |
| 11407 |
L: 'DD/MM/YYYY', |
| 11408 |
LL: 'D MMMM YYYY', |
| 11409 |
LLL: 'D MMMM YYYY [pukul] HH.mm', |
| 11410 |
LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', |
| 11411 |
}, |
| 11412 |
meridiemParse: /pagi|siang|sore|malam/, |
| 11413 |
meridiemHour: function (hour, meridiem) { |
| 11414 |
if (hour === 12) { |
| 11415 |
hour = 0; |
| 11416 |
} |
| 11417 |
if (meridiem === 'pagi') { |
| 11418 |
return hour; |
| 11419 |
} else if (meridiem === 'siang') { |
| 11420 |
return hour >= 11 ? hour : hour + 12; |
| 11421 |
} else if (meridiem === 'sore' || meridiem === 'malam') { |
| 11422 |
return hour + 12; |
| 11423 |
} |
| 11424 |
}, |
| 11425 |
meridiem: function (hours, minutes, isLower) { |
| 11426 |
if (hours < 11) { |
| 11427 |
return 'pagi'; |
| 11428 |
} else if (hours < 15) { |
| 11429 |
return 'siang'; |
| 11430 |
} else if (hours < 19) { |
| 11431 |
return 'sore'; |
| 11432 |
} else { |
| 11433 |
return 'malam'; |
| 11434 |
} |
| 11435 |
}, |
| 11436 |
calendar: { |
| 11437 |
sameDay: '[Hari ini pukul] LT', |
| 11438 |
nextDay: '[Besok pukul] LT', |
| 11439 |
nextWeek: 'dddd [pukul] LT', |
| 11440 |
lastDay: '[Kemarin pukul] LT', |
| 11441 |
lastWeek: 'dddd [lalu pukul] LT', |
| 11442 |
sameElse: 'L', |
| 11443 |
}, |
| 11444 |
relativeTime: { |
| 11445 |
future: 'dalam %s', |
| 11446 |
past: '%s yang lalu', |
| 11447 |
s: 'beberapa detik', |
| 11448 |
ss: '%d detik', |
| 11449 |
m: 'semenit', |
| 11450 |
mm: '%d menit', |
| 11451 |
h: 'sejam', |
| 11452 |
hh: '%d jam', |
| 11453 |
d: 'sehari', |
| 11454 |
dd: '%d hari', |
| 11455 |
M: 'sebulan', |
| 11456 |
MM: '%d bulan', |
| 11457 |
y: 'setahun', |
| 11458 |
yy: '%d tahun', |
| 11459 |
}, |
| 11460 |
week: { |
| 11461 |
dow: 0, // Sunday is the first day of the week. |
| 11462 |
doy: 6, // The week that contains Jan 6th is the first week of the year. |
| 11463 |
}, |
| 11464 |
}); |
| 11465 |
|
| 11466 |
//! moment.js locale configuration |
| 11467 |
|
| 11468 |
function plural$2(n) { |
| 11469 |
if (n % 100 === 11) { |
| 11470 |
return true; |
| 11471 |
} else if (n % 10 === 1) { |
| 11472 |
return false; |
| 11473 |
} |
| 11474 |
return true; |
| 11475 |
} |
| 11476 |
function translate$5(number, withoutSuffix, key, isFuture) { |
| 11477 |
var result = number + ' '; |
| 11478 |
switch (key) { |
| 11479 |
case 's': |
| 11480 |
return withoutSuffix || isFuture |
| 11481 |
? 'nokkrar sekúndur' |
| 11482 |
: 'nokkrum sekúndum'; |
| 11483 |
case 'ss': |
| 11484 |
if (plural$2(number)) { |
| 11485 |
return ( |
| 11486 |
result + |
| 11487 |
(withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum') |
| 11488 |
); |
| 11489 |
} |
| 11490 |
return result + 'sekúnda'; |
| 11491 |
case 'm': |
| 11492 |
return withoutSuffix ? 'mínúta' : 'mínútu'; |
| 11493 |
case 'mm': |
| 11494 |
if (plural$2(number)) { |
| 11495 |
return ( |
| 11496 |
result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum') |
| 11497 |
); |
| 11498 |
} else if (withoutSuffix) { |
| 11499 |
return result + 'mínúta'; |
| 11500 |
} |
| 11501 |
return result + 'mínútu'; |
| 11502 |
case 'hh': |
| 11503 |
if (plural$2(number)) { |
| 11504 |
return ( |
| 11505 |
result + |
| 11506 |
(withoutSuffix || isFuture |
| 11507 |
? 'klukkustundir' |
| 11508 |
: 'klukkustundum') |
| 11509 |
); |
| 11510 |
} |
| 11511 |
return result + 'klukkustund'; |
| 11512 |
case 'd': |
| 11513 |
if (withoutSuffix) { |
| 11514 |
return 'dagur'; |
| 11515 |
} |
| 11516 |
return isFuture ? 'dag' : 'degi'; |
| 11517 |
case 'dd': |
| 11518 |
if (plural$2(number)) { |
| 11519 |
if (withoutSuffix) { |
| 11520 |
return result + 'dagar'; |
| 11521 |
} |
| 11522 |
return result + (isFuture ? 'daga' : 'dögum'); |
| 11523 |
} else if (withoutSuffix) { |
| 11524 |
return result + 'dagur'; |
| 11525 |
} |
| 11526 |
return result + (isFuture ? 'dag' : 'degi'); |
| 11527 |
case 'M': |
| 11528 |
if (withoutSuffix) { |
| 11529 |
return 'mánuður'; |
| 11530 |
} |
| 11531 |
return isFuture ? 'mánuð' : 'mánuði'; |
| 11532 |
case 'MM': |
| 11533 |
if (plural$2(number)) { |
| 11534 |
if (withoutSuffix) { |
| 11535 |
return result + 'mánuðir'; |
| 11536 |
} |
| 11537 |
return result + (isFuture ? 'mánuði' : 'mánuðum'); |
| 11538 |
} else if (withoutSuffix) { |
| 11539 |
return result + 'mánuður'; |
| 11540 |
} |
| 11541 |
return result + (isFuture ? 'mánuð' : 'mánuði'); |
| 11542 |
case 'y': |
| 11543 |
return withoutSuffix || isFuture ? 'ár' : 'ári'; |
| 11544 |
case 'yy': |
| 11545 |
if (plural$2(number)) { |
| 11546 |
return result + (withoutSuffix || isFuture ? 'ár' : 'árum'); |
| 11547 |
} |
| 11548 |
return result + (withoutSuffix || isFuture ? 'ár' : 'ári'); |
| 11549 |
} |
| 11550 |
} |
| 11551 |
|
| 11552 |
hooks.defineLocale('is', { |
| 11553 |
months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split( |
| 11554 |
'_' |
| 11555 |
), |
| 11556 |
monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'), |
| 11557 |
weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split( |
| 11558 |
'_' |
| 11559 |
), |
| 11560 |
weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'), |
| 11561 |
weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'), |
| 11562 |
longDateFormat: { |
| 11563 |
LT: 'H:mm', |
| 11564 |
LTS: 'H:mm:ss', |
| 11565 |
L: 'DD.MM.YYYY', |
| 11566 |
LL: 'D. MMMM YYYY', |
| 11567 |
LLL: 'D. MMMM YYYY [kl.] H:mm', |
| 11568 |
LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm', |
| 11569 |
}, |
| 11570 |
calendar: { |
| 11571 |
sameDay: '[í dag kl.] LT', |
| 11572 |
nextDay: '[á morgun kl.] LT', |
| 11573 |
nextWeek: 'dddd [kl.] LT', |
| 11574 |
lastDay: '[í gær kl.] LT', |
| 11575 |
lastWeek: '[síðasta] dddd [kl.] LT', |
| 11576 |
sameElse: 'L', |
| 11577 |
}, |
| 11578 |
relativeTime: { |
| 11579 |
future: 'eftir %s', |
| 11580 |
past: 'fyrir %s síðan', |
| 11581 |
s: translate$5, |
| 11582 |
ss: translate$5, |
| 11583 |
m: translate$5, |
| 11584 |
mm: translate$5, |
| 11585 |
h: 'klukkustund', |
| 11586 |
hh: translate$5, |
| 11587 |
d: translate$5, |
| 11588 |
dd: translate$5, |
| 11589 |
M: translate$5, |
| 11590 |
MM: translate$5, |
| 11591 |
y: translate$5, |
| 11592 |
yy: translate$5, |
| 11593 |
}, |
| 11594 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 11595 |
ordinal: '%d.', |
| 11596 |
week: { |
| 11597 |
dow: 1, // Monday is the first day of the week. |
| 11598 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 11599 |
}, |
| 11600 |
}); |
| 11601 |
|
| 11602 |
//! moment.js locale configuration |
| 11603 |
|
| 11604 |
hooks.defineLocale('it-ch', { |
| 11605 |
months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( |
| 11606 |
'_' |
| 11607 |
), |
| 11608 |
monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), |
| 11609 |
weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split( |
| 11610 |
'_' |
| 11611 |
), |
| 11612 |
weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), |
| 11613 |
weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), |
| 11614 |
longDateFormat: { |
| 11615 |
LT: 'HH:mm', |
| 11616 |
LTS: 'HH:mm:ss', |
| 11617 |
L: 'DD.MM.YYYY', |
| 11618 |
LL: 'D MMMM YYYY', |
| 11619 |
LLL: 'D MMMM YYYY HH:mm', |
| 11620 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 11621 |
}, |
| 11622 |
calendar: { |
| 11623 |
sameDay: '[Oggi alle] LT', |
| 11624 |
nextDay: '[Domani alle] LT', |
| 11625 |
nextWeek: 'dddd [alle] LT', |
| 11626 |
lastDay: '[Ieri alle] LT', |
| 11627 |
lastWeek: function () { |
| 11628 |
switch (this.day()) { |
| 11629 |
case 0: |
| 11630 |
return '[la scorsa] dddd [alle] LT'; |
| 11631 |
default: |
| 11632 |
return '[lo scorso] dddd [alle] LT'; |
| 11633 |
} |
| 11634 |
}, |
| 11635 |
sameElse: 'L', |
| 11636 |
}, |
| 11637 |
relativeTime: { |
| 11638 |
future: function (s) { |
| 11639 |
return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s; |
| 11640 |
}, |
| 11641 |
past: '%s fa', |
| 11642 |
s: 'alcuni secondi', |
| 11643 |
ss: '%d secondi', |
| 11644 |
m: 'un minuto', |
| 11645 |
mm: '%d minuti', |
| 11646 |
h: "un'ora", |
| 11647 |
hh: '%d ore', |
| 11648 |
d: 'un giorno', |
| 11649 |
dd: '%d giorni', |
| 11650 |
M: 'un mese', |
| 11651 |
MM: '%d mesi', |
| 11652 |
y: 'un anno', |
| 11653 |
yy: '%d anni', |
| 11654 |
}, |
| 11655 |
dayOfMonthOrdinalParse: /\d{1,2}º/, |
| 11656 |
ordinal: '%dº', |
| 11657 |
week: { |
| 11658 |
dow: 1, // Monday is the first day of the week. |
| 11659 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 11660 |
}, |
| 11661 |
}); |
| 11662 |
|
| 11663 |
//! moment.js locale configuration |
| 11664 |
|
| 11665 |
hooks.defineLocale('it', { |
| 11666 |
months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( |
| 11667 |
'_' |
| 11668 |
), |
| 11669 |
monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), |
| 11670 |
weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split( |
| 11671 |
'_' |
| 11672 |
), |
| 11673 |
weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), |
| 11674 |
weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), |
| 11675 |
longDateFormat: { |
| 11676 |
LT: 'HH:mm', |
| 11677 |
LTS: 'HH:mm:ss', |
| 11678 |
L: 'DD/MM/YYYY', |
| 11679 |
LL: 'D MMMM YYYY', |
| 11680 |
LLL: 'D MMMM YYYY HH:mm', |
| 11681 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 11682 |
}, |
| 11683 |
calendar: { |
| 11684 |
sameDay: function () { |
| 11685 |
return ( |
| 11686 |
'[Oggi a' + |
| 11687 |
(this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + |
| 11688 |
']LT' |
| 11689 |
); |
| 11690 |
}, |
| 11691 |
nextDay: function () { |
| 11692 |
return ( |
| 11693 |
'[Domani a' + |
| 11694 |
(this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + |
| 11695 |
']LT' |
| 11696 |
); |
| 11697 |
}, |
| 11698 |
nextWeek: function () { |
| 11699 |
return ( |
| 11700 |
'dddd [a' + |
| 11701 |
(this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + |
| 11702 |
']LT' |
| 11703 |
); |
| 11704 |
}, |
| 11705 |
lastDay: function () { |
| 11706 |
return ( |
| 11707 |
'[Ieri a' + |
| 11708 |
(this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + |
| 11709 |
']LT' |
| 11710 |
); |
| 11711 |
}, |
| 11712 |
lastWeek: function () { |
| 11713 |
switch (this.day()) { |
| 11714 |
case 0: |
| 11715 |
return ( |
| 11716 |
'[La scorsa] dddd [a' + |
| 11717 |
(this.hours() > 1 |
| 11718 |
? 'lle ' |
| 11719 |
: this.hours() === 0 |
| 11720 |
? ' ' |
| 11721 |
: "ll'") + |
| 11722 |
']LT' |
| 11723 |
); |
| 11724 |
default: |
| 11725 |
return ( |
| 11726 |
'[Lo scorso] dddd [a' + |
| 11727 |
(this.hours() > 1 |
| 11728 |
? 'lle ' |
| 11729 |
: this.hours() === 0 |
| 11730 |
? ' ' |
| 11731 |
: "ll'") + |
| 11732 |
']LT' |
| 11733 |
); |
| 11734 |
} |
| 11735 |
}, |
| 11736 |
sameElse: 'L', |
| 11737 |
}, |
| 11738 |
relativeTime: { |
| 11739 |
future: 'tra %s', |
| 11740 |
past: '%s fa', |
| 11741 |
s: 'alcuni secondi', |
| 11742 |
ss: '%d secondi', |
| 11743 |
m: 'un minuto', |
| 11744 |
mm: '%d minuti', |
| 11745 |
h: "un'ora", |
| 11746 |
hh: '%d ore', |
| 11747 |
d: 'un giorno', |
| 11748 |
dd: '%d giorni', |
| 11749 |
w: 'una settimana', |
| 11750 |
ww: '%d settimane', |
| 11751 |
M: 'un mese', |
| 11752 |
MM: '%d mesi', |
| 11753 |
y: 'un anno', |
| 11754 |
yy: '%d anni', |
| 11755 |
}, |
| 11756 |
dayOfMonthOrdinalParse: /\d{1,2}º/, |
| 11757 |
ordinal: '%dº', |
| 11758 |
week: { |
| 11759 |
dow: 1, // Monday is the first day of the week. |
| 11760 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 11761 |
}, |
| 11762 |
}); |
| 11763 |
|
| 11764 |
//! moment.js locale configuration |
| 11765 |
|
| 11766 |
hooks.defineLocale('ja', { |
| 11767 |
eras: [ |
| 11768 |
{ |
| 11769 |
since: '2019-05-01', |
| 11770 |
offset: 1, |
| 11771 |
name: '令和', |
| 11772 |
narrow: '㋿', |
| 11773 |
abbr: 'R', |
| 11774 |
}, |
| 11775 |
{ |
| 11776 |
since: '1989-01-08', |
| 11777 |
until: '2019-04-30', |
| 11778 |
offset: 1, |
| 11779 |
name: '平成', |
| 11780 |
narrow: '㍻', |
| 11781 |
abbr: 'H', |
| 11782 |
}, |
| 11783 |
{ |
| 11784 |
since: '1926-12-25', |
| 11785 |
until: '1989-01-07', |
| 11786 |
offset: 1, |
| 11787 |
name: '昭和', |
| 11788 |
narrow: '㍼', |
| 11789 |
abbr: 'S', |
| 11790 |
}, |
| 11791 |
{ |
| 11792 |
since: '1912-07-30', |
| 11793 |
until: '1926-12-24', |
| 11794 |
offset: 1, |
| 11795 |
name: '大正', |
| 11796 |
narrow: '㍽', |
| 11797 |
abbr: 'T', |
| 11798 |
}, |
| 11799 |
{ |
| 11800 |
since: '1873-01-01', |
| 11801 |
until: '1912-07-29', |
| 11802 |
offset: 6, |
| 11803 |
name: '明治', |
| 11804 |
narrow: '㍾', |
| 11805 |
abbr: 'M', |
| 11806 |
}, |
| 11807 |
{ |
| 11808 |
since: '0001-01-01', |
| 11809 |
until: '1873-12-31', |
| 11810 |
offset: 1, |
| 11811 |
name: '西暦', |
| 11812 |
narrow: 'AD', |
| 11813 |
abbr: 'AD', |
| 11814 |
}, |
| 11815 |
{ |
| 11816 |
since: '0000-12-31', |
| 11817 |
until: -Infinity, |
| 11818 |
offset: 1, |
| 11819 |
name: '紀元前', |
| 11820 |
narrow: 'BC', |
| 11821 |
abbr: 'BC', |
| 11822 |
}, |
| 11823 |
], |
| 11824 |
eraYearOrdinalRegex: /(元|\d+)年/, |
| 11825 |
eraYearOrdinalParse: function (input, match) { |
| 11826 |
return match[1] === '元' ? 1 : parseInt(match[1] || input, 10); |
| 11827 |
}, |
| 11828 |
months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), |
| 11829 |
monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( |
| 11830 |
'_' |
| 11831 |
), |
| 11832 |
weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'), |
| 11833 |
weekdaysShort: '日_月_火_水_木_金_土'.split('_'), |
| 11834 |
weekdaysMin: '日_月_火_水_木_金_土'.split('_'), |
| 11835 |
longDateFormat: { |
| 11836 |
LT: 'HH:mm', |
| 11837 |
LTS: 'HH:mm:ss', |
| 11838 |
L: 'YYYY/MM/DD', |
| 11839 |
LL: 'YYYY年M月D日', |
| 11840 |
LLL: 'YYYY年M月D日 HH:mm', |
| 11841 |
LLLL: 'YYYY年M月D日 dddd HH:mm', |
| 11842 |
l: 'YYYY/MM/DD', |
| 11843 |
ll: 'YYYY年M月D日', |
| 11844 |
lll: 'YYYY年M月D日 HH:mm', |
| 11845 |
llll: 'YYYY年M月D日(ddd) HH:mm', |
| 11846 |
}, |
| 11847 |
meridiemParse: /午前|午後/i, |
| 11848 |
isPM: function (input) { |
| 11849 |
return input === '午後'; |
| 11850 |
}, |
| 11851 |
meridiem: function (hour, minute, isLower) { |
| 11852 |
if (hour < 12) { |
| 11853 |
return '午前'; |
| 11854 |
} else { |
| 11855 |
return '午後'; |
| 11856 |
} |
| 11857 |
}, |
| 11858 |
calendar: { |
| 11859 |
sameDay: '[今日] LT', |
| 11860 |
nextDay: '[明日] LT', |
| 11861 |
nextWeek: function (now) { |
| 11862 |
if (now.week() !== this.week()) { |
| 11863 |
return '[来週]dddd LT'; |
| 11864 |
} else { |
| 11865 |
return 'dddd LT'; |
| 11866 |
} |
| 11867 |
}, |
| 11868 |
lastDay: '[昨日] LT', |
| 11869 |
lastWeek: function (now) { |
| 11870 |
if (this.week() !== now.week()) { |
| 11871 |
return '[先週]dddd LT'; |
| 11872 |
} else { |
| 11873 |
return 'dddd LT'; |
| 11874 |
} |
| 11875 |
}, |
| 11876 |
sameElse: 'L', |
| 11877 |
}, |
| 11878 |
dayOfMonthOrdinalParse: /\d{1,2}日/, |
| 11879 |
ordinal: function (number, period) { |
| 11880 |
switch (period) { |
| 11881 |
case 'y': |
| 11882 |
return number === 1 ? '元年' : number + '年'; |
| 11883 |
case 'd': |
| 11884 |
case 'D': |
| 11885 |
case 'DDD': |
| 11886 |
return number + '日'; |
| 11887 |
default: |
| 11888 |
return number; |
| 11889 |
} |
| 11890 |
}, |
| 11891 |
relativeTime: { |
| 11892 |
future: '%s後', |
| 11893 |
past: '%s前', |
| 11894 |
s: '数秒', |
| 11895 |
ss: '%d秒', |
| 11896 |
m: '1分', |
| 11897 |
mm: '%d分', |
| 11898 |
h: '1時間', |
| 11899 |
hh: '%d時間', |
| 11900 |
d: '1日', |
| 11901 |
dd: '%d日', |
| 11902 |
M: '1ヶ月', |
| 11903 |
MM: '%dヶ月', |
| 11904 |
y: '1年', |
| 11905 |
yy: '%d年', |
| 11906 |
}, |
| 11907 |
}); |
| 11908 |
|
| 11909 |
//! moment.js locale configuration |
| 11910 |
|
| 11911 |
hooks.defineLocale('jv', { |
| 11912 |
months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split( |
| 11913 |
'_' |
| 11914 |
), |
| 11915 |
monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'), |
| 11916 |
weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'), |
| 11917 |
weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'), |
| 11918 |
weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'), |
| 11919 |
longDateFormat: { |
| 11920 |
LT: 'HH.mm', |
| 11921 |
LTS: 'HH.mm.ss', |
| 11922 |
L: 'DD/MM/YYYY', |
| 11923 |
LL: 'D MMMM YYYY', |
| 11924 |
LLL: 'D MMMM YYYY [pukul] HH.mm', |
| 11925 |
LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', |
| 11926 |
}, |
| 11927 |
meridiemParse: /enjing|siyang|sonten|ndalu/, |
| 11928 |
meridiemHour: function (hour, meridiem) { |
| 11929 |
if (hour === 12) { |
| 11930 |
hour = 0; |
| 11931 |
} |
| 11932 |
if (meridiem === 'enjing') { |
| 11933 |
return hour; |
| 11934 |
} else if (meridiem === 'siyang') { |
| 11935 |
return hour >= 11 ? hour : hour + 12; |
| 11936 |
} else if (meridiem === 'sonten' || meridiem === 'ndalu') { |
| 11937 |
return hour + 12; |
| 11938 |
} |
| 11939 |
}, |
| 11940 |
meridiem: function (hours, minutes, isLower) { |
| 11941 |
if (hours < 11) { |
| 11942 |
return 'enjing'; |
| 11943 |
} else if (hours < 15) { |
| 11944 |
return 'siyang'; |
| 11945 |
} else if (hours < 19) { |
| 11946 |
return 'sonten'; |
| 11947 |
} else { |
| 11948 |
return 'ndalu'; |
| 11949 |
} |
| 11950 |
}, |
| 11951 |
calendar: { |
| 11952 |
sameDay: '[Dinten puniko pukul] LT', |
| 11953 |
nextDay: '[Mbenjang pukul] LT', |
| 11954 |
nextWeek: 'dddd [pukul] LT', |
| 11955 |
lastDay: '[Kala wingi pukul] LT', |
| 11956 |
lastWeek: 'dddd [kepengker pukul] LT', |
| 11957 |
sameElse: 'L', |
| 11958 |
}, |
| 11959 |
relativeTime: { |
| 11960 |
future: 'wonten ing %s', |
| 11961 |
past: '%s ingkang kepengker', |
| 11962 |
s: 'sawetawis detik', |
| 11963 |
ss: '%d detik', |
| 11964 |
m: 'setunggal menit', |
| 11965 |
mm: '%d menit', |
| 11966 |
h: 'setunggal jam', |
| 11967 |
hh: '%d jam', |
| 11968 |
d: 'sedinten', |
| 11969 |
dd: '%d dinten', |
| 11970 |
M: 'sewulan', |
| 11971 |
MM: '%d wulan', |
| 11972 |
y: 'setaun', |
| 11973 |
yy: '%d taun', |
| 11974 |
}, |
| 11975 |
week: { |
| 11976 |
dow: 1, // Monday is the first day of the week. |
| 11977 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 11978 |
}, |
| 11979 |
}); |
| 11980 |
|
| 11981 |
//! moment.js locale configuration |
| 11982 |
|
| 11983 |
hooks.defineLocale('ka', { |
| 11984 |
months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split( |
| 11985 |
'_' |
| 11986 |
), |
| 11987 |
monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'), |
| 11988 |
weekdays: { |
| 11989 |
standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split( |
| 11990 |
'_' |
| 11991 |
), |
| 11992 |
format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split( |
| 11993 |
'_' |
| 11994 |
), |
| 11995 |
isFormat: /(წინა|შემდეგ)/, |
| 11996 |
}, |
| 11997 |
weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'), |
| 11998 |
weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'), |
| 11999 |
longDateFormat: { |
| 12000 |
LT: 'HH:mm', |
| 12001 |
LTS: 'HH:mm:ss', |
| 12002 |
L: 'DD/MM/YYYY', |
| 12003 |
LL: 'D MMMM YYYY', |
| 12004 |
LLL: 'D MMMM YYYY HH:mm', |
| 12005 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 12006 |
}, |
| 12007 |
calendar: { |
| 12008 |
sameDay: '[დღეს] LT[-ზე]', |
| 12009 |
nextDay: '[ხვალ] LT[-ზე]', |
| 12010 |
lastDay: '[გუშინ] LT[-ზე]', |
| 12011 |
nextWeek: '[შემდეგ] dddd LT[-ზე]', |
| 12012 |
lastWeek: '[წინა] dddd LT-ზე', |
| 12013 |
sameElse: 'L', |
| 12014 |
}, |
| 12015 |
relativeTime: { |
| 12016 |
future: function (s) { |
| 12017 |
return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function ( |
| 12018 |
$0, |
| 12019 |
$1, |
| 12020 |
$2 |
| 12021 |
) { |
| 12022 |
return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში'; |
| 12023 |
}); |
| 12024 |
}, |
| 12025 |
past: function (s) { |
| 12026 |
if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) { |
| 12027 |
return s.replace(/(ი|ე)$/, 'ის წინ'); |
| 12028 |
} |
| 12029 |
if (/წელი/.test(s)) { |
| 12030 |
return s.replace(/წელი$/, 'წლის წინ'); |
| 12031 |
} |
| 12032 |
return s; |
| 12033 |
}, |
| 12034 |
s: 'რამდენიმე წამი', |
| 12035 |
ss: '%d წამი', |
| 12036 |
m: 'წუთი', |
| 12037 |
mm: '%d წუთი', |
| 12038 |
h: 'საათი', |
| 12039 |
hh: '%d საათი', |
| 12040 |
d: 'დღე', |
| 12041 |
dd: '%d დღე', |
| 12042 |
M: 'თვე', |
| 12043 |
MM: '%d თვე', |
| 12044 |
y: 'წელი', |
| 12045 |
yy: '%d წელი', |
| 12046 |
}, |
| 12047 |
dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/, |
| 12048 |
ordinal: function (number) { |
| 12049 |
if (number === 0) { |
| 12050 |
return number; |
| 12051 |
} |
| 12052 |
if (number === 1) { |
| 12053 |
return number + '-ლი'; |
| 12054 |
} |
| 12055 |
if ( |
| 12056 |
number < 20 || |
| 12057 |
(number <= 100 && number % 20 === 0) || |
| 12058 |
number % 100 === 0 |
| 12059 |
) { |
| 12060 |
return 'მე-' + number; |
| 12061 |
} |
| 12062 |
return number + '-ე'; |
| 12063 |
}, |
| 12064 |
week: { |
| 12065 |
dow: 1, |
| 12066 |
doy: 7, |
| 12067 |
}, |
| 12068 |
}); |
| 12069 |
|
| 12070 |
//! moment.js locale configuration |
| 12071 |
|
| 12072 |
var suffixes$1 = { |
| 12073 |
0: '-ші', |
| 12074 |
1: '-ші', |
| 12075 |
2: '-ші', |
| 12076 |
3: '-ші', |
| 12077 |
4: '-ші', |
| 12078 |
5: '-ші', |
| 12079 |
6: '-шы', |
| 12080 |
7: '-ші', |
| 12081 |
8: '-ші', |
| 12082 |
9: '-шы', |
| 12083 |
10: '-шы', |
| 12084 |
20: '-шы', |
| 12085 |
30: '-шы', |
| 12086 |
40: '-шы', |
| 12087 |
50: '-ші', |
| 12088 |
60: '-шы', |
| 12089 |
70: '-ші', |
| 12090 |
80: '-ші', |
| 12091 |
90: '-шы', |
| 12092 |
100: '-ші', |
| 12093 |
}; |
| 12094 |
|
| 12095 |
hooks.defineLocale('kk', { |
| 12096 |
months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split( |
| 12097 |
'_' |
| 12098 |
), |
| 12099 |
monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'), |
| 12100 |
weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split( |
| 12101 |
'_' |
| 12102 |
), |
| 12103 |
weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'), |
| 12104 |
weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'), |
| 12105 |
longDateFormat: { |
| 12106 |
LT: 'HH:mm', |
| 12107 |
LTS: 'HH:mm:ss', |
| 12108 |
L: 'DD.MM.YYYY', |
| 12109 |
LL: 'D MMMM YYYY', |
| 12110 |
LLL: 'D MMMM YYYY HH:mm', |
| 12111 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 12112 |
}, |
| 12113 |
calendar: { |
| 12114 |
sameDay: '[Бүгін сағат] LT', |
| 12115 |
nextDay: '[Ертең сағат] LT', |
| 12116 |
nextWeek: 'dddd [сағат] LT', |
| 12117 |
lastDay: '[Кеше сағат] LT', |
| 12118 |
lastWeek: '[Өткен аптаның] dddd [сағат] LT', |
| 12119 |
sameElse: 'L', |
| 12120 |
}, |
| 12121 |
relativeTime: { |
| 12122 |
future: '%s ішінде', |
| 12123 |
past: '%s бұрын', |
| 12124 |
s: 'бірнеше секунд', |
| 12125 |
ss: '%d секунд', |
| 12126 |
m: 'бір минут', |
| 12127 |
mm: '%d минут', |
| 12128 |
h: 'бір сағат', |
| 12129 |
hh: '%d сағат', |
| 12130 |
d: 'бір күн', |
| 12131 |
dd: '%d күн', |
| 12132 |
M: 'бір ай', |
| 12133 |
MM: '%d ай', |
| 12134 |
y: 'бір жыл', |
| 12135 |
yy: '%d жыл', |
| 12136 |
}, |
| 12137 |
dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/, |
| 12138 |
ordinal: function (number) { |
| 12139 |
var a = number % 10, |
| 12140 |
b = number >= 100 ? 100 : null; |
| 12141 |
return number + (suffixes$1[number] || suffixes$1[a] || suffixes$1[b]); |
| 12142 |
}, |
| 12143 |
week: { |
| 12144 |
dow: 1, // Monday is the first day of the week. |
| 12145 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 12146 |
}, |
| 12147 |
}); |
| 12148 |
|
| 12149 |
//! moment.js locale configuration |
| 12150 |
|
| 12151 |
var symbolMap$9 = { |
| 12152 |
1: '១', |
| 12153 |
2: '២', |
| 12154 |
3: '៣', |
| 12155 |
4: '៤', |
| 12156 |
5: '៥', |
| 12157 |
6: '៦', |
| 12158 |
7: '៧', |
| 12159 |
8: '៨', |
| 12160 |
9: '៩', |
| 12161 |
0: '០', |
| 12162 |
}, |
| 12163 |
numberMap$8 = { |
| 12164 |
'១': '1', |
| 12165 |
'២': '2', |
| 12166 |
'៣': '3', |
| 12167 |
'៤': '4', |
| 12168 |
'៥': '5', |
| 12169 |
'៦': '6', |
| 12170 |
'៧': '7', |
| 12171 |
'៨': '8', |
| 12172 |
'៩': '9', |
| 12173 |
'០': '0', |
| 12174 |
}; |
| 12175 |
|
| 12176 |
hooks.defineLocale('km', { |
| 12177 |
months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( |
| 12178 |
'_' |
| 12179 |
), |
| 12180 |
monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( |
| 12181 |
'_' |
| 12182 |
), |
| 12183 |
weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), |
| 12184 |
weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), |
| 12185 |
weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), |
| 12186 |
weekdaysParseExact: true, |
| 12187 |
longDateFormat: { |
| 12188 |
LT: 'HH:mm', |
| 12189 |
LTS: 'HH:mm:ss', |
| 12190 |
L: 'DD/MM/YYYY', |
| 12191 |
LL: 'D MMMM YYYY', |
| 12192 |
LLL: 'D MMMM YYYY HH:mm', |
| 12193 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 12194 |
}, |
| 12195 |
meridiemParse: /ព្រឹក|ល្ងាច/, |
| 12196 |
isPM: function (input) { |
| 12197 |
return input === 'ល្ងាច'; |
| 12198 |
}, |
| 12199 |
meridiem: function (hour, minute, isLower) { |
| 12200 |
if (hour < 12) { |
| 12201 |
return 'ព្រឹក'; |
| 12202 |
} else { |
| 12203 |
return 'ល្ងាច'; |
| 12204 |
} |
| 12205 |
}, |
| 12206 |
calendar: { |
| 12207 |
sameDay: '[ថ្ងៃនេះ ម៉ោង] LT', |
| 12208 |
nextDay: '[ស្អែក ម៉ោង] LT', |
| 12209 |
nextWeek: 'dddd [ម៉ោង] LT', |
| 12210 |
lastDay: '[ម្សិលមិញ ម៉ោង] LT', |
| 12211 |
lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT', |
| 12212 |
sameElse: 'L', |
| 12213 |
}, |
| 12214 |
relativeTime: { |
| 12215 |
future: '%sទៀត', |
| 12216 |
past: '%sមុន', |
| 12217 |
s: 'ប៉ុន្មានវិនាទី', |
| 12218 |
ss: '%d វិនាទី', |
| 12219 |
m: 'មួយនាទី', |
| 12220 |
mm: '%d នាទី', |
| 12221 |
h: 'មួយម៉ោង', |
| 12222 |
hh: '%d ម៉ោង', |
| 12223 |
d: 'មួយថ្ងៃ', |
| 12224 |
dd: '%d ថ្ងៃ', |
| 12225 |
M: 'មួយខែ', |
| 12226 |
MM: '%d ខែ', |
| 12227 |
y: 'មួយឆ្នាំ', |
| 12228 |
yy: '%d ឆ្នាំ', |
| 12229 |
}, |
| 12230 |
dayOfMonthOrdinalParse: /ទី\d{1,2}/, |
| 12231 |
ordinal: 'ទី%d', |
| 12232 |
preparse: function (string) { |
| 12233 |
return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) { |
| 12234 |
return numberMap$8[match]; |
| 12235 |
}); |
| 12236 |
}, |
| 12237 |
postformat: function (string) { |
| 12238 |
return string.replace(/\d/g, function (match) { |
| 12239 |
return symbolMap$9[match]; |
| 12240 |
}); |
| 12241 |
}, |
| 12242 |
week: { |
| 12243 |
dow: 1, // Monday is the first day of the week. |
| 12244 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 12245 |
}, |
| 12246 |
}); |
| 12247 |
|
| 12248 |
//! moment.js locale configuration |
| 12249 |
|
| 12250 |
var symbolMap$a = { |
| 12251 |
1: '೧', |
| 12252 |
2: '೨', |
| 12253 |
3: '೩', |
| 12254 |
4: '೪', |
| 12255 |
5: '೫', |
| 12256 |
6: '೬', |
| 12257 |
7: '೭', |
| 12258 |
8: '೮', |
| 12259 |
9: '೯', |
| 12260 |
0: '೦', |
| 12261 |
}, |
| 12262 |
numberMap$9 = { |
| 12263 |
'೧': '1', |
| 12264 |
'೨': '2', |
| 12265 |
'೩': '3', |
| 12266 |
'೪': '4', |
| 12267 |
'೫': '5', |
| 12268 |
'೬': '6', |
| 12269 |
'೭': '7', |
| 12270 |
'೮': '8', |
| 12271 |
'೯': '9', |
| 12272 |
'೦': '0', |
| 12273 |
}; |
| 12274 |
|
| 12275 |
hooks.defineLocale('kn', { |
| 12276 |
months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split( |
| 12277 |
'_' |
| 12278 |
), |
| 12279 |
monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split( |
| 12280 |
'_' |
| 12281 |
), |
| 12282 |
monthsParseExact: true, |
| 12283 |
weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split( |
| 12284 |
'_' |
| 12285 |
), |
| 12286 |
weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'), |
| 12287 |
weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'), |
| 12288 |
longDateFormat: { |
| 12289 |
LT: 'A h:mm', |
| 12290 |
LTS: 'A h:mm:ss', |
| 12291 |
L: 'DD/MM/YYYY', |
| 12292 |
LL: 'D MMMM YYYY', |
| 12293 |
LLL: 'D MMMM YYYY, A h:mm', |
| 12294 |
LLLL: 'dddd, D MMMM YYYY, A h:mm', |
| 12295 |
}, |
| 12296 |
calendar: { |
| 12297 |
sameDay: '[ಇಂದು] LT', |
| 12298 |
nextDay: '[ನಾಳೆ] LT', |
| 12299 |
nextWeek: 'dddd, LT', |
| 12300 |
lastDay: '[ನಿನ್ನೆ] LT', |
| 12301 |
lastWeek: '[ಕೊನೆಯ] dddd, LT', |
| 12302 |
sameElse: 'L', |
| 12303 |
}, |
| 12304 |
relativeTime: { |
| 12305 |
future: '%s ನಂತರ', |
| 12306 |
past: '%s ಹಿಂದೆ', |
| 12307 |
s: 'ಕೆಲವು ಕ್ಷಣಗಳು', |
| 12308 |
ss: '%d ಸೆಕೆಂಡುಗಳು', |
| 12309 |
m: 'ಒಂದು ನಿಮಿಷ', |
| 12310 |
mm: '%d ನಿಮಿಷ', |
| 12311 |
h: 'ಒಂದು ಗಂಟೆ', |
| 12312 |
hh: '%d ಗಂಟೆ', |
| 12313 |
d: 'ಒಂದು ದಿನ', |
| 12314 |
dd: '%d ದಿನ', |
| 12315 |
M: 'ಒಂದು ತಿಂಗಳು', |
| 12316 |
MM: '%d ತಿಂಗಳು', |
| 12317 |
y: 'ಒಂದು ವರ್ಷ', |
| 12318 |
yy: '%d ವರ್ಷ', |
| 12319 |
}, |
| 12320 |
preparse: function (string) { |
| 12321 |
return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) { |
| 12322 |
return numberMap$9[match]; |
| 12323 |
}); |
| 12324 |
}, |
| 12325 |
postformat: function (string) { |
| 12326 |
return string.replace(/\d/g, function (match) { |
| 12327 |
return symbolMap$a[match]; |
| 12328 |
}); |
| 12329 |
}, |
| 12330 |
meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/, |
| 12331 |
meridiemHour: function (hour, meridiem) { |
| 12332 |
if (hour === 12) { |
| 12333 |
hour = 0; |
| 12334 |
} |
| 12335 |
if (meridiem === 'ರಾತ್ರಿ') { |
| 12336 |
return hour < 4 ? hour : hour + 12; |
| 12337 |
} else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') { |
| 12338 |
return hour; |
| 12339 |
} else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') { |
| 12340 |
return hour >= 10 ? hour : hour + 12; |
| 12341 |
} else if (meridiem === 'ಸಂಜೆ') { |
| 12342 |
return hour + 12; |
| 12343 |
} |
| 12344 |
}, |
| 12345 |
meridiem: function (hour, minute, isLower) { |
| 12346 |
if (hour < 4) { |
| 12347 |
return 'ರಾತ್ರಿ'; |
| 12348 |
} else if (hour < 10) { |
| 12349 |
return 'ಬೆಳಿಗ್ಗೆ'; |
| 12350 |
} else if (hour < 17) { |
| 12351 |
return 'ಮಧ್ಯಾಹ್ನ'; |
| 12352 |
} else if (hour < 20) { |
| 12353 |
return 'ಸಂಜೆ'; |
| 12354 |
} else { |
| 12355 |
return 'ರಾತ್ರಿ'; |
| 12356 |
} |
| 12357 |
}, |
| 12358 |
dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/, |
| 12359 |
ordinal: function (number) { |
| 12360 |
return number + 'ನೇ'; |
| 12361 |
}, |
| 12362 |
week: { |
| 12363 |
dow: 0, // Sunday is the first day of the week. |
| 12364 |
doy: 6, // The week that contains Jan 6th is the first week of the year. |
| 12365 |
}, |
| 12366 |
}); |
| 12367 |
|
| 12368 |
//! moment.js locale configuration |
| 12369 |
|
| 12370 |
hooks.defineLocale('ko', { |
| 12371 |
months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), |
| 12372 |
monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split( |
| 12373 |
'_' |
| 12374 |
), |
| 12375 |
weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'), |
| 12376 |
weekdaysShort: '일_월_화_수_목_금_토'.split('_'), |
| 12377 |
weekdaysMin: '일_월_화_수_목_금_토'.split('_'), |
| 12378 |
longDateFormat: { |
| 12379 |
LT: 'A h:mm', |
| 12380 |
LTS: 'A h:mm:ss', |
| 12381 |
L: 'YYYY.MM.DD.', |
| 12382 |
LL: 'YYYY년 MMMM D일', |
| 12383 |
LLL: 'YYYY년 MMMM D일 A h:mm', |
| 12384 |
LLLL: 'YYYY년 MMMM D일 dddd A h:mm', |
| 12385 |
l: 'YYYY.MM.DD.', |
| 12386 |
ll: 'YYYY년 MMMM D일', |
| 12387 |
lll: 'YYYY년 MMMM D일 A h:mm', |
| 12388 |
llll: 'YYYY년 MMMM D일 dddd A h:mm', |
| 12389 |
}, |
| 12390 |
calendar: { |
| 12391 |
sameDay: '오늘 LT', |
| 12392 |
nextDay: '내일 LT', |
| 12393 |
nextWeek: 'dddd LT', |
| 12394 |
lastDay: '어제 LT', |
| 12395 |
lastWeek: '지난주 dddd LT', |
| 12396 |
sameElse: 'L', |
| 12397 |
}, |
| 12398 |
relativeTime: { |
| 12399 |
future: '%s 후', |
| 12400 |
past: '%s 전', |
| 12401 |
s: '몇 초', |
| 12402 |
ss: '%d초', |
| 12403 |
m: '1분', |
| 12404 |
mm: '%d분', |
| 12405 |
h: '한 시간', |
| 12406 |
hh: '%d시간', |
| 12407 |
d: '하루', |
| 12408 |
dd: '%d일', |
| 12409 |
M: '한 달', |
| 12410 |
MM: '%d달', |
| 12411 |
y: '일 년', |
| 12412 |
yy: '%d년', |
| 12413 |
}, |
| 12414 |
dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/, |
| 12415 |
ordinal: function (number, period) { |
| 12416 |
switch (period) { |
| 12417 |
case 'd': |
| 12418 |
case 'D': |
| 12419 |
case 'DDD': |
| 12420 |
return number + '일'; |
| 12421 |
case 'M': |
| 12422 |
return number + '월'; |
| 12423 |
case 'w': |
| 12424 |
case 'W': |
| 12425 |
return number + '주'; |
| 12426 |
default: |
| 12427 |
return number; |
| 12428 |
} |
| 12429 |
}, |
| 12430 |
meridiemParse: /오전|오후/, |
| 12431 |
isPM: function (token) { |
| 12432 |
return token === '오후'; |
| 12433 |
}, |
| 12434 |
meridiem: function (hour, minute, isUpper) { |
| 12435 |
return hour < 12 ? '오전' : '오후'; |
| 12436 |
}, |
| 12437 |
}); |
| 12438 |
|
| 12439 |
//! moment.js locale configuration |
| 12440 |
|
| 12441 |
var symbolMap$b = { |
| 12442 |
1: '١', |
| 12443 |
2: '٢', |
| 12444 |
3: '٣', |
| 12445 |
4: '٤', |
| 12446 |
5: '٥', |
| 12447 |
6: '٦', |
| 12448 |
7: '٧', |
| 12449 |
8: '٨', |
| 12450 |
9: '٩', |
| 12451 |
0: '٠', |
| 12452 |
}, |
| 12453 |
numberMap$a = { |
| 12454 |
'١': '1', |
| 12455 |
'٢': '2', |
| 12456 |
'٣': '3', |
| 12457 |
'٤': '4', |
| 12458 |
'٥': '5', |
| 12459 |
'٦': '6', |
| 12460 |
'٧': '7', |
| 12461 |
'٨': '8', |
| 12462 |
'٩': '9', |
| 12463 |
'٠': '0', |
| 12464 |
}, |
| 12465 |
months$8 = [ |
| 12466 |
'کانونی دووەم', |
| 12467 |
'شوبات', |
| 12468 |
'ئازار', |
| 12469 |
'نیسان', |
| 12470 |
'ئایار', |
| 12471 |
'حوزەیران', |
| 12472 |
'تەمموز', |
| 12473 |
'ئاب', |
| 12474 |
'ئەیلوول', |
| 12475 |
'تشرینی یەكەم', |
| 12476 |
'تشرینی دووەم', |
| 12477 |
'كانونی یەکەم', |
| 12478 |
]; |
| 12479 |
|
| 12480 |
hooks.defineLocale('ku', { |
| 12481 |
months: months$8, |
| 12482 |
monthsShort: months$8, |
| 12483 |
weekdays: 'یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه'.split( |
| 12484 |
'_' |
| 12485 |
), |
| 12486 |
weekdaysShort: 'یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه'.split( |
| 12487 |
'_' |
| 12488 |
), |
| 12489 |
weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'), |
| 12490 |
weekdaysParseExact: true, |
| 12491 |
longDateFormat: { |
| 12492 |
LT: 'HH:mm', |
| 12493 |
LTS: 'HH:mm:ss', |
| 12494 |
L: 'DD/MM/YYYY', |
| 12495 |
LL: 'D MMMM YYYY', |
| 12496 |
LLL: 'D MMMM YYYY HH:mm', |
| 12497 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 12498 |
}, |
| 12499 |
meridiemParse: /ئێواره|بهیانی/, |
| 12500 |
isPM: function (input) { |
| 12501 |
return /ئێواره/.test(input); |
| 12502 |
}, |
| 12503 |
meridiem: function (hour, minute, isLower) { |
| 12504 |
if (hour < 12) { |
| 12505 |
return 'بهیانی'; |
| 12506 |
} else { |
| 12507 |
return 'ئێواره'; |
| 12508 |
} |
| 12509 |
}, |
| 12510 |
calendar: { |
| 12511 |
sameDay: '[ئهمرۆ كاتژمێر] LT', |
| 12512 |
nextDay: '[بهیانی كاتژمێر] LT', |
| 12513 |
nextWeek: 'dddd [كاتژمێر] LT', |
| 12514 |
lastDay: '[دوێنێ كاتژمێر] LT', |
| 12515 |
lastWeek: 'dddd [كاتژمێر] LT', |
| 12516 |
sameElse: 'L', |
| 12517 |
}, |
| 12518 |
relativeTime: { |
| 12519 |
future: 'له %s', |
| 12520 |
past: '%s', |
| 12521 |
s: 'چهند چركهیهك', |
| 12522 |
ss: 'چركه %d', |
| 12523 |
m: 'یهك خولهك', |
| 12524 |
mm: '%d خولهك', |
| 12525 |
h: 'یهك كاتژمێر', |
| 12526 |
hh: '%d كاتژمێر', |
| 12527 |
d: 'یهك ڕۆژ', |
| 12528 |
dd: '%d ڕۆژ', |
| 12529 |
M: 'یهك مانگ', |
| 12530 |
MM: '%d مانگ', |
| 12531 |
y: 'یهك ساڵ', |
| 12532 |
yy: '%d ساڵ', |
| 12533 |
}, |
| 12534 |
preparse: function (string) { |
| 12535 |
return string |
| 12536 |
.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { |
| 12537 |
return numberMap$a[match]; |
| 12538 |
}) |
| 12539 |
.replace(/،/g, ','); |
| 12540 |
}, |
| 12541 |
postformat: function (string) { |
| 12542 |
return string |
| 12543 |
.replace(/\d/g, function (match) { |
| 12544 |
return symbolMap$b[match]; |
| 12545 |
}) |
| 12546 |
.replace(/,/g, '،'); |
| 12547 |
}, |
| 12548 |
week: { |
| 12549 |
dow: 6, // Saturday is the first day of the week. |
| 12550 |
doy: 12, // The week that contains Jan 12th is the first week of the year. |
| 12551 |
}, |
| 12552 |
}); |
| 12553 |
|
| 12554 |
//! moment.js locale configuration |
| 12555 |
|
| 12556 |
var suffixes$2 = { |
| 12557 |
0: '-чү', |
| 12558 |
1: '-чи', |
| 12559 |
2: '-чи', |
| 12560 |
3: '-чү', |
| 12561 |
4: '-чү', |
| 12562 |
5: '-чи', |
| 12563 |
6: '-чы', |
| 12564 |
7: '-чи', |
| 12565 |
8: '-чи', |
| 12566 |
9: '-чу', |
| 12567 |
10: '-чу', |
| 12568 |
20: '-чы', |
| 12569 |
30: '-чу', |
| 12570 |
40: '-чы', |
| 12571 |
50: '-чү', |
| 12572 |
60: '-чы', |
| 12573 |
70: '-чи', |
| 12574 |
80: '-чи', |
| 12575 |
90: '-чу', |
| 12576 |
100: '-чү', |
| 12577 |
}; |
| 12578 |
|
| 12579 |
hooks.defineLocale('ky', { |
| 12580 |
months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( |
| 12581 |
'_' |
| 12582 |
), |
| 12583 |
monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split( |
| 12584 |
'_' |
| 12585 |
), |
| 12586 |
weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split( |
| 12587 |
'_' |
| 12588 |
), |
| 12589 |
weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'), |
| 12590 |
weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'), |
| 12591 |
longDateFormat: { |
| 12592 |
LT: 'HH:mm', |
| 12593 |
LTS: 'HH:mm:ss', |
| 12594 |
L: 'DD.MM.YYYY', |
| 12595 |
LL: 'D MMMM YYYY', |
| 12596 |
LLL: 'D MMMM YYYY HH:mm', |
| 12597 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 12598 |
}, |
| 12599 |
calendar: { |
| 12600 |
sameDay: '[Бүгүн саат] LT', |
| 12601 |
nextDay: '[Эртең саат] LT', |
| 12602 |
nextWeek: 'dddd [саат] LT', |
| 12603 |
lastDay: '[Кечээ саат] LT', |
| 12604 |
lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT', |
| 12605 |
sameElse: 'L', |
| 12606 |
}, |
| 12607 |
relativeTime: { |
| 12608 |
future: '%s ичинде', |
| 12609 |
past: '%s мурун', |
| 12610 |
s: 'бирнече секунд', |
| 12611 |
ss: '%d секунд', |
| 12612 |
m: 'бир мүнөт', |
| 12613 |
mm: '%d мүнөт', |
| 12614 |
h: 'бир саат', |
| 12615 |
hh: '%d саат', |
| 12616 |
d: 'бир күн', |
| 12617 |
dd: '%d күн', |
| 12618 |
M: 'бир ай', |
| 12619 |
MM: '%d ай', |
| 12620 |
y: 'бир жыл', |
| 12621 |
yy: '%d жыл', |
| 12622 |
}, |
| 12623 |
dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/, |
| 12624 |
ordinal: function (number) { |
| 12625 |
var a = number % 10, |
| 12626 |
b = number >= 100 ? 100 : null; |
| 12627 |
return number + (suffixes$2[number] || suffixes$2[a] || suffixes$2[b]); |
| 12628 |
}, |
| 12629 |
week: { |
| 12630 |
dow: 1, // Monday is the first day of the week. |
| 12631 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 12632 |
}, |
| 12633 |
}); |
| 12634 |
|
| 12635 |
//! moment.js locale configuration |
| 12636 |
|
| 12637 |
function processRelativeTime$6(number, withoutSuffix, key, isFuture) { |
| 12638 |
var format = { |
| 12639 |
m: ['eng Minutt', 'enger Minutt'], |
| 12640 |
h: ['eng Stonn', 'enger Stonn'], |
| 12641 |
d: ['een Dag', 'engem Dag'], |
| 12642 |
M: ['ee Mount', 'engem Mount'], |
| 12643 |
y: ['ee Joer', 'engem Joer'], |
| 12644 |
}; |
| 12645 |
return withoutSuffix ? format[key][0] : format[key][1]; |
| 12646 |
} |
| 12647 |
function processFutureTime(string) { |
| 12648 |
var number = string.substr(0, string.indexOf(' ')); |
| 12649 |
if (eifelerRegelAppliesToNumber(number)) { |
| 12650 |
return 'a ' + string; |
| 12651 |
} |
| 12652 |
return 'an ' + string; |
| 12653 |
} |
| 12654 |
function processPastTime(string) { |
| 12655 |
var number = string.substr(0, string.indexOf(' ')); |
| 12656 |
if (eifelerRegelAppliesToNumber(number)) { |
| 12657 |
return 'viru ' + string; |
| 12658 |
} |
| 12659 |
return 'virun ' + string; |
| 12660 |
} |
| 12661 |
/** |
| 12662 |
* Returns true if the word before the given number loses the '-n' ending. |
| 12663 |
* e.g. 'an 10 Deeg' but 'a 5 Deeg' |
| 12664 |
* |
| 12665 |
* @param number {integer} |
| 12666 |
* @returns {boolean} |
| 12667 |
*/ |
| 12668 |
function eifelerRegelAppliesToNumber(number) { |
| 12669 |
number = parseInt(number, 10); |
| 12670 |
if (isNaN(number)) { |
| 12671 |
return false; |
| 12672 |
} |
| 12673 |
if (number < 0) { |
| 12674 |
// Negative Number --> always true |
| 12675 |
return true; |
| 12676 |
} else if (number < 10) { |
| 12677 |
// Only 1 digit |
| 12678 |
if (4 <= number && number <= 7) { |
| 12679 |
return true; |
| 12680 |
} |
| 12681 |
return false; |
| 12682 |
} else if (number < 100) { |
| 12683 |
// 2 digits |
| 12684 |
var lastDigit = number % 10, |
| 12685 |
firstDigit = number / 10; |
| 12686 |
if (lastDigit === 0) { |
| 12687 |
return eifelerRegelAppliesToNumber(firstDigit); |
| 12688 |
} |
| 12689 |
return eifelerRegelAppliesToNumber(lastDigit); |
| 12690 |
} else if (number < 10000) { |
| 12691 |
// 3 or 4 digits --> recursively check first digit |
| 12692 |
while (number >= 10) { |
| 12693 |
number = number / 10; |
| 12694 |
} |
| 12695 |
return eifelerRegelAppliesToNumber(number); |
| 12696 |
} else { |
| 12697 |
// Anything larger than 4 digits: recursively check first n-3 digits |
| 12698 |
number = number / 1000; |
| 12699 |
return eifelerRegelAppliesToNumber(number); |
| 12700 |
} |
| 12701 |
} |
| 12702 |
|
| 12703 |
hooks.defineLocale('lb', { |
| 12704 |
months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split( |
| 12705 |
'_' |
| 12706 |
), |
| 12707 |
monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split( |
| 12708 |
'_' |
| 12709 |
), |
| 12710 |
monthsParseExact: true, |
| 12711 |
weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split( |
| 12712 |
'_' |
| 12713 |
), |
| 12714 |
weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'), |
| 12715 |
weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'), |
| 12716 |
weekdaysParseExact: true, |
| 12717 |
longDateFormat: { |
| 12718 |
LT: 'H:mm [Auer]', |
| 12719 |
LTS: 'H:mm:ss [Auer]', |
| 12720 |
L: 'DD.MM.YYYY', |
| 12721 |
LL: 'D. MMMM YYYY', |
| 12722 |
LLL: 'D. MMMM YYYY H:mm [Auer]', |
| 12723 |
LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]', |
| 12724 |
}, |
| 12725 |
calendar: { |
| 12726 |
sameDay: '[Haut um] LT', |
| 12727 |
sameElse: 'L', |
| 12728 |
nextDay: '[Muer um] LT', |
| 12729 |
nextWeek: 'dddd [um] LT', |
| 12730 |
lastDay: '[Gëschter um] LT', |
| 12731 |
lastWeek: function () { |
| 12732 |
// Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule |
| 12733 |
switch (this.day()) { |
| 12734 |
case 2: |
| 12735 |
case 4: |
| 12736 |
return '[Leschten] dddd [um] LT'; |
| 12737 |
default: |
| 12738 |
return '[Leschte] dddd [um] LT'; |
| 12739 |
} |
| 12740 |
}, |
| 12741 |
}, |
| 12742 |
relativeTime: { |
| 12743 |
future: processFutureTime, |
| 12744 |
past: processPastTime, |
| 12745 |
s: 'e puer Sekonnen', |
| 12746 |
ss: '%d Sekonnen', |
| 12747 |
m: processRelativeTime$6, |
| 12748 |
mm: '%d Minutten', |
| 12749 |
h: processRelativeTime$6, |
| 12750 |
hh: '%d Stonnen', |
| 12751 |
d: processRelativeTime$6, |
| 12752 |
dd: '%d Deeg', |
| 12753 |
M: processRelativeTime$6, |
| 12754 |
MM: '%d Méint', |
| 12755 |
y: processRelativeTime$6, |
| 12756 |
yy: '%d Joer', |
| 12757 |
}, |
| 12758 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 12759 |
ordinal: '%d.', |
| 12760 |
week: { |
| 12761 |
dow: 1, // Monday is the first day of the week. |
| 12762 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 12763 |
}, |
| 12764 |
}); |
| 12765 |
|
| 12766 |
//! moment.js locale configuration |
| 12767 |
|
| 12768 |
hooks.defineLocale('lo', { |
| 12769 |
months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( |
| 12770 |
'_' |
| 12771 |
), |
| 12772 |
monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( |
| 12773 |
'_' |
| 12774 |
), |
| 12775 |
weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), |
| 12776 |
weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), |
| 12777 |
weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'), |
| 12778 |
weekdaysParseExact: true, |
| 12779 |
longDateFormat: { |
| 12780 |
LT: 'HH:mm', |
| 12781 |
LTS: 'HH:mm:ss', |
| 12782 |
L: 'DD/MM/YYYY', |
| 12783 |
LL: 'D MMMM YYYY', |
| 12784 |
LLL: 'D MMMM YYYY HH:mm', |
| 12785 |
LLLL: 'ວັນdddd D MMMM YYYY HH:mm', |
| 12786 |
}, |
| 12787 |
meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/, |
| 12788 |
isPM: function (input) { |
| 12789 |
return input === 'ຕອນແລງ'; |
| 12790 |
}, |
| 12791 |
meridiem: function (hour, minute, isLower) { |
| 12792 |
if (hour < 12) { |
| 12793 |
return 'ຕອນເຊົ້າ'; |
| 12794 |
} else { |
| 12795 |
return 'ຕອນແລງ'; |
| 12796 |
} |
| 12797 |
}, |
| 12798 |
calendar: { |
| 12799 |
sameDay: '[ມື້ນີ້ເວລາ] LT', |
| 12800 |
nextDay: '[ມື້ອື່ນເວລາ] LT', |
| 12801 |
nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT', |
| 12802 |
lastDay: '[ມື້ວານນີ້ເວລາ] LT', |
| 12803 |
lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT', |
| 12804 |
sameElse: 'L', |
| 12805 |
}, |
| 12806 |
relativeTime: { |
| 12807 |
future: 'ອີກ %s', |
| 12808 |
past: '%sຜ່ານມາ', |
| 12809 |
s: 'ບໍ່ເທົ່າໃດວິນາທີ', |
| 12810 |
ss: '%d ວິນາທີ', |
| 12811 |
m: '1 ນາທີ', |
| 12812 |
mm: '%d ນາທີ', |
| 12813 |
h: '1 ຊົ່ວໂມງ', |
| 12814 |
hh: '%d ຊົ່ວໂມງ', |
| 12815 |
d: '1 ມື້', |
| 12816 |
dd: '%d ມື້', |
| 12817 |
M: '1 ເດືອນ', |
| 12818 |
MM: '%d ເດືອນ', |
| 12819 |
y: '1 ປີ', |
| 12820 |
yy: '%d ປີ', |
| 12821 |
}, |
| 12822 |
dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/, |
| 12823 |
ordinal: function (number) { |
| 12824 |
return 'ທີ່' + number; |
| 12825 |
}, |
| 12826 |
}); |
| 12827 |
|
| 12828 |
//! moment.js locale configuration |
| 12829 |
|
| 12830 |
var units = { |
| 12831 |
ss: 'sekundė_sekundžių_sekundes', |
| 12832 |
m: 'minutė_minutės_minutę', |
| 12833 |
mm: 'minutės_minučių_minutes', |
| 12834 |
h: 'valanda_valandos_valandą', |
| 12835 |
hh: 'valandos_valandų_valandas', |
| 12836 |
d: 'diena_dienos_dieną', |
| 12837 |
dd: 'dienos_dienų_dienas', |
| 12838 |
M: 'mėnuo_mėnesio_mėnesį', |
| 12839 |
MM: 'mėnesiai_mėnesių_mėnesius', |
| 12840 |
y: 'metai_metų_metus', |
| 12841 |
yy: 'metai_metų_metus', |
| 12842 |
}; |
| 12843 |
function translateSeconds(number, withoutSuffix, key, isFuture) { |
| 12844 |
if (withoutSuffix) { |
| 12845 |
return 'kelios sekundės'; |
| 12846 |
} else { |
| 12847 |
return isFuture ? 'kelių sekundžių' : 'kelias sekundes'; |
| 12848 |
} |
| 12849 |
} |
| 12850 |
function translateSingular(number, withoutSuffix, key, isFuture) { |
| 12851 |
return withoutSuffix |
| 12852 |
? forms(key)[0] |
| 12853 |
: isFuture |
| 12854 |
? forms(key)[1] |
| 12855 |
: forms(key)[2]; |
| 12856 |
} |
| 12857 |
function special(number) { |
| 12858 |
return number % 10 === 0 || (number > 10 && number < 20); |
| 12859 |
} |
| 12860 |
function forms(key) { |
| 12861 |
return units[key].split('_'); |
| 12862 |
} |
| 12863 |
function translate$6(number, withoutSuffix, key, isFuture) { |
| 12864 |
var result = number + ' '; |
| 12865 |
if (number === 1) { |
| 12866 |
return ( |
| 12867 |
result + translateSingular(number, withoutSuffix, key[0], isFuture) |
| 12868 |
); |
| 12869 |
} else if (withoutSuffix) { |
| 12870 |
return result + (special(number) ? forms(key)[1] : forms(key)[0]); |
| 12871 |
} else { |
| 12872 |
if (isFuture) { |
| 12873 |
return result + forms(key)[1]; |
| 12874 |
} else { |
| 12875 |
return result + (special(number) ? forms(key)[1] : forms(key)[2]); |
| 12876 |
} |
| 12877 |
} |
| 12878 |
} |
| 12879 |
hooks.defineLocale('lt', { |
| 12880 |
months: { |
| 12881 |
format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split( |
| 12882 |
'_' |
| 12883 |
), |
| 12884 |
standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split( |
| 12885 |
'_' |
| 12886 |
), |
| 12887 |
isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/, |
| 12888 |
}, |
| 12889 |
monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'), |
| 12890 |
weekdays: { |
| 12891 |
format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split( |
| 12892 |
'_' |
| 12893 |
), |
| 12894 |
standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split( |
| 12895 |
'_' |
| 12896 |
), |
| 12897 |
isFormat: /dddd HH:mm/, |
| 12898 |
}, |
| 12899 |
weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'), |
| 12900 |
weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'), |
| 12901 |
weekdaysParseExact: true, |
| 12902 |
longDateFormat: { |
| 12903 |
LT: 'HH:mm', |
| 12904 |
LTS: 'HH:mm:ss', |
| 12905 |
L: 'YYYY-MM-DD', |
| 12906 |
LL: 'YYYY [m.] MMMM D [d.]', |
| 12907 |
LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', |
| 12908 |
LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]', |
| 12909 |
l: 'YYYY-MM-DD', |
| 12910 |
ll: 'YYYY [m.] MMMM D [d.]', |
| 12911 |
lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', |
| 12912 |
llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]', |
| 12913 |
}, |
| 12914 |
calendar: { |
| 12915 |
sameDay: '[Šiandien] LT', |
| 12916 |
nextDay: '[Rytoj] LT', |
| 12917 |
nextWeek: 'dddd LT', |
| 12918 |
lastDay: '[Vakar] LT', |
| 12919 |
lastWeek: '[Praėjusį] dddd LT', |
| 12920 |
sameElse: 'L', |
| 12921 |
}, |
| 12922 |
relativeTime: { |
| 12923 |
future: 'po %s', |
| 12924 |
past: 'prieš %s', |
| 12925 |
s: translateSeconds, |
| 12926 |
ss: translate$6, |
| 12927 |
m: translateSingular, |
| 12928 |
mm: translate$6, |
| 12929 |
h: translateSingular, |
| 12930 |
hh: translate$6, |
| 12931 |
d: translateSingular, |
| 12932 |
dd: translate$6, |
| 12933 |
M: translateSingular, |
| 12934 |
MM: translate$6, |
| 12935 |
y: translateSingular, |
| 12936 |
yy: translate$6, |
| 12937 |
}, |
| 12938 |
dayOfMonthOrdinalParse: /\d{1,2}-oji/, |
| 12939 |
ordinal: function (number) { |
| 12940 |
return number + '-oji'; |
| 12941 |
}, |
| 12942 |
week: { |
| 12943 |
dow: 1, // Monday is the first day of the week. |
| 12944 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 12945 |
}, |
| 12946 |
}); |
| 12947 |
|
| 12948 |
//! moment.js locale configuration |
| 12949 |
|
| 12950 |
var units$1 = { |
| 12951 |
ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'), |
| 12952 |
m: 'minūtes_minūtēm_minūte_minūtes'.split('_'), |
| 12953 |
mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'), |
| 12954 |
h: 'stundas_stundām_stunda_stundas'.split('_'), |
| 12955 |
hh: 'stundas_stundām_stunda_stundas'.split('_'), |
| 12956 |
d: 'dienas_dienām_diena_dienas'.split('_'), |
| 12957 |
dd: 'dienas_dienām_diena_dienas'.split('_'), |
| 12958 |
M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), |
| 12959 |
MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), |
| 12960 |
y: 'gada_gadiem_gads_gadi'.split('_'), |
| 12961 |
yy: 'gada_gadiem_gads_gadi'.split('_'), |
| 12962 |
}; |
| 12963 |
/** |
| 12964 |
* @param withoutSuffix boolean true = a length of time; false = before/after a period of time. |
| 12965 |
*/ |
| 12966 |
function format$1(forms, number, withoutSuffix) { |
| 12967 |
if (withoutSuffix) { |
| 12968 |
// E.g. "21 minūte", "3 minūtes". |
| 12969 |
return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3]; |
| 12970 |
} else { |
| 12971 |
// E.g. "21 minūtes" as in "pēc 21 minūtes". |
| 12972 |
// E.g. "3 minūtēm" as in "pēc 3 minūtēm". |
| 12973 |
return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1]; |
| 12974 |
} |
| 12975 |
} |
| 12976 |
function relativeTimeWithPlural$1(number, withoutSuffix, key) { |
| 12977 |
return number + ' ' + format$1(units$1[key], number, withoutSuffix); |
| 12978 |
} |
| 12979 |
function relativeTimeWithSingular(number, withoutSuffix, key) { |
| 12980 |
return format$1(units$1[key], number, withoutSuffix); |
| 12981 |
} |
| 12982 |
function relativeSeconds(number, withoutSuffix) { |
| 12983 |
return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm'; |
| 12984 |
} |
| 12985 |
|
| 12986 |
hooks.defineLocale('lv', { |
| 12987 |
months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split( |
| 12988 |
'_' |
| 12989 |
), |
| 12990 |
monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'), |
| 12991 |
weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split( |
| 12992 |
'_' |
| 12993 |
), |
| 12994 |
weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'), |
| 12995 |
weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'), |
| 12996 |
weekdaysParseExact: true, |
| 12997 |
longDateFormat: { |
| 12998 |
LT: 'HH:mm', |
| 12999 |
LTS: 'HH:mm:ss', |
| 13000 |
L: 'DD.MM.YYYY.', |
| 13001 |
LL: 'YYYY. [gada] D. MMMM', |
| 13002 |
LLL: 'YYYY. [gada] D. MMMM, HH:mm', |
| 13003 |
LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm', |
| 13004 |
}, |
| 13005 |
calendar: { |
| 13006 |
sameDay: '[Šodien pulksten] LT', |
| 13007 |
nextDay: '[Rīt pulksten] LT', |
| 13008 |
nextWeek: 'dddd [pulksten] LT', |
| 13009 |
lastDay: '[Vakar pulksten] LT', |
| 13010 |
lastWeek: '[Pagājušā] dddd [pulksten] LT', |
| 13011 |
sameElse: 'L', |
| 13012 |
}, |
| 13013 |
relativeTime: { |
| 13014 |
future: 'pēc %s', |
| 13015 |
past: 'pirms %s', |
| 13016 |
s: relativeSeconds, |
| 13017 |
ss: relativeTimeWithPlural$1, |
| 13018 |
m: relativeTimeWithSingular, |
| 13019 |
mm: relativeTimeWithPlural$1, |
| 13020 |
h: relativeTimeWithSingular, |
| 13021 |
hh: relativeTimeWithPlural$1, |
| 13022 |
d: relativeTimeWithSingular, |
| 13023 |
dd: relativeTimeWithPlural$1, |
| 13024 |
M: relativeTimeWithSingular, |
| 13025 |
MM: relativeTimeWithPlural$1, |
| 13026 |
y: relativeTimeWithSingular, |
| 13027 |
yy: relativeTimeWithPlural$1, |
| 13028 |
}, |
| 13029 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 13030 |
ordinal: '%d.', |
| 13031 |
week: { |
| 13032 |
dow: 1, // Monday is the first day of the week. |
| 13033 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 13034 |
}, |
| 13035 |
}); |
| 13036 |
|
| 13037 |
//! moment.js locale configuration |
| 13038 |
|
| 13039 |
var translator = { |
| 13040 |
words: { |
| 13041 |
//Different grammatical cases |
| 13042 |
ss: ['sekund', 'sekunda', 'sekundi'], |
| 13043 |
m: ['jedan minut', 'jednog minuta'], |
| 13044 |
mm: ['minut', 'minuta', 'minuta'], |
| 13045 |
h: ['jedan sat', 'jednog sata'], |
| 13046 |
hh: ['sat', 'sata', 'sati'], |
| 13047 |
dd: ['dan', 'dana', 'dana'], |
| 13048 |
MM: ['mjesec', 'mjeseca', 'mjeseci'], |
| 13049 |
yy: ['godina', 'godine', 'godina'], |
| 13050 |
}, |
| 13051 |
correctGrammaticalCase: function (number, wordKey) { |
| 13052 |
return number === 1 |
| 13053 |
? wordKey[0] |
| 13054 |
: number >= 2 && number <= 4 |
| 13055 |
? wordKey[1] |
| 13056 |
: wordKey[2]; |
| 13057 |
}, |
| 13058 |
translate: function (number, withoutSuffix, key) { |
| 13059 |
var wordKey = translator.words[key]; |
| 13060 |
if (key.length === 1) { |
| 13061 |
return withoutSuffix ? wordKey[0] : wordKey[1]; |
| 13062 |
} else { |
| 13063 |
return ( |
| 13064 |
number + |
| 13065 |
' ' + |
| 13066 |
translator.correctGrammaticalCase(number, wordKey) |
| 13067 |
); |
| 13068 |
} |
| 13069 |
}, |
| 13070 |
}; |
| 13071 |
|
| 13072 |
hooks.defineLocale('me', { |
| 13073 |
months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( |
| 13074 |
'_' |
| 13075 |
), |
| 13076 |
monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split( |
| 13077 |
'_' |
| 13078 |
), |
| 13079 |
monthsParseExact: true, |
| 13080 |
weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( |
| 13081 |
'_' |
| 13082 |
), |
| 13083 |
weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), |
| 13084 |
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), |
| 13085 |
weekdaysParseExact: true, |
| 13086 |
longDateFormat: { |
| 13087 |
LT: 'H:mm', |
| 13088 |
LTS: 'H:mm:ss', |
| 13089 |
L: 'DD.MM.YYYY', |
| 13090 |
LL: 'D. MMMM YYYY', |
| 13091 |
LLL: 'D. MMMM YYYY H:mm', |
| 13092 |
LLLL: 'dddd, D. MMMM YYYY H:mm', |
| 13093 |
}, |
| 13094 |
calendar: { |
| 13095 |
sameDay: '[danas u] LT', |
| 13096 |
nextDay: '[sjutra u] LT', |
| 13097 |
|
| 13098 |
nextWeek: function () { |
| 13099 |
switch (this.day()) { |
| 13100 |
case 0: |
| 13101 |
return '[u] [nedjelju] [u] LT'; |
| 13102 |
case 3: |
| 13103 |
return '[u] [srijedu] [u] LT'; |
| 13104 |
case 6: |
| 13105 |
return '[u] [subotu] [u] LT'; |
| 13106 |
case 1: |
| 13107 |
case 2: |
| 13108 |
case 4: |
| 13109 |
case 5: |
| 13110 |
return '[u] dddd [u] LT'; |
| 13111 |
} |
| 13112 |
}, |
| 13113 |
lastDay: '[juče u] LT', |
| 13114 |
lastWeek: function () { |
| 13115 |
var lastWeekDays = [ |
| 13116 |
'[prošle] [nedjelje] [u] LT', |
| 13117 |
'[prošlog] [ponedjeljka] [u] LT', |
| 13118 |
'[prošlog] [utorka] [u] LT', |
| 13119 |
'[prošle] [srijede] [u] LT', |
| 13120 |
'[prošlog] [četvrtka] [u] LT', |
| 13121 |
'[prošlog] [petka] [u] LT', |
| 13122 |
'[prošle] [subote] [u] LT', |
| 13123 |
]; |
| 13124 |
return lastWeekDays[this.day()]; |
| 13125 |
}, |
| 13126 |
sameElse: 'L', |
| 13127 |
}, |
| 13128 |
relativeTime: { |
| 13129 |
future: 'za %s', |
| 13130 |
past: 'prije %s', |
| 13131 |
s: 'nekoliko sekundi', |
| 13132 |
ss: translator.translate, |
| 13133 |
m: translator.translate, |
| 13134 |
mm: translator.translate, |
| 13135 |
h: translator.translate, |
| 13136 |
hh: translator.translate, |
| 13137 |
d: 'dan', |
| 13138 |
dd: translator.translate, |
| 13139 |
M: 'mjesec', |
| 13140 |
MM: translator.translate, |
| 13141 |
y: 'godinu', |
| 13142 |
yy: translator.translate, |
| 13143 |
}, |
| 13144 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 13145 |
ordinal: '%d.', |
| 13146 |
week: { |
| 13147 |
dow: 1, // Monday is the first day of the week. |
| 13148 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 13149 |
}, |
| 13150 |
}); |
| 13151 |
|
| 13152 |
//! moment.js locale configuration |
| 13153 |
|
| 13154 |
hooks.defineLocale('mi', { |
| 13155 |
months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split( |
| 13156 |
'_' |
| 13157 |
), |
| 13158 |
monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split( |
| 13159 |
'_' |
| 13160 |
), |
| 13161 |
monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, |
| 13162 |
monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, |
| 13163 |
monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, |
| 13164 |
monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i, |
| 13165 |
weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'), |
| 13166 |
weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), |
| 13167 |
weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), |
| 13168 |
longDateFormat: { |
| 13169 |
LT: 'HH:mm', |
| 13170 |
LTS: 'HH:mm:ss', |
| 13171 |
L: 'DD/MM/YYYY', |
| 13172 |
LL: 'D MMMM YYYY', |
| 13173 |
LLL: 'D MMMM YYYY [i] HH:mm', |
| 13174 |
LLLL: 'dddd, D MMMM YYYY [i] HH:mm', |
| 13175 |
}, |
| 13176 |
calendar: { |
| 13177 |
sameDay: '[i teie mahana, i] LT', |
| 13178 |
nextDay: '[apopo i] LT', |
| 13179 |
nextWeek: 'dddd [i] LT', |
| 13180 |
lastDay: '[inanahi i] LT', |
| 13181 |
lastWeek: 'dddd [whakamutunga i] LT', |
| 13182 |
sameElse: 'L', |
| 13183 |
}, |
| 13184 |
relativeTime: { |
| 13185 |
future: 'i roto i %s', |
| 13186 |
past: '%s i mua', |
| 13187 |
s: 'te hēkona ruarua', |
| 13188 |
ss: '%d hēkona', |
| 13189 |
m: 'he meneti', |
| 13190 |
mm: '%d meneti', |
| 13191 |
h: 'te haora', |
| 13192 |
hh: '%d haora', |
| 13193 |
d: 'he ra', |
| 13194 |
dd: '%d ra', |
| 13195 |
M: 'he marama', |
| 13196 |
MM: '%d marama', |
| 13197 |
y: 'he tau', |
| 13198 |
yy: '%d tau', |
| 13199 |
}, |
| 13200 |
dayOfMonthOrdinalParse: /\d{1,2}º/, |
| 13201 |
ordinal: '%dº', |
| 13202 |
week: { |
| 13203 |
dow: 1, // Monday is the first day of the week. |
| 13204 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 13205 |
}, |
| 13206 |
}); |
| 13207 |
|
| 13208 |
//! moment.js locale configuration |
| 13209 |
|
| 13210 |
hooks.defineLocale('mk', { |
| 13211 |
months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split( |
| 13212 |
'_' |
| 13213 |
), |
| 13214 |
monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'), |
| 13215 |
weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split( |
| 13216 |
'_' |
| 13217 |
), |
| 13218 |
weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'), |
| 13219 |
weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'), |
| 13220 |
longDateFormat: { |
| 13221 |
LT: 'H:mm', |
| 13222 |
LTS: 'H:mm:ss', |
| 13223 |
L: 'D.MM.YYYY', |
| 13224 |
LL: 'D MMMM YYYY', |
| 13225 |
LLL: 'D MMMM YYYY H:mm', |
| 13226 |
LLLL: 'dddd, D MMMM YYYY H:mm', |
| 13227 |
}, |
| 13228 |
calendar: { |
| 13229 |
sameDay: '[Денес во] LT', |
| 13230 |
nextDay: '[Утре во] LT', |
| 13231 |
nextWeek: '[Во] dddd [во] LT', |
| 13232 |
lastDay: '[Вчера во] LT', |
| 13233 |
lastWeek: function () { |
| 13234 |
switch (this.day()) { |
| 13235 |
case 0: |
| 13236 |
case 3: |
| 13237 |
case 6: |
| 13238 |
return '[Изминатата] dddd [во] LT'; |
| 13239 |
case 1: |
| 13240 |
case 2: |
| 13241 |
case 4: |
| 13242 |
case 5: |
| 13243 |
return '[Изминатиот] dddd [во] LT'; |
| 13244 |
} |
| 13245 |
}, |
| 13246 |
sameElse: 'L', |
| 13247 |
}, |
| 13248 |
relativeTime: { |
| 13249 |
future: 'за %s', |
| 13250 |
past: 'пред %s', |
| 13251 |
s: 'неколку секунди', |
| 13252 |
ss: '%d секунди', |
| 13253 |
m: 'една минута', |
| 13254 |
mm: '%d минути', |
| 13255 |
h: 'еден час', |
| 13256 |
hh: '%d часа', |
| 13257 |
d: 'еден ден', |
| 13258 |
dd: '%d дена', |
| 13259 |
M: 'еден месец', |
| 13260 |
MM: '%d месеци', |
| 13261 |
y: 'една година', |
| 13262 |
yy: '%d години', |
| 13263 |
}, |
| 13264 |
dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, |
| 13265 |
ordinal: function (number) { |
| 13266 |
var lastDigit = number % 10, |
| 13267 |
last2Digits = number % 100; |
| 13268 |
if (number === 0) { |
| 13269 |
return number + '-ев'; |
| 13270 |
} else if (last2Digits === 0) { |
| 13271 |
return number + '-ен'; |
| 13272 |
} else if (last2Digits > 10 && last2Digits < 20) { |
| 13273 |
return number + '-ти'; |
| 13274 |
} else if (lastDigit === 1) { |
| 13275 |
return number + '-ви'; |
| 13276 |
} else if (lastDigit === 2) { |
| 13277 |
return number + '-ри'; |
| 13278 |
} else if (lastDigit === 7 || lastDigit === 8) { |
| 13279 |
return number + '-ми'; |
| 13280 |
} else { |
| 13281 |
return number + '-ти'; |
| 13282 |
} |
| 13283 |
}, |
| 13284 |
week: { |
| 13285 |
dow: 1, // Monday is the first day of the week. |
| 13286 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 13287 |
}, |
| 13288 |
}); |
| 13289 |
|
| 13290 |
//! moment.js locale configuration |
| 13291 |
|
| 13292 |
hooks.defineLocale('ml', { |
| 13293 |
months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split( |
| 13294 |
'_' |
| 13295 |
), |
| 13296 |
monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split( |
| 13297 |
'_' |
| 13298 |
), |
| 13299 |
monthsParseExact: true, |
| 13300 |
weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split( |
| 13301 |
'_' |
| 13302 |
), |
| 13303 |
weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'), |
| 13304 |
weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'), |
| 13305 |
longDateFormat: { |
| 13306 |
LT: 'A h:mm -നു', |
| 13307 |
LTS: 'A h:mm:ss -നു', |
| 13308 |
L: 'DD/MM/YYYY', |
| 13309 |
LL: 'D MMMM YYYY', |
| 13310 |
LLL: 'D MMMM YYYY, A h:mm -നു', |
| 13311 |
LLLL: 'dddd, D MMMM YYYY, A h:mm -നു', |
| 13312 |
}, |
| 13313 |
calendar: { |
| 13314 |
sameDay: '[ഇന്ന്] LT', |
| 13315 |
nextDay: '[നാളെ] LT', |
| 13316 |
nextWeek: 'dddd, LT', |
| 13317 |
lastDay: '[ഇന്നലെ] LT', |
| 13318 |
lastWeek: '[കഴിഞ്ഞ] dddd, LT', |
| 13319 |
sameElse: 'L', |
| 13320 |
}, |
| 13321 |
relativeTime: { |
| 13322 |
future: '%s കഴിഞ്ഞ്', |
| 13323 |
past: '%s മുൻപ്', |
| 13324 |
s: 'അൽപ നിമിഷങ്ങൾ', |
| 13325 |
ss: '%d സെക്കൻഡ്', |
| 13326 |
m: 'ഒരു മിനിറ്റ്', |
| 13327 |
mm: '%d മിനിറ്റ്', |
| 13328 |
h: 'ഒരു മണിക്കൂർ', |
| 13329 |
hh: '%d മണിക്കൂർ', |
| 13330 |
d: 'ഒരു ദിവസം', |
| 13331 |
dd: '%d ദിവസം', |
| 13332 |
M: 'ഒരു മാസം', |
| 13333 |
MM: '%d മാസം', |
| 13334 |
y: 'ഒരു വർഷം', |
| 13335 |
yy: '%d വർഷം', |
| 13336 |
}, |
| 13337 |
meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i, |
| 13338 |
meridiemHour: function (hour, meridiem) { |
| 13339 |
if (hour === 12) { |
| 13340 |
hour = 0; |
| 13341 |
} |
| 13342 |
if ( |
| 13343 |
(meridiem === 'രാത്രി' && hour >= 4) || |
| 13344 |
meridiem === 'ഉച്ച കഴിഞ്ഞ്' || |
| 13345 |
meridiem === 'വൈകുന്നേരം' |
| 13346 |
) { |
| 13347 |
return hour + 12; |
| 13348 |
} else { |
| 13349 |
return hour; |
| 13350 |
} |
| 13351 |
}, |
| 13352 |
meridiem: function (hour, minute, isLower) { |
| 13353 |
if (hour < 4) { |
| 13354 |
return 'രാത്രി'; |
| 13355 |
} else if (hour < 12) { |
| 13356 |
return 'രാവിലെ'; |
| 13357 |
} else if (hour < 17) { |
| 13358 |
return 'ഉച്ച കഴിഞ്ഞ്'; |
| 13359 |
} else if (hour < 20) { |
| 13360 |
return 'വൈകുന്നേരം'; |
| 13361 |
} else { |
| 13362 |
return 'രാത്രി'; |
| 13363 |
} |
| 13364 |
}, |
| 13365 |
}); |
| 13366 |
|
| 13367 |
//! moment.js locale configuration |
| 13368 |
|
| 13369 |
function translate$7(number, withoutSuffix, key, isFuture) { |
| 13370 |
switch (key) { |
| 13371 |
case 's': |
| 13372 |
return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын'; |
| 13373 |
case 'ss': |
| 13374 |
return number + (withoutSuffix ? ' секунд' : ' секундын'); |
| 13375 |
case 'm': |
| 13376 |
case 'mm': |
| 13377 |
return number + (withoutSuffix ? ' минут' : ' минутын'); |
| 13378 |
case 'h': |
| 13379 |
case 'hh': |
| 13380 |
return number + (withoutSuffix ? ' цаг' : ' цагийн'); |
| 13381 |
case 'd': |
| 13382 |
case 'dd': |
| 13383 |
return number + (withoutSuffix ? ' өдөр' : ' өдрийн'); |
| 13384 |
case 'M': |
| 13385 |
case 'MM': |
| 13386 |
return number + (withoutSuffix ? ' сар' : ' сарын'); |
| 13387 |
case 'y': |
| 13388 |
case 'yy': |
| 13389 |
return number + (withoutSuffix ? ' жил' : ' жилийн'); |
| 13390 |
default: |
| 13391 |
return number; |
| 13392 |
} |
| 13393 |
} |
| 13394 |
|
| 13395 |
hooks.defineLocale('mn', { |
| 13396 |
months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split( |
| 13397 |
'_' |
| 13398 |
), |
| 13399 |
monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split( |
| 13400 |
'_' |
| 13401 |
), |
| 13402 |
monthsParseExact: true, |
| 13403 |
weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'), |
| 13404 |
weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'), |
| 13405 |
weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'), |
| 13406 |
weekdaysParseExact: true, |
| 13407 |
longDateFormat: { |
| 13408 |
LT: 'HH:mm', |
| 13409 |
LTS: 'HH:mm:ss', |
| 13410 |
L: 'YYYY-MM-DD', |
| 13411 |
LL: 'YYYY оны MMMMын D', |
| 13412 |
LLL: 'YYYY оны MMMMын D HH:mm', |
| 13413 |
LLLL: 'dddd, YYYY оны MMMMын D HH:mm', |
| 13414 |
}, |
| 13415 |
meridiemParse: /ҮӨ|ҮХ/i, |
| 13416 |
isPM: function (input) { |
| 13417 |
return input === 'ҮХ'; |
| 13418 |
}, |
| 13419 |
meridiem: function (hour, minute, isLower) { |
| 13420 |
if (hour < 12) { |
| 13421 |
return 'ҮӨ'; |
| 13422 |
} else { |
| 13423 |
return 'ҮХ'; |
| 13424 |
} |
| 13425 |
}, |
| 13426 |
calendar: { |
| 13427 |
sameDay: '[Өнөөдөр] LT', |
| 13428 |
nextDay: '[Маргааш] LT', |
| 13429 |
nextWeek: '[Ирэх] dddd LT', |
| 13430 |
lastDay: '[Өчигдөр] LT', |
| 13431 |
lastWeek: '[Өнгөрсөн] dddd LT', |
| 13432 |
sameElse: 'L', |
| 13433 |
}, |
| 13434 |
relativeTime: { |
| 13435 |
future: '%s дараа', |
| 13436 |
past: '%s өмнө', |
| 13437 |
s: translate$7, |
| 13438 |
ss: translate$7, |
| 13439 |
m: translate$7, |
| 13440 |
mm: translate$7, |
| 13441 |
h: translate$7, |
| 13442 |
hh: translate$7, |
| 13443 |
d: translate$7, |
| 13444 |
dd: translate$7, |
| 13445 |
M: translate$7, |
| 13446 |
MM: translate$7, |
| 13447 |
y: translate$7, |
| 13448 |
yy: translate$7, |
| 13449 |
}, |
| 13450 |
dayOfMonthOrdinalParse: /\d{1,2} өдөр/, |
| 13451 |
ordinal: function (number, period) { |
| 13452 |
switch (period) { |
| 13453 |
case 'd': |
| 13454 |
case 'D': |
| 13455 |
case 'DDD': |
| 13456 |
return number + ' өдөр'; |
| 13457 |
default: |
| 13458 |
return number; |
| 13459 |
} |
| 13460 |
}, |
| 13461 |
}); |
| 13462 |
|
| 13463 |
//! moment.js locale configuration |
| 13464 |
|
| 13465 |
var symbolMap$c = { |
| 13466 |
1: '१', |
| 13467 |
2: '२', |
| 13468 |
3: '३', |
| 13469 |
4: '४', |
| 13470 |
5: '५', |
| 13471 |
6: '६', |
| 13472 |
7: '७', |
| 13473 |
8: '८', |
| 13474 |
9: '९', |
| 13475 |
0: '०', |
| 13476 |
}, |
| 13477 |
numberMap$b = { |
| 13478 |
'१': '1', |
| 13479 |
'२': '2', |
| 13480 |
'३': '3', |
| 13481 |
'४': '4', |
| 13482 |
'५': '5', |
| 13483 |
'६': '6', |
| 13484 |
'७': '7', |
| 13485 |
'८': '8', |
| 13486 |
'९': '9', |
| 13487 |
'०': '0', |
| 13488 |
}; |
| 13489 |
|
| 13490 |
function relativeTimeMr(number, withoutSuffix, string, isFuture) { |
| 13491 |
var output = ''; |
| 13492 |
if (withoutSuffix) { |
| 13493 |
switch (string) { |
| 13494 |
case 's': |
| 13495 |
output = 'काही सेकंद'; |
| 13496 |
break; |
| 13497 |
case 'ss': |
| 13498 |
output = '%d सेकंद'; |
| 13499 |
break; |
| 13500 |
case 'm': |
| 13501 |
output = 'एक मिनिट'; |
| 13502 |
break; |
| 13503 |
case 'mm': |
| 13504 |
output = '%d मिनिटे'; |
| 13505 |
break; |
| 13506 |
case 'h': |
| 13507 |
output = 'एक तास'; |
| 13508 |
break; |
| 13509 |
case 'hh': |
| 13510 |
output = '%d तास'; |
| 13511 |
break; |
| 13512 |
case 'd': |
| 13513 |
output = 'एक दिवस'; |
| 13514 |
break; |
| 13515 |
case 'dd': |
| 13516 |
output = '%d दिवस'; |
| 13517 |
break; |
| 13518 |
case 'M': |
| 13519 |
output = 'एक महिना'; |
| 13520 |
break; |
| 13521 |
case 'MM': |
| 13522 |
output = '%d महिने'; |
| 13523 |
break; |
| 13524 |
case 'y': |
| 13525 |
output = 'एक वर्ष'; |
| 13526 |
break; |
| 13527 |
case 'yy': |
| 13528 |
output = '%d वर्षे'; |
| 13529 |
break; |
| 13530 |
} |
| 13531 |
} else { |
| 13532 |
switch (string) { |
| 13533 |
case 's': |
| 13534 |
output = 'काही सेकंदां'; |
| 13535 |
break; |
| 13536 |
case 'ss': |
| 13537 |
output = '%d सेकंदां'; |
| 13538 |
break; |
| 13539 |
case 'm': |
| 13540 |
output = 'एका मिनिटा'; |
| 13541 |
break; |
| 13542 |
case 'mm': |
| 13543 |
output = '%d मिनिटां'; |
| 13544 |
break; |
| 13545 |
case 'h': |
| 13546 |
output = 'एका तासा'; |
| 13547 |
break; |
| 13548 |
case 'hh': |
| 13549 |
output = '%d तासां'; |
| 13550 |
break; |
| 13551 |
case 'd': |
| 13552 |
output = 'एका दिवसा'; |
| 13553 |
break; |
| 13554 |
case 'dd': |
| 13555 |
output = '%d दिवसां'; |
| 13556 |
break; |
| 13557 |
case 'M': |
| 13558 |
output = 'एका महिन्या'; |
| 13559 |
break; |
| 13560 |
case 'MM': |
| 13561 |
output = '%d महिन्यां'; |
| 13562 |
break; |
| 13563 |
case 'y': |
| 13564 |
output = 'एका वर्षा'; |
| 13565 |
break; |
| 13566 |
case 'yy': |
| 13567 |
output = '%d वर्षां'; |
| 13568 |
break; |
| 13569 |
} |
| 13570 |
} |
| 13571 |
return output.replace(/%d/i, number); |
| 13572 |
} |
| 13573 |
|
| 13574 |
hooks.defineLocale('mr', { |
| 13575 |
months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split( |
| 13576 |
'_' |
| 13577 |
), |
| 13578 |
monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split( |
| 13579 |
'_' |
| 13580 |
), |
| 13581 |
monthsParseExact: true, |
| 13582 |
weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), |
| 13583 |
weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'), |
| 13584 |
weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), |
| 13585 |
longDateFormat: { |
| 13586 |
LT: 'A h:mm वाजता', |
| 13587 |
LTS: 'A h:mm:ss वाजता', |
| 13588 |
L: 'DD/MM/YYYY', |
| 13589 |
LL: 'D MMMM YYYY', |
| 13590 |
LLL: 'D MMMM YYYY, A h:mm वाजता', |
| 13591 |
LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता', |
| 13592 |
}, |
| 13593 |
calendar: { |
| 13594 |
sameDay: '[आज] LT', |
| 13595 |
nextDay: '[उद्या] LT', |
| 13596 |
nextWeek: 'dddd, LT', |
| 13597 |
lastDay: '[काल] LT', |
| 13598 |
lastWeek: '[मागील] dddd, LT', |
| 13599 |
sameElse: 'L', |
| 13600 |
}, |
| 13601 |
relativeTime: { |
| 13602 |
future: '%sमध्ये', |
| 13603 |
past: '%sपूर्वी', |
| 13604 |
s: relativeTimeMr, |
| 13605 |
ss: relativeTimeMr, |
| 13606 |
m: relativeTimeMr, |
| 13607 |
mm: relativeTimeMr, |
| 13608 |
h: relativeTimeMr, |
| 13609 |
hh: relativeTimeMr, |
| 13610 |
d: relativeTimeMr, |
| 13611 |
dd: relativeTimeMr, |
| 13612 |
M: relativeTimeMr, |
| 13613 |
MM: relativeTimeMr, |
| 13614 |
y: relativeTimeMr, |
| 13615 |
yy: relativeTimeMr, |
| 13616 |
}, |
| 13617 |
preparse: function (string) { |
| 13618 |
return string.replace(/[१२३४५६७८९०]/g, function (match) { |
| 13619 |
return numberMap$b[match]; |
| 13620 |
}); |
| 13621 |
}, |
| 13622 |
postformat: function (string) { |
| 13623 |
return string.replace(/\d/g, function (match) { |
| 13624 |
return symbolMap$c[match]; |
| 13625 |
}); |
| 13626 |
}, |
| 13627 |
meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/, |
| 13628 |
meridiemHour: function (hour, meridiem) { |
| 13629 |
if (hour === 12) { |
| 13630 |
hour = 0; |
| 13631 |
} |
| 13632 |
if (meridiem === 'पहाटे' || meridiem === 'सकाळी') { |
| 13633 |
return hour; |
| 13634 |
} else if ( |
| 13635 |
meridiem === 'दुपारी' || |
| 13636 |
meridiem === 'सायंकाळी' || |
| 13637 |
meridiem === 'रात्री' |
| 13638 |
) { |
| 13639 |
return hour >= 12 ? hour : hour + 12; |
| 13640 |
} |
| 13641 |
}, |
| 13642 |
meridiem: function (hour, minute, isLower) { |
| 13643 |
if (hour >= 0 && hour < 6) { |
| 13644 |
return 'पहाटे'; |
| 13645 |
} else if (hour < 12) { |
| 13646 |
return 'सकाळी'; |
| 13647 |
} else if (hour < 17) { |
| 13648 |
return 'दुपारी'; |
| 13649 |
} else if (hour < 20) { |
| 13650 |
return 'सायंकाळी'; |
| 13651 |
} else { |
| 13652 |
return 'रात्री'; |
| 13653 |
} |
| 13654 |
}, |
| 13655 |
week: { |
| 13656 |
dow: 0, // Sunday is the first day of the week. |
| 13657 |
doy: 6, // The week that contains Jan 6th is the first week of the year. |
| 13658 |
}, |
| 13659 |
}); |
| 13660 |
|
| 13661 |
//! moment.js locale configuration |
| 13662 |
|
| 13663 |
hooks.defineLocale('ms-my', { |
| 13664 |
months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( |
| 13665 |
'_' |
| 13666 |
), |
| 13667 |
monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), |
| 13668 |
weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), |
| 13669 |
weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), |
| 13670 |
weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), |
| 13671 |
longDateFormat: { |
| 13672 |
LT: 'HH.mm', |
| 13673 |
LTS: 'HH.mm.ss', |
| 13674 |
L: 'DD/MM/YYYY', |
| 13675 |
LL: 'D MMMM YYYY', |
| 13676 |
LLL: 'D MMMM YYYY [pukul] HH.mm', |
| 13677 |
LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', |
| 13678 |
}, |
| 13679 |
meridiemParse: /pagi|tengahari|petang|malam/, |
| 13680 |
meridiemHour: function (hour, meridiem) { |
| 13681 |
if (hour === 12) { |
| 13682 |
hour = 0; |
| 13683 |
} |
| 13684 |
if (meridiem === 'pagi') { |
| 13685 |
return hour; |
| 13686 |
} else if (meridiem === 'tengahari') { |
| 13687 |
return hour >= 11 ? hour : hour + 12; |
| 13688 |
} else if (meridiem === 'petang' || meridiem === 'malam') { |
| 13689 |
return hour + 12; |
| 13690 |
} |
| 13691 |
}, |
| 13692 |
meridiem: function (hours, minutes, isLower) { |
| 13693 |
if (hours < 11) { |
| 13694 |
return 'pagi'; |
| 13695 |
} else if (hours < 15) { |
| 13696 |
return 'tengahari'; |
| 13697 |
} else if (hours < 19) { |
| 13698 |
return 'petang'; |
| 13699 |
} else { |
| 13700 |
return 'malam'; |
| 13701 |
} |
| 13702 |
}, |
| 13703 |
calendar: { |
| 13704 |
sameDay: '[Hari ini pukul] LT', |
| 13705 |
nextDay: '[Esok pukul] LT', |
| 13706 |
nextWeek: 'dddd [pukul] LT', |
| 13707 |
lastDay: '[Kelmarin pukul] LT', |
| 13708 |
lastWeek: 'dddd [lepas pukul] LT', |
| 13709 |
sameElse: 'L', |
| 13710 |
}, |
| 13711 |
relativeTime: { |
| 13712 |
future: 'dalam %s', |
| 13713 |
past: '%s yang lepas', |
| 13714 |
s: 'beberapa saat', |
| 13715 |
ss: '%d saat', |
| 13716 |
m: 'seminit', |
| 13717 |
mm: '%d minit', |
| 13718 |
h: 'sejam', |
| 13719 |
hh: '%d jam', |
| 13720 |
d: 'sehari', |
| 13721 |
dd: '%d hari', |
| 13722 |
M: 'sebulan', |
| 13723 |
MM: '%d bulan', |
| 13724 |
y: 'setahun', |
| 13725 |
yy: '%d tahun', |
| 13726 |
}, |
| 13727 |
week: { |
| 13728 |
dow: 1, // Monday is the first day of the week. |
| 13729 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 13730 |
}, |
| 13731 |
}); |
| 13732 |
|
| 13733 |
//! moment.js locale configuration |
| 13734 |
|
| 13735 |
hooks.defineLocale('ms', { |
| 13736 |
months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( |
| 13737 |
'_' |
| 13738 |
), |
| 13739 |
monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), |
| 13740 |
weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), |
| 13741 |
weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), |
| 13742 |
weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), |
| 13743 |
longDateFormat: { |
| 13744 |
LT: 'HH.mm', |
| 13745 |
LTS: 'HH.mm.ss', |
| 13746 |
L: 'DD/MM/YYYY', |
| 13747 |
LL: 'D MMMM YYYY', |
| 13748 |
LLL: 'D MMMM YYYY [pukul] HH.mm', |
| 13749 |
LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', |
| 13750 |
}, |
| 13751 |
meridiemParse: /pagi|tengahari|petang|malam/, |
| 13752 |
meridiemHour: function (hour, meridiem) { |
| 13753 |
if (hour === 12) { |
| 13754 |
hour = 0; |
| 13755 |
} |
| 13756 |
if (meridiem === 'pagi') { |
| 13757 |
return hour; |
| 13758 |
} else if (meridiem === 'tengahari') { |
| 13759 |
return hour >= 11 ? hour : hour + 12; |
| 13760 |
} else if (meridiem === 'petang' || meridiem === 'malam') { |
| 13761 |
return hour + 12; |
| 13762 |
} |
| 13763 |
}, |
| 13764 |
meridiem: function (hours, minutes, isLower) { |
| 13765 |
if (hours < 11) { |
| 13766 |
return 'pagi'; |
| 13767 |
} else if (hours < 15) { |
| 13768 |
return 'tengahari'; |
| 13769 |
} else if (hours < 19) { |
| 13770 |
return 'petang'; |
| 13771 |
} else { |
| 13772 |
return 'malam'; |
| 13773 |
} |
| 13774 |
}, |
| 13775 |
calendar: { |
| 13776 |
sameDay: '[Hari ini pukul] LT', |
| 13777 |
nextDay: '[Esok pukul] LT', |
| 13778 |
nextWeek: 'dddd [pukul] LT', |
| 13779 |
lastDay: '[Kelmarin pukul] LT', |
| 13780 |
lastWeek: 'dddd [lepas pukul] LT', |
| 13781 |
sameElse: 'L', |
| 13782 |
}, |
| 13783 |
relativeTime: { |
| 13784 |
future: 'dalam %s', |
| 13785 |
past: '%s yang lepas', |
| 13786 |
s: 'beberapa saat', |
| 13787 |
ss: '%d saat', |
| 13788 |
m: 'seminit', |
| 13789 |
mm: '%d minit', |
| 13790 |
h: 'sejam', |
| 13791 |
hh: '%d jam', |
| 13792 |
d: 'sehari', |
| 13793 |
dd: '%d hari', |
| 13794 |
M: 'sebulan', |
| 13795 |
MM: '%d bulan', |
| 13796 |
y: 'setahun', |
| 13797 |
yy: '%d tahun', |
| 13798 |
}, |
| 13799 |
week: { |
| 13800 |
dow: 1, // Monday is the first day of the week. |
| 13801 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 13802 |
}, |
| 13803 |
}); |
| 13804 |
|
| 13805 |
//! moment.js locale configuration |
| 13806 |
|
| 13807 |
hooks.defineLocale('mt', { |
| 13808 |
months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split( |
| 13809 |
'_' |
| 13810 |
), |
| 13811 |
monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'), |
| 13812 |
weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split( |
| 13813 |
'_' |
| 13814 |
), |
| 13815 |
weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'), |
| 13816 |
weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'), |
| 13817 |
longDateFormat: { |
| 13818 |
LT: 'HH:mm', |
| 13819 |
LTS: 'HH:mm:ss', |
| 13820 |
L: 'DD/MM/YYYY', |
| 13821 |
LL: 'D MMMM YYYY', |
| 13822 |
LLL: 'D MMMM YYYY HH:mm', |
| 13823 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 13824 |
}, |
| 13825 |
calendar: { |
| 13826 |
sameDay: '[Illum fil-]LT', |
| 13827 |
nextDay: '[Għada fil-]LT', |
| 13828 |
nextWeek: 'dddd [fil-]LT', |
| 13829 |
lastDay: '[Il-bieraħ fil-]LT', |
| 13830 |
lastWeek: 'dddd [li għadda] [fil-]LT', |
| 13831 |
sameElse: 'L', |
| 13832 |
}, |
| 13833 |
relativeTime: { |
| 13834 |
future: 'f’ %s', |
| 13835 |
past: '%s ilu', |
| 13836 |
s: 'ftit sekondi', |
| 13837 |
ss: '%d sekondi', |
| 13838 |
m: 'minuta', |
| 13839 |
mm: '%d minuti', |
| 13840 |
h: 'siegħa', |
| 13841 |
hh: '%d siegħat', |
| 13842 |
d: 'ġurnata', |
| 13843 |
dd: '%d ġranet', |
| 13844 |
M: 'xahar', |
| 13845 |
MM: '%d xhur', |
| 13846 |
y: 'sena', |
| 13847 |
yy: '%d sni', |
| 13848 |
}, |
| 13849 |
dayOfMonthOrdinalParse: /\d{1,2}º/, |
| 13850 |
ordinal: '%dº', |
| 13851 |
week: { |
| 13852 |
dow: 1, // Monday is the first day of the week. |
| 13853 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 13854 |
}, |
| 13855 |
}); |
| 13856 |
|
| 13857 |
//! moment.js locale configuration |
| 13858 |
|
| 13859 |
var symbolMap$d = { |
| 13860 |
1: '၁', |
| 13861 |
2: '၂', |
| 13862 |
3: '၃', |
| 13863 |
4: '၄', |
| 13864 |
5: '၅', |
| 13865 |
6: '၆', |
| 13866 |
7: '၇', |
| 13867 |
8: '၈', |
| 13868 |
9: '၉', |
| 13869 |
0: '၀', |
| 13870 |
}, |
| 13871 |
numberMap$c = { |
| 13872 |
'၁': '1', |
| 13873 |
'၂': '2', |
| 13874 |
'၃': '3', |
| 13875 |
'၄': '4', |
| 13876 |
'၅': '5', |
| 13877 |
'၆': '6', |
| 13878 |
'၇': '7', |
| 13879 |
'၈': '8', |
| 13880 |
'၉': '9', |
| 13881 |
'၀': '0', |
| 13882 |
}; |
| 13883 |
|
| 13884 |
hooks.defineLocale('my', { |
| 13885 |
months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split( |
| 13886 |
'_' |
| 13887 |
), |
| 13888 |
monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'), |
| 13889 |
weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split( |
| 13890 |
'_' |
| 13891 |
), |
| 13892 |
weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), |
| 13893 |
weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), |
| 13894 |
|
| 13895 |
longDateFormat: { |
| 13896 |
LT: 'HH:mm', |
| 13897 |
LTS: 'HH:mm:ss', |
| 13898 |
L: 'DD/MM/YYYY', |
| 13899 |
LL: 'D MMMM YYYY', |
| 13900 |
LLL: 'D MMMM YYYY HH:mm', |
| 13901 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 13902 |
}, |
| 13903 |
calendar: { |
| 13904 |
sameDay: '[ယနေ.] LT [မှာ]', |
| 13905 |
nextDay: '[မနက်ဖြန်] LT [မှာ]', |
| 13906 |
nextWeek: 'dddd LT [မှာ]', |
| 13907 |
lastDay: '[မနေ.က] LT [မှာ]', |
| 13908 |
lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]', |
| 13909 |
sameElse: 'L', |
| 13910 |
}, |
| 13911 |
relativeTime: { |
| 13912 |
future: 'လာမည့် %s မှာ', |
| 13913 |
past: 'လွန်ခဲ့သော %s က', |
| 13914 |
s: 'စက္ကန်.အနည်းငယ်', |
| 13915 |
ss: '%d စက္ကန့်', |
| 13916 |
m: 'တစ်မိနစ်', |
| 13917 |
mm: '%d မိနစ်', |
| 13918 |
h: 'တစ်နာရီ', |
| 13919 |
hh: '%d နာရီ', |
| 13920 |
d: 'တစ်ရက်', |
| 13921 |
dd: '%d ရက်', |
| 13922 |
M: 'တစ်လ', |
| 13923 |
MM: '%d လ', |
| 13924 |
y: 'တစ်နှစ်', |
| 13925 |
yy: '%d နှစ်', |
| 13926 |
}, |
| 13927 |
preparse: function (string) { |
| 13928 |
return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) { |
| 13929 |
return numberMap$c[match]; |
| 13930 |
}); |
| 13931 |
}, |
| 13932 |
postformat: function (string) { |
| 13933 |
return string.replace(/\d/g, function (match) { |
| 13934 |
return symbolMap$d[match]; |
| 13935 |
}); |
| 13936 |
}, |
| 13937 |
week: { |
| 13938 |
dow: 1, // Monday is the first day of the week. |
| 13939 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 13940 |
}, |
| 13941 |
}); |
| 13942 |
|
| 13943 |
//! moment.js locale configuration |
| 13944 |
|
| 13945 |
hooks.defineLocale('nb', { |
| 13946 |
months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( |
| 13947 |
'_' |
| 13948 |
), |
| 13949 |
monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split( |
| 13950 |
'_' |
| 13951 |
), |
| 13952 |
monthsParseExact: true, |
| 13953 |
weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), |
| 13954 |
weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'), |
| 13955 |
weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), |
| 13956 |
weekdaysParseExact: true, |
| 13957 |
longDateFormat: { |
| 13958 |
LT: 'HH:mm', |
| 13959 |
LTS: 'HH:mm:ss', |
| 13960 |
L: 'DD.MM.YYYY', |
| 13961 |
LL: 'D. MMMM YYYY', |
| 13962 |
LLL: 'D. MMMM YYYY [kl.] HH:mm', |
| 13963 |
LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm', |
| 13964 |
}, |
| 13965 |
calendar: { |
| 13966 |
sameDay: '[i dag kl.] LT', |
| 13967 |
nextDay: '[i morgen kl.] LT', |
| 13968 |
nextWeek: 'dddd [kl.] LT', |
| 13969 |
lastDay: '[i går kl.] LT', |
| 13970 |
lastWeek: '[forrige] dddd [kl.] LT', |
| 13971 |
sameElse: 'L', |
| 13972 |
}, |
| 13973 |
relativeTime: { |
| 13974 |
future: 'om %s', |
| 13975 |
past: '%s siden', |
| 13976 |
s: 'noen sekunder', |
| 13977 |
ss: '%d sekunder', |
| 13978 |
m: 'ett minutt', |
| 13979 |
mm: '%d minutter', |
| 13980 |
h: 'en time', |
| 13981 |
hh: '%d timer', |
| 13982 |
d: 'en dag', |
| 13983 |
dd: '%d dager', |
| 13984 |
w: 'en uke', |
| 13985 |
ww: '%d uker', |
| 13986 |
M: 'en måned', |
| 13987 |
MM: '%d måneder', |
| 13988 |
y: 'ett år', |
| 13989 |
yy: '%d år', |
| 13990 |
}, |
| 13991 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 13992 |
ordinal: '%d.', |
| 13993 |
week: { |
| 13994 |
dow: 1, // Monday is the first day of the week. |
| 13995 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 13996 |
}, |
| 13997 |
}); |
| 13998 |
|
| 13999 |
//! moment.js locale configuration |
| 14000 |
|
| 14001 |
var symbolMap$e = { |
| 14002 |
1: '१', |
| 14003 |
2: '२', |
| 14004 |
3: '३', |
| 14005 |
4: '४', |
| 14006 |
5: '५', |
| 14007 |
6: '६', |
| 14008 |
7: '७', |
| 14009 |
8: '८', |
| 14010 |
9: '९', |
| 14011 |
0: '०', |
| 14012 |
}, |
| 14013 |
numberMap$d = { |
| 14014 |
'१': '1', |
| 14015 |
'२': '2', |
| 14016 |
'३': '3', |
| 14017 |
'४': '4', |
| 14018 |
'५': '5', |
| 14019 |
'६': '6', |
| 14020 |
'७': '7', |
| 14021 |
'८': '8', |
| 14022 |
'९': '9', |
| 14023 |
'०': '0', |
| 14024 |
}; |
| 14025 |
|
| 14026 |
hooks.defineLocale('ne', { |
| 14027 |
months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split( |
| 14028 |
'_' |
| 14029 |
), |
| 14030 |
monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split( |
| 14031 |
'_' |
| 14032 |
), |
| 14033 |
monthsParseExact: true, |
| 14034 |
weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split( |
| 14035 |
'_' |
| 14036 |
), |
| 14037 |
weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'), |
| 14038 |
weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'), |
| 14039 |
weekdaysParseExact: true, |
| 14040 |
longDateFormat: { |
| 14041 |
LT: 'Aको h:mm बजे', |
| 14042 |
LTS: 'Aको h:mm:ss बजे', |
| 14043 |
L: 'DD/MM/YYYY', |
| 14044 |
LL: 'D MMMM YYYY', |
| 14045 |
LLL: 'D MMMM YYYY, Aको h:mm बजे', |
| 14046 |
LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे', |
| 14047 |
}, |
| 14048 |
preparse: function (string) { |
| 14049 |
return string.replace(/[१२३४५६७८९०]/g, function (match) { |
| 14050 |
return numberMap$d[match]; |
| 14051 |
}); |
| 14052 |
}, |
| 14053 |
postformat: function (string) { |
| 14054 |
return string.replace(/\d/g, function (match) { |
| 14055 |
return symbolMap$e[match]; |
| 14056 |
}); |
| 14057 |
}, |
| 14058 |
meridiemParse: /राति|बिहान|दिउँसो|साँझ/, |
| 14059 |
meridiemHour: function (hour, meridiem) { |
| 14060 |
if (hour === 12) { |
| 14061 |
hour = 0; |
| 14062 |
} |
| 14063 |
if (meridiem === 'राति') { |
| 14064 |
return hour < 4 ? hour : hour + 12; |
| 14065 |
} else if (meridiem === 'बिहान') { |
| 14066 |
return hour; |
| 14067 |
} else if (meridiem === 'दिउँसो') { |
| 14068 |
return hour >= 10 ? hour : hour + 12; |
| 14069 |
} else if (meridiem === 'साँझ') { |
| 14070 |
return hour + 12; |
| 14071 |
} |
| 14072 |
}, |
| 14073 |
meridiem: function (hour, minute, isLower) { |
| 14074 |
if (hour < 3) { |
| 14075 |
return 'राति'; |
| 14076 |
} else if (hour < 12) { |
| 14077 |
return 'बिहान'; |
| 14078 |
} else if (hour < 16) { |
| 14079 |
return 'दिउँसो'; |
| 14080 |
} else if (hour < 20) { |
| 14081 |
return 'साँझ'; |
| 14082 |
} else { |
| 14083 |
return 'राति'; |
| 14084 |
} |
| 14085 |
}, |
| 14086 |
calendar: { |
| 14087 |
sameDay: '[आज] LT', |
| 14088 |
nextDay: '[भोलि] LT', |
| 14089 |
nextWeek: '[आउँदो] dddd[,] LT', |
| 14090 |
lastDay: '[हिजो] LT', |
| 14091 |
lastWeek: '[गएको] dddd[,] LT', |
| 14092 |
sameElse: 'L', |
| 14093 |
}, |
| 14094 |
relativeTime: { |
| 14095 |
future: '%sमा', |
| 14096 |
past: '%s अगाडि', |
| 14097 |
s: 'केही क्षण', |
| 14098 |
ss: '%d सेकेण्ड', |
| 14099 |
m: 'एक मिनेट', |
| 14100 |
mm: '%d मिनेट', |
| 14101 |
h: 'एक घण्टा', |
| 14102 |
hh: '%d घण्टा', |
| 14103 |
d: 'एक दिन', |
| 14104 |
dd: '%d दिन', |
| 14105 |
M: 'एक महिना', |
| 14106 |
MM: '%d महिना', |
| 14107 |
y: 'एक बर्ष', |
| 14108 |
yy: '%d बर्ष', |
| 14109 |
}, |
| 14110 |
week: { |
| 14111 |
dow: 0, // Sunday is the first day of the week. |
| 14112 |
doy: 6, // The week that contains Jan 6th is the first week of the year. |
| 14113 |
}, |
| 14114 |
}); |
| 14115 |
|
| 14116 |
//! moment.js locale configuration |
| 14117 |
|
| 14118 |
var monthsShortWithDots$1 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( |
| 14119 |
'_' |
| 14120 |
), |
| 14121 |
monthsShortWithoutDots$1 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split( |
| 14122 |
'_' |
| 14123 |
), |
| 14124 |
monthsParse$8 = [ |
| 14125 |
/^jan/i, |
| 14126 |
/^feb/i, |
| 14127 |
/^maart|mrt.?$/i, |
| 14128 |
/^apr/i, |
| 14129 |
/^mei$/i, |
| 14130 |
/^jun[i.]?$/i, |
| 14131 |
/^jul[i.]?$/i, |
| 14132 |
/^aug/i, |
| 14133 |
/^sep/i, |
| 14134 |
/^okt/i, |
| 14135 |
/^nov/i, |
| 14136 |
/^dec/i, |
| 14137 |
], |
| 14138 |
monthsRegex$8 = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; |
| 14139 |
|
| 14140 |
hooks.defineLocale('nl-be', { |
| 14141 |
months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( |
| 14142 |
'_' |
| 14143 |
), |
| 14144 |
monthsShort: function (m, format) { |
| 14145 |
if (!m) { |
| 14146 |
return monthsShortWithDots$1; |
| 14147 |
} else if (/-MMM-/.test(format)) { |
| 14148 |
return monthsShortWithoutDots$1[m.month()]; |
| 14149 |
} else { |
| 14150 |
return monthsShortWithDots$1[m.month()]; |
| 14151 |
} |
| 14152 |
}, |
| 14153 |
|
| 14154 |
monthsRegex: monthsRegex$8, |
| 14155 |
monthsShortRegex: monthsRegex$8, |
| 14156 |
monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, |
| 14157 |
monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, |
| 14158 |
|
| 14159 |
monthsParse: monthsParse$8, |
| 14160 |
longMonthsParse: monthsParse$8, |
| 14161 |
shortMonthsParse: monthsParse$8, |
| 14162 |
|
| 14163 |
weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split( |
| 14164 |
'_' |
| 14165 |
), |
| 14166 |
weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), |
| 14167 |
weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), |
| 14168 |
weekdaysParseExact: true, |
| 14169 |
longDateFormat: { |
| 14170 |
LT: 'HH:mm', |
| 14171 |
LTS: 'HH:mm:ss', |
| 14172 |
L: 'DD/MM/YYYY', |
| 14173 |
LL: 'D MMMM YYYY', |
| 14174 |
LLL: 'D MMMM YYYY HH:mm', |
| 14175 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 14176 |
}, |
| 14177 |
calendar: { |
| 14178 |
sameDay: '[vandaag om] LT', |
| 14179 |
nextDay: '[morgen om] LT', |
| 14180 |
nextWeek: 'dddd [om] LT', |
| 14181 |
lastDay: '[gisteren om] LT', |
| 14182 |
lastWeek: '[afgelopen] dddd [om] LT', |
| 14183 |
sameElse: 'L', |
| 14184 |
}, |
| 14185 |
relativeTime: { |
| 14186 |
future: 'over %s', |
| 14187 |
past: '%s geleden', |
| 14188 |
s: 'een paar seconden', |
| 14189 |
ss: '%d seconden', |
| 14190 |
m: 'één minuut', |
| 14191 |
mm: '%d minuten', |
| 14192 |
h: 'één uur', |
| 14193 |
hh: '%d uur', |
| 14194 |
d: 'één dag', |
| 14195 |
dd: '%d dagen', |
| 14196 |
M: 'één maand', |
| 14197 |
MM: '%d maanden', |
| 14198 |
y: 'één jaar', |
| 14199 |
yy: '%d jaar', |
| 14200 |
}, |
| 14201 |
dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, |
| 14202 |
ordinal: function (number) { |
| 14203 |
return ( |
| 14204 |
number + |
| 14205 |
(number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') |
| 14206 |
); |
| 14207 |
}, |
| 14208 |
week: { |
| 14209 |
dow: 1, // Monday is the first day of the week. |
| 14210 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 14211 |
}, |
| 14212 |
}); |
| 14213 |
|
| 14214 |
//! moment.js locale configuration |
| 14215 |
|
| 14216 |
var monthsShortWithDots$2 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( |
| 14217 |
'_' |
| 14218 |
), |
| 14219 |
monthsShortWithoutDots$2 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split( |
| 14220 |
'_' |
| 14221 |
), |
| 14222 |
monthsParse$9 = [ |
| 14223 |
/^jan/i, |
| 14224 |
/^feb/i, |
| 14225 |
/^maart|mrt.?$/i, |
| 14226 |
/^apr/i, |
| 14227 |
/^mei$/i, |
| 14228 |
/^jun[i.]?$/i, |
| 14229 |
/^jul[i.]?$/i, |
| 14230 |
/^aug/i, |
| 14231 |
/^sep/i, |
| 14232 |
/^okt/i, |
| 14233 |
/^nov/i, |
| 14234 |
/^dec/i, |
| 14235 |
], |
| 14236 |
monthsRegex$9 = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; |
| 14237 |
|
| 14238 |
hooks.defineLocale('nl', { |
| 14239 |
months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( |
| 14240 |
'_' |
| 14241 |
), |
| 14242 |
monthsShort: function (m, format) { |
| 14243 |
if (!m) { |
| 14244 |
return monthsShortWithDots$2; |
| 14245 |
} else if (/-MMM-/.test(format)) { |
| 14246 |
return monthsShortWithoutDots$2[m.month()]; |
| 14247 |
} else { |
| 14248 |
return monthsShortWithDots$2[m.month()]; |
| 14249 |
} |
| 14250 |
}, |
| 14251 |
|
| 14252 |
monthsRegex: monthsRegex$9, |
| 14253 |
monthsShortRegex: monthsRegex$9, |
| 14254 |
monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, |
| 14255 |
monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, |
| 14256 |
|
| 14257 |
monthsParse: monthsParse$9, |
| 14258 |
longMonthsParse: monthsParse$9, |
| 14259 |
shortMonthsParse: monthsParse$9, |
| 14260 |
|
| 14261 |
weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split( |
| 14262 |
'_' |
| 14263 |
), |
| 14264 |
weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), |
| 14265 |
weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), |
| 14266 |
weekdaysParseExact: true, |
| 14267 |
longDateFormat: { |
| 14268 |
LT: 'HH:mm', |
| 14269 |
LTS: 'HH:mm:ss', |
| 14270 |
L: 'DD-MM-YYYY', |
| 14271 |
LL: 'D MMMM YYYY', |
| 14272 |
LLL: 'D MMMM YYYY HH:mm', |
| 14273 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 14274 |
}, |
| 14275 |
calendar: { |
| 14276 |
sameDay: '[vandaag om] LT', |
| 14277 |
nextDay: '[morgen om] LT', |
| 14278 |
nextWeek: 'dddd [om] LT', |
| 14279 |
lastDay: '[gisteren om] LT', |
| 14280 |
lastWeek: '[afgelopen] dddd [om] LT', |
| 14281 |
sameElse: 'L', |
| 14282 |
}, |
| 14283 |
relativeTime: { |
| 14284 |
future: 'over %s', |
| 14285 |
past: '%s geleden', |
| 14286 |
s: 'een paar seconden', |
| 14287 |
ss: '%d seconden', |
| 14288 |
m: 'één minuut', |
| 14289 |
mm: '%d minuten', |
| 14290 |
h: 'één uur', |
| 14291 |
hh: '%d uur', |
| 14292 |
d: 'één dag', |
| 14293 |
dd: '%d dagen', |
| 14294 |
w: 'één week', |
| 14295 |
ww: '%d weken', |
| 14296 |
M: 'één maand', |
| 14297 |
MM: '%d maanden', |
| 14298 |
y: 'één jaar', |
| 14299 |
yy: '%d jaar', |
| 14300 |
}, |
| 14301 |
dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, |
| 14302 |
ordinal: function (number) { |
| 14303 |
return ( |
| 14304 |
number + |
| 14305 |
(number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') |
| 14306 |
); |
| 14307 |
}, |
| 14308 |
week: { |
| 14309 |
dow: 1, // Monday is the first day of the week. |
| 14310 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 14311 |
}, |
| 14312 |
}); |
| 14313 |
|
| 14314 |
//! moment.js locale configuration |
| 14315 |
|
| 14316 |
hooks.defineLocale('nn', { |
| 14317 |
months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( |
| 14318 |
'_' |
| 14319 |
), |
| 14320 |
monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split( |
| 14321 |
'_' |
| 14322 |
), |
| 14323 |
monthsParseExact: true, |
| 14324 |
weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'), |
| 14325 |
weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'), |
| 14326 |
weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'), |
| 14327 |
weekdaysParseExact: true, |
| 14328 |
longDateFormat: { |
| 14329 |
LT: 'HH:mm', |
| 14330 |
LTS: 'HH:mm:ss', |
| 14331 |
L: 'DD.MM.YYYY', |
| 14332 |
LL: 'D. MMMM YYYY', |
| 14333 |
LLL: 'D. MMMM YYYY [kl.] H:mm', |
| 14334 |
LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm', |
| 14335 |
}, |
| 14336 |
calendar: { |
| 14337 |
sameDay: '[I dag klokka] LT', |
| 14338 |
nextDay: '[I morgon klokka] LT', |
| 14339 |
nextWeek: 'dddd [klokka] LT', |
| 14340 |
lastDay: '[I går klokka] LT', |
| 14341 |
lastWeek: '[Føregåande] dddd [klokka] LT', |
| 14342 |
sameElse: 'L', |
| 14343 |
}, |
| 14344 |
relativeTime: { |
| 14345 |
future: 'om %s', |
| 14346 |
past: '%s sidan', |
| 14347 |
s: 'nokre sekund', |
| 14348 |
ss: '%d sekund', |
| 14349 |
m: 'eit minutt', |
| 14350 |
mm: '%d minutt', |
| 14351 |
h: 'ein time', |
| 14352 |
hh: '%d timar', |
| 14353 |
d: 'ein dag', |
| 14354 |
dd: '%d dagar', |
| 14355 |
w: 'ei veke', |
| 14356 |
ww: '%d veker', |
| 14357 |
M: 'ein månad', |
| 14358 |
MM: '%d månader', |
| 14359 |
y: 'eit år', |
| 14360 |
yy: '%d år', |
| 14361 |
}, |
| 14362 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 14363 |
ordinal: '%d.', |
| 14364 |
week: { |
| 14365 |
dow: 1, // Monday is the first day of the week. |
| 14366 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 14367 |
}, |
| 14368 |
}); |
| 14369 |
|
| 14370 |
//! moment.js locale configuration |
| 14371 |
|
| 14372 |
hooks.defineLocale('oc-lnc', { |
| 14373 |
months: { |
| 14374 |
standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split( |
| 14375 |
'_' |
| 14376 |
), |
| 14377 |
format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split( |
| 14378 |
'_' |
| 14379 |
), |
| 14380 |
isFormat: /D[oD]?(\s)+MMMM/, |
| 14381 |
}, |
| 14382 |
monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split( |
| 14383 |
'_' |
| 14384 |
), |
| 14385 |
monthsParseExact: true, |
| 14386 |
weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split( |
| 14387 |
'_' |
| 14388 |
), |
| 14389 |
weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'), |
| 14390 |
weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'), |
| 14391 |
weekdaysParseExact: true, |
| 14392 |
longDateFormat: { |
| 14393 |
LT: 'H:mm', |
| 14394 |
LTS: 'H:mm:ss', |
| 14395 |
L: 'DD/MM/YYYY', |
| 14396 |
LL: 'D MMMM [de] YYYY', |
| 14397 |
ll: 'D MMM YYYY', |
| 14398 |
LLL: 'D MMMM [de] YYYY [a] H:mm', |
| 14399 |
lll: 'D MMM YYYY, H:mm', |
| 14400 |
LLLL: 'dddd D MMMM [de] YYYY [a] H:mm', |
| 14401 |
llll: 'ddd D MMM YYYY, H:mm', |
| 14402 |
}, |
| 14403 |
calendar: { |
| 14404 |
sameDay: '[uèi a] LT', |
| 14405 |
nextDay: '[deman a] LT', |
| 14406 |
nextWeek: 'dddd [a] LT', |
| 14407 |
lastDay: '[ièr a] LT', |
| 14408 |
lastWeek: 'dddd [passat a] LT', |
| 14409 |
sameElse: 'L', |
| 14410 |
}, |
| 14411 |
relativeTime: { |
| 14412 |
future: "d'aquí %s", |
| 14413 |
past: 'fa %s', |
| 14414 |
s: 'unas segondas', |
| 14415 |
ss: '%d segondas', |
| 14416 |
m: 'una minuta', |
| 14417 |
mm: '%d minutas', |
| 14418 |
h: 'una ora', |
| 14419 |
hh: '%d oras', |
| 14420 |
d: 'un jorn', |
| 14421 |
dd: '%d jorns', |
| 14422 |
M: 'un mes', |
| 14423 |
MM: '%d meses', |
| 14424 |
y: 'un an', |
| 14425 |
yy: '%d ans', |
| 14426 |
}, |
| 14427 |
dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, |
| 14428 |
ordinal: function (number, period) { |
| 14429 |
var output = |
| 14430 |
number === 1 |
| 14431 |
? 'r' |
| 14432 |
: number === 2 |
| 14433 |
? 'n' |
| 14434 |
: number === 3 |
| 14435 |
? 'r' |
| 14436 |
: number === 4 |
| 14437 |
? 't' |
| 14438 |
: 'è'; |
| 14439 |
if (period === 'w' || period === 'W') { |
| 14440 |
output = 'a'; |
| 14441 |
} |
| 14442 |
return number + output; |
| 14443 |
}, |
| 14444 |
week: { |
| 14445 |
dow: 1, // Monday is the first day of the week. |
| 14446 |
doy: 4, |
| 14447 |
}, |
| 14448 |
}); |
| 14449 |
|
| 14450 |
//! moment.js locale configuration |
| 14451 |
|
| 14452 |
var symbolMap$f = { |
| 14453 |
1: '੧', |
| 14454 |
2: '੨', |
| 14455 |
3: '੩', |
| 14456 |
4: '੪', |
| 14457 |
5: '੫', |
| 14458 |
6: '੬', |
| 14459 |
7: '੭', |
| 14460 |
8: '੮', |
| 14461 |
9: '੯', |
| 14462 |
0: '੦', |
| 14463 |
}, |
| 14464 |
numberMap$e = { |
| 14465 |
'੧': '1', |
| 14466 |
'੨': '2', |
| 14467 |
'੩': '3', |
| 14468 |
'੪': '4', |
| 14469 |
'੫': '5', |
| 14470 |
'੬': '6', |
| 14471 |
'੭': '7', |
| 14472 |
'੮': '8', |
| 14473 |
'੯': '9', |
| 14474 |
'੦': '0', |
| 14475 |
}; |
| 14476 |
|
| 14477 |
hooks.defineLocale('pa-in', { |
| 14478 |
// There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi. |
| 14479 |
months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( |
| 14480 |
'_' |
| 14481 |
), |
| 14482 |
monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( |
| 14483 |
'_' |
| 14484 |
), |
| 14485 |
weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split( |
| 14486 |
'_' |
| 14487 |
), |
| 14488 |
weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), |
| 14489 |
weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), |
| 14490 |
longDateFormat: { |
| 14491 |
LT: 'A h:mm ਵਜੇ', |
| 14492 |
LTS: 'A h:mm:ss ਵਜੇ', |
| 14493 |
L: 'DD/MM/YYYY', |
| 14494 |
LL: 'D MMMM YYYY', |
| 14495 |
LLL: 'D MMMM YYYY, A h:mm ਵਜੇ', |
| 14496 |
LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ', |
| 14497 |
}, |
| 14498 |
calendar: { |
| 14499 |
sameDay: '[ਅਜ] LT', |
| 14500 |
nextDay: '[ਕਲ] LT', |
| 14501 |
nextWeek: '[ਅਗਲਾ] dddd, LT', |
| 14502 |
lastDay: '[ਕਲ] LT', |
| 14503 |
lastWeek: '[ਪਿਛਲੇ] dddd, LT', |
| 14504 |
sameElse: 'L', |
| 14505 |
}, |
| 14506 |
relativeTime: { |
| 14507 |
future: '%s ਵਿੱਚ', |
| 14508 |
past: '%s ਪਿਛਲੇ', |
| 14509 |
s: 'ਕੁਝ ਸਕਿੰਟ', |
| 14510 |
ss: '%d ਸਕਿੰਟ', |
| 14511 |
m: 'ਇਕ ਮਿੰਟ', |
| 14512 |
mm: '%d ਮਿੰਟ', |
| 14513 |
h: 'ਇੱਕ ਘੰਟਾ', |
| 14514 |
hh: '%d ਘੰਟੇ', |
| 14515 |
d: 'ਇੱਕ ਦਿਨ', |
| 14516 |
dd: '%d ਦਿਨ', |
| 14517 |
M: 'ਇੱਕ ਮਹੀਨਾ', |
| 14518 |
MM: '%d ਮਹੀਨੇ', |
| 14519 |
y: 'ਇੱਕ ਸਾਲ', |
| 14520 |
yy: '%d ਸਾਲ', |
| 14521 |
}, |
| 14522 |
preparse: function (string) { |
| 14523 |
return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) { |
| 14524 |
return numberMap$e[match]; |
| 14525 |
}); |
| 14526 |
}, |
| 14527 |
postformat: function (string) { |
| 14528 |
return string.replace(/\d/g, function (match) { |
| 14529 |
return symbolMap$f[match]; |
| 14530 |
}); |
| 14531 |
}, |
| 14532 |
// Punjabi notation for meridiems are quite fuzzy in practice. While there exists |
| 14533 |
// a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi. |
| 14534 |
meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/, |
| 14535 |
meridiemHour: function (hour, meridiem) { |
| 14536 |
if (hour === 12) { |
| 14537 |
hour = 0; |
| 14538 |
} |
| 14539 |
if (meridiem === 'ਰਾਤ') { |
| 14540 |
return hour < 4 ? hour : hour + 12; |
| 14541 |
} else if (meridiem === 'ਸਵੇਰ') { |
| 14542 |
return hour; |
| 14543 |
} else if (meridiem === 'ਦੁਪਹਿਰ') { |
| 14544 |
return hour >= 10 ? hour : hour + 12; |
| 14545 |
} else if (meridiem === 'ਸ਼ਾਮ') { |
| 14546 |
return hour + 12; |
| 14547 |
} |
| 14548 |
}, |
| 14549 |
meridiem: function (hour, minute, isLower) { |
| 14550 |
if (hour < 4) { |
| 14551 |
return 'ਰਾਤ'; |
| 14552 |
} else if (hour < 10) { |
| 14553 |
return 'ਸਵੇਰ'; |
| 14554 |
} else if (hour < 17) { |
| 14555 |
return 'ਦੁਪਹਿਰ'; |
| 14556 |
} else if (hour < 20) { |
| 14557 |
return 'ਸ਼ਾਮ'; |
| 14558 |
} else { |
| 14559 |
return 'ਰਾਤ'; |
| 14560 |
} |
| 14561 |
}, |
| 14562 |
week: { |
| 14563 |
dow: 0, // Sunday is the first day of the week. |
| 14564 |
doy: 6, // The week that contains Jan 6th is the first week of the year. |
| 14565 |
}, |
| 14566 |
}); |
| 14567 |
|
| 14568 |
//! moment.js locale configuration |
| 14569 |
|
| 14570 |
var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split( |
| 14571 |
'_' |
| 14572 |
), |
| 14573 |
monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split( |
| 14574 |
'_' |
| 14575 |
), |
| 14576 |
monthsParse$a = [ |
| 14577 |
/^sty/i, |
| 14578 |
/^lut/i, |
| 14579 |
/^mar/i, |
| 14580 |
/^kwi/i, |
| 14581 |
/^maj/i, |
| 14582 |
/^cze/i, |
| 14583 |
/^lip/i, |
| 14584 |
/^sie/i, |
| 14585 |
/^wrz/i, |
| 14586 |
/^paź/i, |
| 14587 |
/^lis/i, |
| 14588 |
/^gru/i, |
| 14589 |
]; |
| 14590 |
function plural$3(n) { |
| 14591 |
return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1; |
| 14592 |
} |
| 14593 |
function translate$8(number, withoutSuffix, key) { |
| 14594 |
var result = number + ' '; |
| 14595 |
switch (key) { |
| 14596 |
case 'ss': |
| 14597 |
return result + (plural$3(number) ? 'sekundy' : 'sekund'); |
| 14598 |
case 'm': |
| 14599 |
return withoutSuffix ? 'minuta' : 'minutę'; |
| 14600 |
case 'mm': |
| 14601 |
return result + (plural$3(number) ? 'minuty' : 'minut'); |
| 14602 |
case 'h': |
| 14603 |
return withoutSuffix ? 'godzina' : 'godzinę'; |
| 14604 |
case 'hh': |
| 14605 |
return result + (plural$3(number) ? 'godziny' : 'godzin'); |
| 14606 |
case 'ww': |
| 14607 |
return result + (plural$3(number) ? 'tygodnie' : 'tygodni'); |
| 14608 |
case 'MM': |
| 14609 |
return result + (plural$3(number) ? 'miesiące' : 'miesięcy'); |
| 14610 |
case 'yy': |
| 14611 |
return result + (plural$3(number) ? 'lata' : 'lat'); |
| 14612 |
} |
| 14613 |
} |
| 14614 |
|
| 14615 |
hooks.defineLocale('pl', { |
| 14616 |
months: function (momentToFormat, format) { |
| 14617 |
if (!momentToFormat) { |
| 14618 |
return monthsNominative; |
| 14619 |
} else if (/D MMMM/.test(format)) { |
| 14620 |
return monthsSubjective[momentToFormat.month()]; |
| 14621 |
} else { |
| 14622 |
return monthsNominative[momentToFormat.month()]; |
| 14623 |
} |
| 14624 |
}, |
| 14625 |
monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'), |
| 14626 |
monthsParse: monthsParse$a, |
| 14627 |
longMonthsParse: monthsParse$a, |
| 14628 |
shortMonthsParse: monthsParse$a, |
| 14629 |
weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split( |
| 14630 |
'_' |
| 14631 |
), |
| 14632 |
weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'), |
| 14633 |
weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'), |
| 14634 |
longDateFormat: { |
| 14635 |
LT: 'HH:mm', |
| 14636 |
LTS: 'HH:mm:ss', |
| 14637 |
L: 'DD.MM.YYYY', |
| 14638 |
LL: 'D MMMM YYYY', |
| 14639 |
LLL: 'D MMMM YYYY HH:mm', |
| 14640 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 14641 |
}, |
| 14642 |
calendar: { |
| 14643 |
sameDay: '[Dziś o] LT', |
| 14644 |
nextDay: '[Jutro o] LT', |
| 14645 |
nextWeek: function () { |
| 14646 |
switch (this.day()) { |
| 14647 |
case 0: |
| 14648 |
return '[W niedzielę o] LT'; |
| 14649 |
|
| 14650 |
case 2: |
| 14651 |
return '[We wtorek o] LT'; |
| 14652 |
|
| 14653 |
case 3: |
| 14654 |
return '[W środę o] LT'; |
| 14655 |
|
| 14656 |
case 6: |
| 14657 |
return '[W sobotę o] LT'; |
| 14658 |
|
| 14659 |
default: |
| 14660 |
return '[W] dddd [o] LT'; |
| 14661 |
} |
| 14662 |
}, |
| 14663 |
lastDay: '[Wczoraj o] LT', |
| 14664 |
lastWeek: function () { |
| 14665 |
switch (this.day()) { |
| 14666 |
case 0: |
| 14667 |
return '[W zeszłą niedzielę o] LT'; |
| 14668 |
case 3: |
| 14669 |
return '[W zeszłą środę o] LT'; |
| 14670 |
case 6: |
| 14671 |
return '[W zeszłą sobotę o] LT'; |
| 14672 |
default: |
| 14673 |
return '[W zeszły] dddd [o] LT'; |
| 14674 |
} |
| 14675 |
}, |
| 14676 |
sameElse: 'L', |
| 14677 |
}, |
| 14678 |
relativeTime: { |
| 14679 |
future: 'za %s', |
| 14680 |
past: '%s temu', |
| 14681 |
s: 'kilka sekund', |
| 14682 |
ss: translate$8, |
| 14683 |
m: translate$8, |
| 14684 |
mm: translate$8, |
| 14685 |
h: translate$8, |
| 14686 |
hh: translate$8, |
| 14687 |
d: '1 dzień', |
| 14688 |
dd: '%d dni', |
| 14689 |
w: 'tydzień', |
| 14690 |
ww: translate$8, |
| 14691 |
M: 'miesiąc', |
| 14692 |
MM: translate$8, |
| 14693 |
y: 'rok', |
| 14694 |
yy: translate$8, |
| 14695 |
}, |
| 14696 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 14697 |
ordinal: '%d.', |
| 14698 |
week: { |
| 14699 |
dow: 1, // Monday is the first day of the week. |
| 14700 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 14701 |
}, |
| 14702 |
}); |
| 14703 |
|
| 14704 |
//! moment.js locale configuration |
| 14705 |
|
| 14706 |
hooks.defineLocale('pt-br', { |
| 14707 |
months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split( |
| 14708 |
'_' |
| 14709 |
), |
| 14710 |
monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), |
| 14711 |
weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split( |
| 14712 |
'_' |
| 14713 |
), |
| 14714 |
weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'), |
| 14715 |
weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'), |
| 14716 |
weekdaysParseExact: true, |
| 14717 |
longDateFormat: { |
| 14718 |
LT: 'HH:mm', |
| 14719 |
LTS: 'HH:mm:ss', |
| 14720 |
L: 'DD/MM/YYYY', |
| 14721 |
LL: 'D [de] MMMM [de] YYYY', |
| 14722 |
LLL: 'D [de] MMMM [de] YYYY [às] HH:mm', |
| 14723 |
LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm', |
| 14724 |
}, |
| 14725 |
calendar: { |
| 14726 |
sameDay: '[Hoje às] LT', |
| 14727 |
nextDay: '[Amanhã às] LT', |
| 14728 |
nextWeek: 'dddd [às] LT', |
| 14729 |
lastDay: '[Ontem às] LT', |
| 14730 |
lastWeek: function () { |
| 14731 |
return this.day() === 0 || this.day() === 6 |
| 14732 |
? '[Último] dddd [às] LT' // Saturday + Sunday |
| 14733 |
: '[Última] dddd [às] LT'; // Monday - Friday |
| 14734 |
}, |
| 14735 |
sameElse: 'L', |
| 14736 |
}, |
| 14737 |
relativeTime: { |
| 14738 |
future: 'em %s', |
| 14739 |
past: 'há %s', |
| 14740 |
s: 'poucos segundos', |
| 14741 |
ss: '%d segundos', |
| 14742 |
m: 'um minuto', |
| 14743 |
mm: '%d minutos', |
| 14744 |
h: 'uma hora', |
| 14745 |
hh: '%d horas', |
| 14746 |
d: 'um dia', |
| 14747 |
dd: '%d dias', |
| 14748 |
M: 'um mês', |
| 14749 |
MM: '%d meses', |
| 14750 |
y: 'um ano', |
| 14751 |
yy: '%d anos', |
| 14752 |
}, |
| 14753 |
dayOfMonthOrdinalParse: /\d{1,2}º/, |
| 14754 |
ordinal: '%dº', |
| 14755 |
invalidDate: 'Data inválida', |
| 14756 |
}); |
| 14757 |
|
| 14758 |
//! moment.js locale configuration |
| 14759 |
|
| 14760 |
hooks.defineLocale('pt', { |
| 14761 |
months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split( |
| 14762 |
'_' |
| 14763 |
), |
| 14764 |
monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), |
| 14765 |
weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split( |
| 14766 |
'_' |
| 14767 |
), |
| 14768 |
weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), |
| 14769 |
weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), |
| 14770 |
weekdaysParseExact: true, |
| 14771 |
longDateFormat: { |
| 14772 |
LT: 'HH:mm', |
| 14773 |
LTS: 'HH:mm:ss', |
| 14774 |
L: 'DD/MM/YYYY', |
| 14775 |
LL: 'D [de] MMMM [de] YYYY', |
| 14776 |
LLL: 'D [de] MMMM [de] YYYY HH:mm', |
| 14777 |
LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm', |
| 14778 |
}, |
| 14779 |
calendar: { |
| 14780 |
sameDay: '[Hoje às] LT', |
| 14781 |
nextDay: '[Amanhã às] LT', |
| 14782 |
nextWeek: 'dddd [às] LT', |
| 14783 |
lastDay: '[Ontem às] LT', |
| 14784 |
lastWeek: function () { |
| 14785 |
return this.day() === 0 || this.day() === 6 |
| 14786 |
? '[Último] dddd [às] LT' // Saturday + Sunday |
| 14787 |
: '[Última] dddd [às] LT'; // Monday - Friday |
| 14788 |
}, |
| 14789 |
sameElse: 'L', |
| 14790 |
}, |
| 14791 |
relativeTime: { |
| 14792 |
future: 'em %s', |
| 14793 |
past: 'há %s', |
| 14794 |
s: 'segundos', |
| 14795 |
ss: '%d segundos', |
| 14796 |
m: 'um minuto', |
| 14797 |
mm: '%d minutos', |
| 14798 |
h: 'uma hora', |
| 14799 |
hh: '%d horas', |
| 14800 |
d: 'um dia', |
| 14801 |
dd: '%d dias', |
| 14802 |
w: 'uma semana', |
| 14803 |
ww: '%d semanas', |
| 14804 |
M: 'um mês', |
| 14805 |
MM: '%d meses', |
| 14806 |
y: 'um ano', |
| 14807 |
yy: '%d anos', |
| 14808 |
}, |
| 14809 |
dayOfMonthOrdinalParse: /\d{1,2}º/, |
| 14810 |
ordinal: '%dº', |
| 14811 |
week: { |
| 14812 |
dow: 1, // Monday is the first day of the week. |
| 14813 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 14814 |
}, |
| 14815 |
}); |
| 14816 |
|
| 14817 |
//! moment.js locale configuration |
| 14818 |
|
| 14819 |
function relativeTimeWithPlural$2(number, withoutSuffix, key) { |
| 14820 |
var format = { |
| 14821 |
ss: 'secunde', |
| 14822 |
mm: 'minute', |
| 14823 |
hh: 'ore', |
| 14824 |
dd: 'zile', |
| 14825 |
ww: 'săptămâni', |
| 14826 |
MM: 'luni', |
| 14827 |
yy: 'ani', |
| 14828 |
}, |
| 14829 |
separator = ' '; |
| 14830 |
if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) { |
| 14831 |
separator = ' de '; |
| 14832 |
} |
| 14833 |
return number + separator + format[key]; |
| 14834 |
} |
| 14835 |
|
| 14836 |
hooks.defineLocale('ro', { |
| 14837 |
months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split( |
| 14838 |
'_' |
| 14839 |
), |
| 14840 |
monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split( |
| 14841 |
'_' |
| 14842 |
), |
| 14843 |
monthsParseExact: true, |
| 14844 |
weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'), |
| 14845 |
weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'), |
| 14846 |
weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'), |
| 14847 |
longDateFormat: { |
| 14848 |
LT: 'H:mm', |
| 14849 |
LTS: 'H:mm:ss', |
| 14850 |
L: 'DD.MM.YYYY', |
| 14851 |
LL: 'D MMMM YYYY', |
| 14852 |
LLL: 'D MMMM YYYY H:mm', |
| 14853 |
LLLL: 'dddd, D MMMM YYYY H:mm', |
| 14854 |
}, |
| 14855 |
calendar: { |
| 14856 |
sameDay: '[azi la] LT', |
| 14857 |
nextDay: '[mâine la] LT', |
| 14858 |
nextWeek: 'dddd [la] LT', |
| 14859 |
lastDay: '[ieri la] LT', |
| 14860 |
lastWeek: '[fosta] dddd [la] LT', |
| 14861 |
sameElse: 'L', |
| 14862 |
}, |
| 14863 |
relativeTime: { |
| 14864 |
future: 'peste %s', |
| 14865 |
past: '%s în urmă', |
| 14866 |
s: 'câteva secunde', |
| 14867 |
ss: relativeTimeWithPlural$2, |
| 14868 |
m: 'un minut', |
| 14869 |
mm: relativeTimeWithPlural$2, |
| 14870 |
h: 'o oră', |
| 14871 |
hh: relativeTimeWithPlural$2, |
| 14872 |
d: 'o zi', |
| 14873 |
dd: relativeTimeWithPlural$2, |
| 14874 |
w: 'o săptămână', |
| 14875 |
ww: relativeTimeWithPlural$2, |
| 14876 |
M: 'o lună', |
| 14877 |
MM: relativeTimeWithPlural$2, |
| 14878 |
y: 'un an', |
| 14879 |
yy: relativeTimeWithPlural$2, |
| 14880 |
}, |
| 14881 |
week: { |
| 14882 |
dow: 1, // Monday is the first day of the week. |
| 14883 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 14884 |
}, |
| 14885 |
}); |
| 14886 |
|
| 14887 |
//! moment.js locale configuration |
| 14888 |
|
| 14889 |
function plural$4(word, num) { |
| 14890 |
var forms = word.split('_'); |
| 14891 |
return num % 10 === 1 && num % 100 !== 11 |
| 14892 |
? forms[0] |
| 14893 |
: num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) |
| 14894 |
? forms[1] |
| 14895 |
: forms[2]; |
| 14896 |
} |
| 14897 |
function relativeTimeWithPlural$3(number, withoutSuffix, key) { |
| 14898 |
var format = { |
| 14899 |
ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', |
| 14900 |
mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут', |
| 14901 |
hh: 'час_часа_часов', |
| 14902 |
dd: 'день_дня_дней', |
| 14903 |
ww: 'неделя_недели_недель', |
| 14904 |
MM: 'месяц_месяца_месяцев', |
| 14905 |
yy: 'год_года_лет', |
| 14906 |
}; |
| 14907 |
if (key === 'm') { |
| 14908 |
return withoutSuffix ? 'минута' : 'минуту'; |
| 14909 |
} else { |
| 14910 |
return number + ' ' + plural$4(format[key], +number); |
| 14911 |
} |
| 14912 |
} |
| 14913 |
var monthsParse$b = [ |
| 14914 |
/^янв/i, |
| 14915 |
/^фев/i, |
| 14916 |
/^мар/i, |
| 14917 |
/^апр/i, |
| 14918 |
/^ма[йя]/i, |
| 14919 |
/^июн/i, |
| 14920 |
/^июл/i, |
| 14921 |
/^авг/i, |
| 14922 |
/^сен/i, |
| 14923 |
/^окт/i, |
| 14924 |
/^ноя/i, |
| 14925 |
/^дек/i, |
| 14926 |
]; |
| 14927 |
|
| 14928 |
// http://new.gramota.ru/spravka/rules/139-prop : § 103 |
| 14929 |
// Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637 |
| 14930 |
// CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753 |
| 14931 |
hooks.defineLocale('ru', { |
| 14932 |
months: { |
| 14933 |
format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split( |
| 14934 |
'_' |
| 14935 |
), |
| 14936 |
standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( |
| 14937 |
'_' |
| 14938 |
), |
| 14939 |
}, |
| 14940 |
monthsShort: { |
| 14941 |
// по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку? |
| 14942 |
format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split( |
| 14943 |
'_' |
| 14944 |
), |
| 14945 |
standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split( |
| 14946 |
'_' |
| 14947 |
), |
| 14948 |
}, |
| 14949 |
weekdays: { |
| 14950 |
standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split( |
| 14951 |
'_' |
| 14952 |
), |
| 14953 |
format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split( |
| 14954 |
'_' |
| 14955 |
), |
| 14956 |
isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/, |
| 14957 |
}, |
| 14958 |
weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), |
| 14959 |
weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), |
| 14960 |
monthsParse: monthsParse$b, |
| 14961 |
longMonthsParse: monthsParse$b, |
| 14962 |
shortMonthsParse: monthsParse$b, |
| 14963 |
|
| 14964 |
// полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки |
| 14965 |
monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, |
| 14966 |
|
| 14967 |
// копия предыдущего |
| 14968 |
monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, |
| 14969 |
|
| 14970 |
// полные названия с падежами |
| 14971 |
monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i, |
| 14972 |
|
| 14973 |
// Выражение, которое соответствует только сокращённым формам |
| 14974 |
monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i, |
| 14975 |
longDateFormat: { |
| 14976 |
LT: 'H:mm', |
| 14977 |
LTS: 'H:mm:ss', |
| 14978 |
L: 'DD.MM.YYYY', |
| 14979 |
LL: 'D MMMM YYYY г.', |
| 14980 |
LLL: 'D MMMM YYYY г., H:mm', |
| 14981 |
LLLL: 'dddd, D MMMM YYYY г., H:mm', |
| 14982 |
}, |
| 14983 |
calendar: { |
| 14984 |
sameDay: '[Сегодня, в] LT', |
| 14985 |
nextDay: '[Завтра, в] LT', |
| 14986 |
lastDay: '[Вчера, в] LT', |
| 14987 |
nextWeek: function (now) { |
| 14988 |
if (now.week() !== this.week()) { |
| 14989 |
switch (this.day()) { |
| 14990 |
case 0: |
| 14991 |
return '[В следующее] dddd, [в] LT'; |
| 14992 |
case 1: |
| 14993 |
case 2: |
| 14994 |
case 4: |
| 14995 |
return '[В следующий] dddd, [в] LT'; |
| 14996 |
case 3: |
| 14997 |
case 5: |
| 14998 |
case 6: |
| 14999 |
return '[В следующую] dddd, [в] LT'; |
| 15000 |
} |
| 15001 |
} else { |
| 15002 |
if (this.day() === 2) { |
| 15003 |
return '[Во] dddd, [в] LT'; |
| 15004 |
} else { |
| 15005 |
return '[В] dddd, [в] LT'; |
| 15006 |
} |
| 15007 |
} |
| 15008 |
}, |
| 15009 |
lastWeek: function (now) { |
| 15010 |
if (now.week() !== this.week()) { |
| 15011 |
switch (this.day()) { |
| 15012 |
case 0: |
| 15013 |
return '[В прошлое] dddd, [в] LT'; |
| 15014 |
case 1: |
| 15015 |
case 2: |
| 15016 |
case 4: |
| 15017 |
return '[В прошлый] dddd, [в] LT'; |
| 15018 |
case 3: |
| 15019 |
case 5: |
| 15020 |
case 6: |
| 15021 |
return '[В прошлую] dddd, [в] LT'; |
| 15022 |
} |
| 15023 |
} else { |
| 15024 |
if (this.day() === 2) { |
| 15025 |
return '[Во] dddd, [в] LT'; |
| 15026 |
} else { |
| 15027 |
return '[В] dddd, [в] LT'; |
| 15028 |
} |
| 15029 |
} |
| 15030 |
}, |
| 15031 |
sameElse: 'L', |
| 15032 |
}, |
| 15033 |
relativeTime: { |
| 15034 |
future: 'через %s', |
| 15035 |
past: '%s назад', |
| 15036 |
s: 'несколько секунд', |
| 15037 |
ss: relativeTimeWithPlural$3, |
| 15038 |
m: relativeTimeWithPlural$3, |
| 15039 |
mm: relativeTimeWithPlural$3, |
| 15040 |
h: 'час', |
| 15041 |
hh: relativeTimeWithPlural$3, |
| 15042 |
d: 'день', |
| 15043 |
dd: relativeTimeWithPlural$3, |
| 15044 |
w: 'неделя', |
| 15045 |
ww: relativeTimeWithPlural$3, |
| 15046 |
M: 'месяц', |
| 15047 |
MM: relativeTimeWithPlural$3, |
| 15048 |
y: 'год', |
| 15049 |
yy: relativeTimeWithPlural$3, |
| 15050 |
}, |
| 15051 |
meridiemParse: /ночи|утра|дня|вечера/i, |
| 15052 |
isPM: function (input) { |
| 15053 |
return /^(дня|вечера)$/.test(input); |
| 15054 |
}, |
| 15055 |
meridiem: function (hour, minute, isLower) { |
| 15056 |
if (hour < 4) { |
| 15057 |
return 'ночи'; |
| 15058 |
} else if (hour < 12) { |
| 15059 |
return 'утра'; |
| 15060 |
} else if (hour < 17) { |
| 15061 |
return 'дня'; |
| 15062 |
} else { |
| 15063 |
return 'вечера'; |
| 15064 |
} |
| 15065 |
}, |
| 15066 |
dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/, |
| 15067 |
ordinal: function (number, period) { |
| 15068 |
switch (period) { |
| 15069 |
case 'M': |
| 15070 |
case 'd': |
| 15071 |
case 'DDD': |
| 15072 |
return number + '-й'; |
| 15073 |
case 'D': |
| 15074 |
return number + '-го'; |
| 15075 |
case 'w': |
| 15076 |
case 'W': |
| 15077 |
return number + '-я'; |
| 15078 |
default: |
| 15079 |
return number; |
| 15080 |
} |
| 15081 |
}, |
| 15082 |
week: { |
| 15083 |
dow: 1, // Monday is the first day of the week. |
| 15084 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 15085 |
}, |
| 15086 |
}); |
| 15087 |
|
| 15088 |
//! moment.js locale configuration |
| 15089 |
|
| 15090 |
var months$9 = [ |
| 15091 |
'جنوري', |
| 15092 |
'فيبروري', |
| 15093 |
'مارچ', |
| 15094 |
'اپريل', |
| 15095 |
'مئي', |
| 15096 |
'جون', |
| 15097 |
'جولاءِ', |
| 15098 |
'آگسٽ', |
| 15099 |
'سيپٽمبر', |
| 15100 |
'آڪٽوبر', |
| 15101 |
'نومبر', |
| 15102 |
'ڊسمبر', |
| 15103 |
], |
| 15104 |
days$1 = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر']; |
| 15105 |
|
| 15106 |
hooks.defineLocale('sd', { |
| 15107 |
months: months$9, |
| 15108 |
monthsShort: months$9, |
| 15109 |
weekdays: days$1, |
| 15110 |
weekdaysShort: days$1, |
| 15111 |
weekdaysMin: days$1, |
| 15112 |
longDateFormat: { |
| 15113 |
LT: 'HH:mm', |
| 15114 |
LTS: 'HH:mm:ss', |
| 15115 |
L: 'DD/MM/YYYY', |
| 15116 |
LL: 'D MMMM YYYY', |
| 15117 |
LLL: 'D MMMM YYYY HH:mm', |
| 15118 |
LLLL: 'dddd، D MMMM YYYY HH:mm', |
| 15119 |
}, |
| 15120 |
meridiemParse: /صبح|شام/, |
| 15121 |
isPM: function (input) { |
| 15122 |
return 'شام' === input; |
| 15123 |
}, |
| 15124 |
meridiem: function (hour, minute, isLower) { |
| 15125 |
if (hour < 12) { |
| 15126 |
return 'صبح'; |
| 15127 |
} |
| 15128 |
return 'شام'; |
| 15129 |
}, |
| 15130 |
calendar: { |
| 15131 |
sameDay: '[اڄ] LT', |
| 15132 |
nextDay: '[سڀاڻي] LT', |
| 15133 |
nextWeek: 'dddd [اڳين هفتي تي] LT', |
| 15134 |
lastDay: '[ڪالهه] LT', |
| 15135 |
lastWeek: '[گزريل هفتي] dddd [تي] LT', |
| 15136 |
sameElse: 'L', |
| 15137 |
}, |
| 15138 |
relativeTime: { |
| 15139 |
future: '%s پوء', |
| 15140 |
past: '%s اڳ', |
| 15141 |
s: 'چند سيڪنڊ', |
| 15142 |
ss: '%d سيڪنڊ', |
| 15143 |
m: 'هڪ منٽ', |
| 15144 |
mm: '%d منٽ', |
| 15145 |
h: 'هڪ ڪلاڪ', |
| 15146 |
hh: '%d ڪلاڪ', |
| 15147 |
d: 'هڪ ڏينهن', |
| 15148 |
dd: '%d ڏينهن', |
| 15149 |
M: 'هڪ مهينو', |
| 15150 |
MM: '%d مهينا', |
| 15151 |
y: 'هڪ سال', |
| 15152 |
yy: '%d سال', |
| 15153 |
}, |
| 15154 |
preparse: function (string) { |
| 15155 |
return string.replace(/،/g, ','); |
| 15156 |
}, |
| 15157 |
postformat: function (string) { |
| 15158 |
return string.replace(/,/g, '،'); |
| 15159 |
}, |
| 15160 |
week: { |
| 15161 |
dow: 1, // Monday is the first day of the week. |
| 15162 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 15163 |
}, |
| 15164 |
}); |
| 15165 |
|
| 15166 |
//! moment.js locale configuration |
| 15167 |
|
| 15168 |
hooks.defineLocale('se', { |
| 15169 |
months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split( |
| 15170 |
'_' |
| 15171 |
), |
| 15172 |
monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split( |
| 15173 |
'_' |
| 15174 |
), |
| 15175 |
weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split( |
| 15176 |
'_' |
| 15177 |
), |
| 15178 |
weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'), |
| 15179 |
weekdaysMin: 's_v_m_g_d_b_L'.split('_'), |
| 15180 |
longDateFormat: { |
| 15181 |
LT: 'HH:mm', |
| 15182 |
LTS: 'HH:mm:ss', |
| 15183 |
L: 'DD.MM.YYYY', |
| 15184 |
LL: 'MMMM D. [b.] YYYY', |
| 15185 |
LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm', |
| 15186 |
LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm', |
| 15187 |
}, |
| 15188 |
calendar: { |
| 15189 |
sameDay: '[otne ti] LT', |
| 15190 |
nextDay: '[ihttin ti] LT', |
| 15191 |
nextWeek: 'dddd [ti] LT', |
| 15192 |
lastDay: '[ikte ti] LT', |
| 15193 |
lastWeek: '[ovddit] dddd [ti] LT', |
| 15194 |
sameElse: 'L', |
| 15195 |
}, |
| 15196 |
relativeTime: { |
| 15197 |
future: '%s geažes', |
| 15198 |
past: 'maŋit %s', |
| 15199 |
s: 'moadde sekunddat', |
| 15200 |
ss: '%d sekunddat', |
| 15201 |
m: 'okta minuhta', |
| 15202 |
mm: '%d minuhtat', |
| 15203 |
h: 'okta diimmu', |
| 15204 |
hh: '%d diimmut', |
| 15205 |
d: 'okta beaivi', |
| 15206 |
dd: '%d beaivvit', |
| 15207 |
M: 'okta mánnu', |
| 15208 |
MM: '%d mánut', |
| 15209 |
y: 'okta jahki', |
| 15210 |
yy: '%d jagit', |
| 15211 |
}, |
| 15212 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 15213 |
ordinal: '%d.', |
| 15214 |
week: { |
| 15215 |
dow: 1, // Monday is the first day of the week. |
| 15216 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 15217 |
}, |
| 15218 |
}); |
| 15219 |
|
| 15220 |
//! moment.js locale configuration |
| 15221 |
|
| 15222 |
/*jshint -W100*/ |
| 15223 |
hooks.defineLocale('si', { |
| 15224 |
months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split( |
| 15225 |
'_' |
| 15226 |
), |
| 15227 |
monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split( |
| 15228 |
'_' |
| 15229 |
), |
| 15230 |
weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split( |
| 15231 |
'_' |
| 15232 |
), |
| 15233 |
weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන'.split('_'), |
| 15234 |
weekdaysMin: 'ඉ_ස_අ_බ_බ්ර_සි_සෙ'.split('_'), |
| 15235 |
weekdaysParseExact: true, |
| 15236 |
longDateFormat: { |
| 15237 |
LT: 'a h:mm', |
| 15238 |
LTS: 'a h:mm:ss', |
| 15239 |
L: 'YYYY/MM/DD', |
| 15240 |
LL: 'YYYY MMMM D', |
| 15241 |
LLL: 'YYYY MMMM D, a h:mm', |
| 15242 |
LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss', |
| 15243 |
}, |
| 15244 |
calendar: { |
| 15245 |
sameDay: '[අද] LT[ට]', |
| 15246 |
nextDay: '[හෙට] LT[ට]', |
| 15247 |
nextWeek: 'dddd LT[ට]', |
| 15248 |
lastDay: '[ඊයේ] LT[ට]', |
| 15249 |
lastWeek: '[පසුගිය] dddd LT[ට]', |
| 15250 |
sameElse: 'L', |
| 15251 |
}, |
| 15252 |
relativeTime: { |
| 15253 |
future: '%sකින්', |
| 15254 |
past: '%sකට පෙර', |
| 15255 |
s: 'තත්පර කිහිපය', |
| 15256 |
ss: 'තත්පර %d', |
| 15257 |
m: 'මිනිත්තුව', |
| 15258 |
mm: 'මිනිත්තු %d', |
| 15259 |
h: 'පැය', |
| 15260 |
hh: 'පැය %d', |
| 15261 |
d: 'දිනය', |
| 15262 |
dd: 'දින %d', |
| 15263 |
M: 'මාසය', |
| 15264 |
MM: 'මාස %d', |
| 15265 |
y: 'වසර', |
| 15266 |
yy: 'වසර %d', |
| 15267 |
}, |
| 15268 |
dayOfMonthOrdinalParse: /\d{1,2} වැනි/, |
| 15269 |
ordinal: function (number) { |
| 15270 |
return number + ' වැනි'; |
| 15271 |
}, |
| 15272 |
meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./, |
| 15273 |
isPM: function (input) { |
| 15274 |
return input === 'ප.ව.' || input === 'පස් වරු'; |
| 15275 |
}, |
| 15276 |
meridiem: function (hours, minutes, isLower) { |
| 15277 |
if (hours > 11) { |
| 15278 |
return isLower ? 'ප.ව.' : 'පස් වරු'; |
| 15279 |
} else { |
| 15280 |
return isLower ? 'පෙ.ව.' : 'පෙර වරු'; |
| 15281 |
} |
| 15282 |
}, |
| 15283 |
}); |
| 15284 |
|
| 15285 |
//! moment.js locale configuration |
| 15286 |
|
| 15287 |
var months$a = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split( |
| 15288 |
'_' |
| 15289 |
), |
| 15290 |
monthsShort$7 = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_'); |
| 15291 |
function plural$5(n) { |
| 15292 |
return n > 1 && n < 5; |
| 15293 |
} |
| 15294 |
function translate$9(number, withoutSuffix, key, isFuture) { |
| 15295 |
var result = number + ' '; |
| 15296 |
switch (key) { |
| 15297 |
case 's': // a few seconds / in a few seconds / a few seconds ago |
| 15298 |
return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami'; |
| 15299 |
case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago |
| 15300 |
if (withoutSuffix || isFuture) { |
| 15301 |
return result + (plural$5(number) ? 'sekundy' : 'sekúnd'); |
| 15302 |
} else { |
| 15303 |
return result + 'sekundami'; |
| 15304 |
} |
| 15305 |
case 'm': // a minute / in a minute / a minute ago |
| 15306 |
return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou'; |
| 15307 |
case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago |
| 15308 |
if (withoutSuffix || isFuture) { |
| 15309 |
return result + (plural$5(number) ? 'minúty' : 'minút'); |
| 15310 |
} else { |
| 15311 |
return result + 'minútami'; |
| 15312 |
} |
| 15313 |
case 'h': // an hour / in an hour / an hour ago |
| 15314 |
return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou'; |
| 15315 |
case 'hh': // 9 hours / in 9 hours / 9 hours ago |
| 15316 |
if (withoutSuffix || isFuture) { |
| 15317 |
return result + (plural$5(number) ? 'hodiny' : 'hodín'); |
| 15318 |
} else { |
| 15319 |
return result + 'hodinami'; |
| 15320 |
} |
| 15321 |
case 'd': // a day / in a day / a day ago |
| 15322 |
return withoutSuffix || isFuture ? 'deň' : 'dňom'; |
| 15323 |
case 'dd': // 9 days / in 9 days / 9 days ago |
| 15324 |
if (withoutSuffix || isFuture) { |
| 15325 |
return result + (plural$5(number) ? 'dni' : 'dní'); |
| 15326 |
} else { |
| 15327 |
return result + 'dňami'; |
| 15328 |
} |
| 15329 |
case 'M': // a month / in a month / a month ago |
| 15330 |
return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom'; |
| 15331 |
case 'MM': // 9 months / in 9 months / 9 months ago |
| 15332 |
if (withoutSuffix || isFuture) { |
| 15333 |
return result + (plural$5(number) ? 'mesiace' : 'mesiacov'); |
| 15334 |
} else { |
| 15335 |
return result + 'mesiacmi'; |
| 15336 |
} |
| 15337 |
case 'y': // a year / in a year / a year ago |
| 15338 |
return withoutSuffix || isFuture ? 'rok' : 'rokom'; |
| 15339 |
case 'yy': // 9 years / in 9 years / 9 years ago |
| 15340 |
if (withoutSuffix || isFuture) { |
| 15341 |
return result + (plural$5(number) ? 'roky' : 'rokov'); |
| 15342 |
} else { |
| 15343 |
return result + 'rokmi'; |
| 15344 |
} |
| 15345 |
} |
| 15346 |
} |
| 15347 |
|
| 15348 |
hooks.defineLocale('sk', { |
| 15349 |
months: months$a, |
| 15350 |
monthsShort: monthsShort$7, |
| 15351 |
weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'), |
| 15352 |
weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'), |
| 15353 |
weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'), |
| 15354 |
longDateFormat: { |
| 15355 |
LT: 'H:mm', |
| 15356 |
LTS: 'H:mm:ss', |
| 15357 |
L: 'DD.MM.YYYY', |
| 15358 |
LL: 'D. MMMM YYYY', |
| 15359 |
LLL: 'D. MMMM YYYY H:mm', |
| 15360 |
LLLL: 'dddd D. MMMM YYYY H:mm', |
| 15361 |
}, |
| 15362 |
calendar: { |
| 15363 |
sameDay: '[dnes o] LT', |
| 15364 |
nextDay: '[zajtra o] LT', |
| 15365 |
nextWeek: function () { |
| 15366 |
switch (this.day()) { |
| 15367 |
case 0: |
| 15368 |
return '[v nedeľu o] LT'; |
| 15369 |
case 1: |
| 15370 |
case 2: |
| 15371 |
return '[v] dddd [o] LT'; |
| 15372 |
case 3: |
| 15373 |
return '[v stredu o] LT'; |
| 15374 |
case 4: |
| 15375 |
return '[vo štvrtok o] LT'; |
| 15376 |
case 5: |
| 15377 |
return '[v piatok o] LT'; |
| 15378 |
case 6: |
| 15379 |
return '[v sobotu o] LT'; |
| 15380 |
} |
| 15381 |
}, |
| 15382 |
lastDay: '[včera o] LT', |
| 15383 |
lastWeek: function () { |
| 15384 |
switch (this.day()) { |
| 15385 |
case 0: |
| 15386 |
return '[minulú nedeľu o] LT'; |
| 15387 |
case 1: |
| 15388 |
case 2: |
| 15389 |
return '[minulý] dddd [o] LT'; |
| 15390 |
case 3: |
| 15391 |
return '[minulú stredu o] LT'; |
| 15392 |
case 4: |
| 15393 |
case 5: |
| 15394 |
return '[minulý] dddd [o] LT'; |
| 15395 |
case 6: |
| 15396 |
return '[minulú sobotu o] LT'; |
| 15397 |
} |
| 15398 |
}, |
| 15399 |
sameElse: 'L', |
| 15400 |
}, |
| 15401 |
relativeTime: { |
| 15402 |
future: 'za %s', |
| 15403 |
past: 'pred %s', |
| 15404 |
s: translate$9, |
| 15405 |
ss: translate$9, |
| 15406 |
m: translate$9, |
| 15407 |
mm: translate$9, |
| 15408 |
h: translate$9, |
| 15409 |
hh: translate$9, |
| 15410 |
d: translate$9, |
| 15411 |
dd: translate$9, |
| 15412 |
M: translate$9, |
| 15413 |
MM: translate$9, |
| 15414 |
y: translate$9, |
| 15415 |
yy: translate$9, |
| 15416 |
}, |
| 15417 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 15418 |
ordinal: '%d.', |
| 15419 |
week: { |
| 15420 |
dow: 1, // Monday is the first day of the week. |
| 15421 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 15422 |
}, |
| 15423 |
}); |
| 15424 |
|
| 15425 |
//! moment.js locale configuration |
| 15426 |
|
| 15427 |
function processRelativeTime$7(number, withoutSuffix, key, isFuture) { |
| 15428 |
var result = number + ' '; |
| 15429 |
switch (key) { |
| 15430 |
case 's': |
| 15431 |
return withoutSuffix || isFuture |
| 15432 |
? 'nekaj sekund' |
| 15433 |
: 'nekaj sekundami'; |
| 15434 |
case 'ss': |
| 15435 |
if (number === 1) { |
| 15436 |
result += withoutSuffix ? 'sekundo' : 'sekundi'; |
| 15437 |
} else if (number === 2) { |
| 15438 |
result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah'; |
| 15439 |
} else if (number < 5) { |
| 15440 |
result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah'; |
| 15441 |
} else { |
| 15442 |
result += 'sekund'; |
| 15443 |
} |
| 15444 |
return result; |
| 15445 |
case 'm': |
| 15446 |
return withoutSuffix ? 'ena minuta' : 'eno minuto'; |
| 15447 |
case 'mm': |
| 15448 |
if (number === 1) { |
| 15449 |
result += withoutSuffix ? 'minuta' : 'minuto'; |
| 15450 |
} else if (number === 2) { |
| 15451 |
result += withoutSuffix || isFuture ? 'minuti' : 'minutama'; |
| 15452 |
} else if (number < 5) { |
| 15453 |
result += withoutSuffix || isFuture ? 'minute' : 'minutami'; |
| 15454 |
} else { |
| 15455 |
result += withoutSuffix || isFuture ? 'minut' : 'minutami'; |
| 15456 |
} |
| 15457 |
return result; |
| 15458 |
case 'h': |
| 15459 |
return withoutSuffix ? 'ena ura' : 'eno uro'; |
| 15460 |
case 'hh': |
| 15461 |
if (number === 1) { |
| 15462 |
result += withoutSuffix ? 'ura' : 'uro'; |
| 15463 |
} else if (number === 2) { |
| 15464 |
result += withoutSuffix || isFuture ? 'uri' : 'urama'; |
| 15465 |
} else if (number < 5) { |
| 15466 |
result += withoutSuffix || isFuture ? 'ure' : 'urami'; |
| 15467 |
} else { |
| 15468 |
result += withoutSuffix || isFuture ? 'ur' : 'urami'; |
| 15469 |
} |
| 15470 |
return result; |
| 15471 |
case 'd': |
| 15472 |
return withoutSuffix || isFuture ? 'en dan' : 'enim dnem'; |
| 15473 |
case 'dd': |
| 15474 |
if (number === 1) { |
| 15475 |
result += withoutSuffix || isFuture ? 'dan' : 'dnem'; |
| 15476 |
} else if (number === 2) { |
| 15477 |
result += withoutSuffix || isFuture ? 'dni' : 'dnevoma'; |
| 15478 |
} else { |
| 15479 |
result += withoutSuffix || isFuture ? 'dni' : 'dnevi'; |
| 15480 |
} |
| 15481 |
return result; |
| 15482 |
case 'M': |
| 15483 |
return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem'; |
| 15484 |
case 'MM': |
| 15485 |
if (number === 1) { |
| 15486 |
result += withoutSuffix || isFuture ? 'mesec' : 'mesecem'; |
| 15487 |
} else if (number === 2) { |
| 15488 |
result += withoutSuffix || isFuture ? 'meseca' : 'mesecema'; |
| 15489 |
} else if (number < 5) { |
| 15490 |
result += withoutSuffix || isFuture ? 'mesece' : 'meseci'; |
| 15491 |
} else { |
| 15492 |
result += withoutSuffix || isFuture ? 'mesecev' : 'meseci'; |
| 15493 |
} |
| 15494 |
return result; |
| 15495 |
case 'y': |
| 15496 |
return withoutSuffix || isFuture ? 'eno leto' : 'enim letom'; |
| 15497 |
case 'yy': |
| 15498 |
if (number === 1) { |
| 15499 |
result += withoutSuffix || isFuture ? 'leto' : 'letom'; |
| 15500 |
} else if (number === 2) { |
| 15501 |
result += withoutSuffix || isFuture ? 'leti' : 'letoma'; |
| 15502 |
} else if (number < 5) { |
| 15503 |
result += withoutSuffix || isFuture ? 'leta' : 'leti'; |
| 15504 |
} else { |
| 15505 |
result += withoutSuffix || isFuture ? 'let' : 'leti'; |
| 15506 |
} |
| 15507 |
return result; |
| 15508 |
} |
| 15509 |
} |
| 15510 |
|
| 15511 |
hooks.defineLocale('sl', { |
| 15512 |
months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split( |
| 15513 |
'_' |
| 15514 |
), |
| 15515 |
monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split( |
| 15516 |
'_' |
| 15517 |
), |
| 15518 |
monthsParseExact: true, |
| 15519 |
weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'), |
| 15520 |
weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'), |
| 15521 |
weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'), |
| 15522 |
weekdaysParseExact: true, |
| 15523 |
longDateFormat: { |
| 15524 |
LT: 'H:mm', |
| 15525 |
LTS: 'H:mm:ss', |
| 15526 |
L: 'DD. MM. YYYY', |
| 15527 |
LL: 'D. MMMM YYYY', |
| 15528 |
LLL: 'D. MMMM YYYY H:mm', |
| 15529 |
LLLL: 'dddd, D. MMMM YYYY H:mm', |
| 15530 |
}, |
| 15531 |
calendar: { |
| 15532 |
sameDay: '[danes ob] LT', |
| 15533 |
nextDay: '[jutri ob] LT', |
| 15534 |
|
| 15535 |
nextWeek: function () { |
| 15536 |
switch (this.day()) { |
| 15537 |
case 0: |
| 15538 |
return '[v] [nedeljo] [ob] LT'; |
| 15539 |
case 3: |
| 15540 |
return '[v] [sredo] [ob] LT'; |
| 15541 |
case 6: |
| 15542 |
return '[v] [soboto] [ob] LT'; |
| 15543 |
case 1: |
| 15544 |
case 2: |
| 15545 |
case 4: |
| 15546 |
case 5: |
| 15547 |
return '[v] dddd [ob] LT'; |
| 15548 |
} |
| 15549 |
}, |
| 15550 |
lastDay: '[včeraj ob] LT', |
| 15551 |
lastWeek: function () { |
| 15552 |
switch (this.day()) { |
| 15553 |
case 0: |
| 15554 |
return '[prejšnjo] [nedeljo] [ob] LT'; |
| 15555 |
case 3: |
| 15556 |
return '[prejšnjo] [sredo] [ob] LT'; |
| 15557 |
case 6: |
| 15558 |
return '[prejšnjo] [soboto] [ob] LT'; |
| 15559 |
case 1: |
| 15560 |
case 2: |
| 15561 |
case 4: |
| 15562 |
case 5: |
| 15563 |
return '[prejšnji] dddd [ob] LT'; |
| 15564 |
} |
| 15565 |
}, |
| 15566 |
sameElse: 'L', |
| 15567 |
}, |
| 15568 |
relativeTime: { |
| 15569 |
future: 'čez %s', |
| 15570 |
past: 'pred %s', |
| 15571 |
s: processRelativeTime$7, |
| 15572 |
ss: processRelativeTime$7, |
| 15573 |
m: processRelativeTime$7, |
| 15574 |
mm: processRelativeTime$7, |
| 15575 |
h: processRelativeTime$7, |
| 15576 |
hh: processRelativeTime$7, |
| 15577 |
d: processRelativeTime$7, |
| 15578 |
dd: processRelativeTime$7, |
| 15579 |
M: processRelativeTime$7, |
| 15580 |
MM: processRelativeTime$7, |
| 15581 |
y: processRelativeTime$7, |
| 15582 |
yy: processRelativeTime$7, |
| 15583 |
}, |
| 15584 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 15585 |
ordinal: '%d.', |
| 15586 |
week: { |
| 15587 |
dow: 1, // Monday is the first day of the week. |
| 15588 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 15589 |
}, |
| 15590 |
}); |
| 15591 |
|
| 15592 |
//! moment.js locale configuration |
| 15593 |
|
| 15594 |
hooks.defineLocale('sq', { |
| 15595 |
months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split( |
| 15596 |
'_' |
| 15597 |
), |
| 15598 |
monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'), |
| 15599 |
weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split( |
| 15600 |
'_' |
| 15601 |
), |
| 15602 |
weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'), |
| 15603 |
weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'), |
| 15604 |
weekdaysParseExact: true, |
| 15605 |
meridiemParse: /PD|MD/, |
| 15606 |
isPM: function (input) { |
| 15607 |
return input.charAt(0) === 'M'; |
| 15608 |
}, |
| 15609 |
meridiem: function (hours, minutes, isLower) { |
| 15610 |
return hours < 12 ? 'PD' : 'MD'; |
| 15611 |
}, |
| 15612 |
longDateFormat: { |
| 15613 |
LT: 'HH:mm', |
| 15614 |
LTS: 'HH:mm:ss', |
| 15615 |
L: 'DD/MM/YYYY', |
| 15616 |
LL: 'D MMMM YYYY', |
| 15617 |
LLL: 'D MMMM YYYY HH:mm', |
| 15618 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 15619 |
}, |
| 15620 |
calendar: { |
| 15621 |
sameDay: '[Sot në] LT', |
| 15622 |
nextDay: '[Nesër në] LT', |
| 15623 |
nextWeek: 'dddd [në] LT', |
| 15624 |
lastDay: '[Dje në] LT', |
| 15625 |
lastWeek: 'dddd [e kaluar në] LT', |
| 15626 |
sameElse: 'L', |
| 15627 |
}, |
| 15628 |
relativeTime: { |
| 15629 |
future: 'në %s', |
| 15630 |
past: '%s më parë', |
| 15631 |
s: 'disa sekonda', |
| 15632 |
ss: '%d sekonda', |
| 15633 |
m: 'një minutë', |
| 15634 |
mm: '%d minuta', |
| 15635 |
h: 'një orë', |
| 15636 |
hh: '%d orë', |
| 15637 |
d: 'një ditë', |
| 15638 |
dd: '%d ditë', |
| 15639 |
M: 'një muaj', |
| 15640 |
MM: '%d muaj', |
| 15641 |
y: 'një vit', |
| 15642 |
yy: '%d vite', |
| 15643 |
}, |
| 15644 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 15645 |
ordinal: '%d.', |
| 15646 |
week: { |
| 15647 |
dow: 1, // Monday is the first day of the week. |
| 15648 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 15649 |
}, |
| 15650 |
}); |
| 15651 |
|
| 15652 |
//! moment.js locale configuration |
| 15653 |
|
| 15654 |
var translator$1 = { |
| 15655 |
words: { |
| 15656 |
//Different grammatical cases |
| 15657 |
ss: ['секунда', 'секунде', 'секунди'], |
| 15658 |
m: ['један минут', 'једне минуте'], |
| 15659 |
mm: ['минут', 'минуте', 'минута'], |
| 15660 |
h: ['један сат', 'једног сата'], |
| 15661 |
hh: ['сат', 'сата', 'сати'], |
| 15662 |
dd: ['дан', 'дана', 'дана'], |
| 15663 |
MM: ['месец', 'месеца', 'месеци'], |
| 15664 |
yy: ['година', 'године', 'година'], |
| 15665 |
}, |
| 15666 |
correctGrammaticalCase: function (number, wordKey) { |
| 15667 |
return number === 1 |
| 15668 |
? wordKey[0] |
| 15669 |
: number >= 2 && number <= 4 |
| 15670 |
? wordKey[1] |
| 15671 |
: wordKey[2]; |
| 15672 |
}, |
| 15673 |
translate: function (number, withoutSuffix, key) { |
| 15674 |
var wordKey = translator$1.words[key]; |
| 15675 |
if (key.length === 1) { |
| 15676 |
return withoutSuffix ? wordKey[0] : wordKey[1]; |
| 15677 |
} else { |
| 15678 |
return ( |
| 15679 |
number + |
| 15680 |
' ' + |
| 15681 |
translator$1.correctGrammaticalCase(number, wordKey) |
| 15682 |
); |
| 15683 |
} |
| 15684 |
}, |
| 15685 |
}; |
| 15686 |
|
| 15687 |
hooks.defineLocale('sr-cyrl', { |
| 15688 |
months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split( |
| 15689 |
'_' |
| 15690 |
), |
| 15691 |
monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split( |
| 15692 |
'_' |
| 15693 |
), |
| 15694 |
monthsParseExact: true, |
| 15695 |
weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'), |
| 15696 |
weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'), |
| 15697 |
weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'), |
| 15698 |
weekdaysParseExact: true, |
| 15699 |
longDateFormat: { |
| 15700 |
LT: 'H:mm', |
| 15701 |
LTS: 'H:mm:ss', |
| 15702 |
L: 'D. M. YYYY.', |
| 15703 |
LL: 'D. MMMM YYYY.', |
| 15704 |
LLL: 'D. MMMM YYYY. H:mm', |
| 15705 |
LLLL: 'dddd, D. MMMM YYYY. H:mm', |
| 15706 |
}, |
| 15707 |
calendar: { |
| 15708 |
sameDay: '[данас у] LT', |
| 15709 |
nextDay: '[сутра у] LT', |
| 15710 |
nextWeek: function () { |
| 15711 |
switch (this.day()) { |
| 15712 |
case 0: |
| 15713 |
return '[у] [недељу] [у] LT'; |
| 15714 |
case 3: |
| 15715 |
return '[у] [среду] [у] LT'; |
| 15716 |
case 6: |
| 15717 |
return '[у] [суботу] [у] LT'; |
| 15718 |
case 1: |
| 15719 |
case 2: |
| 15720 |
case 4: |
| 15721 |
case 5: |
| 15722 |
return '[у] dddd [у] LT'; |
| 15723 |
} |
| 15724 |
}, |
| 15725 |
lastDay: '[јуче у] LT', |
| 15726 |
lastWeek: function () { |
| 15727 |
var lastWeekDays = [ |
| 15728 |
'[прошле] [недеље] [у] LT', |
| 15729 |
'[прошлог] [понедељка] [у] LT', |
| 15730 |
'[прошлог] [уторка] [у] LT', |
| 15731 |
'[прошле] [среде] [у] LT', |
| 15732 |
'[прошлог] [четвртка] [у] LT', |
| 15733 |
'[прошлог] [петка] [у] LT', |
| 15734 |
'[прошле] [суботе] [у] LT', |
| 15735 |
]; |
| 15736 |
return lastWeekDays[this.day()]; |
| 15737 |
}, |
| 15738 |
sameElse: 'L', |
| 15739 |
}, |
| 15740 |
relativeTime: { |
| 15741 |
future: 'за %s', |
| 15742 |
past: 'пре %s', |
| 15743 |
s: 'неколико секунди', |
| 15744 |
ss: translator$1.translate, |
| 15745 |
m: translator$1.translate, |
| 15746 |
mm: translator$1.translate, |
| 15747 |
h: translator$1.translate, |
| 15748 |
hh: translator$1.translate, |
| 15749 |
d: 'дан', |
| 15750 |
dd: translator$1.translate, |
| 15751 |
M: 'месец', |
| 15752 |
MM: translator$1.translate, |
| 15753 |
y: 'годину', |
| 15754 |
yy: translator$1.translate, |
| 15755 |
}, |
| 15756 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 15757 |
ordinal: '%d.', |
| 15758 |
week: { |
| 15759 |
dow: 1, // Monday is the first day of the week. |
| 15760 |
doy: 7, // The week that contains Jan 1st is the first week of the year. |
| 15761 |
}, |
| 15762 |
}); |
| 15763 |
|
| 15764 |
//! moment.js locale configuration |
| 15765 |
|
| 15766 |
var translator$2 = { |
| 15767 |
words: { |
| 15768 |
//Different grammatical cases |
| 15769 |
ss: ['sekunda', 'sekunde', 'sekundi'], |
| 15770 |
m: ['jedan minut', 'jedne minute'], |
| 15771 |
mm: ['minut', 'minute', 'minuta'], |
| 15772 |
h: ['jedan sat', 'jednog sata'], |
| 15773 |
hh: ['sat', 'sata', 'sati'], |
| 15774 |
dd: ['dan', 'dana', 'dana'], |
| 15775 |
MM: ['mesec', 'meseca', 'meseci'], |
| 15776 |
yy: ['godina', 'godine', 'godina'], |
| 15777 |
}, |
| 15778 |
correctGrammaticalCase: function (number, wordKey) { |
| 15779 |
return number === 1 |
| 15780 |
? wordKey[0] |
| 15781 |
: number >= 2 && number <= 4 |
| 15782 |
? wordKey[1] |
| 15783 |
: wordKey[2]; |
| 15784 |
}, |
| 15785 |
translate: function (number, withoutSuffix, key) { |
| 15786 |
var wordKey = translator$2.words[key]; |
| 15787 |
if (key.length === 1) { |
| 15788 |
return withoutSuffix ? wordKey[0] : wordKey[1]; |
| 15789 |
} else { |
| 15790 |
return ( |
| 15791 |
number + |
| 15792 |
' ' + |
| 15793 |
translator$2.correctGrammaticalCase(number, wordKey) |
| 15794 |
); |
| 15795 |
} |
| 15796 |
}, |
| 15797 |
}; |
| 15798 |
|
| 15799 |
hooks.defineLocale('sr', { |
| 15800 |
months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( |
| 15801 |
'_' |
| 15802 |
), |
| 15803 |
monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split( |
| 15804 |
'_' |
| 15805 |
), |
| 15806 |
monthsParseExact: true, |
| 15807 |
weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split( |
| 15808 |
'_' |
| 15809 |
), |
| 15810 |
weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'), |
| 15811 |
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), |
| 15812 |
weekdaysParseExact: true, |
| 15813 |
longDateFormat: { |
| 15814 |
LT: 'H:mm', |
| 15815 |
LTS: 'H:mm:ss', |
| 15816 |
L: 'D. M. YYYY.', |
| 15817 |
LL: 'D. MMMM YYYY.', |
| 15818 |
LLL: 'D. MMMM YYYY. H:mm', |
| 15819 |
LLLL: 'dddd, D. MMMM YYYY. H:mm', |
| 15820 |
}, |
| 15821 |
calendar: { |
| 15822 |
sameDay: '[danas u] LT', |
| 15823 |
nextDay: '[sutra u] LT', |
| 15824 |
nextWeek: function () { |
| 15825 |
switch (this.day()) { |
| 15826 |
case 0: |
| 15827 |
return '[u] [nedelju] [u] LT'; |
| 15828 |
case 3: |
| 15829 |
return '[u] [sredu] [u] LT'; |
| 15830 |
case 6: |
| 15831 |
return '[u] [subotu] [u] LT'; |
| 15832 |
case 1: |
| 15833 |
case 2: |
| 15834 |
case 4: |
| 15835 |
case 5: |
| 15836 |
return '[u] dddd [u] LT'; |
| 15837 |
} |
| 15838 |
}, |
| 15839 |
lastDay: '[juče u] LT', |
| 15840 |
lastWeek: function () { |
| 15841 |
var lastWeekDays = [ |
| 15842 |
'[prošle] [nedelje] [u] LT', |
| 15843 |
'[prošlog] [ponedeljka] [u] LT', |
| 15844 |
'[prošlog] [utorka] [u] LT', |
| 15845 |
'[prošle] [srede] [u] LT', |
| 15846 |
'[prošlog] [četvrtka] [u] LT', |
| 15847 |
'[prošlog] [petka] [u] LT', |
| 15848 |
'[prošle] [subote] [u] LT', |
| 15849 |
]; |
| 15850 |
return lastWeekDays[this.day()]; |
| 15851 |
}, |
| 15852 |
sameElse: 'L', |
| 15853 |
}, |
| 15854 |
relativeTime: { |
| 15855 |
future: 'za %s', |
| 15856 |
past: 'pre %s', |
| 15857 |
s: 'nekoliko sekundi', |
| 15858 |
ss: translator$2.translate, |
| 15859 |
m: translator$2.translate, |
| 15860 |
mm: translator$2.translate, |
| 15861 |
h: translator$2.translate, |
| 15862 |
hh: translator$2.translate, |
| 15863 |
d: 'dan', |
| 15864 |
dd: translator$2.translate, |
| 15865 |
M: 'mesec', |
| 15866 |
MM: translator$2.translate, |
| 15867 |
y: 'godinu', |
| 15868 |
yy: translator$2.translate, |
| 15869 |
}, |
| 15870 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 15871 |
ordinal: '%d.', |
| 15872 |
week: { |
| 15873 |
dow: 1, // Monday is the first day of the week. |
| 15874 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 15875 |
}, |
| 15876 |
}); |
| 15877 |
|
| 15878 |
//! moment.js locale configuration |
| 15879 |
|
| 15880 |
hooks.defineLocale('ss', { |
| 15881 |
months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split( |
| 15882 |
'_' |
| 15883 |
), |
| 15884 |
monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'), |
| 15885 |
weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split( |
| 15886 |
'_' |
| 15887 |
), |
| 15888 |
weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'), |
| 15889 |
weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'), |
| 15890 |
weekdaysParseExact: true, |
| 15891 |
longDateFormat: { |
| 15892 |
LT: 'h:mm A', |
| 15893 |
LTS: 'h:mm:ss A', |
| 15894 |
L: 'DD/MM/YYYY', |
| 15895 |
LL: 'D MMMM YYYY', |
| 15896 |
LLL: 'D MMMM YYYY h:mm A', |
| 15897 |
LLLL: 'dddd, D MMMM YYYY h:mm A', |
| 15898 |
}, |
| 15899 |
calendar: { |
| 15900 |
sameDay: '[Namuhla nga] LT', |
| 15901 |
nextDay: '[Kusasa nga] LT', |
| 15902 |
nextWeek: 'dddd [nga] LT', |
| 15903 |
lastDay: '[Itolo nga] LT', |
| 15904 |
lastWeek: 'dddd [leliphelile] [nga] LT', |
| 15905 |
sameElse: 'L', |
| 15906 |
}, |
| 15907 |
relativeTime: { |
| 15908 |
future: 'nga %s', |
| 15909 |
past: 'wenteka nga %s', |
| 15910 |
s: 'emizuzwana lomcane', |
| 15911 |
ss: '%d mzuzwana', |
| 15912 |
m: 'umzuzu', |
| 15913 |
mm: '%d emizuzu', |
| 15914 |
h: 'lihora', |
| 15915 |
hh: '%d emahora', |
| 15916 |
d: 'lilanga', |
| 15917 |
dd: '%d emalanga', |
| 15918 |
M: 'inyanga', |
| 15919 |
MM: '%d tinyanga', |
| 15920 |
y: 'umnyaka', |
| 15921 |
yy: '%d iminyaka', |
| 15922 |
}, |
| 15923 |
meridiemParse: /ekuseni|emini|entsambama|ebusuku/, |
| 15924 |
meridiem: function (hours, minutes, isLower) { |
| 15925 |
if (hours < 11) { |
| 15926 |
return 'ekuseni'; |
| 15927 |
} else if (hours < 15) { |
| 15928 |
return 'emini'; |
| 15929 |
} else if (hours < 19) { |
| 15930 |
return 'entsambama'; |
| 15931 |
} else { |
| 15932 |
return 'ebusuku'; |
| 15933 |
} |
| 15934 |
}, |
| 15935 |
meridiemHour: function (hour, meridiem) { |
| 15936 |
if (hour === 12) { |
| 15937 |
hour = 0; |
| 15938 |
} |
| 15939 |
if (meridiem === 'ekuseni') { |
| 15940 |
return hour; |
| 15941 |
} else if (meridiem === 'emini') { |
| 15942 |
return hour >= 11 ? hour : hour + 12; |
| 15943 |
} else if (meridiem === 'entsambama' || meridiem === 'ebusuku') { |
| 15944 |
if (hour === 0) { |
| 15945 |
return 0; |
| 15946 |
} |
| 15947 |
return hour + 12; |
| 15948 |
} |
| 15949 |
}, |
| 15950 |
dayOfMonthOrdinalParse: /\d{1,2}/, |
| 15951 |
ordinal: '%d', |
| 15952 |
week: { |
| 15953 |
dow: 1, // Monday is the first day of the week. |
| 15954 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 15955 |
}, |
| 15956 |
}); |
| 15957 |
|
| 15958 |
//! moment.js locale configuration |
| 15959 |
|
| 15960 |
hooks.defineLocale('sv', { |
| 15961 |
months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split( |
| 15962 |
'_' |
| 15963 |
), |
| 15964 |
monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), |
| 15965 |
weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'), |
| 15966 |
weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'), |
| 15967 |
weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'), |
| 15968 |
longDateFormat: { |
| 15969 |
LT: 'HH:mm', |
| 15970 |
LTS: 'HH:mm:ss', |
| 15971 |
L: 'YYYY-MM-DD', |
| 15972 |
LL: 'D MMMM YYYY', |
| 15973 |
LLL: 'D MMMM YYYY [kl.] HH:mm', |
| 15974 |
LLLL: 'dddd D MMMM YYYY [kl.] HH:mm', |
| 15975 |
lll: 'D MMM YYYY HH:mm', |
| 15976 |
llll: 'ddd D MMM YYYY HH:mm', |
| 15977 |
}, |
| 15978 |
calendar: { |
| 15979 |
sameDay: '[Idag] LT', |
| 15980 |
nextDay: '[Imorgon] LT', |
| 15981 |
lastDay: '[Igår] LT', |
| 15982 |
nextWeek: '[På] dddd LT', |
| 15983 |
lastWeek: '[I] dddd[s] LT', |
| 15984 |
sameElse: 'L', |
| 15985 |
}, |
| 15986 |
relativeTime: { |
| 15987 |
future: 'om %s', |
| 15988 |
past: 'för %s sedan', |
| 15989 |
s: 'några sekunder', |
| 15990 |
ss: '%d sekunder', |
| 15991 |
m: 'en minut', |
| 15992 |
mm: '%d minuter', |
| 15993 |
h: 'en timme', |
| 15994 |
hh: '%d timmar', |
| 15995 |
d: 'en dag', |
| 15996 |
dd: '%d dagar', |
| 15997 |
M: 'en månad', |
| 15998 |
MM: '%d månader', |
| 15999 |
y: 'ett år', |
| 16000 |
yy: '%d år', |
| 16001 |
}, |
| 16002 |
dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/, |
| 16003 |
ordinal: function (number) { |
| 16004 |
var b = number % 10, |
| 16005 |
output = |
| 16006 |
~~((number % 100) / 10) === 1 |
| 16007 |
? ':e' |
| 16008 |
: b === 1 |
| 16009 |
? ':a' |
| 16010 |
: b === 2 |
| 16011 |
? ':a' |
| 16012 |
: b === 3 |
| 16013 |
? ':e' |
| 16014 |
: ':e'; |
| 16015 |
return number + output; |
| 16016 |
}, |
| 16017 |
week: { |
| 16018 |
dow: 1, // Monday is the first day of the week. |
| 16019 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 16020 |
}, |
| 16021 |
}); |
| 16022 |
|
| 16023 |
//! moment.js locale configuration |
| 16024 |
|
| 16025 |
hooks.defineLocale('sw', { |
| 16026 |
months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split( |
| 16027 |
'_' |
| 16028 |
), |
| 16029 |
monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'), |
| 16030 |
weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split( |
| 16031 |
'_' |
| 16032 |
), |
| 16033 |
weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'), |
| 16034 |
weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'), |
| 16035 |
weekdaysParseExact: true, |
| 16036 |
longDateFormat: { |
| 16037 |
LT: 'hh:mm A', |
| 16038 |
LTS: 'HH:mm:ss', |
| 16039 |
L: 'DD.MM.YYYY', |
| 16040 |
LL: 'D MMMM YYYY', |
| 16041 |
LLL: 'D MMMM YYYY HH:mm', |
| 16042 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 16043 |
}, |
| 16044 |
calendar: { |
| 16045 |
sameDay: '[leo saa] LT', |
| 16046 |
nextDay: '[kesho saa] LT', |
| 16047 |
nextWeek: '[wiki ijayo] dddd [saat] LT', |
| 16048 |
lastDay: '[jana] LT', |
| 16049 |
lastWeek: '[wiki iliyopita] dddd [saat] LT', |
| 16050 |
sameElse: 'L', |
| 16051 |
}, |
| 16052 |
relativeTime: { |
| 16053 |
future: '%s baadaye', |
| 16054 |
past: 'tokea %s', |
| 16055 |
s: 'hivi punde', |
| 16056 |
ss: 'sekunde %d', |
| 16057 |
m: 'dakika moja', |
| 16058 |
mm: 'dakika %d', |
| 16059 |
h: 'saa limoja', |
| 16060 |
hh: 'masaa %d', |
| 16061 |
d: 'siku moja', |
| 16062 |
dd: 'siku %d', |
| 16063 |
M: 'mwezi mmoja', |
| 16064 |
MM: 'miezi %d', |
| 16065 |
y: 'mwaka mmoja', |
| 16066 |
yy: 'miaka %d', |
| 16067 |
}, |
| 16068 |
week: { |
| 16069 |
dow: 1, // Monday is the first day of the week. |
| 16070 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 16071 |
}, |
| 16072 |
}); |
| 16073 |
|
| 16074 |
//! moment.js locale configuration |
| 16075 |
|
| 16076 |
var symbolMap$g = { |
| 16077 |
1: '௧', |
| 16078 |
2: '௨', |
| 16079 |
3: '௩', |
| 16080 |
4: '௪', |
| 16081 |
5: '௫', |
| 16082 |
6: '௬', |
| 16083 |
7: '௭', |
| 16084 |
8: '௮', |
| 16085 |
9: '௯', |
| 16086 |
0: '௦', |
| 16087 |
}, |
| 16088 |
numberMap$f = { |
| 16089 |
'௧': '1', |
| 16090 |
'௨': '2', |
| 16091 |
'௩': '3', |
| 16092 |
'௪': '4', |
| 16093 |
'௫': '5', |
| 16094 |
'௬': '6', |
| 16095 |
'௭': '7', |
| 16096 |
'௮': '8', |
| 16097 |
'௯': '9', |
| 16098 |
'௦': '0', |
| 16099 |
}; |
| 16100 |
|
| 16101 |
hooks.defineLocale('ta', { |
| 16102 |
months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( |
| 16103 |
'_' |
| 16104 |
), |
| 16105 |
monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( |
| 16106 |
'_' |
| 16107 |
), |
| 16108 |
weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split( |
| 16109 |
'_' |
| 16110 |
), |
| 16111 |
weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split( |
| 16112 |
'_' |
| 16113 |
), |
| 16114 |
weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'), |
| 16115 |
longDateFormat: { |
| 16116 |
LT: 'HH:mm', |
| 16117 |
LTS: 'HH:mm:ss', |
| 16118 |
L: 'DD/MM/YYYY', |
| 16119 |
LL: 'D MMMM YYYY', |
| 16120 |
LLL: 'D MMMM YYYY, HH:mm', |
| 16121 |
LLLL: 'dddd, D MMMM YYYY, HH:mm', |
| 16122 |
}, |
| 16123 |
calendar: { |
| 16124 |
sameDay: '[இன்று] LT', |
| 16125 |
nextDay: '[நாளை] LT', |
| 16126 |
nextWeek: 'dddd, LT', |
| 16127 |
lastDay: '[நேற்று] LT', |
| 16128 |
lastWeek: '[கடந்த வாரம்] dddd, LT', |
| 16129 |
sameElse: 'L', |
| 16130 |
}, |
| 16131 |
relativeTime: { |
| 16132 |
future: '%s இல்', |
| 16133 |
past: '%s முன்', |
| 16134 |
s: 'ஒரு சில விநாடிகள்', |
| 16135 |
ss: '%d விநாடிகள்', |
| 16136 |
m: 'ஒரு நிமிடம்', |
| 16137 |
mm: '%d நிமிடங்கள்', |
| 16138 |
h: 'ஒரு மணி நேரம்', |
| 16139 |
hh: '%d மணி நேரம்', |
| 16140 |
d: 'ஒரு நாள்', |
| 16141 |
dd: '%d நாட்கள்', |
| 16142 |
M: 'ஒரு மாதம்', |
| 16143 |
MM: '%d மாதங்கள்', |
| 16144 |
y: 'ஒரு வருடம்', |
| 16145 |
yy: '%d ஆண்டுகள்', |
| 16146 |
}, |
| 16147 |
dayOfMonthOrdinalParse: /\d{1,2}வது/, |
| 16148 |
ordinal: function (number) { |
| 16149 |
return number + 'வது'; |
| 16150 |
}, |
| 16151 |
preparse: function (string) { |
| 16152 |
return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) { |
| 16153 |
return numberMap$f[match]; |
| 16154 |
}); |
| 16155 |
}, |
| 16156 |
postformat: function (string) { |
| 16157 |
return string.replace(/\d/g, function (match) { |
| 16158 |
return symbolMap$g[match]; |
| 16159 |
}); |
| 16160 |
}, |
| 16161 |
// refer http://ta.wikipedia.org/s/1er1 |
| 16162 |
meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/, |
| 16163 |
meridiem: function (hour, minute, isLower) { |
| 16164 |
if (hour < 2) { |
| 16165 |
return ' யாமம்'; |
| 16166 |
} else if (hour < 6) { |
| 16167 |
return ' வைகறை'; // வைகறை |
| 16168 |
} else if (hour < 10) { |
| 16169 |
return ' காலை'; // காலை |
| 16170 |
} else if (hour < 14) { |
| 16171 |
return ' நண்பகல்'; // நண்பகல் |
| 16172 |
} else if (hour < 18) { |
| 16173 |
return ' எற்பாடு'; // எற்பாடு |
| 16174 |
} else if (hour < 22) { |
| 16175 |
return ' மாலை'; // மாலை |
| 16176 |
} else { |
| 16177 |
return ' யாமம்'; |
| 16178 |
} |
| 16179 |
}, |
| 16180 |
meridiemHour: function (hour, meridiem) { |
| 16181 |
if (hour === 12) { |
| 16182 |
hour = 0; |
| 16183 |
} |
| 16184 |
if (meridiem === 'யாமம்') { |
| 16185 |
return hour < 2 ? hour : hour + 12; |
| 16186 |
} else if (meridiem === 'வைகறை' || meridiem === 'காலை') { |
| 16187 |
return hour; |
| 16188 |
} else if (meridiem === 'நண்பகல்') { |
| 16189 |
return hour >= 10 ? hour : hour + 12; |
| 16190 |
} else { |
| 16191 |
return hour + 12; |
| 16192 |
} |
| 16193 |
}, |
| 16194 |
week: { |
| 16195 |
dow: 0, // Sunday is the first day of the week. |
| 16196 |
doy: 6, // The week that contains Jan 6th is the first week of the year. |
| 16197 |
}, |
| 16198 |
}); |
| 16199 |
|
| 16200 |
//! moment.js locale configuration |
| 16201 |
|
| 16202 |
hooks.defineLocale('te', { |
| 16203 |
months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split( |
| 16204 |
'_' |
| 16205 |
), |
| 16206 |
monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split( |
| 16207 |
'_' |
| 16208 |
), |
| 16209 |
monthsParseExact: true, |
| 16210 |
weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split( |
| 16211 |
'_' |
| 16212 |
), |
| 16213 |
weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'), |
| 16214 |
weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'), |
| 16215 |
longDateFormat: { |
| 16216 |
LT: 'A h:mm', |
| 16217 |
LTS: 'A h:mm:ss', |
| 16218 |
L: 'DD/MM/YYYY', |
| 16219 |
LL: 'D MMMM YYYY', |
| 16220 |
LLL: 'D MMMM YYYY, A h:mm', |
| 16221 |
LLLL: 'dddd, D MMMM YYYY, A h:mm', |
| 16222 |
}, |
| 16223 |
calendar: { |
| 16224 |
sameDay: '[నేడు] LT', |
| 16225 |
nextDay: '[రేపు] LT', |
| 16226 |
nextWeek: 'dddd, LT', |
| 16227 |
lastDay: '[నిన్న] LT', |
| 16228 |
lastWeek: '[గత] dddd, LT', |
| 16229 |
sameElse: 'L', |
| 16230 |
}, |
| 16231 |
relativeTime: { |
| 16232 |
future: '%s లో', |
| 16233 |
past: '%s క్రితం', |
| 16234 |
s: 'కొన్ని క్షణాలు', |
| 16235 |
ss: '%d సెకన్లు', |
| 16236 |
m: 'ఒక నిమిషం', |
| 16237 |
mm: '%d నిమిషాలు', |
| 16238 |
h: 'ఒక గంట', |
| 16239 |
hh: '%d గంటలు', |
| 16240 |
d: 'ఒక రోజు', |
| 16241 |
dd: '%d రోజులు', |
| 16242 |
M: 'ఒక నెల', |
| 16243 |
MM: '%d నెలలు', |
| 16244 |
y: 'ఒక సంవత్సరం', |
| 16245 |
yy: '%d సంవత్సరాలు', |
| 16246 |
}, |
| 16247 |
dayOfMonthOrdinalParse: /\d{1,2}వ/, |
| 16248 |
ordinal: '%dవ', |
| 16249 |
meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/, |
| 16250 |
meridiemHour: function (hour, meridiem) { |
| 16251 |
if (hour === 12) { |
| 16252 |
hour = 0; |
| 16253 |
} |
| 16254 |
if (meridiem === 'రాత్రి') { |
| 16255 |
return hour < 4 ? hour : hour + 12; |
| 16256 |
} else if (meridiem === 'ఉదయం') { |
| 16257 |
return hour; |
| 16258 |
} else if (meridiem === 'మధ్యాహ్నం') { |
| 16259 |
return hour >= 10 ? hour : hour + 12; |
| 16260 |
} else if (meridiem === 'సాయంత్రం') { |
| 16261 |
return hour + 12; |
| 16262 |
} |
| 16263 |
}, |
| 16264 |
meridiem: function (hour, minute, isLower) { |
| 16265 |
if (hour < 4) { |
| 16266 |
return 'రాత్రి'; |
| 16267 |
} else if (hour < 10) { |
| 16268 |
return 'ఉదయం'; |
| 16269 |
} else if (hour < 17) { |
| 16270 |
return 'మధ్యాహ్నం'; |
| 16271 |
} else if (hour < 20) { |
| 16272 |
return 'సాయంత్రం'; |
| 16273 |
} else { |
| 16274 |
return 'రాత్రి'; |
| 16275 |
} |
| 16276 |
}, |
| 16277 |
week: { |
| 16278 |
dow: 0, // Sunday is the first day of the week. |
| 16279 |
doy: 6, // The week that contains Jan 6th is the first week of the year. |
| 16280 |
}, |
| 16281 |
}); |
| 16282 |
|
| 16283 |
//! moment.js locale configuration |
| 16284 |
|
| 16285 |
hooks.defineLocale('tet', { |
| 16286 |
months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split( |
| 16287 |
'_' |
| 16288 |
), |
| 16289 |
monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'), |
| 16290 |
weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'), |
| 16291 |
weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'), |
| 16292 |
weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'), |
| 16293 |
longDateFormat: { |
| 16294 |
LT: 'HH:mm', |
| 16295 |
LTS: 'HH:mm:ss', |
| 16296 |
L: 'DD/MM/YYYY', |
| 16297 |
LL: 'D MMMM YYYY', |
| 16298 |
LLL: 'D MMMM YYYY HH:mm', |
| 16299 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 16300 |
}, |
| 16301 |
calendar: { |
| 16302 |
sameDay: '[Ohin iha] LT', |
| 16303 |
nextDay: '[Aban iha] LT', |
| 16304 |
nextWeek: 'dddd [iha] LT', |
| 16305 |
lastDay: '[Horiseik iha] LT', |
| 16306 |
lastWeek: 'dddd [semana kotuk] [iha] LT', |
| 16307 |
sameElse: 'L', |
| 16308 |
}, |
| 16309 |
relativeTime: { |
| 16310 |
future: 'iha %s', |
| 16311 |
past: '%s liuba', |
| 16312 |
s: 'segundu balun', |
| 16313 |
ss: 'segundu %d', |
| 16314 |
m: 'minutu ida', |
| 16315 |
mm: 'minutu %d', |
| 16316 |
h: 'oras ida', |
| 16317 |
hh: 'oras %d', |
| 16318 |
d: 'loron ida', |
| 16319 |
dd: 'loron %d', |
| 16320 |
M: 'fulan ida', |
| 16321 |
MM: 'fulan %d', |
| 16322 |
y: 'tinan ida', |
| 16323 |
yy: 'tinan %d', |
| 16324 |
}, |
| 16325 |
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, |
| 16326 |
ordinal: function (number) { |
| 16327 |
var b = number % 10, |
| 16328 |
output = |
| 16329 |
~~((number % 100) / 10) === 1 |
| 16330 |
? 'th' |
| 16331 |
: b === 1 |
| 16332 |
? 'st' |
| 16333 |
: b === 2 |
| 16334 |
? 'nd' |
| 16335 |
: b === 3 |
| 16336 |
? 'rd' |
| 16337 |
: 'th'; |
| 16338 |
return number + output; |
| 16339 |
}, |
| 16340 |
week: { |
| 16341 |
dow: 1, // Monday is the first day of the week. |
| 16342 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 16343 |
}, |
| 16344 |
}); |
| 16345 |
|
| 16346 |
//! moment.js locale configuration |
| 16347 |
|
| 16348 |
var suffixes$3 = { |
| 16349 |
0: '-ум', |
| 16350 |
1: '-ум', |
| 16351 |
2: '-юм', |
| 16352 |
3: '-юм', |
| 16353 |
4: '-ум', |
| 16354 |
5: '-ум', |
| 16355 |
6: '-ум', |
| 16356 |
7: '-ум', |
| 16357 |
8: '-ум', |
| 16358 |
9: '-ум', |
| 16359 |
10: '-ум', |
| 16360 |
12: '-ум', |
| 16361 |
13: '-ум', |
| 16362 |
20: '-ум', |
| 16363 |
30: '-юм', |
| 16364 |
40: '-ум', |
| 16365 |
50: '-ум', |
| 16366 |
60: '-ум', |
| 16367 |
70: '-ум', |
| 16368 |
80: '-ум', |
| 16369 |
90: '-ум', |
| 16370 |
100: '-ум', |
| 16371 |
}; |
| 16372 |
|
| 16373 |
hooks.defineLocale('tg', { |
| 16374 |
months: { |
| 16375 |
format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split( |
| 16376 |
'_' |
| 16377 |
), |
| 16378 |
standalone: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split( |
| 16379 |
'_' |
| 16380 |
), |
| 16381 |
}, |
| 16382 |
monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'), |
| 16383 |
weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split( |
| 16384 |
'_' |
| 16385 |
), |
| 16386 |
weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'), |
| 16387 |
weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'), |
| 16388 |
longDateFormat: { |
| 16389 |
LT: 'HH:mm', |
| 16390 |
LTS: 'HH:mm:ss', |
| 16391 |
L: 'DD.MM.YYYY', |
| 16392 |
LL: 'D MMMM YYYY', |
| 16393 |
LLL: 'D MMMM YYYY HH:mm', |
| 16394 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 16395 |
}, |
| 16396 |
calendar: { |
| 16397 |
sameDay: '[Имрӯз соати] LT', |
| 16398 |
nextDay: '[Фардо соати] LT', |
| 16399 |
lastDay: '[Дирӯз соати] LT', |
| 16400 |
nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT', |
| 16401 |
lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT', |
| 16402 |
sameElse: 'L', |
| 16403 |
}, |
| 16404 |
relativeTime: { |
| 16405 |
future: 'баъди %s', |
| 16406 |
past: '%s пеш', |
| 16407 |
s: 'якчанд сония', |
| 16408 |
m: 'як дақиқа', |
| 16409 |
mm: '%d дақиқа', |
| 16410 |
h: 'як соат', |
| 16411 |
hh: '%d соат', |
| 16412 |
d: 'як рӯз', |
| 16413 |
dd: '%d рӯз', |
| 16414 |
M: 'як моҳ', |
| 16415 |
MM: '%d моҳ', |
| 16416 |
y: 'як сол', |
| 16417 |
yy: '%d сол', |
| 16418 |
}, |
| 16419 |
meridiemParse: /шаб|субҳ|рӯз|бегоҳ/, |
| 16420 |
meridiemHour: function (hour, meridiem) { |
| 16421 |
if (hour === 12) { |
| 16422 |
hour = 0; |
| 16423 |
} |
| 16424 |
if (meridiem === 'шаб') { |
| 16425 |
return hour < 4 ? hour : hour + 12; |
| 16426 |
} else if (meridiem === 'субҳ') { |
| 16427 |
return hour; |
| 16428 |
} else if (meridiem === 'рӯз') { |
| 16429 |
return hour >= 11 ? hour : hour + 12; |
| 16430 |
} else if (meridiem === 'бегоҳ') { |
| 16431 |
return hour + 12; |
| 16432 |
} |
| 16433 |
}, |
| 16434 |
meridiem: function (hour, minute, isLower) { |
| 16435 |
if (hour < 4) { |
| 16436 |
return 'шаб'; |
| 16437 |
} else if (hour < 11) { |
| 16438 |
return 'субҳ'; |
| 16439 |
} else if (hour < 16) { |
| 16440 |
return 'рӯз'; |
| 16441 |
} else if (hour < 19) { |
| 16442 |
return 'бегоҳ'; |
| 16443 |
} else { |
| 16444 |
return 'шаб'; |
| 16445 |
} |
| 16446 |
}, |
| 16447 |
dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/, |
| 16448 |
ordinal: function (number) { |
| 16449 |
var a = number % 10, |
| 16450 |
b = number >= 100 ? 100 : null; |
| 16451 |
return number + (suffixes$3[number] || suffixes$3[a] || suffixes$3[b]); |
| 16452 |
}, |
| 16453 |
week: { |
| 16454 |
dow: 1, // Monday is the first day of the week. |
| 16455 |
doy: 7, // The week that contains Jan 1th is the first week of the year. |
| 16456 |
}, |
| 16457 |
}); |
| 16458 |
|
| 16459 |
//! moment.js locale configuration |
| 16460 |
|
| 16461 |
hooks.defineLocale('th', { |
| 16462 |
months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split( |
| 16463 |
'_' |
| 16464 |
), |
| 16465 |
monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split( |
| 16466 |
'_' |
| 16467 |
), |
| 16468 |
monthsParseExact: true, |
| 16469 |
weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), |
| 16470 |
weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference |
| 16471 |
weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), |
| 16472 |
weekdaysParseExact: true, |
| 16473 |
longDateFormat: { |
| 16474 |
LT: 'H:mm', |
| 16475 |
LTS: 'H:mm:ss', |
| 16476 |
L: 'DD/MM/YYYY', |
| 16477 |
LL: 'D MMMM YYYY', |
| 16478 |
LLL: 'D MMMM YYYY เวลา H:mm', |
| 16479 |
LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm', |
| 16480 |
}, |
| 16481 |
meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/, |
| 16482 |
isPM: function (input) { |
| 16483 |
return input === 'หลังเที่ยง'; |
| 16484 |
}, |
| 16485 |
meridiem: function (hour, minute, isLower) { |
| 16486 |
if (hour < 12) { |
| 16487 |
return 'ก่อนเที่ยง'; |
| 16488 |
} else { |
| 16489 |
return 'หลังเที่ยง'; |
| 16490 |
} |
| 16491 |
}, |
| 16492 |
calendar: { |
| 16493 |
sameDay: '[วันนี้ เวลา] LT', |
| 16494 |
nextDay: '[พรุ่งนี้ เวลา] LT', |
| 16495 |
nextWeek: 'dddd[หน้า เวลา] LT', |
| 16496 |
lastDay: '[เมื่อวานนี้ เวลา] LT', |
| 16497 |
lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT', |
| 16498 |
sameElse: 'L', |
| 16499 |
}, |
| 16500 |
relativeTime: { |
| 16501 |
future: 'อีก %s', |
| 16502 |
past: '%sที่แล้ว', |
| 16503 |
s: 'ไม่กี่วินาที', |
| 16504 |
ss: '%d วินาที', |
| 16505 |
m: '1 นาที', |
| 16506 |
mm: '%d นาที', |
| 16507 |
h: '1 ชั่วโมง', |
| 16508 |
hh: '%d ชั่วโมง', |
| 16509 |
d: '1 วัน', |
| 16510 |
dd: '%d วัน', |
| 16511 |
w: '1 สัปดาห์', |
| 16512 |
ww: '%d สัปดาห์', |
| 16513 |
M: '1 เดือน', |
| 16514 |
MM: '%d เดือน', |
| 16515 |
y: '1 ปี', |
| 16516 |
yy: '%d ปี', |
| 16517 |
}, |
| 16518 |
}); |
| 16519 |
|
| 16520 |
//! moment.js locale configuration |
| 16521 |
|
| 16522 |
var suffixes$4 = { |
| 16523 |
1: "'inji", |
| 16524 |
5: "'inji", |
| 16525 |
8: "'inji", |
| 16526 |
70: "'inji", |
| 16527 |
80: "'inji", |
| 16528 |
2: "'nji", |
| 16529 |
7: "'nji", |
| 16530 |
20: "'nji", |
| 16531 |
50: "'nji", |
| 16532 |
3: "'ünji", |
| 16533 |
4: "'ünji", |
| 16534 |
100: "'ünji", |
| 16535 |
6: "'njy", |
| 16536 |
9: "'unjy", |
| 16537 |
10: "'unjy", |
| 16538 |
30: "'unjy", |
| 16539 |
60: "'ynjy", |
| 16540 |
90: "'ynjy", |
| 16541 |
}; |
| 16542 |
|
| 16543 |
hooks.defineLocale('tk', { |
| 16544 |
months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split( |
| 16545 |
'_' |
| 16546 |
), |
| 16547 |
monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'), |
| 16548 |
weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split( |
| 16549 |
'_' |
| 16550 |
), |
| 16551 |
weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'), |
| 16552 |
weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'), |
| 16553 |
longDateFormat: { |
| 16554 |
LT: 'HH:mm', |
| 16555 |
LTS: 'HH:mm:ss', |
| 16556 |
L: 'DD.MM.YYYY', |
| 16557 |
LL: 'D MMMM YYYY', |
| 16558 |
LLL: 'D MMMM YYYY HH:mm', |
| 16559 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 16560 |
}, |
| 16561 |
calendar: { |
| 16562 |
sameDay: '[bugün sagat] LT', |
| 16563 |
nextDay: '[ertir sagat] LT', |
| 16564 |
nextWeek: '[indiki] dddd [sagat] LT', |
| 16565 |
lastDay: '[düýn] LT', |
| 16566 |
lastWeek: '[geçen] dddd [sagat] LT', |
| 16567 |
sameElse: 'L', |
| 16568 |
}, |
| 16569 |
relativeTime: { |
| 16570 |
future: '%s soň', |
| 16571 |
past: '%s öň', |
| 16572 |
s: 'birnäçe sekunt', |
| 16573 |
m: 'bir minut', |
| 16574 |
mm: '%d minut', |
| 16575 |
h: 'bir sagat', |
| 16576 |
hh: '%d sagat', |
| 16577 |
d: 'bir gün', |
| 16578 |
dd: '%d gün', |
| 16579 |
M: 'bir aý', |
| 16580 |
MM: '%d aý', |
| 16581 |
y: 'bir ýyl', |
| 16582 |
yy: '%d ýyl', |
| 16583 |
}, |
| 16584 |
ordinal: function (number, period) { |
| 16585 |
switch (period) { |
| 16586 |
case 'd': |
| 16587 |
case 'D': |
| 16588 |
case 'Do': |
| 16589 |
case 'DD': |
| 16590 |
return number; |
| 16591 |
default: |
| 16592 |
if (number === 0) { |
| 16593 |
// special case for zero |
| 16594 |
return number + "'unjy"; |
| 16595 |
} |
| 16596 |
var a = number % 10, |
| 16597 |
b = (number % 100) - a, |
| 16598 |
c = number >= 100 ? 100 : null; |
| 16599 |
return number + (suffixes$4[a] || suffixes$4[b] || suffixes$4[c]); |
| 16600 |
} |
| 16601 |
}, |
| 16602 |
week: { |
| 16603 |
dow: 1, // Monday is the first day of the week. |
| 16604 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 16605 |
}, |
| 16606 |
}); |
| 16607 |
|
| 16608 |
//! moment.js locale configuration |
| 16609 |
|
| 16610 |
hooks.defineLocale('tl-ph', { |
| 16611 |
months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split( |
| 16612 |
'_' |
| 16613 |
), |
| 16614 |
monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), |
| 16615 |
weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split( |
| 16616 |
'_' |
| 16617 |
), |
| 16618 |
weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), |
| 16619 |
weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), |
| 16620 |
longDateFormat: { |
| 16621 |
LT: 'HH:mm', |
| 16622 |
LTS: 'HH:mm:ss', |
| 16623 |
L: 'MM/D/YYYY', |
| 16624 |
LL: 'MMMM D, YYYY', |
| 16625 |
LLL: 'MMMM D, YYYY HH:mm', |
| 16626 |
LLLL: 'dddd, MMMM DD, YYYY HH:mm', |
| 16627 |
}, |
| 16628 |
calendar: { |
| 16629 |
sameDay: 'LT [ngayong araw]', |
| 16630 |
nextDay: '[Bukas ng] LT', |
| 16631 |
nextWeek: 'LT [sa susunod na] dddd', |
| 16632 |
lastDay: 'LT [kahapon]', |
| 16633 |
lastWeek: 'LT [noong nakaraang] dddd', |
| 16634 |
sameElse: 'L', |
| 16635 |
}, |
| 16636 |
relativeTime: { |
| 16637 |
future: 'sa loob ng %s', |
| 16638 |
past: '%s ang nakalipas', |
| 16639 |
s: 'ilang segundo', |
| 16640 |
ss: '%d segundo', |
| 16641 |
m: 'isang minuto', |
| 16642 |
mm: '%d minuto', |
| 16643 |
h: 'isang oras', |
| 16644 |
hh: '%d oras', |
| 16645 |
d: 'isang araw', |
| 16646 |
dd: '%d araw', |
| 16647 |
M: 'isang buwan', |
| 16648 |
MM: '%d buwan', |
| 16649 |
y: 'isang taon', |
| 16650 |
yy: '%d taon', |
| 16651 |
}, |
| 16652 |
dayOfMonthOrdinalParse: /\d{1,2}/, |
| 16653 |
ordinal: function (number) { |
| 16654 |
return number; |
| 16655 |
}, |
| 16656 |
week: { |
| 16657 |
dow: 1, // Monday is the first day of the week. |
| 16658 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 16659 |
}, |
| 16660 |
}); |
| 16661 |
|
| 16662 |
//! moment.js locale configuration |
| 16663 |
|
| 16664 |
var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_'); |
| 16665 |
|
| 16666 |
function translateFuture(output) { |
| 16667 |
var time = output; |
| 16668 |
time = |
| 16669 |
output.indexOf('jaj') !== -1 |
| 16670 |
? time.slice(0, -3) + 'leS' |
| 16671 |
: output.indexOf('jar') !== -1 |
| 16672 |
? time.slice(0, -3) + 'waQ' |
| 16673 |
: output.indexOf('DIS') !== -1 |
| 16674 |
? time.slice(0, -3) + 'nem' |
| 16675 |
: time + ' pIq'; |
| 16676 |
return time; |
| 16677 |
} |
| 16678 |
|
| 16679 |
function translatePast(output) { |
| 16680 |
var time = output; |
| 16681 |
time = |
| 16682 |
output.indexOf('jaj') !== -1 |
| 16683 |
? time.slice(0, -3) + 'Hu’' |
| 16684 |
: output.indexOf('jar') !== -1 |
| 16685 |
? time.slice(0, -3) + 'wen' |
| 16686 |
: output.indexOf('DIS') !== -1 |
| 16687 |
? time.slice(0, -3) + 'ben' |
| 16688 |
: time + ' ret'; |
| 16689 |
return time; |
| 16690 |
} |
| 16691 |
|
| 16692 |
function translate$a(number, withoutSuffix, string, isFuture) { |
| 16693 |
var numberNoun = numberAsNoun(number); |
| 16694 |
switch (string) { |
| 16695 |
case 'ss': |
| 16696 |
return numberNoun + ' lup'; |
| 16697 |
case 'mm': |
| 16698 |
return numberNoun + ' tup'; |
| 16699 |
case 'hh': |
| 16700 |
return numberNoun + ' rep'; |
| 16701 |
case 'dd': |
| 16702 |
return numberNoun + ' jaj'; |
| 16703 |
case 'MM': |
| 16704 |
return numberNoun + ' jar'; |
| 16705 |
case 'yy': |
| 16706 |
return numberNoun + ' DIS'; |
| 16707 |
} |
| 16708 |
} |
| 16709 |
|
| 16710 |
function numberAsNoun(number) { |
| 16711 |
var hundred = Math.floor((number % 1000) / 100), |
| 16712 |
ten = Math.floor((number % 100) / 10), |
| 16713 |
one = number % 10, |
| 16714 |
word = ''; |
| 16715 |
if (hundred > 0) { |
| 16716 |
word += numbersNouns[hundred] + 'vatlh'; |
| 16717 |
} |
| 16718 |
if (ten > 0) { |
| 16719 |
word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH'; |
| 16720 |
} |
| 16721 |
if (one > 0) { |
| 16722 |
word += (word !== '' ? ' ' : '') + numbersNouns[one]; |
| 16723 |
} |
| 16724 |
return word === '' ? 'pagh' : word; |
| 16725 |
} |
| 16726 |
|
| 16727 |
hooks.defineLocale('tlh', { |
| 16728 |
months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split( |
| 16729 |
'_' |
| 16730 |
), |
| 16731 |
monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split( |
| 16732 |
'_' |
| 16733 |
), |
| 16734 |
monthsParseExact: true, |
| 16735 |
weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( |
| 16736 |
'_' |
| 16737 |
), |
| 16738 |
weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( |
| 16739 |
'_' |
| 16740 |
), |
| 16741 |
weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( |
| 16742 |
'_' |
| 16743 |
), |
| 16744 |
longDateFormat: { |
| 16745 |
LT: 'HH:mm', |
| 16746 |
LTS: 'HH:mm:ss', |
| 16747 |
L: 'DD.MM.YYYY', |
| 16748 |
LL: 'D MMMM YYYY', |
| 16749 |
LLL: 'D MMMM YYYY HH:mm', |
| 16750 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 16751 |
}, |
| 16752 |
calendar: { |
| 16753 |
sameDay: '[DaHjaj] LT', |
| 16754 |
nextDay: '[wa’leS] LT', |
| 16755 |
nextWeek: 'LLL', |
| 16756 |
lastDay: '[wa’Hu’] LT', |
| 16757 |
lastWeek: 'LLL', |
| 16758 |
sameElse: 'L', |
| 16759 |
}, |
| 16760 |
relativeTime: { |
| 16761 |
future: translateFuture, |
| 16762 |
past: translatePast, |
| 16763 |
s: 'puS lup', |
| 16764 |
ss: translate$a, |
| 16765 |
m: 'wa’ tup', |
| 16766 |
mm: translate$a, |
| 16767 |
h: 'wa’ rep', |
| 16768 |
hh: translate$a, |
| 16769 |
d: 'wa’ jaj', |
| 16770 |
dd: translate$a, |
| 16771 |
M: 'wa’ jar', |
| 16772 |
MM: translate$a, |
| 16773 |
y: 'wa’ DIS', |
| 16774 |
yy: translate$a, |
| 16775 |
}, |
| 16776 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 16777 |
ordinal: '%d.', |
| 16778 |
week: { |
| 16779 |
dow: 1, // Monday is the first day of the week. |
| 16780 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 16781 |
}, |
| 16782 |
}); |
| 16783 |
|
| 16784 |
//! moment.js locale configuration |
| 16785 |
|
| 16786 |
var suffixes$5 = { |
| 16787 |
1: "'inci", |
| 16788 |
5: "'inci", |
| 16789 |
8: "'inci", |
| 16790 |
70: "'inci", |
| 16791 |
80: "'inci", |
| 16792 |
2: "'nci", |
| 16793 |
7: "'nci", |
| 16794 |
20: "'nci", |
| 16795 |
50: "'nci", |
| 16796 |
3: "'üncü", |
| 16797 |
4: "'üncü", |
| 16798 |
100: "'üncü", |
| 16799 |
6: "'ncı", |
| 16800 |
9: "'uncu", |
| 16801 |
10: "'uncu", |
| 16802 |
30: "'uncu", |
| 16803 |
60: "'ıncı", |
| 16804 |
90: "'ıncı", |
| 16805 |
}; |
| 16806 |
|
| 16807 |
hooks.defineLocale('tr', { |
| 16808 |
months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split( |
| 16809 |
'_' |
| 16810 |
), |
| 16811 |
monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'), |
| 16812 |
weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split( |
| 16813 |
'_' |
| 16814 |
), |
| 16815 |
weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), |
| 16816 |
weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'), |
| 16817 |
meridiem: function (hours, minutes, isLower) { |
| 16818 |
if (hours < 12) { |
| 16819 |
return isLower ? 'öö' : 'ÖÖ'; |
| 16820 |
} else { |
| 16821 |
return isLower ? 'ös' : 'ÖS'; |
| 16822 |
} |
| 16823 |
}, |
| 16824 |
meridiemParse: /öö|ÖÖ|ös|ÖS/, |
| 16825 |
isPM: function (input) { |
| 16826 |
return input === 'ös' || input === 'ÖS'; |
| 16827 |
}, |
| 16828 |
longDateFormat: { |
| 16829 |
LT: 'HH:mm', |
| 16830 |
LTS: 'HH:mm:ss', |
| 16831 |
L: 'DD.MM.YYYY', |
| 16832 |
LL: 'D MMMM YYYY', |
| 16833 |
LLL: 'D MMMM YYYY HH:mm', |
| 16834 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 16835 |
}, |
| 16836 |
calendar: { |
| 16837 |
sameDay: '[bugün saat] LT', |
| 16838 |
nextDay: '[yarın saat] LT', |
| 16839 |
nextWeek: '[gelecek] dddd [saat] LT', |
| 16840 |
lastDay: '[dün] LT', |
| 16841 |
lastWeek: '[geçen] dddd [saat] LT', |
| 16842 |
sameElse: 'L', |
| 16843 |
}, |
| 16844 |
relativeTime: { |
| 16845 |
future: '%s sonra', |
| 16846 |
past: '%s önce', |
| 16847 |
s: 'birkaç saniye', |
| 16848 |
ss: '%d saniye', |
| 16849 |
m: 'bir dakika', |
| 16850 |
mm: '%d dakika', |
| 16851 |
h: 'bir saat', |
| 16852 |
hh: '%d saat', |
| 16853 |
d: 'bir gün', |
| 16854 |
dd: '%d gün', |
| 16855 |
w: 'bir hafta', |
| 16856 |
ww: '%d hafta', |
| 16857 |
M: 'bir ay', |
| 16858 |
MM: '%d ay', |
| 16859 |
y: 'bir yıl', |
| 16860 |
yy: '%d yıl', |
| 16861 |
}, |
| 16862 |
ordinal: function (number, period) { |
| 16863 |
switch (period) { |
| 16864 |
case 'd': |
| 16865 |
case 'D': |
| 16866 |
case 'Do': |
| 16867 |
case 'DD': |
| 16868 |
return number; |
| 16869 |
default: |
| 16870 |
if (number === 0) { |
| 16871 |
// special case for zero |
| 16872 |
return number + "'ıncı"; |
| 16873 |
} |
| 16874 |
var a = number % 10, |
| 16875 |
b = (number % 100) - a, |
| 16876 |
c = number >= 100 ? 100 : null; |
| 16877 |
return number + (suffixes$5[a] || suffixes$5[b] || suffixes$5[c]); |
| 16878 |
} |
| 16879 |
}, |
| 16880 |
week: { |
| 16881 |
dow: 1, // Monday is the first day of the week. |
| 16882 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 16883 |
}, |
| 16884 |
}); |
| 16885 |
|
| 16886 |
//! moment.js locale configuration |
| 16887 |
|
| 16888 |
// After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals. |
| 16889 |
// This is currently too difficult (maybe even impossible) to add. |
| 16890 |
hooks.defineLocale('tzl', { |
| 16891 |
months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split( |
| 16892 |
'_' |
| 16893 |
), |
| 16894 |
monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'), |
| 16895 |
weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'), |
| 16896 |
weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'), |
| 16897 |
weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'), |
| 16898 |
longDateFormat: { |
| 16899 |
LT: 'HH.mm', |
| 16900 |
LTS: 'HH.mm.ss', |
| 16901 |
L: 'DD.MM.YYYY', |
| 16902 |
LL: 'D. MMMM [dallas] YYYY', |
| 16903 |
LLL: 'D. MMMM [dallas] YYYY HH.mm', |
| 16904 |
LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm', |
| 16905 |
}, |
| 16906 |
meridiemParse: /d\'o|d\'a/i, |
| 16907 |
isPM: function (input) { |
| 16908 |
return "d'o" === input.toLowerCase(); |
| 16909 |
}, |
| 16910 |
meridiem: function (hours, minutes, isLower) { |
| 16911 |
if (hours > 11) { |
| 16912 |
return isLower ? "d'o" : "D'O"; |
| 16913 |
} else { |
| 16914 |
return isLower ? "d'a" : "D'A"; |
| 16915 |
} |
| 16916 |
}, |
| 16917 |
calendar: { |
| 16918 |
sameDay: '[oxhi à] LT', |
| 16919 |
nextDay: '[demà à] LT', |
| 16920 |
nextWeek: 'dddd [à] LT', |
| 16921 |
lastDay: '[ieiri à] LT', |
| 16922 |
lastWeek: '[sür el] dddd [lasteu à] LT', |
| 16923 |
sameElse: 'L', |
| 16924 |
}, |
| 16925 |
relativeTime: { |
| 16926 |
future: 'osprei %s', |
| 16927 |
past: 'ja%s', |
| 16928 |
s: processRelativeTime$8, |
| 16929 |
ss: processRelativeTime$8, |
| 16930 |
m: processRelativeTime$8, |
| 16931 |
mm: processRelativeTime$8, |
| 16932 |
h: processRelativeTime$8, |
| 16933 |
hh: processRelativeTime$8, |
| 16934 |
d: processRelativeTime$8, |
| 16935 |
dd: processRelativeTime$8, |
| 16936 |
M: processRelativeTime$8, |
| 16937 |
MM: processRelativeTime$8, |
| 16938 |
y: processRelativeTime$8, |
| 16939 |
yy: processRelativeTime$8, |
| 16940 |
}, |
| 16941 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 16942 |
ordinal: '%d.', |
| 16943 |
week: { |
| 16944 |
dow: 1, // Monday is the first day of the week. |
| 16945 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 16946 |
}, |
| 16947 |
}); |
| 16948 |
|
| 16949 |
function processRelativeTime$8(number, withoutSuffix, key, isFuture) { |
| 16950 |
var format = { |
| 16951 |
s: ['viensas secunds', "'iensas secunds"], |
| 16952 |
ss: [number + ' secunds', '' + number + ' secunds'], |
| 16953 |
m: ["'n míut", "'iens míut"], |
| 16954 |
mm: [number + ' míuts', '' + number + ' míuts'], |
| 16955 |
h: ["'n þora", "'iensa þora"], |
| 16956 |
hh: [number + ' þoras', '' + number + ' þoras'], |
| 16957 |
d: ["'n ziua", "'iensa ziua"], |
| 16958 |
dd: [number + ' ziuas', '' + number + ' ziuas'], |
| 16959 |
M: ["'n mes", "'iens mes"], |
| 16960 |
MM: [number + ' mesen', '' + number + ' mesen'], |
| 16961 |
y: ["'n ar", "'iens ar"], |
| 16962 |
yy: [number + ' ars', '' + number + ' ars'], |
| 16963 |
}; |
| 16964 |
return isFuture |
| 16965 |
? format[key][0] |
| 16966 |
: withoutSuffix |
| 16967 |
? format[key][0] |
| 16968 |
: format[key][1]; |
| 16969 |
} |
| 16970 |
|
| 16971 |
//! moment.js locale configuration |
| 16972 |
|
| 16973 |
hooks.defineLocale('tzm-latn', { |
| 16974 |
months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( |
| 16975 |
'_' |
| 16976 |
), |
| 16977 |
monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( |
| 16978 |
'_' |
| 16979 |
), |
| 16980 |
weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), |
| 16981 |
weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), |
| 16982 |
weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), |
| 16983 |
longDateFormat: { |
| 16984 |
LT: 'HH:mm', |
| 16985 |
LTS: 'HH:mm:ss', |
| 16986 |
L: 'DD/MM/YYYY', |
| 16987 |
LL: 'D MMMM YYYY', |
| 16988 |
LLL: 'D MMMM YYYY HH:mm', |
| 16989 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 16990 |
}, |
| 16991 |
calendar: { |
| 16992 |
sameDay: '[asdkh g] LT', |
| 16993 |
nextDay: '[aska g] LT', |
| 16994 |
nextWeek: 'dddd [g] LT', |
| 16995 |
lastDay: '[assant g] LT', |
| 16996 |
lastWeek: 'dddd [g] LT', |
| 16997 |
sameElse: 'L', |
| 16998 |
}, |
| 16999 |
relativeTime: { |
| 17000 |
future: 'dadkh s yan %s', |
| 17001 |
past: 'yan %s', |
| 17002 |
s: 'imik', |
| 17003 |
ss: '%d imik', |
| 17004 |
m: 'minuḍ', |
| 17005 |
mm: '%d minuḍ', |
| 17006 |
h: 'saɛa', |
| 17007 |
hh: '%d tassaɛin', |
| 17008 |
d: 'ass', |
| 17009 |
dd: '%d ossan', |
| 17010 |
M: 'ayowr', |
| 17011 |
MM: '%d iyyirn', |
| 17012 |
y: 'asgas', |
| 17013 |
yy: '%d isgasn', |
| 17014 |
}, |
| 17015 |
week: { |
| 17016 |
dow: 6, // Saturday is the first day of the week. |
| 17017 |
doy: 12, // The week that contains Jan 12th is the first week of the year. |
| 17018 |
}, |
| 17019 |
}); |
| 17020 |
|
| 17021 |
//! moment.js locale configuration |
| 17022 |
|
| 17023 |
hooks.defineLocale('tzm', { |
| 17024 |
months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( |
| 17025 |
'_' |
| 17026 |
), |
| 17027 |
monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( |
| 17028 |
'_' |
| 17029 |
), |
| 17030 |
weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), |
| 17031 |
weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), |
| 17032 |
weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), |
| 17033 |
longDateFormat: { |
| 17034 |
LT: 'HH:mm', |
| 17035 |
LTS: 'HH:mm:ss', |
| 17036 |
L: 'DD/MM/YYYY', |
| 17037 |
LL: 'D MMMM YYYY', |
| 17038 |
LLL: 'D MMMM YYYY HH:mm', |
| 17039 |
LLLL: 'dddd D MMMM YYYY HH:mm', |
| 17040 |
}, |
| 17041 |
calendar: { |
| 17042 |
sameDay: '[ⴰⵙⴷⵅ ⴴ] LT', |
| 17043 |
nextDay: '[ⴰⵙⴽⴰ ⴴ] LT', |
| 17044 |
nextWeek: 'dddd [ⴴ] LT', |
| 17045 |
lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT', |
| 17046 |
lastWeek: 'dddd [ⴴ] LT', |
| 17047 |
sameElse: 'L', |
| 17048 |
}, |
| 17049 |
relativeTime: { |
| 17050 |
future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s', |
| 17051 |
past: 'ⵢⴰⵏ %s', |
| 17052 |
s: 'ⵉⵎⵉⴽ', |
| 17053 |
ss: '%d ⵉⵎⵉⴽ', |
| 17054 |
m: 'ⵎⵉⵏⵓⴺ', |
| 17055 |
mm: '%d ⵎⵉⵏⵓⴺ', |
| 17056 |
h: 'ⵙⴰⵄⴰ', |
| 17057 |
hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ', |
| 17058 |
d: 'ⴰⵙⵙ', |
| 17059 |
dd: '%d oⵙⵙⴰⵏ', |
| 17060 |
M: 'ⴰⵢoⵓⵔ', |
| 17061 |
MM: '%d ⵉⵢⵢⵉⵔⵏ', |
| 17062 |
y: 'ⴰⵙⴳⴰⵙ', |
| 17063 |
yy: '%d ⵉⵙⴳⴰⵙⵏ', |
| 17064 |
}, |
| 17065 |
week: { |
| 17066 |
dow: 6, // Saturday is the first day of the week. |
| 17067 |
doy: 12, // The week that contains Jan 12th is the first week of the year. |
| 17068 |
}, |
| 17069 |
}); |
| 17070 |
|
| 17071 |
//! moment.js locale configuration |
| 17072 |
|
| 17073 |
hooks.defineLocale('ug-cn', { |
| 17074 |
months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split( |
| 17075 |
'_' |
| 17076 |
), |
| 17077 |
monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split( |
| 17078 |
'_' |
| 17079 |
), |
| 17080 |
weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split( |
| 17081 |
'_' |
| 17082 |
), |
| 17083 |
weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'), |
| 17084 |
weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'), |
| 17085 |
longDateFormat: { |
| 17086 |
LT: 'HH:mm', |
| 17087 |
LTS: 'HH:mm:ss', |
| 17088 |
L: 'YYYY-MM-DD', |
| 17089 |
LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى', |
| 17090 |
LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm', |
| 17091 |
LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm', |
| 17092 |
}, |
| 17093 |
meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/, |
| 17094 |
meridiemHour: function (hour, meridiem) { |
| 17095 |
if (hour === 12) { |
| 17096 |
hour = 0; |
| 17097 |
} |
| 17098 |
if ( |
| 17099 |
meridiem === 'يېرىم كېچە' || |
| 17100 |
meridiem === 'سەھەر' || |
| 17101 |
meridiem === 'چۈشتىن بۇرۇن' |
| 17102 |
) { |
| 17103 |
return hour; |
| 17104 |
} else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') { |
| 17105 |
return hour + 12; |
| 17106 |
} else { |
| 17107 |
return hour >= 11 ? hour : hour + 12; |
| 17108 |
} |
| 17109 |
}, |
| 17110 |
meridiem: function (hour, minute, isLower) { |
| 17111 |
var hm = hour * 100 + minute; |
| 17112 |
if (hm < 600) { |
| 17113 |
return 'يېرىم كېچە'; |
| 17114 |
} else if (hm < 900) { |
| 17115 |
return 'سەھەر'; |
| 17116 |
} else if (hm < 1130) { |
| 17117 |
return 'چۈشتىن بۇرۇن'; |
| 17118 |
} else if (hm < 1230) { |
| 17119 |
return 'چۈش'; |
| 17120 |
} else if (hm < 1800) { |
| 17121 |
return 'چۈشتىن كېيىن'; |
| 17122 |
} else { |
| 17123 |
return 'كەچ'; |
| 17124 |
} |
| 17125 |
}, |
| 17126 |
calendar: { |
| 17127 |
sameDay: '[بۈگۈن سائەت] LT', |
| 17128 |
nextDay: '[ئەتە سائەت] LT', |
| 17129 |
nextWeek: '[كېلەركى] dddd [سائەت] LT', |
| 17130 |
lastDay: '[تۆنۈگۈن] LT', |
| 17131 |
lastWeek: '[ئالدىنقى] dddd [سائەت] LT', |
| 17132 |
sameElse: 'L', |
| 17133 |
}, |
| 17134 |
relativeTime: { |
| 17135 |
future: '%s كېيىن', |
| 17136 |
past: '%s بۇرۇن', |
| 17137 |
s: 'نەچچە سېكونت', |
| 17138 |
ss: '%d سېكونت', |
| 17139 |
m: 'بىر مىنۇت', |
| 17140 |
mm: '%d مىنۇت', |
| 17141 |
h: 'بىر سائەت', |
| 17142 |
hh: '%d سائەت', |
| 17143 |
d: 'بىر كۈن', |
| 17144 |
dd: '%d كۈن', |
| 17145 |
M: 'بىر ئاي', |
| 17146 |
MM: '%d ئاي', |
| 17147 |
y: 'بىر يىل', |
| 17148 |
yy: '%d يىل', |
| 17149 |
}, |
| 17150 |
|
| 17151 |
dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/, |
| 17152 |
ordinal: function (number, period) { |
| 17153 |
switch (period) { |
| 17154 |
case 'd': |
| 17155 |
case 'D': |
| 17156 |
case 'DDD': |
| 17157 |
return number + '-كۈنى'; |
| 17158 |
case 'w': |
| 17159 |
case 'W': |
| 17160 |
return number + '-ھەپتە'; |
| 17161 |
default: |
| 17162 |
return number; |
| 17163 |
} |
| 17164 |
}, |
| 17165 |
preparse: function (string) { |
| 17166 |
return string.replace(/،/g, ','); |
| 17167 |
}, |
| 17168 |
postformat: function (string) { |
| 17169 |
return string.replace(/,/g, '،'); |
| 17170 |
}, |
| 17171 |
week: { |
| 17172 |
// GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效 |
| 17173 |
dow: 1, // Monday is the first day of the week. |
| 17174 |
doy: 7, // The week that contains Jan 1st is the first week of the year. |
| 17175 |
}, |
| 17176 |
}); |
| 17177 |
|
| 17178 |
//! moment.js locale configuration |
| 17179 |
|
| 17180 |
function plural$6(word, num) { |
| 17181 |
var forms = word.split('_'); |
| 17182 |
return num % 10 === 1 && num % 100 !== 11 |
| 17183 |
? forms[0] |
| 17184 |
: num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) |
| 17185 |
? forms[1] |
| 17186 |
: forms[2]; |
| 17187 |
} |
| 17188 |
function relativeTimeWithPlural$4(number, withoutSuffix, key) { |
| 17189 |
var format = { |
| 17190 |
ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд', |
| 17191 |
mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин', |
| 17192 |
hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин', |
| 17193 |
dd: 'день_дні_днів', |
| 17194 |
MM: 'місяць_місяці_місяців', |
| 17195 |
yy: 'рік_роки_років', |
| 17196 |
}; |
| 17197 |
if (key === 'm') { |
| 17198 |
return withoutSuffix ? 'хвилина' : 'хвилину'; |
| 17199 |
} else if (key === 'h') { |
| 17200 |
return withoutSuffix ? 'година' : 'годину'; |
| 17201 |
} else { |
| 17202 |
return number + ' ' + plural$6(format[key], +number); |
| 17203 |
} |
| 17204 |
} |
| 17205 |
function weekdaysCaseReplace(m, format) { |
| 17206 |
var weekdays = { |
| 17207 |
nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split( |
| 17208 |
'_' |
| 17209 |
), |
| 17210 |
accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split( |
| 17211 |
'_' |
| 17212 |
), |
| 17213 |
genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split( |
| 17214 |
'_' |
| 17215 |
), |
| 17216 |
}, |
| 17217 |
nounCase; |
| 17218 |
|
| 17219 |
if (m === true) { |
| 17220 |
return weekdays['nominative'] |
| 17221 |
.slice(1, 7) |
| 17222 |
.concat(weekdays['nominative'].slice(0, 1)); |
| 17223 |
} |
| 17224 |
if (!m) { |
| 17225 |
return weekdays['nominative']; |
| 17226 |
} |
| 17227 |
|
| 17228 |
nounCase = /(\[[ВвУу]\]) ?dddd/.test(format) |
| 17229 |
? 'accusative' |
| 17230 |
: /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format) |
| 17231 |
? 'genitive' |
| 17232 |
: 'nominative'; |
| 17233 |
return weekdays[nounCase][m.day()]; |
| 17234 |
} |
| 17235 |
function processHoursFunction(str) { |
| 17236 |
return function () { |
| 17237 |
return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT'; |
| 17238 |
}; |
| 17239 |
} |
| 17240 |
|
| 17241 |
hooks.defineLocale('uk', { |
| 17242 |
months: { |
| 17243 |
format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split( |
| 17244 |
'_' |
| 17245 |
), |
| 17246 |
standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split( |
| 17247 |
'_' |
| 17248 |
), |
| 17249 |
}, |
| 17250 |
monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split( |
| 17251 |
'_' |
| 17252 |
), |
| 17253 |
weekdays: weekdaysCaseReplace, |
| 17254 |
weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), |
| 17255 |
weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), |
| 17256 |
longDateFormat: { |
| 17257 |
LT: 'HH:mm', |
| 17258 |
LTS: 'HH:mm:ss', |
| 17259 |
L: 'DD.MM.YYYY', |
| 17260 |
LL: 'D MMMM YYYY р.', |
| 17261 |
LLL: 'D MMMM YYYY р., HH:mm', |
| 17262 |
LLLL: 'dddd, D MMMM YYYY р., HH:mm', |
| 17263 |
}, |
| 17264 |
calendar: { |
| 17265 |
sameDay: processHoursFunction('[Сьогодні '), |
| 17266 |
nextDay: processHoursFunction('[Завтра '), |
| 17267 |
lastDay: processHoursFunction('[Вчора '), |
| 17268 |
nextWeek: processHoursFunction('[У] dddd ['), |
| 17269 |
lastWeek: function () { |
| 17270 |
switch (this.day()) { |
| 17271 |
case 0: |
| 17272 |
case 3: |
| 17273 |
case 5: |
| 17274 |
case 6: |
| 17275 |
return processHoursFunction('[Минулої] dddd [').call(this); |
| 17276 |
case 1: |
| 17277 |
case 2: |
| 17278 |
case 4: |
| 17279 |
return processHoursFunction('[Минулого] dddd [').call(this); |
| 17280 |
} |
| 17281 |
}, |
| 17282 |
sameElse: 'L', |
| 17283 |
}, |
| 17284 |
relativeTime: { |
| 17285 |
future: 'за %s', |
| 17286 |
past: '%s тому', |
| 17287 |
s: 'декілька секунд', |
| 17288 |
ss: relativeTimeWithPlural$4, |
| 17289 |
m: relativeTimeWithPlural$4, |
| 17290 |
mm: relativeTimeWithPlural$4, |
| 17291 |
h: 'годину', |
| 17292 |
hh: relativeTimeWithPlural$4, |
| 17293 |
d: 'день', |
| 17294 |
dd: relativeTimeWithPlural$4, |
| 17295 |
M: 'місяць', |
| 17296 |
MM: relativeTimeWithPlural$4, |
| 17297 |
y: 'рік', |
| 17298 |
yy: relativeTimeWithPlural$4, |
| 17299 |
}, |
| 17300 |
// M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason |
| 17301 |
meridiemParse: /ночі|ранку|дня|вечора/, |
| 17302 |
isPM: function (input) { |
| 17303 |
return /^(дня|вечора)$/.test(input); |
| 17304 |
}, |
| 17305 |
meridiem: function (hour, minute, isLower) { |
| 17306 |
if (hour < 4) { |
| 17307 |
return 'ночі'; |
| 17308 |
} else if (hour < 12) { |
| 17309 |
return 'ранку'; |
| 17310 |
} else if (hour < 17) { |
| 17311 |
return 'дня'; |
| 17312 |
} else { |
| 17313 |
return 'вечора'; |
| 17314 |
} |
| 17315 |
}, |
| 17316 |
dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/, |
| 17317 |
ordinal: function (number, period) { |
| 17318 |
switch (period) { |
| 17319 |
case 'M': |
| 17320 |
case 'd': |
| 17321 |
case 'DDD': |
| 17322 |
case 'w': |
| 17323 |
case 'W': |
| 17324 |
return number + '-й'; |
| 17325 |
case 'D': |
| 17326 |
return number + '-го'; |
| 17327 |
default: |
| 17328 |
return number; |
| 17329 |
} |
| 17330 |
}, |
| 17331 |
week: { |
| 17332 |
dow: 1, // Monday is the first day of the week. |
| 17333 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 17334 |
}, |
| 17335 |
}); |
| 17336 |
|
| 17337 |
//! moment.js locale configuration |
| 17338 |
|
| 17339 |
var months$b = [ |
| 17340 |
'جنوری', |
| 17341 |
'فروری', |
| 17342 |
'مارچ', |
| 17343 |
'اپریل', |
| 17344 |
'مئی', |
| 17345 |
'جون', |
| 17346 |
'جولائی', |
| 17347 |
'اگست', |
| 17348 |
'ستمبر', |
| 17349 |
'اکتوبر', |
| 17350 |
'نومبر', |
| 17351 |
'دسمبر', |
| 17352 |
], |
| 17353 |
days$2 = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ']; |
| 17354 |
|
| 17355 |
hooks.defineLocale('ur', { |
| 17356 |
months: months$b, |
| 17357 |
monthsShort: months$b, |
| 17358 |
weekdays: days$2, |
| 17359 |
weekdaysShort: days$2, |
| 17360 |
weekdaysMin: days$2, |
| 17361 |
longDateFormat: { |
| 17362 |
LT: 'HH:mm', |
| 17363 |
LTS: 'HH:mm:ss', |
| 17364 |
L: 'DD/MM/YYYY', |
| 17365 |
LL: 'D MMMM YYYY', |
| 17366 |
LLL: 'D MMMM YYYY HH:mm', |
| 17367 |
LLLL: 'dddd، D MMMM YYYY HH:mm', |
| 17368 |
}, |
| 17369 |
meridiemParse: /صبح|شام/, |
| 17370 |
isPM: function (input) { |
| 17371 |
return 'شام' === input; |
| 17372 |
}, |
| 17373 |
meridiem: function (hour, minute, isLower) { |
| 17374 |
if (hour < 12) { |
| 17375 |
return 'صبح'; |
| 17376 |
} |
| 17377 |
return 'شام'; |
| 17378 |
}, |
| 17379 |
calendar: { |
| 17380 |
sameDay: '[آج بوقت] LT', |
| 17381 |
nextDay: '[کل بوقت] LT', |
| 17382 |
nextWeek: 'dddd [بوقت] LT', |
| 17383 |
lastDay: '[گذشتہ روز بوقت] LT', |
| 17384 |
lastWeek: '[گذشتہ] dddd [بوقت] LT', |
| 17385 |
sameElse: 'L', |
| 17386 |
}, |
| 17387 |
relativeTime: { |
| 17388 |
future: '%s بعد', |
| 17389 |
past: '%s قبل', |
| 17390 |
s: 'چند سیکنڈ', |
| 17391 |
ss: '%d سیکنڈ', |
| 17392 |
m: 'ایک منٹ', |
| 17393 |
mm: '%d منٹ', |
| 17394 |
h: 'ایک گھنٹہ', |
| 17395 |
hh: '%d گھنٹے', |
| 17396 |
d: 'ایک دن', |
| 17397 |
dd: '%d دن', |
| 17398 |
M: 'ایک ماہ', |
| 17399 |
MM: '%d ماہ', |
| 17400 |
y: 'ایک سال', |
| 17401 |
yy: '%d سال', |
| 17402 |
}, |
| 17403 |
preparse: function (string) { |
| 17404 |
return string.replace(/،/g, ','); |
| 17405 |
}, |
| 17406 |
postformat: function (string) { |
| 17407 |
return string.replace(/,/g, '،'); |
| 17408 |
}, |
| 17409 |
week: { |
| 17410 |
dow: 1, // Monday is the first day of the week. |
| 17411 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 17412 |
}, |
| 17413 |
}); |
| 17414 |
|
| 17415 |
//! moment.js locale configuration |
| 17416 |
|
| 17417 |
hooks.defineLocale('uz-latn', { |
| 17418 |
months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split( |
| 17419 |
'_' |
| 17420 |
), |
| 17421 |
monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'), |
| 17422 |
weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split( |
| 17423 |
'_' |
| 17424 |
), |
| 17425 |
weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'), |
| 17426 |
weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'), |
| 17427 |
longDateFormat: { |
| 17428 |
LT: 'HH:mm', |
| 17429 |
LTS: 'HH:mm:ss', |
| 17430 |
L: 'DD/MM/YYYY', |
| 17431 |
LL: 'D MMMM YYYY', |
| 17432 |
LLL: 'D MMMM YYYY HH:mm', |
| 17433 |
LLLL: 'D MMMM YYYY, dddd HH:mm', |
| 17434 |
}, |
| 17435 |
calendar: { |
| 17436 |
sameDay: '[Bugun soat] LT [da]', |
| 17437 |
nextDay: '[Ertaga] LT [da]', |
| 17438 |
nextWeek: 'dddd [kuni soat] LT [da]', |
| 17439 |
lastDay: '[Kecha soat] LT [da]', |
| 17440 |
lastWeek: "[O'tgan] dddd [kuni soat] LT [da]", |
| 17441 |
sameElse: 'L', |
| 17442 |
}, |
| 17443 |
relativeTime: { |
| 17444 |
future: 'Yaqin %s ichida', |
| 17445 |
past: 'Bir necha %s oldin', |
| 17446 |
s: 'soniya', |
| 17447 |
ss: '%d soniya', |
| 17448 |
m: 'bir daqiqa', |
| 17449 |
mm: '%d daqiqa', |
| 17450 |
h: 'bir soat', |
| 17451 |
hh: '%d soat', |
| 17452 |
d: 'bir kun', |
| 17453 |
dd: '%d kun', |
| 17454 |
M: 'bir oy', |
| 17455 |
MM: '%d oy', |
| 17456 |
y: 'bir yil', |
| 17457 |
yy: '%d yil', |
| 17458 |
}, |
| 17459 |
week: { |
| 17460 |
dow: 1, // Monday is the first day of the week. |
| 17461 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 17462 |
}, |
| 17463 |
}); |
| 17464 |
|
| 17465 |
//! moment.js locale configuration |
| 17466 |
|
| 17467 |
hooks.defineLocale('uz', { |
| 17468 |
months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split( |
| 17469 |
'_' |
| 17470 |
), |
| 17471 |
monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'), |
| 17472 |
weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'), |
| 17473 |
weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'), |
| 17474 |
weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'), |
| 17475 |
longDateFormat: { |
| 17476 |
LT: 'HH:mm', |
| 17477 |
LTS: 'HH:mm:ss', |
| 17478 |
L: 'DD/MM/YYYY', |
| 17479 |
LL: 'D MMMM YYYY', |
| 17480 |
LLL: 'D MMMM YYYY HH:mm', |
| 17481 |
LLLL: 'D MMMM YYYY, dddd HH:mm', |
| 17482 |
}, |
| 17483 |
calendar: { |
| 17484 |
sameDay: '[Бугун соат] LT [да]', |
| 17485 |
nextDay: '[Эртага] LT [да]', |
| 17486 |
nextWeek: 'dddd [куни соат] LT [да]', |
| 17487 |
lastDay: '[Кеча соат] LT [да]', |
| 17488 |
lastWeek: '[Утган] dddd [куни соат] LT [да]', |
| 17489 |
sameElse: 'L', |
| 17490 |
}, |
| 17491 |
relativeTime: { |
| 17492 |
future: 'Якин %s ичида', |
| 17493 |
past: 'Бир неча %s олдин', |
| 17494 |
s: 'фурсат', |
| 17495 |
ss: '%d фурсат', |
| 17496 |
m: 'бир дакика', |
| 17497 |
mm: '%d дакика', |
| 17498 |
h: 'бир соат', |
| 17499 |
hh: '%d соат', |
| 17500 |
d: 'бир кун', |
| 17501 |
dd: '%d кун', |
| 17502 |
M: 'бир ой', |
| 17503 |
MM: '%d ой', |
| 17504 |
y: 'бир йил', |
| 17505 |
yy: '%d йил', |
| 17506 |
}, |
| 17507 |
week: { |
| 17508 |
dow: 1, // Monday is the first day of the week. |
| 17509 |
doy: 7, // The week that contains Jan 4th is the first week of the year. |
| 17510 |
}, |
| 17511 |
}); |
| 17512 |
|
| 17513 |
//! moment.js locale configuration |
| 17514 |
|
| 17515 |
hooks.defineLocale('vi', { |
| 17516 |
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( |
| 17517 |
'_' |
| 17518 |
), |
| 17519 |
monthsShort: 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split( |
| 17520 |
'_' |
| 17521 |
), |
| 17522 |
monthsParseExact: true, |
| 17523 |
weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split( |
| 17524 |
'_' |
| 17525 |
), |
| 17526 |
weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), |
| 17527 |
weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), |
| 17528 |
weekdaysParseExact: true, |
| 17529 |
meridiemParse: /sa|ch/i, |
| 17530 |
isPM: function (input) { |
| 17531 |
return /^ch$/i.test(input); |
| 17532 |
}, |
| 17533 |
meridiem: function (hours, minutes, isLower) { |
| 17534 |
if (hours < 12) { |
| 17535 |
return isLower ? 'sa' : 'SA'; |
| 17536 |
} else { |
| 17537 |
return isLower ? 'ch' : 'CH'; |
| 17538 |
} |
| 17539 |
}, |
| 17540 |
longDateFormat: { |
| 17541 |
LT: 'HH:mm', |
| 17542 |
LTS: 'HH:mm:ss', |
| 17543 |
L: 'DD/MM/YYYY', |
| 17544 |
LL: 'D MMMM [năm] YYYY', |
| 17545 |
LLL: 'D MMMM [năm] YYYY HH:mm', |
| 17546 |
LLLL: 'dddd, D MMMM [năm] YYYY HH:mm', |
| 17547 |
l: 'DD/M/YYYY', |
| 17548 |
ll: 'D MMM YYYY', |
| 17549 |
lll: 'D MMM YYYY HH:mm', |
| 17550 |
llll: 'ddd, D MMM YYYY HH:mm', |
| 17551 |
}, |
| 17552 |
calendar: { |
| 17553 |
sameDay: '[Hôm nay lúc] LT', |
| 17554 |
nextDay: '[Ngày mai lúc] LT', |
| 17555 |
nextWeek: 'dddd [tuần tới lúc] LT', |
| 17556 |
lastDay: '[Hôm qua lúc] LT', |
| 17557 |
lastWeek: 'dddd [tuần trước lúc] LT', |
| 17558 |
sameElse: 'L', |
| 17559 |
}, |
| 17560 |
relativeTime: { |
| 17561 |
future: '%s tới', |
| 17562 |
past: '%s trước', |
| 17563 |
s: 'vài giây', |
| 17564 |
ss: '%d giây', |
| 17565 |
m: 'một phút', |
| 17566 |
mm: '%d phút', |
| 17567 |
h: 'một giờ', |
| 17568 |
hh: '%d giờ', |
| 17569 |
d: 'một ngày', |
| 17570 |
dd: '%d ngày', |
| 17571 |
w: 'một tuần', |
| 17572 |
ww: '%d tuần', |
| 17573 |
M: 'một tháng', |
| 17574 |
MM: '%d tháng', |
| 17575 |
y: 'một năm', |
| 17576 |
yy: '%d năm', |
| 17577 |
}, |
| 17578 |
dayOfMonthOrdinalParse: /\d{1,2}/, |
| 17579 |
ordinal: function (number) { |
| 17580 |
return number; |
| 17581 |
}, |
| 17582 |
week: { |
| 17583 |
dow: 1, // Monday is the first day of the week. |
| 17584 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 17585 |
}, |
| 17586 |
}); |
| 17587 |
|
| 17588 |
//! moment.js locale configuration |
| 17589 |
|
| 17590 |
hooks.defineLocale('x-pseudo', { |
| 17591 |
months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split( |
| 17592 |
'_' |
| 17593 |
), |
| 17594 |
monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split( |
| 17595 |
'_' |
| 17596 |
), |
| 17597 |
monthsParseExact: true, |
| 17598 |
weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split( |
| 17599 |
'_' |
| 17600 |
), |
| 17601 |
weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'), |
| 17602 |
weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'), |
| 17603 |
weekdaysParseExact: true, |
| 17604 |
longDateFormat: { |
| 17605 |
LT: 'HH:mm', |
| 17606 |
L: 'DD/MM/YYYY', |
| 17607 |
LL: 'D MMMM YYYY', |
| 17608 |
LLL: 'D MMMM YYYY HH:mm', |
| 17609 |
LLLL: 'dddd, D MMMM YYYY HH:mm', |
| 17610 |
}, |
| 17611 |
calendar: { |
| 17612 |
sameDay: '[T~ódá~ý át] LT', |
| 17613 |
nextDay: '[T~ómó~rró~w át] LT', |
| 17614 |
nextWeek: 'dddd [át] LT', |
| 17615 |
lastDay: '[Ý~ést~érdá~ý át] LT', |
| 17616 |
lastWeek: '[L~ást] dddd [át] LT', |
| 17617 |
sameElse: 'L', |
| 17618 |
}, |
| 17619 |
relativeTime: { |
| 17620 |
future: 'í~ñ %s', |
| 17621 |
past: '%s á~gó', |
| 17622 |
s: 'á ~féw ~sécó~ñds', |
| 17623 |
ss: '%d s~écóñ~ds', |
| 17624 |
m: 'á ~míñ~úté', |
| 17625 |
mm: '%d m~íñú~tés', |
| 17626 |
h: 'á~ñ hó~úr', |
| 17627 |
hh: '%d h~óúrs', |
| 17628 |
d: 'á ~dáý', |
| 17629 |
dd: '%d d~áýs', |
| 17630 |
M: 'á ~móñ~th', |
| 17631 |
MM: '%d m~óñt~hs', |
| 17632 |
y: 'á ~ýéár', |
| 17633 |
yy: '%d ý~éárs', |
| 17634 |
}, |
| 17635 |
dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, |
| 17636 |
ordinal: function (number) { |
| 17637 |
var b = number % 10, |
| 17638 |
output = |
| 17639 |
~~((number % 100) / 10) === 1 |
| 17640 |
? 'th' |
| 17641 |
: b === 1 |
| 17642 |
? 'st' |
| 17643 |
: b === 2 |
| 17644 |
? 'nd' |
| 17645 |
: b === 3 |
| 17646 |
? 'rd' |
| 17647 |
: 'th'; |
| 17648 |
return number + output; |
| 17649 |
}, |
| 17650 |
week: { |
| 17651 |
dow: 1, // Monday is the first day of the week. |
| 17652 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 17653 |
}, |
| 17654 |
}); |
| 17655 |
|
| 17656 |
//! moment.js locale configuration |
| 17657 |
|
| 17658 |
hooks.defineLocale('yo', { |
| 17659 |
months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split( |
| 17660 |
'_' |
| 17661 |
), |
| 17662 |
monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'), |
| 17663 |
weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'), |
| 17664 |
weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'), |
| 17665 |
weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'), |
| 17666 |
longDateFormat: { |
| 17667 |
LT: 'h:mm A', |
| 17668 |
LTS: 'h:mm:ss A', |
| 17669 |
L: 'DD/MM/YYYY', |
| 17670 |
LL: 'D MMMM YYYY', |
| 17671 |
LLL: 'D MMMM YYYY h:mm A', |
| 17672 |
LLLL: 'dddd, D MMMM YYYY h:mm A', |
| 17673 |
}, |
| 17674 |
calendar: { |
| 17675 |
sameDay: '[Ònì ni] LT', |
| 17676 |
nextDay: '[Ọ̀la ni] LT', |
| 17677 |
nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT", |
| 17678 |
lastDay: '[Àna ni] LT', |
| 17679 |
lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT', |
| 17680 |
sameElse: 'L', |
| 17681 |
}, |
| 17682 |
relativeTime: { |
| 17683 |
future: 'ní %s', |
| 17684 |
past: '%s kọjá', |
| 17685 |
s: 'ìsẹjú aayá die', |
| 17686 |
ss: 'aayá %d', |
| 17687 |
m: 'ìsẹjú kan', |
| 17688 |
mm: 'ìsẹjú %d', |
| 17689 |
h: 'wákati kan', |
| 17690 |
hh: 'wákati %d', |
| 17691 |
d: 'ọjọ́ kan', |
| 17692 |
dd: 'ọjọ́ %d', |
| 17693 |
M: 'osù kan', |
| 17694 |
MM: 'osù %d', |
| 17695 |
y: 'ọdún kan', |
| 17696 |
yy: 'ọdún %d', |
| 17697 |
}, |
| 17698 |
dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/, |
| 17699 |
ordinal: 'ọjọ́ %d', |
| 17700 |
week: { |
| 17701 |
dow: 1, // Monday is the first day of the week. |
| 17702 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 17703 |
}, |
| 17704 |
}); |
| 17705 |
|
| 17706 |
//! moment.js locale configuration |
| 17707 |
|
| 17708 |
hooks.defineLocale('zh-cn', { |
| 17709 |
months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( |
| 17710 |
'_' |
| 17711 |
), |
| 17712 |
monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( |
| 17713 |
'_' |
| 17714 |
), |
| 17715 |
weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), |
| 17716 |
weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'), |
| 17717 |
weekdaysMin: '日_一_二_三_四_五_六'.split('_'), |
| 17718 |
longDateFormat: { |
| 17719 |
LT: 'HH:mm', |
| 17720 |
LTS: 'HH:mm:ss', |
| 17721 |
L: 'YYYY/MM/DD', |
| 17722 |
LL: 'YYYY年M月D日', |
| 17723 |
LLL: 'YYYY年M月D日Ah点mm分', |
| 17724 |
LLLL: 'YYYY年M月D日ddddAh点mm分', |
| 17725 |
l: 'YYYY/M/D', |
| 17726 |
ll: 'YYYY年M月D日', |
| 17727 |
lll: 'YYYY年M月D日 HH:mm', |
| 17728 |
llll: 'YYYY年M月D日dddd HH:mm', |
| 17729 |
}, |
| 17730 |
meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, |
| 17731 |
meridiemHour: function (hour, meridiem) { |
| 17732 |
if (hour === 12) { |
| 17733 |
hour = 0; |
| 17734 |
} |
| 17735 |
if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { |
| 17736 |
return hour; |
| 17737 |
} else if (meridiem === '下午' || meridiem === '晚上') { |
| 17738 |
return hour + 12; |
| 17739 |
} else { |
| 17740 |
// '中午' |
| 17741 |
return hour >= 11 ? hour : hour + 12; |
| 17742 |
} |
| 17743 |
}, |
| 17744 |
meridiem: function (hour, minute, isLower) { |
| 17745 |
var hm = hour * 100 + minute; |
| 17746 |
if (hm < 600) { |
| 17747 |
return '凌晨'; |
| 17748 |
} else if (hm < 900) { |
| 17749 |
return '早上'; |
| 17750 |
} else if (hm < 1130) { |
| 17751 |
return '上午'; |
| 17752 |
} else if (hm < 1230) { |
| 17753 |
return '中午'; |
| 17754 |
} else if (hm < 1800) { |
| 17755 |
return '下午'; |
| 17756 |
} else { |
| 17757 |
return '晚上'; |
| 17758 |
} |
| 17759 |
}, |
| 17760 |
calendar: { |
| 17761 |
sameDay: '[今天]LT', |
| 17762 |
nextDay: '[明天]LT', |
| 17763 |
nextWeek: function (now) { |
| 17764 |
if (now.week() !== this.week()) { |
| 17765 |
return '[下]dddLT'; |
| 17766 |
} else { |
| 17767 |
return '[本]dddLT'; |
| 17768 |
} |
| 17769 |
}, |
| 17770 |
lastDay: '[昨天]LT', |
| 17771 |
lastWeek: function (now) { |
| 17772 |
if (this.week() !== now.week()) { |
| 17773 |
return '[上]dddLT'; |
| 17774 |
} else { |
| 17775 |
return '[本]dddLT'; |
| 17776 |
} |
| 17777 |
}, |
| 17778 |
sameElse: 'L', |
| 17779 |
}, |
| 17780 |
dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/, |
| 17781 |
ordinal: function (number, period) { |
| 17782 |
switch (period) { |
| 17783 |
case 'd': |
| 17784 |
case 'D': |
| 17785 |
case 'DDD': |
| 17786 |
return number + '日'; |
| 17787 |
case 'M': |
| 17788 |
return number + '月'; |
| 17789 |
case 'w': |
| 17790 |
case 'W': |
| 17791 |
return number + '周'; |
| 17792 |
default: |
| 17793 |
return number; |
| 17794 |
} |
| 17795 |
}, |
| 17796 |
relativeTime: { |
| 17797 |
future: '%s后', |
| 17798 |
past: '%s前', |
| 17799 |
s: '几秒', |
| 17800 |
ss: '%d 秒', |
| 17801 |
m: '1 分钟', |
| 17802 |
mm: '%d 分钟', |
| 17803 |
h: '1 小时', |
| 17804 |
hh: '%d 小时', |
| 17805 |
d: '1 天', |
| 17806 |
dd: '%d 天', |
| 17807 |
w: '1 周', |
| 17808 |
ww: '%d 周', |
| 17809 |
M: '1 个月', |
| 17810 |
MM: '%d 个月', |
| 17811 |
y: '1 年', |
| 17812 |
yy: '%d 年', |
| 17813 |
}, |
| 17814 |
week: { |
| 17815 |
// GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效 |
| 17816 |
dow: 1, // Monday is the first day of the week. |
| 17817 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 17818 |
}, |
| 17819 |
}); |
| 17820 |
|
| 17821 |
//! moment.js locale configuration |
| 17822 |
|
| 17823 |
hooks.defineLocale('zh-hk', { |
| 17824 |
months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( |
| 17825 |
'_' |
| 17826 |
), |
| 17827 |
monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( |
| 17828 |
'_' |
| 17829 |
), |
| 17830 |
weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), |
| 17831 |
weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), |
| 17832 |
weekdaysMin: '日_一_二_三_四_五_六'.split('_'), |
| 17833 |
longDateFormat: { |
| 17834 |
LT: 'HH:mm', |
| 17835 |
LTS: 'HH:mm:ss', |
| 17836 |
L: 'YYYY/MM/DD', |
| 17837 |
LL: 'YYYY年M月D日', |
| 17838 |
LLL: 'YYYY年M月D日 HH:mm', |
| 17839 |
LLLL: 'YYYY年M月D日dddd HH:mm', |
| 17840 |
l: 'YYYY/M/D', |
| 17841 |
ll: 'YYYY年M月D日', |
| 17842 |
lll: 'YYYY年M月D日 HH:mm', |
| 17843 |
llll: 'YYYY年M月D日dddd HH:mm', |
| 17844 |
}, |
| 17845 |
meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, |
| 17846 |
meridiemHour: function (hour, meridiem) { |
| 17847 |
if (hour === 12) { |
| 17848 |
hour = 0; |
| 17849 |
} |
| 17850 |
if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { |
| 17851 |
return hour; |
| 17852 |
} else if (meridiem === '中午') { |
| 17853 |
return hour >= 11 ? hour : hour + 12; |
| 17854 |
} else if (meridiem === '下午' || meridiem === '晚上') { |
| 17855 |
return hour + 12; |
| 17856 |
} |
| 17857 |
}, |
| 17858 |
meridiem: function (hour, minute, isLower) { |
| 17859 |
var hm = hour * 100 + minute; |
| 17860 |
if (hm < 600) { |
| 17861 |
return '凌晨'; |
| 17862 |
} else if (hm < 900) { |
| 17863 |
return '早上'; |
| 17864 |
} else if (hm < 1200) { |
| 17865 |
return '上午'; |
| 17866 |
} else if (hm === 1200) { |
| 17867 |
return '中午'; |
| 17868 |
} else if (hm < 1800) { |
| 17869 |
return '下午'; |
| 17870 |
} else { |
| 17871 |
return '晚上'; |
| 17872 |
} |
| 17873 |
}, |
| 17874 |
calendar: { |
| 17875 |
sameDay: '[今天]LT', |
| 17876 |
nextDay: '[明天]LT', |
| 17877 |
nextWeek: '[下]ddddLT', |
| 17878 |
lastDay: '[昨天]LT', |
| 17879 |
lastWeek: '[上]ddddLT', |
| 17880 |
sameElse: 'L', |
| 17881 |
}, |
| 17882 |
dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, |
| 17883 |
ordinal: function (number, period) { |
| 17884 |
switch (period) { |
| 17885 |
case 'd': |
| 17886 |
case 'D': |
| 17887 |
case 'DDD': |
| 17888 |
return number + '日'; |
| 17889 |
case 'M': |
| 17890 |
return number + '月'; |
| 17891 |
case 'w': |
| 17892 |
case 'W': |
| 17893 |
return number + '週'; |
| 17894 |
default: |
| 17895 |
return number; |
| 17896 |
} |
| 17897 |
}, |
| 17898 |
relativeTime: { |
| 17899 |
future: '%s後', |
| 17900 |
past: '%s前', |
| 17901 |
s: '幾秒', |
| 17902 |
ss: '%d 秒', |
| 17903 |
m: '1 分鐘', |
| 17904 |
mm: '%d 分鐘', |
| 17905 |
h: '1 小時', |
| 17906 |
hh: '%d 小時', |
| 17907 |
d: '1 天', |
| 17908 |
dd: '%d 天', |
| 17909 |
M: '1 個月', |
| 17910 |
MM: '%d 個月', |
| 17911 |
y: '1 年', |
| 17912 |
yy: '%d 年', |
| 17913 |
}, |
| 17914 |
}); |
| 17915 |
|
| 17916 |
//! moment.js locale configuration |
| 17917 |
|
| 17918 |
hooks.defineLocale('zh-mo', { |
| 17919 |
months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( |
| 17920 |
'_' |
| 17921 |
), |
| 17922 |
monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( |
| 17923 |
'_' |
| 17924 |
), |
| 17925 |
weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), |
| 17926 |
weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), |
| 17927 |
weekdaysMin: '日_一_二_三_四_五_六'.split('_'), |
| 17928 |
longDateFormat: { |
| 17929 |
LT: 'HH:mm', |
| 17930 |
LTS: 'HH:mm:ss', |
| 17931 |
L: 'DD/MM/YYYY', |
| 17932 |
LL: 'YYYY年M月D日', |
| 17933 |
LLL: 'YYYY年M月D日 HH:mm', |
| 17934 |
LLLL: 'YYYY年M月D日dddd HH:mm', |
| 17935 |
l: 'D/M/YYYY', |
| 17936 |
ll: 'YYYY年M月D日', |
| 17937 |
lll: 'YYYY年M月D日 HH:mm', |
| 17938 |
llll: 'YYYY年M月D日dddd HH:mm', |
| 17939 |
}, |
| 17940 |
meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, |
| 17941 |
meridiemHour: function (hour, meridiem) { |
| 17942 |
if (hour === 12) { |
| 17943 |
hour = 0; |
| 17944 |
} |
| 17945 |
if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { |
| 17946 |
return hour; |
| 17947 |
} else if (meridiem === '中午') { |
| 17948 |
return hour >= 11 ? hour : hour + 12; |
| 17949 |
} else if (meridiem === '下午' || meridiem === '晚上') { |
| 17950 |
return hour + 12; |
| 17951 |
} |
| 17952 |
}, |
| 17953 |
meridiem: function (hour, minute, isLower) { |
| 17954 |
var hm = hour * 100 + minute; |
| 17955 |
if (hm < 600) { |
| 17956 |
return '凌晨'; |
| 17957 |
} else if (hm < 900) { |
| 17958 |
return '早上'; |
| 17959 |
} else if (hm < 1130) { |
| 17960 |
return '上午'; |
| 17961 |
} else if (hm < 1230) { |
| 17962 |
return '中午'; |
| 17963 |
} else if (hm < 1800) { |
| 17964 |
return '下午'; |
| 17965 |
} else { |
| 17966 |
return '晚上'; |
| 17967 |
} |
| 17968 |
}, |
| 17969 |
calendar: { |
| 17970 |
sameDay: '[今天] LT', |
| 17971 |
nextDay: '[明天] LT', |
| 17972 |
nextWeek: '[下]dddd LT', |
| 17973 |
lastDay: '[昨天] LT', |
| 17974 |
lastWeek: '[上]dddd LT', |
| 17975 |
sameElse: 'L', |
| 17976 |
}, |
| 17977 |
dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, |
| 17978 |
ordinal: function (number, period) { |
| 17979 |
switch (period) { |
| 17980 |
case 'd': |
| 17981 |
case 'D': |
| 17982 |
case 'DDD': |
| 17983 |
return number + '日'; |
| 17984 |
case 'M': |
| 17985 |
return number + '月'; |
| 17986 |
case 'w': |
| 17987 |
case 'W': |
| 17988 |
return number + '週'; |
| 17989 |
default: |
| 17990 |
return number; |
| 17991 |
} |
| 17992 |
}, |
| 17993 |
relativeTime: { |
| 17994 |
future: '%s內', |
| 17995 |
past: '%s前', |
| 17996 |
s: '幾秒', |
| 17997 |
ss: '%d 秒', |
| 17998 |
m: '1 分鐘', |
| 17999 |
mm: '%d 分鐘', |
| 18000 |
h: '1 小時', |
| 18001 |
hh: '%d 小時', |
| 18002 |
d: '1 天', |
| 18003 |
dd: '%d 天', |
| 18004 |
M: '1 個月', |
| 18005 |
MM: '%d 個月', |
| 18006 |
y: '1 年', |
| 18007 |
yy: '%d 年', |
| 18008 |
}, |
| 18009 |
}); |
| 18010 |
|
| 18011 |
//! moment.js locale configuration |
| 18012 |
|
| 18013 |
hooks.defineLocale('zh-tw', { |
| 18014 |
months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( |
| 18015 |
'_' |
| 18016 |
), |
| 18017 |
monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( |
| 18018 |
'_' |
| 18019 |
), |
| 18020 |
weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), |
| 18021 |
weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), |
| 18022 |
weekdaysMin: '日_一_二_三_四_五_六'.split('_'), |
| 18023 |
longDateFormat: { |
| 18024 |
LT: 'HH:mm', |
| 18025 |
LTS: 'HH:mm:ss', |
| 18026 |
L: 'YYYY/MM/DD', |
| 18027 |
LL: 'YYYY年M月D日', |
| 18028 |
LLL: 'YYYY年M月D日 HH:mm', |
| 18029 |
LLLL: 'YYYY年M月D日dddd HH:mm', |
| 18030 |
l: 'YYYY/M/D', |
| 18031 |
ll: 'YYYY年M月D日', |
| 18032 |
lll: 'YYYY年M月D日 HH:mm', |
| 18033 |
llll: 'YYYY年M月D日dddd HH:mm', |
| 18034 |
}, |
| 18035 |
meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, |
| 18036 |
meridiemHour: function (hour, meridiem) { |
| 18037 |
if (hour === 12) { |
| 18038 |
hour = 0; |
| 18039 |
} |
| 18040 |
if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { |
| 18041 |
return hour; |
| 18042 |
} else if (meridiem === '中午') { |
| 18043 |
return hour >= 11 ? hour : hour + 12; |
| 18044 |
} else if (meridiem === '下午' || meridiem === '晚上') { |
| 18045 |
return hour + 12; |
| 18046 |
} |
| 18047 |
}, |
| 18048 |
meridiem: function (hour, minute, isLower) { |
| 18049 |
var hm = hour * 100 + minute; |
| 18050 |
if (hm < 600) { |
| 18051 |
return '凌晨'; |
| 18052 |
} else if (hm < 900) { |
| 18053 |
return '早上'; |
| 18054 |
} else if (hm < 1130) { |
| 18055 |
return '上午'; |
| 18056 |
} else if (hm < 1230) { |
| 18057 |
return '中午'; |
| 18058 |
} else if (hm < 1800) { |
| 18059 |
return '下午'; |
| 18060 |
} else { |
| 18061 |
return '晚上'; |
| 18062 |
} |
| 18063 |
}, |
| 18064 |
calendar: { |
| 18065 |
sameDay: '[今天] LT', |
| 18066 |
nextDay: '[明天] LT', |
| 18067 |
nextWeek: '[下]dddd LT', |
| 18068 |
lastDay: '[昨天] LT', |
| 18069 |
lastWeek: '[上]dddd LT', |
| 18070 |
sameElse: 'L', |
| 18071 |
}, |
| 18072 |
dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, |
| 18073 |
ordinal: function (number, period) { |
| 18074 |
switch (period) { |
| 18075 |
case 'd': |
| 18076 |
case 'D': |
| 18077 |
case 'DDD': |
| 18078 |
return number + '日'; |
| 18079 |
case 'M': |
| 18080 |
return number + '月'; |
| 18081 |
case 'w': |
| 18082 |
case 'W': |
| 18083 |
return number + '週'; |
| 18084 |
default: |
| 18085 |
return number; |
| 18086 |
} |
| 18087 |
}, |
| 18088 |
relativeTime: { |
| 18089 |
future: '%s後', |
| 18090 |
past: '%s前', |
| 18091 |
s: '幾秒', |
| 18092 |
ss: '%d 秒', |
| 18093 |
m: '1 分鐘', |
| 18094 |
mm: '%d 分鐘', |
| 18095 |
h: '1 小時', |
| 18096 |
hh: '%d 小時', |
| 18097 |
d: '1 天', |
| 18098 |
dd: '%d 天', |
| 18099 |
M: '1 個月', |
| 18100 |
MM: '%d 個月', |
| 18101 |
y: '1 年', |
| 18102 |
yy: '%d 年', |
| 18103 |
}, |
| 18104 |
}); |
| 18105 |
|
| 18106 |
hooks.locale('en'); |
| 18107 |
|
| 18108 |
return hooks; |
| 18109 |
|
| 18110 |
}))); |