vendor: 5,113 bytes, lines 1-140
1(function webpackUniversalModuleDefinition(root, factory) { 2 if (typeof exports === 'object' && typeof module === 'object') 3 module.exports = factory(); 4 else if (typeof define === 'function' && define.amd) 5 define([], factory); 6 else if (typeof exports === 'object') 7 exports["Gitalk"] = factory(); 8 else 9 root["Gitalk"] = factory(); 10})(this, function () { 11 return /******/ (function (modules) { // webpackBootstrap 12 /******/ // The module cache 13 /******/ 14 var installedModules = {}; 15 /******/ 16 /******/ // The require function 17 /******/ 18 function __webpack_require__(moduleId) { 19 /******/ 20 /******/ // Check if module is in cache 21 /******/ 22 if (installedModules[moduleId]) { 23 /******/ 24 return installedModules[moduleId].exports; 25 /******/ 26 } 27 /******/ // Create a new module (and put it into the cache) 28 /******/ 29 var module = installedModules[moduleId] = { 30 /******/ i: moduleId, 31 /******/ l: false, 32 /******/ exports: {} 33 /******/ 34 }; 35 /******/ 36 /******/ // Execute the module function 37 /******/ 38 modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 39 /******/ 40 /******/ // Flag the module as loaded 41 /******/ 42 module.l = true; 43 /******/ 44 /******/ // Return the exports of the module 45 /******/ 46 return module.exports; 47 /******/ 48 } 49 50 /******/ 51 /******/ 52 /******/ // expose the modules object (__webpack_modules__) 53 /******/ 54 __webpack_require__.m = modules; 55 /******/ 56 /******/ // expose the module cache 57 /******/ 58 __webpack_require__.c = installedModules; 59 /******/ 60 /******/ // define getter function for harmony exports 61 /******/ 62 __webpack_require__.d = function (exports, name, getter) { 63 /******/ 64 if (!__webpack_require__.o(exports, name)) { 65 /******/ 66 Object.defineProperty(exports, name, { 67 /******/ configurable: false, 68 /******/ enumerable: true, 69 /******/ get: getter 70 /******/ 71 }); 72 /******/ 73 } 74 /******/ 75 }; 76 /******/ 77 /******/ // getDefaultExport function for compatibility with non-harmony modules 78 /******/ 79 __webpack_require__.n = function (module) { 80 /******/ 81 var getter = module && module.__esModule ? 82 /******/ function getDefault() { 83 return module['default']; 84 } : 85 /******/ function getModuleExports() { 86 return module; 87 }; 88 /******/ 89 __webpack_require__.d(getter, 'a', getter); 90 /******/ 91 return getter; 92 /******/ 93 }; 94 /******/ 95 /******/ // Object.prototype.hasOwnProperty.call 96 /******/ 97 __webpack_require__.o = function (object, property) { 98 return Object.prototype.hasOwnProperty.call(object, property); 99 }; 100 /******/ 101 /******/ // __webpack_public_path__ 102 /******/ 103 __webpack_require__.p = "/dist"; 104 /******/ 105 /******/ // Load entry module and return exports 106 /******/ 107 return __webpack_require__(__webpack_require__.s = 191); 108 /******/ 109 }) 110 /************************************************************************/ 111 /******/ ([ 112 /* 0 */ 113 /***/ (function (module, __webpack_exports__, __webpack_require__) { 114 115 "use strict"; 116 /* harmony export (immutable) */ 117 __webpack_exports__["a"] = requiredArgs; 118 119 function requiredArgs(required, args) { 120 if (args.length < required) { 121 throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present'); 122 } 123 } 124 125 /***/ 126 }), 127 /* 1 */ 128 /***/ (function (module, __webpack_exports__, __webpack_require__) { 129 130 "use strict"; 131 /* harmony export (immutable) */ 132 __webpack_exports__["a"] = toDate; 133 /* harmony import */ 134 var __WEBPACK_IMPORTED_MODULE_0__lib_requiredArgs_index_js__ = __webpack_require__(0); 135 136 /** 137 * @name toDate 138 * @category Common Helpers 139 * @summary Convert the given argument to an instance of Date. 140 *
141 * @description 142 * Convert the given argument to an instance of Date. 143 * 144 * If the argument is an instance of Date, the function returns its clone. 145 * 146 * If the argument is a number, it is treated as a timestamp. 147 * 148 * If the argument is none of the above, the function returns Invalid Date. 149 * 150 * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. 151 * 152 * @param {Date|Number} argument - the value to convert 153 * @returns {Date} the parsed date in the local time zone 154 * @throws {TypeError} 1 argument required 155 * 156 * @example 157 * // Clone the date: 158 * const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) 159 * //=> Tue Feb 11 2014 11:30:30 160 * 161 * @example 162 * // Convert the timestamp to date: 163 * const result = toDate(1392098430000) 164 * //=> Tue Feb 11 2014 11:30:30 165 */ 166 167 function toDate(argument) { 168 __WEBPACK_IMPORTED_MODULE_0__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 169 var argStr = Object.prototype.toString.call(argument); // Clone the date 170 171 if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') { 172 // Prevent the date to lose the milliseconds when passed to new Date() in IE10 173 return new Date(argument.getTime()); 174 } else if (typeof argument === 'number' || argStr === '[object Number]') { 175 return new Date(argument); 176 } else { 177 if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') { 178 // eslint-disable-next-line no-console 179 console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"); // eslint-disable-next-line no-console 180 181 console.warn(new Error().stack); 182 } 183 184 return new Date(NaN); 185 } 186 } 187 188 /***/ 189 }), 190 /* 2 */ 191 /***/ (function (module, __webpack_exports__, __webpack_require__) { 192 193 "use strict"; 194 /* harmony export (immutable) */ 195 __webpack_exports__["a"] = buildFormatLongFn; 196 197 function buildFormatLongFn(args) { 198 return function (dirtyOptions) { 199 var options = dirtyOptions || {}; 200 var width = options.width ? String(options.width) : args.defaultWidth; 201 var format = args.formats[width] || args.formats[args.defaultWidth]; 202 return format; 203 }; 204 } 205 206 /***/ 207 }), 208 /* 3 */ 209 /***/ (function (module, __webpack_exports__, __webpack_require__) { 210 211 "use strict"; 212 /* harmony export (immutable) */ 213 __webpack_exports__["a"] = buildLocalizeFn; 214 215 function buildLocalizeFn(args) { 216 return function (dirtyIndex, dirtyOptions) { 217 var options = dirtyOptions || {}; 218 var context = options.context ? String(options.context) : 'standalone'; 219 var valuesArray; 220 221 if (context === 'formatting' && args.formattingValues) { 222 var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; 223 var width = options.width ? String(options.width) : defaultWidth; 224 valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; 225 } else { 226 var _defaultWidth = args.defaultWidth; 227 228 var _width = options.width ? String(options.width) : args.defaultWidth; 229 230 valuesArray = args.values[_width] || args.values[_defaultWidth]; 231 } 232 233 var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; 234 return valuesArray[index]; 235 }; 236 } 237 238 /***/ 239 }), 240 /* 4 */ 241 /***/ (function (module, __webpack_exports__, __webpack_require__) { 242 243 "use strict"; 244 /* harmony export (immutable) */ 245 __webpack_exports__["a"] = buildMatchPatternFn; 246 247 function buildMatchPatternFn(args) { 248 return function (dirtyString, dirtyOptions) {
vendor: 23,029 bytes, lines 249-803
249 var string = String(dirtyString); 250 var options = dirtyOptions || {}; 251 var matchResult = string.match(args.matchPattern); 252 253 if (!matchResult) { 254 return null; 255 } 256 257 var matchedString = matchResult[0]; 258 var parseResult = string.match(args.parsePattern); 259 260 if (!parseResult) { 261 return null; 262 } 263 264 var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; 265 value = options.valueCallback ? options.valueCallback(value) : value; 266 return { 267 value: value, 268 rest: string.slice(matchedString.length) 269 }; 270 }; 271 } 272 273 /***/ 274 }), 275 /* 5 */ 276 /***/ (function (module, __webpack_exports__, __webpack_require__) { 277 278 "use strict"; 279 /* harmony export (immutable) */ 280 __webpack_exports__["a"] = buildMatchFn; 281 282 function buildMatchFn(args) { 283 return function (dirtyString, dirtyOptions) { 284 var string = String(dirtyString); 285 var options = dirtyOptions || {}; 286 var width = options.width; 287 var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; 288 var matchResult = string.match(matchPattern); 289 290 if (!matchResult) { 291 return null; 292 } 293 294 var matchedString = matchResult[0]; 295 var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; 296 var value; 297 298 if (Object.prototype.toString.call(parsePatterns) === '[object Array]') { 299 value = findIndex(parsePatterns, function (pattern) { 300 return pattern.test(matchedString); 301 }); 302 } else { 303 value = findKey(parsePatterns, function (pattern) { 304 return pattern.test(matchedString); 305 }); 306 } 307 308 value = args.valueCallback ? args.valueCallback(value) : value; 309 value = options.valueCallback ? options.valueCallback(value) : value; 310 return { 311 value: value, 312 rest: string.slice(matchedString.length) 313 }; 314 }; 315 } 316 317 function findKey(object, predicate) { 318 for (var key in object) { 319 if (object.hasOwnProperty(key) && predicate(object[key])) { 320 return key; 321 } 322 } 323 } 324 325 function findIndex(array, predicate) { 326 for (var key = 0; key < array.length; key++) { 327 if (predicate(array[key])) { 328 return key; 329 } 330 } 331 } 332 333 /***/ 334 }), 335 /* 6 */ 336 /***/ (function (module, __webpack_exports__, __webpack_require__) { 337 338 "use strict"; 339 /* harmony export (immutable) */ 340 __webpack_exports__["a"] = toInteger; 341 342 function toInteger(dirtyNumber) { 343 if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) { 344 return NaN; 345 } 346 347 var number = Number(dirtyNumber); 348 349 if (isNaN(number)) { 350 return number; 351 } 352 353 return number < 0 ? Math.ceil(number) : Math.floor(number); 354 } 355 356 /***/ 357 }), 358 /* 7 */ 359 /***/ (function (module, exports) { 360 361 var core = module.exports = {version: '2.6.11'}; 362 if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 363 364 365 /***/ 366 }), 367 /* 8 */ 368 /***/ (function (module, exports) { 369 370// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 371 var global = module.exports = typeof window != 'undefined' && window.Math == Math 372 ? window : typeof self != 'undefined' && self.Math == Math ? self 373 // eslint-disable-next-line no-new-func 374 : Function('return this')(); 375 if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 376 377 378 /***/ 379 }), 380 /* 9 */ 381 /***/ (function (module, exports, __webpack_require__) { 382 383 var store = __webpack_require__(74)('wks'); 384 var uid = __webpack_require__(52); 385 var Symbol = __webpack_require__(8).Symbol; 386 var USE_SYMBOL = typeof Symbol == 'function'; 387 388 var $exports = module.exports = function (name) { 389 return store[name] || (store[name] = 390 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); 391 }; 392 393 $exports.store = store; 394 395 396 /***/ 397 }), 398 /* 10 */ 399 /***/ (function (module, exports, __webpack_require__) { 400 401 "use strict"; 402 403 404 var bind = __webpack_require__(122); 405 406 /*global toString:true*/ 407 408// utils is a library of generic helper functions non-specific to axios 409 410 var toString = Object.prototype.toString; 411 412 /** 413 * Determine if a value is an Array 414 * 415 * @param {Object} val The value to test 416 * @returns {boolean} True if value is an Array, otherwise false 417 */ 418 function isArray(val) { 419 return toString.call(val) === '[object Array]'; 420 } 421 422 /** 423 * Determine if a value is undefined 424 * 425 * @param {Object} val The value to test 426 * @returns {boolean} True if the value is undefined, otherwise false 427 */ 428 function isUndefined(val) { 429 return typeof val === 'undefined'; 430 } 431 432 /** 433 * Determine if a value is a Buffer 434 * 435 * @param {Object} val The value to test 436 * @returns {boolean} True if value is a Buffer, otherwise false 437 */ 438 function isBuffer(val) { 439 return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) 440 && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val); 441 } 442 443 /** 444 * Determine if a value is an ArrayBuffer 445 * 446 * @param {Object} val The value to test 447 * @returns {boolean} True if value is an ArrayBuffer, otherwise false 448 */ 449 function isArrayBuffer(val) { 450 return toString.call(val) === '[object ArrayBuffer]'; 451 } 452 453 /** 454 * Determine if a value is a FormData 455 * 456 * @param {Object} val The value to test 457 * @returns {boolean} True if value is an FormData, otherwise false 458 */ 459 function isFormData(val) { 460 return (typeof FormData !== 'undefined') && (val instanceof FormData); 461 } 462 463 /** 464 * Determine if a value is a view on an ArrayBuffer 465 * 466 * @param {Object} val The value to test 467 * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false 468 */ 469 function isArrayBufferView(val) { 470 var result; 471 if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { 472 result = ArrayBuffer.isView(val); 473 } else { 474 result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); 475 } 476 return result; 477 } 478 479 /** 480 * Determine if a value is a String 481 * 482 * @param {Object} val The value to test 483 * @returns {boolean} True if value is a String, otherwise false 484 */ 485 function isString(val) { 486 return typeof val === 'string'; 487 } 488 489 /** 490 * Determine if a value is a Number 491 * 492 * @param {Object} val The value to test 493 * @returns {boolean} True if value is a Number, otherwise false 494 */ 495 function isNumber(val) { 496 return typeof val === 'number'; 497 } 498 499 /** 500 * Determine if a value is an Object 501 * 502 * @param {Object} val The value to test 503 * @returns {boolean} True if value is an Object, otherwise false 504 */ 505 function isObject(val) { 506 return val !== null && typeof val === 'object'; 507 } 508 509 /** 510 * Determine if a value is a Date 511 * 512 * @param {Object} val The value to test 513 * @returns {boolean} True if value is a Date, otherwise false 514 */ 515 function isDate(val) { 516 return toString.call(val) === '[object Date]'; 517 } 518 519 /** 520 * Determine if a value is a File 521 * 522 * @param {Object} val The value to test 523 * @returns {boolean} True if value is a File, otherwise false 524 */ 525 function isFile(val) { 526 return toString.call(val) === '[object File]'; 527 } 528 529 /** 530 * Determine if a value is a Blob 531 * 532 * @param {Object} val The value to test 533 * @returns {boolean} True if value is a Blob, otherwise false 534 */ 535 function isBlob(val) { 536 return toString.call(val) === '[object Blob]'; 537 } 538 539 /** 540 * Determine if a value is a Function 541 * 542 * @param {Object} val The value to test 543 * @returns {boolean} True if value is a Function, otherwise false 544 */ 545 function isFunction(val) { 546 return toString.call(val) === '[object Function]'; 547 } 548 549 /** 550 * Determine if a value is a Stream 551 * 552 * @param {Object} val The value to test 553 * @returns {boolean} True if value is a Stream, otherwise false 554 */ 555 function isStream(val) { 556 return isObject(val) && isFunction(val.pipe); 557 } 558 559 /** 560 * Determine if a value is a URLSearchParams object 561 * 562 * @param {Object} val The value to test 563 * @returns {boolean} True if value is a URLSearchParams object, otherwise false 564 */ 565 function isURLSearchParams(val) { 566 return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams; 567 } 568 569 /** 570 * Trim excess whitespace off the beginning and end of a string 571 * 572 * @param {String} str The String to trim 573 * @returns {String} The String freed of excess whitespace 574 */ 575 function trim(str) { 576 return str.replace(/^\s*/, '').replace(/\s*$/, ''); 577 } 578 579 /** 580 * Determine if we're running in a standard browser environment 581 * 582 * This allows axios to run in a web worker, and react-native. 583 * Both environments support XMLHttpRequest, but not fully standard globals. 584 * 585 * web workers: 586 * typeof window -> undefined 587 * typeof document -> undefined 588 * 589 * react-native: 590 * navigator.product -> 'ReactNative' 591 * nativescript 592 * navigator.product -> 'NativeScript' or 'NS' 593 */ 594 function isStandardBrowserEnv() { 595 if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || 596 navigator.product === 'NativeScript' || 597 navigator.product === 'NS')) { 598 return false; 599 } 600 return ( 601 typeof window !== 'undefined' && 602 typeof document !== 'undefined' 603 ); 604 } 605 606 /** 607 * Iterate over an Array or an Object invoking a function for each item. 608 * 609 * If `obj` is an Array callback will be called passing 610 * the value, index, and complete array for each item. 611 * 612 * If 'obj' is an Object callback will be called passing 613 * the value, key, and complete object for each property. 614 * 615 * @param {Object|Array} obj The object to iterate 616 * @param {Function} fn The callback to invoke for each item 617 */ 618 function forEach(obj, fn) { 619 // Don't bother if no value provided 620 if (obj === null || typeof obj === 'undefined') { 621 return; 622 } 623 624 // Force an array if not already something iterable 625 if (typeof obj !== 'object') { 626 /*eslint no-param-reassign:0*/ 627 obj = [obj]; 628 } 629 630 if (isArray(obj)) { 631 // Iterate over array values 632 for (var i = 0, l = obj.length; i < l; i++) { 633 fn.call(null, obj[i], i, obj); 634 } 635 } else { 636 // Iterate over object keys 637 for (var key in obj) { 638 if (Object.prototype.hasOwnProperty.call(obj, key)) { 639 fn.call(null, obj[key], key, obj); 640 } 641 } 642 } 643 } 644 645 /** 646 * Accepts varargs expecting each argument to be an object, then 647 * immutably merges the properties of each object and returns result. 648 * 649 * When multiple objects contain the same key the later object in 650 * the arguments list will take precedence. 651 * 652 * Example: 653 * 654 * ```js 655 * var result = merge({foo: 123}, {foo: 456}); 656 * console.log(result.foo); // outputs 456 657 * ``` 658 * 659 * @param {Object} obj1 Object to merge 660 * @returns {Object} Result of all merge properties 661 */ 662 function merge(/* obj1, obj2, obj3, ... */) { 663 var result = {}; 664 665 function assignValue(val, key) { 666 if (typeof result[key] === 'object' && typeof val === 'object') { 667 result[key] = merge(result[key], val); 668 } else { 669 result[key] = val; 670 } 671 } 672 673 for (var i = 0, l = arguments.length; i < l; i++) { 674 forEach(arguments[i], assignValue); 675 } 676 return result; 677 } 678 679 /** 680 * Function equal to merge with the difference being that no reference 681 * to original objects is kept. 682 * 683 * @see merge 684 * @param {Object} obj1 Object to merge 685 * @returns {Object} Result of all merge properties 686 */ 687 function deepMerge(/* obj1, obj2, obj3, ... */) { 688 var result = {}; 689 690 function assignValue(val, key) { 691 if (typeof result[key] === 'object' && typeof val === 'object') { 692 result[key] = deepMerge(result[key], val); 693 } else if (typeof val === 'object') { 694 result[key] = deepMerge({}, val); 695 } else { 696 result[key] = val; 697 } 698 } 699 700 for (var i = 0, l = arguments.length; i < l; i++) { 701 forEach(arguments[i], assignValue); 702 } 703 return result; 704 } 705 706 /** 707 * Extends object a by mutably adding to it the properties of object b. 708 * 709 * @param {Object} a The object to be extended 710 * @param {Object} b The object to copy properties from 711 * @param {Object} thisArg The object to bind function to 712 * @return {Object} The resulting value of object a 713 */ 714 function extend(a, b, thisArg) { 715 forEach(b, function assignValue(val, key) { 716 if (thisArg && typeof val === 'function') { 717 a[key] = bind(val, thisArg); 718 } else { 719 a[key] = val; 720 } 721 }); 722 return a; 723 } 724 725 module.exports = { 726 isArray: isArray, 727 isArrayBuffer: isArrayBuffer, 728 isBuffer: isBuffer, 729 isFormData: isFormData, 730 isArrayBufferView: isArrayBufferView, 731 isString: isString, 732 isNumber: isNumber, 733 isObject: isObject, 734 isUndefined: isUndefined, 735 isDate: isDate, 736 isFile: isFile, 737 isBlob: isBlob, 738 isFunction: isFunction, 739 isStream: isStream, 740 isURLSearchParams: isURLSearchParams, 741 isStandardBrowserEnv: isStandardBrowserEnv, 742 forEach: forEach, 743 merge: merge, 744 deepMerge: deepMerge, 745 extend: extend, 746 trim: trim 747 }; 748 749 750 /***/ 751 }), 752 /* 11 */ 753 /***/ (function (module, exports, __webpack_require__) { 754 755 var global = __webpack_require__(8); 756 var core = __webpack_require__(7); 757 var ctx = __webpack_require__(29); 758 var hide = __webpack_require__(23); 759 var has = __webpack_require__(24); 760 var PROTOTYPE = 'prototype'; 761 762 var $export = function (type, name, source) { 763 var IS_FORCED = type & $export.F; 764 var IS_GLOBAL = type & $export.G; 765 var IS_STATIC = type & $export.S; 766 var IS_PROTO = type & $export.P; 767 var IS_BIND = type & $export.B; 768 var IS_WRAP = type & $export.W; 769 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 770 var expProto = exports[PROTOTYPE]; 771 var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; 772 var key, own, out; 773 if (IS_GLOBAL) source = name; 774 for (key in source) { 775 // contains in native 776 own = !IS_FORCED && target && target[key] !== undefined; 777 if (own && has(exports, key)) continue; 778 // export native or passed 779 out = own ? target[key] : source[key]; 780 // prevent global pollution for namespaces 781 exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] 782 // bind timers to global for call from export context 783 : IS_BIND && own ? ctx(out, global) 784 // wrap global constructors for prevent change them in library 785 : IS_WRAP && target[key] == out ? (function (C) { 786 var F = function (a, b, c) { 787 if (this instanceof C) { 788 switch (arguments.length) { 789 case 0: 790 return new C(); 791 case 1: 792 return new C(a); 793 case 2: 794 return new C(a, b); 795 } 796 return new C(a, b, c); 797 } 798 return C.apply(this, arguments); 799 }; 800 F[PROTOTYPE] = C[PROTOTYPE]; 801 return F; 802 // make static versions for prototype methods 803 }
vendor: 38,570 bytes, lines 803-1649
803)(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; 804 // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% 805 if (IS_PROTO) { 806 (exports.virtual || (exports.virtual = {}))[key] = out; 807 // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% 808 if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); 809 } 810 } 811 }; 812// type bitmap 813 $export.F = 1; // forced 814 $export.G = 2; // global 815 $export.S = 4; // static 816 $export.P = 8; // proto 817 $export.B = 16; // bind 818 $export.W = 32; // wrap 819 $export.U = 64; // safe 820 $export.R = 128; // real proto method for `library` 821 module.exports = $export; 822 823 824 /***/ 825 }), 826 /* 12 */ 827 /***/ (function (module, __webpack_exports__, __webpack_require__) { 828 829 "use strict"; 830 Object.defineProperty(__webpack_exports__, "__esModule", {value: true}); 831 /* WEBPACK VAR INJECTION */ 832 (function (process) {/* harmony export (binding) */ 833 __webpack_require__.d(__webpack_exports__, "version", function () { 834 return version; 835 }); 836 /* harmony export (binding) */ 837 __webpack_require__.d(__webpack_exports__, "DOM", function () { 838 return DOM; 839 }); 840 /* harmony export (binding) */ 841 __webpack_require__.d(__webpack_exports__, "Children", function () { 842 return Children; 843 }); 844 /* harmony export (binding) */ 845 __webpack_require__.d(__webpack_exports__, "render", function () { 846 return render$1; 847 }); 848 /* harmony export (binding) */ 849 __webpack_require__.d(__webpack_exports__, "createClass", function () { 850 return createClass; 851 }); 852 /* harmony export (binding) */ 853 __webpack_require__.d(__webpack_exports__, "createFactory", function () { 854 return createFactory; 855 }); 856 /* harmony export (binding) */ 857 __webpack_require__.d(__webpack_exports__, "createElement", function () { 858 return createElement; 859 }); 860 /* harmony export (binding) */ 861 __webpack_require__.d(__webpack_exports__, "cloneElement", function () { 862 return cloneElement$1; 863 }); 864 /* harmony export (binding) */ 865 __webpack_require__.d(__webpack_exports__, "isValidElement", function () { 866 return isValidElement; 867 }); 868 /* harmony export (binding) */ 869 __webpack_require__.d(__webpack_exports__, "findDOMNode", function () { 870 return findDOMNode; 871 }); 872 /* harmony export (binding) */ 873 __webpack_require__.d(__webpack_exports__, "unmountComponentAtNode", function () { 874 return unmountComponentAtNode; 875 }); 876 /* harmony export (binding) */ 877 __webpack_require__.d(__webpack_exports__, "Component", function () { 878 return Component$1; 879 }); 880 /* harmony export (binding) */ 881 __webpack_require__.d(__webpack_exports__, "PureComponent", function () { 882 return PureComponent; 883 }); 884 /* harmony export (binding) */ 885 __webpack_require__.d(__webpack_exports__, "unstable_renderSubtreeIntoContainer", function () { 886 return renderSubtreeIntoContainer; 887 }); 888 /* harmony import */ 889 var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(195); 890 /* harmony import */ 891 var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__); 892 /* harmony import */ 893 var __WEBPACK_IMPORTED_MODULE_1_preact__ = __webpack_require__(202); 894 /* harmony import */ 895 var __WEBPACK_IMPORTED_MODULE_1_preact___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_preact__); 896 /* harmony reexport (default from non-hamory) */ 897 __webpack_require__.d(__webpack_exports__, "PropTypes", function () { 898 return __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a; 899 }); 900 901 902 var version = '15.1.0'; // trick libraries to think we are react 903 904 var ELEMENTS = 'a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr circle clipPath defs ellipse g image line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan'.split(' '); 905 906 var REACT_ELEMENT_TYPE = (typeof Symbol !== 'undefined' && Symbol.for && Symbol.for('react.element')) || 0xeac7; 907 908 var COMPONENT_WRAPPER_KEY = typeof Symbol !== 'undefined' ? Symbol.for('__preactCompatWrapper') : '__preactCompatWrapper'; 909 910// don't autobind these methods since they already have guaranteed context. 911 var AUTOBIND_BLACKLIST = { 912 constructor: 1, 913 render: 1, 914 shouldComponentUpdate: 1, 915 componentWillReceiveProps: 1, 916 componentWillUpdate: 1, 917 componentDidUpdate: 1, 918 componentWillMount: 1, 919 componentDidMount: 1, 920 componentWillUnmount: 1, 921 componentDidUnmount: 1 922 }; 923 924 925 var CAMEL_PROPS = /^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|flood|font|glyph|horiz|marker|overline|paint|stop|strikethrough|stroke|text|underline|unicode|units|v|vert|word|writing|x)[A-Z]/; 926 927 928 var BYPASS_HOOK = {}; 929 930 /*global process*/ 931 var DEV = typeof process === 'undefined' || !process.env || process.env.NODE_ENV !== 'production'; 932 933// a component that renders nothing. Used to replace components for unmountComponentAtNode. 934 function EmptyComponent() { 935 return null; 936 } 937 938 939// make react think we're react. 940 var VNode = __WEBPACK_IMPORTED_MODULE_1_preact__["h"]('a', null).constructor; 941 VNode.prototype.$$typeof = REACT_ELEMENT_TYPE; 942 VNode.prototype.preactCompatUpgraded = false; 943 VNode.prototype.preactCompatNormalized = false; 944 945 Object.defineProperty(VNode.prototype, 'type', { 946 get: function () { 947 return this.nodeName; 948 }, 949 set: function (v) { 950 this.nodeName = v; 951 }, 952 configurable: true 953 }); 954 955 Object.defineProperty(VNode.prototype, 'props', { 956 get: function () { 957 return this.attributes; 958 }, 959 set: function (v) { 960 this.attributes = v; 961 }, 962 configurable: true 963 }); 964 965 966 var oldEventHook = __WEBPACK_IMPORTED_MODULE_1_preact__["options"].event; 967 __WEBPACK_IMPORTED_MODULE_1_preact__["options"].event = function (e) { 968 if (oldEventHook) { 969 e = oldEventHook(e); 970 } 971 e.persist = Object; 972 e.nativeEvent = e; 973 return e; 974 }; 975 976 977 var oldVnodeHook = __WEBPACK_IMPORTED_MODULE_1_preact__["options"].vnode; 978 __WEBPACK_IMPORTED_MODULE_1_preact__["options"].vnode = function (vnode) { 979 if (!vnode.preactCompatUpgraded) { 980 vnode.preactCompatUpgraded = true; 981 982 var tag = vnode.nodeName, 983 attrs = vnode.attributes = extend({}, vnode.attributes); 984 985 if (typeof tag === 'function') { 986 if (tag[COMPONENT_WRAPPER_KEY] === true || (tag.prototype && 'isReactComponent' in tag.prototype)) { 987 if (vnode.children && String(vnode.children) === '') { 988 vnode.children = undefined; 989 } 990 if (vnode.children) { 991 attrs.children = vnode.children; 992 } 993 994 if (!vnode.preactCompatNormalized) { 995 normalizeVNode(vnode); 996 } 997 handleComponentVNode(vnode); 998 } 999 } else { 1000 if (vnode.children && String(vnode.children) === '') { 1001 vnode.children = undefined; 1002 } 1003 if (vnode.children) { 1004 attrs.children = vnode.children; 1005 } 1006 1007 if (attrs.defaultValue) { 1008 if (!attrs.value && attrs.value !== 0) { 1009 attrs.value = attrs.defaultValue; 1010 } 1011 delete attrs.defaultValue; 1012 } 1013 1014 handleElementVNode(vnode, attrs); 1015 } 1016 } 1017 1018 if (oldVnodeHook) { 1019 oldVnodeHook(vnode); 1020 } 1021 }; 1022 1023 function handleComponentVNode(vnode) { 1024 var tag = vnode.nodeName, 1025 a = vnode.attributes; 1026 1027 vnode.attributes = {}; 1028 if (tag.defaultProps) { 1029 extend(vnode.attributes, tag.defaultProps); 1030 } 1031 if (a) { 1032 extend(vnode.attributes, a); 1033 } 1034 } 1035 1036 function handleElementVNode(vnode, a) { 1037 var shouldSanitize, attrs, i; 1038 if (a) { 1039 for (i in a) { 1040 if ((shouldSanitize = CAMEL_PROPS.test(i))) { 1041 break; 1042 } 1043 } 1044 if (shouldSanitize) { 1045 attrs = vnode.attributes = {}; 1046 for (i in a) { 1047 if (a.hasOwnProperty(i)) { 1048 attrs[CAMEL_PROPS.test(i) ? i.replace(/([A-Z0-9])/, '-$1').toLowerCase() : i] = a[i]; 1049 } 1050 } 1051 } 1052 } 1053 } 1054 1055 1056// proxy render() since React returns a Component reference. 1057 function render$1(vnode, parent, callback) { 1058 var prev = parent && parent._preactCompatRendered && parent._preactCompatRendered.base; 1059 1060 // ignore impossible previous renders 1061 if (prev && prev.parentNode !== parent) { 1062 prev = null; 1063 } 1064 1065 // default to first Element child 1066 if (!prev) { 1067 prev = parent.children[0]; 1068 } 1069 1070 // remove unaffected siblings 1071 for (var i = parent.childNodes.length; i--;) { 1072 if (parent.childNodes[i] !== prev) { 1073 parent.removeChild(parent.childNodes[i]); 1074 } 1075 } 1076 1077 var out = __WEBPACK_IMPORTED_MODULE_1_preact__["render"](vnode, parent, prev); 1078 if (parent) { 1079 parent._preactCompatRendered = out && (out._component || {base: out}); 1080 } 1081 if (typeof callback === 'function') { 1082 callback(); 1083 } 1084 return out && out._component || out; 1085 } 1086 1087 1088 var ContextProvider = function () { 1089 }; 1090 1091 ContextProvider.prototype.getChildContext = function () { 1092 return this.props.context; 1093 }; 1094 ContextProvider.prototype.render = function (props) { 1095 return props.children[0]; 1096 }; 1097 1098 function renderSubtreeIntoContainer(parentComponent, vnode, container, callback) { 1099 var wrap = __WEBPACK_IMPORTED_MODULE_1_preact__["h"](ContextProvider, {context: parentComponent.context}, vnode); 1100 var c = render$1(wrap, container); 1101 if (callback) { 1102 callback(c); 1103 } 1104 return c._component || c.base; 1105 } 1106 1107 1108 function unmountComponentAtNode(container) { 1109 var existing = container._preactCompatRendered && container._preactCompatRendered.base; 1110 if (existing && existing.parentNode === container) { 1111 __WEBPACK_IMPORTED_MODULE_1_preact__["render"](__WEBPACK_IMPORTED_MODULE_1_preact__["h"](EmptyComponent), container, existing); 1112 return true; 1113 } 1114 return false; 1115 } 1116 1117 1118 var ARR = []; 1119 1120// This API is completely unnecessary for Preact, so it's basically passthrough. 1121 var Children = { 1122 map: function (children, fn, ctx) { 1123 if (children == null) { 1124 return null; 1125 } 1126 children = Children.toArray(children); 1127 if (ctx && ctx !== children) { 1128 fn = fn.bind(ctx); 1129 } 1130 return children.map(fn); 1131 }, 1132 forEach: function (children, fn, ctx) { 1133 if (children == null) { 1134 return null; 1135 } 1136 children = Children.toArray(children); 1137 if (ctx && ctx !== children) { 1138 fn = fn.bind(ctx); 1139 } 1140 children.forEach(fn); 1141 }, 1142 count: function (children) { 1143 return children && children.length || 0; 1144 }, 1145 only: function (children) { 1146 children = Children.toArray(children); 1147 if (children.length !== 1) { 1148 throw new Error('Children.only() expects only one child.'); 1149 } 1150 return children[0]; 1151 }, 1152 toArray: function (children) { 1153 if (children == null) { 1154 return []; 1155 } 1156 return Array.isArray && Array.isArray(children) ? children : ARR.concat(children); 1157 } 1158 }; 1159 1160 1161 /** Track current render() component for ref assignment */ 1162 var currentComponent; 1163 1164 1165 function createFactory(type) { 1166 return createElement.bind(null, type); 1167 } 1168 1169 1170 var DOM = {}; 1171 for (var i = ELEMENTS.length; i--;) { 1172 DOM[ELEMENTS[i]] = createFactory(ELEMENTS[i]); 1173 } 1174 1175 function upgradeToVNodes(arr, offset) { 1176 for (var i = offset || 0; i < arr.length; i++) { 1177 var obj = arr[i]; 1178 if (Array.isArray(obj)) { 1179 upgradeToVNodes(obj); 1180 } else if (obj && typeof obj === 'object' && !isValidElement(obj) && ((obj.props && obj.type) || (obj.attributes && obj.nodeName) || obj.children)) { 1181 arr[i] = createElement(obj.type || obj.nodeName, obj.props || obj.attributes, obj.children); 1182 } 1183 } 1184 } 1185 1186 function isStatelessComponent(c) { 1187 return typeof c === 'function' && !(c.prototype && c.prototype.render); 1188 } 1189 1190 1191// wraps stateless functional components in a PropTypes validator 1192 function wrapStatelessComponent(WrappedComponent) { 1193 return createClass({ 1194 displayName: WrappedComponent.displayName || WrappedComponent.name, 1195 render: function () { 1196 return WrappedComponent(this.props, this.context); 1197 } 1198 }); 1199 } 1200 1201 1202 function statelessComponentHook(Ctor) { 1203 var Wrapped = Ctor[COMPONENT_WRAPPER_KEY]; 1204 if (Wrapped) { 1205 return Wrapped === true ? Ctor : Wrapped; 1206 } 1207 1208 Wrapped = wrapStatelessComponent(Ctor); 1209 1210 Object.defineProperty(Wrapped, COMPONENT_WRAPPER_KEY, {configurable: true, value: true}); 1211 Wrapped.displayName = Ctor.displayName; 1212 Wrapped.propTypes = Ctor.propTypes; 1213 Wrapped.defaultProps = Ctor.defaultProps; 1214 1215 Object.defineProperty(Ctor, COMPONENT_WRAPPER_KEY, {configurable: true, value: Wrapped}); 1216 1217 return Wrapped; 1218 } 1219 1220 1221 function createElement() { 1222 var args = [], len = arguments.length; 1223 while (len--) args[len] = arguments[len]; 1224 1225 upgradeToVNodes(args, 2); 1226 return normalizeVNode(__WEBPACK_IMPORTED_MODULE_1_preact__["h"].apply(void 0, args)); 1227 } 1228 1229 1230 function normalizeVNode(vnode) { 1231 vnode.preactCompatNormalized = true; 1232 1233 applyClassName(vnode); 1234 1235 if (isStatelessComponent(vnode.nodeName)) { 1236 vnode.nodeName = statelessComponentHook(vnode.nodeName); 1237 } 1238 1239 var ref = vnode.attributes.ref, 1240 type = ref && typeof ref; 1241 if (currentComponent && (type === 'string' || type === 'number')) { 1242 vnode.attributes.ref = createStringRefProxy(ref, currentComponent); 1243 } 1244 1245 applyEventNormalization(vnode); 1246 1247 return vnode; 1248 } 1249 1250 1251 function cloneElement$1(element, props) { 1252 var children = [], len = arguments.length - 2; 1253 while (len-- > 0) children[len] = arguments[len + 2]; 1254 1255 if (!isValidElement(element)) { 1256 return element; 1257 } 1258 var elementProps = element.attributes || element.props; 1259 var node = __WEBPACK_IMPORTED_MODULE_1_preact__["h"]( 1260 element.nodeName || element.type, 1261 elementProps, 1262 element.children || elementProps && elementProps.children 1263 ); 1264 // Only provide the 3rd argument if needed. 1265 // Arguments 3+ overwrite element.children in preactCloneElement 1266 var cloneArgs = [node, props]; 1267 if (children && children.length) { 1268 cloneArgs.push(children); 1269 } else if (props && props.children) { 1270 cloneArgs.push(props.children); 1271 } 1272 return normalizeVNode(__WEBPACK_IMPORTED_MODULE_1_preact__["cloneElement"].apply(void 0, cloneArgs)); 1273 } 1274 1275 1276 function isValidElement(element) { 1277 return element && ((element instanceof VNode) || element.$$typeof === REACT_ELEMENT_TYPE); 1278 } 1279 1280 1281 function createStringRefProxy(name, component) { 1282 return component._refProxies[name] || (component._refProxies[name] = function (resolved) { 1283 if (component && component.refs) { 1284 component.refs[name] = resolved; 1285 if (resolved === null) { 1286 delete component._refProxies[name]; 1287 component = null; 1288 } 1289 } 1290 }); 1291 } 1292 1293 1294 function applyEventNormalization(ref) { 1295 var nodeName = ref.nodeName; 1296 var attributes = ref.attributes; 1297 1298 if (!attributes || typeof nodeName !== 'string') { 1299 return; 1300 } 1301 var props = {}; 1302 for (var i in attributes) { 1303 props[i.toLowerCase()] = i; 1304 } 1305 if (props.ondoubleclick) { 1306 attributes.ondblclick = attributes[props.ondoubleclick]; 1307 delete attributes[props.ondoubleclick]; 1308 } 1309 // for *textual inputs* (incl textarea), normalize `onChange` -> `onInput`: 1310 if (props.onchange && (nodeName === 'textarea' || (nodeName.toLowerCase() === 'input' && !/^fil|che|rad/i.test(attributes.type)))) { 1311 var normalized = props.oninput || 'oninput'; 1312 if (!attributes[normalized]) { 1313 attributes[normalized] = multihook([attributes[normalized], attributes[props.onchange]]); 1314 delete attributes[props.onchange]; 1315 } 1316 } 1317 } 1318 1319 1320 function applyClassName(ref) { 1321 var attributes = ref.attributes; 1322 1323 if (!attributes) { 1324 return; 1325 } 1326 var cl = attributes.className || attributes.class; 1327 if (cl) { 1328 attributes.className = cl; 1329 } 1330 } 1331 1332 1333 function extend(base, props) { 1334 for (var key in props) { 1335 if (props.hasOwnProperty(key)) { 1336 base[key] = props[key]; 1337 } 1338 } 1339 return base; 1340 } 1341 1342 1343 function shallowDiffers(a, b) { 1344 for (var i in a) { 1345 if (!(i in b)) { 1346 return true; 1347 } 1348 } 1349 for (var i$1 in b) { 1350 if (a[i$1] !== b[i$1]) { 1351 return true; 1352 } 1353 } 1354 return false; 1355 } 1356 1357 1358 function findDOMNode(component) { 1359 return component && component.base || component; 1360 } 1361 1362 1363 function F() { 1364 } 1365 1366 function createClass(obj) { 1367 function cl(props, context) { 1368 bindAll(this); 1369 Component$1.call(this, props, context, BYPASS_HOOK); 1370 newComponentHook.call(this, props, context); 1371 } 1372 1373 obj = extend({constructor: cl}, obj); 1374 1375 // We need to apply mixins here so that getDefaultProps is correctly mixed 1376 if (obj.mixins) { 1377 applyMixins(obj, collateMixins(obj.mixins)); 1378 } 1379 if (obj.statics) { 1380 extend(cl, obj.statics); 1381 } 1382 if (obj.propTypes) { 1383 cl.propTypes = obj.propTypes; 1384 } 1385 if (obj.defaultProps) { 1386 cl.defaultProps = obj.defaultProps; 1387 } 1388 if (obj.getDefaultProps) { 1389 cl.defaultProps = obj.getDefaultProps(); 1390 } 1391 1392 F.prototype = Component$1.prototype; 1393 cl.prototype = extend(new F(), obj); 1394 1395 cl.displayName = obj.displayName || 'Component'; 1396 1397 return cl; 1398 } 1399 1400 1401// Flatten an Array of mixins to a map of method name to mixin implementations 1402 function collateMixins(mixins) { 1403 var keyed = {}; 1404 for (var i = 0; i < mixins.length; i++) { 1405 var mixin = mixins[i]; 1406 for (var key in mixin) { 1407 if (mixin.hasOwnProperty(key) && typeof mixin[key] === 'function') { 1408 (keyed[key] || (keyed[key] = [])).push(mixin[key]); 1409 } 1410 } 1411 } 1412 return keyed; 1413 } 1414 1415 1416// apply a mapping of Arrays of mixin methods to a component prototype 1417 function applyMixins(proto, mixins) { 1418 for (var key in mixins) { 1419 if (mixins.hasOwnProperty(key)) { 1420 proto[key] = multihook( 1421 mixins[key].concat(proto[key] || ARR), 1422 key === 'getDefaultProps' || key === 'getInitialState' || key === 'getChildContext' 1423 ); 1424 } 1425 } 1426 } 1427 1428 1429 function bindAll(ctx) { 1430 for (var i in ctx) { 1431 var v = ctx[i]; 1432 if (typeof v === 'function' && !v.__bound && !AUTOBIND_BLACKLIST.hasOwnProperty(i)) { 1433 (ctx[i] = v.bind(ctx)).__bound = true; 1434 } 1435 } 1436 } 1437 1438 1439 function callMethod(ctx, m, args) { 1440 if (typeof m === 'string') { 1441 m = ctx.constructor.prototype[m]; 1442 } 1443 if (typeof m === 'function') { 1444 return m.apply(ctx, args); 1445 } 1446 } 1447 1448 function multihook(hooks, skipDuplicates) { 1449 return function () { 1450 var arguments$1 = arguments; 1451 var this$1 = this; 1452 1453 var ret; 1454 for (var i = 0; i < hooks.length; i++) { 1455 var r = callMethod(this$1, hooks[i], arguments$1); 1456 1457 if (skipDuplicates && r != null) { 1458 if (!ret) { 1459 ret = {}; 1460 } 1461 for (var key in r) { 1462 if (r.hasOwnProperty(key)) { 1463 ret[key] = r[key]; 1464 } 1465 } 1466 } else if (typeof r !== 'undefined') { 1467 ret = r; 1468 } 1469 } 1470 return ret; 1471 }; 1472 } 1473 1474 1475 function newComponentHook(props, context) { 1476 propsHook.call(this, props, context); 1477 this.componentWillReceiveProps = multihook([propsHook, this.componentWillReceiveProps || 'componentWillReceiveProps']); 1478 this.render = multihook([propsHook, beforeRender, this.render || 'render', afterRender]); 1479 } 1480 1481 1482 function propsHook(props, context) { 1483 if (!props) { 1484 return; 1485 } 1486 1487 // React annoyingly special-cases single children, and some react components are ridiculously strict about this. 1488 var c = props.children; 1489 if (c && Array.isArray(c) && c.length === 1) { 1490 props.children = c[0]; 1491 1492 // but its totally still going to be an Array. 1493 if (props.children && typeof props.children === 'object') { 1494 props.children.length = 1; 1495 props.children[0] = props.children; 1496 } 1497 } 1498 1499 // add proptype checking 1500 if (DEV) { 1501 var ctor = typeof this === 'function' ? this : this.constructor, 1502 propTypes = this.propTypes || ctor.propTypes; 1503 var displayName = this.displayName || ctor.name; 1504 1505 if (propTypes) { 1506 __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.checkPropTypes(propTypes, props, 'prop', displayName); 1507 } 1508 } 1509 } 1510 1511 1512 function beforeRender(props) { 1513 currentComponent = this; 1514 } 1515 1516 function afterRender() { 1517 if (currentComponent === this) { 1518 currentComponent = null; 1519 } 1520 } 1521 1522 1523 function Component$1(props, context, opts) { 1524 __WEBPACK_IMPORTED_MODULE_1_preact__["Component"].call(this, props, context); 1525 this.state = this.getInitialState ? this.getInitialState() : {}; 1526 this.refs = {}; 1527 this._refProxies = {}; 1528 if (opts !== BYPASS_HOOK) { 1529 newComponentHook.call(this, props, context); 1530 } 1531 } 1532 1533 extend(Component$1.prototype = new __WEBPACK_IMPORTED_MODULE_1_preact__["Component"](), { 1534 constructor: Component$1, 1535 1536 isReactComponent: {}, 1537 1538 replaceState: function (state, callback) { 1539 var this$1 = this; 1540 1541 this.setState(state, callback); 1542 for (var i in this$1.state) { 1543 if (!(i in state)) { 1544 delete this$1.state[i]; 1545 } 1546 } 1547 }, 1548 1549 getDOMNode: function () { 1550 return this.base; 1551 }, 1552 1553 isMounted: function () { 1554 return !!this.base; 1555 } 1556 }); 1557 1558 1559 function PureComponent(props, context) { 1560 Component$1.call(this, props, context); 1561 } 1562 1563 F.prototype = Component$1.prototype; 1564 PureComponent.prototype = new F(); 1565 PureComponent.prototype.isPureReactComponent = true; 1566 PureComponent.prototype.shouldComponentUpdate = function (props, state) { 1567 return shallowDiffers(this.props, props) || shallowDiffers(this.state, state); 1568 }; 1569 1570 1571 var index = { 1572 version: version, 1573 DOM: DOM, 1574 PropTypes: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a, 1575 Children: Children, 1576 render: render$1, 1577 createClass: createClass, 1578 createFactory: createFactory, 1579 createElement: createElement, 1580 cloneElement: cloneElement$1, 1581 isValidElement: isValidElement, 1582 findDOMNode: findDOMNode, 1583 unmountComponentAtNode: unmountComponentAtNode, 1584 Component: Component$1, 1585 PureComponent: PureComponent, 1586 unstable_renderSubtreeIntoContainer: renderSubtreeIntoContainer 1587 }; 1588 1589 /* harmony default export */ 1590 __webpack_exports__["default"] = (index); 1591//# sourceMappingURL=preact-compat.es.js.map 1592 1593 /* WEBPACK VAR INJECTION */ 1594 }.call(__webpack_exports__, __webpack_require__(18))) 1595 1596 /***/ 1597 }), 1598 /* 13 */ 1599 /***/ (function (module, __webpack_exports__, __webpack_require__) { 1600 1601 "use strict"; 1602 /* harmony export (immutable) */ 1603 __webpack_exports__["a"] = isSameUTCWeek; 1604 /* harmony import */ 1605 var __WEBPACK_IMPORTED_MODULE_0__startOfUTCWeek_index_js__ = __webpack_require__(50); 1606 /* harmony import */ 1607 var __WEBPACK_IMPORTED_MODULE_1__requiredArgs_index_js__ = __webpack_require__(0); 1608 1609 // This function will be a part of public API when UTC function will be implemented. 1610// See issue: https://github.com/date-fns/date-fns/issues/376 1611 1612 function isSameUTCWeek(dirtyDateLeft, dirtyDateRight, options) { 1613 __WEBPACK_IMPORTED_MODULE_1__requiredArgs_index_js__["a" /* default */](2, arguments); 1614 var dateLeftStartOfWeek = __WEBPACK_IMPORTED_MODULE_0__startOfUTCWeek_index_js__["a" /* default */](dirtyDateLeft, options); 1615 var dateRightStartOfWeek = __WEBPACK_IMPORTED_MODULE_0__startOfUTCWeek_index_js__["a" /* default */](dirtyDateRight, options); 1616 return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime(); 1617 } 1618 1619 /***/ 1620 }), 1621 /* 14 */ 1622 /***/ (function (module, exports, __webpack_require__) { 1623 1624 var isObject = __webpack_require__(20); 1625 module.exports = function (it) { 1626 if (!isObject(it)) throw TypeError(it + ' is not an object!'); 1627 return it; 1628 }; 1629 1630 1631 /***/ 1632 }), 1633 /* 15 */ 1634 /***/ (function (module, __webpack_exports__, __webpack_require__) { 1635 1636 "use strict"; 1637 /* harmony export (immutable) */ 1638 __webpack_exports__["a"] = isValid; 1639 /* harmony import */ 1640 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 1641 /* harmony import */ 1642 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 1643 1644 1645 /** 1646 * @name isValid 1647 * @category Common Helpers 1648 * @summary Is the given date valid? 1649 *
1650 * @description 1651 * Returns false if argument is Invalid Date and true otherwise. 1652 * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate} 1653 * Invalid Date is a Date, whose time value is NaN. 1654 * 1655 * Time value of Date: http://es5.github.io/#x15.9.1.1 1656 * 1657 * ### v2.0.0 breaking changes: 1658 * 1659 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 1660 * 1661 * - Now `isValid` doesn't throw an exception 1662 * if the first argument is not an instance of Date. 1663 * Instead, argument is converted beforehand using `toDate`. 1664 * 1665 * Examples: 1666 * 1667 * | `isValid` argument | Before v2.0.0 | v2.0.0 onward | 1668 * |---------------------------|---------------|---------------| 1669 * | `new Date()` | `true` | `true` | 1670 * | `new Date('2016-01-01')` | `true` | `true` | 1671 * | `new Date('')` | `false` | `false` | 1672 * | `new Date(1488370835081)` | `true` | `true` | 1673 * | `new Date(NaN)` | `false` | `false` | 1674 * | `'2016-01-01'` | `TypeError` | `false` | 1675 * | `''` | `TypeError` | `false` | 1676 * | `1488370835081` | `TypeError` | `true` | 1677 * | `NaN` | `TypeError` | `false` | 1678 * 1679 * We introduce this change to make *date-fns* consistent with ECMAScript behavior 1680 * that try to coerce arguments to the expected type 1681 * (which is also the case with other *date-fns* functions). 1682 * 1683 * @param {*} date - the date to check 1684 * @returns {Boolean} the date is valid 1685 * @throws {TypeError} 1 argument required 1686 * 1687 * @example 1688 * // For the valid date: 1689 * var result = isValid(new Date(2014, 1, 31)) 1690 * //=> true 1691 * 1692 * @example 1693 * // For the value, convertable into a date: 1694 * var result = isValid(1393804800000) 1695 * //=> true 1696 * 1697 * @example 1698 * // For the invalid date: 1699 * var result = isValid(new Date('')) 1700 * //=> false 1701 */ 1702 1703 function isValid(dirtyDate) { 1704 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 1705 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 1706 return !isNaN(date); 1707 } 1708 1709 /***/ 1710 }), 1711 /* 16 */ 1712 /***/ (function (module, exports, __webpack_require__) { 1713 1714 var anObject = __webpack_require__(14); 1715 var IE8_DOM_DEFINE = __webpack_require__(98); 1716 var toPrimitive = __webpack_require__(67); 1717 var dP = Object.defineProperty; 1718 1719 exports.f = __webpack_require__(17) ? Object.defineProperty : function defineProperty(O, P, Attributes) { 1720 anObject(O); 1721 P = toPrimitive(P, true); 1722 anObject(Attributes); 1723 if (IE8_DOM_DEFINE) try { 1724 return dP(O, P, Attributes); 1725 } catch (e) { /* empty */ 1726 } 1727 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 1728 if ('value' in Attributes) O[P] = Attributes.value; 1729 return O; 1730 }; 1731 1732 1733 /***/ 1734 }), 1735 /* 17 */ 1736 /***/ (function (module, exports, __webpack_require__) { 1737 1738// Thank's IE8 for his funny defineProperty 1739 module.exports = !__webpack_require__(30)(function () { 1740 return Object.defineProperty({}, 'a', { 1741 get: function () { 1742 return 7; 1743 } 1744 }).a != 7; 1745 }); 1746 1747 1748 /***/ 1749 }), 1750 /* 18 */
vendor: 4,599 bytes, lines 1751-1847
1751 /***/ (function (module, exports) { 1752 1753// shim for using process in browser 1754 var process = module.exports = {}; 1755 1756// cached from whatever global is present so that test runners that stub it 1757// don't break things. But we need to wrap it in a try catch in case it is 1758// wrapped in strict mode code which doesn't define any globals. It's inside a 1759// function because try/catches deoptimize in certain engines. 1760 1761 var cachedSetTimeout; 1762 var cachedClearTimeout; 1763 1764 function defaultSetTimout() { 1765 throw new Error('setTimeout has not been defined'); 1766 } 1767 1768 function defaultClearTimeout() { 1769 throw new Error('clearTimeout has not been defined'); 1770 } 1771 1772 (function () { 1773 try { 1774 if (typeof setTimeout === 'function') { 1775 cachedSetTimeout = setTimeout; 1776 } else { 1777 cachedSetTimeout = defaultSetTimout; 1778 } 1779 } catch (e) { 1780 cachedSetTimeout = defaultSetTimout; 1781 } 1782 try { 1783 if (typeof clearTimeout === 'function') { 1784 cachedClearTimeout = clearTimeout; 1785 } else { 1786 cachedClearTimeout = defaultClearTimeout; 1787 } 1788 } catch (e) { 1789 cachedClearTimeout = defaultClearTimeout; 1790 } 1791 }()) 1792 1793 function runTimeout(fun) { 1794 if (cachedSetTimeout === setTimeout) { 1795 //normal enviroments in sane situations 1796 return setTimeout(fun, 0); 1797 } 1798 // if setTimeout wasn't available but was latter defined 1799 if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { 1800 cachedSetTimeout = setTimeout; 1801 return setTimeout(fun, 0); 1802 } 1803 try { 1804 // when when somebody has screwed with setTimeout but no I.E. maddness 1805 return cachedSetTimeout(fun, 0); 1806 } catch (e) { 1807 try { 1808 // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally 1809 return cachedSetTimeout.call(null, fun, 0); 1810 } catch (e) { 1811 // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error 1812 return cachedSetTimeout.call(this, fun, 0); 1813 } 1814 } 1815 1816 1817 } 1818 1819 function runClearTimeout(marker) { 1820 if (cachedClearTimeout === clearTimeout) { 1821 //normal enviroments in sane situations 1822 return clearTimeout(marker); 1823 } 1824 // if clearTimeout wasn't available but was latter defined 1825 if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { 1826 cachedClearTimeout = clearTimeout; 1827 return clearTimeout(marker); 1828 } 1829 try { 1830 // when when somebody has screwed with setTimeout but no I.E. maddness 1831 return cachedClearTimeout(marker); 1832 } catch (e) { 1833 try { 1834 // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally 1835 return cachedClearTimeout.call(null, marker); 1836 } catch (e) { 1837 // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. 1838 // Some versions of I.E. have different rules for clearTimeout vs setTimeout 1839 return cachedClearTimeout.call(this, marker); 1840 } 1841 } 1842 1843 1844 } 1845 1846 var queue = []; 1847 var draining = false;
vendor: 9,268 bytes, lines 1848-2074
1848 var currentQueue; 1849 var queueIndex = -1; 1850 1851 function cleanUpNextTick() { 1852 if (!draining || !currentQueue) { 1853 return; 1854 } 1855 draining = false; 1856 if (currentQueue.length) { 1857 queue = currentQueue.concat(queue); 1858 } else { 1859 queueIndex = -1; 1860 } 1861 if (queue.length) { 1862 drainQueue(); 1863 } 1864 } 1865 1866 function drainQueue() { 1867 if (draining) { 1868 return; 1869 } 1870 var timeout = runTimeout(cleanUpNextTick); 1871 draining = true; 1872 1873 var len = queue.length; 1874 while (len) { 1875 currentQueue = queue; 1876 queue = []; 1877 while (++queueIndex < len) { 1878 if (currentQueue) { 1879 currentQueue[queueIndex].run(); 1880 } 1881 } 1882 queueIndex = -1; 1883 len = queue.length; 1884 } 1885 currentQueue = null; 1886 draining = false; 1887 runClearTimeout(timeout); 1888 } 1889 1890 process.nextTick = function (fun) { 1891 var args = new Array(arguments.length - 1); 1892 if (arguments.length > 1) { 1893 for (var i = 1; i < arguments.length; i++) { 1894 args[i - 1] = arguments[i]; 1895 } 1896 } 1897 queue.push(new Item(fun, args)); 1898 if (queue.length === 1 && !draining) { 1899 runTimeout(drainQueue); 1900 } 1901 }; 1902 1903// v8 likes predictible objects 1904 function Item(fun, array) { 1905 this.fun = fun; 1906 this.array = array; 1907 } 1908 1909 Item.prototype.run = function () { 1910 this.fun.apply(null, this.array); 1911 }; 1912 process.title = 'browser'; 1913 process.browser = true; 1914 process.env = {}; 1915 process.argv = []; 1916 process.version = ''; // empty string to avoid regexp issues 1917 process.versions = {}; 1918 1919 function noop() { 1920 } 1921 1922 process.on = noop; 1923 process.addListener = noop; 1924 process.once = noop; 1925 process.off = noop; 1926 process.removeListener = noop; 1927 process.removeAllListeners = noop; 1928 process.emit = noop; 1929 process.prependListener = noop; 1930 process.prependOnceListener = noop; 1931 1932 process.listeners = function (name) { 1933 return [] 1934 } 1935 1936 process.binding = function (name) { 1937 throw new Error('process.binding is not supported'); 1938 }; 1939 1940 process.cwd = function () { 1941 return '/' 1942 }; 1943 process.chdir = function (dir) { 1944 throw new Error('process.chdir is not supported'); 1945 }; 1946 process.umask = function () { 1947 return 0; 1948 }; 1949 1950 1951 /***/ 1952 }), 1953 /* 19 */ 1954 /***/ (function (module, __webpack_exports__, __webpack_require__) { 1955 1956 "use strict"; 1957 /* harmony export (immutable) */ 1958 __webpack_exports__["a"] = getTimezoneOffsetInMilliseconds; 1959 var MILLISECONDS_IN_MINUTE = 60000; 1960 1961 function getDateMillisecondsPart(date) { 1962 return date.getTime() % MILLISECONDS_IN_MINUTE; 1963 } 1964 1965 /** 1966 * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds. 1967 * They usually appear for dates that denote time before the timezones were introduced 1968 * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891 1969 * and GMT+01:00:00 after that date) 1970 * 1971 * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above, 1972 * which would lead to incorrect calculations. 1973 * 1974 * This function returns the timezone offset in milliseconds that takes seconds in account. 1975 */ 1976 1977 1978 function getTimezoneOffsetInMilliseconds(dirtyDate) { 1979 var date = new Date(dirtyDate.getTime()); 1980 var baseTimezoneOffset = Math.ceil(date.getTimezoneOffset()); 1981 date.setSeconds(0, 0); 1982 var hasNegativeUTCOffset = baseTimezoneOffset > 0; 1983 var millisecondsPartOfTimezoneOffset = hasNegativeUTCOffset ? (MILLISECONDS_IN_MINUTE + getDateMillisecondsPart(date)) % MILLISECONDS_IN_MINUTE : getDateMillisecondsPart(date); 1984 return baseTimezoneOffset * MILLISECONDS_IN_MINUTE + millisecondsPartOfTimezoneOffset; 1985 } 1986 1987 /***/ 1988 }), 1989 /* 20 */ 1990 /***/ (function (module, exports) { 1991 1992 module.exports = function (it) { 1993 return typeof it === 'object' ? it !== null : typeof it === 'function'; 1994 }; 1995 1996 1997 /***/ 1998 }), 1999 /* 21 */ 2000 /***/ (function (module, __webpack_exports__, __webpack_require__) { 2001 2002 "use strict"; 2003 /* harmony export (immutable) */ 2004 __webpack_exports__["a"] = addDays; 2005 /* harmony import */ 2006 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 2007 /* harmony import */ 2008 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 2009 /* harmony import */ 2010 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 2011 2012 2013 /** 2014 * @name addDays 2015 * @category Day Helpers 2016 * @summary Add the specified number of days to the given date. 2017 * 2018 * @description 2019 * Add the specified number of days to the given date. 2020 * 2021 * ### v2.0.0 breaking changes: 2022 * 2023 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 2024 * 2025 * @param {Date|Number} date - the date to be changed 2026 * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 2027 * @returns {Date} the new date with the days added 2028 * @throws {TypeError} 2 arguments required 2029 * 2030 * @example 2031 * // Add 10 days to 1 September 2014: 2032 * var result = addDays(new Date(2014, 8, 1), 10) 2033 * //=> Thu Sep 11 2014 00:00:00 2034 */ 2035 2036 function addDays(dirtyDate, dirtyAmount) { 2037 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 2038 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 2039 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 2040 2041 if (isNaN(amount)) { 2042 return new Date(NaN); 2043 } 2044 2045 if (!amount) { 2046 // If 0 days, no-op to avoid changing times in the hour before end of DST 2047 return date; 2048 } 2049 2050 date.setDate(date.getDate() + amount); 2051 return date; 2052 } 2053 2054 /***/ 2055 }), 2056 /* 22 */ 2057 /***/ (function (module, __webpack_exports__, __webpack_require__) { 2058 2059 "use strict"; 2060 /* harmony export (immutable) */ 2061 __webpack_exports__["a"] = startOfWeek; 2062 /* harmony import */ 2063 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 2064 /* harmony import */ 2065 var __WEBPACK_IMPORTED_MODULE_1__lib_toInteger_index_js__ = __webpack_require__(6); 2066 /* harmony import */ 2067 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 2068 2069 2070 /** 2071 * @name startOfWeek 2072 * @category Week Helpers 2073 * @summary Return the start of a week for the given date. 2074 *
2075 * @description 2076 * Return the start of a week for the given date. 2077 * The result will be in the local timezone. 2078 * 2079 * ### v2.0.0 breaking changes: 2080 * 2081 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 2082 * 2083 * @param {Date|Number} date - the original date 2084 * @param {Object} [options] - an object with options. 2085 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 2086 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 2087 * @returns {Date} the start of a week 2088 * @throws {TypeError} 1 argument required 2089 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 2090 * 2091 * @example 2092 * // The start of a week for 2 September 2014 11:55:00: 2093 * var result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) 2094 * //=> Sun Aug 31 2014 00:00:00 2095 * 2096 * @example 2097 * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: 2098 * var result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) 2099 * //=> Mon Sep 01 2014 00:00:00 2100 */ 2101 2102 function startOfWeek(dirtyDate, dirtyOptions) { 2103 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 2104 var options = dirtyOptions || {}; 2105 var locale = options.locale; 2106 var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; 2107 var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : __WEBPACK_IMPORTED_MODULE_1__lib_toInteger_index_js__["a" /* default */](localeWeekStartsOn); 2108 var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : __WEBPACK_IMPORTED_MODULE_1__lib_toInteger_index_js__["a" /* default */](options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 2109 2110 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 2111 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 2112 } 2113 2114 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 2115 var day = date.getDay(); 2116 var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; 2117 date.setDate(date.getDate() - diff); 2118 date.setHours(0, 0, 0, 0); 2119 return date; 2120 } 2121 2122 /***/ 2123 }), 2124 /* 23 */ 2125 /***/ (function (module, exports, __webpack_require__) { 2126 2127 var dP = __webpack_require__(16); 2128 var createDesc = __webpack_require__(39); 2129 module.exports = __webpack_require__(17) ? function (object, key, value) { 2130 return dP.f(object, key, createDesc(1, value)); 2131 } : function (object, key, value) { 2132 object[key] = value; 2133 return object; 2134 }; 2135 2136 2137 /***/ 2138 }), 2139 /* 24 */ 2140 /***/ (function (module, exports) { 2141 2142 var hasOwnProperty = {}.hasOwnProperty; 2143 module.exports = function (it, key) { 2144 return hasOwnProperty.call(it, key); 2145 }; 2146 2147 2148 /***/ 2149 }), 2150 /* 25 */ 2151 /***/ (function (module, __webpack_exports__, __webpack_require__) { 2152 2153 "use strict"; 2154 /* harmony export (immutable) */ 2155 __webpack_exports__["a"] = startOfISOWeek; 2156 /* harmony import */ 2157 var __WEBPACK_IMPORTED_MODULE_0__startOfWeek_index_js__ = __webpack_require__(22); 2158 /* harmony import */ 2159 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 2160 2161 2162 /** 2163 * @name startOfISOWeek 2164 * @category ISO Week Helpers 2165 * @summary Return the start of an ISO week for the given date. 2166 *
2167 * @description 2168 * Return the start of an ISO week for the given date. 2169 * The result will be in the local timezone. 2170 * 2171 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 2172 * 2173 * ### v2.0.0 breaking changes: 2174 * 2175 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 2176 * 2177 * @param {Date|Number} date - the original date 2178 * @returns {Date} the start of an ISO week 2179 * @throws {TypeError} 1 argument required 2180 * 2181 * @example 2182 * // The start of an ISO week for 2 September 2014 11:55:00: 2183 * var result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) 2184 * //=> Mon Sep 01 2014 00:00:00 2185 */ 2186 2187 function startOfISOWeek(dirtyDate) { 2188 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 2189 return __WEBPACK_IMPORTED_MODULE_0__startOfWeek_index_js__["a" /* default */](dirtyDate, { 2190 weekStartsOn: 1 2191 }); 2192 } 2193 2194 /***/ 2195 }), 2196 /* 26 */ 2197 /***/ (function (module, __webpack_exports__, __webpack_require__) { 2198 2199 "use strict"; 2200 /* harmony export (immutable) */ 2201 __webpack_exports__["a"] = differenceInCalendarDays; 2202 /* harmony import */ 2203 var __WEBPACK_IMPORTED_MODULE_0__lib_getTimezoneOffsetInMilliseconds_index_js__ = __webpack_require__(19); 2204 /* harmony import */ 2205 var __WEBPACK_IMPORTED_MODULE_1__startOfDay_index_js__ = __webpack_require__(57); 2206 /* harmony import */ 2207 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 2208 2209 2210 var MILLISECONDS_IN_DAY = 86400000; 2211 2212 /** 2213 * @name differenceInCalendarDays 2214 * @category Day Helpers 2215 * @summary Get the number of calendar days between the given dates. 2216 * 2217 * @description 2218 * Get the number of calendar days between the given dates. This means that the times are removed 2219 * from the dates and then the difference in days is calculated. 2220 * 2221 * ### v2.0.0 breaking changes: 2222 * 2223 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 2224 * 2225 * @param {Date|Number} dateLeft - the later date 2226 * @param {Date|Number} dateRight - the earlier date 2227 * @returns {Number} the number of calendar days 2228 * @throws {TypeError} 2 arguments required 2229 * 2230 * @example 2231 * // How many calendar days are between 2232 * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? 2233 * var result = differenceInCalendarDays( 2234 * new Date(2012, 6, 2, 0, 0), 2235 * new Date(2011, 6, 2, 23, 0) 2236 * ) 2237 * //=> 366 2238 * // How many calendar days are between 2239 * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? 2240 * var result = differenceInCalendarDays( 2241 * new Date(2011, 6, 3, 0, 1), 2242 * new Date(2011, 6, 2, 23, 59) 2243 * ) 2244 * //=> 1 2245 */ 2246 2247 function differenceInCalendarDays(dirtyDateLeft, dirtyDateRight) { 2248 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 2249 var startOfDayLeft = __WEBPACK_IMPORTED_MODULE_1__startOfDay_index_js__["a" /* default */](dirtyDateLeft); 2250 var startOfDayRight = __WEBPACK_IMPORTED_MODULE_1__startOfDay_index_js__["a" /* default */](dirtyDateRight); 2251 var timestampLeft = startOfDayLeft.getTime() - __WEBPACK_IMPORTED_MODULE_0__lib_getTimezoneOffsetInMilliseconds_index_js__["a" /* default */](startOfDayLeft); 2252 var timestampRight = startOfDayRight.getTime() - __WEBPACK_IMPORTED_MODULE_0__lib_getTimezoneOffsetInMilliseconds_index_js__["a" /* default */](startOfDayRight); // Round the number of days to the nearest integer 2253 // because the number of milliseconds in a day is not constant 2254 // (e.g. it's different in the day of the daylight saving time clock shift) 2255 2256 return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_DAY); 2257 } 2258 2259 /***/ 2260 }), 2261 /* 27 */ 2262 /***/ (function (module, __webpack_exports__, __webpack_require__) { 2263 2264 "use strict"; 2265 /* harmony export (immutable) */ 2266 __webpack_exports__["a"] = compareAsc; 2267 /* harmony import */ 2268 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 2269 /* harmony import */ 2270 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 2271 2272 2273 /** 2274 * @name compareAsc 2275 * @category Common Helpers 2276 * @summary Compare the two dates and return -1, 0 or 1. 2277 *
2278 * @description 2279 * Compare the two dates and return 1 if the first date is after the second, 2280 * -1 if the first date is before the second or 0 if dates are equal. 2281 * 2282 * ### v2.0.0 breaking changes: 2283 * 2284 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 2285 * 2286 * @param {Date|Number} dateLeft - the first date to compare 2287 * @param {Date|Number} dateRight - the second date to compare 2288 * @returns {Number} the result of the comparison 2289 * @throws {TypeError} 2 arguments required 2290 * 2291 * @example 2292 * // Compare 11 February 1987 and 10 July 1989: 2293 * var result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10)) 2294 * //=> -1 2295 * 2296 * @example 2297 * // Sort the array of dates: 2298 * var result = [ 2299 * new Date(1995, 6, 2), 2300 * new Date(1987, 1, 11), 2301 * new Date(1989, 6, 10) 2302 * ].sort(compareAsc) 2303 * //=> [ 2304 * // Wed Feb 11 1987 00:00:00, 2305 * // Mon Jul 10 1989 00:00:00, 2306 * // Sun Jul 02 1995 00:00:00 2307 * // ] 2308 */ 2309 2310 function compareAsc(dirtyDateLeft, dirtyDateRight) { 2311 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 2312 var dateLeft = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateLeft); 2313 var dateRight = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateRight); 2314 var diff = dateLeft.getTime() - dateRight.getTime(); 2315 2316 if (diff < 0) { 2317 return -1; 2318 } else if (diff > 0) { 2319 return 1; // Return 0 if diff is 0; return NaN if diff is NaN 2320 } else { 2321 return diff; 2322 } 2323 } 2324 2325 /***/ 2326 }), 2327 /* 28 */ 2328 /***/ (function (module, __webpack_exports__, __webpack_require__) { 2329 2330 "use strict"; 2331 /* harmony import */ 2332 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(48); 2333 /* harmony import */ 2334 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(339); 2335 /* harmony import */ 2336 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(35); 2337 /* harmony import */ 2338 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(36); 2339 /* harmony import */ 2340 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(37); 2341 2342 2343 /** 2344 * @type {Locale} 2345 * @category Locales 2346 * @summary English locale (United States). 2347 * @language English 2348 * @iso-639-2 eng 2349 * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp} 2350 * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss} 2351 */ 2352 2353 var locale = { 2354 code: 'en-US', 2355 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 2356 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 2357 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 2358 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 2359 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 2360 options: { 2361 weekStartsOn: 0 2362 /* Sunday */ 2363 , 2364 firstWeekContainsDate: 1 2365 } 2366 }; 2367 /* harmony default export */ 2368 __webpack_exports__["a"] = (locale); 2369 2370 /***/ 2371 }), 2372 /* 29 */ 2373 /***/ (function (module, exports, __webpack_require__) { 2374
vendor: 27,825 bytes, lines 2375-3002
2375// optional / simple context binding 2376 var aFunction = __webpack_require__(51); 2377 module.exports = function (fn, that, length) { 2378 aFunction(fn); 2379 if (that === undefined) return fn; 2380 switch (length) { 2381 case 1: 2382 return function (a) { 2383 return fn.call(that, a); 2384 }; 2385 case 2: 2386 return function (a, b) { 2387 return fn.call(that, a, b); 2388 }; 2389 case 3: 2390 return function (a, b, c) { 2391 return fn.call(that, a, b, c); 2392 }; 2393 } 2394 return function (/* ...args */) { 2395 return fn.apply(that, arguments); 2396 }; 2397 }; 2398 2399 2400 /***/ 2401 }), 2402 /* 30 */ 2403 /***/ (function (module, exports) { 2404 2405 module.exports = function (exec) { 2406 try { 2407 return !!exec(); 2408 } catch (e) { 2409 return true; 2410 } 2411 }; 2412 2413 2414 /***/ 2415 }), 2416 /* 31 */ 2417 /***/ (function (module, exports) { 2418 2419 module.exports = {}; 2420 2421 2422 /***/ 2423 }), 2424 /* 32 */ 2425 /***/ (function (module, exports, __webpack_require__) { 2426 2427// to indexed object, toObject with fallback for non-array-like ES3 strings 2428 var IObject = __webpack_require__(104); 2429 var defined = __webpack_require__(70); 2430 module.exports = function (it) { 2431 return IObject(defined(it)); 2432 }; 2433 2434 2435 /***/ 2436 }), 2437 /* 33 */ 2438 /***/ (function (module, exports, __webpack_require__) { 2439 2440// 7.1.13 ToObject(argument) 2441 var defined = __webpack_require__(70); 2442 module.exports = function (it) { 2443 return Object(defined(it)); 2444 }; 2445 2446 2447 /***/ 2448 }), 2449 /* 34 */ 2450 /***/ (function (module, __webpack_exports__, __webpack_require__) { 2451 2452 "use strict"; 2453 /* harmony export (immutable) */ 2454 __webpack_exports__["a"] = getISOWeekYear; 2455 /* harmony import */ 2456 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 2457 /* harmony import */ 2458 var __WEBPACK_IMPORTED_MODULE_1__startOfISOWeek_index_js__ = __webpack_require__(25); 2459 /* harmony import */ 2460 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 2461 2462 2463 /** 2464 * @name getISOWeekYear 2465 * @category ISO Week-Numbering Year Helpers 2466 * @summary Get the ISO week-numbering year of the given date. 2467 * 2468 * @description 2469 * Get the ISO week-numbering year of the given date, 2470 * which always starts 3 days before the year's first Thursday. 2471 * 2472 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 2473 * 2474 * ### v2.0.0 breaking changes: 2475 * 2476 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 2477 * 2478 * - The function was renamed from `getISOYear` to `getISOWeekYear`. 2479 * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). 2480 * This change makes the name consistent with 2481 * locale-dependent week-numbering year helpers, e.g., `getWeekYear`. 2482 * 2483 * @param {Date|Number} date - the given date 2484 * @returns {Number} the ISO week-numbering year 2485 * @throws {TypeError} 1 argument required 2486 * 2487 * @example 2488 * // Which ISO-week numbering year is 2 January 2005? 2489 * var result = getISOWeekYear(new Date(2005, 0, 2)) 2490 * //=> 2004 2491 */ 2492 2493 function getISOWeekYear(dirtyDate) { 2494 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 2495 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 2496 var year = date.getFullYear(); 2497 var fourthOfJanuaryOfNextYear = new Date(0); 2498 fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); 2499 fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); 2500 var startOfNextYear = __WEBPACK_IMPORTED_MODULE_1__startOfISOWeek_index_js__["a" /* default */](fourthOfJanuaryOfNextYear); 2501 var fourthOfJanuaryOfThisYear = new Date(0); 2502 fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4); 2503 fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0); 2504 var startOfThisYear = __WEBPACK_IMPORTED_MODULE_1__startOfISOWeek_index_js__["a" /* default */](fourthOfJanuaryOfThisYear); 2505 2506 if (date.getTime() >= startOfNextYear.getTime()) { 2507 return year + 1; 2508 } else if (date.getTime() >= startOfThisYear.getTime()) { 2509 return year; 2510 } else { 2511 return year - 1; 2512 } 2513 } 2514 2515 /***/ 2516 }), 2517 /* 35 */ 2518 /***/ (function (module, __webpack_exports__, __webpack_require__) { 2519 2520 "use strict"; 2521 /* harmony export (immutable) */ 2522 __webpack_exports__["a"] = formatRelative; 2523 var formatRelativeLocale = { 2524 lastWeek: "'last' eeee 'at' p", 2525 yesterday: "'yesterday at' p", 2526 today: "'today at' p", 2527 tomorrow: "'tomorrow at' p", 2528 nextWeek: "eeee 'at' p", 2529 other: 'P' 2530 }; 2531 2532 function formatRelative(token, _date, _baseDate, _options) { 2533 return formatRelativeLocale[token]; 2534 } 2535 2536 /***/ 2537 }), 2538 /* 36 */ 2539 /***/ (function (module, __webpack_exports__, __webpack_require__) { 2540 2541 "use strict"; 2542 /* harmony import */ 2543 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 2544 2545 var eraValues = { 2546 narrow: ['B', 'A'], 2547 abbreviated: ['BC', 'AD'], 2548 wide: ['Before Christ', 'Anno Domini'] 2549 }; 2550 var quarterValues = { 2551 narrow: ['1', '2', '3', '4'], 2552 abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], 2553 wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter'] // Note: in English, the names of days of the week and months are capitalized. 2554 // If you are making a new locale based on this one, check if the same is true for the language you're working on. 2555 // Generally, formatted dates should look like they are in the middle of a sentence, 2556 // e.g. in Spanish language the weekdays and months should be in the lowercase. 2557 2558 }; 2559 var monthValues = { 2560 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], 2561 abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], 2562 wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] 2563 }; 2564 var dayValues = { 2565 narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'], 2566 short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'], 2567 abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], 2568 wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] 2569 }; 2570 var dayPeriodValues = { 2571 narrow: { 2572 am: 'a', 2573 pm: 'p', 2574 midnight: 'mi', 2575 noon: 'n', 2576 morning: 'morning', 2577 afternoon: 'afternoon', 2578 evening: 'evening', 2579 night: 'night' 2580 }, 2581 abbreviated: { 2582 am: 'AM', 2583 pm: 'PM', 2584 midnight: 'midnight', 2585 noon: 'noon', 2586 morning: 'morning', 2587 afternoon: 'afternoon', 2588 evening: 'evening', 2589 night: 'night' 2590 }, 2591 wide: { 2592 am: 'a.m.', 2593 pm: 'p.m.', 2594 midnight: 'midnight', 2595 noon: 'noon', 2596 morning: 'morning', 2597 afternoon: 'afternoon', 2598 evening: 'evening', 2599 night: 'night' 2600 } 2601 }; 2602 var formattingDayPeriodValues = { 2603 narrow: { 2604 am: 'a', 2605 pm: 'p', 2606 midnight: 'mi', 2607 noon: 'n', 2608 morning: 'in the morning', 2609 afternoon: 'in the afternoon', 2610 evening: 'in the evening', 2611 night: 'at night' 2612 }, 2613 abbreviated: { 2614 am: 'AM', 2615 pm: 'PM', 2616 midnight: 'midnight', 2617 noon: 'noon', 2618 morning: 'in the morning', 2619 afternoon: 'in the afternoon', 2620 evening: 'in the evening', 2621 night: 'at night' 2622 }, 2623 wide: { 2624 am: 'a.m.', 2625 pm: 'p.m.', 2626 midnight: 'midnight', 2627 noon: 'noon', 2628 morning: 'in the morning', 2629 afternoon: 'in the afternoon', 2630 evening: 'in the evening', 2631 night: 'at night' 2632 } 2633 }; 2634 2635 function ordinalNumber(dirtyNumber, _dirtyOptions) { 2636 var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, 2637 // if they are different for different grammatical genders, 2638 // use `options.unit`: 2639 // 2640 // var options = dirtyOptions || {} 2641 // var unit = String(options.unit) 2642 // 2643 // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', 2644 // 'day', 'hour', 'minute', 'second' 2645 2646 var rem100 = number % 100; 2647 2648 if (rem100 > 20 || rem100 < 10) { 2649 switch (rem100 % 10) { 2650 case 1: 2651 return number + 'st'; 2652 2653 case 2: 2654 return number + 'nd'; 2655 2656 case 3: 2657 return number + 'rd'; 2658 } 2659 } 2660 2661 return number + 'th'; 2662 } 2663 2664 var localize = { 2665 ordinalNumber: ordinalNumber, 2666 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 2667 values: eraValues, 2668 defaultWidth: 'wide' 2669 }), 2670 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 2671 values: quarterValues, 2672 defaultWidth: 'wide', 2673 argumentCallback: function (quarter) { 2674 return Number(quarter) - 1; 2675 } 2676 }), 2677 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 2678 values: monthValues, 2679 defaultWidth: 'wide' 2680 }), 2681 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 2682 values: dayValues, 2683 defaultWidth: 'wide' 2684 }), 2685 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 2686 values: dayPeriodValues, 2687 defaultWidth: 'wide', 2688 formattingValues: formattingDayPeriodValues, 2689 defaultFormattingWidth: 'wide' 2690 }) 2691 }; 2692 /* harmony default export */ 2693 __webpack_exports__["a"] = (localize); 2694 2695 /***/ 2696 }), 2697 /* 37 */ 2698 /***/ (function (module, __webpack_exports__, __webpack_require__) { 2699 2700 "use strict"; 2701 /* harmony import */ 2702 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 2703 /* harmony import */ 2704 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 2705 2706 2707 var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; 2708 var parseOrdinalNumberPattern = /\d+/i; 2709 var matchEraPatterns = { 2710 narrow: /^(b|a)/i, 2711 abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, 2712 wide: /^(before christ|before common era|anno domini|common era)/i 2713 }; 2714 var parseEraPatterns = { 2715 any: [/^b/i, /^(a|c)/i] 2716 }; 2717 var matchQuarterPatterns = { 2718 narrow: /^[1234]/i, 2719 abbreviated: /^q[1234]/i, 2720 wide: /^[1234](th|st|nd|rd)? quarter/i 2721 }; 2722 var parseQuarterPatterns = { 2723 any: [/1/i, /2/i, /3/i, /4/i] 2724 }; 2725 var matchMonthPatterns = { 2726 narrow: /^[jfmasond]/i, 2727 abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, 2728 wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i 2729 }; 2730 var parseMonthPatterns = { 2731 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 2732 any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] 2733 }; 2734 var matchDayPatterns = { 2735 narrow: /^[smtwf]/i, 2736 short: /^(su|mo|tu|we|th|fr|sa)/i, 2737 abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, 2738 wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i 2739 }; 2740 var parseDayPatterns = { 2741 narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], 2742 any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] 2743 }; 2744 var matchDayPeriodPatterns = { 2745 narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, 2746 any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i 2747 }; 2748 var parseDayPeriodPatterns = { 2749 any: { 2750 am: /^a/i, 2751 pm: /^p/i, 2752 midnight: /^mi/i, 2753 noon: /^no/i, 2754 morning: /morning/i, 2755 afternoon: /afternoon/i, 2756 evening: /evening/i, 2757 night: /night/i 2758 } 2759 }; 2760 var match = { 2761 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 2762 matchPattern: matchOrdinalNumberPattern, 2763 parsePattern: parseOrdinalNumberPattern, 2764 valueCallback: function (value) { 2765 return parseInt(value, 10); 2766 } 2767 }), 2768 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 2769 matchPatterns: matchEraPatterns, 2770 defaultMatchWidth: 'wide', 2771 parsePatterns: parseEraPatterns, 2772 defaultParseWidth: 'any' 2773 }), 2774 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 2775 matchPatterns: matchQuarterPatterns, 2776 defaultMatchWidth: 'wide', 2777 parsePatterns: parseQuarterPatterns, 2778 defaultParseWidth: 'any', 2779 valueCallback: function (index) { 2780 return index + 1; 2781 } 2782 }), 2783 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 2784 matchPatterns: matchMonthPatterns, 2785 defaultMatchWidth: 'wide', 2786 parsePatterns: parseMonthPatterns, 2787 defaultParseWidth: 'any' 2788 }), 2789 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 2790 matchPatterns: matchDayPatterns, 2791 defaultMatchWidth: 'wide', 2792 parsePatterns: parseDayPatterns, 2793 defaultParseWidth: 'any' 2794 }), 2795 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 2796 matchPatterns: matchDayPeriodPatterns, 2797 defaultMatchWidth: 'any', 2798 parsePatterns: parseDayPeriodPatterns, 2799 defaultParseWidth: 'any' 2800 }) 2801 }; 2802 /* harmony default export */ 2803 __webpack_exports__["a"] = (match); 2804 2805 /***/ 2806 }), 2807 /* 38 */ 2808 /***/ (function (module, __webpack_exports__, __webpack_require__) { 2809 2810 "use strict"; 2811 /* harmony export (immutable) */ 2812 __webpack_exports__["a"] = addLeadingZeros; 2813 2814 function addLeadingZeros(number, targetLength) { 2815 var sign = number < 0 ? '-' : ''; 2816 var output = Math.abs(number).toString(); 2817 2818 while (output.length < targetLength) { 2819 output = '0' + output; 2820 } 2821 2822 return sign + output; 2823 } 2824 2825 /***/ 2826 }), 2827 /* 39 */ 2828 /***/ (function (module, exports) { 2829 2830 module.exports = function (bitmap, value) { 2831 return { 2832 enumerable: !(bitmap & 1), 2833 configurable: !(bitmap & 2), 2834 writable: !(bitmap & 4), 2835 value: value 2836 }; 2837 }; 2838 2839 2840 /***/ 2841 }), 2842 /* 40 */ 2843 /***/ (function (module, exports, __webpack_require__) { 2844 2845 "use strict"; 2846 2847 var $at = __webpack_require__(210)(true); 2848 2849// 21.1.3.27 String.prototype[@@iterator]() 2850 __webpack_require__(101)(String, 'String', function (iterated) { 2851 this._t = String(iterated); // target 2852 this._i = 0; // next index 2853// 21.1.5.2.1 %StringIteratorPrototype%.next() 2854 }, function () { 2855 var O = this._t; 2856 var index = this._i; 2857 var point; 2858 if (index >= O.length) return {value: undefined, done: true}; 2859 point = $at(O, index); 2860 this._i += point.length; 2861 return {value: point, done: false}; 2862 }); 2863 2864 2865 /***/ 2866 }), 2867 /* 41 */ 2868 /***/ (function (module, exports) { 2869 2870 module.exports = true; 2871 2872 2873 /***/ 2874 }), 2875 /* 42 */ 2876 /***/ (function (module, exports, __webpack_require__) { 2877 2878// 19.1.2.14 / 15.2.3.14 Object.keys(O) 2879 var $keys = __webpack_require__(103); 2880 var enumBugKeys = __webpack_require__(75); 2881 2882 module.exports = Object.keys || function keys(O) { 2883 return $keys(O, enumBugKeys); 2884 }; 2885 2886 2887 /***/ 2888 }), 2889 /* 43 */ 2890 /***/ (function (module, exports) { 2891 2892 var toString = {}.toString; 2893 2894 module.exports = function (it) { 2895 return toString.call(it).slice(8, -1); 2896 }; 2897 2898 2899 /***/ 2900 }), 2901 /* 44 */ 2902 /***/ (function (module, __webpack_exports__, __webpack_require__) { 2903 2904 "use strict"; 2905 /* harmony export (immutable) */ 2906 __webpack_exports__["a"] = addMonths; 2907 /* harmony import */ 2908 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 2909 /* harmony import */ 2910 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 2911 /* harmony import */ 2912 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 2913 2914 2915 /** 2916 * @name addMonths 2917 * @category Month Helpers 2918 * @summary Add the specified number of months to the given date. 2919 * 2920 * @description 2921 * Add the specified number of months to the given date. 2922 * 2923 * ### v2.0.0 breaking changes: 2924 * 2925 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 2926 * 2927 * @param {Date|Number} date - the date to be changed 2928 * @param {Number} amount - the amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 2929 * @returns {Date} the new date with the months added 2930 * @throws {TypeError} 2 arguments required 2931 * 2932 * @example 2933 * // Add 5 months to 1 September 2014: 2934 * var result = addMonths(new Date(2014, 8, 1), 5) 2935 * //=> Sun Feb 01 2015 00:00:00 2936 */ 2937 2938 function addMonths(dirtyDate, dirtyAmount) { 2939 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 2940 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 2941 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 2942 2943 if (isNaN(amount)) { 2944 return new Date(NaN); 2945 } 2946 2947 if (!amount) { 2948 // If 0 months, no-op to avoid changing times in the hour before end of DST 2949 return date; 2950 } 2951 2952 var dayOfMonth = date.getDate(); // The JS Date object supports date math by accepting out-of-bounds values for 2953 // month, day, etc. For example, new Date(2020, 1, 0) returns 31 Dec 2019 and 2954 // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we 2955 // want except that dates will wrap around the end of a month, meaning that 2956 // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So 2957 // we'll default to the end of the desired month by adding 1 to the desired 2958 // month and using a date of 0 to back up one day to the end of the desired 2959 // month. 2960 2961 var endOfDesiredMonth = new Date(date.getTime()); 2962 endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0); 2963 var daysInMonth = endOfDesiredMonth.getDate(); 2964 2965 if (dayOfMonth >= daysInMonth) { 2966 // If we're already at the end of the month, then this is the correct date 2967 // and we're done. 2968 return endOfDesiredMonth; 2969 } else { 2970 // Otherwise, we now know that setting the original day-of-month value won't 2971 // cause an overflow, so set the desired day-of-month. Note that we can't 2972 // just set the date of `endOfDesiredMonth` because that object may have had 2973 // its time changed in the unusual case where where a DST transition was on 2974 // the last day of the month and its local time was in the hour skipped or 2975 // repeated next to a DST transition. So we use `date` instead which is 2976 // guaranteed to still have the original time. 2977 date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth); 2978 return date; 2979 } 2980 } 2981 2982 /***/ 2983 }), 2984 /* 45 */ 2985 /***/ (function (module, __webpack_exports__, __webpack_require__) { 2986 2987 "use strict"; 2988 /* harmony export (immutable) */ 2989 __webpack_exports__["a"] = addMilliseconds; 2990 /* harmony import */ 2991 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 2992 /* harmony import */ 2993 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 2994 /* harmony import */ 2995 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 2996 2997 2998 /** 2999 * @name addMilliseconds 3000 * @category Millisecond Helpers 3001 * @summary Add the specified number of milliseconds to the given date. 3002 *
3003 * @description 3004 * Add the specified number of milliseconds to the given date. 3005 * 3006 * ### v2.0.0 breaking changes: 3007 * 3008 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 3009 * 3010 * @param {Date|Number} date - the date to be changed 3011 * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 3012 * @returns {Date} the new date with the milliseconds added 3013 * @throws {TypeError} 2 arguments required 3014 * 3015 * @example 3016 * // Add 750 milliseconds to 10 July 2014 12:45:30.000: 3017 * var result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) 3018 * //=> Thu Jul 10 2014 12:45:30.750 3019 */ 3020 3021 function addMilliseconds(dirtyDate, dirtyAmount) { 3022 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 3023 var timestamp = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate).getTime(); 3024 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 3025 return new Date(timestamp + amount); 3026 } 3027 3028 /***/ 3029 }), 3030 /* 46 */ 3031 /***/ (function (module, __webpack_exports__, __webpack_require__) { 3032 3033 "use strict"; 3034 /* harmony export (immutable) */ 3035 __webpack_exports__["a"] = startOfISOWeekYear; 3036 /* harmony import */ 3037 var __WEBPACK_IMPORTED_MODULE_0__getISOWeekYear_index_js__ = __webpack_require__(34); 3038 /* harmony import */ 3039 var __WEBPACK_IMPORTED_MODULE_1__startOfISOWeek_index_js__ = __webpack_require__(25); 3040 /* harmony import */ 3041 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 3042 3043 3044 /** 3045 * @name startOfISOWeekYear 3046 * @category ISO Week-Numbering Year Helpers 3047 * @summary Return the start of an ISO week-numbering year for the given date. 3048 * 3049 * @description 3050 * Return the start of an ISO week-numbering year, 3051 * which always starts 3 days before the year's first Thursday. 3052 * The result will be in the local timezone. 3053 * 3054 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 3055 * 3056 * ### v2.0.0 breaking changes: 3057 * 3058 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 3059 * 3060 * @param {Date|Number} date - the original date 3061 * @returns {Date} the start of an ISO week-numbering year 3062 * @throws {TypeError} 1 argument required 3063 * 3064 * @example 3065 * // The start of an ISO week-numbering year for 2 July 2005: 3066 * var result = startOfISOWeekYear(new Date(2005, 6, 2)) 3067 * //=> Mon Jan 03 2005 00:00:00 3068 */ 3069 3070 function startOfISOWeekYear(dirtyDate) { 3071 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 3072 var year = __WEBPACK_IMPORTED_MODULE_0__getISOWeekYear_index_js__["a" /* default */](dirtyDate); 3073 var fourthOfJanuary = new Date(0); 3074 fourthOfJanuary.setFullYear(year, 0, 4); 3075 fourthOfJanuary.setHours(0, 0, 0, 0); 3076 var date = __WEBPACK_IMPORTED_MODULE_1__startOfISOWeek_index_js__["a" /* default */](fourthOfJanuary); 3077 return date; 3078 } 3079 3080 /***/ 3081 }), 3082 /* 47 */ 3083 /***/ (function (module, __webpack_exports__, __webpack_require__) { 3084 3085 "use strict"; 3086 /* harmony export (immutable) */ 3087 __webpack_exports__["a"] = isSameDay; 3088 /* harmony import */ 3089 var __WEBPACK_IMPORTED_MODULE_0__startOfDay_index_js__ = __webpack_require__(57); 3090 /* harmony import */ 3091 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 3092 3093 3094 /** 3095 * @name isSameDay 3096 * @category Day Helpers 3097 * @summary Are the given dates in the same day? 3098 *
3099 * @description 3100 * Are the given dates in the same day? 3101 * 3102 * ### v2.0.0 breaking changes: 3103 * 3104 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 3105 * 3106 * @param {Date|Number} dateLeft - the first date to check 3107 * @param {Date|Number} dateRight - the second date to check 3108 * @returns {Boolean} the dates are in the same day 3109 * @throws {TypeError} 2 arguments required 3110 * 3111 * @example 3112 * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day? 3113 * var result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0)) 3114 * //=> true 3115 */ 3116 3117 function isSameDay(dirtyDateLeft, dirtyDateRight) { 3118 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 3119 var dateLeftStartOfDay = __WEBPACK_IMPORTED_MODULE_0__startOfDay_index_js__["a" /* default */](dirtyDateLeft); 3120 var dateRightStartOfDay = __WEBPACK_IMPORTED_MODULE_0__startOfDay_index_js__["a" /* default */](dirtyDateRight); 3121 return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime(); 3122 } 3123 3124 /***/ 3125 }), 3126 /* 48 */ 3127 /***/ (function (module, __webpack_exports__, __webpack_require__) { 3128 3129 "use strict"; 3130 /* harmony export (immutable) */ 3131 __webpack_exports__["a"] = formatDistance; 3132 var formatDistanceLocale = { 3133 lessThanXSeconds: { 3134 one: 'less than a second', 3135 other: 'less than {{count}} seconds' 3136 }, 3137 xSeconds: { 3138 one: '1 second', 3139 other: '{{count}} seconds' 3140 }, 3141 halfAMinute: 'half a minute', 3142 lessThanXMinutes: { 3143 one: 'less than a minute', 3144 other: 'less than {{count}} minutes' 3145 }, 3146 xMinutes: { 3147 one: '1 minute', 3148 other: '{{count}} minutes' 3149 }, 3150 aboutXHours: { 3151 one: 'about 1 hour', 3152 other: 'about {{count}} hours' 3153 }, 3154 xHours: { 3155 one: '1 hour', 3156 other: '{{count}} hours' 3157 }, 3158 xDays: { 3159 one: '1 day', 3160 other: '{{count}} days' 3161 }, 3162 aboutXWeeks: { 3163 one: 'about 1 week', 3164 other: 'about {{count}} weeks' 3165 }, 3166 xWeeks: { 3167 one: '1 week', 3168 other: '{{count}} weeks' 3169 }, 3170 aboutXMonths: { 3171 one: 'about 1 month', 3172 other: 'about {{count}} months' 3173 }, 3174 xMonths: { 3175 one: '1 month', 3176 other: '{{count}} months' 3177 }, 3178 aboutXYears: { 3179 one: 'about 1 year', 3180 other: 'about {{count}} years' 3181 }, 3182 xYears: { 3183 one: '1 year', 3184 other: '{{count}} years' 3185 }, 3186 overXYears: { 3187 one: 'over 1 year', 3188 other: 'over {{count}} years' 3189 }, 3190 almostXYears: { 3191 one: 'almost 1 year', 3192 other: 'almost {{count}} years' 3193 } 3194 }; 3195 3196 function formatDistance(token, count, options) { 3197 options = options || {}; 3198 var result; 3199 3200 if (typeof formatDistanceLocale[token] === 'string') { 3201 result = formatDistanceLocale[token]; 3202 } else if (count === 1) { 3203 result = formatDistanceLocale[token].one; 3204 } else { 3205 result = formatDistanceLocale[token].other.replace('{{count}}', count); 3206 } 3207 3208 if (options.addSuffix) { 3209 if (options.comparison > 0) { 3210 return 'in ' + result; 3211 } else { 3212 return result + ' ago'; 3213 } 3214 } 3215 3216 return result; 3217 } 3218 3219 /***/ 3220 }), 3221 /* 49 */ 3222 /***/ (function (module, __webpack_exports__, __webpack_require__) { 3223 3224 "use strict"; 3225 /* harmony export (immutable) */ 3226 __webpack_exports__["a"] = subMilliseconds; 3227 /* harmony import */ 3228 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 3229 /* harmony import */ 3230 var __WEBPACK_IMPORTED_MODULE_1__addMilliseconds_index_js__ = __webpack_require__(45); 3231 /* harmony import */ 3232 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 3233 3234 3235 /** 3236 * @name subMilliseconds 3237 * @category Millisecond Helpers 3238 * @summary Subtract the specified number of milliseconds from the given date. 3239 *
3240 * @description 3241 * Subtract the specified number of milliseconds from the given date. 3242 * 3243 * ### v2.0.0 breaking changes: 3244 * 3245 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 3246 * 3247 * @param {Date|Number} date - the date to be changed 3248 * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 3249 * @returns {Date} the new date with the milliseconds subtracted 3250 * @throws {TypeError} 2 arguments required 3251 * 3252 * @example 3253 * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000: 3254 * var result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) 3255 * //=> Thu Jul 10 2014 12:45:29.250 3256 */ 3257 3258 function subMilliseconds(dirtyDate, dirtyAmount) { 3259 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 3260 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 3261 return __WEBPACK_IMPORTED_MODULE_1__addMilliseconds_index_js__["a" /* default */](dirtyDate, -amount); 3262 } 3263 3264 /***/ 3265 }), 3266 /* 50 */ 3267 /***/ (function (module, __webpack_exports__, __webpack_require__) { 3268 3269 "use strict"; 3270 /* harmony export (immutable) */ 3271 __webpack_exports__["a"] = startOfUTCWeek; 3272 /* harmony import */ 3273 var __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__ = __webpack_require__(6); 3274 /* harmony import */ 3275 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 3276 /* harmony import */ 3277 var __WEBPACK_IMPORTED_MODULE_2__requiredArgs_index_js__ = __webpack_require__(0); 3278 3279 3280 // This function will be a part of public API when UTC function will be implemented. 3281// See issue: https://github.com/date-fns/date-fns/issues/376 3282 3283 function startOfUTCWeek(dirtyDate, dirtyOptions) { 3284 __WEBPACK_IMPORTED_MODULE_2__requiredArgs_index_js__["a" /* default */](1, arguments); 3285 var options = dirtyOptions || {}; 3286 var locale = options.locale; 3287 var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; 3288 var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__["a" /* default */](localeWeekStartsOn); 3289 var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__["a" /* default */](options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 3290 3291 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 3292 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 3293 } 3294 3295 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 3296 var day = date.getUTCDay(); 3297 var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; 3298 date.setUTCDate(date.getUTCDate() - diff); 3299 date.setUTCHours(0, 0, 0, 0); 3300 return date; 3301 } 3302 3303 /***/ 3304 }), 3305 /* 51 */ 3306 /***/ (function (module, exports) { 3307 3308 module.exports = function (it) { 3309 if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 3310 return it; 3311 }; 3312 3313 3314 /***/ 3315 }), 3316 /* 52 */
vendor: 4,968 bytes, lines 3317-3435
3317 /***/ (function (module, exports) { 3318 3319 var id = 0; 3320 var px = Math.random(); 3321 module.exports = function (key) { 3322 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 3323 }; 3324 3325 3326 /***/ 3327 }), 3328 /* 53 */ 3329 /***/ (function (module, exports, __webpack_require__) { 3330 3331 var def = __webpack_require__(16).f; 3332 var has = __webpack_require__(24); 3333 var TAG = __webpack_require__(9)('toStringTag'); 3334 3335 module.exports = function (it, tag, stat) { 3336 if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, {configurable: true, value: tag}); 3337 }; 3338 3339 3340 /***/ 3341 }), 3342 /* 54 */ 3343 /***/ (function (module, exports, __webpack_require__) { 3344 3345 __webpack_require__(215); 3346 var global = __webpack_require__(8); 3347 var hide = __webpack_require__(23); 3348 var Iterators = __webpack_require__(31); 3349 var TO_STRING_TAG = __webpack_require__(9)('toStringTag'); 3350 3351 var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + 3352 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + 3353 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + 3354 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + 3355 'TextTrackList,TouchList').split(','); 3356 3357 for (var i = 0; i < DOMIterables.length; i++) { 3358 var NAME = DOMIterables[i]; 3359 var Collection = global[NAME]; 3360 var proto = Collection && Collection.prototype; 3361 if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); 3362 Iterators[NAME] = Iterators.Array; 3363 } 3364 3365 3366 /***/ 3367 }), 3368 /* 55 */ 3369 /***/ (function (module, exports) { 3370 3371 exports.f = {}.propertyIsEnumerable; 3372 3373 3374 /***/ 3375 }), 3376 /* 56 */ 3377 /***/ (function (module, __webpack_exports__, __webpack_require__) { 3378 3379 "use strict"; 3380 /* harmony export (immutable) */ 3381 __webpack_exports__["a"] = isWeekend; 3382 /* harmony import */ 3383 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 3384 /* harmony import */ 3385 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 3386 3387 3388 /** 3389 * @name isWeekend 3390 * @category Weekday Helpers 3391 * @summary Does the given date fall on a weekend? 3392 * 3393 * @description 3394 * Does the given date fall on a weekend? 3395 * 3396 * ### v2.0.0 breaking changes: 3397 * 3398 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 3399 * 3400 * @param {Date|Number} date - the date to check 3401 * @returns {Boolean} the date falls on a weekend 3402 * @throws {TypeError} 1 argument required 3403 * 3404 * @example 3405 * // Does 5 October 2014 fall on a weekend? 3406 * var result = isWeekend(new Date(2014, 9, 5)) 3407 * //=> true 3408 */ 3409 3410 function isWeekend(dirtyDate) { 3411 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 3412 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 3413 var day = date.getDay(); 3414 return day === 0 || day === 6; 3415 } 3416 3417 /***/ 3418 }), 3419 /* 57 */ 3420 /***/ (function (module, __webpack_exports__, __webpack_require__) { 3421 3422 "use strict"; 3423 /* harmony export (immutable) */ 3424 __webpack_exports__["a"] = startOfDay; 3425 /* harmony import */ 3426 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 3427 /* harmony import */ 3428 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 3429 3430 3431 /** 3432 * @name startOfDay 3433 * @category Day Helpers 3434 * @summary Return the start of a day for the given date. 3435 *
3436 * @description 3437 * Return the start of a day for the given date. 3438 * The result will be in the local timezone. 3439 * 3440 * ### v2.0.0 breaking changes: 3441 * 3442 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 3443 * 3444 * @param {Date|Number} date - the original date 3445 * @returns {Date} the start of a day 3446 * @throws {TypeError} 1 argument required 3447 * 3448 * @example 3449 * // The start of a day for 2 September 2014 11:55:00: 3450 * var result = startOfDay(new Date(2014, 8, 2, 11, 55, 0)) 3451 * //=> Tue Sep 02 2014 00:00:00 3452 */ 3453 3454 function startOfDay(dirtyDate) { 3455 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 3456 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 3457 date.setHours(0, 0, 0, 0); 3458 return date; 3459 } 3460 3461 /***/ 3462 }), 3463 /* 58 */ 3464 /***/ (function (module, __webpack_exports__, __webpack_require__) { 3465 3466 "use strict"; 3467 /* harmony export (immutable) */ 3468 __webpack_exports__["a"] = addWeeks; 3469 /* harmony import */ 3470 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 3471 /* harmony import */ 3472 var __WEBPACK_IMPORTED_MODULE_1__addDays_index_js__ = __webpack_require__(21); 3473 /* harmony import */ 3474 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 3475 3476 3477 /** 3478 * @name addWeeks 3479 * @category Week Helpers 3480 * @summary Add the specified number of weeks to the given date. 3481 * 3482 * @description 3483 * Add the specified number of week to the given date. 3484 * 3485 * ### v2.0.0 breaking changes: 3486 * 3487 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 3488 * 3489 * @param {Date|Number} date - the date to be changed 3490 * @param {Number} amount - the amount of weeks to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 3491 * @returns {Date} the new date with the weeks added 3492 * @throws {TypeError} 2 arguments required 3493 * 3494 * @example 3495 * // Add 4 weeks to 1 September 2014: 3496 * var result = addWeeks(new Date(2014, 8, 1), 4) 3497 * //=> Mon Sep 29 2014 00:00:00 3498 */ 3499 3500 function addWeeks(dirtyDate, dirtyAmount) { 3501 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 3502 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 3503 var days = amount * 7; 3504 return __WEBPACK_IMPORTED_MODULE_1__addDays_index_js__["a" /* default */](dirtyDate, days); 3505 } 3506 3507 /***/ 3508 }), 3509 /* 59 */ 3510 /***/ (function (module, __webpack_exports__, __webpack_require__) { 3511 3512 "use strict"; 3513 /* harmony export (immutable) */ 3514 __webpack_exports__["a"] = differenceInMilliseconds; 3515 /* harmony import */ 3516 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 3517 /* harmony import */ 3518 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 3519 3520 3521 /** 3522 * @name differenceInMilliseconds 3523 * @category Millisecond Helpers 3524 * @summary Get the number of milliseconds between the given dates. 3525 *
3526 * @description 3527 * Get the number of milliseconds between the given dates. 3528 * 3529 * ### v2.0.0 breaking changes: 3530 * 3531 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 3532 * 3533 * @param {Date|Number} dateLeft - the later date 3534 * @param {Date|Number} dateRight - the earlier date 3535 * @returns {Number} the number of milliseconds 3536 * @throws {TypeError} 2 arguments required 3537 * 3538 * @example 3539 * // How many milliseconds are between 3540 * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700? 3541 * var result = differenceInMilliseconds( 3542 * new Date(2014, 6, 2, 12, 30, 21, 700), 3543 * new Date(2014, 6, 2, 12, 30, 20, 600) 3544 * ) 3545 * //=> 1100 3546 */ 3547 3548 function differenceInMilliseconds(dirtyDateLeft, dirtyDateRight) { 3549 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 3550 var dateLeft = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateLeft); 3551 var dateRight = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateRight); 3552 return dateLeft.getTime() - dateRight.getTime(); 3553 } 3554 3555 /***/ 3556 }), 3557 /* 60 */ 3558 /***/ (function (module, __webpack_exports__, __webpack_require__) { 3559 3560 "use strict"; 3561 /* harmony export (immutable) */ 3562 __webpack_exports__["a"] = differenceInMonths; 3563 /* harmony import */ 3564 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 3565 /* harmony import */ 3566 var __WEBPACK_IMPORTED_MODULE_1__differenceInCalendarMonths_index_js__ = __webpack_require__(140); 3567 /* harmony import */ 3568 var __WEBPACK_IMPORTED_MODULE_2__compareAsc_index_js__ = __webpack_require__(27); 3569 /* harmony import */ 3570 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 3571 3572 3573 /** 3574 * @name differenceInMonths 3575 * @category Month Helpers 3576 * @summary Get the number of full months between the given dates. 3577 * 3578 * @description 3579 * Get the number of full months between the given dates. 3580 * 3581 * ### v2.0.0 breaking changes: 3582 * 3583 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 3584 * 3585 * @param {Date|Number} dateLeft - the later date 3586 * @param {Date|Number} dateRight - the earlier date 3587 * @returns {Number} the number of full months 3588 * @throws {TypeError} 2 arguments required 3589 * 3590 * @example 3591 * // How many full months are between 31 January 2014 and 1 September 2014? 3592 * var result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31)) 3593 * //=> 7 3594 */ 3595 3596 function differenceInMonths(dirtyDateLeft, dirtyDateRight) { 3597 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 3598 var dateLeft = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateLeft); 3599 var dateRight = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateRight); 3600 var sign = __WEBPACK_IMPORTED_MODULE_2__compareAsc_index_js__["a" /* default */](dateLeft, dateRight); 3601 var difference = Math.abs(__WEBPACK_IMPORTED_MODULE_1__differenceInCalendarMonths_index_js__["a" /* default */](dateLeft, dateRight)); 3602 dateLeft.setMonth(dateLeft.getMonth() - sign * difference); // Math.abs(diff in full months - diff in calendar months) === 1 if last calendar month is not full 3603 // If so, result must be decreased by 1 in absolute value 3604 3605 var isLastMonthNotFull = __WEBPACK_IMPORTED_MODULE_2__compareAsc_index_js__["a" /* default */](dateLeft, dateRight) === -sign; 3606 var result = sign * (difference - isLastMonthNotFull); // Prevent negative zero 3607 3608 return result === 0 ? 0 : result; 3609 } 3610 3611 /***/ 3612 }), 3613 /* 61 */ 3614 /***/ (function (module, __webpack_exports__, __webpack_require__) { 3615 3616 "use strict"; 3617 /* harmony export (immutable) */ 3618 __webpack_exports__["a"] = differenceInSeconds; 3619 /* harmony import */ 3620 var __WEBPACK_IMPORTED_MODULE_0__differenceInMilliseconds_index_js__ = __webpack_require__(59); 3621 /* harmony import */ 3622 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 3623 3624 3625 /** 3626 * @name differenceInSeconds 3627 * @category Second Helpers 3628 * @summary Get the number of seconds between the given dates. 3629 *
vendor: 8,825 bytes, lines 3630-3837
3630 * @description 3631 * Get the number of seconds between the given dates. 3632 * 3633 * ### v2.0.0 breaking changes: 3634 * 3635 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 3636 * 3637 * @param {Date|Number} dateLeft - the later date 3638 * @param {Date|Number} dateRight - the earlier date 3639 * @returns {Number} the number of seconds 3640 * @throws {TypeError} 2 arguments required 3641 * 3642 * @example 3643 * // How many seconds are between 3644 * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000? 3645 * var result = differenceInSeconds( 3646 * new Date(2014, 6, 2, 12, 30, 20, 0), 3647 * new Date(2014, 6, 2, 12, 30, 7, 999) 3648 * ) 3649 * //=> 12 3650 */ 3651 3652 function differenceInSeconds(dirtyDateLeft, dirtyDateRight) { 3653 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 3654 var diff = __WEBPACK_IMPORTED_MODULE_0__differenceInMilliseconds_index_js__["a" /* default */](dirtyDateLeft, dirtyDateRight) / 1000; 3655 return diff > 0 ? Math.floor(diff) : Math.ceil(diff); 3656 } 3657 3658 /***/ 3659 }), 3660 /* 62 */ 3661 /***/ (function (module, __webpack_exports__, __webpack_require__) { 3662 3663 "use strict"; 3664 /* harmony export (immutable) */ 3665 __webpack_exports__["a"] = startOfMonth; 3666 /* harmony import */ 3667 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 3668 /* harmony import */ 3669 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 3670 3671 3672 /** 3673 * @name startOfMonth 3674 * @category Month Helpers 3675 * @summary Return the start of a month for the given date. 3676 * 3677 * @description 3678 * Return the start of a month for the given date. 3679 * The result will be in the local timezone. 3680 * 3681 * ### v2.0.0 breaking changes: 3682 * 3683 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 3684 * 3685 * @param {Date|Number} date - the original date 3686 * @returns {Date} the start of a month 3687 * @throws {TypeError} 1 argument required 3688 * 3689 * @example 3690 * // The start of a month for 2 September 2014 11:55:00: 3691 * var result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0)) 3692 * //=> Mon Sep 01 2014 00:00:00 3693 */ 3694 3695 function startOfMonth(dirtyDate) { 3696 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 3697 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 3698 date.setDate(1); 3699 date.setHours(0, 0, 0, 0); 3700 return date; 3701 } 3702 3703 /***/ 3704 }), 3705 /* 63 */ 3706 /***/ (function (module, __webpack_exports__, __webpack_require__) { 3707 3708 "use strict"; 3709 /* harmony export (immutable) */ 3710 __webpack_exports__["a"] = startOfUTCISOWeek; 3711 /* harmony import */ 3712 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 3713 /* harmony import */ 3714 var __WEBPACK_IMPORTED_MODULE_1__requiredArgs_index_js__ = __webpack_require__(0); 3715 3716 // This function will be a part of public API when UTC function will be implemented. 3717// See issue: https://github.com/date-fns/date-fns/issues/376 3718 3719 function startOfUTCISOWeek(dirtyDate) { 3720 __WEBPACK_IMPORTED_MODULE_1__requiredArgs_index_js__["a" /* default */](1, arguments); 3721 var weekStartsOn = 1; 3722 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 3723 var day = date.getUTCDay(); 3724 var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; 3725 date.setUTCDate(date.getUTCDate() - diff); 3726 date.setUTCHours(0, 0, 0, 0); 3727 return date; 3728 } 3729 3730 /***/ 3731 }), 3732 /* 64 */ 3733 /***/ (function (module, exports, __webpack_require__) { 3734 3735 "use strict"; 3736 3737 3738 exports.__esModule = true; 3739 3740 exports.default = function (instance, Constructor) { 3741 if (!(instance instanceof Constructor)) { 3742 throw new TypeError("Cannot call a class as a function"); 3743 } 3744 }; 3745 3746 /***/ 3747 }), 3748 /* 65 */ 3749 /***/ (function (module, exports, __webpack_require__) { 3750 3751 "use strict"; 3752 3753 3754 exports.__esModule = true; 3755 3756 var _defineProperty = __webpack_require__(192); 3757 3758 var _defineProperty2 = _interopRequireDefault(_defineProperty); 3759 3760 function _interopRequireDefault(obj) { 3761 return obj && obj.__esModule ? obj : {default: obj}; 3762 } 3763 3764 exports.default = function () { 3765 function defineProperties(target, props) { 3766 for (var i = 0; i < props.length; i++) { 3767 var descriptor = props[i]; 3768 descriptor.enumerable = descriptor.enumerable || false; 3769 descriptor.configurable = true; 3770 if ("value" in descriptor) descriptor.writable = true; 3771 (0, _defineProperty2.default)(target, descriptor.key, descriptor); 3772 } 3773 } 3774 3775 return function (Constructor, protoProps, staticProps) { 3776 if (protoProps) defineProperties(Constructor.prototype, protoProps); 3777 if (staticProps) defineProperties(Constructor, staticProps); 3778 return Constructor; 3779 }; 3780 }(); 3781 3782 /***/ 3783 }), 3784 /* 66 */ 3785 /***/ (function (module, exports, __webpack_require__) { 3786 3787 var isObject = __webpack_require__(20); 3788 var document = __webpack_require__(8).document; 3789// typeof document.createElement is 'object' in old IE 3790 var is = isObject(document) && isObject(document.createElement); 3791 module.exports = function (it) { 3792 return is ? document.createElement(it) : {}; 3793 }; 3794 3795 3796 /***/ 3797 }), 3798 /* 67 */ 3799 /***/ (function (module, exports, __webpack_require__) { 3800 3801// 7.1.1 ToPrimitive(input [, PreferredType]) 3802 var isObject = __webpack_require__(20); 3803// instead of the ES6 spec version, we didn't implement @@toPrimitive case 3804// and the second argument - flag - preferred type is a string 3805 module.exports = function (it, S) { 3806 if (!isObject(it)) return it; 3807 var fn, val; 3808 if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 3809 if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; 3810 if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 3811 throw TypeError("Can't convert object to primitive value"); 3812 }; 3813 3814 3815 /***/ 3816 }), 3817 /* 68 */ 3818 /***/ (function (module, exports, __webpack_require__) { 3819 3820 "use strict"; 3821 /** 3822 * Copyright (c) 2013-present, Facebook, Inc. 3823 * 3824 * This source code is licensed under the MIT license found in the 3825 * LICENSE file in the root directory of this source tree. 3826 */ 3827 3828 3829 3830 var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; 3831 3832 module.exports = ReactPropTypesSecret; 3833 3834 3835 /***/ 3836 }), 3837 /* 69 */
vendor: 3,661 bytes, lines 3838-3929
3838 /***/ (function (module, exports) { 3839 3840// 7.1.4 ToInteger 3841 var ceil = Math.ceil; 3842 var floor = Math.floor; 3843 module.exports = function (it) { 3844 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 3845 }; 3846 3847 3848 /***/ 3849 }), 3850 /* 70 */ 3851 /***/ (function (module, exports) { 3852 3853// 7.2.1 RequireObjectCoercible(argument) 3854 module.exports = function (it) { 3855 if (it == undefined) throw TypeError("Can't call method on " + it); 3856 return it; 3857 }; 3858 3859 3860 /***/ 3861 }), 3862 /* 71 */ 3863 /***/ (function (module, exports, __webpack_require__) { 3864 3865// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 3866 var anObject = __webpack_require__(14); 3867 var dPs = __webpack_require__(212); 3868 var enumBugKeys = __webpack_require__(75); 3869 var IE_PROTO = __webpack_require__(73)('IE_PROTO'); 3870 var Empty = function () { /* empty */ 3871 }; 3872 var PROTOTYPE = 'prototype'; 3873 3874// Create object with fake `null` prototype: use iframe Object with cleared prototype 3875 var createDict = function () { 3876 // Thrash, waste and sodomy: IE GC bug 3877 var iframe = __webpack_require__(66)('iframe'); 3878 var i = enumBugKeys.length; 3879 var lt = '<'; 3880 var gt = '>'; 3881 var iframeDocument; 3882 iframe.style.display = 'none'; 3883 __webpack_require__(105).appendChild(iframe); 3884 iframe.src = 'javascript:'; // eslint-disable-line no-script-url 3885 // createDict = iframe.contentWindow.Object; 3886 // html.removeChild(iframe); 3887 iframeDocument = iframe.contentWindow.document; 3888 iframeDocument.open(); 3889 iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); 3890 iframeDocument.close(); 3891 createDict = iframeDocument.F; 3892 while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; 3893 return createDict(); 3894 }; 3895 3896 module.exports = Object.create || function create(O, Properties) { 3897 var result; 3898 if (O !== null) { 3899 Empty[PROTOTYPE] = anObject(O); 3900 result = new Empty(); 3901 Empty[PROTOTYPE] = null; 3902 // add "__proto__" for Object.getPrototypeOf polyfill 3903 result[IE_PROTO] = O; 3904 } else result = createDict(); 3905 return Properties === undefined ? result : dPs(result, Properties); 3906 }; 3907 3908 3909 /***/ 3910 }), 3911 /* 72 */ 3912 /***/ (function (module, exports, __webpack_require__) { 3913 3914// 7.1.15 ToLength 3915 var toInteger = __webpack_require__(69); 3916 var min = Math.min; 3917 module.exports = function (it) { 3918 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 3919 }; 3920 3921 3922 /***/ 3923 }), 3924 /* 73 */ 3925 /***/ (function (module, exports, __webpack_require__) { 3926 3927 var shared = __webpack_require__(74)('keys'); 3928 var uid = __webpack_require__(52); 3929 module.exports = function (key) {
vendor: 9,956 bytes, lines 3930-4201
3930 return shared[key] || (shared[key] = uid(key)); 3931 }; 3932 3933 3934 /***/ 3935 }), 3936 /* 74 */ 3937 /***/ (function (module, exports, __webpack_require__) { 3938 3939 var core = __webpack_require__(7); 3940 var global = __webpack_require__(8); 3941 var SHARED = '__core-js_shared__'; 3942 var store = global[SHARED] || (global[SHARED] = {}); 3943 3944 (module.exports = function (key, value) { 3945 return store[key] || (store[key] = value !== undefined ? value : {}); 3946 })('versions', []).push({ 3947 version: core.version, 3948 mode: __webpack_require__(41) ? 'pure' : 'global', 3949 copyright: '© 2019 Denis Pushkarev (zloirock.ru)' 3950 }); 3951 3952 3953 /***/ 3954 }), 3955 /* 75 */ 3956 /***/ (function (module, exports) { 3957 3958// IE 8- don't enum bug keys 3959 module.exports = ( 3960 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' 3961 ).split(','); 3962 3963 3964 /***/ 3965 }), 3966 /* 76 */ 3967 /***/ (function (module, exports, __webpack_require__) { 3968 3969// getting tag from 19.1.3.6 Object.prototype.toString() 3970 var cof = __webpack_require__(43); 3971 var TAG = __webpack_require__(9)('toStringTag'); 3972// ES3 wrong here 3973 var ARG = cof(function () { 3974 return arguments; 3975 }()) == 'Arguments'; 3976 3977// fallback for IE11 Script Access Denied error 3978 var tryGet = function (it, key) { 3979 try { 3980 return it[key]; 3981 } catch (e) { /* empty */ 3982 } 3983 }; 3984 3985 module.exports = function (it) { 3986 var O, T, B; 3987 return it === undefined ? 'Undefined' : it === null ? 'Null' 3988 // @@toStringTag case 3989 : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T 3990 // builtinTag case 3991 : ARG ? cof(O) 3992 // ES3 arguments fallback 3993 : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; 3994 }; 3995 3996 3997 /***/ 3998 }), 3999 /* 77 */ 4000 /***/ (function (module, exports, __webpack_require__) { 4001 4002 var classof = __webpack_require__(76); 4003 var ITERATOR = __webpack_require__(9)('iterator'); 4004 var Iterators = __webpack_require__(31); 4005 module.exports = __webpack_require__(7).getIteratorMethod = function (it) { 4006 if (it != undefined) return it[ITERATOR] 4007 || it['@@iterator'] 4008 || Iterators[classof(it)]; 4009 }; 4010 4011 4012 /***/ 4013 }), 4014 /* 78 */ 4015 /***/ (function (module, exports, __webpack_require__) { 4016 4017 "use strict"; 4018 4019// 25.4.1.5 NewPromiseCapability(C) 4020 var aFunction = __webpack_require__(51); 4021 4022 function PromiseCapability(C) { 4023 var resolve, reject; 4024 this.promise = new C(function ($$resolve, $$reject) { 4025 if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor'); 4026 resolve = $$resolve; 4027 reject = $$reject; 4028 }); 4029 this.resolve = aFunction(resolve); 4030 this.reject = aFunction(reject); 4031 } 4032 4033 module.exports.f = function (C) { 4034 return new PromiseCapability(C); 4035 }; 4036 4037 4038 /***/ 4039 }), 4040 /* 79 */ 4041 /***/ (function (module, exports) { 4042 4043 exports.f = Object.getOwnPropertySymbols; 4044 4045 4046 /***/ 4047 }), 4048 /* 80 */ 4049 /***/ (function (module, exports, __webpack_require__) { 4050 4051 exports.f = __webpack_require__(9); 4052 4053 4054 /***/ 4055 }), 4056 /* 81 */ 4057 /***/ (function (module, exports, __webpack_require__) { 4058 4059 var global = __webpack_require__(8); 4060 var core = __webpack_require__(7); 4061 var LIBRARY = __webpack_require__(41); 4062 var wksExt = __webpack_require__(80); 4063 var defineProperty = __webpack_require__(16).f; 4064 module.exports = function (name) { 4065 var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); 4066 if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, {value: wksExt.f(name)}); 4067 }; 4068 4069 4070 /***/ 4071 }), 4072 /* 82 */ 4073 /***/ (function (module, exports, __webpack_require__) { 4074 4075 "use strict"; 4076 4077 4078 Object.defineProperty(exports, "__esModule", { 4079 value: true 4080 }); 4081 exports.omit = omit; 4082 exports.arraysEqual = arraysEqual; 4083 var isElementAnSFC = exports.isElementAnSFC = function isElementAnSFC(element) { 4084 var isNativeDOMElement = typeof element.type === 'string'; 4085 4086 if (isNativeDOMElement) { 4087 return false; 4088 } 4089 4090 return !element.type.prototype.isReactComponent; 4091 }; 4092 4093 function omit(obj) { 4094 var attrs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; 4095 4096 var result = {}; 4097 Object.keys(obj).forEach(function (key) { 4098 if (attrs.indexOf(key) === -1) { 4099 result[key] = obj[key]; 4100 } 4101 }); 4102 return result; 4103 } 4104 4105 function arraysEqual(a, b) { 4106 var sameObject = a === b; 4107 if (sameObject) { 4108 return true; 4109 } 4110 4111 var notBothArrays = !Array.isArray(a) || !Array.isArray(b); 4112 var differentLengths = a.length !== b.length; 4113 4114 if (notBothArrays || differentLengths) { 4115 return false; 4116 } 4117 4118 return a.every(function (element, index) { 4119 return element === b[index]; 4120 }); 4121 } 4122 4123 function memoizeString(fn) { 4124 var cache = {}; 4125 4126 return function (str) { 4127 if (!cache[str]) { 4128 cache[str] = fn(str); 4129 } 4130 return cache[str]; 4131 }; 4132 } 4133 4134 var hyphenate = exports.hyphenate = memoizeString(function (str) { 4135 return str.replace(/([A-Z])/g, '-$1').toLowerCase(); 4136 }); 4137 4138 /***/ 4139 }), 4140 /* 83 */ 4141 /***/ (function (module, __webpack_exports__, __webpack_require__) { 4142 4143 "use strict"; 4144 /* harmony export (immutable) */ 4145 __webpack_exports__["a"] = isSunday; 4146 /* harmony import */ 4147 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 4148 /* harmony import */ 4149 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 4150 4151 4152 /** 4153 * @name isSunday 4154 * @category Weekday Helpers 4155 * @summary Is the given date Sunday? 4156 * 4157 * @description 4158 * Is the given date Sunday? 4159 * 4160 * ### v2.0.0 breaking changes: 4161 * 4162 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 4163 * 4164 * @param {Date|Number} date - the date to check 4165 * @returns {Boolean} the date is Sunday 4166 * @throws {TypeError} 1 argument required 4167 * 4168 * @example 4169 * // Is 21 September 2014 Sunday? 4170 * var result = isSunday(new Date(2014, 8, 21)) 4171 * //=> true 4172 */ 4173 4174 function isSunday(dirtyDate) { 4175 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 4176 return __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate).getDay() === 0; 4177 } 4178 4179 /***/ 4180 }), 4181 /* 84 */ 4182 /***/ (function (module, __webpack_exports__, __webpack_require__) { 4183 4184 "use strict"; 4185 /* harmony export (immutable) */ 4186 __webpack_exports__["a"] = addHours; 4187 /* harmony import */ 4188 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 4189 /* harmony import */ 4190 var __WEBPACK_IMPORTED_MODULE_1__addMilliseconds_index_js__ = __webpack_require__(45); 4191 /* harmony import */ 4192 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 4193 4194 4195 var MILLISECONDS_IN_HOUR = 3600000; 4196 4197 /** 4198 * @name addHours 4199 * @category Hour Helpers 4200 * @summary Add the specified number of hours to the given date. 4201 *
4202 * @description 4203 * Add the specified number of hours to the given date. 4204 * 4205 * ### v2.0.0 breaking changes: 4206 * 4207 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 4208 * 4209 * @param {Date|Number} date - the date to be changed 4210 * @param {Number} amount - the amount of hours to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 4211 * @returns {Date} the new date with the hours added 4212 * @throws {TypeError} 2 arguments required 4213 * 4214 * @example 4215 * // Add 2 hours to 10 July 2014 23:00:00: 4216 * var result = addHours(new Date(2014, 6, 10, 23, 0), 2) 4217 * //=> Fri Jul 11 2014 01:00:00 4218 */ 4219 4220 function addHours(dirtyDate, dirtyAmount) { 4221 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 4222 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 4223 return __WEBPACK_IMPORTED_MODULE_1__addMilliseconds_index_js__["a" /* default */](dirtyDate, amount * MILLISECONDS_IN_HOUR); 4224 } 4225 4226 /***/ 4227 }), 4228 /* 85 */ 4229 /***/ (function (module, __webpack_exports__, __webpack_require__) { 4230 4231 "use strict"; 4232 /* harmony export (immutable) */ 4233 __webpack_exports__["a"] = addQuarters; 4234 /* harmony import */ 4235 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 4236 /* harmony import */ 4237 var __WEBPACK_IMPORTED_MODULE_1__addMonths_index_js__ = __webpack_require__(44); 4238 /* harmony import */ 4239 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 4240 4241 4242 /** 4243 * @name addQuarters 4244 * @category Quarter Helpers 4245 * @summary Add the specified number of year quarters to the given date. 4246 * 4247 * @description 4248 * Add the specified number of year quarters to the given date. 4249 * 4250 * ### v2.0.0 breaking changes: 4251 * 4252 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 4253 * 4254 * @param {Date|Number} date - the date to be changed 4255 * @param {Number} amount - the amount of quarters to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 4256 * @returns {Date} the new date with the quarters added 4257 * @throws {TypeError} 2 arguments required 4258 * 4259 * @example 4260 * // Add 1 quarter to 1 September 2014: 4261 * var result = addQuarters(new Date(2014, 8, 1), 1) 4262 * //=> Mon Dec 01 2014 00:00:00 4263 */ 4264 4265 function addQuarters(dirtyDate, dirtyAmount) { 4266 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 4267 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 4268 var months = amount * 3; 4269 return __WEBPACK_IMPORTED_MODULE_1__addMonths_index_js__["a" /* default */](dirtyDate, months); 4270 } 4271 4272 /***/ 4273 }), 4274 /* 86 */ 4275 /***/ (function (module, __webpack_exports__, __webpack_require__) { 4276 4277 "use strict"; 4278 /* harmony export (immutable) */ 4279 __webpack_exports__["a"] = differenceInDays; 4280 /* harmony import */ 4281 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 4282 /* harmony import */ 4283 var __WEBPACK_IMPORTED_MODULE_1__differenceInCalendarDays_index_js__ = __webpack_require__(26); 4284 /* harmony import */ 4285 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 4286 4287 4288 // Like `compareAsc` but uses local time not UTC, which is needed 4289// for accurate equality comparisons of UTC timestamps that end up 4290// having the same representation in local time, e.g. one hour before 4291// DST ends vs. the instant that DST ends. 4292 4293 function compareLocalAsc(dateLeft, dateRight) { 4294 var diff = dateLeft.getFullYear() - dateRight.getFullYear() || dateLeft.getMonth() - dateRight.getMonth() || dateLeft.getDate() - dateRight.getDate() || dateLeft.getHours() - dateRight.getHours() || dateLeft.getMinutes() - dateRight.getMinutes() || dateLeft.getSeconds() - dateRight.getSeconds() || dateLeft.getMilliseconds() - dateRight.getMilliseconds(); 4295 4296 if (diff < 0) { 4297 return -1; 4298 } else if (diff > 0) { 4299 return 1; // Return 0 if diff is 0; return NaN if diff is NaN 4300 } else { 4301 return diff; 4302 } 4303 } 4304 4305 /** 4306 * @name differenceInDays 4307 * @category Day Helpers 4308 * @summary Get the number of full days between the given dates. 4309 *
4310 * @description 4311 * Get the number of full day periods between two dates. Fractional days are 4312 * truncated towards zero. 4313 * 4314 * One "full day" is the distance between a local time in one day to the same 4315 * local time on the next or previous day. A full day can sometimes be less than 4316 * or more than 24 hours if a daylight savings change happens between two dates. 4317 * 4318 * To ignore DST and only measure exact 24-hour periods, use this instead: 4319 * `Math.floor(differenceInHours(dateLeft, dateRight)/24)|0`. 4320 * 4321 * 4322 * ### v2.0.0 breaking changes: 4323 * 4324 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 4325 * 4326 * @param {Date|Number} dateLeft - the later date 4327 * @param {Date|Number} dateRight - the earlier date 4328 * @returns {Number} the number of full days according to the local timezone 4329 * @throws {TypeError} 2 arguments required 4330 * 4331 * @example 4332 * // How many full days are between 4333 * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? 4334 * var result = differenceInDays( 4335 * new Date(2012, 6, 2, 0, 0), 4336 * new Date(2011, 6, 2, 23, 0) 4337 * ) 4338 * //=> 365 4339 * // How many full days are between 4340 * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? 4341 * var result = differenceInDays( 4342 * new Date(2011, 6, 3, 0, 1), 4343 * new Date(2011, 6, 2, 23, 59) 4344 * ) 4345 * //=> 0 4346 * // How many full days are between 4347 * // 1 March 2020 0:00 and 1 June 2020 0:00 ? 4348 * // Note: because local time is used, the 4349 * // result will always be 92 days, even in 4350 * // time zones where DST starts and the 4351 * // period has only 92*24-1 hours. 4352 * var result = differenceInDays( 4353 * new Date(2020, 5, 1), 4354 * new Date(2020, 2, 1) 4355 * ) 4356 //=> 92 4357 */ 4358 4359 4360 function differenceInDays(dirtyDateLeft, dirtyDateRight) { 4361 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 4362 var dateLeft = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateLeft); 4363 var dateRight = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateRight); 4364 var sign = compareLocalAsc(dateLeft, dateRight); 4365 var difference = Math.abs(__WEBPACK_IMPORTED_MODULE_1__differenceInCalendarDays_index_js__["a" /* default */](dateLeft, dateRight)); 4366 dateLeft.setDate(dateLeft.getDate() - sign * difference); // Math.abs(diff in full days - diff in calendar days) === 1 if last calendar day is not full 4367 // If so, result must be decreased by 1 in absolute value 4368 4369 var isLastDayNotFull = compareLocalAsc(dateLeft, dateRight) === -sign; 4370 var result = sign * (difference - isLastDayNotFull); // Prevent negative zero 4371 4372 return result === 0 ? 0 : result; 4373 } 4374 4375 /***/ 4376 }), 4377 /* 87 */ 4378 /***/ (function (module, __webpack_exports__, __webpack_require__) { 4379 4380 "use strict"; 4381 /* harmony export (immutable) */ 4382 __webpack_exports__["a"] = startOfQuarter; 4383 /* harmony import */ 4384 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 4385 /* harmony import */ 4386 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 4387 4388 4389 /** 4390 * @name startOfQuarter 4391 * @category Quarter Helpers 4392 * @summary Return the start of a year quarter for the given date. 4393 *
4394 * @description 4395 * Return the start of a year quarter for the given date. 4396 * The result will be in the local timezone. 4397 * 4398 * ### v2.0.0 breaking changes: 4399 * 4400 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 4401 * 4402 * @param {Date|Number} date - the original date 4403 * @returns {Date} the start of a quarter 4404 * @throws {TypeError} 1 argument required 4405 * 4406 * @example 4407 * // The start of a quarter for 2 September 2014 11:55:00: 4408 * var result = startOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) 4409 * //=> Tue Jul 01 2014 00:00:00 4410 */ 4411 4412 function startOfQuarter(dirtyDate) { 4413 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 4414 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 4415 var currentMonth = date.getMonth(); 4416 var month = currentMonth - currentMonth % 3; 4417 date.setMonth(month, 1); 4418 date.setHours(0, 0, 0, 0); 4419 return date; 4420 } 4421 4422 /***/ 4423 }), 4424 /* 88 */ 4425 /***/ (function (module, __webpack_exports__, __webpack_require__) { 4426 4427 "use strict"; 4428 /* harmony export (immutable) */ 4429 __webpack_exports__["a"] = eachWeekendOfInterval; 4430 /* harmony import */ 4431 var __WEBPACK_IMPORTED_MODULE_0__eachDayOfInterval_index_js__ = __webpack_require__(148); 4432 /* harmony import */ 4433 var __WEBPACK_IMPORTED_MODULE_1__isSunday_index_js__ = __webpack_require__(83); 4434 /* harmony import */ 4435 var __WEBPACK_IMPORTED_MODULE_2__isWeekend_index_js__ = __webpack_require__(56); 4436 /* harmony import */ 4437 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 4438 4439 4440 /** 4441 * @name eachWeekendOfInterval 4442 * @category Interval Helpers 4443 * @summary List all the Saturdays and Sundays in the given date interval. 4444 * 4445 * @description 4446 * Get all the Saturdays and Sundays in the given date interval. 4447 * 4448 * @param {Interval} interval - the given interval. See [Interval]{@link docs/types/Interval} 4449 * @returns {Date[]} an array containing all the Saturdays and Sundays 4450 * @throws {TypeError} 1 argument required 4451 * @throws {RangeError} The start of an interval cannot be after its end 4452 * @throws {RangeError} Date in interval cannot be `Invalid Date` 4453 * 4454 * @example 4455 * // Lists all Saturdays and Sundays in the given date interval 4456 * var result = eachWeekendOfInterval({ 4457 * start: new Date(2018, 8, 17), 4458 * end: new Date(2018, 8, 30) 4459 * }) 4460 * //=> [ 4461 * // Sat Sep 22 2018 00:00:00, 4462 * // Sun Sep 23 2018 00:00:00, 4463 * // Sat Sep 29 2018 00:00:00, 4464 * // Sun Sep 30 2018 00:00:00 4465 * // ] 4466 */ 4467 4468 function eachWeekendOfInterval(interval) { 4469 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 4470 var dateInterval = __WEBPACK_IMPORTED_MODULE_0__eachDayOfInterval_index_js__["a" /* default */](interval); 4471 var weekends = []; 4472 var index = 0; 4473 4474 while (index < dateInterval.length) { 4475 var date = dateInterval[index++]; 4476 4477 if (__WEBPACK_IMPORTED_MODULE_2__isWeekend_index_js__["a" /* default */](date)) { 4478 weekends.push(date); 4479 if (__WEBPACK_IMPORTED_MODULE_1__isSunday_index_js__["a" /* default */](date)) index = index + 5; 4480 } 4481 } 4482 4483 return weekends; 4484 } 4485 4486 /***/ 4487 }), 4488 /* 89 */ 4489 /***/ (function (module, __webpack_exports__, __webpack_require__) { 4490 4491 "use strict"; 4492 /* harmony export (immutable) */ 4493 __webpack_exports__["a"] = endOfMonth; 4494 /* harmony import */ 4495 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 4496 /* harmony import */ 4497 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 4498 4499 4500 /** 4501 * @name endOfMonth 4502 * @category Month Helpers 4503 * @summary Return the end of a month for the given date. 4504 *
4505 * @description 4506 * Return the end of a month for the given date. 4507 * The result will be in the local timezone. 4508 * 4509 * ### v2.0.0 breaking changes: 4510 * 4511 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 4512 * 4513 * @param {Date|Number} date - the original date 4514 * @returns {Date} the end of a month 4515 * @throws {TypeError} 1 argument required 4516 * 4517 * @example 4518 * // The end of a month for 2 September 2014 11:55:00: 4519 * var result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0)) 4520 * //=> Tue Sep 30 2014 23:59:59.999 4521 */ 4522 4523 function endOfMonth(dirtyDate) { 4524 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 4525 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 4526 var month = date.getMonth(); 4527 date.setFullYear(date.getFullYear(), month + 1, 0); 4528 date.setHours(23, 59, 59, 999); 4529 return date; 4530 } 4531 4532 /***/ 4533 }), 4534 /* 90 */ 4535 /***/ (function (module, __webpack_exports__, __webpack_require__) { 4536 4537 "use strict"; 4538 /* harmony export (immutable) */ 4539 __webpack_exports__["a"] = startOfYear; 4540 /* harmony import */ 4541 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 4542 /* harmony import */ 4543 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 4544 4545 4546 /** 4547 * @name startOfYear 4548 * @category Year Helpers 4549 * @summary Return the start of a year for the given date. 4550 * 4551 * @description 4552 * Return the start of a year for the given date. 4553 * The result will be in the local timezone. 4554 * 4555 * ### v2.0.0 breaking changes: 4556 * 4557 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 4558 * 4559 * @param {Date|Number} date - the original date 4560 * @returns {Date} the start of a year 4561 * @throws {TypeError} 1 argument required 4562 * 4563 * @example 4564 * // The start of a year for 2 September 2014 11:55:00: 4565 * var result = startOfYear(new Date(2014, 8, 2, 11, 55, 00)) 4566 * //=> Wed Jan 01 2014 00:00:00 4567 */ 4568 4569 function startOfYear(dirtyDate) { 4570 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 4571 var cleanDate = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 4572 var date = new Date(0); 4573 date.setFullYear(cleanDate.getFullYear(), 0, 1); 4574 date.setHours(0, 0, 0, 0); 4575 return date; 4576 } 4577 4578 /***/ 4579 }), 4580 /* 91 */ 4581 /***/ (function (module, __webpack_exports__, __webpack_require__) { 4582 4583 "use strict"; 4584 /* harmony export (immutable) */ 4585 __webpack_exports__["a"] = endOfDay; 4586 /* harmony import */ 4587 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 4588 /* harmony import */ 4589 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 4590 4591 4592 /** 4593 * @name endOfDay 4594 * @category Day Helpers 4595 * @summary Return the end of a day for the given date. 4596 *
4597 * @description 4598 * Return the end of a day for the given date. 4599 * The result will be in the local timezone. 4600 * 4601 * ### v2.0.0 breaking changes: 4602 * 4603 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 4604 * 4605 * @param {Date|Number} date - the original date 4606 * @returns {Date} the end of a day 4607 * @throws {TypeError} 1 argument required 4608 * 4609 * @example 4610 * // The end of a day for 2 September 2014 11:55:00: 4611 * var result = endOfDay(new Date(2014, 8, 2, 11, 55, 0)) 4612 * //=> Tue Sep 02 2014 23:59:59.999 4613 */ 4614 4615 function endOfDay(dirtyDate) { 4616 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 4617 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 4618 date.setHours(23, 59, 59, 999); 4619 return date; 4620 } 4621 4622 /***/ 4623 }), 4624 /* 92 */ 4625 /***/ (function (module, __webpack_exports__, __webpack_require__) { 4626 4627 "use strict"; 4628 /* harmony export (immutable) */ 4629 __webpack_exports__["a"] = getUTCWeekYear; 4630 /* harmony import */ 4631 var __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__ = __webpack_require__(6); 4632 /* harmony import */ 4633 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 4634 /* harmony import */ 4635 var __WEBPACK_IMPORTED_MODULE_2__startOfUTCWeek_index_js__ = __webpack_require__(50); 4636 /* harmony import */ 4637 var __WEBPACK_IMPORTED_MODULE_3__requiredArgs_index_js__ = __webpack_require__(0); 4638 4639 4640 // This function will be a part of public API when UTC function will be implemented. 4641// See issue: https://github.com/date-fns/date-fns/issues/376 4642 4643 function getUTCWeekYear(dirtyDate, dirtyOptions) { 4644 __WEBPACK_IMPORTED_MODULE_3__requiredArgs_index_js__["a" /* default */](1, arguments); 4645 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate, dirtyOptions); 4646 var year = date.getUTCFullYear(); 4647 var options = dirtyOptions || {}; 4648 var locale = options.locale; 4649 var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate; 4650 var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__["a" /* default */](localeFirstWeekContainsDate); 4651 var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__["a" /* default */](options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN 4652 4653 if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { 4654 throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); 4655 } 4656 4657 var firstWeekOfNextYear = new Date(0); 4658 firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate); 4659 firstWeekOfNextYear.setUTCHours(0, 0, 0, 0); 4660 var startOfNextYear = __WEBPACK_IMPORTED_MODULE_2__startOfUTCWeek_index_js__["a" /* default */](firstWeekOfNextYear, dirtyOptions); 4661 var firstWeekOfThisYear = new Date(0); 4662 firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate); 4663 firstWeekOfThisYear.setUTCHours(0, 0, 0, 0); 4664 var startOfThisYear = __WEBPACK_IMPORTED_MODULE_2__startOfUTCWeek_index_js__["a" /* default */](firstWeekOfThisYear, dirtyOptions); 4665 4666 if (date.getTime() >= startOfNextYear.getTime()) { 4667 return year + 1; 4668 } else if (date.getTime() >= startOfThisYear.getTime()) { 4669 return year; 4670 } else { 4671 return year - 1; 4672 } 4673 } 4674 4675 /***/ 4676 }), 4677 /* 93 */ 4678 /***/ (function (module, __webpack_exports__, __webpack_require__) { 4679 4680 "use strict"; 4681 /* harmony export (immutable) */ 4682 __webpack_exports__["a"] = startOfWeekYear; 4683 /* harmony import */ 4684 var __WEBPACK_IMPORTED_MODULE_0__getWeekYear_index_js__ = __webpack_require__(170); 4685 /* harmony import */ 4686 var __WEBPACK_IMPORTED_MODULE_1__startOfWeek_index_js__ = __webpack_require__(22); 4687 /* harmony import */ 4688 var __WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__ = __webpack_require__(6); 4689 /* harmony import */ 4690 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 4691 4692 4693 /** 4694 * @name startOfWeekYear 4695 * @category Week-Numbering Year Helpers 4696 * @summary Return the start of a local week-numbering year for the given date. 4697 *
4698 * @description 4699 * Return the start of a local week-numbering year. 4700 * The exact calculation depends on the values of 4701 * `options.weekStartsOn` (which is the index of the first day of the week) 4702 * and `options.firstWeekContainsDate` (which is the day of January, which is always in 4703 * the first week of the week-numbering year) 4704 * 4705 * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering 4706 * 4707 * ### v2.0.0 breaking changes: 4708 * 4709 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 4710 * 4711 * @param {Date|Number} date - the original date 4712 * @param {Object} [options] - an object with options. 4713 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 4714 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 4715 * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year 4716 * @returns {Date} the start of a week-numbering year 4717 * @throws {TypeError} 1 argument required 4718 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 4719 * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 4720 * 4721 * @example 4722 * // The start of an a week-numbering year for 2 July 2005 with default settings: 4723 * var result = startOfWeekYear(new Date(2005, 6, 2)) 4724 * //=> Sun Dec 26 2004 00:00:00 4725 * 4726 * @example 4727 * // The start of a week-numbering year for 2 July 2005 4728 * // if Monday is the first day of week 4729 * // and 4 January is always in the first week of the year: 4730 * var result = startOfWeekYear(new Date(2005, 6, 2), { 4731 * weekStartsOn: 1, 4732 * firstWeekContainsDate: 4 4733 * }) 4734 * //=> Mon Jan 03 2005 00:00:00 4735 */ 4736 4737 function startOfWeekYear(dirtyDate, dirtyOptions) { 4738 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 4739 var options = dirtyOptions || {}; 4740 var locale = options.locale; 4741 var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate; 4742 var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : __WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__["a" /* default */](localeFirstWeekContainsDate); 4743 var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : __WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__["a" /* default */](options.firstWeekContainsDate); 4744 var year = __WEBPACK_IMPORTED_MODULE_0__getWeekYear_index_js__["a" /* default */](dirtyDate, dirtyOptions); 4745 var firstWeek = new Date(0); 4746 firstWeek.setFullYear(year, 0, firstWeekContainsDate); 4747 firstWeek.setHours(0, 0, 0, 0); 4748 var date = __WEBPACK_IMPORTED_MODULE_1__startOfWeek_index_js__["a" /* default */](firstWeek, dirtyOptions); 4749 return date; 4750 } 4751 4752 /***/ 4753 }), 4754 /* 94 */ 4755 /***/ (function (module, __webpack_exports__, __webpack_require__) { 4756 4757 "use strict"; 4758 /* harmony export (immutable) */ 4759 __webpack_exports__["a"] = subDays; 4760 /* harmony import */ 4761 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 4762 /* harmony import */ 4763 var __WEBPACK_IMPORTED_MODULE_1__addDays_index_js__ = __webpack_require__(21); 4764 /* harmony import */ 4765 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 4766 4767 4768 /** 4769 * @name subDays 4770 * @category Day Helpers 4771 * @summary Subtract the specified number of days from the given date. 4772 *
4773 * @description 4774 * Subtract the specified number of days from the given date. 4775 * 4776 * ### v2.0.0 breaking changes: 4777 * 4778 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 4779 * 4780 * @param {Date|Number} date - the date to be changed 4781 * @param {Number} amount - the amount of days to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 4782 * @returns {Date} the new date with the days subtracted 4783 * @throws {TypeError} 2 arguments required 4784 * 4785 * @example 4786 * // Subtract 10 days from 1 September 2014: 4787 * var result = subDays(new Date(2014, 8, 1), 10) 4788 * //=> Fri Aug 22 2014 00:00:00 4789 */ 4790 4791 function subDays(dirtyDate, dirtyAmount) { 4792 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 4793 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 4794 return __WEBPACK_IMPORTED_MODULE_1__addDays_index_js__["a" /* default */](dirtyDate, -amount); 4795 } 4796 4797 /***/ 4798 }), 4799 /* 95 */ 4800 /***/ (function (module, __webpack_exports__, __webpack_require__) { 4801 4802 "use strict"; 4803 /* harmony export (immutable) */ 4804 __webpack_exports__["a"] = isSameWeek; 4805 /* harmony import */ 4806 var __WEBPACK_IMPORTED_MODULE_0__startOfWeek_index_js__ = __webpack_require__(22); 4807 /* harmony import */ 4808 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 4809 4810 4811 /** 4812 * @name isSameWeek 4813 * @category Week Helpers 4814 * @summary Are the given dates in the same week? 4815 * 4816 * @description 4817 * Are the given dates in the same week? 4818 * 4819 * ### v2.0.0 breaking changes: 4820 * 4821 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 4822 * 4823 * @param {Date|Number} dateLeft - the first date to check 4824 * @param {Date|Number} dateRight - the second date to check 4825 * @param {Object} [options] - an object with options. 4826 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 4827 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 4828 * @returns {Boolean} the dates are in the same week 4829 * @throws {TypeError} 2 arguments required 4830 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 4831 * 4832 * @example 4833 * // Are 31 August 2014 and 4 September 2014 in the same week? 4834 * var result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) 4835 * //=> true 4836 * 4837 * @example 4838 * // If week starts with Monday, 4839 * // are 31 August 2014 and 4 September 2014 in the same week? 4840 * var result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { 4841 * weekStartsOn: 1 4842 * }) 4843 * //=> false 4844 */ 4845 4846 function isSameWeek(dirtyDateLeft, dirtyDateRight, dirtyOptions) { 4847 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 4848 var dateLeftStartOfWeek = __WEBPACK_IMPORTED_MODULE_0__startOfWeek_index_js__["a" /* default */](dirtyDateLeft, dirtyOptions); 4849 var dateRightStartOfWeek = __WEBPACK_IMPORTED_MODULE_0__startOfWeek_index_js__["a" /* default */](dirtyDateRight, dirtyOptions); 4850 return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime(); 4851 } 4852 4853 /***/ 4854 }), 4855 /* 96 */ 4856 /***/ (function (module, __webpack_exports__, __webpack_require__) { 4857 4858 "use strict"; 4859 /* harmony export (immutable) */ 4860 __webpack_exports__["a"] = setMonth; 4861 /* harmony import */ 4862 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 4863 /* harmony import */ 4864 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 4865 /* harmony import */ 4866 var __WEBPACK_IMPORTED_MODULE_2__getDaysInMonth_index_js__ = __webpack_require__(164); 4867 /* harmony import */ 4868 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 4869 4870 4871 /** 4872 * @name setMonth 4873 * @category Month Helpers 4874 * @summary Set the month to the given date. 4875 *
4876 * @description 4877 * Set the month to the given date. 4878 * 4879 * ### v2.0.0 breaking changes: 4880 * 4881 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 4882 * 4883 * @param {Date|Number} date - the date to be changed 4884 * @param {Number} month - the month of the new date 4885 * @returns {Date} the new date with the month set 4886 * @throws {TypeError} 2 arguments required 4887 * 4888 * @example 4889 * // Set February to 1 September 2014: 4890 * var result = setMonth(new Date(2014, 8, 1), 1) 4891 * //=> Sat Feb 01 2014 00:00:00 4892 */ 4893 4894 function setMonth(dirtyDate, dirtyMonth) { 4895 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 4896 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 4897 var month = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyMonth); 4898 var year = date.getFullYear(); 4899 var day = date.getDate(); 4900 var dateWithDesiredMonth = new Date(0); 4901 dateWithDesiredMonth.setFullYear(year, month, 15); 4902 dateWithDesiredMonth.setHours(0, 0, 0, 0); 4903 var daysInMonth = __WEBPACK_IMPORTED_MODULE_2__getDaysInMonth_index_js__["a" /* default */](dateWithDesiredMonth); // Set the last day of the new month 4904 // if the original date was the last day of the longer month 4905 4906 date.setMonth(month, Math.min(day, daysInMonth)); 4907 return date; 4908 } 4909 4910 /***/ 4911 }), 4912 /* 97 */ 4913 /***/ (function (module, __webpack_exports__, __webpack_require__) { 4914 4915 "use strict"; 4916 /* harmony import */ 4917 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 4918 4919 var numberValues = { 4920 locale: { 4921 '1': '१', 4922 '2': '२', 4923 '3': '३', 4924 '4': '४', 4925 '5': '५', 4926 '6': '६', 4927 '7': 'à¥', 4928 '8': '८', 4929 '9': '९', 4930 '0': '०' 4931 }, 4932 number: { 4933 '१': '1', 4934 '२': '2', 4935 '३': '3', 4936 '४': '4', 4937 '५': '5', 4938 '६': '6', 4939 'à¥': '7', 4940 '८': '8', 4941 '९': '9', 4942 '०': '0' 4943 } // CLDR #1585 - #1592 4944 4945 }; 4946 var eraValues = { 4947 narrow: ['à¤à¤¸à¤¾-पà¥à¤°à¥à¤µ', 'à¤à¤¸à¥à¤µà¥'], 4948 abbreviated: ['à¤à¤¸à¤¾-पà¥à¤°à¥à¤µ', 'à¤à¤¸à¥à¤µà¥'], 4949 wide: ['à¤à¤¸à¤¾-पà¥à¤°à¥à¤µ', 'à¤à¤¸à¤µà¥ सन'] // CLDR #1593 - #1616 4950 4951 }; 4952 var quarterValues = { 4953 narrow: ['1', '2', '3', '4'], 4954 abbreviated: ['ति1', 'ति2', 'ति3', 'ति4'], 4955 wide: ['पहलॠतिमाहà¥', 'दà¥à¤¸à¤°à¥ तिमाहà¥', 'तà¥à¤¸à¤°à¥ तिमाहà¥', 'à¤à¥à¤¥à¥ तिमाहà¥'] // Note: in English, the names of days of the week and months are capitalized. 4956 // If you are making a new locale based on this one, check if the same is true for the language you're working on. 4957 // Generally, formatted dates should look like they are in the middle of a sentence, 4958 // e.g. in Spanish language the weekdays and months should be in the lowercase.
4959 // https://www.unicode.org/cldr/charts/32/summary/hi.html 4960 // CLDR #1617 - #1688 4961 4962 }; 4963 var monthValues = { 4964 narrow: ['à¤', 'फ़', 'मा', 'ठ', 'मà¤', 'à¤à¥', 'à¤à¥', 'ठà¤', 'सि', 'ठà¤à¥à¤¤à¥', 'न', 'दि'], 4965 abbreviated: ['à¤à¤¨', 'फ़र', 'मारà¥à¤', 'ठपà¥à¤°à¥à¤²', 'मà¤', 'à¤à¥à¤¨', 'à¤à¥à¤²', 'ठà¤', 'सित', 'ठà¤à¥à¤¤à¥', 'नव', 'दिस'], 4966 wide: ['à¤à¤¨à¤µà¤°à¥', 'फ़रवरà¥', 'मारà¥à¤', 'ठपà¥à¤°à¥à¤²', 'मà¤', 'à¤à¥à¤¨', 'à¤à¥à¤²à¤¾à¤', 'ठà¤à¤¸à¥à¤¤', 'सितà¤à¤¬à¤°', 'ठà¤à¥à¤¤à¥à¤¬à¤°', 'नवà¤à¤¬à¤°', 'दिसà¤à¤¬à¤°'] // CLDR #1689 - #1744 4967 4968 }; 4969 var dayValues = { 4970 narrow: ['र', 'सà¥', 'मà¤', 'बà¥', 'à¤à¥', 'शà¥', 'श'], 4971 short: ['र', 'सà¥', 'मà¤', 'बà¥', 'à¤à¥', 'शà¥', 'श'], 4972 abbreviated: ['रवि', 'सà¥à¤®', 'मà¤à¤à¤²', 'बà¥à¤§', 'à¤à¥à¤°à¥', 'शà¥à¤à¥à¤°', 'शनि'], 4973 wide: ['रविवार', 'सà¥à¤®à¤µà¤¾à¤°', 'मà¤à¤à¤²à¤µà¤¾à¤°', 'बà¥à¤§à¤µà¤¾à¤°', 'à¤à¥à¤°à¥à¤µà¤¾à¤°', 'शà¥à¤à¥à¤°à¤µà¤¾à¤°', 'शनिवार'] 4974 }; 4975 var dayPeriodValues = { 4976 narrow: { 4977 am: 'पà¥à¤°à¥à¤µà¤¾à¤¹à¥à¤¨', 4978 pm: 'ठपराहà¥à¤¨', 4979 midnight: 'मधà¥à¤¯à¤°à¤¾à¤¤à¥à¤°à¤¿', 4980 noon: 'दà¥à¤ªà¤¹à¤°', 4981 morning: 'सà¥à¤¬à¤¹', 4982 afternoon: 'दà¥à¤ªà¤¹à¤°', 4983 evening: 'शाम', 4984 night: 'रात' 4985 }, 4986 abbreviated: { 4987 am: 'पà¥à¤°à¥à¤µà¤¾à¤¹à¥à¤¨', 4988 pm: 'ठपराहà¥à¤¨', 4989 midnight: 'मधà¥à¤¯à¤°à¤¾à¤¤à¥à¤°à¤¿', 4990 noon: 'दà¥à¤ªà¤¹à¤°', 4991 morning: 'सà¥à¤¬à¤¹', 4992 afternoon: 'दà¥à¤ªà¤¹à¤°', 4993 evening: 'शाम', 4994 night: 'रात' 4995 }, 4996 wide: { 4997 am: 'पà¥à¤°à¥à¤µà¤¾à¤¹à¥à¤¨', 4998 pm: 'ठपराहà¥à¤¨', 4999 midnight: 'मधà¥à¤¯à¤°à¤¾à¤¤à¥à¤°à¤¿', 5000 noon: 'दà¥à¤ªà¤¹à¤°', 5001 morning: 'सà¥à¤¬à¤¹', 5002 afternoon: 'दà¥à¤ªà¤¹à¤°', 5003 evening: 'शाम', 5004 night: 'रात' 5005 } 5006 }; 5007 var formattingDayPeriodValues = { 5008 narrow: { 5009 am: 'पà¥à¤°à¥à¤µà¤¾à¤¹à¥à¤¨', 5010 pm: 'ठपराहà¥à¤¨', 5011 midnight: 'मधà¥à¤¯à¤°à¤¾à¤¤à¥à¤°à¤¿', 5012 noon: 'दà¥à¤ªà¤¹à¤°', 5013 morning: 'सà¥à¤¬à¤¹', 5014 afternoon: 'दà¥à¤ªà¤¹à¤°', 5015 evening: 'शाम', 5016 night: 'रात' 5017 }, 5018 abbreviated: { 5019 am: 'पà¥à¤°à¥à¤µà¤¾à¤¹à¥à¤¨', 5020 pm: 'ठपराहà¥à¤¨', 5021 midnight: 'मधà¥à¤¯à¤°à¤¾à¤¤à¥à¤°à¤¿', 5022 noon: 'दà¥à¤ªà¤¹à¤°', 5023 morning: 'सà¥à¤¬à¤¹', 5024 afternoon: 'दà¥à¤ªà¤¹à¤°', 5025 evening: 'शाम', 5026 night: 'रात' 5027 }, 5028 wide: { 5029 am: 'पà¥à¤°à¥à¤µà¤¾à¤¹à¥à¤¨', 5030 pm: 'ठपराहà¥à¤¨', 5031 midnight: 'मधà¥à¤¯à¤°à¤¾à¤¤à¥à¤°à¤¿', 5032 noon: 'दà¥à¤ªà¤¹à¤°', 5033 morning: 'सà¥à¤¬à¤¹', 5034 afternoon: 'दà¥à¤ªà¤¹à¤°', 5035 evening: 'शाम',
vendor: 4,144 bytes, lines 5036-5140
5036 night: 'रात' 5037 } 5038 }; 5039 5040 function ordinalNumber(dirtyNumber) { 5041 var number = localize.localeToNumber(dirtyNumber); 5042 var localeNumber = localize.numberToLocale(number); 5043 var rem10 = number % 10; 5044 5045 switch (rem10) { 5046 case 2: 5047 case 3: 5048 case 4: 5049 case 6: 5050 case 1: 5051 case 5: 5052 case 7: 5053 case 8: 5054 case 9: 5055 case 0: 5056 return localeNumber; 5057 } 5058 } 5059 5060 function localeToNumber(locale) { 5061 var number = locale.toString().replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g, function (match) { 5062 return numberValues.number[match]; 5063 }); 5064 return Number(number); 5065 } 5066 5067 function numberToLocale(number) { 5068 return number.toString().replace(/\d/g, function (match) { 5069 return numberValues.locale[match]; 5070 }); 5071 } 5072 5073 var localize = { 5074 localeToNumber: localeToNumber, 5075 numberToLocale: numberToLocale, 5076 ordinalNumber: ordinalNumber, 5077 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 5078 values: eraValues, 5079 defaultWidth: 'wide' 5080 }), 5081 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 5082 values: quarterValues, 5083 defaultWidth: 'wide', 5084 argumentCallback: function (quarter) { 5085 return Number(quarter) - 1; 5086 } 5087 }), 5088 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 5089 values: monthValues, 5090 defaultWidth: 'wide' 5091 }), 5092 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 5093 values: dayValues, 5094 defaultWidth: 'wide' 5095 }), 5096 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 5097 values: dayPeriodValues, 5098 defaultWidth: 'wide', 5099 formattingValues: formattingDayPeriodValues, 5100 defaultFormattingWidth: 'wide' 5101 }) 5102 }; 5103 /* harmony default export */ 5104 __webpack_exports__["a"] = (localize); 5105 5106 /***/ 5107 }), 5108 /* 98 */ 5109 /***/ (function (module, exports, __webpack_require__) { 5110 5111 module.exports = !__webpack_require__(17) && !__webpack_require__(30)(function () { 5112 return Object.defineProperty(__webpack_require__(66)('div'), 'a', { 5113 get: function () { 5114 return 7; 5115 } 5116 }).a != 7; 5117 }); 5118 5119 5120 /***/ 5121 }), 5122 /* 99 */ 5123 /***/ (function (module, exports, __webpack_require__) { 5124 5125 "use strict"; 5126 /* WEBPACK VAR INJECTION */ 5127 (function (process) { 5128 5129 if (process.env.NODE_ENV === 'production') { 5130 module.exports = __webpack_require__(196); 5131 } else { 5132 module.exports = __webpack_require__(197); 5133 } 5134 5135 /* WEBPACK VAR INJECTION */ 5136 }.call(exports, __webpack_require__(18))) 5137 5138 /***/ 5139 }), 5140 /* 100 */
vendor: 4,174 bytes, lines 5141-5223
5141 /***/ (function (module, exports) { 5142 5143 5144 /***/ 5145 }), 5146 /* 101 */ 5147 /***/ (function (module, exports, __webpack_require__) { 5148 5149 "use strict"; 5150 5151 var LIBRARY = __webpack_require__(41); 5152 var $export = __webpack_require__(11); 5153 var redefine = __webpack_require__(102); 5154 var hide = __webpack_require__(23); 5155 var Iterators = __webpack_require__(31); 5156 var $iterCreate = __webpack_require__(211); 5157 var setToStringTag = __webpack_require__(53); 5158 var getPrototypeOf = __webpack_require__(106); 5159 var ITERATOR = __webpack_require__(9)('iterator'); 5160 var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` 5161 var FF_ITERATOR = '@@iterator'; 5162 var KEYS = 'keys'; 5163 var VALUES = 'values'; 5164 5165 var returnThis = function () { 5166 return this; 5167 }; 5168 5169 module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { 5170 $iterCreate(Constructor, NAME, next); 5171 var getMethod = function (kind) { 5172 if (!BUGGY && kind in proto) return proto[kind]; 5173 switch (kind) { 5174 case KEYS: 5175 return function keys() { 5176 return new Constructor(this, kind); 5177 }; 5178 case VALUES: 5179 return function values() { 5180 return new Constructor(this, kind); 5181 }; 5182 } 5183 return function entries() { 5184 return new Constructor(this, kind); 5185 }; 5186 }; 5187 var TAG = NAME + ' Iterator'; 5188 var DEF_VALUES = DEFAULT == VALUES; 5189 var VALUES_BUG = false; 5190 var proto = Base.prototype; 5191 var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; 5192 var $default = $native || getMethod(DEFAULT); 5193 var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; 5194 var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; 5195 var methods, key, IteratorPrototype; 5196 // Fix native 5197 if ($anyNative) { 5198 IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); 5199 if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { 5200 // Set @@toStringTag to native iterators 5201 setToStringTag(IteratorPrototype, TAG, true); 5202 // fix for some old engines 5203 if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); 5204 } 5205 } 5206 // fix Array#{values, @@iterator}.name in V8 / FF 5207 if (DEF_VALUES && $native && $native.name !== VALUES) { 5208 VALUES_BUG = true; 5209 $default = function values() { 5210 return $native.call(this); 5211 }; 5212 } 5213 // Define iterator 5214 if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { 5215 hide(proto, ITERATOR, $default); 5216 } 5217 // Plug for library 5218 Iterators[NAME] = $default; 5219 Iterators[TAG] = returnThis; 5220 if (DEFAULT) { 5221 methods = { 5222 values: DEF_VALUES ? $default : getMethod(VALUES), 5223 keys: IS_SET ? $default : getMethod(KEYS),
vendor: 50,296 bytes, lines 5224-6439
5224 entries: $entries 5225 }; 5226 if (FORCED) for (key in methods) { 5227 if (!(key in proto)) redefine(proto, key, methods[key]); 5228 } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); 5229 } 5230 return methods; 5231 }; 5232 5233 5234 /***/ 5235 }), 5236 /* 102 */ 5237 /***/ (function (module, exports, __webpack_require__) { 5238 5239 module.exports = __webpack_require__(23); 5240 5241 5242 /***/ 5243 }), 5244 /* 103 */ 5245 /***/ (function (module, exports, __webpack_require__) { 5246 5247 var has = __webpack_require__(24); 5248 var toIObject = __webpack_require__(32); 5249 var arrayIndexOf = __webpack_require__(213)(false); 5250 var IE_PROTO = __webpack_require__(73)('IE_PROTO'); 5251 5252 module.exports = function (object, names) { 5253 var O = toIObject(object); 5254 var i = 0; 5255 var result = []; 5256 var key; 5257 for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 5258 // Don't enum bug & hidden keys 5259 while (names.length > i) if (has(O, key = names[i++])) { 5260 ~arrayIndexOf(result, key) || result.push(key); 5261 } 5262 return result; 5263 }; 5264 5265 5266 /***/ 5267 }), 5268 /* 104 */ 5269 /***/ (function (module, exports, __webpack_require__) { 5270 5271// fallback for non-array-like ES3 and non-enumerable old V8 strings 5272 var cof = __webpack_require__(43); 5273// eslint-disable-next-line no-prototype-builtins 5274 module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 5275 return cof(it) == 'String' ? it.split('') : Object(it); 5276 }; 5277 5278 5279 /***/ 5280 }), 5281 /* 105 */ 5282 /***/ (function (module, exports, __webpack_require__) { 5283 5284 var document = __webpack_require__(8).document; 5285 module.exports = document && document.documentElement; 5286 5287 5288 /***/ 5289 }), 5290 /* 106 */ 5291 /***/ (function (module, exports, __webpack_require__) { 5292 5293// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) 5294 var has = __webpack_require__(24); 5295 var toObject = __webpack_require__(33); 5296 var IE_PROTO = __webpack_require__(73)('IE_PROTO'); 5297 var ObjectProto = Object.prototype; 5298 5299 module.exports = Object.getPrototypeOf || function (O) { 5300 O = toObject(O); 5301 if (has(O, IE_PROTO)) return O[IE_PROTO]; 5302 if (typeof O.constructor == 'function' && O instanceof O.constructor) { 5303 return O.constructor.prototype; 5304 } 5305 return O instanceof Object ? ObjectProto : null; 5306 }; 5307 5308 5309 /***/ 5310 }), 5311 /* 107 */ 5312 /***/ (function (module, exports, __webpack_require__) { 5313 5314// call something on iterator step with safe closing on error 5315 var anObject = __webpack_require__(14); 5316 module.exports = function (iterator, fn, value, entries) { 5317 try { 5318 return entries ? fn(anObject(value)[0], value[1]) : fn(value); 5319 // 7.4.6 IteratorClose(iterator, completion) 5320 } catch (e) { 5321 var ret = iterator['return']; 5322 if (ret !== undefined) anObject(ret.call(iterator)); 5323 throw e; 5324 } 5325 }; 5326 5327 5328 /***/ 5329 }), 5330 /* 108 */ 5331 /***/ (function (module, exports, __webpack_require__) { 5332 5333// check on default Array iterator 5334 var Iterators = __webpack_require__(31); 5335 var ITERATOR = __webpack_require__(9)('iterator'); 5336 var ArrayProto = Array.prototype; 5337 5338 module.exports = function (it) { 5339 return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); 5340 }; 5341 5342 5343 /***/ 5344 }), 5345 /* 109 */ 5346 /***/ (function (module, exports, __webpack_require__) { 5347 5348// 7.3.20 SpeciesConstructor(O, defaultConstructor) 5349 var anObject = __webpack_require__(14); 5350 var aFunction = __webpack_require__(51); 5351 var SPECIES = __webpack_require__(9)('species'); 5352 module.exports = function (O, D) { 5353 var C = anObject(O).constructor; 5354 var S; 5355 return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S); 5356 }; 5357 5358 5359 /***/ 5360 }), 5361 /* 110 */ 5362 /***/ (function (module, exports, __webpack_require__) { 5363 5364 var ctx = __webpack_require__(29); 5365 var invoke = __webpack_require__(221); 5366 var html = __webpack_require__(105); 5367 var cel = __webpack_require__(66); 5368 var global = __webpack_require__(8); 5369 var process = global.process; 5370 var setTask = global.setImmediate; 5371 var clearTask = global.clearImmediate; 5372 var MessageChannel = global.MessageChannel; 5373 var Dispatch = global.Dispatch; 5374 var counter = 0; 5375 var queue = {}; 5376 var ONREADYSTATECHANGE = 'onreadystatechange'; 5377 var defer, channel, port; 5378 var run = function () { 5379 var id = +this; 5380 // eslint-disable-next-line no-prototype-builtins 5381 if (queue.hasOwnProperty(id)) { 5382 var fn = queue[id]; 5383 delete queue[id]; 5384 fn(); 5385 } 5386 }; 5387 var listener = function (event) { 5388 run.call(event.data); 5389 }; 5390// Node.js 0.9+ & IE10+ has setImmediate, otherwise: 5391 if (!setTask || !clearTask) { 5392 setTask = function setImmediate(fn) { 5393 var args = []; 5394 var i = 1; 5395 while (arguments.length > i) args.push(arguments[i++]); 5396 queue[++counter] = function () { 5397 // eslint-disable-next-line no-new-func 5398 invoke(typeof fn == 'function' ? fn : Function(fn), args); 5399 }; 5400 defer(counter); 5401 return counter; 5402 }; 5403 clearTask = function clearImmediate(id) { 5404 delete queue[id]; 5405 }; 5406 // Node.js 0.8- 5407 if (__webpack_require__(43)(process) == 'process') { 5408 defer = function (id) { 5409 process.nextTick(ctx(run, id, 1)); 5410 }; 5411 // Sphere (JS game engine) Dispatch API 5412 } else if (Dispatch && Dispatch.now) { 5413 defer = function (id) { 5414 Dispatch.now(ctx(run, id, 1)); 5415 }; 5416 // Browsers with MessageChannel, includes WebWorkers 5417 } else if (MessageChannel) { 5418 channel = new MessageChannel(); 5419 port = channel.port2; 5420 channel.port1.onmessage = listener; 5421 defer = ctx(port.postMessage, port, 1); 5422 // Browsers with postMessage, skip WebWorkers 5423 // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' 5424 } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) { 5425 defer = function (id) { 5426 global.postMessage(id + '', '*'); 5427 }; 5428 global.addEventListener('message', listener, false); 5429 // IE8- 5430 } else if (ONREADYSTATECHANGE in cel('script')) { 5431 defer = function (id) { 5432 html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () { 5433 html.removeChild(this); 5434 run.call(id); 5435 }; 5436 }; 5437 // Rest old browsers 5438 } else { 5439 defer = function (id) { 5440 setTimeout(ctx(run, id, 1), 0); 5441 }; 5442 } 5443 } 5444 module.exports = { 5445 set: setTask, 5446 clear: clearTask 5447 }; 5448 5449 5450 /***/ 5451 }), 5452 /* 111 */ 5453 /***/ (function (module, exports) { 5454 5455 module.exports = function (exec) { 5456 try { 5457 return {e: false, v: exec()}; 5458 } catch (e) { 5459 return {e: true, v: e}; 5460 } 5461 }; 5462 5463 5464 /***/ 5465 }), 5466 /* 112 */ 5467 /***/ (function (module, exports, __webpack_require__) { 5468 5469 var anObject = __webpack_require__(14); 5470 var isObject = __webpack_require__(20); 5471 var newPromiseCapability = __webpack_require__(78); 5472 5473 module.exports = function (C, x) { 5474 anObject(C); 5475 if (isObject(x) && x.constructor === C) return x; 5476 var promiseCapability = newPromiseCapability.f(C); 5477 var resolve = promiseCapability.resolve; 5478 resolve(x); 5479 return promiseCapability.promise; 5480 }; 5481 5482 5483 /***/ 5484 }), 5485 /* 113 */ 5486 /***/ (function (module, exports, __webpack_require__) { 5487 5488 var ITERATOR = __webpack_require__(9)('iterator'); 5489 var SAFE_CLOSING = false; 5490 5491 try { 5492 var riter = [7][ITERATOR](); 5493 riter['return'] = function () { 5494 SAFE_CLOSING = true; 5495 }; 5496 // eslint-disable-next-line no-throw-literal 5497 Array.from(riter, function () { 5498 throw 2; 5499 }); 5500 } catch (e) { /* empty */ 5501 } 5502 5503 module.exports = function (exec, skipClosing) { 5504 if (!skipClosing && !SAFE_CLOSING) return false; 5505 var safe = false; 5506 try { 5507 var arr = [7]; 5508 var iter = arr[ITERATOR](); 5509 iter.next = function () { 5510 return {done: safe = true}; 5511 }; 5512 arr[ITERATOR] = function () { 5513 return iter; 5514 }; 5515 exec(arr); 5516 } catch (e) { /* empty */ 5517 } 5518 return safe; 5519 }; 5520 5521 5522 /***/ 5523 }), 5524 /* 114 */ 5525 /***/ (function (module, exports, __webpack_require__) { 5526 5527 module.exports = {"default": __webpack_require__(232), __esModule: true}; 5528 5529 /***/ 5530 }), 5531 /* 115 */ 5532 /***/ (function (module, exports, __webpack_require__) { 5533 5534// most Object methods by ES6 should accept primitives 5535 var $export = __webpack_require__(11); 5536 var core = __webpack_require__(7); 5537 var fails = __webpack_require__(30); 5538 module.exports = function (KEY, exec) { 5539 var fn = (core.Object || {})[KEY] || Object[KEY]; 5540 var exp = {}; 5541 exp[KEY] = exec(fn); 5542 $export($export.S + $export.F * fails(function () { 5543 fn(1); 5544 }), 'Object', exp); 5545 }; 5546 5547 5548 /***/ 5549 }), 5550 /* 116 */ 5551 /***/ (function (module, exports, __webpack_require__) { 5552 5553 "use strict"; 5554 5555 5556 exports.__esModule = true; 5557 5558 var _typeof2 = __webpack_require__(117); 5559 5560 var _typeof3 = _interopRequireDefault(_typeof2); 5561 5562 function _interopRequireDefault(obj) { 5563 return obj && obj.__esModule ? obj : {default: obj}; 5564 } 5565 5566 exports.default = function (self, call) { 5567 if (!self) { 5568 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 5569 } 5570 5571 return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self; 5572 }; 5573 5574 /***/ 5575 }), 5576 /* 117 */ 5577 /***/ (function (module, exports, __webpack_require__) { 5578 5579 "use strict"; 5580 5581 5582 exports.__esModule = true; 5583 5584 var _iterator = __webpack_require__(234); 5585 5586 var _iterator2 = _interopRequireDefault(_iterator); 5587 5588 var _symbol = __webpack_require__(236); 5589 5590 var _symbol2 = _interopRequireDefault(_symbol); 5591 5592 var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { 5593 return typeof obj; 5594 } : function (obj) { 5595 return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; 5596 }; 5597 5598 function _interopRequireDefault(obj) { 5599 return obj && obj.__esModule ? obj : {default: obj}; 5600 } 5601 5602 exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { 5603 return typeof obj === "undefined" ? "undefined" : _typeof(obj); 5604 } : function (obj) { 5605 return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); 5606 }; 5607 5608 /***/ 5609 }), 5610 /* 118 */ 5611 /***/ (function (module, exports, __webpack_require__) { 5612 5613// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) 5614 var $keys = __webpack_require__(103); 5615 var hiddenKeys = __webpack_require__(75).concat('length', 'prototype'); 5616 5617 exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { 5618 return $keys(O, hiddenKeys); 5619 }; 5620 5621 5622 /***/ 5623 }), 5624 /* 119 */ 5625 /***/ (function (module, exports, __webpack_require__) { 5626 5627 var pIE = __webpack_require__(55); 5628 var createDesc = __webpack_require__(39); 5629 var toIObject = __webpack_require__(32); 5630 var toPrimitive = __webpack_require__(67); 5631 var has = __webpack_require__(24); 5632 var IE8_DOM_DEFINE = __webpack_require__(98); 5633 var gOPD = Object.getOwnPropertyDescriptor; 5634 5635 exports.f = __webpack_require__(17) ? gOPD : function getOwnPropertyDescriptor(O, P) { 5636 O = toIObject(O); 5637 P = toPrimitive(P, true); 5638 if (IE8_DOM_DEFINE) try { 5639 return gOPD(O, P); 5640 } catch (e) { /* empty */ 5641 } 5642 if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); 5643 }; 5644 5645 5646 /***/ 5647 }), 5648 /* 120 */ 5649 /***/ (function (module, exports, __webpack_require__) { 5650 5651 "use strict"; 5652 5653 5654 exports.__esModule = true; 5655 5656 var _setPrototypeOf = __webpack_require__(245); 5657 5658 var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); 5659 5660 var _create = __webpack_require__(249); 5661 5662 var _create2 = _interopRequireDefault(_create); 5663 5664 var _typeof2 = __webpack_require__(117); 5665 5666 var _typeof3 = _interopRequireDefault(_typeof2); 5667 5668 function _interopRequireDefault(obj) { 5669 return obj && obj.__esModule ? obj : {default: obj}; 5670 } 5671 5672 exports.default = function (subClass, superClass) { 5673 if (typeof superClass !== "function" && superClass !== null) { 5674 throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass))); 5675 } 5676 5677 subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { 5678 constructor: { 5679 value: subClass, 5680 enumerable: false, 5681 writable: true, 5682 configurable: true 5683 } 5684 }); 5685 if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass; 5686 }; 5687 5688 /***/ 5689 }), 5690 /* 121 */ 5691 /***/ (function (module, exports, __webpack_require__) { 5692 5693 "use strict"; 5694 5695 5696 Object.defineProperty(exports, "__esModule", { 5697 value: true 5698 }); 5699 exports.hasClassInParent = exports.formatErrorMsg = exports.getMetaContent = exports.axiosGithub = exports.axiosJSON = exports.queryStringify = exports.queryParse = undefined; 5700 5701 var _keys = __webpack_require__(272); 5702 5703 var _keys2 = _interopRequireDefault(_keys); 5704 5705 var _slicedToArray2 = __webpack_require__(275); 5706 5707 var _slicedToArray3 = _interopRequireDefault(_slicedToArray2); 5708 5709 var _axios = __webpack_require__(282); 5710 5711 var _axios2 = _interopRequireDefault(_axios); 5712 5713 function _interopRequireDefault(obj) { 5714 return obj && obj.__esModule ? obj : {default: obj}; 5715 } 5716 5717 var queryParse = exports.queryParse = function queryParse() { 5718 var search = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.location.search; 5719 5720 if (!search) return {}; 5721 var queryString = search[0] === '?' ? search.substring(1) : search; 5722 var query = {}; 5723 queryString.split('&').forEach(function (queryStr) { 5724 var _queryStr$split = queryStr.split('='), 5725 _queryStr$split2 = (0, _slicedToArray3.default)(_queryStr$split, 2), 5726 key = _queryStr$split2[0], 5727 value = _queryStr$split2[1]; 5728 /* istanbul ignore else */ 5729 5730 5731 if (key) query[decodeURIComponent(key)] = decodeURIComponent(value); 5732 }); 5733 5734 return query; 5735 }; 5736 5737 var queryStringify = exports.queryStringify = function queryStringify(query) { 5738 var queryString = (0, _keys2.default)(query).map(function (key) { 5739 return key + '=' + encodeURIComponent(query[key] || ''); 5740 }).join('&'); 5741 return queryString; 5742 }; 5743 5744 var axiosJSON = exports.axiosJSON = _axios2.default.create({ 5745 headers: { 5746 'Accept': 'application/json' 5747 } 5748 }); 5749 5750 var axiosGithub = exports.axiosGithub = _axios2.default.create({ 5751 baseURL: 'https://api.github.com', 5752 headers: { 5753 'Accept': 'application/json' 5754 } 5755 }); 5756 5757 var getMetaContent = exports.getMetaContent = function getMetaContent(name, content) { 5758 /* istanbul ignore next */ 5759 content || (content = 'content'); 5760 /* istanbul ignore next */ 5761 var el = window.document.querySelector('meta[name=\'' + name + '\']'); 5762 /* istanbul ignore next */ 5763 return el && el.getAttribute(content); 5764 }; 5765 5766 var formatErrorMsg = exports.formatErrorMsg = function formatErrorMsg(err) { 5767 var msg = 'Error: '; 5768 if (err.response && err.response.data && err.response.data.message) { 5769 msg += err.response.data.message + '. '; 5770 err.response.data.errors && (msg += err.response.data.errors.map(function (e) { 5771 return e.message; 5772 }).join(', ')); 5773 } else { 5774 msg += err.message; 5775 } 5776 return msg; 5777 }; 5778 5779 var hasClassInParent = exports.hasClassInParent = function hasClassInParent(element) { 5780 for (var _len = arguments.length, className = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { 5781 className[_key - 1] = arguments[_key]; 5782 } 5783 5784 /* istanbul ignore next */ 5785 var yes = false; 5786 /* istanbul ignore next */ 5787 if (typeof element.className === 'undefined') return false; 5788 /* istanbul ignore next */ 5789 var classes = element.className.split(' '); 5790 /* istanbul ignore next */ 5791 className.forEach(function (c, i) { 5792 /* istanbul ignore next */ 5793 yes = yes || classes.indexOf(c) >= 0; 5794 }); 5795 /* istanbul ignore next */ 5796 if (yes) return yes; 5797 /* istanbul ignore next */ 5798 return element.parentNode && hasClassInParent(element.parentNode, className); 5799 }; 5800 5801 /***/ 5802 }), 5803 /* 122 */ 5804 /***/ (function (module, exports, __webpack_require__) { 5805 5806 "use strict"; 5807 5808 5809 module.exports = function bind(fn, thisArg) { 5810 return function wrap() { 5811 var args = new Array(arguments.length); 5812 for (var i = 0; i < args.length; i++) { 5813 args[i] = arguments[i]; 5814 } 5815 return fn.apply(thisArg, args); 5816 }; 5817 }; 5818 5819 5820 /***/ 5821 }), 5822 /* 123 */ 5823 /***/ (function (module, exports, __webpack_require__) { 5824 5825 "use strict"; 5826 5827 5828 var utils = __webpack_require__(10); 5829 5830 function encode(val) { 5831 return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']'); 5832 } 5833 5834 /** 5835 * Build a URL by appending params to the end 5836 * 5837 * @param {string} url The base of the url (e.g., http://www.google.com) 5838 * @param {object} [params] The params to be appended 5839 * @returns {string} The formatted url 5840 */ 5841 module.exports = function buildURL(url, params, paramsSerializer) { 5842 /*eslint no-param-reassign:0*/ 5843 if (!params) { 5844 return url; 5845 } 5846 5847 var serializedParams; 5848 if (paramsSerializer) { 5849 serializedParams = paramsSerializer(params); 5850 } else if (utils.isURLSearchParams(params)) { 5851 serializedParams = params.toString(); 5852 } else { 5853 var parts = []; 5854 5855 utils.forEach(params, function serialize(val, key) { 5856 if (val === null || typeof val === 'undefined') { 5857 return; 5858 } 5859 5860 if (utils.isArray(val)) { 5861 key = key + '[]'; 5862 } else { 5863 val = [val]; 5864 } 5865 5866 utils.forEach(val, function parseValue(v) { 5867 if (utils.isDate(v)) { 5868 v = v.toISOString(); 5869 } else if (utils.isObject(v)) { 5870 v = JSON.stringify(v); 5871 } 5872 parts.push(encode(key) + '=' + encode(v)); 5873 }); 5874 }); 5875 5876 serializedParams = parts.join('&'); 5877 } 5878 5879 if (serializedParams) { 5880 var hashmarkIndex = url.indexOf('#'); 5881 if (hashmarkIndex !== -1) { 5882 url = url.slice(0, hashmarkIndex); 5883 } 5884 5885 url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; 5886 } 5887 5888 return url; 5889 }; 5890 5891 5892 /***/ 5893 }), 5894 /* 124 */ 5895 /***/ (function (module, exports, __webpack_require__) { 5896 5897 "use strict"; 5898 5899 5900 module.exports = function isCancel(value) { 5901 return !!(value && value.__CANCEL__); 5902 }; 5903 5904 5905 /***/ 5906 }), 5907 /* 125 */ 5908 /***/ (function (module, exports, __webpack_require__) { 5909 5910 "use strict"; 5911 /* WEBPACK VAR INJECTION */ 5912 (function (process) { 5913 5914 var utils = __webpack_require__(10); 5915 var normalizeHeaderName = __webpack_require__(288); 5916 5917 var DEFAULT_CONTENT_TYPE = { 5918 'Content-Type': 'application/x-www-form-urlencoded' 5919 }; 5920 5921 function setContentTypeIfUnset(headers, value) { 5922 if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { 5923 headers['Content-Type'] = value; 5924 } 5925 } 5926 5927 function getDefaultAdapter() { 5928 var adapter; 5929 if (typeof XMLHttpRequest !== 'undefined') { 5930 // For browsers use XHR adapter 5931 adapter = __webpack_require__(126); 5932 } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') { 5933 // For node use HTTP adapter 5934 adapter = __webpack_require__(126); 5935 } 5936 return adapter; 5937 } 5938 5939 var defaults = { 5940 adapter: getDefaultAdapter(), 5941 5942 transformRequest: [function transformRequest(data, headers) { 5943 normalizeHeaderName(headers, 'Accept'); 5944 normalizeHeaderName(headers, 'Content-Type'); 5945 if (utils.isFormData(data) || 5946 utils.isArrayBuffer(data) || 5947 utils.isBuffer(data) || 5948 utils.isStream(data) || 5949 utils.isFile(data) || 5950 utils.isBlob(data) 5951 ) { 5952 return data; 5953 } 5954 if (utils.isArrayBufferView(data)) { 5955 return data.buffer; 5956 } 5957 if (utils.isURLSearchParams(data)) { 5958 setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); 5959 return data.toString(); 5960 } 5961 if (utils.isObject(data)) { 5962 setContentTypeIfUnset(headers, 'application/json;charset=utf-8'); 5963 return JSON.stringify(data); 5964 } 5965 return data; 5966 }], 5967 5968 transformResponse: [function transformResponse(data) { 5969 /*eslint no-param-reassign:0*/ 5970 if (typeof data === 'string') { 5971 try { 5972 data = JSON.parse(data); 5973 } catch (e) { /* Ignore */ 5974 } 5975 } 5976 return data; 5977 }], 5978 5979 /** 5980 * A timeout in milliseconds to abort a request. If set to 0 (default) a 5981 * timeout is not created. 5982 */ 5983 timeout: 0, 5984 5985 xsrfCookieName: 'XSRF-TOKEN', 5986 xsrfHeaderName: 'X-XSRF-TOKEN', 5987 5988 maxContentLength: -1, 5989 5990 validateStatus: function validateStatus(status) { 5991 return status >= 200 && status < 300; 5992 } 5993 }; 5994 5995 defaults.headers = { 5996 common: { 5997 'Accept': 'application/json, text/plain, */*' 5998 } 5999 }; 6000 6001 utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { 6002 defaults.headers[method] = {}; 6003 }); 6004 6005 utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { 6006 defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); 6007 }); 6008 6009 module.exports = defaults; 6010 6011 /* WEBPACK VAR INJECTION */ 6012 }.call(exports, __webpack_require__(18))) 6013 6014 /***/ 6015 }), 6016 /* 126 */ 6017 /***/ (function (module, exports, __webpack_require__) { 6018 6019 "use strict"; 6020 6021 6022 var utils = __webpack_require__(10); 6023 var settle = __webpack_require__(289); 6024 var buildURL = __webpack_require__(123); 6025 var buildFullPath = __webpack_require__(291); 6026 var parseHeaders = __webpack_require__(294); 6027 var isURLSameOrigin = __webpack_require__(295); 6028 var createError = __webpack_require__(127); 6029 6030 module.exports = function xhrAdapter(config) { 6031 return new Promise(function dispatchXhrRequest(resolve, reject) { 6032 var requestData = config.data; 6033 var requestHeaders = config.headers; 6034 6035 if (utils.isFormData(requestData)) { 6036 delete requestHeaders['Content-Type']; // Let the browser set it 6037 } 6038 6039 var request = new XMLHttpRequest(); 6040 6041 // HTTP basic authentication 6042 if (config.auth) { 6043 var username = config.auth.username || ''; 6044 var password = config.auth.password || ''; 6045 requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); 6046 } 6047 6048 var fullPath = buildFullPath(config.baseURL, config.url); 6049 request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); 6050 6051 // Set the request timeout in MS 6052 request.timeout = config.timeout; 6053 6054 // Listen for ready state 6055 request.onreadystatechange = function handleLoad() { 6056 if (!request || request.readyState !== 4) { 6057 return; 6058 } 6059 6060 // The request errored out and we didn't get a response, this will be 6061 // handled by onerror instead 6062 // With one exception: request that using file: protocol, most browsers 6063 // will return status as 0 even though it's a successful request 6064 if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { 6065 return; 6066 } 6067 6068 // Prepare the response 6069 var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; 6070 var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response; 6071 var response = { 6072 data: responseData, 6073 status: request.status, 6074 statusText: request.statusText, 6075 headers: responseHeaders, 6076 config: config, 6077 request: request 6078 }; 6079 6080 settle(resolve, reject, response); 6081 6082 // Clean up request 6083 request = null; 6084 }; 6085 6086 // Handle browser request cancellation (as opposed to a manual cancellation) 6087 request.onabort = function handleAbort() { 6088 if (!request) { 6089 return; 6090 } 6091 6092 reject(createError('Request aborted', config, 'ECONNABORTED', request)); 6093 6094 // Clean up request 6095 request = null; 6096 }; 6097 6098 // Handle low level network errors 6099 request.onerror = function handleError() { 6100 // Real errors are hidden from us by the browser 6101 // onerror should only fire if it's a network error 6102 reject(createError('Network Error', config, null, request)); 6103 6104 // Clean up request 6105 request = null; 6106 }; 6107 6108 // Handle timeout 6109 request.ontimeout = function handleTimeout() { 6110 var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded'; 6111 if (config.timeoutErrorMessage) { 6112 timeoutErrorMessage = config.timeoutErrorMessage; 6113 } 6114 reject(createError(timeoutErrorMessage, config, 'ECONNABORTED', 6115 request)); 6116 6117 // Clean up request 6118 request = null; 6119 }; 6120 6121 // Add xsrf header 6122 // This is only done if running in a standard browser environment. 6123 // Specifically not if we're in a web worker, or react-native. 6124 if (utils.isStandardBrowserEnv()) { 6125 var cookies = __webpack_require__(296); 6126 6127 // Add xsrf header 6128 var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? 6129 cookies.read(config.xsrfCookieName) : 6130 undefined; 6131 6132 if (xsrfValue) { 6133 requestHeaders[config.xsrfHeaderName] = xsrfValue; 6134 } 6135 } 6136 6137 // Add headers to the request 6138 if ('setRequestHeader' in request) { 6139 utils.forEach(requestHeaders, function setRequestHeader(val, key) { 6140 if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { 6141 // Remove Content-Type if data is undefined 6142 delete requestHeaders[key]; 6143 } else { 6144 // Otherwise add header to the request 6145 request.setRequestHeader(key, val); 6146 } 6147 }); 6148 } 6149 6150 // Add withCredentials to request if needed 6151 if (!utils.isUndefined(config.withCredentials)) { 6152 request.withCredentials = !!config.withCredentials; 6153 } 6154 6155 // Add responseType to request if needed 6156 if (config.responseType) { 6157 try { 6158 request.responseType = config.responseType; 6159 } catch (e) { 6160 // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2. 6161 // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function. 6162 if (config.responseType !== 'json') { 6163 throw e; 6164 } 6165 } 6166 } 6167 6168 // Handle progress if needed 6169 if (typeof config.onDownloadProgress === 'function') { 6170 request.addEventListener('progress', config.onDownloadProgress); 6171 } 6172 6173 // Not all browsers support upload events 6174 if (typeof config.onUploadProgress === 'function' && request.upload) { 6175 request.upload.addEventListener('progress', config.onUploadProgress); 6176 } 6177 6178 if (config.cancelToken) { 6179 // Handle cancellation 6180 config.cancelToken.promise.then(function onCanceled(cancel) { 6181 if (!request) { 6182 return; 6183 } 6184 6185 request.abort(); 6186 reject(cancel); 6187 // Clean up request 6188 request = null; 6189 }); 6190 } 6191 6192 if (requestData === undefined) { 6193 requestData = null; 6194 } 6195 6196 // Send the request 6197 request.send(requestData); 6198 }); 6199 }; 6200 6201 6202 /***/ 6203 }), 6204 /* 127 */ 6205 /***/ (function (module, exports, __webpack_require__) { 6206 6207 "use strict"; 6208 6209 6210 var enhanceError = __webpack_require__(290); 6211 6212 /** 6213 * Create an Error with the specified message, config, error code, request and response. 6214 * 6215 * @param {string} message The error message. 6216 * @param {Object} config The config. 6217 * @param {string} [code] The error code (for example, 'ECONNABORTED'). 6218 * @param {Object} [request] The request. 6219 * @param {Object} [response] The response. 6220 * @returns {Error} The created error. 6221 */ 6222 module.exports = function createError(message, config, code, request, response) { 6223 var error = new Error(message); 6224 return enhanceError(error, config, code, request, response); 6225 }; 6226 6227 6228 /***/ 6229 }), 6230 /* 128 */ 6231 /***/ (function (module, exports, __webpack_require__) { 6232 6233 "use strict"; 6234 6235 6236 var utils = __webpack_require__(10); 6237 6238 /** 6239 * Config-specific merge-function which creates a new config-object 6240 * by merging two configuration objects together. 6241 * 6242 * @param {Object} config1 6243 * @param {Object} config2 6244 * @returns {Object} New object resulting from merging config2 to config1 6245 */ 6246 module.exports = function mergeConfig(config1, config2) { 6247 // eslint-disable-next-line no-param-reassign 6248 config2 = config2 || {}; 6249 var config = {}; 6250 6251 var valueFromConfig2Keys = ['url', 'method', 'params', 'data']; 6252 var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy']; 6253 var defaultToConfig2Keys = [ 6254 'baseURL', 'url', 'transformRequest', 'transformResponse', 'paramsSerializer', 6255 'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', 6256 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 6257 'maxContentLength', 'validateStatus', 'maxRedirects', 'httpAgent', 6258 'httpsAgent', 'cancelToken', 'socketPath' 6259 ]; 6260 6261 utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) { 6262 if (typeof config2[prop] !== 'undefined') { 6263 config[prop] = config2[prop]; 6264 } 6265 }); 6266 6267 utils.forEach(mergeDeepPropertiesKeys, function mergeDeepProperties(prop) { 6268 if (utils.isObject(config2[prop])) { 6269 config[prop] = utils.deepMerge(config1[prop], config2[prop]); 6270 } else if (typeof config2[prop] !== 'undefined') { 6271 config[prop] = config2[prop]; 6272 } else if (utils.isObject(config1[prop])) { 6273 config[prop] = utils.deepMerge(config1[prop]); 6274 } else if (typeof config1[prop] !== 'undefined') { 6275 config[prop] = config1[prop]; 6276 } 6277 }); 6278 6279 utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) { 6280 if (typeof config2[prop] !== 'undefined') { 6281 config[prop] = config2[prop]; 6282 } else if (typeof config1[prop] !== 'undefined') { 6283 config[prop] = config1[prop]; 6284 } 6285 }); 6286 6287 var axiosKeys = valueFromConfig2Keys 6288 .concat(mergeDeepPropertiesKeys) 6289 .concat(defaultToConfig2Keys); 6290 6291 var otherKeys = Object 6292 .keys(config2) 6293 .filter(function filterAxiosKeys(key) { 6294 return axiosKeys.indexOf(key) === -1; 6295 }); 6296 6297 utils.forEach(otherKeys, function otherKeysDefaultToConfig2(prop) { 6298 if (typeof config2[prop] !== 'undefined') { 6299 config[prop] = config2[prop]; 6300 } else if (typeof config1[prop] !== 'undefined') { 6301 config[prop] = config1[prop]; 6302 } 6303 }); 6304 6305 return config; 6306 }; 6307 6308 6309 /***/ 6310 }), 6311 /* 129 */ 6312 /***/ (function (module, exports, __webpack_require__) { 6313 6314 "use strict"; 6315 6316 6317 /** 6318 * A `Cancel` is an object that is thrown when an operation is canceled. 6319 * 6320 * @class 6321 * @param {string=} message The message. 6322 */ 6323 function Cancel(message) { 6324 this.message = message; 6325 } 6326 6327 Cancel.prototype.toString = function toString() { 6328 return 'Cancel' + (this.message ? ': ' + this.message : ''); 6329 }; 6330 6331 Cancel.prototype.__CANCEL__ = true; 6332 6333 module.exports = Cancel; 6334 6335 6336 /***/ 6337 }), 6338 /* 130 */ 6339 /***/ (function (module, exports, __webpack_require__) { 6340 6341 "use strict"; 6342 6343 6344 Object.defineProperty(exports, "__esModule", { 6345 value: true 6346 }); 6347 6348 var _react = __webpack_require__(12); 6349 6350 var _react2 = _interopRequireDefault(_react); 6351 6352 function _interopRequireDefault(obj) { 6353 return obj && obj.__esModule ? obj : {default: obj}; 6354 } 6355 6356 exports.default = function (_ref) { 6357 var src = _ref.src, 6358 className = _ref.className, 6359 alt = _ref.alt, 6360 _ref$defaultSrc = _ref.defaultSrc, 6361 defaultSrc = _ref$defaultSrc === undefined ? '//cdn.jsdelivr.net/npm/gitalk@1/src/assets/icon/github.svg' : _ref$defaultSrc; 6362 return _react2.default.createElement( 6363 'div', 6364 {className: 'gt-avatar ' + className}, 6365 _react2.default.createElement('img', { 6366 src: src || defaultSrc, alt: '@' + alt, onError: function onError(e) { 6367 e.target.src = defaultSrc; 6368 } 6369 }) 6370 ); 6371 }; 6372 6373 /***/ 6374 }), 6375 /* 131 */ 6376 /***/ (function (module, exports, __webpack_require__) { 6377 6378 "use strict"; 6379 6380 6381 Object.defineProperty(exports, "__esModule", { 6382 value: true 6383 }); 6384 6385 var _react = __webpack_require__(12); 6386 6387 var _react2 = _interopRequireDefault(_react); 6388 6389 function _interopRequireDefault(obj) { 6390 return obj && obj.__esModule ? obj : {default: obj}; 6391 } 6392 6393 exports.default = function (_ref) { 6394 var className = _ref.className, 6395 text = _ref.text, 6396 name = _ref.name; 6397 return _react2.default.createElement( 6398 "span", 6399 {className: "gt-ico " + className}, 6400 _react2.default.createElement("span", { 6401 className: "gt-svg", dangerouslySetInnerHTML: { 6402 __html: __webpack_require__(302)("./" + name + ".svg") 6403 } 6404 }), 6405 text && _react2.default.createElement( 6406 "span", 6407 {className: "gt-ico-text"}, 6408 text 6409 ) 6410 ); 6411 }; 6412 6413 /***/ 6414 }), 6415 /* 132 */ 6416 /***/ (function (module, __webpack_exports__, __webpack_require__) { 6417 6418 "use strict"; 6419 /* harmony export (immutable) */ 6420 __webpack_exports__["a"] = addBusinessDays; 6421 /* harmony import */ 6422 var __WEBPACK_IMPORTED_MODULE_0__isWeekend_index_js__ = __webpack_require__(56); 6423 /* harmony import */ 6424 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 6425 /* harmony import */ 6426 var __WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__ = __webpack_require__(6); 6427 /* harmony import */ 6428 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 6429 /* harmony import */ 6430 var __WEBPACK_IMPORTED_MODULE_4__isSunday_index_js__ = __webpack_require__(83); 6431 /* harmony import */ 6432 var __WEBPACK_IMPORTED_MODULE_5__isSaturday_index_js__ = __webpack_require__(133); 6433 6434 6435 /** 6436 * @name addBusinessDays 6437 * @category Day Helpers 6438 * @summary Add the specified number of business days (mon - fri) to the given date. 6439 *
6440 * @description 6441 * Add the specified number of business days (mon - fri) to the given date, ignoring weekends. 6442 * 6443 * @param {Date|Number} date - the date to be changed 6444 * @param {Number} amount - the amount of business days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 6445 * @returns {Date} the new date with the business days added 6446 * @throws {TypeError} 2 arguments required 6447 * 6448 * @example 6449 * // Add 10 business days to 1 September 2014: 6450 * var result = addBusinessDays(new Date(2014, 8, 1), 10) 6451 * //=> Mon Sep 15 2014 00:00:00 (skipped weekend days) 6452 */ 6453 6454 function addBusinessDays(dirtyDate, dirtyAmount) { 6455 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 6456 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 6457 var startedOnWeekend = __WEBPACK_IMPORTED_MODULE_0__isWeekend_index_js__["a" /* default */](date); 6458 var amount = __WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 6459 if (isNaN(amount)) return new Date(NaN); 6460 var hours = date.getHours(); 6461 var sign = amount < 0 ? -1 : 1; 6462 var fullWeeks = __WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__["a" /* default */](amount / 5); 6463 date.setDate(date.getDate() + fullWeeks * 7); // Get remaining days not part of a full week 6464 6465 var restDays = Math.abs(amount % 5); // Loops over remaining days 6466 6467 while (restDays > 0) { 6468 date.setDate(date.getDate() + sign); 6469 if (!__WEBPACK_IMPORTED_MODULE_0__isWeekend_index_js__["a" /* default */](date)) restDays -= 1; 6470 } // If the date is a weekend day and we reduce a dividable of 6471 // 5 from it, we land on a weekend date. 6472 // To counter this, we add days accordingly to land on the next business day 6473 6474 6475 if (startedOnWeekend && __WEBPACK_IMPORTED_MODULE_0__isWeekend_index_js__["a" /* default */](date) && amount !== 0) { 6476 // If we're reducing days, we want to add days until we land on a weekday 6477 // If we're adding days we want to reduce days until we land on a weekday 6478 if (__WEBPACK_IMPORTED_MODULE_5__isSaturday_index_js__["a" /* default */](date)) date.setDate(date.getDate() + (sign < 0 ? 2 : -1)); 6479 if (__WEBPACK_IMPORTED_MODULE_4__isSunday_index_js__["a" /* default */](date)) date.setDate(date.getDate() + (sign < 0 ? 1 : -2)); 6480 } // Restore hours to avoid DST lag 6481 6482 6483 date.setHours(hours); 6484 return date; 6485 } 6486 6487 /***/ 6488 }), 6489 /* 133 */ 6490 /***/ (function (module, __webpack_exports__, __webpack_require__) { 6491 6492 "use strict"; 6493 /* harmony export (immutable) */ 6494 __webpack_exports__["a"] = isSaturday; 6495 /* harmony import */ 6496 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 6497 /* harmony import */ 6498 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 6499 6500 6501 /** 6502 * @name isSaturday 6503 * @category Weekday Helpers 6504 * @summary Is the given date Saturday? 6505 * 6506 * @description 6507 * Is the given date Saturday? 6508 * 6509 * ### v2.0.0 breaking changes: 6510 * 6511 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 6512 * 6513 * @param {Date|Number} date - the date to check 6514 * @returns {Boolean} the date is Saturday 6515 * @throws {TypeError} 1 argument required 6516 * 6517 * @example 6518 * // Is 27 September 2014 Saturday? 6519 * var result = isSaturday(new Date(2014, 8, 27)) 6520 * //=> true 6521 */ 6522 6523 function isSaturday(dirtyDate) { 6524 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 6525 return __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate).getDay() === 6; 6526 } 6527 6528 /***/ 6529 }), 6530 /* 134 */ 6531 /***/ (function (module, __webpack_exports__, __webpack_require__) { 6532 6533 "use strict"; 6534 /* harmony export (immutable) */ 6535 __webpack_exports__["a"] = addISOWeekYears; 6536 /* harmony import */ 6537 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 6538 /* harmony import */ 6539 var __WEBPACK_IMPORTED_MODULE_1__getISOWeekYear_index_js__ = __webpack_require__(34); 6540 /* harmony import */ 6541 var __WEBPACK_IMPORTED_MODULE_2__setISOWeekYear_index_js__ = __webpack_require__(135); 6542 /* harmony import */ 6543 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 6544 6545 6546 /** 6547 * @name addISOWeekYears 6548 * @category ISO Week-Numbering Year Helpers 6549 * @summary Add the specified number of ISO week-numbering years to the given date. 6550 *
6551 * @description 6552 * Add the specified number of ISO week-numbering years to the given date. 6553 * 6554 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 6555 * 6556 * ### v2.0.0 breaking changes: 6557 * 6558 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 6559 * 6560 * - The function was renamed from `addISOYears` to `addISOWeekYears`. 6561 * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). 6562 * This change makes the name consistent with 6563 * locale-dependent week-numbering year helpers, e.g., `addWeekYears`. 6564 * 6565 * @param {Date|Number} date - the date to be changed 6566 * @param {Number} amount - the amount of ISO week-numbering years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 6567 * @returns {Date} the new date with the ISO week-numbering years added 6568 * @throws {TypeError} 2 arguments required 6569 * 6570 * @example 6571 * // Add 5 ISO week-numbering years to 2 July 2010: 6572 * var result = addISOWeekYears(new Date(2010, 6, 2), 5) 6573 * //=> Fri Jun 26 2015 00:00:00 6574 */ 6575 6576 function addISOWeekYears(dirtyDate, dirtyAmount) { 6577 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 6578 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 6579 return __WEBPACK_IMPORTED_MODULE_2__setISOWeekYear_index_js__["a" /* default */](dirtyDate, __WEBPACK_IMPORTED_MODULE_1__getISOWeekYear_index_js__["a" /* default */](dirtyDate) + amount); 6580 } 6581 6582 /***/ 6583 }), 6584 /* 135 */ 6585 /***/ (function (module, __webpack_exports__, __webpack_require__) { 6586 6587 "use strict"; 6588 /* harmony export (immutable) */ 6589 __webpack_exports__["a"] = setISOWeekYear; 6590 /* harmony import */ 6591 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 6592 /* harmony import */ 6593 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 6594 /* harmony import */ 6595 var __WEBPACK_IMPORTED_MODULE_2__startOfISOWeekYear_index_js__ = __webpack_require__(46); 6596 /* harmony import */ 6597 var __WEBPACK_IMPORTED_MODULE_3__differenceInCalendarDays_index_js__ = __webpack_require__(26); 6598 /* harmony import */ 6599 var __WEBPACK_IMPORTED_MODULE_4__lib_requiredArgs_index_js__ = __webpack_require__(0); 6600 6601 6602 /** 6603 * @name setISOWeekYear 6604 * @category ISO Week-Numbering Year Helpers 6605 * @summary Set the ISO week-numbering year to the given date. 6606 * 6607 * @description 6608 * Set the ISO week-numbering year to the given date, 6609 * saving the week number and the weekday number. 6610 * 6611 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 6612 * 6613 * ### v2.0.0 breaking changes: 6614 * 6615 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 6616 * 6617 * - The function was renamed from `setISOYear` to `setISOWeekYear`. 6618 * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). 6619 * This change makes the name consistent with 6620 * locale-dependent week-numbering year helpers, e.g., `setWeekYear`. 6621 * 6622 * @param {Date|Number} date - the date to be changed 6623 * @param {Number} isoWeekYear - the ISO week-numbering year of the new date 6624 * @returns {Date} the new date with the ISO week-numbering year set 6625 * @throws {TypeError} 2 arguments required 6626 * 6627 * @example 6628 * // Set ISO week-numbering year 2007 to 29 December 2008: 6629 * var result = setISOWeekYear(new Date(2008, 11, 29), 2007) 6630 * //=> Mon Jan 01 2007 00:00:00 6631 */ 6632 6633 function setISOWeekYear(dirtyDate, dirtyISOWeekYear) { 6634 __WEBPACK_IMPORTED_MODULE_4__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 6635 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 6636 var isoWeekYear = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyISOWeekYear); 6637 var diff = __WEBPACK_IMPORTED_MODULE_3__differenceInCalendarDays_index_js__["a" /* default */](date, __WEBPACK_IMPORTED_MODULE_2__startOfISOWeekYear_index_js__["a" /* default */](date)); 6638 var fourthOfJanuary = new Date(0); 6639 fourthOfJanuary.setFullYear(isoWeekYear, 0, 4); 6640 fourthOfJanuary.setHours(0, 0, 0, 0); 6641 date = __WEBPACK_IMPORTED_MODULE_2__startOfISOWeekYear_index_js__["a" /* default */](fourthOfJanuary); 6642 date.setDate(date.getDate() + diff); 6643 return date; 6644 } 6645 6646 /***/ 6647 }), 6648 /* 136 */ 6649 /***/ (function (module, __webpack_exports__, __webpack_require__) { 6650 6651 "use strict"; 6652 /* harmony export (immutable) */ 6653 __webpack_exports__["a"] = addMinutes; 6654 /* harmony import */ 6655 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 6656 /* harmony import */ 6657 var __WEBPACK_IMPORTED_MODULE_1__addMilliseconds_index_js__ = __webpack_require__(45); 6658 /* harmony import */ 6659 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 6660 6661 6662 var MILLISECONDS_IN_MINUTE = 60000; 6663 6664 /** 6665 * @name addMinutes 6666 * @category Minute Helpers 6667 * @summary Add the specified number of minutes to the given date. 6668 *
6669 * @description 6670 * Add the specified number of minutes to the given date. 6671 * 6672 * ### v2.0.0 breaking changes: 6673 * 6674 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 6675 * 6676 * @param {Date|Number} date - the date to be changed 6677 * @param {Number} amount - the amount of minutes to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 6678 * @returns {Date} the new date with the minutes added 6679 * @throws {TypeError} 2 arguments required 6680 * 6681 * @example 6682 * // Add 30 minutes to 10 July 2014 12:00:00: 6683 * var result = addMinutes(new Date(2014, 6, 10, 12, 0), 30) 6684 * //=> Thu Jul 10 2014 12:30:00 6685 */ 6686 6687 function addMinutes(dirtyDate, dirtyAmount) { 6688 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 6689 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 6690 return __WEBPACK_IMPORTED_MODULE_1__addMilliseconds_index_js__["a" /* default */](dirtyDate, amount * MILLISECONDS_IN_MINUTE); 6691 } 6692 6693 /***/ 6694 }), 6695 /* 137 */ 6696 /***/ (function (module, __webpack_exports__, __webpack_require__) { 6697 6698 "use strict"; 6699 /* harmony export (immutable) */ 6700 __webpack_exports__["a"] = addSeconds; 6701 /* harmony import */ 6702 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 6703 /* harmony import */ 6704 var __WEBPACK_IMPORTED_MODULE_1__addMilliseconds_index_js__ = __webpack_require__(45); 6705 /* harmony import */ 6706 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 6707 6708 6709 /** 6710 * @name addSeconds 6711 * @category Second Helpers 6712 * @summary Add the specified number of seconds to the given date. 6713 * 6714 * @description 6715 * Add the specified number of seconds to the given date. 6716 * 6717 * ### v2.0.0 breaking changes: 6718 * 6719 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 6720 * 6721 * @param {Date|Number} date - the date to be changed 6722 * @param {Number} amount - the amount of seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 6723 * @returns {Date} the new date with the seconds added 6724 * @throws {TypeError} 2 arguments required 6725 * 6726 * @example 6727 * // Add 30 seconds to 10 July 2014 12:45:00: 6728 * var result = addSeconds(new Date(2014, 6, 10, 12, 45, 0), 30) 6729 * //=> Thu Jul 10 2014 12:45:30 6730 */ 6731 6732 function addSeconds(dirtyDate, dirtyAmount) { 6733 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 6734 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 6735 return __WEBPACK_IMPORTED_MODULE_1__addMilliseconds_index_js__["a" /* default */](dirtyDate, amount * 1000); 6736 } 6737 6738 /***/ 6739 }), 6740 /* 138 */ 6741 /***/ (function (module, __webpack_exports__, __webpack_require__) { 6742 6743 "use strict"; 6744 /* harmony export (immutable) */ 6745 __webpack_exports__["a"] = addYears; 6746 /* harmony import */ 6747 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 6748 /* harmony import */ 6749 var __WEBPACK_IMPORTED_MODULE_1__addMonths_index_js__ = __webpack_require__(44); 6750 /* harmony import */ 6751 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 6752 6753 6754 /** 6755 * @name addYears 6756 * @category Year Helpers 6757 * @summary Add the specified number of years to the given date. 6758 *
6759 * @description 6760 * Add the specified number of years to the given date. 6761 * 6762 * ### v2.0.0 breaking changes: 6763 * 6764 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 6765 * 6766 * @param {Date|Number} date - the date to be changed 6767 * @param {Number} amount - the amount of years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 6768 * @returns {Date} the new date with the years added 6769 * @throws {TypeError} 2 arguments required 6770 * 6771 * @example 6772 * // Add 5 years to 1 September 2014: 6773 * var result = addYears(new Date(2014, 8, 1), 5) 6774 * //=> Sun Sep 01 2019 00:00:00 6775 */ 6776 6777 function addYears(dirtyDate, dirtyAmount) { 6778 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 6779 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 6780 return __WEBPACK_IMPORTED_MODULE_1__addMonths_index_js__["a" /* default */](dirtyDate, amount * 12); 6781 } 6782 6783 /***/ 6784 }), 6785 /* 139 */ 6786 /***/ (function (module, __webpack_exports__, __webpack_require__) { 6787 6788 "use strict"; 6789 /* harmony export (immutable) */ 6790 __webpack_exports__["a"] = differenceInCalendarISOWeekYears; 6791 /* harmony import */ 6792 var __WEBPACK_IMPORTED_MODULE_0__getISOWeekYear_index_js__ = __webpack_require__(34); 6793 /* harmony import */ 6794 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 6795 6796 6797 /** 6798 * @name differenceInCalendarISOWeekYears 6799 * @category ISO Week-Numbering Year Helpers 6800 * @summary Get the number of calendar ISO week-numbering years between the given dates. 6801 * 6802 * @description 6803 * Get the number of calendar ISO week-numbering years between the given dates. 6804 * 6805 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 6806 * 6807 * ### v2.0.0 breaking changes: 6808 * 6809 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 6810 * 6811 * - The function was renamed from `differenceInCalendarISOYears` to `differenceInCalendarISOWeekYears`. 6812 * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). 6813 * This change makes the name consistent with 6814 * locale-dependent week-numbering year helpers, e.g., `addWeekYears`. 6815 * 6816 * @param {Date|Number} dateLeft - the later date 6817 * @param {Date|Number} dateRight - the earlier date 6818 * @returns {Number} the number of calendar ISO week-numbering years 6819 * @throws {TypeError} 2 arguments required 6820 * 6821 * @example 6822 * // How many calendar ISO week-numbering years are 1 January 2010 and 1 January 2012? 6823 * var result = differenceInCalendarISOWeekYears( 6824 * new Date(2012, 0, 1), 6825 * new Date(2010, 0, 1) 6826 * ) 6827 * //=> 2 6828 */ 6829 6830 function differenceInCalendarISOWeekYears(dirtyDateLeft, dirtyDateRight) { 6831 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 6832 return __WEBPACK_IMPORTED_MODULE_0__getISOWeekYear_index_js__["a" /* default */](dirtyDateLeft) - __WEBPACK_IMPORTED_MODULE_0__getISOWeekYear_index_js__["a" /* default */](dirtyDateRight); 6833 } 6834 6835 /***/ 6836 }), 6837 /* 140 */ 6838 /***/ (function (module, __webpack_exports__, __webpack_require__) { 6839 6840 "use strict"; 6841 /* harmony export (immutable) */ 6842 __webpack_exports__["a"] = differenceInCalendarMonths; 6843 /* harmony import */ 6844 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 6845 /* harmony import */ 6846 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 6847 6848 6849 /** 6850 * @name differenceInCalendarMonths 6851 * @category Month Helpers 6852 * @summary Get the number of calendar months between the given dates. 6853 *
6854 * @description 6855 * Get the number of calendar months between the given dates. 6856 * 6857 * ### v2.0.0 breaking changes: 6858 * 6859 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 6860 * 6861 * @param {Date|Number} dateLeft - the later date 6862 * @param {Date|Number} dateRight - the earlier date 6863 * @returns {Number} the number of calendar months 6864 * @throws {TypeError} 2 arguments required 6865 * 6866 * @example 6867 * // How many calendar months are between 31 January 2014 and 1 September 2014? 6868 * var result = differenceInCalendarMonths( 6869 * new Date(2014, 8, 1), 6870 * new Date(2014, 0, 31) 6871 * ) 6872 * //=> 8 6873 */ 6874 6875 function differenceInCalendarMonths(dirtyDateLeft, dirtyDateRight) { 6876 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 6877 var dateLeft = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateLeft); 6878 var dateRight = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateRight); 6879 var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear(); 6880 var monthDiff = dateLeft.getMonth() - dateRight.getMonth(); 6881 return yearDiff * 12 + monthDiff; 6882 } 6883 6884 /***/ 6885 }), 6886 /* 141 */ 6887 /***/ (function (module, __webpack_exports__, __webpack_require__) { 6888 6889 "use strict"; 6890 /* harmony export (immutable) */ 6891 __webpack_exports__["a"] = getQuarter; 6892 /* harmony import */ 6893 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 6894 /* harmony import */ 6895 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 6896 6897 6898 /** 6899 * @name getQuarter 6900 * @category Quarter Helpers 6901 * @summary Get the year quarter of the given date. 6902 * 6903 * @description 6904 * Get the year quarter of the given date. 6905 * 6906 * ### v2.0.0 breaking changes: 6907 * 6908 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 6909 * 6910 * @param {Date|Number} date - the given date 6911 * @returns {Number} the quarter 6912 * @throws {TypeError} 1 argument required 6913 * 6914 * @example 6915 * // Which quarter is 2 July 2014? 6916 * var result = getQuarter(new Date(2014, 6, 2)) 6917 * //=> 3 6918 */ 6919 6920 function getQuarter(dirtyDate) { 6921 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 6922 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 6923 var quarter = Math.floor(date.getMonth() / 3) + 1; 6924 return quarter; 6925 } 6926 6927 /***/ 6928 }), 6929 /* 142 */ 6930 /***/ (function (module, __webpack_exports__, __webpack_require__) { 6931 6932 "use strict"; 6933 /* harmony export (immutable) */ 6934 __webpack_exports__["a"] = differenceInCalendarWeeks; 6935 /* harmony import */ 6936 var __WEBPACK_IMPORTED_MODULE_0__startOfWeek_index_js__ = __webpack_require__(22); 6937 /* harmony import */ 6938 var __WEBPACK_IMPORTED_MODULE_1__lib_getTimezoneOffsetInMilliseconds_index_js__ = __webpack_require__(19); 6939 /* harmony import */ 6940 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 6941 6942 6943 var MILLISECONDS_IN_WEEK = 604800000; 6944 6945 /** 6946 * @name differenceInCalendarWeeks 6947 * @category Week Helpers 6948 * @summary Get the number of calendar weeks between the given dates. 6949 *
6950 * @description 6951 * Get the number of calendar weeks between the given dates. 6952 * 6953 * ### v2.0.0 breaking changes: 6954 * 6955 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 6956 * 6957 * @param {Date|Number} dateLeft - the later date 6958 * @param {Date|Number} dateRight - the earlier date 6959 * @param {Object} [options] - an object with options. 6960 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 6961 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 6962 * @returns {Number} the number of calendar weeks 6963 * @throws {TypeError} 2 arguments required 6964 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 6965 * 6966 * @example 6967 * // How many calendar weeks are between 5 July 2014 and 20 July 2014? 6968 * var result = differenceInCalendarWeeks( 6969 * new Date(2014, 6, 20), 6970 * new Date(2014, 6, 5) 6971 * ) 6972 * //=> 3 6973 * 6974 * @example 6975 * // If the week starts on Monday, 6976 * // how many calendar weeks are between 5 July 2014 and 20 July 2014? 6977 * var result = differenceInCalendarWeeks( 6978 * new Date(2014, 6, 20), 6979 * new Date(2014, 6, 5), 6980 * { weekStartsOn: 1 } 6981 * ) 6982 * //=> 2 6983 */ 6984 6985 function differenceInCalendarWeeks(dirtyDateLeft, dirtyDateRight, dirtyOptions) { 6986 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 6987 var startOfWeekLeft = __WEBPACK_IMPORTED_MODULE_0__startOfWeek_index_js__["a" /* default */](dirtyDateLeft, dirtyOptions); 6988 var startOfWeekRight = __WEBPACK_IMPORTED_MODULE_0__startOfWeek_index_js__["a" /* default */](dirtyDateRight, dirtyOptions); 6989 var timestampLeft = startOfWeekLeft.getTime() - __WEBPACK_IMPORTED_MODULE_1__lib_getTimezoneOffsetInMilliseconds_index_js__["a" /* default */](startOfWeekLeft); 6990 var timestampRight = startOfWeekRight.getTime() - __WEBPACK_IMPORTED_MODULE_1__lib_getTimezoneOffsetInMilliseconds_index_js__["a" /* default */](startOfWeekRight); // Round the number of days to the nearest integer 6991 // because the number of milliseconds in a week is not constant 6992 // (e.g. it's different in the week of the daylight saving time clock shift) 6993 6994 return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_WEEK); 6995 } 6996 6997 /***/ 6998 }), 6999 /* 143 */ 7000 /***/ (function (module, __webpack_exports__, __webpack_require__) { 7001 7002 "use strict"; 7003 /* harmony export (immutable) */ 7004 __webpack_exports__["a"] = differenceInCalendarYears; 7005 /* harmony import */ 7006 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 7007 /* harmony import */ 7008 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 7009 7010 7011 /** 7012 * @name differenceInCalendarYears 7013 * @category Year Helpers 7014 * @summary Get the number of calendar years between the given dates. 7015 * 7016 * @description 7017 * Get the number of calendar years between the given dates. 7018 * 7019 * ### v2.0.0 breaking changes: 7020 * 7021 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 7022 * 7023 * @param {Date|Number} dateLeft - the later date 7024 * @param {Date|Number} dateRight - the earlier date 7025 * @returns {Number} the number of calendar years 7026 * @throws {TypeError} 2 arguments required 7027 * 7028 * @example 7029 * // How many calendar years are between 31 December 2013 and 11 February 2015? 7030 * var result = differenceInCalendarYears( 7031 * new Date(2015, 1, 11), 7032 * new Date(2013, 11, 31) 7033 * ) 7034 * //=> 2 7035 */ 7036 7037 function differenceInCalendarYears(dirtyDateLeft, dirtyDateRight) { 7038 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 7039 var dateLeft = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateLeft); 7040 var dateRight = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateRight); 7041 return dateLeft.getFullYear() - dateRight.getFullYear(); 7042 } 7043 7044 /***/ 7045 }), 7046 /* 144 */ 7047 /***/ (function (module, __webpack_exports__, __webpack_require__) { 7048 7049 "use strict"; 7050 /* harmony export (immutable) */ 7051 __webpack_exports__["a"] = differenceInHours; 7052 /* harmony import */ 7053 var __WEBPACK_IMPORTED_MODULE_0__differenceInMilliseconds_index_js__ = __webpack_require__(59); 7054 /* harmony import */ 7055 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 7056 7057 7058 var MILLISECONDS_IN_HOUR = 3600000; 7059 7060 /** 7061 * @name differenceInHours 7062 * @category Hour Helpers 7063 * @summary Get the number of hours between the given dates. 7064 *
7065 * @description 7066 * Get the number of hours between the given dates. 7067 * 7068 * ### v2.0.0 breaking changes: 7069 * 7070 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 7071 * 7072 * @param {Date|Number} dateLeft - the later date 7073 * @param {Date|Number} dateRight - the earlier date 7074 * @returns {Number} the number of hours 7075 * @throws {TypeError} 2 arguments required 7076 * 7077 * @example 7078 * // How many hours are between 2 July 2014 06:50:00 and 2 July 2014 19:00:00? 7079 * var result = differenceInHours( 7080 * new Date(2014, 6, 2, 19, 0), 7081 * new Date(2014, 6, 2, 6, 50) 7082 * ) 7083 * //=> 12 7084 */ 7085 7086 function differenceInHours(dirtyDateLeft, dirtyDateRight) { 7087 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 7088 var diff = __WEBPACK_IMPORTED_MODULE_0__differenceInMilliseconds_index_js__["a" /* default */](dirtyDateLeft, dirtyDateRight) / MILLISECONDS_IN_HOUR; 7089 return diff > 0 ? Math.floor(diff) : Math.ceil(diff); 7090 } 7091 7092 /***/ 7093 }), 7094 /* 145 */ 7095 /***/ (function (module, __webpack_exports__, __webpack_require__) { 7096 7097 "use strict"; 7098 /* harmony export (immutable) */ 7099 __webpack_exports__["a"] = subISOWeekYears; 7100 /* harmony import */ 7101 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 7102 /* harmony import */ 7103 var __WEBPACK_IMPORTED_MODULE_1__addISOWeekYears_index_js__ = __webpack_require__(134); 7104 /* harmony import */ 7105 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 7106 7107 7108 /** 7109 * @name subISOWeekYears 7110 * @category ISO Week-Numbering Year Helpers 7111 * @summary Subtract the specified number of ISO week-numbering years from the given date. 7112 * 7113 * @description 7114 * Subtract the specified number of ISO week-numbering years from the given date. 7115 * 7116 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 7117 * 7118 * ### v2.0.0 breaking changes: 7119 * 7120 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 7121 * 7122 * - The function was renamed from `subISOYears` to `subISOWeekYears`. 7123 * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). 7124 * This change makes the name consistent with 7125 * locale-dependent week-numbering year helpers, e.g., `setWeekYear`. 7126 * 7127 * @param {Date|Number} date - the date to be changed 7128 * @param {Number} amount - the amount of ISO week-numbering years to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 7129 * @returns {Date} the new date with the ISO week-numbering years subtracted 7130 * @throws {TypeError} 2 arguments required 7131 * 7132 * @example 7133 * // Subtract 5 ISO week-numbering years from 1 September 2014: 7134 * var result = subISOWeekYears(new Date(2014, 8, 1), 5) 7135 * //=> Mon Aug 31 2009 00:00:00 7136 */ 7137 7138 function subISOWeekYears(dirtyDate, dirtyAmount) { 7139 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 7140 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 7141 return __WEBPACK_IMPORTED_MODULE_1__addISOWeekYears_index_js__["a" /* default */](dirtyDate, -amount); 7142 } 7143 7144 /***/ 7145 }), 7146 /* 146 */ 7147 /***/ (function (module, __webpack_exports__, __webpack_require__) { 7148 7149 "use strict"; 7150 /* harmony export (immutable) */ 7151 __webpack_exports__["a"] = differenceInMinutes; 7152 /* harmony import */ 7153 var __WEBPACK_IMPORTED_MODULE_0__differenceInMilliseconds_index_js__ = __webpack_require__(59); 7154 /* harmony import */ 7155 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 7156 7157 7158 var MILLISECONDS_IN_MINUTE = 60000; 7159 7160 /** 7161 * @name differenceInMinutes 7162 * @category Minute Helpers 7163 * @summary Get the number of minutes between the given dates. 7164 *
7165 * @description 7166 * Get the signed number of full (rounded towards 0) minutes between the given dates. 7167 * 7168 * ### v2.0.0 breaking changes: 7169 * 7170 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 7171 * 7172 * @param {Date|Number} dateLeft - the later date 7173 * @param {Date|Number} dateRight - the earlier date 7174 * @returns {Number} the number of minutes 7175 * @throws {TypeError} 2 arguments required 7176 * 7177 * @example 7178 * // How many minutes are between 2 July 2014 12:07:59 and 2 July 2014 12:20:00? 7179 * var result = differenceInMinutes( 7180 * new Date(2014, 6, 2, 12, 20, 0), 7181 * new Date(2014, 6, 2, 12, 7, 59) 7182 * ) 7183 * //=> 12 7184 * 7185 * @example 7186 * // How many minutes are from 10:01:59 to 10:00:00 7187 * var result = differenceInMinutes( 7188 * new Date(2000, 0, 1, 10, 0, 0), 7189 * new Date(2000, 0, 1, 10, 1, 59) 7190 * ) 7191 * //=> -1 7192 */ 7193 7194 function differenceInMinutes(dirtyDateLeft, dirtyDateRight) { 7195 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 7196 var diff = __WEBPACK_IMPORTED_MODULE_0__differenceInMilliseconds_index_js__["a" /* default */](dirtyDateLeft, dirtyDateRight) / MILLISECONDS_IN_MINUTE; 7197 return diff > 0 ? Math.floor(diff) : Math.ceil(diff); 7198 } 7199 7200 /***/ 7201 }), 7202 /* 147 */ 7203 /***/ (function (module, __webpack_exports__, __webpack_require__) { 7204 7205 "use strict"; 7206 /* harmony export (immutable) */ 7207 __webpack_exports__["a"] = differenceInYears; 7208 /* harmony import */ 7209 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 7210 /* harmony import */ 7211 var __WEBPACK_IMPORTED_MODULE_1__differenceInCalendarYears_index_js__ = __webpack_require__(143); 7212 /* harmony import */ 7213 var __WEBPACK_IMPORTED_MODULE_2__compareAsc_index_js__ = __webpack_require__(27); 7214 /* harmony import */ 7215 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 7216 7217 7218 /** 7219 * @name differenceInYears 7220 * @category Year Helpers 7221 * @summary Get the number of full years between the given dates. 7222 * 7223 * @description 7224 * Get the number of full years between the given dates. 7225 * 7226 * ### v2.0.0 breaking changes: 7227 * 7228 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 7229 * 7230 * @param {Date|Number} dateLeft - the later date 7231 * @param {Date|Number} dateRight - the earlier date 7232 * @returns {Number} the number of full years 7233 * @throws {TypeError} 2 arguments required 7234 * 7235 * @example 7236 * // How many full years are between 31 December 2013 and 11 February 2015? 7237 * var result = differenceInYears(new Date(2015, 1, 11), new Date(2013, 11, 31)) 7238 * //=> 1 7239 */ 7240 7241 function differenceInYears(dirtyDateLeft, dirtyDateRight) { 7242 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 7243 var dateLeft = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateLeft); 7244 var dateRight = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateRight); 7245 var sign = __WEBPACK_IMPORTED_MODULE_2__compareAsc_index_js__["a" /* default */](dateLeft, dateRight); 7246 var difference = Math.abs(__WEBPACK_IMPORTED_MODULE_1__differenceInCalendarYears_index_js__["a" /* default */](dateLeft, dateRight)); // Set both dates to a valid leap year for accurate comparison when dealing 7247 // with leap days 7248 7249 dateLeft.setFullYear('1584'); 7250 dateRight.setFullYear('1584'); // Math.abs(diff in full years - diff in calendar years) === 1 if last calendar year is not full 7251 // If so, result must be decreased by 1 in absolute value 7252 7253 var isLastYearNotFull = __WEBPACK_IMPORTED_MODULE_2__compareAsc_index_js__["a" /* default */](dateLeft, dateRight) === -sign; 7254 var result = sign * (difference - isLastYearNotFull); // Prevent negative zero 7255 7256 return result === 0 ? 0 : result; 7257 } 7258 7259 /***/ 7260 }), 7261 /* 148 */ 7262 /***/ (function (module, __webpack_exports__, __webpack_require__) { 7263 7264 "use strict"; 7265 /* harmony export (immutable) */ 7266 __webpack_exports__["a"] = eachDayOfInterval; 7267 /* harmony import */ 7268 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 7269 /* harmony import */ 7270 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 7271 7272 7273 /** 7274 * @name eachDayOfInterval 7275 * @category Interval Helpers 7276 * @summary Return the array of dates within the specified time interval. 7277 *
7278 * @description 7279 * Return the array of dates within the specified time interval. 7280 * 7281 * ### v2.0.0 breaking changes: 7282 * 7283 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 7284 * 7285 * - The function was renamed from `eachDay` to `eachDayOfInterval`. 7286 * This change was made to mirror the use of the word "interval" in standard ISO 8601:2004 terminology: 7287 * 7288 * ``` 7289 * 2.1.3 7290 * time interval 7291 * part of the time axis limited by two instants 7292 * ``` 7293 * 7294 * Also, this function now accepts an object with `start` and `end` properties 7295 * instead of two arguments as an interval. 7296 * This function now throws `RangeError` if the start of the interval is after its end 7297 * or if any date in the interval is `Invalid Date`. 7298 * 7299 * ```javascript 7300 * // Before v2.0.0 7301 * 7302 * eachDay(new Date(2014, 0, 10), new Date(2014, 0, 20)) 7303 * 7304 * // v2.0.0 onward 7305 * 7306 * eachDayOfInterval( 7307 * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) } 7308 * ) 7309 * ``` 7310 * 7311 * @param {Interval} interval - the interval. See [Interval]{@link docs/types/Interval} 7312 * @param {Object} [options] - an object with options. 7313 * @param {Number} [options.step=1] - the step to increment by. The value should be more than 1. 7314 * @returns {Date[]} the array with starts of days from the day of the interval start to the day of the interval end 7315 * @throws {TypeError} 1 argument required 7316 * @throws {RangeError} `options.step` must be a number greater than 1 7317 * @throws {RangeError} The start of an interval cannot be after its end 7318 * @throws {RangeError} Date in interval cannot be `Invalid Date` 7319 * 7320 * @example 7321 * // Each day between 6 October 2014 and 10 October 2014: 7322 * var result = eachDayOfInterval({ 7323 * start: new Date(2014, 9, 6), 7324 * end: new Date(2014, 9, 10) 7325 * }) 7326 * //=> [ 7327 * // Mon Oct 06 2014 00:00:00, 7328 * // Tue Oct 07 2014 00:00:00, 7329 * // Wed Oct 08 2014 00:00:00, 7330 * // Thu Oct 09 2014 00:00:00, 7331 * // Fri Oct 10 2014 00:00:00 7332 * // ] 7333 */ 7334 7335 function eachDayOfInterval(dirtyInterval, options) { 7336 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 7337 var interval = dirtyInterval || {}; 7338 var startDate = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](interval.start); 7339 var endDate = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](interval.end); 7340 var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` 7341 7342 if (!(startDate.getTime() <= endTime)) { 7343 throw new RangeError('Invalid interval'); 7344 } 7345 7346 var dates = []; 7347 var currentDate = startDate; 7348 currentDate.setHours(0, 0, 0, 0); 7349 var step = options && 'step' in options ? Number(options.step) : 1; 7350 if (step < 1 || isNaN(step)) throw new RangeError('`options.step` must be a number greater than 1'); 7351 7352 while (currentDate.getTime() <= endTime) { 7353 dates.push(__WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](currentDate)); 7354 currentDate.setDate(currentDate.getDate() + step); 7355 currentDate.setHours(0, 0, 0, 0); 7356 } 7357 7358 return dates; 7359 } 7360 7361 /***/ 7362 }), 7363 /* 149 */ 7364 /***/ (function (module, __webpack_exports__, __webpack_require__) { 7365 7366 "use strict"; 7367 /* harmony export (immutable) */ 7368 __webpack_exports__["a"] = endOfYear; 7369 /* harmony import */ 7370 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 7371 /* harmony import */ 7372 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 7373 7374 7375 /** 7376 * @name endOfYear 7377 * @category Year Helpers 7378 * @summary Return the end of a year for the given date. 7379 *
7380 * @description 7381 * Return the end of a year for the given date. 7382 * The result will be in the local timezone. 7383 * 7384 * ### v2.0.0 breaking changes: 7385 * 7386 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 7387 * 7388 * @param {Date|Number} date - the original date 7389 * @returns {Date} the end of a year 7390 * @throws {TypeError} 1 argument required 7391 * 7392 * @example 7393 * // The end of a year for 2 September 2014 11:55:00: 7394 * var result = endOfYear(new Date(2014, 8, 2, 11, 55, 00)) 7395 * //=> Wed Dec 31 2014 23:59:59.999 7396 */ 7397 7398 function endOfYear(dirtyDate) { 7399 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 7400 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 7401 var year = date.getFullYear(); 7402 date.setFullYear(year + 1, 0, 0); 7403 date.setHours(23, 59, 59, 999); 7404 return date; 7405 } 7406 7407 /***/ 7408 }), 7409 /* 150 */ 7410 /***/ (function (module, __webpack_exports__, __webpack_require__) { 7411 7412 "use strict"; 7413 /* harmony export (immutable) */ 7414 __webpack_exports__["a"] = endOfWeek; 7415 /* harmony import */ 7416 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 7417 /* harmony import */ 7418 var __WEBPACK_IMPORTED_MODULE_1__lib_toInteger_index_js__ = __webpack_require__(6); 7419 /* harmony import */ 7420 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 7421 7422 7423 /** 7424 * @name endOfWeek 7425 * @category Week Helpers 7426 * @summary Return the end of a week for the given date. 7427 * 7428 * @description 7429 * Return the end of a week for the given date. 7430 * The result will be in the local timezone. 7431 * 7432 * ### v2.0.0 breaking changes: 7433 * 7434 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 7435 * 7436 * @param {Date|Number} date - the original date 7437 * @param {Object} [options] - an object with options. 7438 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 7439 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 7440 * @returns {Date} the end of a week 7441 * @throws {TypeError} 1 argument required 7442 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 7443 * 7444 * @example 7445 * // The end of a week for 2 September 2014 11:55:00: 7446 * var result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0)) 7447 * //=> Sat Sep 06 2014 23:59:59.999 7448 * 7449 * @example 7450 * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00: 7451 * var result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) 7452 * //=> Sun Sep 07 2014 23:59:59.999 7453 */ 7454 7455 function endOfWeek(dirtyDate, dirtyOptions) { 7456 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 7457 var options = dirtyOptions || {}; 7458 var locale = options.locale; 7459 var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; 7460 var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : __WEBPACK_IMPORTED_MODULE_1__lib_toInteger_index_js__["a" /* default */](localeWeekStartsOn); 7461 var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : __WEBPACK_IMPORTED_MODULE_1__lib_toInteger_index_js__["a" /* default */](options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 7462 7463 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 7464 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 7465 } 7466 7467 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 7468 var day = date.getDay(); 7469 var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); 7470 date.setDate(date.getDate() + diff); 7471 date.setHours(23, 59, 59, 999); 7472 return date; 7473 } 7474 7475 /***/ 7476 }), 7477 /* 151 */ 7478 /***/ (function (module, __webpack_exports__, __webpack_require__) { 7479 7480 "use strict"; 7481 /* harmony export (immutable) */ 7482 __webpack_exports__["a"] = format; 7483 /* harmony import */ 7484 var __WEBPACK_IMPORTED_MODULE_0__isValid_index_js__ = __webpack_require__(15); 7485 /* harmony import */ 7486 var __WEBPACK_IMPORTED_MODULE_1__locale_en_US_index_js__ = __webpack_require__(28); 7487 /* harmony import */ 7488 var __WEBPACK_IMPORTED_MODULE_2__subMilliseconds_index_js__ = __webpack_require__(49); 7489 /* harmony import */ 7490 var __WEBPACK_IMPORTED_MODULE_3__toDate_index_js__ = __webpack_require__(1); 7491 /* harmony import */ 7492 var __WEBPACK_IMPORTED_MODULE_4__lib_format_formatters_index_js__ = __webpack_require__(340); 7493 /* harmony import */ 7494 var __WEBPACK_IMPORTED_MODULE_5__lib_format_longFormatters_index_js__ = __webpack_require__(156); 7495 /* harmony import */ 7496 var __WEBPACK_IMPORTED_MODULE_6__lib_getTimezoneOffsetInMilliseconds_index_js__ = __webpack_require__(19); 7497 /* harmony import */ 7498 var __WEBPACK_IMPORTED_MODULE_7__lib_protectedTokens_index_js__ = __webpack_require__(157); 7499 /* harmony import */ 7500 var __WEBPACK_IMPORTED_MODULE_8__lib_toInteger_index_js__ = __webpack_require__(6); 7501 /* harmony import */ 7502 var __WEBPACK_IMPORTED_MODULE_9__lib_requiredArgs_index_js__ = __webpack_require__(0); 7503 7504 7505 // This RegExp consists of three parts separated by `|`: 7506// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token 7507// (one of the certain letters followed by `o`) 7508// - (\w)\1* matches any sequences of the same letter 7509// - '' matches two quote characters in a row 7510// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), 7511// except a single quote symbol, which ends the sequence. 7512// Two quote characters do not end the sequence. 7513// If there is no matching single quote
7514// then the sequence will continue until the end of the string. 7515// - . matches any single character unmatched by previous parts of the RegExps 7516 7517 var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also 7518// sequences of symbols P, p, and the combinations like `PPPPPPPppppp` 7519 7520 var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; 7521 var escapedStringRegExp = /^'([^]*?)'?$/; 7522 var doubleQuoteRegExp = /''/g; 7523 var unescapedLatinCharacterRegExp = /[a-zA-Z]/; 7524 7525 /** 7526 * @name format 7527 * @category Common Helpers 7528 * @summary Format the date. 7529 * 7530 * @description 7531 * Return the formatted date string in the given format. The result may vary by locale. 7532 * 7533 * > â ï¸ Please note that the `format` tokens differ from Moment.js and other libraries. 7534 * > See: https://git.io/fxCyr 7535 * 7536 * The characters wrapped between two single quotes characters (') are escaped. 7537 * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. 7538 * (see the last example) 7539 * 7540 * Format of the string is based on Unicode Technical Standard #35: 7541 * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table 7542 * with a few additions (see note 7 below the table). 7543 * 7544 * Accepted patterns: 7545 * | Unit | Pattern | Result examples | Notes | 7546 * |---------------------------------|---------|-----------------------------------|-------| 7547 * | Era | G..GGG | AD, BC | | 7548 * | | GGGG | Anno Domini, Before Christ | 2 | 7549 * | | GGGGG | A, B | | 7550 * | Calendar year | y | 44, 1, 1900, 2017 | 5 | 7551 * | | yo | 44th, 1st, 0th, 17th | 5,7 | 7552 * | | yy | 44, 01, 00, 17 | 5 | 7553 * | | yyy | 044, 001, 1900, 2017 | 5 | 7554 * | | yyyy | 0044, 0001, 1900, 2017 | 5 | 7555 * | | yyyyy | ... | 3,5 | 7556 * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 | 7557 * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 | 7558 * | | YY | 44, 01, 00, 17 | 5,8 | 7559 * | | YYY | 044, 001, 1900, 2017 | 5 | 7560 * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 | 7561 * | | YYYYY | ... | 3,5 | 7562 * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 | 7563 * | | RR | -43, 00, 01, 1900, 2017 | 5,7 | 7564 * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 | 7565 * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 | 7566 * | | RRRRR | ... | 3,5,7 | 7567 * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 | 7568 * | | uu | -43, 01, 1900, 2017 | 5 | 7569 * | | uuu | -043, 001, 1900, 2017 | 5 | 7570 * | | uuuu | -0043, 0001, 1900, 2017 | 5 | 7571 * | | uuuuu | ... | 3,5 | 7572 * | Quarter (formatting) | Q | 1, 2, 3, 4 | | 7573 * | | Qo | 1st, 2nd, 3rd, 4th | 7 | 7574 * | | QQ | 01, 02, 03, 04 | | 7575 * | | QQQ | Q1, Q2, Q3, Q4 | | 7576 * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | 7577 * | | QQQQQ | 1, 2, 3, 4 | 4 | 7578 * | Quarter (stand-alone) | q | 1, 2, 3, 4 | | 7579 * | | qo | 1st, 2nd, 3rd, 4th | 7 | 7580 * | | qq | 01, 02, 03, 04 | | 7581 * | | qqq | Q1, Q2, Q3, Q4 | | 7582 * | | qqqq | 1st quarter, 2nd quarter, ... | 2 | 7583 * | | qqqqq | 1, 2, 3, 4 | 4 | 7584 * | Month (formatting) | M | 1, 2, ..., 12 | | 7585 * | | Mo | 1st, 2nd, ..., 12th | 7 | 7586 * | | MM | 01, 02, ..., 12 | | 7587 * | | MMM | Jan, Feb, ..., Dec | | 7588 * | | MMMM | January, February, ..., December | 2 | 7589 * | | MMMMM | J, F, ..., D | | 7590 * | Month (stand-alone) | L | 1, 2, ..., 12 | | 7591 * | | Lo | 1st, 2nd, ..., 12th | 7 | 7592 * | | LL | 01, 02, ..., 12 | | 7593 * | | LLL | Jan, Feb, ..., Dec | | 7594 * | | LLLL | January, February, ..., December | 2 | 7595 * | | LLLLL | J, F, ..., D | | 7596 * | Local week of year | w | 1, 2, ..., 53 | | 7597 * | | wo | 1st, 2nd, ..., 53th | 7 | 7598 * | | ww | 01, 02, ..., 53 | | 7599 * | ISO week of year | I | 1, 2, ..., 53 | 7 | 7600 * | | Io | 1st, 2nd, ..., 53th | 7 | 7601 * | | II | 01, 02, ..., 53 | 7 | 7602 * | Day of month | d | 1, 2, ..., 31 | | 7603 * | | do | 1st, 2nd, ..., 31st | 7 | 7604 * | | dd | 01, 02, ..., 31 | | 7605 * | Day of year | D | 1, 2, ..., 365, 366 | 9 | 7606 * | | Do | 1st, 2nd, ..., 365th, 366th | 7 | 7607 * | | DD | 01, 02, ..., 365, 366 | 9 | 7608 * | | DDD | 001, 002, ..., 365, 366 | | 7609 * | | DDDD | ... | 3 | 7610 * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | | 7611 * | | EEEE | Monday, Tuesday, ..., Sunday | 2 | 7612 * | | EEEEE | M, T, W, T, F, S, S | | 7613 * | | EEEEEE | Mo, Tu, We, Th, Fr, Su, Sa | | 7614 * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 | 7615 * | | io | 1st, 2nd, ..., 7th | 7 | 7616 * | | ii | 01, 02, ...,
761607 | 7 | 7617 * | | iii | Mon, Tue, Wed, ..., Sun | 7 | 7618 * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 | 7619 * | | iiiii | M, T, W, T, F, S, S | 7 | 7620 * | | iiiiii | Mo, Tu, We, Th, Fr, Su, Sa | 7 | 7621 * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | | 7622 * | | eo | 2nd, 3rd, ..., 1st | 7 | 7623 * | | ee | 02, 03, ..., 01 | | 7624 * | | eee | Mon, Tue, Wed, ..., Sun | | 7625 * | | eeee | Monday, Tuesday, ..., Sunday | 2 | 7626 * | | eeeee | M, T, W, T, F, S, S | | 7627 * | | eeeeee | Mo, Tu, We, Th, Fr, Su, Sa | | 7628 * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | | 7629 * | | co | 2nd, 3rd, ..., 1st | 7 | 7630 * | | cc | 02, 03, ..., 01 | | 7631 * | | ccc | Mon, Tue, Wed, ..., Sun | | 7632 * | | cccc | Monday, Tuesday, ..., Sunday | 2 | 7633 * | | ccccc | M, T, W, T, F, S, S | | 7634 * | | cccccc | Mo, Tu, We, Th, Fr, Su, Sa | | 7635 * | AM, PM | a..aaa | AM, PM | | 7636 * | | aaaa | a.m., p.m. | 2 | 7637 * | | aaaaa | a, p | | 7638 * | AM, PM, noon, midnight | b..bbb | AM, PM, noon, midnight | | 7639 * | | bbbb | a.m., p.m., noon, midnight | 2 | 7640 * | | bbbbb | a, p, n, mi | | 7641 * | Flexible day period | B..BBB | at night, in the morning, ... | | 7642 * | | BBBB | at night, in the morning, ... | 2 | 7643 * | | BBBBB | at night, in the morning, ... | | 7644 * | Hour [1-12] | h | 1, 2, ..., 11, 12 | | 7645 * | | ho | 1st, 2nd, ..., 11th, 12th | 7 | 7646 * | | hh | 01, 02, ..., 11, 12 | | 7647 * | Hour [0-23] | H | 0, 1, 2, ..., 23 | | 7648 * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 | 7649 * | | HH | 00, 01, 02, ..., 23 | | 7650 * | Hour [0-11] | K | 1, 2, ..., 11, 0 | | 7651 * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 | 7652 * | | KK | 01, 02, ..., 11, 00 | | 7653 * | Hour [1-24] | k | 24, 1, 2, ..., 23 | | 7654 * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 | 7655 * | | kk | 24, 01, 02, ..., 23 | | 7656 * | Minute | m | 0, 1, ..., 59 | | 7657 * | | mo | 0th, 1st, ..., 59th | 7 | 7658 * | | mm | 00, 01, ..., 59 | | 7659 * | Second | s | 0, 1, ..., 59 | | 7660 * | | so | 0th, 1st, ..., 59th | 7 | 7661 * | | ss | 00, 01, ..., 59 | | 7662 * | Fraction of second | S | 0, 1, ..., 9 | | 7663 * | | SS | 00, 01, ..., 99 | | 7664 * | | SSS | 000, 0001, ..., 999 | | 7665 * | | SSSS | ... | 3 | 7666 * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | | 7667 * | | XX | -0800, +0530, Z | | 7668 * | | XXX | -08:00, +05:30, Z | | 7669 * | | XXXX | -0800, +0530, Z, +123456 | 2 | 7670 * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | 7671 * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | | 7672 * | | xx | -0800, +0530, +0000 | | 7673 * | | xxx | -08:00, +05:30, +00:00 | 2 | 7674 * | | xxxx | -0800, +0530, +0000, +123456 | | 7675 * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | 7676 * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | | 7677 * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 | 7678 * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 | 7679 * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 | 7680 * | Seconds timestamp | t | 512969520 | 7 | 7681 * | | tt | ... | 3,7 | 7682 * | Milliseconds timestamp | T | 512969520900 | 7 | 7683 * | | TT | ... | 3,7 | 7684 * | Long localized date | P | 05/29/1453 | 7 | 7685 * | | PP | May 29, 1453 | 7 | 7686 * | | PPP | May 29th, 1453 | 7 | 7687 * | | PPPP | Sunday, May 29th, 1453 | 2,7 | 7688 * | Long localized time | p | 12:00 AM | 7 | 7689 * | | pp | 12:00:00 AM | 7 | 7690 * | | ppp | 12:00:00 AM GMT+2 | 7 | 7691 * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 | 7692 * | Combination of date and time | Pp | 05/29/1453, 12:00 AM | 7 | 7693 * | | PPpp | May 29, 1453, 12:00:00 AM | 7 | 7694 * | | PPPppp | May 29th, 1453 at ... | 7 | 7695 * | | PPPPpppp| Sunday, May 29th, 1453 at ... | 2,7 | 7696 * Notes: 7697 * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale 7698 * are the same as "stand-alone" units, but are different in some languages. 7699 * "Formatting" units are declined according to the rules of the language 7700 * in the context of a date. "Stand-alone" units are always nominative singular: 7701 * 7702 * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` 7703 * 7704 * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` 7705 * 7706 * 2. Any sequence of the identical letters is a pattern, unless it is escaped by 7707 * the single quote characters (see below). 7708 * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`) 7709 * the output will be the same as default pattern for this unit, usually 7710 * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units 7711 * are marked with "2" in the last column of the table. 7712 * 7713 * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'` 7714 * 7715 * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'` 7716 * 7717 * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'` 7718 * 7719 * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'` 7720 * 7721 * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'` 7722 * 7723 * 3. Some patterns could be unlimited length (such as `yyyyyyyy`). 7724 * The output will be padded with zeros to match the length of the pattern. 7725 * 7726 * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'` 7727 * 7728 * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. 7729 * These tokens represent the shortest form of the quarter. 7730 * 7731 * 5. The main difference between `y` and `u` patterns are B.C. years: 7732 * 7733 * | Year | `y` | `u` | 7734 * |------|-----|-----| 7735 * | AC 1 | 1 | 1 | 7736 * | BC 1 | 1 | 0 | 7737 * | BC 2 | 2 | -1 | 7738 * 7739 * Also `yy` always returns the last two digits of a year, 7740 * while `uu` pads single digit years to 2 characters and returns other years unchanged: 7741 * 7742 * | Year | `yy` | `uu` | 7743 * |------|------|------| 7744 * | 1 | 01 | 01 | 7745 * | 14 | 14 | 14 | 7746 * | 376 | 76 | 376 | 7747 * | 1453 | 53 | 1453 | 7748 * 7749 * The same difference is true for local and ISO week-numbering years (`Y` and `R`), 7750 * except local week-numbering years are dependent on `options.weekStartsOn` 7751 * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear} 7752 * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}). 7753 * 7754 * 6. Specific non-location timezones are currently unavailable in `date-fns`, 7755 * so right now these tokens fall back to GMT timezones. 7756 * 7757 * 7. These patterns are not in the Unicode Technical Standard #35: 7758 * - `i`: ISO day of week 7759 * - `I`: ISO week of year 7760 * - `R`: ISO week-numbering year 7761 * - `t`: seconds timestamp 7762 * - `T`: milliseconds timestamp 7763 * - `o`: ordinal number modifier 7764 * - `P`: long localized date 7765 * - `p`: long localized time 7766 * 7767 * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. 7768 * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr 7769 * 7770 * 9. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month. 7771 * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr 7772 * 7773 * ### v2.0.0 breaking changes: 7774 * 7775 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 7776 * 7777 * - The second argument is now required for the sake of explicitness. 7778 * 7779 * ```javascript 7780 * // Before v2.0.0 7781 * format(new Date(2016, 0, 1)) 7782 * 7783 * // v2.0.0 onward 7784 * format(new Date(2016, 0, 1), "yyyy-MM-dd'T'HH:mm:ss.SSSxxx") 7785 * ``` 7786 *
7787 * - New format string API for `format` function 7788 * which is based on [Unicode Technical Standard #35](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table). 7789 * See [this post](https://blog.date-fns.org/post/unicode-tokens-in-date-fns-v2-sreatyki91jg) for more details. 7790 * 7791 * - Characters are now escaped using single quote symbols (`'`) instead of square brackets. 7792 * 7793 * @param {Date|Number} date - the original date 7794 * @param {String} format - the string of tokens 7795 * @param {Object} [options] - an object with options. 7796 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 7797 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 7798 * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is 7799 * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`; 7800 * see: https://git.io/fxCyr 7801 * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; 7802 * see: https://git.io/fxCyr 7803 * @returns {String} the formatted date string 7804 * @throws {TypeError} 2 arguments required 7805 * @throws {RangeError} `date` must not be Invalid Date 7806 * @throws {RangeError} `options.locale` must contain `localize` property 7807 * @throws {RangeError} `options.locale` must contain `formatLong` property 7808 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 7809 * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 7810 * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr 7811 * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr 7812 * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr 7813 * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr 7814 * @throws {RangeError} format string contains an unescaped latin alphabet character 7815 * 7816 * @example 7817 * // Represent 11 February 2014 in middle-endian format: 7818 * var result = format(new Date(2014, 1, 11), 'MM/dd/yyyy') 7819 * //=> '02/11/2014' 7820 * 7821 * @example 7822 * // Represent 2 July 2014 in Esperanto: 7823 * import { eoLocale } from 'date-fns/locale/eo' 7824 * var result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", { 7825 * locale: eoLocale 7826 * }) 7827 * //=> '2-a de julio 2014' 7828 * 7829 * @example 7830 * // Escape string by single quote characters: 7831 * var result = format(new Date(2014, 6, 2, 15), "h 'o''clock'") 7832 * //=> "3 o'clock" 7833 */ 7834 7835 function format(dirtyDate, dirtyFormatStr, dirtyOptions) { 7836 __WEBPACK_IMPORTED_MODULE_9__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 7837 var formatStr = String(dirtyFormatStr); 7838 var options = dirtyOptions || {}; 7839 var locale = options.locale || __WEBPACK_IMPORTED_MODULE_1__locale_en_US_index_js__["a" /* default */]; 7840 var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate; 7841 var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : __WEBPACK_IMPORTED_MODULE_8__lib_toInteger_index_js__["a" /* default */](localeFirstWeekContainsDate); 7842 var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : __WEBPACK_IMPORTED_MODULE_8__lib_toInteger_index_js__["a" /* default */](options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN 7843 7844 if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { 7845 throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); 7846 } 7847 7848 var localeWeekStartsOn = locale.options && locale.options.weekStartsOn; 7849 var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : __WEBPACK_IMPORTED_MODULE_8__lib_toInteger_index_js__["a" /* default */](localeWeekStartsOn); 7850 var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : __WEBPACK_IMPORTED_MODULE_8__lib_toInteger_index_js__["a" /* default */](options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 7851 7852 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 7853 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 7854 } 7855 7856 if (!locale.localize) { 7857 throw new RangeError('locale must contain localize property'); 7858 } 7859 7860 if (!locale.formatLong) { 7861 throw new RangeError('locale must contain formatLong property'); 7862 } 7863 7864 var originalDate = __WEBPACK_IMPORTED_MODULE_3__toDate_index_js__["a" /* default */](dirtyDate); 7865 7866 if (!__WEBPACK_IMPORTED_MODULE_0__isValid_index_js__["a" /* default */](originalDate)) { 7867 throw new RangeError('Invalid time value'); 7868 } // Convert the date in system timezone to the same date in UTC+00:00 timezone. 7869 // This ensures that when UTC functions will be implemented, locales will be compatible with them. 7870 // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376 7871 7872 7873 var timezoneOffset = __WEBPACK_IMPORTED_MODULE_6__lib_getTimezoneOffsetInMilliseconds_index_js__["a" /* default */](originalDate); 7874 var utcDate = __WEBPACK_IMPORTED_MODULE_2__subMilliseconds_index_js__["a" /* default */](originalDate, timezoneOffset); 7875 var formatterOptions = { 7876 firstWeekContainsDate: firstWeekContainsDate, 7877 weekStartsOn: weekStartsOn, 7878 locale: locale, 7879 _originalDate: originalDate 7880 }; 7881 var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) { 7882 var firstCharacter = substring[0]; 7883 7884 if (firstCharacter === 'p' || firstCharacter === 'P') { 7885 var longFormatter = __WEBPACK_IMPORTED_MODULE_5__lib_format_longFormatters_index_js__["a" /* default */][firstCharacter]; 7886 return longFormatter(substring, locale.formatLong, formatterOptions); 7887 } 7888 7889 return substring; 7890 }).join('').match(formattingTokensRegExp).map(function (substring) { 7891 // Replace two single quote characters with one single quote character 7892 if (substring === "''") { 7893 return "'"; 7894 } 7895 7896 var firstCharacter = substring[0]; 7897 7898 if (firstCharacter === "'") { 7899 return cleanEscapedString(substring); 7900 } 7901 7902 var formatter = __WEBPACK_IMPORTED_MODULE_4__lib_format_formatters_index_js__["a" /* default */][firstCharacter]; 7903 7904 if (formatter) { 7905 if (!options.useAdditionalWeekYearTokens && __WEBPACK_IMPORTED_MODULE_7__lib_protectedTokens_index_js__["b" /* isProtectedWeekYearToken */](substring)) { 7906 __WEBPACK_IMPORTED_MODULE_7__lib_protectedTokens_index_js__["c" /* throwProtectedError */](substring, dirtyFormatStr, dirtyDate); 7907 } 7908 7909 if (!options.useAdditionalDayOfYearTokens && __WEBPACK_IMPORTED_MODULE_7__lib_protectedTokens_index_js__["a" /* isProtectedDayOfYearToken */](substring)) { 7910 __WEBPACK_IMPORTED_MODULE_7__lib_protectedTokens_index_js__["c" /* throwProtectedError */](substring, dirtyFormatStr, dirtyDate); 7911 } 7912 7913 return formatter(utcDate, substring, locale.localize, formatterOptions); 7914 } 7915 7916 if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
vendor: 16,384 bytes, lines 7917-8254
7917 throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`'); 7918 } 7919 7920 return substring; 7921 }).join(''); 7922 return result; 7923 } 7924 7925 function cleanEscapedString(input) { 7926 return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'"); 7927 } 7928 7929 /***/ 7930 }), 7931 /* 152 */ 7932 /***/ (function (module, __webpack_exports__, __webpack_require__) { 7933 7934 "use strict"; 7935 /* harmony import */ 7936 var __WEBPACK_IMPORTED_MODULE_0__addLeadingZeros_index_js__ = __webpack_require__(38); 7937 7938 /* 7939 * | | Unit | | Unit | 7940 * |-----|--------------------------------|-----|--------------------------------| 7941 * | a | AM, PM | A* | | 7942 * | d | Day of month | D | | 7943 * | h | Hour [1-12] | H | Hour [0-23] | 7944 * | m | Minute | M | Month | 7945 * | s | Second | S | Fraction of second | 7946 * | y | Year (abs) | Y | | 7947 * 7948 * Letters marked by * are not implemented but reserved by Unicode standard. 7949 */ 7950 7951 var formatters = { 7952 // Year 7953 y: function (date, token) { 7954 // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens 7955 // | Year | y | yy | yyy | yyyy | yyyyy | 7956 // |----------|-------|----|-------|-------|-------| 7957 // | AD 1 | 1 | 01 | 001 | 0001 | 00001 | 7958 // | AD 12 | 12 | 12 | 012 | 0012 | 00012 | 7959 // | AD 123 | 123 | 23 | 123 | 0123 | 00123 | 7960 // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 | 7961 // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 | 7962 var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript) 7963 7964 var year = signedYear > 0 ? signedYear : 1 - signedYear; 7965 return __WEBPACK_IMPORTED_MODULE_0__addLeadingZeros_index_js__["a" /* default */](token === 'yy' ? year % 100 : year, token.length); 7966 }, 7967 // Month 7968 M: function (date, token) { 7969 var month = date.getUTCMonth(); 7970 return token === 'M' ? String(month + 1) : __WEBPACK_IMPORTED_MODULE_0__addLeadingZeros_index_js__["a" /* default */](month + 1, 2); 7971 }, 7972 // Day of the month 7973 d: function (date, token) { 7974 return __WEBPACK_IMPORTED_MODULE_0__addLeadingZeros_index_js__["a" /* default */](date.getUTCDate(), token.length); 7975 }, 7976 // AM or PM 7977 a: function (date, token) { 7978 var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am'; 7979 7980 switch (token) { 7981 case 'a': 7982 case 'aa': 7983 case 'aaa': 7984 return dayPeriodEnumValue.toUpperCase(); 7985 7986 case 'aaaaa': 7987 return dayPeriodEnumValue[0]; 7988 7989 case 'aaaa': 7990 default: 7991 return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.'; 7992 } 7993 }, 7994 // Hour [1-12] 7995 h: function (date, token) { 7996 return __WEBPACK_IMPORTED_MODULE_0__addLeadingZeros_index_js__["a" /* default */](date.getUTCHours() % 12 || 12, token.length); 7997 }, 7998 // Hour [0-23] 7999 H: function (date, token) { 8000 return __WEBPACK_IMPORTED_MODULE_0__addLeadingZeros_index_js__["a" /* default */](date.getUTCHours(), token.length); 8001 }, 8002 // Minute 8003 m: function (date, token) { 8004 return __WEBPACK_IMPORTED_MODULE_0__addLeadingZeros_index_js__["a" /* default */](date.getUTCMinutes(), token.length); 8005 }, 8006 // Second 8007 s: function (date, token) { 8008 return __WEBPACK_IMPORTED_MODULE_0__addLeadingZeros_index_js__["a" /* default */](date.getUTCSeconds(), token.length); 8009 }, 8010 // Fraction of second 8011 S: function (date, token) { 8012 var numberOfDigits = token.length; 8013 var milliseconds = date.getUTCMilliseconds(); 8014 var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3)); 8015 return __WEBPACK_IMPORTED_MODULE_0__addLeadingZeros_index_js__["a" /* default */](fractionalSeconds, token.length); 8016 } 8017 }; 8018 /* harmony default export */ 8019 __webpack_exports__["a"] = (formatters); 8020 8021 /***/ 8022 }), 8023 /* 153 */ 8024 /***/ (function (module, __webpack_exports__, __webpack_require__) { 8025 8026 "use strict"; 8027 /* harmony export (immutable) */ 8028 __webpack_exports__["a"] = getUTCISOWeek; 8029 /* harmony import */ 8030 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 8031 /* harmony import */ 8032 var __WEBPACK_IMPORTED_MODULE_1__startOfUTCISOWeek_index_js__ = __webpack_require__(63); 8033 /* harmony import */ 8034 var __WEBPACK_IMPORTED_MODULE_2__startOfUTCISOWeekYear_index_js__ = __webpack_require__(342); 8035 /* harmony import */ 8036 var __WEBPACK_IMPORTED_MODULE_3__requiredArgs_index_js__ = __webpack_require__(0); 8037 8038 8039 var MILLISECONDS_IN_WEEK = 604800000; // This function will be a part of public API when UTC function will be implemented. 8040// See issue: https://github.com/date-fns/date-fns/issues/376 8041 8042 function getUTCISOWeek(dirtyDate) { 8043 __WEBPACK_IMPORTED_MODULE_3__requiredArgs_index_js__["a" /* default */](1, arguments); 8044 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 8045 var diff = __WEBPACK_IMPORTED_MODULE_1__startOfUTCISOWeek_index_js__["a" /* default */](date).getTime() - __WEBPACK_IMPORTED_MODULE_2__startOfUTCISOWeekYear_index_js__["a" /* default */](date).getTime(); // Round the number of days to the nearest integer 8046 // because the number of milliseconds in a week is not constant 8047 // (e.g. it's different in the week of the daylight saving time clock shift) 8048 8049 return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; 8050 } 8051 8052 /***/ 8053 }), 8054 /* 154 */ 8055 /***/ (function (module, __webpack_exports__, __webpack_require__) { 8056 8057 "use strict"; 8058 /* harmony export (immutable) */ 8059 __webpack_exports__["a"] = getUTCISOWeekYear; 8060 /* harmony import */ 8061 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 8062 /* harmony import */ 8063 var __WEBPACK_IMPORTED_MODULE_1__startOfUTCISOWeek_index_js__ = __webpack_require__(63); 8064 /* harmony import */ 8065 var __WEBPACK_IMPORTED_MODULE_2__requiredArgs_index_js__ = __webpack_require__(0); 8066 8067 8068 // This function will be a part of public API when UTC function will be implemented. 8069// See issue: https://github.com/date-fns/date-fns/issues/376 8070 8071 function getUTCISOWeekYear(dirtyDate) { 8072 __WEBPACK_IMPORTED_MODULE_2__requiredArgs_index_js__["a" /* default */](1, arguments); 8073 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 8074 var year = date.getUTCFullYear(); 8075 var fourthOfJanuaryOfNextYear = new Date(0); 8076 fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4); 8077 fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0); 8078 var startOfNextYear = __WEBPACK_IMPORTED_MODULE_1__startOfUTCISOWeek_index_js__["a" /* default */](fourthOfJanuaryOfNextYear); 8079 var fourthOfJanuaryOfThisYear = new Date(0); 8080 fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4); 8081 fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0); 8082 var startOfThisYear = __WEBPACK_IMPORTED_MODULE_1__startOfUTCISOWeek_index_js__["a" /* default */](fourthOfJanuaryOfThisYear); 8083 8084 if (date.getTime() >= startOfNextYear.getTime()) { 8085 return year + 1; 8086 } else if (date.getTime() >= startOfThisYear.getTime()) { 8087 return year; 8088 } else { 8089 return year - 1; 8090 } 8091 } 8092 8093 /***/ 8094 }), 8095 /* 155 */ 8096 /***/ (function (module, __webpack_exports__, __webpack_require__) { 8097 8098 "use strict"; 8099 /* harmony export (immutable) */ 8100 __webpack_exports__["a"] = getUTCWeek; 8101 /* harmony import */ 8102 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 8103 /* harmony import */ 8104 var __WEBPACK_IMPORTED_MODULE_1__startOfUTCWeek_index_js__ = __webpack_require__(50); 8105 /* harmony import */ 8106 var __WEBPACK_IMPORTED_MODULE_2__startOfUTCWeekYear_index_js__ = __webpack_require__(343); 8107 /* harmony import */ 8108 var __WEBPACK_IMPORTED_MODULE_3__requiredArgs_index_js__ = __webpack_require__(0); 8109 8110 8111 var MILLISECONDS_IN_WEEK = 604800000; // This function will be a part of public API when UTC function will be implemented. 8112// See issue: https://github.com/date-fns/date-fns/issues/376 8113 8114 function getUTCWeek(dirtyDate, options) { 8115 __WEBPACK_IMPORTED_MODULE_3__requiredArgs_index_js__["a" /* default */](1, arguments); 8116 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 8117 var diff = __WEBPACK_IMPORTED_MODULE_1__startOfUTCWeek_index_js__["a" /* default */](date, options).getTime() - __WEBPACK_IMPORTED_MODULE_2__startOfUTCWeekYear_index_js__["a" /* default */](date, options).getTime(); // Round the number of days to the nearest integer 8118 // because the number of milliseconds in a week is not constant 8119 // (e.g. it's different in the week of the daylight saving time clock shift) 8120 8121 return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; 8122 } 8123 8124 /***/ 8125 }), 8126 /* 156 */ 8127 /***/ (function (module, __webpack_exports__, __webpack_require__) { 8128 8129 "use strict"; 8130 8131 function dateLongFormatter(pattern, formatLong) { 8132 switch (pattern) { 8133 case 'P': 8134 return formatLong.date({ 8135 width: 'short' 8136 }); 8137 8138 case 'PP': 8139 return formatLong.date({ 8140 width: 'medium' 8141 }); 8142 8143 case 'PPP': 8144 return formatLong.date({ 8145 width: 'long' 8146 }); 8147 8148 case 'PPPP': 8149 default: 8150 return formatLong.date({ 8151 width: 'full' 8152 }); 8153 } 8154 } 8155 8156 function timeLongFormatter(pattern, formatLong) { 8157 switch (pattern) { 8158 case 'p': 8159 return formatLong.time({ 8160 width: 'short' 8161 }); 8162 8163 case 'pp': 8164 return formatLong.time({ 8165 width: 'medium' 8166 }); 8167 8168 case 'ppp': 8169 return formatLong.time({ 8170 width: 'long' 8171 }); 8172 8173 case 'pppp': 8174 default: 8175 return formatLong.time({ 8176 width: 'full' 8177 }); 8178 } 8179 } 8180 8181 function dateTimeLongFormatter(pattern, formatLong) { 8182 var matchResult = pattern.match(/(P+)(p+)?/); 8183 var datePattern = matchResult[1]; 8184 var timePattern = matchResult[2]; 8185 8186 if (!timePattern) { 8187 return dateLongFormatter(pattern, formatLong); 8188 } 8189 8190 var dateTimeFormat; 8191 8192 switch (datePattern) { 8193 case 'P': 8194 dateTimeFormat = formatLong.dateTime({ 8195 width: 'short' 8196 }); 8197 break; 8198 8199 case 'PP': 8200 dateTimeFormat = formatLong.dateTime({ 8201 width: 'medium' 8202 }); 8203 break; 8204 8205 case 'PPP': 8206 dateTimeFormat = formatLong.dateTime({ 8207 width: 'long' 8208 }); 8209 break; 8210 8211 case 'PPPP': 8212 default: 8213 dateTimeFormat = formatLong.dateTime({ 8214 width: 'full' 8215 }); 8216 break; 8217 } 8218 8219 return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong)); 8220 } 8221 8222 var longFormatters = { 8223 p: timeLongFormatter, 8224 P: dateTimeLongFormatter 8225 }; 8226 /* harmony default export */ 8227 __webpack_exports__["a"] = (longFormatters); 8228 8229 /***/ 8230 }), 8231 /* 157 */ 8232 /***/ (function (module, __webpack_exports__, __webpack_require__) { 8233 8234 "use strict"; 8235 /* harmony export (immutable) */ 8236 __webpack_exports__["a"] = isProtectedDayOfYearToken; 8237 /* harmony export (immutable) */ 8238 __webpack_exports__["b"] = isProtectedWeekYearToken; 8239 /* harmony export (immutable) */ 8240 __webpack_exports__["c"] = throwProtectedError; 8241 var protectedDayOfYearTokens = ['D', 'DD']; 8242 var protectedWeekYearTokens = ['YY', 'YYYY']; 8243 8244 function isProtectedDayOfYearToken(token) { 8245 return protectedDayOfYearTokens.indexOf(token) !== -1; 8246 } 8247 8248 function isProtectedWeekYearToken(token) { 8249 return protectedWeekYearTokens.indexOf(token) !== -1; 8250 } 8251 8252 function throwProtectedError(token, format, input) { 8253 if (token === 'YYYY') { 8254 throw new RangeError("Use `yyyy` instead of `YYYY` (in `"
8254.concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr")); 8255 } else if (token === 'YY') { 8256 throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr")); 8257 } else if (token === 'D') { 8258 throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://git.io/fxCyr")); 8259 } else if (token === 'DD') { 8260 throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://git.io/fxCyr")); 8261 } 8262 } 8263 8264 /***/ 8265 }), 8266 /* 158 */ 8267 /***/ (function (module, __webpack_exports__, __webpack_require__) { 8268 8269 "use strict"; 8270 /* harmony export (immutable) */ 8271 __webpack_exports__["a"] = formatDistance; 8272 /* harmony import */ 8273 var __WEBPACK_IMPORTED_MODULE_0__compareAsc_index_js__ = __webpack_require__(27); 8274 /* harmony import */ 8275 var __WEBPACK_IMPORTED_MODULE_1__differenceInMonths_index_js__ = __webpack_require__(60); 8276 /* harmony import */ 8277 var __WEBPACK_IMPORTED_MODULE_2__differenceInSeconds_index_js__ = __webpack_require__(61); 8278 /* harmony import */ 8279 var __WEBPACK_IMPORTED_MODULE_3__locale_en_US_index_js__ = __webpack_require__(28); 8280 /* harmony import */ 8281 var __WEBPACK_IMPORTED_MODULE_4__toDate_index_js__ = __webpack_require__(1); 8282 /* harmony import */ 8283 var __WEBPACK_IMPORTED_MODULE_5__lib_cloneObject_index_js__ = __webpack_require__(159); 8284 /* harmony import */ 8285 var __WEBPACK_IMPORTED_MODULE_6__lib_getTimezoneOffsetInMilliseconds_index_js__ = __webpack_require__(19); 8286 /* harmony import */ 8287 var __WEBPACK_IMPORTED_MODULE_7__lib_requiredArgs_index_js__ = __webpack_require__(0); 8288 8289 8290 var MINUTES_IN_DAY = 1440; 8291 var MINUTES_IN_ALMOST_TWO_DAYS = 2520; 8292 var MINUTES_IN_MONTH = 43200; 8293 var MINUTES_IN_TWO_MONTHS = 86400; 8294 8295 /** 8296 * @name formatDistance 8297 * @category Common Helpers 8298 * @summary Return the distance between the given dates in words. 8299 * 8300 * @description 8301 * Return the distance between the given dates in words. 8302 * 8303 * | Distance between dates | Result | 8304 * |-------------------------------------------------------------------|---------------------| 8305 * | 0 ... 30 secs | less than a minute | 8306 * | 30 secs ... 1 min 30 secs | 1 minute | 8307 * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | 8308 * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | 8309 * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | 8310 * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | 8311 * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | 8312 * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | 8313 * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | 8314 * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | 8315 * | 1 yr ... 1 yr 3 months | about 1 year | 8316 * | 1 yr 3 months ... 1 yr 9 month s | over 1 year | 8317 * | 1 yr 9 months ... 2 yrs | almost 2 years | 8318 * | N yrs ... N yrs 3 months | about N years | 8319 * | N yrs 3 months ... N yrs 9 months | over N years | 8320 * | N yrs 9 months ... N+1 yrs | almost N+1 years | 8321 * 8322 * With `options.includeSeconds == true`: 8323 * | Distance between dates | Result | 8324 * |------------------------|----------------------| 8325 * | 0 secs ... 5 secs | less than 5 seconds | 8326 * | 5 secs ... 10 secs | less than 10 seconds | 8327 * | 10 secs ... 20 secs | less than 20 seconds | 8328 * | 20 secs ... 40 secs | half a minute |
8329 * | 40 secs ... 60 secs | less than a minute | 8330 * | 60 secs ... 90 secs | 1 minute | 8331 * 8332 * ### v2.0.0 breaking changes: 8333 * 8334 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 8335 * 8336 * - The function was renamed from `distanceInWords ` to `formatDistance` 8337 * to make its name consistent with `format` and `formatRelative`. 8338 * 8339 * - The order of arguments is swapped to make the function 8340 * consistent with `differenceIn...` functions. 8341 * 8342 * ```javascript 8343 * // Before v2.0.0 8344 * 8345 * distanceInWords( 8346 * new Date(1986, 3, 4, 10, 32, 0), 8347 * new Date(1986, 3, 4, 11, 32, 0), 8348 * { addSuffix: true } 8349 * ) //=> 'in about 1 hour' 8350 * 8351 * // v2.0.0 onward 8352 * 8353 * formatDistance( 8354 * new Date(1986, 3, 4, 11, 32, 0), 8355 * new Date(1986, 3, 4, 10, 32, 0), 8356 * { addSuffix: true } 8357 * ) //=> 'in about 1 hour' 8358 * ``` 8359 * 8360 * @param {Date|Number} date - the date 8361 * @param {Date|Number} baseDate - the date to compare with 8362 * @param {Object} [options] - an object with options. 8363 * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed 8364 * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first 8365 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 8366 * @returns {String} the distance in words 8367 * @throws {TypeError} 2 arguments required 8368 * @throws {RangeError} `date` must not be Invalid Date 8369 * @throws {RangeError} `baseDate` must not be Invalid Date 8370 * @throws {RangeError} `options.locale` must contain `formatDistance` property 8371 * 8372 * @example 8373 * // What is the distance between 2 July 2014 and 1 January 2015? 8374 * var result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1)) 8375 * //=> '6 months' 8376 * 8377 * @example 8378 * // What is the distance between 1 January 2015 00:00:15 8379 * // and 1 January 2015 00:00:00, including seconds? 8380 * var result = formatDistance( 8381 * new Date(2015, 0, 1, 0, 0, 15), 8382 * new Date(2015, 0, 1, 0, 0, 0), 8383 * { includeSeconds: true } 8384 * ) 8385 * //=> 'less than 20 seconds' 8386 * 8387 * @example 8388 * // What is the distance from 1 January 2016 8389 * // to 1 January 2015, with a suffix? 8390 * var result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), { 8391 * addSuffix: true 8392 * }) 8393 * //=> 'about 1 year ago' 8394 * 8395 * @example 8396 * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? 8397 * import { eoLocale } from 'date-fns/locale/eo' 8398 * var result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), { 8399 * locale: eoLocale 8400 * }) 8401 * //=> 'pli ol 1 jaro' 8402 */ 8403 8404 function formatDistance(dirtyDate, dirtyBaseDate, dirtyOptions) { 8405 __WEBPACK_IMPORTED_MODULE_7__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 8406 var options = dirtyOptions || {}; 8407 var locale = options.locale || __WEBPACK_IMPORTED_MODULE_3__locale_en_US_index_js__["a" /* default */]; 8408 8409 if (!locale.formatDistance) { 8410 throw new RangeError('locale must contain formatDistance property'); 8411 } 8412 8413 var comparison = __WEBPACK_IMPORTED_MODULE_0__compareAsc_index_js__["a" /* default */](dirtyDate, dirtyBaseDate); 8414 8415 if (isNaN(comparison)) { 8416 throw new RangeError('Invalid time value'); 8417 } 8418 8419 var localizeOptions = __WEBPACK_IMPORTED_MODULE_5__lib_cloneObject_index_js__["a" /* default */](options); 8420 localizeOptions.addSuffix = Boolean(options.addSuffix); 8421 localizeOptions.comparison = comparison; 8422 var dateLeft; 8423 var dateRight; 8424 8425 if (comparison > 0) { 8426 dateLeft = __WEBPACK_IMPORTED_MODULE_4__toDate_index_js__["a" /* default */](dirtyBaseDate); 8427 dateRight = __WEBPACK_IMPORTED_MODULE_4__toDate_index_js__["a" /* default */](dirtyDate); 8428 } else { 8429 dateLeft = __WEBPACK_IMPORTED_MODULE_4__toDate_index_js__["a" /* default */](dirtyDate); 8430 dateRight = __WEBPACK_IMPORTED_MODULE_4__toDate_index_js__["a" /* default */](dirtyBaseDate); 8431 } 8432 8433 var seconds = __WEBPACK_IMPORTED_MODULE_2__differenceInSeconds_index_js__["a" /* default */](dateRight, dateLeft); 8434 var offsetInSeconds = (__WEBPACK_IMPORTED_MODULE_6__lib_getTimezoneOffsetInMilliseconds_index_js__["a" /* default */](dateRight) - __WEBPACK_IMPORTED_MODULE_6__lib_getTimezoneOffsetInMilliseconds_index_js__["a" /* default */](dateLeft)) / 1000; 8435 var minutes = Math.round((seconds - offsetInSeconds) / 60); 8436 var months; // 0 up to 2 mins 8437 8438 if (minutes < 2) { 8439 if (options.includeSeconds) { 8440 if (seconds < 5) { 8441 return locale.formatDistance('lessThanXSeconds', 5, localizeOptions); 8442 } else if (seconds < 10) { 8443 return locale.formatDistance('lessThanXSeconds', 10, localizeOptions); 8444 } else if (seconds < 20) { 8445 return locale.formatDistance('lessThanXSeconds', 20, localizeOptions); 8446 } else if (seconds < 40) { 8447 return locale.formatDistance('halfAMinute', null, localizeOptions); 8448 } else if (seconds < 60) { 8449 return locale.formatDistance('lessThanXMinutes', 1, localizeOptions); 8450 } else { 8451 return locale.formatDistance('xMinutes', 1, localizeOptions); 8452 } 8453 } else { 8454 if (minutes === 0) { 8455 return locale.formatDistance('lessThanXMinutes', 1, localizeOptions); 8456 } else { 8457 return locale.formatDistance('xMinutes', minutes, localizeOptions); 8458 } 8459 } // 2 mins up to 0.75 hrs 8460 8461 } else if (minutes < 45) { 8462 return locale.formatDistance('xMinutes', minutes, localizeOptions); // 0.75 hrs up to 1.5 hrs 8463 } else if (minutes < 90) { 8464 return locale.formatDistance('aboutXHours', 1, localizeOptions); // 1.5 hrs up to 24 hrs 8465 } else if (minutes < MINUTES_IN_DAY) { 8466 var hours = Math.round(minutes / 60); 8467 return locale.formatDistance('aboutXHours', hours, localizeOptions); // 1 day up to 1.75 days 8468 } else if (minutes < MINUTES_IN_ALMOST_TWO_DAYS) { 8469 return locale.formatDistance('xDays', 1, localizeOptions); // 1.75 days up to 30 days 8470 } else if (minutes < MINUTES_IN_MONTH) { 8471 var days = Math.round(minutes / MINUTES_IN_DAY); 8472 return locale.formatDistance('xDays', days, localizeOptions); // 1 month up to 2 months 8473 } else if (minutes < MINUTES_IN_TWO_MONTHS) { 8474 months = Math.round(minutes / MINUTES_IN_MONTH); 8475 return locale.formatDistance('aboutXMonths', months, localizeOptions); 8476 } 8477 8478 months = __WEBPACK_IMPORTED_MODULE_1__differenceInMonths_index_js__["a" /* default */](dateRight, dateLeft); // 2 months up to 12 months 8479 8480 if (months < 12) { 8481 var nearestMonth = Math.round(minutes / MINUTES_IN_MONTH); 8482 return locale.formatDistance('xMonths', nearestMonth, localizeOptions); // 1 year up to max Date 8483 } else { 8484 var monthsSinceStartOfYear = months % 12; 8485 var years = Math.floor(months / 12); // N years up to 1 years 3 months 8486 8487 if (monthsSinceStartOfYear < 3) { 8488 return locale.formatDistance('aboutXYears', years, localizeOptions); // N years 3 months up to N years 9 months 8489 } else if (monthsSinceStartOfYear < 9) { 8490 return locale.formatDistance('overXYears', years, localizeOptions); // N years 9 months up to N year 12 months 8491 } else { 8492 return locale.formatDistance('almostXYears', years + 1, localizeOptions); 8493 } 8494 } 8495 } 8496 8497 /***/ 8498 }), 8499 /* 159 */ 8500 /***/ (function (module, __webpack_exports__, __webpack_require__) { 8501 8502 "use strict"; 8503 /* harmony export (immutable) */ 8504 __webpack_exports__["a"] = cloneObject; 8505 /* harmony import */ 8506 var __WEBPACK_IMPORTED_MODULE_0__assign_index_js__ = __webpack_require__(160); 8507 8508 function cloneObject(dirtyObject) { 8509 return __WEBPACK_IMPORTED_MODULE_0__assign_index_js__["a" /* default */]({}, dirtyObject); 8510 } 8511 8512 /***/ 8513 }), 8514 /* 160 */ 8515 /***/ (function (module, __webpack_exports__, __webpack_require__) { 8516 8517 "use strict"; 8518 /* harmony export (immutable) */ 8519 __webpack_exports__["a"] = assign; 8520 8521 function assign(target, dirtyObject) { 8522 if (target == null) { 8523 throw new TypeError('assign requires that input parameter not be null or undefined'); 8524 } 8525 8526 dirtyObject = dirtyObject || {}; 8527 8528 for (var property in dirtyObject) {
8529 if (dirtyObject.hasOwnProperty(property)) { 8530 target[property] = dirtyObject[property]; 8531 } 8532 } 8533 8534 return target; 8535 } 8536 8537 /***/ 8538 }), 8539 /* 161 */ 8540 /***/ (function (module, __webpack_exports__, __webpack_require__) { 8541 8542 "use strict"; 8543 /* harmony export (immutable) */ 8544 __webpack_exports__["a"] = formatDistanceStrict; 8545 /* harmony import */ 8546 var __WEBPACK_IMPORTED_MODULE_0__lib_getTimezoneOffsetInMilliseconds_index_js__ = __webpack_require__(19); 8547 /* harmony import */ 8548 var __WEBPACK_IMPORTED_MODULE_1__compareAsc_index_js__ = __webpack_require__(27); 8549 /* harmony import */ 8550 var __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__ = __webpack_require__(1); 8551 /* harmony import */ 8552 var __WEBPACK_IMPORTED_MODULE_3__differenceInSeconds_index_js__ = __webpack_require__(61); 8553 /* harmony import */ 8554 var __WEBPACK_IMPORTED_MODULE_4__lib_cloneObject_index_js__ = __webpack_require__(159); 8555 /* harmony import */ 8556 var __WEBPACK_IMPORTED_MODULE_5__locale_en_US_index_js__ = __webpack_require__(28); 8557 /* harmony import */ 8558 var __WEBPACK_IMPORTED_MODULE_6__lib_requiredArgs_index_js__ = __webpack_require__(0); 8559 8560 8561 var MINUTES_IN_DAY = 1440; 8562 var MINUTES_IN_MONTH = 43200; 8563 var MINUTES_IN_YEAR = 525600; 8564 8565 /** 8566 * @name formatDistanceStrict 8567 * @category Common Helpers 8568 * @summary Return the distance between the given dates in words. 8569 * 8570 * @description 8571 * Return the distance between the given dates in words, using strict units. 8572 * This is like `formatDistance`, but does not use helpers like 'almost', 'over', 8573 * 'less than' and the like. 8574 * 8575 * | Distance between dates | Result | 8576 * |------------------------|---------------------| 8577 * | 0 ... 59 secs | [0..59] seconds | 8578 * | 1 ... 59 mins | [1..59] minutes | 8579 * | 1 ... 23 hrs | [1..23] hours | 8580 * | 1 ... 29 days | [1..29] days | 8581 * | 1 ... 11 months | [1..11] months | 8582 * | 1 ... N years | [1..N] years | 8583 * 8584 * ### v2.0.0 breaking changes: 8585 * 8586 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 8587 * 8588 * - The function was renamed from `distanceInWordsStrict` to `formatDistanceStrict` 8589 * to make its name consistent with `format` and `formatRelative`. 8590 * 8591 * - The order of arguments is swapped to make the function 8592 * consistent with `differenceIn...` functions. 8593 * 8594 * ```javascript 8595 * // Before v2.0.0 8596 * 8597 * distanceInWordsStrict( 8598 * new Date(2015, 0, 2), 8599 * new Date(2014, 6, 2) 8600 * ) //=> '6 months' 8601 * 8602 * // v2.0.0 onward 8603 * 8604 * formatDistanceStrict( 8605 * new Date(2014, 6, 2), 8606 * new Date(2015, 0, 2) 8607 * ) //=> '6 months' 8608 * ``` 8609 * 8610 * - `partialMethod` option is renamed to `roundingMethod`. 8611 * 8612 * ```javascript 8613 * // Before v2.0.0 8614 * 8615 * distanceInWordsStrict( 8616 * new Date(1986, 3, 4, 10, 32, 0), 8617 * new Date(1986, 3, 4, 10, 33, 1), 8618 * { partialMethod: 'ceil' } 8619 * ) //=> '2 minutes' 8620 * 8621 * // v2.0.0 onward 8622 * 8623 * formatDistanceStrict( 8624 * new Date(1986, 3, 4, 10, 33, 1), 8625 * new Date(1986, 3, 4, 10, 32, 0), 8626 * { roundingMethod: 'ceil' } 8627 * ) //=> '2 minutes' 8628 * ``` 8629 * 8630 * - If `roundingMethod` is not specified, it now defaults to `round` instead of `floor`. 8631 * 8632 * - `unit` option now accepts one of the strings: 8633 * 'second', 'minute', 'hour', 'day', 'month' or 'year' instead of 's', 'm', 'h', 'd', 'M' or 'Y' 8634 * 8635 * ```javascript 8636 * // Before v2.0.0 8637 * 8638 * distanceInWordsStrict( 8639 * new Date(1986, 3, 4, 10, 32, 0), 8640 * new Date(1986, 3, 4, 10, 33, 1), 8641 * { unit: 'm' } 8642 * ) 8643 * 8644 * // v2.0.0 onward 8645 * 8646 * formatDistanceStrict( 8647 * new Date(1986, 3, 4, 10, 33, 1), 8648 * new Date(1986, 3, 4, 10, 32, 0), 8649 * { unit: 'minute' } 8650 * ) 8651 * ``` 8652 * 8653 * @param {Date|Number} date - the date 8654 * @param {Date|Number} baseDate - the date to compare with 8655 * @param {Object} [options] - an object with options. 8656 * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first 8657 * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit 8658 * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units 8659 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 8660 * @returns {String} the distance in words 8661 * @throws {TypeError} 2 arguments required 8662 * @throws {RangeError} `date` must not be Invalid Date 8663 * @throws {RangeError} `baseDate` must not be Invalid Date 8664 * @throws {RangeError} `options.roundingMethod` must be 'floor', 'ceil' or 'round' 8665 * @throws {RangeError} `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year' 8666 * @throws {RangeError} `options.locale` must contain `formatDistance` property 8667 * 8668 * @example 8669 * // What is the distance between 2 July 2014 and 1 January 2015? 8670 * var result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2)) 8671 * //=> '6 months' 8672 * 8673 * @example 8674 * // What is the distance between 1 January 2015 00:00:15 8675 * // and 1 January 2015 00:00:00? 8676 * var result = formatDistanceStrict( 8677 * new Date(2015, 0, 1, 0, 0, 15), 8678 * new Date(2015, 0, 1, 0, 0, 0) 8679 * ) 8680 * //=> '15 seconds' 8681 * 8682 * @example 8683 * // What is the distance from 1 January 2016 8684 * // to 1 January 2015, with a suffix? 8685 * var result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), { 8686 * addSuffix: true 8687 * }) 8688 * //=> '1 year ago' 8689 * 8690 * @example 8691 * // What is the distance from 1 January 2016 8692 * // to 1 January 2015, in minutes? 8693 * var result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), { 8694 * unit: 'minute' 8695 * }) 8696 * //=> '525600 minutes' 8697 * 8698 * @example 8699 * // What is the distance from 1 January 2015
vendor: 6,518 bytes, lines 8700-8821
8700 * // to 28 January 2015, in months, rounded up? 8701 * var result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), { 8702 * unit: 'month', 8703 * roundingMethod: 'ceil' 8704 * }) 8705 * //=> '1 month' 8706 * 8707 * @example 8708 * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? 8709 * import { eoLocale } from 'date-fns/locale/eo' 8710 * var result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), { 8711 * locale: eoLocale 8712 * }) 8713 * //=> '1 jaro' 8714 */ 8715 8716 function formatDistanceStrict(dirtyDate, dirtyBaseDate, dirtyOptions) { 8717 __WEBPACK_IMPORTED_MODULE_6__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 8718 var options = dirtyOptions || {}; 8719 var locale = options.locale || __WEBPACK_IMPORTED_MODULE_5__locale_en_US_index_js__["a" /* default */]; 8720 8721 if (!locale.formatDistance) { 8722 throw new RangeError('locale must contain localize.formatDistance property'); 8723 } 8724 8725 var comparison = __WEBPACK_IMPORTED_MODULE_1__compareAsc_index_js__["a" /* default */](dirtyDate, dirtyBaseDate); 8726 8727 if (isNaN(comparison)) { 8728 throw new RangeError('Invalid time value'); 8729 } 8730 8731 var localizeOptions = __WEBPACK_IMPORTED_MODULE_4__lib_cloneObject_index_js__["a" /* default */](options); 8732 localizeOptions.addSuffix = Boolean(options.addSuffix); 8733 localizeOptions.comparison = comparison; 8734 var dateLeft; 8735 var dateRight; 8736 8737 if (comparison > 0) { 8738 dateLeft = __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](dirtyBaseDate); 8739 dateRight = __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](dirtyDate); 8740 } else { 8741 dateLeft = __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](dirtyDate); 8742 dateRight = __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](dirtyBaseDate); 8743 } 8744 8745 var roundingMethod = options.roundingMethod == null ? 'round' : String(options.roundingMethod); 8746 var roundingMethodFn; 8747 8748 if (roundingMethod === 'floor') { 8749 roundingMethodFn = Math.floor; 8750 } else if (roundingMethod === 'ceil') { 8751 roundingMethodFn = Math.ceil; 8752 } else if (roundingMethod === 'round') { 8753 roundingMethodFn = Math.round; 8754 } else { 8755 throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'"); 8756 } 8757 8758 var seconds = __WEBPACK_IMPORTED_MODULE_3__differenceInSeconds_index_js__["a" /* default */](dateRight, dateLeft); 8759 var offsetInSeconds = (__WEBPACK_IMPORTED_MODULE_0__lib_getTimezoneOffsetInMilliseconds_index_js__["a" /* default */](dateRight) - __WEBPACK_IMPORTED_MODULE_0__lib_getTimezoneOffsetInMilliseconds_index_js__["a" /* default */](dateLeft)) / 1000; 8760 var minutes = roundingMethodFn((seconds - offsetInSeconds) / 60); 8761 var unit; 8762 8763 if (options.unit == null) { 8764 if (minutes < 1) { 8765 unit = 'second'; 8766 } else if (minutes < 60) { 8767 unit = 'minute'; 8768 } else if (minutes < MINUTES_IN_DAY) { 8769 unit = 'hour'; 8770 } else if (minutes < MINUTES_IN_MONTH) { 8771 unit = 'day'; 8772 } else if (minutes < MINUTES_IN_YEAR) { 8773 unit = 'month'; 8774 } else { 8775 unit = 'year'; 8776 } 8777 } else { 8778 unit = String(options.unit); 8779 } // 0 up to 60 seconds 8780 8781 8782 if (unit === 'second') { 8783 return locale.formatDistance('xSeconds', seconds, localizeOptions); // 1 up to 60 mins 8784 } else if (unit === 'minute') { 8785 return locale.formatDistance('xMinutes', minutes, localizeOptions); // 1 up to 24 hours 8786 } else if (unit === 'hour') { 8787 var hours = roundingMethodFn(minutes / 60); 8788 return locale.formatDistance('xHours', hours, localizeOptions); // 1 up to 30 days 8789 } else if (unit === 'day') { 8790 var days = roundingMethodFn(minutes / MINUTES_IN_DAY); 8791 return locale.formatDistance('xDays', days, localizeOptions); // 1 up to 12 months 8792 } else if (unit === 'month') { 8793 var months = roundingMethodFn(minutes / MINUTES_IN_MONTH); 8794 return locale.formatDistance('xMonths', months, localizeOptions); // 1 year up to max Date 8795 } else if (unit === 'year') { 8796 var years = roundingMethodFn(minutes / MINUTES_IN_YEAR); 8797 return locale.formatDistance('xYears', years, localizeOptions); 8798 } 8799 8800 throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'"); 8801 } 8802 8803 /***/ 8804 }), 8805 /* 162 */ 8806 /***/ (function (module, __webpack_exports__, __webpack_require__) { 8807 8808 "use strict"; 8809 /* harmony export (immutable) */ 8810 __webpack_exports__["a"] = getDate; 8811 /* harmony import */ 8812 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 8813 /* harmony import */ 8814 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 8815 8816 8817 /** 8818 * @name getDate 8819 * @category Day Helpers 8820 * @summary Get the day of the month of the given date. 8821 *
8822 * @description 8823 * Get the day of the month of the given date. 8824 * 8825 * ### v2.0.0 breaking changes: 8826 * 8827 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 8828 * 8829 * @param {Date|Number} date - the given date 8830 * @returns {Number} the day of month 8831 * @throws {TypeError} 1 argument required 8832 * 8833 * @example 8834 * // Which day of the month is 29 February 2012? 8835 * var result = getDate(new Date(2012, 1, 29)) 8836 * //=> 29 8837 */ 8838 8839 function getDate(dirtyDate) { 8840 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 8841 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 8842 var dayOfMonth = date.getDate(); 8843 return dayOfMonth; 8844 } 8845 8846 /***/ 8847 }), 8848 /* 163 */ 8849 /***/ (function (module, __webpack_exports__, __webpack_require__) { 8850 8851 "use strict"; 8852 /* harmony export (immutable) */ 8853 __webpack_exports__["a"] = getDay; 8854 /* harmony import */ 8855 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 8856 /* harmony import */ 8857 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 8858 8859 8860 /** 8861 * @name getDay 8862 * @category Weekday Helpers 8863 * @summary Get the day of the week of the given date. 8864 * 8865 * @description 8866 * Get the day of the week of the given date. 8867 * 8868 * ### v2.0.0 breaking changes: 8869 * 8870 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 8871 * 8872 * @param {Date|Number} date - the given date 8873 * @returns {0|1|2|3|4|5|6} the day of week, 0 represents Sunday 8874 * @throws {TypeError} 1 argument required 8875 * 8876 * @example 8877 * // Which day of the week is 29 February 2012? 8878 * var result = getDay(new Date(2012, 1, 29)) 8879 * //=> 3 8880 */ 8881 8882 function getDay(dirtyDate) { 8883 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 8884 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 8885 var day = date.getDay(); 8886 return day; 8887 } 8888 8889 /***/ 8890 }), 8891 /* 164 */ 8892 /***/ (function (module, __webpack_exports__, __webpack_require__) { 8893 8894 "use strict"; 8895 /* harmony export (immutable) */ 8896 __webpack_exports__["a"] = getDaysInMonth; 8897 /* harmony import */ 8898 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 8899 /* harmony import */ 8900 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 8901 8902 8903 /** 8904 * @name getDaysInMonth 8905 * @category Month Helpers 8906 * @summary Get the number of days in a month of the given date. 8907 * 8908 * @description 8909 * Get the number of days in a month of the given date. 8910 * 8911 * ### v2.0.0 breaking changes: 8912 * 8913 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 8914 * 8915 * @param {Date|Number} date - the given date 8916 * @returns {Number} the number of days in a month 8917 * @throws {TypeError} 1 argument required 8918 * 8919 * @example 8920 * // How many days are in February 2000? 8921 * var result = getDaysInMonth(new Date(2000, 1)) 8922 * //=> 29 8923 */ 8924 8925 function getDaysInMonth(dirtyDate) { 8926 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 8927 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 8928 var year = date.getFullYear(); 8929 var monthIndex = date.getMonth(); 8930 var lastDayOfMonth = new Date(0); 8931 lastDayOfMonth.setFullYear(year, monthIndex + 1, 0); 8932 lastDayOfMonth.setHours(0, 0, 0, 0); 8933 return lastDayOfMonth.getDate(); 8934 } 8935 8936 /***/ 8937 }), 8938 /* 165 */ 8939 /***/ (function (module, __webpack_exports__, __webpack_require__) { 8940 8941 "use strict"; 8942 /* harmony export (immutable) */ 8943 __webpack_exports__["a"] = isLeapYear; 8944 /* harmony import */ 8945 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 8946 /* harmony import */ 8947 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 8948 8949 8950 /** 8951 * @name isLeapYear 8952 * @category Year Helpers 8953 * @summary Is the given date in the leap year? 8954 *
8955 * @description 8956 * Is the given date in the leap year? 8957 * 8958 * ### v2.0.0 breaking changes: 8959 * 8960 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 8961 * 8962 * @param {Date|Number} date - the date to check 8963 * @returns {Boolean} the date is in the leap year 8964 * @throws {TypeError} 1 argument required 8965 * 8966 * @example 8967 * // Is 1 September 2012 in the leap year? 8968 * var result = isLeapYear(new Date(2012, 8, 1)) 8969 * //=> true 8970 */ 8971 8972 function isLeapYear(dirtyDate) { 8973 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 8974 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 8975 var year = date.getFullYear(); 8976 return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; 8977 } 8978 8979 /***/ 8980 }), 8981 /* 166 */ 8982 /***/ (function (module, __webpack_exports__, __webpack_require__) { 8983 8984 "use strict"; 8985 /* harmony export (immutable) */ 8986 __webpack_exports__["a"] = getISODay; 8987 /* harmony import */ 8988 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 8989 /* harmony import */ 8990 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 8991 8992 8993 /** 8994 * @name getISODay 8995 * @category Weekday Helpers 8996 * @summary Get the day of the ISO week of the given date. 8997 * 8998 * @description 8999 * Get the day of the ISO week of the given date, 9000 * which is 7 for Sunday, 1 for Monday etc. 9001 * 9002 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 9003 * 9004 * ### v2.0.0 breaking changes: 9005 * 9006 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 9007 * 9008 * @param {Date|Number} date - the given date 9009 * @returns {Number} the day of ISO week 9010 * @throws {TypeError} 1 argument required 9011 * 9012 * @example 9013 * // Which day of the ISO week is 26 February 2012? 9014 * var result = getISODay(new Date(2012, 1, 26)) 9015 * //=> 7 9016 */ 9017 9018 function getISODay(dirtyDate) { 9019 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 9020 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 9021 var day = date.getDay(); 9022 9023 if (day === 0) { 9024 day = 7; 9025 } 9026 9027 return day; 9028 } 9029 9030 /***/ 9031 }), 9032 /* 167 */ 9033 /***/ (function (module, __webpack_exports__, __webpack_require__) { 9034 9035 "use strict"; 9036 /* harmony export (immutable) */ 9037 __webpack_exports__["a"] = getISOWeek; 9038 /* harmony import */ 9039 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 9040 /* harmony import */ 9041 var __WEBPACK_IMPORTED_MODULE_1__startOfISOWeek_index_js__ = __webpack_require__(25); 9042 /* harmony import */ 9043 var __WEBPACK_IMPORTED_MODULE_2__startOfISOWeekYear_index_js__ = __webpack_require__(46); 9044 /* harmony import */ 9045 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 9046 9047 9048 var MILLISECONDS_IN_WEEK = 604800000; 9049 9050 /** 9051 * @name getISOWeek 9052 * @category ISO Week Helpers 9053 * @summary Get the ISO week of the given date. 9054 *
9055 * @description 9056 * Get the ISO week of the given date. 9057 * 9058 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 9059 * 9060 * ### v2.0.0 breaking changes: 9061 * 9062 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 9063 * 9064 * @param {Date|Number} date - the given date 9065 * @returns {Number} the ISO week 9066 * @throws {TypeError} 1 argument required 9067 * 9068 * @example 9069 * // Which week of the ISO-week numbering year is 2 January 2005? 9070 * var result = getISOWeek(new Date(2005, 0, 2)) 9071 * //=> 53 9072 */ 9073 9074 function getISOWeek(dirtyDate) { 9075 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 9076 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 9077 var diff = __WEBPACK_IMPORTED_MODULE_1__startOfISOWeek_index_js__["a" /* default */](date).getTime() - __WEBPACK_IMPORTED_MODULE_2__startOfISOWeekYear_index_js__["a" /* default */](date).getTime(); // Round the number of days to the nearest integer 9078 // because the number of milliseconds in a week is not constant 9079 // (e.g. it's different in the week of the daylight saving time clock shift) 9080 9081 return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; 9082 } 9083 9084 /***/ 9085 }), 9086 /* 168 */ 9087 /***/ (function (module, __webpack_exports__, __webpack_require__) { 9088 9089 "use strict"; 9090 /* harmony export (immutable) */ 9091 __webpack_exports__["a"] = getTime; 9092 /* harmony import */ 9093 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 9094 /* harmony import */ 9095 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 9096 9097 9098 /** 9099 * @name getTime 9100 * @category Timestamp Helpers 9101 * @summary Get the milliseconds timestamp of the given date. 9102 * 9103 * @description 9104 * Get the milliseconds timestamp of the given date. 9105 * 9106 * ### v2.0.0 breaking changes: 9107 * 9108 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 9109 * 9110 * @param {Date|Number} date - the given date 9111 * @returns {Number} the timestamp 9112 * @throws {TypeError} 1 argument required 9113 * 9114 * @example 9115 * // Get the timestamp of 29 February 2012 11:45:05.123: 9116 * var result = getTime(new Date(2012, 1, 29, 11, 45, 5, 123)) 9117 * //=>
vendor: 5,659 bytes, lines 9117-9222
9117 1330515905123 9118 */ 9119 9120 function getTime(dirtyDate) { 9121 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 9122 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 9123 var timestamp = date.getTime(); 9124 return timestamp; 9125 } 9126 9127 /***/ 9128 }), 9129 /* 169 */ 9130 /***/ (function (module, __webpack_exports__, __webpack_require__) { 9131 9132 "use strict"; 9133 /* harmony export (immutable) */ 9134 __webpack_exports__["a"] = getWeek; 9135 /* harmony import */ 9136 var __WEBPACK_IMPORTED_MODULE_0__startOfWeek_index_js__ = __webpack_require__(22); 9137 /* harmony import */ 9138 var __WEBPACK_IMPORTED_MODULE_1__startOfWeekYear_index_js__ = __webpack_require__(93); 9139 /* harmony import */ 9140 var __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__ = __webpack_require__(1); 9141 /* harmony import */ 9142 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 9143 9144 9145 var MILLISECONDS_IN_WEEK = 604800000; 9146 9147 /** 9148 * @name getWeek 9149 * @category Week Helpers 9150 * @summary Get the local week index of the given date. 9151 * 9152 * @description 9153 * Get the local week index of the given date. 9154 * The exact calculation depends on the values of 9155 * `options.weekStartsOn` (which is the index of the first day of the week) 9156 * and `options.firstWeekContainsDate` (which is the day of January, which is always in 9157 * the first week of the week-numbering year) 9158 * 9159 * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering 9160 * 9161 * ### v2.0.0 breaking changes: 9162 * 9163 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 9164 * 9165 * @param {Date|Number} date - the given date 9166 * @param {Object} [options] - an object with options. 9167 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 9168 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 9169 * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year 9170 * @returns {Number} the week 9171 * @throws {TypeError} 1 argument required 9172 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 9173 * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 9174 * 9175 * @example 9176 * // Which week of the local week numbering year is 2 January 2005 with default options? 9177 * var result = getISOWeek(new Date(2005, 0, 2)) 9178 * //=> 2 9179 * 9180 * // Which week of the local week numbering year is 2 January 2005, 9181 * // if Monday is the first day of the week, 9182 * // and the first week of the year always contains 4 January? 9183 * var result = getISOWeek(new Date(2005, 0, 2), { 9184 * weekStartsOn: 1, 9185 * firstWeekContainsDate: 4 9186 * }) 9187 * //=> 53 9188 */ 9189 9190 function getWeek(dirtyDate, options) { 9191 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 9192 var date = __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](dirtyDate); 9193 var diff = __WEBPACK_IMPORTED_MODULE_0__startOfWeek_index_js__["a" /* default */](date, options).getTime() - __WEBPACK_IMPORTED_MODULE_1__startOfWeekYear_index_js__["a" /* default */](date, options).getTime(); // Round the number of days to the nearest integer 9194 // because the number of milliseconds in a week is not constant 9195 // (e.g. it's different in the week of the daylight saving time clock shift) 9196 9197 return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; 9198 } 9199 9200 /***/ 9201 }), 9202 /* 170 */ 9203 /***/ (function (module, __webpack_exports__, __webpack_require__) { 9204 9205 "use strict"; 9206 /* harmony export (immutable) */ 9207 __webpack_exports__["a"] = getWeekYear; 9208 /* harmony import */ 9209 var __WEBPACK_IMPORTED_MODULE_0__startOfWeek_index_js__ = __webpack_require__(22); 9210 /* harmony import */ 9211 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 9212 /* harmony import */ 9213 var __WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__ = __webpack_require__(6); 9214 /* harmony import */ 9215 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 9216 9217 9218 /** 9219 * @name getWeekYear 9220 * @category Week-Numbering Year Helpers 9221 * @summary Get the local week-numbering year of the given date. 9222 *
9223 * @description 9224 * Get the local week-numbering year of the given date. 9225 * The exact calculation depends on the values of 9226 * `options.weekStartsOn` (which is the index of the first day of the week) 9227 * and `options.firstWeekContainsDate` (which is the day of January, which is always in 9228 * the first week of the week-numbering year) 9229 * 9230 * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering 9231 * 9232 * ### v2.0.0 breaking changes: 9233 * 9234 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 9235 * 9236 * @param {Date|Number} date - the given date 9237 * @param {Object} [options] - an object with options. 9238 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 9239 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 9240 * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year 9241 * @returns {Number} the local week-numbering year 9242 * @throws {TypeError} 1 argument required 9243 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 9244 * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 9245 * 9246 * @example 9247 * // Which week numbering year is 26 December 2004 with the default settings? 9248 * var result = getWeekYear(new Date(2004, 11, 26)) 9249 * //=> 2005 9250 * 9251 * @example 9252 * // Which week numbering year is 26 December 2004 if week starts on Saturday? 9253 * var result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 }) 9254 * //=> 2004 9255 * 9256 * @example 9257 * // Which week numbering year is 26 December 2004 if the first week contains 4 January? 9258 * var result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 }) 9259 * //=> 2004 9260 */ 9261 9262 function getWeekYear(dirtyDate, dirtyOptions) { 9263 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 9264 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 9265 var year = date.getFullYear(); 9266 var options = dirtyOptions || {}; 9267 var locale = options.locale; 9268 var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate; 9269 var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : __WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__["a" /* default */](localeFirstWeekContainsDate); 9270 var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : __WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__["a" /* default */](options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN 9271 9272 if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { 9273 throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); 9274 } 9275 9276 var firstWeekOfNextYear = new Date(0); 9277 firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate); 9278 firstWeekOfNextYear.setHours(0, 0, 0, 0); 9279 var startOfNextYear = __WEBPACK_IMPORTED_MODULE_0__startOfWeek_index_js__["a" /* default */](firstWeekOfNextYear, dirtyOptions); 9280 var firstWeekOfThisYear = new Date(0); 9281 firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate); 9282 firstWeekOfThisYear.setHours(0, 0, 0, 0); 9283 var startOfThisYear = __WEBPACK_IMPORTED_MODULE_0__startOfWeek_index_js__["a" /* default */](firstWeekOfThisYear, dirtyOptions); 9284 9285 if (date.getTime() >= startOfNextYear.getTime()) { 9286 return year + 1; 9287 } else if (date.getTime() >= startOfThisYear.getTime()) { 9288 return year; 9289 } else { 9290 return year - 1; 9291 } 9292 } 9293 9294 /***/ 9295 }), 9296 /* 171 */ 9297 /***/ (function (module, __webpack_exports__, __webpack_require__) { 9298 9299 "use strict"; 9300 /* harmony export (immutable) */ 9301 __webpack_exports__["a"] = lastDayOfMonth; 9302 /* harmony import */ 9303 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 9304 /* harmony import */ 9305 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 9306 9307 9308 /** 9309 * @name lastDayOfMonth 9310 * @category Month Helpers 9311 * @summary Return the last day of a month for the given date. 9312 *
9313 * @description 9314 * Return the last day of a month for the given date. 9315 * The result will be in the local timezone. 9316 * 9317 * ### v2.0.0 breaking changes: 9318 * 9319 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 9320 * 9321 * @param {Date|Number} date - the original date 9322 * @returns {Date} the last day of a month 9323 * @throws {TypeError} 1 argument required 9324 * 9325 * @example 9326 * // The last day of a month for 2 September 2014 11:55:00: 9327 * var result = lastDayOfMonth(new Date(2014, 8, 2, 11, 55, 0)) 9328 * //=> Tue Sep 30 2014 00:00:00 9329 */ 9330 9331 function lastDayOfMonth(dirtyDate) { 9332 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 9333 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 9334 var month = date.getMonth(); 9335 date.setFullYear(date.getFullYear(), month + 1, 0); 9336 date.setHours(0, 0, 0, 0); 9337 return date; 9338 } 9339 9340 /***/ 9341 }), 9342 /* 172 */ 9343 /***/ (function (module, __webpack_exports__, __webpack_require__) { 9344 9345 "use strict"; 9346 /* harmony export (immutable) */ 9347 __webpack_exports__["a"] = sub; 9348 /* harmony import */ 9349 var __WEBPACK_IMPORTED_MODULE_0__subDays_index_js__ = __webpack_require__(94); 9350 /* harmony import */ 9351 var __WEBPACK_IMPORTED_MODULE_1__subMonths_index_js__ = __webpack_require__(173); 9352 /* harmony import */ 9353 var __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__ = __webpack_require__(1); 9354 /* harmony import */ 9355 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 9356 /* harmony import */ 9357 var __WEBPACK_IMPORTED_MODULE_4__lib_toInteger_index_js__ = __webpack_require__(6); 9358 9359 9360 /** 9361 * @name sub 9362 * @category Common Helpers 9363 * @summary Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date. 9364 * 9365 * @description 9366 * Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date. 9367 * 9368 * @param {Date|Number} date - the date to be changed 9369 * @param {Duration} duration - the object with years, months, weeks, days, hours, minutes and seconds to be subtracted 9370 * 9371 * | Key | Description | 9372 * |---------|------------------------------------| 9373 * | years | Amount of years to be subtracted | 9374 * | months | Amount of months to be subtracted | 9375 * | weeks | Amount of weeks to be subtracted | 9376 * | days | Amount of days to be subtracted | 9377 * | hours | Amount of hours to be subtracted | 9378 * | minutes | Amount of minutes to be subtracted | 9379 * | seconds | Amount of seconds to be subtracted | 9380 * 9381 * All values default to 0 9382 * 9383 * @returns {Date} the new date with the seconds subtracted 9384 * @throws {TypeError} 2 arguments required 9385 * 9386 * @example 9387 * // Subtract the following duration from 15 June 2017 15:29:20 9388 * const result = sub(new Date(2017, 5, 15, 15, 29, 20), { 9389 * years: 2, 9390 * months: 9, 9391 * weeks: 1, 9392 * days: 7, 9393 * hours: 5, 9394 * minutes: 9, 9395 * seconds: 30 9396 * }) 9397 * //=> Mon Sep 1 2014 10:19:50 9398 */ 9399 9400 function sub(dirtyDate, duration) { 9401 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 9402 if (!duration || typeof duration !== 'object') return new Date(NaN); 9403 var years = 'years' in duration ? __WEBPACK_IMPORTED_MODULE_4__lib_toInteger_index_js__["a" /* default */](duration.years) : 0; 9404 var months = 'months' in duration ? __WEBPACK_IMPORTED_MODULE_4__lib_toInteger_index_js__["a" /* default */](duration.months) : 0; 9405 var weeks = 'weeks' in duration ? __WEBPACK_IMPORTED_MODULE_4__lib_toInteger_index_js__["a" /* default */](duration.weeks) : 0; 9406 var days = 'days' in duration ? __WEBPACK_IMPORTED_MODULE_4__lib_toInteger_index_js__["a" /* default */](duration.days) : 0; 9407 var hours = 'hours' in duration ? __WEBPACK_IMPORTED_MODULE_4__lib_toInteger_index_js__["a" /* default */](duration.hours) : 0; 9408 var minutes = 'minutes' in duration ? __WEBPACK_IMPORTED_MODULE_4__lib_toInteger_index_js__["a" /* default */](duration.minutes) : 0; 9409 var seconds = 'seconds' in duration ? __WEBPACK_IMPORTED_MODULE_4__lib_toInteger_index_js__["a" /* default */](duration.seconds) : 0; // Subtract years and months 9410 9411 var dateWithoutMonths = __WEBPACK_IMPORTED_MODULE_1__subMonths_index_js__["a" /* default */](__WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](dirtyDate), months + years * 12); // Subtract weeks and days 9412 9413 var dateWithoutDays = __WEBPACK_IMPORTED_MODULE_0__subDays_index_js__["a" /* default */](dateWithoutMonths, days + weeks * 7); // Subtract hours, minutes and seconds 9414 9415 var minutestoSub = minutes + hours * 60; 9416 var secondstoSub = seconds + minutestoSub * 60; 9417 var mstoSub = secondstoSub * 1000; 9418 var finalDate = new Date(dateWithoutDays.getTime() - mstoSub); 9419 return finalDate; 9420 } 9421 9422 /***/ 9423 }), 9424 /* 173 */ 9425 /***/ (function (module, __webpack_exports__, __webpack_require__) { 9426 9427 "use strict"; 9428 /* harmony export (immutable) */ 9429 __webpack_exports__["a"] = subMonths; 9430 /* harmony import */ 9431 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 9432 /* harmony import */ 9433 var __WEBPACK_IMPORTED_MODULE_1__addMonths_index_js__ = __webpack_require__(44); 9434 /* harmony import */ 9435 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 9436 9437 9438 /** 9439 * @name subMonths 9440 * @category Month Helpers 9441 * @summary Subtract the specified number of months from the given date. 9442 *
9443 * @description 9444 * Subtract the specified number of months from the given date. 9445 * 9446 * ### v2.0.0 breaking changes: 9447 * 9448 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 9449 * 9450 * @param {Date|Number} date - the date to be changed 9451 * @param {Number} amount - the amount of months to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 9452 * @returns {Date} the new date with the months subtracted 9453 * @throws {TypeError} 2 arguments required 9454 * 9455 * @example 9456 * // Subtract 5 months from 1 February 2015: 9457 * var result = subMonths(new Date(2015, 1, 1), 5) 9458 * //=> Mon Sep 01 2014 00:00:00 9459 */ 9460 9461 function subMonths(dirtyDate, dirtyAmount) { 9462 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 9463 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 9464 return __WEBPACK_IMPORTED_MODULE_1__addMonths_index_js__["a" /* default */](dirtyDate, -amount); 9465 } 9466 9467 /***/ 9468 }), 9469 /* 174 */ 9470 /***/ (function (module, __webpack_exports__, __webpack_require__) { 9471 9472 "use strict"; 9473 /* harmony export (immutable) */ 9474 __webpack_exports__["a"] = parse; 9475 /* harmony import */ 9476 var __WEBPACK_IMPORTED_MODULE_0__locale_en_US_index_js__ = __webpack_require__(28); 9477 /* harmony import */ 9478 var __WEBPACK_IMPORTED_MODULE_1__subMilliseconds_index_js__ = __webpack_require__(49); 9479 /* harmony import */ 9480 var __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__ = __webpack_require__(1); 9481 /* harmony import */ 9482 var __WEBPACK_IMPORTED_MODULE_3__lib_assign_index_js__ = __webpack_require__(160); 9483 /* harmony import */ 9484 var __WEBPACK_IMPORTED_MODULE_4__lib_format_longFormatters_index_js__ = __webpack_require__(156); 9485 /* harmony import */ 9486 var __WEBPACK_IMPORTED_MODULE_5__lib_getTimezoneOffsetInMilliseconds_index_js__ = __webpack_require__(19); 9487 /* harmony import */ 9488 var __WEBPACK_IMPORTED_MODULE_6__lib_protectedTokens_index_js__ = __webpack_require__(157); 9489 /* harmony import */ 9490 var __WEBPACK_IMPORTED_MODULE_7__lib_toInteger_index_js__ = __webpack_require__(6); 9491 /* harmony import */ 9492 var __WEBPACK_IMPORTED_MODULE_8__lib_parsers_index_js__ = __webpack_require__(379); 9493 /* harmony import */ 9494 var __WEBPACK_IMPORTED_MODULE_9__lib_requiredArgs_index_js__ = __webpack_require__(0); 9495 9496 9497 var TIMEZONE_UNIT_PRIORITY = 10; // This RegExp consists of three parts separated by `|`: 9498// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token 9499// (one of the certain letters followed by `o`) 9500// - (\w)\1* matches any sequences of the same letter 9501// - '' matches two quote characters in a row 9502// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), 9503// except a single quote symbol, which ends the sequence. 9504// Two quote characters do not end the sequence. 9505// If there is no matching single quote 9506// then the sequence will continue until the end of the string. 9507// - . matches any single character unmatched by previous parts of the RegExps 9508 9509 var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also 9510// sequences of symbols P, p, and the combinations like `PPPPPPPppppp` 9511 9512 var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; 9513 var escapedStringRegExp = /^'([^]*?)'?$/; 9514 var doubleQuoteRegExp = /''/g; 9515 var notWhitespaceRegExp = /\S/; 9516 var unescapedLatinCharacterRegExp = /[a-zA-Z]/; 9517 9518 /** 9519 * @name parse 9520 * @category Common Helpers 9521 * @summary Parse the date. 9522 *
9523 * @description 9524 * Return the date parsed from string using the given format string. 9525 * 9526 * > â ï¸ Please note that the `format` tokens differ from Moment.js and other libraries. 9527 * > See: https://git.io/fxCyr 9528 * 9529 * The characters in the format string wrapped between two single quotes characters (') are escaped. 9530 * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. 9531 * 9532 * Format of the format string is based on Unicode Technical Standard #35: 9533 * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table 9534 * with a few additions (see note 5 below the table). 9535 * 9536 * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited 9537 * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception: 9538 * 9539 * ```javascript 9540 * parse('23 AM', 'HH a', new Date()) 9541 * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time 9542 * ``` 9543 * 9544 * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true 9545 * 9546 * Accepted format string patterns: 9547 * | Unit |Prior| Pattern | Result examples | Notes | 9548 * |---------------------------------|-----|---------|-----------------------------------|-------| 9549 * | Era | 140 | G..GGG | AD, BC | | 9550 * | | | GGGG | Anno Domini, Before Christ | 2 | 9551 * | | | GGGGG | A, B | | 9552 * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 | 9553 * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 | 9554 * | | | yy | 44, 01, 00, 17 | 4 | 9555 * | | | yyy | 044, 001, 123, 999 | 4 | 9556 * | | | yyyy | 0044, 0001, 1900, 2017 | 4 | 9557 * | | | yyyyy | ... | 2,4 | 9558 * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 | 9559 * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 | 9560 * | | | YY | 44, 01, 00, 17 | 4,6 | 9561 * | | | YYY | 044, 001, 123, 999 | 4 | 9562 * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 | 9563 * | | | YYYYY | ... | 2,4 | 9564 * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 | 9565 * | | | RR | -43, 01, 00, 17 | 4,5 | 9566 * | | | RRR | -043, 001, 123, 999, -999 | 4,5 | 9567 * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 | 9568 * | | | RRRRR | ... | 2,4,5 | 9569 * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 | 9570 * | | | uu | -43, 01, 99, -99 | 4 | 9571 * | | | uuu | -043, 001, 123, 999, -999 | 4 | 9572 * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 | 9573 * | | | uuuuu | ... | 2,4 | 9574 * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | | 9575 * | | | Qo | 1st, 2nd, 3rd, 4th | 5 | 9576 * | | | QQ | 01, 02, 03, 04 | | 9577 * | | | QQQ | Q1, Q2, Q3, Q4 | | 9578 * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | 9579 * | | | QQQQQ | 1, 2, 3, 4 | 4 | 9580 * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | | 9581 * | | | qo | 1st, 2nd, 3rd, 4th | 5 | 9582 * | | | qq | 01, 02, 03, 04 | | 9583 * | | | qqq | Q1, Q2, Q3, Q4 | | 9584 * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 | 9585 * | | | qqqqq | 1, 2, 3, 4 | 3 | 9586 * | Month (formatting) | 110 | M | 1, 2, ..., 12 | | 9587 * | | | Mo | 1st, 2nd, ..., 12th | 5 | 9588 * | | | MM | 01, 02, ..., 12 | | 9589 * | | | MMM | Jan, Feb, ..., Dec | | 9590 * | | | MMMM | January, February, ..., December | 2 | 9591 * | | | MMMMM | J, F, ..., D | | 9592 * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | | 9593 * | | | Lo | 1st, 2nd, ..., 12th | 5 | 9594 * | | | LL | 01, 02, ..., 12 | | 9595 * | | | LLL | Jan, Feb, ..., Dec | | 9596 * | | | LLLL | January, February, ..., December | 2 | 9597 * | | | LLLLL | J, F, ..., D | | 9598 * | Local week of year | 100 | w | 1, 2, ..., 53 | | 9599 * | | | wo | 1st, 2nd, ..., 53th | 5 | 9600 * | | | ww | 01, 02, ..., 53 | | 9601 * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 | 9602 * | | | Io | 1st, 2nd, ..., 53th | 5 | 9603 * | | | II | 01, 02, ..., 53 | 5 | 9604 * | Day of month | 90 | d | 1, 2, ..., 31 | | 9605 * | | | do | 1st, 2nd, ..., 31st | 5 | 9606 * | | | dd | 01, 02, ..., 31 | | 9607 * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 | 9608 * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 | 9609 * | | | DD | 01, 02, ..., 365, 366 | 7 | 9610 * | | | DDD | 001, 002, ..., 365, 366 | | 9611 * | | | DDDD | ... | 2 | 9612 * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | | 9613 * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 | 9614 * | | | EEEEE | M, T, W, T, F, S, S | | 9615 * | | | EEEEEE | Mo, Tu, We, Th, Fr, Su, Sa | | 9616 * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 | 9617 * | | | io | 1st, 2nd, ..., 7th | 5 | 9618 * | | | ii | 01, 02, ...,
961807 | 5 | 9619 * | | | iii | Mon, Tue, Wed, ..., Sun | 5 | 9620 * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 | 9621 * | | | iiiii | M, T, W, T, F, S, S | 5 | 9622 * | | | iiiiii | Mo, Tu, We, Th, Fr, Su, Sa | 5 | 9623 * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | | 9624 * | | | eo | 2nd, 3rd, ..., 1st | 5 | 9625 * | | | ee | 02, 03, ..., 01 | | 9626 * | | | eee | Mon, Tue, Wed, ..., Sun | | 9627 * | | | eeee | Monday, Tuesday, ..., Sunday | 2 | 9628 * | | | eeeee | M, T, W, T, F, S, S | | 9629 * | | | eeeeee | Mo, Tu, We, Th, Fr, Su, Sa | | 9630 * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | | 9631 * | | | co | 2nd, 3rd, ..., 1st | 5 | 9632 * | | | cc | 02, 03, ..., 01 | | 9633 * | | | ccc | Mon, Tue, Wed, ..., Sun | | 9634 * | | | cccc | Monday, Tuesday, ..., Sunday | 2 | 9635 * | | | ccccc | M, T, W, T, F, S, S | | 9636 * | | | cccccc | Mo, Tu, We, Th, Fr, Su, Sa | | 9637 * | AM, PM | 80 | a..aaa | AM, PM | | 9638 * | | | aaaa | a.m., p.m. | 2 | 9639 * | | | aaaaa | a, p | | 9640 * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | | 9641 * | | | bbbb | a.m., p.m., noon, midnight | 2 | 9642 * | | | bbbbb | a, p, n, mi | | 9643 * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | | 9644 * | | | BBBB | at night, in the morning, ... | 2 | 9645 * | | | BBBBB | at night, in the morning, ... | | 9646 * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | | 9647 * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 | 9648 * | | | hh | 01, 02, ..., 11, 12 | | 9649 * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | | 9650 * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 | 9651 * | | | HH | 00, 01, 02, ..., 23 | | 9652 * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | | 9653 * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 | 9654 * | | | KK | 01, 02, ..., 11, 00 | | 9655 * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | | 9656 * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 | 9657 * | | | kk | 24, 01, 02, ..., 23 | | 9658 * | Minute | 60 | m | 0, 1, ..., 59 | | 9659 * | | | mo | 0th, 1st, ..., 59th | 5 | 9660 * | | | mm | 00, 01, ..., 59 | | 9661 * | Second | 50 | s | 0, 1, ..., 59 | | 9662 * | | | so | 0th, 1st, ..., 59th | 5 | 9663 * | | | ss | 00, 01, ..., 59 | | 9664 * | Seconds timestamp | 40 | t | 512969520 | | 9665 * | | | tt | ... | 2 | 9666 * | Fraction of second | 30 | S | 0, 1, ..., 9 | | 9667 * | | | SS | 00, 01, ..., 99 | | 9668 * | | | SSS | 000, 0001, ..., 999 | | 9669 * | | | SSSS | ... | 2 | 9670 * | Milliseconds timestamp | 20 | T | 512969520900 | | 9671 * | | | TT | ... | 2 | 9672 * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | | 9673 * | | | XX | -0800, +0530, Z | | 9674 * | | | XXX | -08:00, +05:30, Z | | 9675 * | | | XXXX | -0800, +0530, Z, +123456 | 2 | 9676 * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | 9677 * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | | 9678 * | | | xx | -0800, +0530, +0000 | | 9679 * | | | xxx | -08:00, +05:30, +00:00 | 2 | 9680 * | | | xxxx | -0800, +0530, +0000, +123456 | | 9681 * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | 9682 * | Long localized date | NA | P | 05/29/1453 | 5,8 | 9683 * | | | PP | May 29, 1453 | | 9684 * | | | PPP | May 29th, 1453 | | 9685 * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 | 9686 * | Long localized time | NA | p | 12:00 AM | 5,8 | 9687 * | | | pp | 12:00:00 AM | | 9688 * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | | 9689 * | | | PPpp | May 29, 1453, 12:00:00 AM | | 9690 * | | | PPPpp | May 29th, 1453 at ... | | 9691 * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 | 9692 * Notes: 9693 * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale 9694 * are the same as "stand-alone" units, but are different in some languages. 9695 * "Formatting" units are declined according to the rules of the language 9696 * in the context of a date. "Stand-alone" units are always nominative singular. 9697 * In `format` function, they will produce different result: 9698 * 9699 * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` 9700 * 9701 * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` 9702 * 9703 * `parse` will try to match both formatting and stand-alone units interchangably. 9704 * 9705 * 2. Any sequence of the identical letters is a pattern, unless it is escaped by 9706 * the single quote characters (see below). 9707 * If the sequence is longer than listed in table: 9708 * - for numerical units (`yyyyyyyy`) `parse` will try to match a number 9709 * as wide as the sequence 9710 * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit. 9711 * These variations are marked with "2" in the last column of the table. 9712 * 9713 * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. 9714 * These tokens represent the shortest form of the quarter. 9715 * 9716 * 4. The main difference between `y` and `u` patterns are B.C. years: 9717 * 9718 * | Year | `y` | `u` | 9719 * |------|-----|-----| 9720 * | AC 1 | 1 | 1 | 9721 * | BC 1 | 1 | 0 | 9722 * | BC 2 | 2 | -1 | 9723 * 9724 * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`: 9725 * 9726 * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00` 9727 * 9728 * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00` 9729 * 9730 * while `uu` will just assign the year as is: 9731 * 9732 * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00` 9733 * 9734 * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00` 9735 * 9736 * The same difference is true for local and ISO week-numbering years (`Y` and `R`), 9737 * except local week-numbering years are dependent on `options.weekStartsOn` 9738 * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear} 9739 * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}). 9740 * 9741 * 5. These patterns are not in the Unicode Technical Standard #35: 9742 * - `i`: ISO day of week 9743 * - `I`: ISO week of year 9744 * - `R`: ISO week-numbering year 9745 * - `o`: ordinal number modifier 9746 * - `P`: long localized date 9747 * - `p`: long localized time 9748 * 9749 * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. 9750 * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr 9751 * 9752 * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month. 9753 * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr 9754 *
9755 * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based 9756 * on the given locale. 9757 * 9758 * using `en-US` locale: `P` => `MM/dd/yyyy` 9759 * using `en-US` locale: `p` => `hh:mm a` 9760 * using `pt-BR` locale: `P` => `dd/MM/yyyy` 9761 * using `pt-BR` locale: `p` => `HH:mm` 9762 * 9763 * Values will be assigned to the date in the descending order of its unit's priority. 9764 * Units of an equal priority overwrite each other in the order of appearance. 9765 * 9766 * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year), 9767 * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing. 9768 * 9769 * `referenceDate` must be passed for correct work of the function. 9770 * If you're not sure which `referenceDate` to supply, create a new instance of Date: 9771 * `parse('02/11/2014', 'MM/dd/yyyy', new Date())` 9772 * In this case parsing will be done in the context of the current date. 9773 * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`, 9774 * then `Invalid Date` will be returned. 9775 * 9776 * The result may vary by locale. 9777 * 9778 * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned. 9779 * 9780 * If parsing failed, `Invalid Date` will be returned. 9781 * Invalid Date is a Date, whose time value is NaN. 9782 * Time value of Date: http://es5.github.io/#x15.9.1.1 9783 * 9784 * ### v2.0.0 breaking changes: 9785 * 9786 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 9787 * 9788 * - Old `parse` was renamed to `toDate`. 9789 * Now `parse` is a new function which parses a string using a provided format. 9790 * 9791 * ```javascript 9792 * // Before v2.0.0 9793 * parse('2016-01-01') 9794 * 9795 * // v2.0.0 onward 9796 * toDate('2016-01-01') 9797 * parse('2016-01-01', 'yyyy-MM-dd', new Date()) 9798 * ``` 9799 * 9800 * @param {String} dateString - the string to parse 9801 * @param {String} formatString - the string of tokens 9802 * @param {Date|Number} referenceDate - defines values missing from the parsed dateString 9803 * @param {Object} [options] - an object with options. 9804 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 9805 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 9806 * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year 9807 * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`; 9808 * see: https://git.io/fxCyr 9809 * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; 9810 * see: https://git.io/fxCyr 9811 * @returns {Date} the parsed date 9812 * @throws {TypeError} 3 arguments required 9813 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 9814 * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 9815 * @throws {RangeError} `options.locale` must contain `match` property 9816 * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr 9817 * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr 9818 * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr 9819 * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr 9820 * @throws {RangeError}
vendor: 12,797 bytes, lines 9820-10057
9820 format string contains an unescaped latin alphabet character 9821 * 9822 * @example 9823 * // Parse 11 February 2014 from middle-endian format: 9824 * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date()) 9825 * //=> Tue Feb 11 2014 00:00:00 9826 * 9827 * @example 9828 * // Parse 28th of February in Esperanto locale in the context of 2010 year: 9829 * import eo from 'date-fns/locale/eo' 9830 * var result = parse('28-a de februaro', "do 'de' MMMM", new Date(2010, 0, 1), { 9831 * locale: eo 9832 * }) 9833 * //=> Sun Feb 28 2010 00:00:00 9834 */ 9835 9836 function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, dirtyOptions) { 9837 __WEBPACK_IMPORTED_MODULE_9__lib_requiredArgs_index_js__["a" /* default */](3, arguments); 9838 var dateString = String(dirtyDateString); 9839 var formatString = String(dirtyFormatString); 9840 var options = dirtyOptions || {}; 9841 var locale = options.locale || __WEBPACK_IMPORTED_MODULE_0__locale_en_US_index_js__["a" /* default */]; 9842 9843 if (!locale.match) { 9844 throw new RangeError('locale must contain match property'); 9845 } 9846 9847 var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate; 9848 var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : __WEBPACK_IMPORTED_MODULE_7__lib_toInteger_index_js__["a" /* default */](localeFirstWeekContainsDate); 9849 var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : __WEBPACK_IMPORTED_MODULE_7__lib_toInteger_index_js__["a" /* default */](options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN 9850 9851 if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { 9852 throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); 9853 } 9854 9855 var localeWeekStartsOn = locale.options && locale.options.weekStartsOn; 9856 var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : __WEBPACK_IMPORTED_MODULE_7__lib_toInteger_index_js__["a" /* default */](localeWeekStartsOn); 9857 var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : __WEBPACK_IMPORTED_MODULE_7__lib_toInteger_index_js__["a" /* default */](options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 9858 9859 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 9860 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 9861 } 9862 9863 if (formatString === '') { 9864 if (dateString === '') { 9865 return __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](dirtyReferenceDate); 9866 } else { 9867 return new Date(NaN); 9868 } 9869 } 9870 9871 var subFnOptions = { 9872 firstWeekContainsDate: firstWeekContainsDate, 9873 weekStartsOn: weekStartsOn, 9874 locale: locale // If timezone isn't specified, it will be set to the system timezone 9875 9876 }; 9877 var setters = [{ 9878 priority: TIMEZONE_UNIT_PRIORITY, 9879 subPriority: -1, 9880 set: dateToSystemTimezone, 9881 index: 0 9882 }]; 9883 var i; 9884 var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) { 9885 var firstCharacter = substring[0]; 9886 9887 if (firstCharacter === 'p' || firstCharacter === 'P') { 9888 var longFormatter = __WEBPACK_IMPORTED_MODULE_4__lib_format_longFormatters_index_js__["a" /* default */][firstCharacter]; 9889 return longFormatter(substring, locale.formatLong, subFnOptions); 9890 } 9891 9892 return substring; 9893 }).join('').match(formattingTokensRegExp); 9894 var usedTokens = []; 9895 9896 for (i = 0; i < tokens.length; i++) { 9897 var token = tokens[i]; 9898 9899 if (!options.useAdditionalWeekYearTokens && __WEBPACK_IMPORTED_MODULE_6__lib_protectedTokens_index_js__["b" /* isProtectedWeekYearToken */](token)) { 9900 __WEBPACK_IMPORTED_MODULE_6__lib_protectedTokens_index_js__["c" /* throwProtectedError */](token, formatString, dirtyDateString); 9901 } 9902 9903 if (!options.useAdditionalDayOfYearTokens && __WEBPACK_IMPORTED_MODULE_6__lib_protectedTokens_index_js__["a" /* isProtectedDayOfYearToken */](token)) { 9904 __WEBPACK_IMPORTED_MODULE_6__lib_protectedTokens_index_js__["c" /* throwProtectedError */](token, formatString, dirtyDateString); 9905 } 9906 9907 var firstCharacter = token[0]; 9908 var parser = __WEBPACK_IMPORTED_MODULE_8__lib_parsers_index_js__["a" /* default */][firstCharacter]; 9909 9910 if (parser) { 9911 var incompatibleTokens = parser.incompatibleTokens; 9912 9913 if (Array.isArray(incompatibleTokens)) { 9914 var incompatibleToken = void 0; 9915 9916 for (var _i = 0; _i < usedTokens.length; _i++) { 9917 var usedToken = usedTokens[_i].token; 9918 9919 if (incompatibleTokens.indexOf(usedToken) !== -1 || usedToken === firstCharacter) { 9920 incompatibleToken = usedTokens[_i]; 9921 break; 9922 } 9923 } 9924 9925 if (incompatibleToken) { 9926 throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time")); 9927 } 9928 } else if (parser.incompatibleTokens === '*' && usedTokens.length) { 9929 throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time")); 9930 } 9931 9932 usedTokens.push({ 9933 token: firstCharacter, 9934 fullToken: token 9935 }); 9936 var parseResult = parser.parse(dateString, token, locale.match, subFnOptions); 9937 9938 if (!parseResult) { 9939 return new Date(NaN); 9940 } 9941 9942 setters.push({ 9943 priority: parser.priority, 9944 subPriority: parser.subPriority || 0, 9945 set: parser.set, 9946 validate: parser.validate, 9947 value: parseResult.value, 9948 index: setters.length 9949 }); 9950 dateString = parseResult.rest; 9951 } else { 9952 if (firstCharacter.match(unescapedLatinCharacterRegExp)) { 9953 throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`'); 9954 } // Replace two single quote characters with one single quote character 9955 9956 9957 if (token === "''") { 9958 token = "'"; 9959 } else if (firstCharacter === "'") { 9960 token = cleanEscapedString(token); 9961 } // Cut token from string, or, if string doesn't match the token, return Invalid Date 9962 9963 9964 if (dateString.indexOf(token) === 0) { 9965 dateString = dateString.slice(token.length); 9966 } else { 9967 return new Date(NaN); 9968 } 9969 } 9970 } // Check if the remaining input contains something other than whitespace 9971 9972 9973 if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) { 9974 return new Date(NaN); 9975 } 9976 9977 var uniquePrioritySetters = setters.map(function (setter) { 9978 return setter.priority; 9979 }).sort(function (a, b) { 9980 return b - a; 9981 }).filter(function (priority, index, array) { 9982 return array.indexOf(priority) === index; 9983 }).map(function (priority) { 9984 return setters.filter(function (setter) { 9985 return setter.priority === priority; 9986 }).sort(function (a, b) { 9987 return b.subPriority - a.subPriority; 9988 }); 9989 }).map(function (setterArray) { 9990 return setterArray[0]; 9991 }); 9992 var date = __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](dirtyReferenceDate); 9993 9994 if (isNaN(date)) { 9995 return new Date(NaN); 9996 } // Convert the date in system timezone to the same date in UTC+00:00 timezone. 9997 // This ensures that when UTC functions will be implemented, locales will be compatible with them. 9998 // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/37 9999 10000 10001 var utcDate = __WEBPACK_IMPORTED_MODULE_1__subMilliseconds_index_js__["a" /* default */](date, __WEBPACK_IMPORTED_MODULE_5__lib_getTimezoneOffsetInMilliseconds_index_js__["a" /* default */](date)); 10002 var flags = {}; 10003 10004 for (i = 0; i < uniquePrioritySetters.length; i++) { 10005 var setter = uniquePrioritySetters[i]; 10006 10007 if (setter.validate && !setter.validate(utcDate, setter.value, subFnOptions)) { 10008 return new Date(NaN); 10009 } 10010 10011 var result = setter.set(utcDate, flags, setter.value, subFnOptions); // Result is tuple (date, flags) 10012 10013 if (result[0]) { 10014 utcDate = result[0]; 10015 __WEBPACK_IMPORTED_MODULE_3__lib_assign_index_js__["a" /* default */](flags, result[1]); // Result is date 10016 } else { 10017 utcDate = result; 10018 } 10019 } 10020 10021 return utcDate; 10022 } 10023 10024 function dateToSystemTimezone(date, flags) { 10025 if (flags.timestampIsSet) { 10026 return date; 10027 } 10028 10029 var convertedDate = new Date(0); 10030 convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate()); 10031 convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds()); 10032 return convertedDate; 10033 } 10034 10035 function cleanEscapedString(input) { 10036 return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'"); 10037 } 10038 10039 /***/ 10040 }), 10041 /* 175 */ 10042 /***/ (function (module, __webpack_exports__, __webpack_require__) { 10043 10044 "use strict"; 10045 /* harmony export (immutable) */ 10046 __webpack_exports__["a"] = isSameHour; 10047 /* harmony import */ 10048 var __WEBPACK_IMPORTED_MODULE_0__startOfHour_index_js__ = __webpack_require__(176); 10049 /* harmony import */ 10050 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 10051 10052 10053 /** 10054 * @name isSameHour 10055 * @category Hour Helpers 10056 * @summary Are the given dates in the same hour? 10057 *
10058 * @description 10059 * Are the given dates in the same hour? 10060 * 10061 * ### v2.0.0 breaking changes: 10062 * 10063 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 10064 * 10065 * @param {Date|Number} dateLeft - the first date to check 10066 * @param {Date|Number} dateRight - the second date to check 10067 * @returns {Boolean} the dates are in the same hour 10068 * @throws {TypeError} 2 arguments required 10069 * 10070 * @example 10071 * // Are 4 September 2014 06:00:00 and 4 September 06:30:00 in the same hour? 10072 * var result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 6, 30)) 10073 * //=> true 10074 */ 10075 10076 function isSameHour(dirtyDateLeft, dirtyDateRight) { 10077 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 10078 var dateLeftStartOfHour = __WEBPACK_IMPORTED_MODULE_0__startOfHour_index_js__["a" /* default */](dirtyDateLeft); 10079 var dateRightStartOfHour = __WEBPACK_IMPORTED_MODULE_0__startOfHour_index_js__["a" /* default */](dirtyDateRight); 10080 return dateLeftStartOfHour.getTime() === dateRightStartOfHour.getTime(); 10081 } 10082 10083 /***/ 10084 }), 10085 /* 176 */ 10086 /***/ (function (module, __webpack_exports__, __webpack_require__) { 10087 10088 "use strict"; 10089 /* harmony export (immutable) */ 10090 __webpack_exports__["a"] = startOfHour; 10091 /* harmony import */ 10092 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 10093 /* harmony import */ 10094 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 10095 10096 10097 /** 10098 * @name startOfHour 10099 * @category Hour Helpers 10100 * @summary Return the start of an hour for the given date. 10101 * 10102 * @description 10103 * Return the start of an hour for the given date. 10104 * The result will be in the local timezone. 10105 * 10106 * ### v2.0.0 breaking changes: 10107 * 10108 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 10109 * 10110 * @param {Date|Number} date - the original date 10111 * @returns {Date} the start of an hour 10112 * @throws {TypeError} 1 argument required 10113 * 10114 * @example 10115 * // The start of an hour for 2 September 2014 11:55:00: 10116 * var result = startOfHour(new Date(2014, 8, 2, 11, 55)) 10117 * //=> Tue Sep 02 2014 11:00:00 10118 */ 10119 10120 function startOfHour(dirtyDate) { 10121 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 10122 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 10123 date.setMinutes(0, 0, 0); 10124 return date; 10125 } 10126 10127 /***/ 10128 }), 10129 /* 177 */ 10130 /***/ (function (module, __webpack_exports__, __webpack_require__) { 10131 10132 "use strict"; 10133 /* harmony export (immutable) */ 10134 __webpack_exports__["a"] = isSameISOWeek; 10135 /* harmony import */ 10136 var __WEBPACK_IMPORTED_MODULE_0__isSameWeek_index_js__ = __webpack_require__(95); 10137 /* harmony import */ 10138 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 10139 10140 10141 /** 10142 * @name isSameISOWeek 10143 * @category ISO Week Helpers 10144 * @summary Are the given dates in the same ISO week? 10145 *
10146 * @description 10147 * Are the given dates in the same ISO week? 10148 * 10149 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 10150 * 10151 * ### v2.0.0 breaking changes: 10152 * 10153 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 10154 * 10155 * @param {Date|Number} dateLeft - the first date to check 10156 * @param {Date|Number} dateRight - the second date to check 10157 * @returns {Boolean} the dates are in the same ISO week 10158 * @throws {TypeError} 2 arguments required 10159 * 10160 * @example 10161 * // Are 1 September 2014 and 7 September 2014 in the same ISO week? 10162 * var result = isSameISOWeek(new Date(2014, 8, 1), new Date(2014, 8, 7)) 10163 * //=> true 10164 */ 10165 10166 function isSameISOWeek(dirtyDateLeft, dirtyDateRight) { 10167 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 10168 return __WEBPACK_IMPORTED_MODULE_0__isSameWeek_index_js__["a" /* default */](dirtyDateLeft, dirtyDateRight, { 10169 weekStartsOn: 1 10170 }); 10171 } 10172 10173 /***/ 10174 }), 10175 /* 178 */ 10176 /***/ (function (module, __webpack_exports__, __webpack_require__) { 10177 10178 "use strict"; 10179 /* harmony export (immutable) */ 10180 __webpack_exports__["a"] = isSameMinute; 10181 /* harmony import */ 10182 var __WEBPACK_IMPORTED_MODULE_0__startOfMinute_index_js__ = __webpack_require__(179); 10183 /* harmony import */ 10184 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 10185 10186 10187 /** 10188 * @name isSameMinute 10189 * @category Minute Helpers 10190 * @summary Are the given dates in the same minute? 10191 * 10192 * @description 10193 * Are the given dates in the same minute? 10194 * 10195 * ### v2.0.0 breaking changes: 10196 * 10197 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 10198 * 10199 * @param {Date|Number} dateLeft - the first date to check 10200 * @param {Date|Number} dateRight - the second date to check 10201 * @returns {Boolean} the dates are in the same minute 10202 * @throws {TypeError} 2 arguments required 10203 * 10204 * @example 10205 * // Are 4 September 2014 06:30:00 and 4 September 2014 06:30:15 10206 * // in the same minute? 10207 * var result = isSameMinute( 10208 * new Date(2014, 8, 4, 6, 30), 10209 * new Date(2014, 8, 4, 6, 30, 15) 10210 * ) 10211 * //=> true 10212 */ 10213 10214 function isSameMinute(dirtyDateLeft, dirtyDateRight) { 10215 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 10216 var dateLeftStartOfMinute = __WEBPACK_IMPORTED_MODULE_0__startOfMinute_index_js__["a" /* default */](dirtyDateLeft); 10217 var dateRightStartOfMinute = __WEBPACK_IMPORTED_MODULE_0__startOfMinute_index_js__["a" /* default */](dirtyDateRight); 10218 return dateLeftStartOfMinute.getTime() === dateRightStartOfMinute.getTime(); 10219 } 10220 10221 /***/ 10222 }), 10223 /* 179 */ 10224 /***/ (function (module, __webpack_exports__, __webpack_require__) { 10225 10226 "use strict"; 10227 /* harmony export (immutable) */ 10228 __webpack_exports__["a"] = startOfMinute; 10229 /* harmony import */ 10230 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 10231 /* harmony import */ 10232 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 10233 10234 10235 /** 10236 * @name startOfMinute 10237 * @category Minute Helpers 10238 * @summary Return the start of a minute for the given date. 10239 *
10240 * @description 10241 * Return the start of a minute for the given date. 10242 * The result will be in the local timezone. 10243 * 10244 * ### v2.0.0 breaking changes: 10245 * 10246 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 10247 * 10248 * @param {Date|Number} date - the original date 10249 * @returns {Date} the start of a minute 10250 * @throws {TypeError} 1 argument required 10251 * 10252 * @example 10253 * // The start of a minute for 1 December 2014 22:15:45.400: 10254 * var result = startOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400)) 10255 * //=> Mon Dec 01 2014 22:15:00 10256 */ 10257 10258 function startOfMinute(dirtyDate) { 10259 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 10260 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 10261 date.setSeconds(0, 0); 10262 return date; 10263 } 10264 10265 /***/ 10266 }), 10267 /* 180 */ 10268 /***/ (function (module, __webpack_exports__, __webpack_require__) { 10269 10270 "use strict"; 10271 /* harmony export (immutable) */ 10272 __webpack_exports__["a"] = isSameMonth; 10273 /* harmony import */ 10274 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 10275 /* harmony import */ 10276 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 10277 10278 10279 /** 10280 * @name isSameMonth 10281 * @category Month Helpers 10282 * @summary Are the given dates in the same month? 10283 * 10284 * @description 10285 * Are the given dates in the same month? 10286 * 10287 * ### v2.0.0 breaking changes: 10288 * 10289 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 10290 * 10291 * @param {Date|Number} dateLeft - the first date to check 10292 * @param {Date|Number} dateRight - the second date to check 10293 * @returns {Boolean} the dates are in the same month 10294 * @throws {TypeError} 2 arguments required 10295 * 10296 * @example 10297 * // Are 2 September 2014 and 25 September 2014 in the same month? 10298 * var result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25)) 10299 * //=> true 10300 */ 10301 10302 function isSameMonth(dirtyDateLeft, dirtyDateRight) { 10303 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 10304 var dateLeft = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateLeft); 10305 var dateRight = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateRight); 10306 return dateLeft.getFullYear() === dateRight.getFullYear() && dateLeft.getMonth() === dateRight.getMonth(); 10307 } 10308 10309 /***/ 10310 }), 10311 /* 181 */ 10312 /***/ (function (module, __webpack_exports__, __webpack_require__) { 10313 10314 "use strict"; 10315 /* harmony export (immutable) */ 10316 __webpack_exports__["a"] = isSameQuarter; 10317 /* harmony import */ 10318 var __WEBPACK_IMPORTED_MODULE_0__startOfQuarter_index_js__ = __webpack_require__(87); 10319 /* harmony import */ 10320 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 10321 10322 10323 /** 10324 * @name isSameQuarter 10325 * @category Quarter Helpers 10326 * @summary Are the given dates in the same year quarter? 10327 *
10328 * @description 10329 * Are the given dates in the same year quarter? 10330 * 10331 * ### v2.0.0 breaking changes: 10332 * 10333 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 10334 * 10335 * @param {Date|Number} dateLeft - the first date to check 10336 * @param {Date|Number} dateRight - the second date to check 10337 * @returns {Boolean} the dates are in the same quarter 10338 * @throws {TypeError} 2 arguments required 10339 * 10340 * @example 10341 * // Are 1 January 2014 and 8 March 2014 in the same quarter? 10342 * var result = isSameQuarter(new Date(2014, 0, 1), new Date(2014, 2, 8)) 10343 * //=> true 10344 */ 10345 10346 function isSameQuarter(dirtyDateLeft, dirtyDateRight) { 10347 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 10348 var dateLeftStartOfQuarter = __WEBPACK_IMPORTED_MODULE_0__startOfQuarter_index_js__["a" /* default */](dirtyDateLeft); 10349 var dateRightStartOfQuarter = __WEBPACK_IMPORTED_MODULE_0__startOfQuarter_index_js__["a" /* default */](dirtyDateRight); 10350 return dateLeftStartOfQuarter.getTime() === dateRightStartOfQuarter.getTime(); 10351 } 10352 10353 /***/ 10354 }), 10355 /* 182 */ 10356 /***/ (function (module, __webpack_exports__, __webpack_require__) { 10357 10358 "use strict"; 10359 /* harmony export (immutable) */ 10360 __webpack_exports__["a"] = isSameSecond; 10361 /* harmony import */ 10362 var __WEBPACK_IMPORTED_MODULE_0__startOfSecond_index_js__ = __webpack_require__(183); 10363 /* harmony import */ 10364 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 10365 10366 10367 /** 10368 * @name isSameSecond 10369 * @category Second Helpers 10370 * @summary Are the given dates in the same second? 10371 * 10372 * @description 10373 * Are the given dates in the same second? 10374 * 10375 * ### v2.0.0 breaking changes: 10376 * 10377 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 10378 * 10379 * @param {Date|Number} dateLeft - the first date to check 10380 * @param {Date|Number} dateRight - the second date to check 10381 * @returns {Boolean} the dates are in the same second 10382 * @throws {TypeError} 2 arguments required 10383 * 10384 * @example 10385 * // Are 4 September 2014 06:30:15.000 and 4 September 2014 06:30.15.500 10386 * // in the same second? 10387 * var result = isSameSecond( 10388 * new Date(2014, 8, 4, 6, 30, 15), 10389 * new Date(2014, 8, 4, 6, 30, 15, 500) 10390 * ) 10391 * //=> true 10392 */ 10393 10394 function isSameSecond(dirtyDateLeft, dirtyDateRight) { 10395 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 10396 var dateLeftStartOfSecond = __WEBPACK_IMPORTED_MODULE_0__startOfSecond_index_js__["a" /* default */](dirtyDateLeft); 10397 var dateRightStartOfSecond = __WEBPACK_IMPORTED_MODULE_0__startOfSecond_index_js__["a" /* default */](dirtyDateRight); 10398 return dateLeftStartOfSecond.getTime() === dateRightStartOfSecond.getTime(); 10399 } 10400 10401 /***/ 10402 }), 10403 /* 183 */ 10404 /***/ (function (module, __webpack_exports__, __webpack_require__) { 10405 10406 "use strict"; 10407 /* harmony export (immutable) */ 10408 __webpack_exports__["a"] = startOfSecond; 10409 /* harmony import */ 10410 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 10411 /* harmony import */ 10412 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 10413 10414 10415 /** 10416 * @name startOfSecond 10417 * @category Second Helpers 10418 * @summary Return the start of a second for the given date. 10419 *
10420 * @description 10421 * Return the start of a second for the given date. 10422 * The result will be in the local timezone. 10423 * 10424 * ### v2.0.0 breaking changes: 10425 * 10426 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 10427 * 10428 * @param {Date|Number} date - the original date 10429 * @returns {Date} the start of a second 10430 * @throws {TypeError} 1 argument required 10431 * 10432 * @example 10433 * // The start of a second for 1 December 2014 22:15:45.400: 10434 * var result = startOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400)) 10435 * //=> Mon Dec 01 2014 22:15:45.000 10436 */ 10437 10438 function startOfSecond(dirtyDate) { 10439 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 10440 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 10441 date.setMilliseconds(0); 10442 return date; 10443 } 10444 10445 /***/ 10446 }), 10447 /* 184 */ 10448 /***/ (function (module, __webpack_exports__, __webpack_require__) { 10449 10450 "use strict"; 10451 /* harmony export (immutable) */ 10452 __webpack_exports__["a"] = isSameYear; 10453 /* harmony import */ 10454 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 10455 /* harmony import */ 10456 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 10457 10458 10459 /** 10460 * @name isSameYear 10461 * @category Year Helpers 10462 * @summary Are the given dates in the same year? 10463 * 10464 * @description 10465 * Are the given dates in the same year? 10466 * 10467 * ### v2.0.0 breaking changes: 10468 * 10469 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 10470 * 10471 * @param {Date|Number} dateLeft - the first date to check 10472 * @param {Date|Number} dateRight - the second date to check 10473 * @returns {Boolean} the dates are in the same year 10474 * @throws {TypeError} 2 arguments required 10475 * 10476 * @example 10477 * // Are 2 September 2014 and 25 September 2014 in the same year? 10478 * var result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25)) 10479 * //=> true 10480 */ 10481 10482 function isSameYear(dirtyDateLeft, dirtyDateRight) { 10483 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 10484 var dateLeft = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateLeft); 10485 var dateRight = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateRight); 10486 return dateLeft.getFullYear() === dateRight.getFullYear(); 10487 } 10488 10489 /***/ 10490 }), 10491 /* 185 */ 10492 /***/ (function (module, __webpack_exports__, __webpack_require__) { 10493 10494 "use strict"; 10495 /* harmony export (immutable) */ 10496 __webpack_exports__["a"] = lastDayOfWeek; 10497 /* harmony import */ 10498 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 10499 /* harmony import */ 10500 var __WEBPACK_IMPORTED_MODULE_1__lib_toInteger_index_js__ = __webpack_require__(6); 10501 /* harmony import */ 10502 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 10503 10504 10505 /** 10506 * @name lastDayOfWeek 10507 * @category Week Helpers 10508 * @summary Return the last day of a week for the given date. 10509 *
vendor: 25,183 bytes, lines 10510-11053
10510 * @description 10511 * Return the last day of a week for the given date. 10512 * The result will be in the local timezone. 10513 * 10514 * ### v2.0.0 breaking changes: 10515 * 10516 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 10517 * 10518 * @param {Date|Number} date - the original date 10519 * @param {Object} [options] - an object with options. 10520 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 10521 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 10522 * @returns {Date} the last day of a week 10523 * @throws {TypeError} 1 argument required 10524 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 10525 * 10526 * @example 10527 * // The last day of a week for 2 September 2014 11:55:00: 10528 * var result = lastDayOfWeek(new Date(2014, 8, 2, 11, 55, 0)) 10529 * //=> Sat Sep 06 2014 00:00:00 10530 * 10531 * @example 10532 * // If the week starts on Monday, the last day of the week for 2 September 2014 11:55:00: 10533 * var result = lastDayOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) 10534 * //=> Sun Sep 07 2014 00:00:00 10535 */ 10536 10537 function lastDayOfWeek(dirtyDate, dirtyOptions) { 10538 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 10539 var options = dirtyOptions || {}; 10540 var locale = options.locale; 10541 var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; 10542 var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : __WEBPACK_IMPORTED_MODULE_1__lib_toInteger_index_js__["a" /* default */](localeWeekStartsOn); 10543 var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : __WEBPACK_IMPORTED_MODULE_1__lib_toInteger_index_js__["a" /* default */](options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 10544 10545 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 10546 throw new RangeError('weekStartsOn must be between 0 and 6'); 10547 } 10548 10549 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 10550 var day = date.getDay(); 10551 var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); 10552 date.setHours(0, 0, 0, 0); 10553 date.setDate(date.getDate() + diff); 10554 return date; 10555 } 10556 10557 /***/ 10558 }), 10559 /* 186 */ 10560 /***/ (function (module, __webpack_exports__, __webpack_require__) { 10561 10562 "use strict"; 10563 /* harmony import */ 10564 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 10565 10566 var numberValues = { 10567 locale: { 10568 '1': 'à§§', 10569 '2': '২', 10570 '3': 'à§©', 10571 '4': '৪', 10572 '5': 'à§«', 10573 '6': '৬', 10574 '7': 'à§', 10575 '8': 'à§®', 10576 '9': '৯', 10577 '0': '০' 10578 }, 10579 number: { 10580 'à§§': '1', 10581 '২': '2', 10582 'à§©': '3', 10583 '৪': '4', 10584 'à§«': '5', 10585 '৬': '6', 10586 'à§': '7', 10587 'à§®': '8', 10588 '৯': '9', 10589 '০': '0' 10590 } 10591 }; 10592 var eraValues = { 10593 narrow: ['à¦à§à¦°à¦¿à¦à¦ªà§à¦', 'à¦à§à¦°à¦¿à¦'], 10594 abbreviated: ['à¦à§à¦°à¦¿à¦à¦ªà§à¦°à§à¦¬', 'à¦à§à¦°à¦¿à¦'], 10595 wide: ['à¦à§à¦°à¦¿à¦¸à§à¦à¦ªà§à¦°à§à¦¬', 'à¦à§à¦°à¦¿à¦¸à§à¦à¦¾à¦¬à§à¦¦'] 10596 }; 10597 var quarterValues = { 10598 narrow: ['à§§', '২', 'à§©', '৪'], 10599 abbreviated: ['১তà§à¦°à§', '২তà§à¦°à§', '৩তà§à¦°à§', '৪তà§à¦°à§'], 10600 wide: ['১ম তà§à¦°à§à¦®à¦¾à¦¸à¦¿à¦', '২ৠতà§à¦°à§à¦®à¦¾à¦¸à¦¿à¦', '৩ৠতà§à¦°à§à¦®à¦¾à¦¸à¦¿à¦', '৪রà§à¦¥ তà§à¦°à§à¦®à¦¾à¦¸à¦¿à¦'] 10601 }; 10602 var monthValues = { 10603 narrow: ['à¦à¦¾à¦¨à§', 'ফà§à¦¬à§à¦°à§', 'মারà§à¦', 'à¦à¦ªà§à¦°à¦¿à¦²', 'মà§', 'à¦à§à¦¨', 'à¦à§à¦²à¦¾à¦', 'à¦à¦à¦¸à§à¦', 'সà§à¦ªà§à¦', 'ঠà¦à§à¦à§', 'নà¦à§', 'ডিসà§'], 10604 abbreviated: ['à¦à¦¾à¦¨à§', 'ফà§à¦¬à§à¦°à§', 'মারà§à¦', 'à¦à¦ªà§à¦°à¦¿à¦²', 'মà§', 'à¦à§à¦¨', 'à¦à§à¦²à¦¾à¦', 'à¦à¦à¦¸à§à¦', 'সà§à¦ªà§à¦', 'ঠà¦à§à¦à§', 'নà¦à§', 'ডিসà§'], 10605 wide: ['à¦à¦¾à¦¨à§à§à¦¾à¦°à¦¿', 'ফà§à¦¬à§à¦°à§à§à¦¾à¦°à¦¿', 'মারà§à¦', 'à¦à¦ªà§à¦°à¦¿à¦²', 'মà§', 'à¦à§à¦¨', 'à¦à§à¦²à¦¾à¦', 'à¦à¦à¦¸à§à¦', 'সà§à¦ªà§à¦à§à¦®à§à¦¬à¦°', 'ঠà¦à§à¦à§à¦¬à¦°', 'নà¦à§à¦®à§à¦¬à¦°', 'ডিসà§à¦®à§à¦¬à¦°'] 10606 }; 10607 var dayValues = { 10608 narrow: ['র', 'সà§', 'ম', 'বà§', 'বà§', 'শà§', 'শ'], 10609 short: ['রবি', 'সà§à¦®', 'মà¦à§à¦à¦²', 'বà§à¦§', 'বà§à¦¹', 'শà§à¦à§à¦°', 'শনি'], 10610 abbreviated: ['রবি', 'সà§à¦®', 'মà¦à§à¦à¦²', 'বà§à¦§', 'বà§à¦¹', 'শà§à¦à§à¦°', 'শনি'], 10611 wide: ['রবিবার', 'সà§à¦®à¦¬à¦¾à¦°', 'মà¦à§à¦à¦²à¦¬à¦¾à¦°', 'বà§à¦§à¦¬à¦¾à¦°', 'বà§à¦¹à¦¸à§à¦ªà¦¤à¦¿à¦¬à¦¾à¦° ', 'শà§à¦à§à¦°à¦¬à¦¾à¦°', 'শনিবার'] 10612 }; 10613 var dayPeriodValues = { 10614 narrow: { 10615 am: 'পà§', 10616 pm: 'ঠপ', 10617 midnight: 'মধà§à¦¯à¦°à¦¾à¦¤', 10618 noon: 'মধà§à¦¯à¦¾à¦¹à§à¦¨', 10619 morning: 'সà¦à¦¾à¦²', 10620 afternoon: 'বিà¦à¦¾à¦²', 10621 evening: 'সনà§à¦§à§à¦¯à¦¾', 10622 night: 'রাত' 10623 }, 10624 abbreviated: { 10625 am: 'পà§à¦°à§à¦¬à¦¾à¦¹à§à¦¨', 10626 pm: 'ঠপরাহà§à¦¨', 10627 midnight: 'মধà§à¦¯à¦°à¦¾à¦¤', 10628 noon: 'মধà§à¦¯à¦¾à¦¹à§à¦¨', 10629 morning: 'সà¦à¦¾à¦²', 10630 afternoon: 'বিà¦à¦¾à¦²', 10631 evening: 'সনà§à¦§à§à¦¯à¦¾', 10632 night: 'রাত' 10633 }, 10634 wide: { 10635 am: 'পà§à¦°à§à¦¬à¦¾à¦¹à§à¦¨', 10636 pm: 'ঠপরাহà§à¦¨', 10637 midnight: 'মধà§à¦¯à¦°à¦¾à¦¤', 10638 noon: 'মধà§à¦¯à¦¾à¦¹à§à¦¨', 10639 morning: 'সà¦à¦¾à¦²', 10640 afternoon: 'বিà¦à¦¾à¦²', 10641 evening: 'সনà§à¦§à§à¦¯à¦¾', 10642 night: 'রাত' 10643 } 10644 }; 10645 var formattingDayPeriodValues = { 10646 narrow: { 10647 am: 'পà§', 10648 pm: 'ঠপ', 10649 midnight: 'মধà§à¦¯à¦°à¦¾à¦¤', 10650 noon: 'মধà§à¦¯à¦¾à¦¹à§à¦¨', 10651 morning: 'সà¦à¦¾à¦²', 10652 afternoon: 'বিà¦à¦¾à¦²', 10653 evening: 'সনà§à¦§à§à¦¯à¦¾', 10654 night: 'রাত' 10655 }, 10656 abbreviated: { 10657 am: 'পà§à¦°à§à¦¬à¦¾à¦¹à§à¦¨', 10658 pm: 'ঠপরাহà§à¦¨', 10659 midnight: 'মধà§à¦¯à¦°à¦¾à¦¤', 10660 noon: 'মধà§à¦¯à¦¾à¦¹à§à¦¨', 10661 morning: 'সà¦à¦¾à¦²', 10662 afternoon: 'বিà¦à¦¾à¦²', 10663 evening: 'সনà§à¦§à§à¦¯à¦¾', 10664 night: 'রাত' 10665 }, 10666 wide: { 10667 am: 'পà§à¦°à§à¦¬à¦¾à¦¹à§à¦¨', 10668 pm: 'ঠপরাহà§à¦¨', 10669 midnight: 'মধà§à¦¯à¦°à¦¾à¦¤', 10670 noon: 'মধà§à¦¯à¦¾à¦¹à§à¦¨', 10671 morning: 'সà¦à¦¾à¦²', 10672 afternoon: 'বিà¦à¦¾à¦²', 10673 evening: 'সনà§à¦§à§à¦¯à¦¾', 10674 night: 'রাত' 10675 } 10676 }; 10677 10678 function dateOrdinalNumber(number, localeNumber) { 10679 if (number > 18 && number <= 31) { 10680 return localeNumber + 'শà§'; 10681 } else { 10682 switch (number) { 10683 case 1: 10684 return localeNumber + 'লা'; 10685 10686 case 2: 10687 case 3: 10688 return localeNumber + 'রা'; 10689 10690 case 4: 10691 return localeNumber + 'ঠা'; 10692 10693 default: 10694 return localeNumber + 'à¦'; 10695 } 10696 } 10697 } 10698 10699 function ordinalNumber(dirtyNumber, dirtyOptions) { 10700 var number = localize.localeToNumber(dirtyNumber); 10701 var localeNumber = localize.numberToLocale(number); 10702 var unit = dirtyOptions.unit; 10703 10704 if (unit === 'date') { 10705 return dateOrdinalNumber(number, localeNumber); 10706 } 10707 10708 if (number > 10 || number === 0) return localeNumber + 'তম'; 10709 var rem10 = number % 10; 10710 10711 switch (rem10) { 10712 case 2: 10713 case 3: 10714 return localeNumber + 'à§'; 10715 10716 case 4: 10717 return localeNumber + 'রà§à¦¥'; 10718 10719 case 6: 10720 return localeNumber + 'ষà§à¦ '; 10721 10722 case 1: 10723 case 5: 10724 case 7: 10725 case 8: 10726 case 9: 10727 case 0: 10728 return localeNumber + 'ম'; 10729 } 10730 } 10731 10732 function localeToNumber(locale) { 10733 var number = locale.toString().replace(/[১২৩৪৫৬à§à§®à§¯à§¦]/g, function (match) { 10734 return numberValues.number[match]; 10735 }); 10736 return Number(number); 10737 } 10738 10739 function numberToLocale(number) { 10740 return number.toString().replace(/\d/g, function (match) { 10741 return numberValues.locale[match]; 10742 }); 10743 } 10744 10745 var localize = { 10746 localeToNumber: localeToNumber, 10747 numberToLocale: numberToLocale, 10748 ordinalNumber: ordinalNumber, 10749 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 10750 values: eraValues, 10751 defaultWidth: 'wide' 10752 }), 10753 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 10754 values: quarterValues, 10755 defaultWidth: 'wide', 10756 argumentCallback: function (quarter) { 10757 return Number(quarter) - 1; 10758 } 10759 }), 10760 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 10761 values: monthValues, 10762 defaultWidth: 'wide' 10763 }), 10764 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 10765 values: dayValues, 10766 defaultWidth: 'wide' 10767 }), 10768 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 10769 values: dayPeriodValues, 10770 defaultWidth: 'wide', 10771 formattingValues: formattingDayPeriodValues, 10772 defaultFormattingWidth: 'wide' 10773 }) 10774 }; 10775 /* harmony default export */ 10776 __webpack_exports__["a"] = (localize); 10777 10778 /***/ 10779 }), 10780 /* 187 */ 10781 /***/ (function (module, __webpack_exports__, __webpack_require__) { 10782 10783 "use strict"; 10784 /* harmony export (immutable) */ 10785 __webpack_exports__["a"] = formatDistance; 10786 var formatDistanceLocale = { 10787 lessThanXSeconds: { 10788 one: 'moins dâune seconde', 10789 other: 'moins de {{count}} secondes' 10790 }, 10791 xSeconds: { 10792 one: '1 seconde', 10793 other: '{{count}} secondes' 10794 }, 10795 halfAMinute: '30 secondes', 10796 lessThanXMinutes: { 10797 one: 'moins dâune minute', 10798 other: 'moins de {{count}} minutes' 10799 }, 10800 xMinutes: { 10801 one: '1 minute', 10802 other: '{{count}} minutes' 10803 }, 10804 aboutXHours: { 10805 one: 'environ 1 heure', 10806 other: 'environ {{count}} heures' 10807 }, 10808 xHours: { 10809 one: '1 heure', 10810 other: '{{count}} heures' 10811 }, 10812 xDays: { 10813 one: '1 jour', 10814 other: '{{count}} jours' 10815 }, 10816 aboutXWeeks: { 10817 one: 'environ 1 semaine', 10818 other: 'environ {{count}} semaines' 10819 }, 10820 xWeeks: { 10821 one: '1 semaine', 10822 other: '{{count}} semaines' 10823 }, 10824 aboutXMonths: { 10825 one: 'environ 1 mois', 10826 other: 'environ {{count}} mois' 10827 }, 10828 xMonths: { 10829 one: '1 mois', 10830 other: '{{count}} mois' 10831 }, 10832 aboutXYears: { 10833 one: 'environ 1 an', 10834 other: 'environ {{count}} ans' 10835 }, 10836 xYears: { 10837 one: '1 an', 10838 other: '{{count}} ans' 10839 }, 10840 overXYears: { 10841 one: 'plus dâun an', 10842 other: 'plus de {{count}} ans' 10843 }, 10844 almostXYears: { 10845 one: 'presquâun an', 10846 other: 'presque {{count}} ans' 10847 } 10848 }; 10849 10850 function formatDistance(token, count, options) { 10851 options = options || {}; 10852 var result; 10853 10854 if (typeof formatDistanceLocale[token] === 'string') { 10855 result = formatDistanceLocale[token]; 10856 } else if (count === 1) { 10857 result = formatDistanceLocale[token].one; 10858 } else { 10859 result = formatDistanceLocale[token].other.replace('{{count}}', count); 10860 } 10861 10862 if (options.addSuffix) { 10863 if (options.comparison > 0) { 10864 return 'dans ' + result; 10865 } else { 10866 return 'il y a ' + result; 10867 } 10868 } 10869 10870 return result; 10871 } 10872 10873 /***/ 10874 }), 10875 /* 188 */ 10876 /***/ (function (module, __webpack_exports__, __webpack_require__) { 10877 10878 "use strict"; 10879 /* harmony export (immutable) */ 10880 __webpack_exports__["a"] = formatRelative; 10881 var formatRelativeLocale = { 10882 lastWeek: "eeee 'dernier à ' p", 10883 yesterday: "'hier à ' p", 10884 today: "'aujourdâhui à ' p", 10885 tomorrow: "'demain à ' p'", 10886 nextWeek: "eeee 'prochain à ' p", 10887 other: 'P' 10888 }; 10889 10890 function formatRelative(token, _date, _baseDate, _options) { 10891 return formatRelativeLocale[token]; 10892 } 10893 10894 /***/ 10895 }), 10896 /* 189 */ 10897 /***/ (function (module, __webpack_exports__, __webpack_require__) { 10898 10899 "use strict"; 10900 /* harmony import */ 10901 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 10902 10903 var eraValues = { 10904 narrow: ['av. J.-C', 'ap. J.-C'], 10905 abbreviated: ['av. J.-C', 'ap. J.-C'], 10906 wide: ['avant Jésus-Christ', 'après Jésus-Christ'] 10907 }; 10908 var quarterValues = { 10909 narrow: ['T1', 'T2', 'T3', 'T4'], 10910 abbreviated: ['1er trim.', '2ème trim.', '3ème trim.', '4ème trim.'], 10911 wide: ['1er trimestre', '2ème trimestre', '3ème trimestre', '4ème trimestre'] 10912 }; 10913 var monthValues = { 10914 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], 10915 abbreviated: ['janv.', 'févr.', 'mars', 'avr.', 'mai', 'juin', 'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'], 10916 wide: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'] 10917 }; 10918 var dayValues = { 10919 narrow: ['D', 'L', 'M', 'M', 'J', 'V', 'S'], 10920 short: ['di', 'lu', 'ma', 'me', 'je', 've', 'sa'], 10921 abbreviated: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'], 10922 wide: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'] 10923 }; 10924 var dayPeriodValues = { 10925 narrow: { 10926 am: 'AM', 10927 pm: 'PM', 10928 midnight: 'minuit', 10929 noon: 'midi', 10930 morning: 'mat.', 10931 afternoon: 'ap.m.', 10932 evening: 'soir', 10933 night: 'mat.' 10934 }, 10935 abbreviated: { 10936 am: 'AM', 10937 pm: 'PM', 10938 midnight: 'minuit', 10939 noon: 'midi', 10940 morning: 'matin', 10941 afternoon: 'après-midi', 10942 evening: 'soir', 10943 night: 'matin' 10944 }, 10945 wide: { 10946 am: 'AM', 10947 pm: 'PM', 10948 midnight: 'minuit', 10949 noon: 'midi', 10950 morning: 'du matin', 10951 afternoon: 'de lâaprès-midi', 10952 evening: 'du soir', 10953 night: 'du matin' 10954 } 10955 }; 10956 10957 function ordinalNumber(dirtyNumber, dirtyOptions) { 10958 var number = Number(dirtyNumber); 10959 var options = dirtyOptions || {}; 10960 var unit = String(options.unit); 10961 var suffix; 10962 10963 if (number === 0) { 10964 return number; 10965 } 10966 10967 if (unit === 'year' || unit === 'hour' || unit === 'week') { 10968 if (number === 1) { 10969 suffix = 'ère'; 10970 } else { 10971 suffix = 'ème'; 10972 } 10973 } else { 10974 if (number === 1) { 10975 suffix = 'er'; 10976 } else { 10977 suffix = 'ème'; 10978 } 10979 } 10980 10981 return number + suffix; 10982 } 10983 10984 var localize = { 10985 ordinalNumber: ordinalNumber, 10986 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 10987 values: eraValues, 10988 defaultWidth: 'wide' 10989 }), 10990 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 10991 values: quarterValues, 10992 defaultWidth: 'wide', 10993 argumentCallback: function (quarter) { 10994 return Number(quarter) - 1; 10995 } 10996 }), 10997 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 10998 values: monthValues, 10999 defaultWidth: 'wide' 11000 }), 11001 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 11002 values: dayValues, 11003 defaultWidth: 'wide' 11004 }), 11005 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 11006 values: dayPeriodValues, 11007 defaultWidth: 'wide' 11008 }) 11009 }; 11010 /* harmony default export */ 11011 __webpack_exports__["a"] = (localize); 11012 11013 /***/ 11014 }), 11015 /* 190 */ 11016 /***/ (function (module, __webpack_exports__, __webpack_require__) { 11017 11018 "use strict"; 11019 /* harmony import */ 11020 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 11021 /* harmony import */ 11022 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 11023 11024 11025 var matchOrdinalNumberPattern = /^(\d+)(ième|ère|ème|er|e)?/i; 11026 var parseOrdinalNumberPattern = /\d+/i; 11027 var matchEraPatterns = { 11028 narrow: /^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i, 11029 abbreviated: /^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, 11030 wide: /^(avant Jésus-Christ|après Jésus-Christ)/i 11031 }; 11032 var parseEraPatterns = { 11033 any: [/^av/i, /^ap/i] 11034 }; 11035 var matchQuarterPatterns = { 11036 narrow: /^[1234]/i, 11037 abbreviated: /^t[1234]/i, 11038 wide: /^[1234](er|ème|e)? trimestre/i 11039 }; 11040 var parseQuarterPatterns = { 11041 any: [/1/i, /2/i, /3/i, /4/i] 11042 }; 11043 var matchMonthPatterns = { 11044 narrow: /^[jfmasond]/i, 11045 abbreviated: /^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i, 11046 wide: /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i 11047 }; 11048 var parseMonthPatterns = { 11049 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 11050 any: [/^ja/i, /^f/i, /^mar/i, /^av/i, /^ma/i, /^juin/i, /^juil/i, /^ao/i, /^s/i, /^o/i, /^n/i, /^d/i] 11051 }; 11052 var matchDayPatterns = { 11053 narrow: /^[lmjvsd]/i,
vendor: 15,569 bytes, lines 11054-11398
11054 short: /^(di|lu|ma|me|je|ve|sa)/i, 11055 abbreviated: /^(dim|lun|mar|mer|jeu|ven|sam)\.?/i, 11056 wide: /^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i 11057 }; 11058 var parseDayPatterns = { 11059 narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], 11060 any: [/^di/i, /^lu/i, /^ma/i, /^me/i, /^je/i, /^ve/i, /^sa/i] 11061 }; 11062 var matchDayPeriodPatterns = { 11063 narrow: /^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i, 11064 any: /^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i 11065 }; 11066 var parseDayPeriodPatterns = { 11067 any: { 11068 am: /^a/i, 11069 pm: /^p/i, 11070 midnight: /^min/i, 11071 noon: /^mid/i, 11072 morning: /mat/i, 11073 afternoon: /ap/i, 11074 evening: /soir/i, 11075 night: /nuit/i 11076 } 11077 }; 11078 var match = { 11079 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 11080 matchPattern: matchOrdinalNumberPattern, 11081 parsePattern: parseOrdinalNumberPattern, 11082 valueCallback: function (value) { 11083 return parseInt(value, 10); 11084 } 11085 }), 11086 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 11087 matchPatterns: matchEraPatterns, 11088 defaultMatchWidth: 'wide', 11089 parsePatterns: parseEraPatterns, 11090 defaultParseWidth: 'any' 11091 }), 11092 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 11093 matchPatterns: matchQuarterPatterns, 11094 defaultMatchWidth: 'wide', 11095 parsePatterns: parseQuarterPatterns, 11096 defaultParseWidth: 'any', 11097 valueCallback: function (index) { 11098 return index + 1; 11099 } 11100 }), 11101 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 11102 matchPatterns: matchMonthPatterns, 11103 defaultMatchWidth: 'wide', 11104 parsePatterns: parseMonthPatterns, 11105 defaultParseWidth: 'any' 11106 }), 11107 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 11108 matchPatterns: matchDayPatterns, 11109 defaultMatchWidth: 'wide', 11110 parsePatterns: parseDayPatterns, 11111 defaultParseWidth: 'any' 11112 }), 11113 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 11114 matchPatterns: matchDayPeriodPatterns, 11115 defaultMatchWidth: 'any', 11116 parsePatterns: parseDayPeriodPatterns, 11117 defaultParseWidth: 'any' 11118 }) 11119 }; 11120 /* harmony default export */ 11121 __webpack_exports__["a"] = (match); 11122 11123 /***/ 11124 }), 11125 /* 191 */ 11126 /***/ (function (module, exports, __webpack_require__) { 11127 11128 "use strict"; 11129 11130 11131 var _classCallCheck2 = __webpack_require__(64); 11132 11133 var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); 11134 11135 var _createClass2 = __webpack_require__(65); 11136 11137 var _createClass3 = _interopRequireDefault(_createClass2); 11138 11139 var _react = __webpack_require__(12); 11140 11141 var _react2 = _interopRequireDefault(_react); 11142 11143 var _reactDom = __webpack_require__(12); 11144 11145 __webpack_require__(203); 11146 11147 var _gitalk = __webpack_require__(207); 11148 11149 var _gitalk2 = _interopRequireDefault(_gitalk); 11150 11151 function _interopRequireDefault(obj) { 11152 return obj && obj.__esModule ? obj : {default: obj}; 11153 } 11154 11155 var Gitalk = function () { 11156 function Gitalk() { 11157 var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; 11158 (0, _classCallCheck3.default)(this, Gitalk); 11159 11160 this.options = options; 11161 } 11162 11163 (0, _createClass3.default)(Gitalk, [{ 11164 key: 'render', 11165 value: function render(container, callback) { 11166 var node = null; 11167 container = container || this.options.container; 11168 11169 if (!container) throw new Error('Container is required: ' + container); 11170 11171 if (!(container instanceof HTMLElement)) { 11172 node = window.document.getElementById(container); 11173 if (!node) throw new Error('Container not found, window.document.getElementById: ' + container); 11174 } else { 11175 node = container; 11176 } 11177 11178 if (!callback) { 11179 callback = function callback() { 11180 }; 11181 } 11182 11183 return (0, _reactDom.render)(_react2.default.createElement(_gitalk2.default, {options: this.options}), node, callback); 11184 } 11185 }]); 11186 return Gitalk; 11187 }(); 11188 11189 module.exports = Gitalk; 11190 11191 /***/ 11192 }), 11193 /* 192 */ 11194 /***/ (function (module, exports, __webpack_require__) { 11195 11196 module.exports = {"default": __webpack_require__(193), __esModule: true}; 11197 11198 /***/ 11199 }), 11200 /* 193 */ 11201 /***/ (function (module, exports, __webpack_require__) { 11202 11203 __webpack_require__(194); 11204 var $Object = __webpack_require__(7).Object; 11205 module.exports = function defineProperty(it, key, desc) { 11206 return $Object.defineProperty(it, key, desc); 11207 }; 11208 11209 11210 /***/ 11211 }), 11212 /* 194 */ 11213 /***/ (function (module, exports, __webpack_require__) { 11214 11215 var $export = __webpack_require__(11); 11216// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) 11217 $export($export.S + $export.F * !__webpack_require__(17), 'Object', {defineProperty: __webpack_require__(16).f}); 11218 11219 11220 /***/ 11221 }), 11222 /* 195 */ 11223 /***/ (function (module, exports, __webpack_require__) { 11224 11225 /* WEBPACK VAR INJECTION */ 11226 (function (process) {/** 11227 * Copyright (c) 2013-present, Facebook, Inc. 11228 * 11229 * This source code is licensed under the MIT license found in the 11230 * LICENSE file in the root directory of this source tree. 11231 */ 11232 11233 if (process.env.NODE_ENV !== 'production') { 11234 var ReactIs = __webpack_require__(99); 11235 11236 // By explicitly using `prop-types` you are opting into new development behavior. 11237 // http://fb.me/prop-types-in-prod 11238 var throwOnDirectAccess = true; 11239 module.exports = __webpack_require__(198)(ReactIs.isElement, throwOnDirectAccess); 11240 } else { 11241 // By explicitly using `prop-types` you are opting into new production behavior. 11242 // http://fb.me/prop-types-in-prod 11243 module.exports = __webpack_require__(201)(); 11244 } 11245 11246 /* WEBPACK VAR INJECTION */ 11247 }.call(exports, __webpack_require__(18))) 11248 11249 /***/ 11250 }), 11251 /* 196 */ 11252 /***/ (function (module, exports, __webpack_require__) { 11253 11254 "use strict"; 11255 /** @license React v16.12.0 11256 * react-is.production.min.js 11257 * 11258 * Copyright (c) Facebook, Inc. and its affiliates. 11259 * 11260 * This source code is licensed under the MIT license found in the 11261 * LICENSE file in the root directory of this source tree. 11262 */ 11263 11264 Object.defineProperty(exports, "__esModule", {value: !0}); 11265 var b = "function" === typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, 11266 d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, 11267 f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, 11268 h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, 11269 l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, 11270 n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, 11271 q = b ? Symbol.for("react.suspense_list") : 11272 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, 11273 v = b ? Symbol.for("react.fundamental") : 60117, w = b ? Symbol.for("react.responder") : 60118, 11274 x = b ? Symbol.for("react.scope") : 60119; 11275 11276 function y(a) { 11277 if ("object" === typeof a && null !== a) { 11278 var u = a.$$typeof; 11279 switch (u) { 11280 case c: 11281 switch (a = a.type, a) { 11282 case l: 11283 case m: 11284 case e: 11285 case g: 11286 case f: 11287 case p: 11288 return a; 11289 default: 11290 switch (a = a && a.$$typeof, a) { 11291 case k: 11292 case n: 11293 case t: 11294 case r: 11295 case h: 11296 return a; 11297 default: 11298 return u 11299 } 11300 } 11301 case d: 11302 return u 11303 } 11304 } 11305 } 11306 11307 function z(a) { 11308 return y(a) === m 11309 } 11310 11311 exports.typeOf = y; 11312 exports.AsyncMode = l; 11313 exports.ConcurrentMode = m; 11314 exports.ContextConsumer = k; 11315 exports.ContextProvider = h; 11316 exports.Element = c; 11317 exports.ForwardRef = n; 11318 exports.Fragment = e; 11319 exports.Lazy = t; 11320 exports.Memo = r; 11321 exports.Portal = d; 11322 exports.Profiler = g; 11323 exports.StrictMode = f; 11324 exports.Suspense = p; 11325 exports.isValidElementType = function (a) { 11326 return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === v || a.$$typeof === w || a.$$typeof === x) 11327 }; 11328 exports.isAsyncMode = function (a) { 11329 return z(a) || y(a) === l 11330 }; 11331 exports.isConcurrentMode = z; 11332 exports.isContextConsumer = function (a) { 11333 return y(a) === k 11334 }; 11335 exports.isContextProvider = function (a) { 11336 return y(a) === h 11337 }; 11338 exports.isElement = function (a) { 11339 return "object" === typeof a && null !== a && a.$$typeof === c 11340 }; 11341 exports.isForwardRef = function (a) { 11342 return y(a) === n 11343 }; 11344 exports.isFragment = function (a) { 11345 return y(a) === e 11346 }; 11347 exports.isLazy = function (a) { 11348 return y(a) === t 11349 }; 11350 exports.isMemo = function (a) { 11351 return y(a) === r 11352 }; 11353 exports.isPortal = function (a) { 11354 return y(a) === d 11355 }; 11356 exports.isProfiler = function (a) { 11357 return y(a) === g 11358 }; 11359 exports.isStrictMode = function (a) { 11360 return y(a) === f 11361 }; 11362 exports.isSuspense = function (a) { 11363 return y(a) === p 11364 }; 11365 11366 11367 /***/ 11368 }), 11369 /* 197 */ 11370 /***/ (function (module, exports, __webpack_require__) { 11371 11372 "use strict"; 11373 /* WEBPACK VAR INJECTION */ 11374 (function (process) {/** @license React v16.12.0 11375 * react-is.development.js 11376 * 11377 * Copyright (c) Facebook, Inc. and its affiliates. 11378 * 11379 * This source code is licensed under the MIT license found in the 11380 * LICENSE file in the root directory of this source tree. 11381 */ 11382 11383 11384 if (process.env.NODE_ENV !== "production") { 11385 (function () { 11386 'use strict'; 11387 11388 Object.defineProperty(exports, '__esModule', {value: true}); 11389 11390// The Symbol used to tag the ReactElement-like types. If there is no native Symbol 11391// nor polyfill, then a plain number is used for performance. 11392 var hasSymbol = typeof Symbol === 'function' && Symbol.for; 11393 var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; 11394 var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; 11395 var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; 11396 var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; 11397 var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; 11398 var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider')
11398: 0xeacd; 11399 var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary 11400// (unstable) APIs that have been removed. Can we remove the symbols? 11401 11402 var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf; 11403 var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; 11404 var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; 11405 var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; 11406 var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; 11407 var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; 11408 var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; 11409 var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5; 11410 var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6; 11411 var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope')
vendor: 27,388 bytes, lines 11411-11890
11411: 0xead7; 11412 11413 function isValidElementType(type) { 11414 return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. 11415 type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE); 11416 } 11417 11418 /** 11419 * Forked from fbjs/warning: 11420 * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js 11421 * 11422 * Only change is we use console.warn instead of console.error, 11423 * and do nothing when 'console' is not supported. 11424 * This really simplifies the code. 11425 * --- 11426 * Similar to invariant but only logs a warning if the condition is not met. 11427 * This can be used to log issues in development environments in critical 11428 * paths. Removing the logging code for production environments will keep the 11429 * same logic and follow the same code paths. 11430 */ 11431 var lowPriorityWarningWithoutStack = function () { 11432 }; 11433 11434 { 11435 var printWarning = function (format) { 11436 for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { 11437 args[_key - 1] = arguments[_key]; 11438 } 11439 11440 var argIndex = 0; 11441 var message = 'Warning: ' + format.replace(/%s/g, function () { 11442 return args[argIndex++]; 11443 }); 11444 11445 if (typeof console !== 'undefined') { 11446 console.warn(message); 11447 } 11448 11449 try { 11450 // --- Welcome to debugging React --- 11451 // This error was thrown as a convenience so that you can use this stack 11452 // to find the callsite that caused this warning to fire. 11453 throw new Error(message); 11454 } catch (x) { 11455 } 11456 }; 11457 11458 lowPriorityWarningWithoutStack = function (condition, format) { 11459 if (format === undefined) { 11460 throw new Error('`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument'); 11461 } 11462 11463 if (!condition) { 11464 for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { 11465 args[_key2 - 2] = arguments[_key2]; 11466 } 11467 11468 printWarning.apply(void 0, [format].concat(args)); 11469 } 11470 }; 11471 } 11472 11473 var lowPriorityWarningWithoutStack$1 = lowPriorityWarningWithoutStack; 11474 11475 function typeOf(object) { 11476 if (typeof object === 'object' && object !== null) { 11477 var $$typeof = object.$$typeof; 11478 11479 switch ($$typeof) { 11480 case REACT_ELEMENT_TYPE: 11481 var type = object.type; 11482 11483 switch (type) { 11484 case REACT_ASYNC_MODE_TYPE: 11485 case REACT_CONCURRENT_MODE_TYPE: 11486 case REACT_FRAGMENT_TYPE: 11487 case REACT_PROFILER_TYPE: 11488 case REACT_STRICT_MODE_TYPE: 11489 case REACT_SUSPENSE_TYPE: 11490 return type; 11491 11492 default: 11493 var $$typeofType = type && type.$$typeof; 11494 11495 switch ($$typeofType) { 11496 case REACT_CONTEXT_TYPE: 11497 case REACT_FORWARD_REF_TYPE: 11498 case REACT_LAZY_TYPE: 11499 case REACT_MEMO_TYPE: 11500 case REACT_PROVIDER_TYPE: 11501 return $$typeofType; 11502 11503 default: 11504 return $$typeof; 11505 } 11506 11507 } 11508 11509 case REACT_PORTAL_TYPE: 11510 return $$typeof; 11511 } 11512 } 11513 11514 return undefined; 11515 } // AsyncMode is deprecated along with isAsyncMode 11516 11517 var AsyncMode = REACT_ASYNC_MODE_TYPE; 11518 var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; 11519 var ContextConsumer = REACT_CONTEXT_TYPE; 11520 var ContextProvider = REACT_PROVIDER_TYPE; 11521 var Element = REACT_ELEMENT_TYPE; 11522 var ForwardRef = REACT_FORWARD_REF_TYPE; 11523 var Fragment = REACT_FRAGMENT_TYPE; 11524 var Lazy = REACT_LAZY_TYPE; 11525 var Memo = REACT_MEMO_TYPE; 11526 var Portal = REACT_PORTAL_TYPE; 11527 var Profiler = REACT_PROFILER_TYPE; 11528 var StrictMode = REACT_STRICT_MODE_TYPE; 11529 var Suspense = REACT_SUSPENSE_TYPE; 11530 var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated 11531 11532 function isAsyncMode(object) { 11533 { 11534 if (!hasWarnedAboutDeprecatedIsAsyncMode) { 11535 hasWarnedAboutDeprecatedIsAsyncMode = true; 11536 lowPriorityWarningWithoutStack$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.'); 11537 } 11538 } 11539 11540 return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; 11541 } 11542 11543 function isConcurrentMode(object) { 11544 return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; 11545 } 11546 11547 function isContextConsumer(object) { 11548 return typeOf(object) === REACT_CONTEXT_TYPE; 11549 } 11550 11551 function isContextProvider(object) { 11552 return typeOf(object) === REACT_PROVIDER_TYPE; 11553 } 11554 11555 function isElement(object) { 11556 return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; 11557 } 11558 11559 function isForwardRef(object) { 11560 return typeOf(object) === REACT_FORWARD_REF_TYPE; 11561 } 11562 11563 function isFragment(object) { 11564 return typeOf(object) === REACT_FRAGMENT_TYPE; 11565 } 11566 11567 function isLazy(object) { 11568 return typeOf(object) === REACT_LAZY_TYPE; 11569 } 11570 11571 function isMemo(object) { 11572 return typeOf(object) === REACT_MEMO_TYPE; 11573 } 11574 11575 function isPortal(object) { 11576 return typeOf(object) === REACT_PORTAL_TYPE; 11577 } 11578 11579 function isProfiler(object) { 11580 return typeOf(object) === REACT_PROFILER_TYPE; 11581 } 11582 11583 function isStrictMode(object) { 11584 return typeOf(object) === REACT_STRICT_MODE_TYPE; 11585 } 11586 11587 function isSuspense(object) { 11588 return typeOf(object) === REACT_SUSPENSE_TYPE; 11589 } 11590 11591 exports.typeOf = typeOf; 11592 exports.AsyncMode = AsyncMode; 11593 exports.ConcurrentMode = ConcurrentMode; 11594 exports.ContextConsumer = ContextConsumer; 11595 exports.ContextProvider = ContextProvider; 11596 exports.Element = Element; 11597 exports.ForwardRef = ForwardRef; 11598 exports.Fragment = Fragment; 11599 exports.Lazy = Lazy; 11600 exports.Memo = Memo; 11601 exports.Portal = Portal; 11602 exports.Profiler = Profiler; 11603 exports.StrictMode = StrictMode; 11604 exports.Suspense = Suspense; 11605 exports.isValidElementType = isValidElementType; 11606 exports.isAsyncMode = isAsyncMode; 11607 exports.isConcurrentMode = isConcurrentMode; 11608 exports.isContextConsumer = isContextConsumer; 11609 exports.isContextProvider = isContextProvider; 11610 exports.isElement = isElement; 11611 exports.isForwardRef = isForwardRef; 11612 exports.isFragment = isFragment; 11613 exports.isLazy = isLazy; 11614 exports.isMemo = isMemo; 11615 exports.isPortal = isPortal; 11616 exports.isProfiler = isProfiler; 11617 exports.isStrictMode = isStrictMode; 11618 exports.isSuspense = isSuspense; 11619 })(); 11620 } 11621 11622 /* WEBPACK VAR INJECTION */ 11623 }.call(exports, __webpack_require__(18))) 11624 11625 /***/ 11626 }), 11627 /* 198 */ 11628 /***/ (function (module, exports, __webpack_require__) { 11629 11630 "use strict"; 11631 /* WEBPACK VAR INJECTION */ 11632 (function (process) { 11633 /** 11634 * Copyright (c) 2013-present, Facebook, Inc. 11635 * 11636 * This source code is licensed under the MIT license found in the 11637 * LICENSE file in the root directory of this source tree. 11638 */ 11639 11640 11641 11642 var ReactIs = __webpack_require__(99); 11643 var assign = __webpack_require__(199); 11644 11645 var ReactPropTypesSecret = __webpack_require__(68); 11646 var checkPropTypes = __webpack_require__(200); 11647 11648 var has = Function.call.bind(Object.prototype.hasOwnProperty); 11649 var printWarning = function () { 11650 }; 11651 11652 if (process.env.NODE_ENV !== 'production') { 11653 printWarning = function (text) { 11654 var message = 'Warning: ' + text; 11655 if (typeof console !== 'undefined') { 11656 console.error(message); 11657 } 11658 try { 11659 // --- Welcome to debugging React --- 11660 // This error was thrown as a convenience so that you can use this stack 11661 // to find the callsite that caused this warning to fire. 11662 throw new Error(message); 11663 } catch (x) { 11664 } 11665 }; 11666 } 11667 11668 function emptyFunctionThatReturnsNull() { 11669 return null; 11670 } 11671 11672 module.exports = function (isValidElement, throwOnDirectAccess) { 11673 /* global Symbol */ 11674 var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; 11675 var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. 11676 11677 /** 11678 * Returns the iterator method function contained on the iterable object. 11679 * 11680 * Be sure to invoke the function with the iterable as context: 11681 * 11682 * var iteratorFn = getIteratorFn(myIterable); 11683 * if (iteratorFn) { 11684 * var iterator = iteratorFn.call(myIterable); 11685 * ... 11686 * } 11687 * 11688 * @param {?object} maybeIterable 11689 * @return {?function} 11690 */ 11691 function getIteratorFn(maybeIterable) { 11692 var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); 11693 if (typeof iteratorFn === 'function') { 11694 return iteratorFn; 11695 } 11696 } 11697 11698 /** 11699 * Collection of methods that allow declaration and validation of props that are 11700 * supplied to React components. Example usage: 11701 * 11702 * var Props = require('ReactPropTypes'); 11703 * var MyArticle = React.createClass({ 11704 * propTypes: { 11705 * // An optional string prop named "description". 11706 * description: Props.string, 11707 * 11708 * // A required enum prop named "category". 11709 * category: Props.oneOf(['News','Photos']).isRequired, 11710 * 11711 * // A prop named "dialog" that requires an instance of Dialog. 11712 * dialog: Props.instanceOf(Dialog).isRequired 11713 * }, 11714 * render: function() { ... } 11715 * }); 11716 * 11717 * A more formal specification of how these methods are used: 11718 * 11719 * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) 11720 * decl := ReactPropTypes.{type}(.isRequired)? 11721 * 11722 * Each and every declaration produces a function with the same signature. This 11723 * allows the creation of custom validation functions. For example: 11724 * 11725 * var MyLink = React.createClass({ 11726 * propTypes: { 11727 * // An optional string or URI prop named "href". 11728 * href: function(props, propName, componentName) { 11729 * var propValue = props[propName]; 11730 * if (propValue != null && typeof propValue !== 'string' && 11731 * !(propValue instanceof URI)) { 11732 * return new Error( 11733 * 'Expected a string or an URI for ' + propName + ' in ' + 11734 * componentName 11735 * ); 11736 * } 11737 * } 11738 * }, 11739 * render: function() {...} 11740 * }); 11741 * 11742 * @internal 11743 */ 11744 11745 var ANONYMOUS = '<<anonymous>>'; 11746 11747 // Important! 11748 // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. 11749 var ReactPropTypes = { 11750 array: createPrimitiveTypeChecker('array'), 11751 bool: createPrimitiveTypeChecker('boolean'), 11752 func: createPrimitiveTypeChecker('function'), 11753 number: createPrimitiveTypeChecker('number'), 11754 object: createPrimitiveTypeChecker('object'), 11755 string: createPrimitiveTypeChecker('string'), 11756 symbol: createPrimitiveTypeChecker('symbol'), 11757 11758 any: createAnyTypeChecker(), 11759 arrayOf: createArrayOfTypeChecker, 11760 element: createElementTypeChecker(), 11761 elementType: createElementTypeTypeChecker(), 11762 instanceOf: createInstanceTypeChecker, 11763 node: createNodeChecker(), 11764 objectOf: createObjectOfTypeChecker, 11765 oneOf: createEnumTypeChecker, 11766 oneOfType: createUnionTypeChecker, 11767 shape: createShapeTypeChecker, 11768 exact: createStrictShapeTypeChecker, 11769 }; 11770 11771 /** 11772 * inlined Object.is polyfill to avoid requiring consumers ship their own 11773 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is 11774 */ 11775 11776 /*eslint-disable no-self-compare*/ 11777 function is(x, y) { 11778 // SameValue algorithm 11779 if (x === y) { 11780 // Steps 1-5, 7-10 11781 // Steps 6.b-6.e: +0 != -0 11782 return x !== 0 || 1 / x === 1 / y; 11783 } else { 11784 // Step 6.a: NaN == NaN 11785 return x !== x && y !== y; 11786 } 11787 } 11788 11789 /*eslint-enable no-self-compare*/ 11790 11791 /** 11792 * We use an Error-like object for backward compatibility as people may call 11793 * PropTypes directly and inspect their output. However, we don't use real 11794 * Errors anymore. We don't inspect their stack anyway, and creating them 11795 * is prohibitively expensive if they are created too often, such as what 11796 * happens in oneOfType() for any type before the one that matched. 11797 */ 11798 function PropTypeError(message) { 11799 this.message = message; 11800 this.stack = ''; 11801 } 11802 11803 // Make `instanceof Error` still work for returned errors. 11804 PropTypeError.prototype = Error.prototype; 11805 11806 function createChainableTypeChecker(validate) { 11807 if (process.env.NODE_ENV !== 'production') { 11808 var manualPropTypeCallCache = {}; 11809 var manualPropTypeWarningCount = 0; 11810 } 11811 11812 function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { 11813 componentName = componentName || ANONYMOUS; 11814 propFullName = propFullName || propName; 11815 11816 if (secret !== ReactPropTypesSecret) { 11817 if (throwOnDirectAccess) { 11818 // New behavior only for users of `prop-types` package 11819 var err = new Error( 11820 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 11821 'Use `PropTypes.checkPropTypes()` to call them. ' + 11822 'Read more at http://fb.me/use-check-prop-types' 11823 ); 11824 err.name = 'Invariant Violation'; 11825 throw err; 11826 } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') { 11827 // Old behavior for people using React.PropTypes 11828 var cacheKey = componentName + ':' + propName; 11829 if ( 11830 !manualPropTypeCallCache[cacheKey] && 11831 // Avoid spamming the console because they are often not actionable except for lib authors 11832 manualPropTypeWarningCount < 3 11833 ) { 11834 printWarning( 11835 'You are manually calling a React.PropTypes validation ' + 11836 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 11837 'and will throw in the standalone `prop-types` package. ' + 11838 'You may be seeing this warning due to a third-party PropTypes ' + 11839 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.' 11840 ); 11841 manualPropTypeCallCache[cacheKey] = true; 11842 manualPropTypeWarningCount++; 11843 } 11844 } 11845 } 11846 if (props[propName] == null) { 11847 if (isRequired) { 11848 if (props[propName] === null) { 11849 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); 11850 } 11851 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); 11852 } 11853 return null; 11854 } else { 11855 return validate(props, propName, componentName, location, propFullName); 11856 } 11857 } 11858 11859 var chainedCheckType = checkType.bind(null, false); 11860 chainedCheckType.isRequired = checkType.bind(null, true); 11861 11862 return chainedCheckType; 11863 } 11864 11865 function createPrimitiveTypeChecker(expectedType) { 11866 function validate(props, propName, componentName, location, propFullName, secret) { 11867 var propValue = props[propName]; 11868 var propType = getPropType(propValue); 11869 if (propType !== expectedType) { 11870 // `propValue` being instance of, say, date/regexp, pass the 'object' 11871 // check, but we can offer a more precise error message here rather than 11872 // 'of type `object`'. 11873 var preciseType = getPreciseType(propValue); 11874 11875 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.')); 11876 } 11877 return null; 11878 } 11879 11880 return createChainableTypeChecker(validate); 11881 } 11882 11883 function createAnyTypeChecker() { 11884 return createChainableTypeChecker(emptyFunctionThatReturnsNull); 11885 } 11886 11887 function createArrayOfTypeChecker(typeChecker) { 11888 function validate(props, propName, componentName, location, propFullName) { 11889 if (typeof typeChecker !== 'function') { 11890 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invali
vendor: 4,111 bytes, lines 11890-11953
11890d PropType notation inside arrayOf.'); 11891 } 11892 var propValue = props[propName]; 11893 if (!Array.isArray(propValue)) { 11894 var propType = getPropType(propValue); 11895 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); 11896 } 11897 for (var i = 0; i < propValue.length; i++) { 11898 var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret); 11899 if (error instanceof Error) { 11900 return error; 11901 } 11902 } 11903 return null; 11904 } 11905 11906 return createChainableTypeChecker(validate); 11907 } 11908 11909 function createElementTypeChecker() { 11910 function validate(props, propName, componentName, location, propFullName) { 11911 var propValue = props[propName]; 11912 if (!isValidElement(propValue)) { 11913 var propType = getPropType(propValue); 11914 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); 11915 } 11916 return null; 11917 } 11918 11919 return createChainableTypeChecker(validate); 11920 } 11921 11922 function createElementTypeTypeChecker() { 11923 function validate(props, propName, componentName, location, propFullName) { 11924 var propValue = props[propName]; 11925 if (!ReactIs.isValidElementType(propValue)) { 11926 var propType = getPropType(propValue); 11927 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.')); 11928 } 11929 return null; 11930 } 11931 11932 return createChainableTypeChecker(validate); 11933 } 11934 11935 function createInstanceTypeChecker(expectedClass) { 11936 function validate(props, propName, componentName, location, propFullName) { 11937 if (!(props[propName] instanceof expectedClass)) { 11938 var expectedClassName = expectedClass.name || ANONYMOUS; 11939 var actualClassName = getClassName(props[propName]); 11940 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); 11941 } 11942 return null; 11943 } 11944 11945 return createChainableTypeChecker(validate); 11946 } 11947 11948 function createEnumTypeChecker(expectedValues) { 11949 if (!Array.isArray(expectedValues)) { 11950 if (process.env.NODE_ENV !== 'production') { 11951 if (arguments.length > 1) { 11952 printWarning( 11953 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
vendor: 6,362 bytes, lines 11954-12055
11954 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).' 11955 ); 11956 } else { 11957 printWarning('Invalid argument supplied to oneOf, expected an array.'); 11958 } 11959 } 11960 return emptyFunctionThatReturnsNull; 11961 } 11962 11963 function validate(props, propName, componentName, location, propFullName) { 11964 var propValue = props[propName]; 11965 for (var i = 0; i < expectedValues.length; i++) { 11966 if (is(propValue, expectedValues[i])) { 11967 return null; 11968 } 11969 } 11970 11971 var valuesString = JSON.stringify(expectedValues, function replacer(key, value) { 11972 var type = getPreciseType(value); 11973 if (type === 'symbol') { 11974 return String(value); 11975 } 11976 return value; 11977 }); 11978 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); 11979 } 11980 11981 return createChainableTypeChecker(validate); 11982 } 11983 11984 function createObjectOfTypeChecker(typeChecker) { 11985 function validate(props, propName, componentName, location, propFullName) { 11986 if (typeof typeChecker !== 'function') { 11987 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); 11988 } 11989 var propValue = props[propName]; 11990 var propType = getPropType(propValue); 11991 if (propType !== 'object') { 11992 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); 11993 } 11994 for (var key in propValue) { 11995 if (has(propValue, key)) { 11996 var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); 11997 if (error instanceof Error) { 11998 return error; 11999 } 12000 } 12001 } 12002 return null; 12003 } 12004 12005 return createChainableTypeChecker(validate); 12006 } 12007 12008 function createUnionTypeChecker(arrayOfTypeCheckers) { 12009 if (!Array.isArray(arrayOfTypeCheckers)) { 12010 process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0; 12011 return emptyFunctionThatReturnsNull; 12012 } 12013 12014 for (var i = 0; i < arrayOfTypeCheckers.length; i++) { 12015 var checker = arrayOfTypeCheckers[i]; 12016 if (typeof checker !== 'function') { 12017 printWarning( 12018 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 12019 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.' 12020 ); 12021 return emptyFunctionThatReturnsNull; 12022 } 12023 } 12024 12025 function validate(props, propName, componentName, location, propFullName) { 12026 for (var i = 0; i < arrayOfTypeCheckers.length; i++) { 12027 var checker = arrayOfTypeCheckers[i]; 12028 if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) { 12029 return null; 12030 } 12031 } 12032 12033 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.')); 12034 } 12035 12036 return createChainableTypeChecker(validate); 12037 } 12038 12039 function createNodeChecker() { 12040 function validate(props, propName, componentName, location, propFullName) { 12041 if (!isNode(props[propName])) { 12042 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); 12043 } 12044 return null; 12045 } 12046 12047 return createChainableTypeChecker(validate); 12048 } 12049 12050 function createShapeTypeChecker(shapeTypes) { 12051 function validate(props, propName, componentName, location, propFullName) { 12052 var propValue = props[propName]; 12053 var propType = getPropType(propValue); 12054 if (propType !== 'object') { 12055 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propT
vendor: 4,304 bytes, lines 12055-12126
12055ype + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); 12056 } 12057 for (var key in shapeTypes) { 12058 var checker = shapeTypes[key]; 12059 if (!checker) { 12060 continue; 12061 } 12062 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); 12063 if (error) { 12064 return error; 12065 } 12066 } 12067 return null; 12068 } 12069 12070 return createChainableTypeChecker(validate); 12071 } 12072 12073 function createStrictShapeTypeChecker(shapeTypes) { 12074 function validate(props, propName, componentName, location, propFullName) { 12075 var propValue = props[propName]; 12076 var propType = getPropType(propValue); 12077 if (propType !== 'object') { 12078 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); 12079 } 12080 // We need to check all keys in case some are required but missing from 12081 // props. 12082 var allKeys = assign({}, props[propName], shapeTypes); 12083 for (var key in allKeys) { 12084 var checker = shapeTypes[key]; 12085 if (!checker) { 12086 return new PropTypeError( 12087 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + 12088 '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + 12089 '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ') 12090 ); 12091 } 12092 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); 12093 if (error) { 12094 return error; 12095 } 12096 } 12097 return null; 12098 } 12099 12100 return createChainableTypeChecker(validate); 12101 } 12102 12103 function isNode(propValue) { 12104 switch (typeof propValue) { 12105 case 'number': 12106 case 'string': 12107 case 'undefined': 12108 return true; 12109 case 'boolean': 12110 return !propValue; 12111 case 'object': 12112 if (Array.isArray(propValue)) { 12113 return propValue.every(isNode); 12114 } 12115 if (propValue === null || isValidElement(propValue)) { 12116 return true; 12117 } 12118 12119 var iteratorFn = getIteratorFn(propValue); 12120 if (iteratorFn) { 12121 var iterator = iteratorFn.call(propValue); 12122 var step; 12123 if (iteratorFn !== propValue.entries) { 12124 while (!(step = iterator.next()).done) { 12125 if (!isNode(step.value)) { 12126 return false;
vendor: 4,117 bytes, lines 12127-12209
12127 } 12128 } 12129 } else { 12130 // Iterator will provide entry [k,v] tuples rather than values. 12131 while (!(step = iterator.next()).done) { 12132 var entry = step.value; 12133 if (entry) { 12134 if (!isNode(entry[1])) { 12135 return false; 12136 } 12137 } 12138 } 12139 } 12140 } else { 12141 return false; 12142 } 12143 12144 return true; 12145 default: 12146 return false; 12147 } 12148 } 12149 12150 function isSymbol(propType, propValue) { 12151 // Native Symbol. 12152 if (propType === 'symbol') { 12153 return true; 12154 } 12155 12156 // falsy value can't be a Symbol 12157 if (!propValue) { 12158 return false; 12159 } 12160 12161 // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' 12162 if (propValue['@@toStringTag'] === 'Symbol') { 12163 return true; 12164 } 12165 12166 // Fallback for non-spec compliant Symbols which are polyfilled. 12167 if (typeof Symbol === 'function' && propValue instanceof Symbol) { 12168 return true; 12169 } 12170 12171 return false; 12172 } 12173 12174 // Equivalent of `typeof` but with special handling for array and regexp. 12175 function getPropType(propValue) { 12176 var propType = typeof propValue; 12177 if (Array.isArray(propValue)) { 12178 return 'array'; 12179 } 12180 if (propValue instanceof RegExp) { 12181 // Old webkits (at least until Android 4.0) return 'function' rather than 12182 // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ 12183 // passes PropTypes.object. 12184 return 'object'; 12185 } 12186 if (isSymbol(propType, propValue)) { 12187 return 'symbol'; 12188 } 12189 return propType; 12190 } 12191 12192 // This handles more types than `getPropType`. Only used for error messages. 12193 // See `createPrimitiveTypeChecker`. 12194 function getPreciseType(propValue) { 12195 if (typeof propValue === 'undefined' || propValue === null) { 12196 return '' + propValue; 12197 } 12198 var propType = getPropType(propValue); 12199 if (propType === 'object') { 12200 if (propValue instanceof Date) { 12201 return 'date'; 12202 } else if (propValue instanceof RegExp) { 12203 return 'regexp'; 12204 } 12205 } 12206 return propType; 12207 } 12208 12209 // Returns a string that is postfixed to a warning about an invali
12209d type. 12210 // For example, "undefined" or "of type array" 12211 function getPostfixForTypeWarning(value) { 12212 var type = getPreciseType(value); 12213 switch (type) { 12214 case 'array': 12215 case 'object': 12216 return 'an ' + type; 12217 case 'boolean': 12218 case 'date': 12219 case 'regexp': 12220 return 'a ' + type; 12221 default: 12222 return type; 12223 } 12224 } 12225 12226 // Returns class name of the object, if any. 12227 function getClassName(propValue) { 12228 if (!propValue.constructor || !propValue.constructor.name) { 12229 return ANONYMOUS; 12230 } 12231 return propValue.constructor.name; 12232 } 12233 12234 ReactPropTypes.checkPropTypes = checkPropTypes; 12235 ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache; 12236 ReactPropTypes.PropTypes = ReactPropTypes; 12237 12238 return ReactPropTypes; 12239 }; 12240 12241 /* WEBPACK VAR INJECTION */ 12242 }.call(exports, __webpack_require__(18))) 12243 12244 /***/ 12245 }), 12246 /* 199 */ 12247 /***/ (function (module, exports, __webpack_require__) { 12248 12249 "use strict"; 12250 /* 12251object-assign 12252(c) Sindre Sorhus 12253@license MIT
vendor: 39,409 bytes, lines 12254-12964
12254*/ 12255 12256 12257 /* eslint-disable no-unused-vars */ 12258 var getOwnPropertySymbols = Object.getOwnPropertySymbols; 12259 var hasOwnProperty = Object.prototype.hasOwnProperty; 12260 var propIsEnumerable = Object.prototype.propertyIsEnumerable; 12261 12262 function toObject(val) { 12263 if (val === null || val === undefined) { 12264 throw new TypeError('Object.assign cannot be called with null or undefined'); 12265 } 12266 12267 return Object(val); 12268 } 12269 12270 function shouldUseNative() { 12271 try { 12272 if (!Object.assign) { 12273 return false; 12274 } 12275 12276 // Detect buggy property enumeration order in older V8 versions. 12277 12278 // https://bugs.chromium.org/p/v8/issues/detail?id=4118 12279 var test1 = new String('abc'); // eslint-disable-line no-new-wrappers 12280 test1[5] = 'de'; 12281 if (Object.getOwnPropertyNames(test1)[0] === '5') { 12282 return false; 12283 } 12284 12285 // https://bugs.chromium.org/p/v8/issues/detail?id=3056 12286 var test2 = {}; 12287 for (var i = 0; i < 10; i++) { 12288 test2['_' + String.fromCharCode(i)] = i; 12289 } 12290 var order2 = Object.getOwnPropertyNames(test2).map(function (n) { 12291 return test2[n]; 12292 }); 12293 if (order2.join('') !== '0123456789') { 12294 return false; 12295 } 12296 12297 // https://bugs.chromium.org/p/v8/issues/detail?id=3056 12298 var test3 = {}; 12299 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { 12300 test3[letter] = letter; 12301 }); 12302 if (Object.keys(Object.assign({}, test3)).join('') !== 12303 'abcdefghijklmnopqrst') { 12304 return false; 12305 } 12306 12307 return true; 12308 } catch (err) { 12309 // We don't expect any of the above to throw, but better to be safe. 12310 return false; 12311 } 12312 } 12313 12314 module.exports = shouldUseNative() ? Object.assign : function (target, source) { 12315 var from; 12316 var to = toObject(target); 12317 var symbols; 12318 12319 for (var s = 1; s < arguments.length; s++) { 12320 from = Object(arguments[s]); 12321 12322 for (var key in from) { 12323 if (hasOwnProperty.call(from, key)) { 12324 to[key] = from[key]; 12325 } 12326 } 12327 12328 if (getOwnPropertySymbols) { 12329 symbols = getOwnPropertySymbols(from); 12330 for (var i = 0; i < symbols.length; i++) { 12331 if (propIsEnumerable.call(from, symbols[i])) { 12332 to[symbols[i]] = from[symbols[i]]; 12333 } 12334 } 12335 } 12336 } 12337 12338 return to; 12339 }; 12340 12341 12342 /***/ 12343 }), 12344 /* 200 */ 12345 /***/ (function (module, exports, __webpack_require__) { 12346 12347 "use strict"; 12348 /* WEBPACK VAR INJECTION */ 12349 (function (process) { 12350 /** 12351 * Copyright (c) 2013-present, Facebook, Inc. 12352 * 12353 * This source code is licensed under the MIT license found in the 12354 * LICENSE file in the root directory of this source tree. 12355 */ 12356 12357 12358 12359 var printWarning = function () { 12360 }; 12361 12362 if (process.env.NODE_ENV !== 'production') { 12363 var ReactPropTypesSecret = __webpack_require__(68); 12364 var loggedTypeFailures = {}; 12365 var has = Function.call.bind(Object.prototype.hasOwnProperty); 12366 12367 printWarning = function (text) { 12368 var message = 'Warning: ' + text; 12369 if (typeof console !== 'undefined') { 12370 console.error(message); 12371 } 12372 try { 12373 // --- Welcome to debugging React --- 12374 // This error was thrown as a convenience so that you can use this stack 12375 // to find the callsite that caused this warning to fire. 12376 throw new Error(message); 12377 } catch (x) { 12378 } 12379 }; 12380 } 12381 12382 /** 12383 * Assert that the values match with the type specs. 12384 * Error messages are memorized and will only be shown once. 12385 * 12386 * @param {object} typeSpecs Map of name to a ReactPropType 12387 * @param {object} values Runtime values that need to be type-checked 12388 * @param {string} location e.g. "prop", "context", "child context" 12389 * @param {string} componentName Name of the component for error messages. 12390 * @param {?Function} getStack Returns the component stack. 12391 * @private 12392 */ 12393 function checkPropTypes(typeSpecs, values, location, componentName, getStack) { 12394 if (process.env.NODE_ENV !== 'production') { 12395 for (var typeSpecName in typeSpecs) { 12396 if (has(typeSpecs, typeSpecName)) { 12397 var error; 12398 // Prop type validation may throw. In case they do, we don't want to 12399 // fail the render phase where it didn't fail before. So we log it. 12400 // After these have been cleaned up, we'll let them throw. 12401 try { 12402 // This is intentionally an invariant that gets caught. It's the same 12403 // behavior as without this statement except with a better message. 12404 if (typeof typeSpecs[typeSpecName] !== 'function') { 12405 var err = Error( 12406 (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 12407 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' 12408 ); 12409 err.name = 'Invariant Violation'; 12410 throw err; 12411 } 12412 error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); 12413 } catch (ex) { 12414 error = ex; 12415 } 12416 if (error && !(error instanceof Error)) { 12417 printWarning( 12418 (componentName || 'React class') + ': type specification of ' + 12419 location + ' `' + typeSpecName + '` is invalid; the type checker ' + 12420 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 12421 'You may have forgotten to pass an argument to the type checker ' + 12422 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 12423 'shape all require an argument).' 12424 ); 12425 } 12426 if (error instanceof Error && !(error.message in loggedTypeFailures)) { 12427 // Only monitor this failure once because there tends to be a lot of the 12428 // same error. 12429 loggedTypeFailures[error.message] = true; 12430 12431 var stack = getStack ? getStack() : ''; 12432 12433 printWarning( 12434 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') 12435 ); 12436 } 12437 } 12438 } 12439 } 12440 } 12441 12442 /** 12443 * Resets warning cache when testing. 12444 * 12445 * @private 12446 */ 12447 checkPropTypes.resetWarningCache = function () { 12448 if (process.env.NODE_ENV !== 'production') { 12449 loggedTypeFailures = {}; 12450 } 12451 } 12452 12453 module.exports = checkPropTypes; 12454 12455 /* WEBPACK VAR INJECTION */ 12456 }.call(exports, __webpack_require__(18))) 12457 12458 /***/ 12459 }), 12460 /* 201 */ 12461 /***/ (function (module, exports, __webpack_require__) { 12462 12463 "use strict"; 12464 /** 12465 * Copyright (c) 2013-present, Facebook, Inc. 12466 * 12467 * This source code is licensed under the MIT license found in the 12468 * LICENSE file in the root directory of this source tree. 12469 */ 12470 12471 12472 12473 var ReactPropTypesSecret = __webpack_require__(68); 12474 12475 function emptyFunction() { 12476 } 12477 12478 function emptyFunctionWithReset() { 12479 } 12480 12481 emptyFunctionWithReset.resetWarningCache = emptyFunction; 12482 12483 module.exports = function () { 12484 function shim(props, propName, componentName, location, propFullName, secret) { 12485 if (secret === ReactPropTypesSecret) { 12486 // It is still safe when called from React. 12487 return; 12488 } 12489 var err = new Error( 12490 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 12491 'Use PropTypes.checkPropTypes() to call them. ' + 12492 'Read more at http://fb.me/use-check-prop-types' 12493 ); 12494 err.name = 'Invariant Violation'; 12495 throw err; 12496 }; 12497 shim.isRequired = shim; 12498 12499 function getShim() { 12500 return shim; 12501 }; 12502 // Important! 12503 // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. 12504 var ReactPropTypes = { 12505 array: shim, 12506 bool: shim, 12507 func: shim, 12508 number: shim, 12509 object: shim, 12510 string: shim, 12511 symbol: shim, 12512 12513 any: shim, 12514 arrayOf: getShim, 12515 element: shim, 12516 elementType: shim, 12517 instanceOf: getShim, 12518 node: shim, 12519 objectOf: getShim, 12520 oneOf: getShim, 12521 oneOfType: getShim, 12522 shape: getShim, 12523 exact: getShim, 12524 12525 checkPropTypes: emptyFunctionWithReset, 12526 resetWarningCache: emptyFunction 12527 }; 12528 12529 ReactPropTypes.PropTypes = ReactPropTypes; 12530 12531 return ReactPropTypes; 12532 }; 12533 12534 12535 /***/ 12536 }), 12537 /* 202 */ 12538 /***/ (function (module, exports, __webpack_require__) { 12539 12540 !function () { 12541 'use strict'; 12542 12543 function VNode() { 12544 } 12545 12546 function h(nodeName, attributes) { 12547 var lastSimple, child, simple, i, children = EMPTY_CHILDREN; 12548 for (i = arguments.length; i-- > 2;) stack.push(arguments[i]); 12549 if (attributes && null != attributes.children) { 12550 if (!stack.length) stack.push(attributes.children); 12551 delete attributes.children; 12552 } 12553 while (stack.length) if ((child = stack.pop()) && void 0 !== child.pop) for (i = child.length; i--;) stack.push(child[i]); else { 12554 if (child === !0 || child === !1) child = null; 12555 if (simple = 'function' != typeof nodeName) if (null == child) child = ''; else if ('number' == typeof child) child = String(child); else if ('string' != typeof child) simple = !1; 12556 if (simple && lastSimple) children[children.length - 1] += child; else if (children === EMPTY_CHILDREN) children = [child]; else children.push(child); 12557 lastSimple = simple; 12558 } 12559 var p = new VNode(); 12560 p.nodeName = nodeName; 12561 p.children = children; 12562 p.attributes = null == attributes ? void 0 : attributes; 12563 p.key = null == attributes ? void 0 : attributes.key; 12564 if (void 0 !== options.vnode) options.vnode(p); 12565 return p; 12566 } 12567 12568 function extend(obj, props) { 12569 for (var i in props) obj[i] = props[i]; 12570 return obj; 12571 } 12572 12573 function cloneElement(vnode, props) { 12574 return h(vnode.nodeName, extend(extend({}, vnode.attributes), props), arguments.length > 2 ? [].slice.call(arguments, 2) : vnode.children); 12575 } 12576 12577 function enqueueRender(component) { 12578 if (!component.__d && (component.__d = !0) && 1 == items.push(component)) (options.debounceRendering || setTimeout)(rerender); 12579 } 12580 12581 function rerender() { 12582 var p, list = items; 12583 items = []; 12584 while (p = list.pop()) if (p.__d) renderComponent(p); 12585 } 12586 12587 function isSameNodeType(node, vnode, hydrating) { 12588 if ('string' == typeof vnode || 'number' == typeof vnode) return void 0 !== node.splitText; 12589 if ('string' == typeof vnode.nodeName) return !node._componentConstructor && isNamedNode(node, vnode.nodeName); else return hydrating || node._componentConstructor === vnode.nodeName; 12590 } 12591 12592 function isNamedNode(node, nodeName) { 12593 return node.__n === nodeName || node.nodeName.toLowerCase() === nodeName.toLowerCase(); 12594 } 12595 12596 function getNodeProps(vnode) { 12597 var props = extend({}, vnode.attributes); 12598 props.children = vnode.children; 12599 var defaultProps = vnode.nodeName.defaultProps; 12600 if (void 0 !== defaultProps) for (var i in defaultProps) if (void 0 === props[i]) props[i] = defaultProps[i]; 12601 return props; 12602 } 12603 12604 function createNode(nodeName, isSvg) { 12605 var node = isSvg ? document.createElementNS('http://www.w3.org/2000/svg', nodeName) : document.createElement(nodeName); 12606 node.__n = nodeName; 12607 return node; 12608 } 12609 12610 function removeNode(node) { 12611 if (node.parentNode) node.parentNode.removeChild(node); 12612 } 12613 12614 function setAccessor(node, name, old, value, isSvg) { 12615 if ('className' === name) name = 'class'; 12616 if ('key' === name) ; else if ('ref' === name) { 12617 if (old) old(null); 12618 if (value) value(node); 12619 } else if ('class' === name && !isSvg) node.className = value || ''; else if ('style' === name) { 12620 if (!value || 'string' == typeof value || 'string' == typeof old) node.style.cssText = value || ''; 12621 if (value && 'object' == typeof value) { 12622 if ('string' != typeof old) for (var i in old) if (!(i in value)) node.style[i] = ''; 12623 for (var i in value) node.style[i] = 'number' == typeof value[i] && IS_NON_DIMENSIONAL.test(i) === !1 ? value[i] + 'px' : value[i]; 12624 } 12625 } else if ('dangerouslySetInnerHTML' === name) { 12626 if (value) node.innerHTML = value.__html || ''; 12627 } else if ('o' == name[0] && 'n' == name[1]) { 12628 var useCapture = name !== (name = name.replace(/Capture$/, '')); 12629 name = name.toLowerCase().substring(2); 12630 if (value) { 12631 if (!old) node.addEventListener(name, eventProxy, useCapture); 12632 } else node.removeEventListener(name, eventProxy, useCapture); 12633 (node.__l || (node.__l = {}))[name] = value; 12634 } else if ('list' !== name && 'type' !== name && !isSvg && name in node) { 12635 setProperty(node, name, null == value ? '' : value); 12636 if (null == value || value === !1) node.removeAttribute(name); 12637 } else { 12638 var ns = isSvg && name !== (name = name.replace(/^xlink\:?/, '')); 12639 if (null == value || value === !1) if (ns) node.removeAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase()); else node.removeAttribute(name); else if ('function' != typeof value) if (ns) node.setAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase(), value); else node.setAttribute(name, value); 12640 } 12641 } 12642 12643 function setProperty(node, name, value) { 12644 try { 12645 node[name] = value; 12646 } catch (e) { 12647 } 12648 } 12649 12650 function eventProxy(e) { 12651 return this.__l[e.type](options.event && options.event(e) || e); 12652 } 12653 12654 function flushMounts() { 12655 var c; 12656 while (c = mounts.pop()) { 12657 if (options.afterMount) options.afterMount(c); 12658 if (c.componentDidMount) c.componentDidMount(); 12659 } 12660 } 12661 12662 function diff(dom, vnode, context, mountAll, parent, componentRoot) { 12663 if (!diffLevel++) { 12664 isSvgMode = null != parent && void 0 !== parent.ownerSVGElement; 12665 hydrating = null != dom && !('__preactattr_' in dom); 12666 } 12667 var ret = idiff(dom, vnode, context, mountAll, componentRoot); 12668 if (parent && ret.parentNode !== parent) parent.appendChild(ret); 12669 if (!--diffLevel) { 12670 hydrating = !1; 12671 if (!componentRoot) flushMounts(); 12672 } 12673 return ret; 12674 } 12675 12676 function idiff(dom, vnode, context, mountAll, componentRoot) { 12677 var out = dom, prevSvgMode = isSvgMode; 12678 if (null == vnode) vnode = ''; 12679 if ('string' == typeof vnode) { 12680 if (dom && void 0 !== dom.splitText && dom.parentNode && (!dom._component || componentRoot)) { 12681 if (dom.nodeValue != vnode) dom.nodeValue = vnode; 12682 } else { 12683 out = document.createTextNode(vnode); 12684 if (dom) { 12685 if (dom.parentNode) dom.parentNode.replaceChild(out, dom); 12686 recollectNodeTree(dom, !0); 12687 } 12688 } 12689 out.__preactattr_ = !0; 12690 return out; 12691 } 12692 if ('function' == typeof vnode.nodeName) return buildComponentFromVNode(dom, vnode, context, mountAll); 12693 isSvgMode = 'svg' === vnode.nodeName ? !0 : 'foreignObject' === vnode.nodeName ? !1 : isSvgMode; 12694 if (!dom || !isNamedNode(dom, String(vnode.nodeName))) { 12695 out = createNode(String(vnode.nodeName), isSvgMode); 12696 if (dom) { 12697 while (dom.firstChild) out.appendChild(dom.firstChild); 12698 if (dom.parentNode) dom.parentNode.replaceChild(out, dom); 12699 recollectNodeTree(dom, !0); 12700 } 12701 } 12702 var fc = out.firstChild, props = out.__preactattr_ || (out.__preactattr_ = {}), 12703 vchildren = vnode.children; 12704 if (!hydrating && vchildren && 1 === vchildren.length && 'string' == typeof vchildren[0] && null != fc && void 0 !== fc.splitText && null == fc.nextSibling) { 12705 if (fc.nodeValue != vchildren[0]) fc.nodeValue = vchildren[0]; 12706 } else if (vchildren && vchildren.length || null != fc) innerDiffNode(out, vchildren, context, mountAll, hydrating || null != props.dangerouslySetInnerHTML); 12707 diffAttributes(out, vnode.attributes, props); 12708 isSvgMode = prevSvgMode; 12709 return out; 12710 } 12711 12712 function innerDiffNode(dom, vchildren, context, mountAll, isHydrating) { 12713 var j, c, vchild, child, originalChildren = dom.childNodes, children = [], keyed = {}, 12714 keyedLen = 0, min = 0, len = originalChildren.length, childrenLen = 0, 12715 vlen = vchildren ? vchildren.length : 0; 12716 if (0 !== len) for (var i = 0; i < len; i++) { 12717 var _child = originalChildren[i], props = _child.__preactattr_, 12718 key = vlen && props ? _child._component ? _child._component.__k : props.key : null; 12719 if (null != key) { 12720 keyedLen++; 12721 keyed[key] = _child; 12722 } else if (props || (void 0 !== _child.splitText ? isHydrating ? _child.nodeValue.trim() : !0 : isHydrating)) children[childrenLen++] = _child; 12723 } 12724 if (0 !== vlen) for (var i = 0; i < vlen; i++) { 12725 vchild = vchildren[i]; 12726 child = null; 12727 var key = vchild.key; 12728 if (null != key) { 12729 if (keyedLen && void 0 !== keyed[key]) { 12730 child = keyed[key]; 12731 keyed[key] = void 0; 12732 keyedLen--; 12733 } 12734 } else if (!child && min < childrenLen) for (j = min; j < childrenLen; j++) if (void 0 !== children[j] && isSameNodeType(c = children[j], vchild, isHydrating)) { 12735 child = c; 12736 children[j] = void 0; 12737 if (j === childrenLen - 1) childrenLen--; 12738 if (j === min) min++; 12739 break; 12740 } 12741 child = idiff(child, vchild, context, mountAll); 12742 if (child && child !== dom) if (i >= len) dom.appendChild(child); else if (child !== originalChildren[i]) if (child === originalChildren[i + 1]) removeNode(originalChildren[i]); else dom.insertBefore(child, originalChildren[i] || null); 12743 } 12744 if (keyedLen) for (var i in keyed) if (void 0 !== keyed[i]) recollectNodeTree(keyed[i], !1); 12745 while (min <= childrenLen) if (void 0 !== (child = children[childrenLen--])) recollectNodeTree(child, !1); 12746 } 12747 12748 function recollectNodeTree(node, unmountOnly) { 12749 var component = node._component; 12750 if (component) unmountComponent(component); else { 12751 if (null != node.__preactattr_ && node.__preactattr_.ref) node.__preactattr_.ref(null); 12752 if (unmountOnly === !1 || null == node.__preactattr_) removeNode(node); 12753 removeChildren(node); 12754 } 12755 } 12756 12757 function removeChildren(node) { 12758 node = node.lastChild; 12759 while (node) { 12760 var next = node.previousSibling; 12761 recollectNodeTree(node, !0); 12762 node = next; 12763 } 12764 } 12765 12766 function diffAttributes(dom, attrs, old) { 12767 var name; 12768 for (name in old) if ((!attrs || null == attrs[name]) && null != old[name]) setAccessor(dom, name, old[name], old[name] = void 0, isSvgMode); 12769 for (name in attrs) if (!('children' === name || 'innerHTML' === name || name in old && attrs[name] === ('value' === name || 'checked' === name ? dom[name] : old[name]))) setAccessor(dom, name, old[name], old[name] = attrs[name], isSvgMode); 12770 } 12771 12772 function collectComponent(component) { 12773 var name = component.constructor.name; 12774 (components[name] || (components[name] = [])).push(component); 12775 } 12776 12777 function createComponent(Ctor, props, context) { 12778 var inst, list = components[Ctor.name]; 12779 if (Ctor.prototype && Ctor.prototype.render) { 12780 inst = new Ctor(props, context); 12781 Component.call(inst, props, context); 12782 } else { 12783 inst = new Component(props, context); 12784 inst.constructor = Ctor; 12785 inst.render = doRender; 12786 } 12787 if (list) for (var i = list.length; i--;) if (list[i].constructor === Ctor) { 12788 inst.__b = list[i].__b; 12789 list.splice(i, 1); 12790 break; 12791 } 12792 return inst; 12793 } 12794 12795 function doRender(props, state, context) { 12796 return this.constructor(props, context); 12797 } 12798 12799 function setComponentProps(component, props, opts, context, mountAll) { 12800 if (!component.__x) { 12801 component.__x = !0; 12802 if (component.__r = props.ref) delete props.ref; 12803 if (component.__k = props.key) delete props.key; 12804 if (!component.base || mountAll) { 12805 if (component.componentWillMount) component.componentWillMount(); 12806 } else if (component.componentWillReceiveProps) component.componentWillReceiveProps(props, context); 12807 if (context && context !== component.context) { 12808 if (!component.__c) component.__c = component.context; 12809 component.context = context; 12810 } 12811 if (!component.__p) component.__p = component.props; 12812 component.props = props; 12813 component.__x = !1; 12814 if (0 !== opts) if (1 === opts || options.syncComponentUpdates !== !1 || !component.base) renderComponent(component, 1, mountAll); else enqueueRender(component); 12815 if (component.__r) component.__r(component); 12816 } 12817 } 12818 12819 function renderComponent(component, opts, mountAll, isChild) { 12820 if (!component.__x) { 12821 var rendered, inst, cbase, props = component.props, state = component.state, 12822 context = component.context, previousProps = component.__p || props, 12823 previousState = component.__s || state, previousContext = component.__c || context, 12824 isUpdate = component.base, nextBase = component.__b, initialBase = isUpdate || nextBase, 12825 initialChildComponent = component._component, skip = !1; 12826 if (isUpdate) { 12827 component.props = previousProps; 12828 component.state = previousState; 12829 component.context = previousContext; 12830 if (2 !== opts && component.shouldComponentUpdate && component.shouldComponentUpdate(props, state, context) === !1) skip = !0; else if (component.componentWillUpdate) component.componentWillUpdate(props, state, context); 12831 component.props = props; 12832 component.state = state; 12833 component.context = context; 12834 } 12835 component.__p = component.__s = component.__c = component.__b = null; 12836 component.__d = !1; 12837 if (!skip) { 12838 rendered = component.render(props, state, context); 12839 if (component.getChildContext) context = extend(extend({}, context), component.getChildContext()); 12840 var toUnmount, base, childComponent = rendered && rendered.nodeName; 12841 if ('function' == typeof childComponent) { 12842 var childProps = getNodeProps(rendered); 12843 inst = initialChildComponent; 12844 if (inst && inst.constructor === childComponent && childProps.key == inst.__k) setComponentProps(inst, childProps, 1, context, !1); else { 12845 toUnmount = inst; 12846 component._component = inst = createComponent(childComponent, childProps, context); 12847 inst.__b = inst.__b || nextBase; 12848 inst.__u = component; 12849 setComponentProps(inst, childProps, 0, context, !1); 12850 renderComponent(inst, 1, mountAll, !0); 12851 } 12852 base = inst.base; 12853 } else { 12854 cbase = initialBase; 12855 toUnmount = initialChildComponent; 12856 if (toUnmount) cbase = component._component = null; 12857 if (initialBase || 1 === opts) { 12858 if (cbase) cbase._component = null; 12859 base = diff(cbase, rendered, context, mountAll || !isUpdate, initialBase && initialBase.parentNode, !0); 12860 } 12861 } 12862 if (initialBase && base !== initialBase && inst !== initialChildComponent) { 12863 var baseParent = initialBase.parentNode; 12864 if (baseParent && base !== baseParent) { 12865 baseParent.replaceChild(base, initialBase); 12866 if (!toUnmount) { 12867 initialBase._component = null; 12868 recollectNodeTree(initialBase, !1); 12869 } 12870 } 12871 } 12872 if (toUnmount) unmountComponent(toUnmount); 12873 component.base = base; 12874 if (base && !isChild) { 12875 var componentRef = component, t = component; 12876 while (t = t.__u) (componentRef = t).base = base; 12877 base._component = componentRef; 12878 base._componentConstructor = componentRef.constructor; 12879 } 12880 } 12881 if (!isUpdate || mountAll) mounts.unshift(component); else if (!skip) { 12882 flushMounts(); 12883 if (component.componentDidUpdate) component.componentDidUpdate(previousProps, previousState, previousContext); 12884 if (options.afterUpdate) options.afterUpdate(component); 12885 } 12886 if (null != component.__h) while (component.__h.length) component.__h.pop().call(component); 12887 if (!diffLevel && !isChild) flushMounts(); 12888 } 12889 } 12890 12891 function buildComponentFromVNode(dom, vnode, context, mountAll) { 12892 var c = dom && dom._component, originalComponent = c, oldDom = dom, 12893 isDirectOwner = c && dom._componentConstructor === vnode.nodeName, isOwner = isDirectOwner, 12894 props = getNodeProps(vnode); 12895 while (c && !isOwner && (c = c.__u)) isOwner = c.constructor === vnode.nodeName; 12896 if (c && isOwner && (!mountAll || c._component)) { 12897 setComponentProps(c, props, 3, context, mountAll); 12898 dom = c.base; 12899 } else { 12900 if (originalComponent && !isDirectOwner) { 12901 unmountComponent(originalComponent); 12902 dom = oldDom = null; 12903 } 12904 c = createComponent(vnode.nodeName, props, context); 12905 if (dom && !c.__b) { 12906 c.__b = dom; 12907 oldDom = null; 12908 } 12909 setComponentProps(c, props, 1, context, mountAll); 12910 dom = c.base; 12911 if (oldDom && dom !== oldDom) { 12912 oldDom._component = null; 12913 recollectNodeTree(oldDom, !1); 12914 } 12915 } 12916 return dom; 12917 } 12918 12919 function unmountComponent(component) { 12920 if (options.beforeUnmount) options.beforeUnmount(component); 12921 var base = component.base; 12922 component.__x = !0; 12923 if (component.componentWillUnmount) component.componentWillUnmount(); 12924 component.base = null; 12925 var inner = component._component; 12926 if (inner) unmountComponent(inner); else if (base) { 12927 if (base.__preactattr_ && base.__preactattr_.ref) base.__preactattr_.ref(null); 12928 component.__b = base; 12929 removeNode(base); 12930 collectComponent(component); 12931 removeChildren(base); 12932 } 12933 if (component.__r) component.__r(null); 12934 } 12935 12936 function Component(props, context) { 12937 this.__d = !0; 12938 this.context = context; 12939 this.props = props; 12940 this.state = this.state || {}; 12941 } 12942 12943 function render(vnode, parent, merge) { 12944 return diff(merge, vnode, {}, !1, parent, !1); 12945 } 12946 12947 var options = {}; 12948 var stack = []; 12949 var EMPTY_CHILDREN = []; 12950 var IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i; 12951 var items = []; 12952 var mounts = []; 12953 var diffLevel = 0; 12954 var isSvgMode = !1; 12955 var hydrating = !1; 12956 var components = {}; 12957 extend(Component.prototype, { 12958 setState: function (state, callback) { 12959 var s = this.state; 12960 if (!this.__s) this.__s = extend({}, s); 12961 extend(s, 'function' == typeof state ? state(s, this.props) : state); 12962 if (callback) (this.__h = this.__h || []).push(callback); 12963 enqueueRender(this); 12964 },
12965 forceUpdate: function (callback) { 12966 if (callback) (this.__h = this.__h || []).push(callback); 12967 renderComponent(this, 2); 12968 }, 12969 render: function () { 12970 } 12971 }); 12972 var preact = { 12973 h: h, 12974 createElement: h, 12975 cloneElement: cloneElement, 12976 Component: Component, 12977 render: render, 12978 rerender: rerender, 12979 options: options 12980 }; 12981 if (true) module.exports = preact; else self.preact = preact; 12982 }(); 12983//# sourceMappingURL=preact.js.map 12984 12985 /***/ 12986 }), 12987 /* 203 */ 12988 /***/ (function (module, exports, __webpack_require__) { 12989 12990 "use strict"; 12991// This file can be required in Browserify and Node.js for automatic polyfill
vendor: 12,093 bytes, lines 12992-13274
12992// To use it: require('es6-promise/auto'); 12993 12994 module.exports = __webpack_require__(204).polyfill(); 12995 12996 12997 /***/ 12998 }), 12999 /* 204 */ 13000 /***/ (function (module, exports, __webpack_require__) { 13001 13002 /* WEBPACK VAR INJECTION */ 13003 (function (process, global) { 13004 var require;/*! 13005 * @overview es6-promise - a tiny implementation of Promises/A+. 13006 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) 13007 * @license Licensed under MIT license 13008 * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE 13009 * @version 4.1.1 13010 */ 13011 13012 (function (global, factory) { 13013 true ? module.exports = factory() : 13014 typeof define === 'function' && define.amd ? define(factory) : 13015 (global.ES6Promise = factory()); 13016 }(this, (function () { 13017 'use strict'; 13018 13019 function objectOrFunction(x) { 13020 var type = typeof x; 13021 return x !== null && (type === 'object' || type === 'function'); 13022 } 13023 13024 function isFunction(x) { 13025 return typeof x === 'function'; 13026 } 13027 13028 var _isArray = undefined; 13029 if (Array.isArray) { 13030 _isArray = Array.isArray; 13031 } else { 13032 _isArray = function (x) { 13033 return Object.prototype.toString.call(x) === '[object Array]'; 13034 }; 13035 } 13036 13037 var isArray = _isArray; 13038 13039 var len = 0; 13040 var vertxNext = undefined; 13041 var customSchedulerFn = undefined; 13042 13043 var asap = function asap(callback, arg) { 13044 queue[len] = callback; 13045 queue[len + 1] = arg; 13046 len += 2; 13047 if (len === 2) { 13048 // If len is 2, that means that we need to schedule an async flush. 13049 // If additional callbacks are queued before the queue is flushed, they 13050 // will be processed by this flush that we are scheduling. 13051 if (customSchedulerFn) { 13052 customSchedulerFn(flush); 13053 } else { 13054 scheduleFlush(); 13055 } 13056 } 13057 }; 13058 13059 function setScheduler(scheduleFn) { 13060 customSchedulerFn = scheduleFn; 13061 } 13062 13063 function setAsap(asapFn) { 13064 asap = asapFn; 13065 } 13066 13067 var browserWindow = typeof window !== 'undefined' ? window : undefined; 13068 var browserGlobal = browserWindow || {}; 13069 var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver; 13070 var isNode = typeof self === 'undefined' && typeof process !== 'undefined' && ({}).toString.call(process) === '[object process]'; 13071 13072// test for web worker but not in IE10 13073 var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined'; 13074 13075// node 13076 function useNextTick() { 13077 // node version 0.10.x displays a deprecation warning when nextTick is used recursively 13078 // see https://github.com/cujojs/when/issues/410 for details 13079 return function () { 13080 return process.nextTick(flush); 13081 }; 13082 } 13083 13084// vertx 13085 function useVertxTimer() { 13086 if (typeof vertxNext !== 'undefined') { 13087 return function () { 13088 vertxNext(flush); 13089 }; 13090 } 13091 13092 return useSetTimeout(); 13093 } 13094 13095 function useMutationObserver() { 13096 var iterations = 0; 13097 var observer = new BrowserMutationObserver(flush); 13098 var node = document.createTextNode(''); 13099 observer.observe(node, {characterData: true}); 13100 13101 return function () { 13102 node.data = iterations = ++iterations % 2; 13103 }; 13104 } 13105 13106// web worker 13107 function useMessageChannel() { 13108 var channel = new MessageChannel(); 13109 channel.port1.onmessage = flush; 13110 return function () { 13111 return channel.port2.postMessage(0); 13112 }; 13113 } 13114 13115 function useSetTimeout() { 13116 // Store setTimeout reference so es6-promise will be unaffected by 13117 // other code modifying setTimeout (like sinon.useFakeTimers()) 13118 var globalSetTimeout = setTimeout; 13119 return function () { 13120 return globalSetTimeout(flush, 1); 13121 }; 13122 } 13123 13124 var queue = new Array(1000); 13125 13126 function flush() { 13127 for (var i = 0; i < len; i += 2) { 13128 var callback = queue[i]; 13129 var arg = queue[i + 1]; 13130 13131 callback(arg); 13132 13133 queue[i] = undefined; 13134 queue[i + 1] = undefined; 13135 } 13136 13137 len = 0; 13138 } 13139 13140 function attemptVertx() { 13141 try { 13142 var r = require; 13143 var vertx = __webpack_require__(206); 13144 vertxNext = vertx.runOnLoop || vertx.runOnContext; 13145 return useVertxTimer(); 13146 } catch (e) { 13147 return useSetTimeout(); 13148 } 13149 } 13150 13151 var scheduleFlush = undefined; 13152// Decide what async method to use to triggering processing of queued callbacks: 13153 if (isNode) { 13154 scheduleFlush = useNextTick(); 13155 } else if (BrowserMutationObserver) { 13156 scheduleFlush = useMutationObserver(); 13157 } else if (isWorker) { 13158 scheduleFlush = useMessageChannel(); 13159 } else if (browserWindow === undefined && "function" === 'function') { 13160 scheduleFlush = attemptVertx(); 13161 } else { 13162 scheduleFlush = useSetTimeout(); 13163 } 13164 13165 function then(onFulfillment, onRejection) { 13166 var _arguments = arguments; 13167 13168 var parent = this; 13169 13170 var child = new this.constructor(noop); 13171 13172 if (child[PROMISE_ID] === undefined) { 13173 makePromise(child); 13174 } 13175 13176 var _state = parent._state; 13177 13178 if (_state) { 13179 (function () { 13180 var callback = _arguments[_state - 1]; 13181 asap(function () { 13182 return invokeCallback(_state, child, callback, parent._result); 13183 }); 13184 })(); 13185 } else { 13186 subscribe(parent, child, onFulfillment, onRejection); 13187 } 13188 13189 return child; 13190 } 13191 13192 /** 13193 `Promise.resolve` returns a promise that will become resolved with the 13194 passed `value`. It is shorthand for the following: 13195 13196 ```javascript 13197 let promise = new Promise(function(resolve, reject){ 13198 resolve(1); 13199 }); 13200 13201 promise.then(function(value){ 13202 // value === 1 13203 }); 13204 ``` 13205 13206 Instead of writing the above, your code now simply becomes the following: 13207 13208 ```javascript 13209 let promise = Promise.resolve(1); 13210 13211 promise.then(function(value){ 13212 // value === 1 13213 }); 13214 ``` 13215 13216 @method resolve 13217 @static 13218 @param {Any} value value that the returned promise will be resolved with 13219 Useful for tooling. 13220 @return {Promise} a promise that will become fulfilled with the given 13221 `value` 13222 */ 13223 function resolve$1(object) { 13224 /*jshint validthis:true */ 13225 var Constructor = this; 13226 13227 if (object && typeof object === 'object' && object.constructor === Constructor) { 13228 return object; 13229 } 13230 13231 var promise = new Constructor(noop); 13232 resolve(promise, object); 13233 return promise; 13234 } 13235 13236 var PROMISE_ID = Math.random().toString(36).substring(16); 13237 13238 function noop() { 13239 } 13240 13241 var PENDING = void 0; 13242 var FULFILLED = 1; 13243 var REJECTED = 2; 13244 13245 var GET_THEN_ERROR = new ErrorObject(); 13246 13247 function selfFulfillment() { 13248 return new TypeError("You cannot resolve a promise with itself"); 13249 } 13250 13251 function cannotReturnOwn() { 13252 return new TypeError('A promises callback cannot return that same promise.'); 13253 } 13254 13255 function getThen(promise) { 13256 try { 13257 return promise.then; 13258 } catch (error) { 13259 GET_THEN_ERROR.error = error; 13260 return GET_THEN_ERROR; 13261 } 13262 } 13263 13264 function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) { 13265 try { 13266 then$$1.call(value, fulfillmentHandler, rejectionHandler); 13267 } catch (e) { 13268 return e; 13269 } 13270 } 13271 13272 function handleForeignThenable(promise, thenable, then$$1) { 13273 asap(function (promise) { 13274 var sealed = false;
vendor: 3,614 bytes, lines 13275-13343
13275 var error = tryThen(then$$1, thenable, function (value) { 13276 if (sealed) { 13277 return; 13278 } 13279 sealed = true; 13280 if (thenable !== value) { 13281 resolve(promise, value); 13282 } else { 13283 fulfill(promise, value); 13284 } 13285 }, function (reason) { 13286 if (sealed) { 13287 return; 13288 } 13289 sealed = true; 13290 13291 reject(promise, reason); 13292 }, 'Settle: ' + (promise._label || ' unknown promise')); 13293 13294 if (!sealed && error) { 13295 sealed = true; 13296 reject(promise, error); 13297 } 13298 }, promise); 13299 } 13300 13301 function handleOwnThenable(promise, thenable) { 13302 if (thenable._state === FULFILLED) { 13303 fulfill(promise, thenable._result); 13304 } else if (thenable._state === REJECTED) { 13305 reject(promise, thenable._result); 13306 } else { 13307 subscribe(thenable, undefined, function (value) { 13308 return resolve(promise, value); 13309 }, function (reason) { 13310 return reject(promise, reason); 13311 }); 13312 } 13313 } 13314 13315 function handleMaybeThenable(promise, maybeThenable, then$$1) { 13316 if (maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1) { 13317 handleOwnThenable(promise, maybeThenable); 13318 } else { 13319 if (then$$1 === GET_THEN_ERROR) { 13320 reject(promise, GET_THEN_ERROR.error); 13321 GET_THEN_ERROR.error = null; 13322 } else if (then$$1 === undefined) { 13323 fulfill(promise, maybeThenable); 13324 } else if (isFunction(then$$1)) { 13325 handleForeignThenable(promise, maybeThenable, then$$1); 13326 } else { 13327 fulfill(promise, maybeThenable); 13328 } 13329 } 13330 } 13331 13332 function resolve(promise, value) { 13333 if (promise === value) { 13334 reject(promise, selfFulfillment()); 13335 } else if (objectOrFunction(value)) { 13336 handleMaybeThenable(promise, value, getThen(value)); 13337 } else { 13338 fulfill(promise, value); 13339 } 13340 } 13341 13342 function publishRejection(promise) { 13343 if (promise._onerror) {
vendor: 14,598 bytes, lines 13344-13683
13344 promise._onerror(promise._result); 13345 } 13346 13347 publish(promise); 13348 } 13349 13350 function fulfill(promise, value) { 13351 if (promise._state !== PENDING) { 13352 return; 13353 } 13354 13355 promise._result = value; 13356 promise._state = FULFILLED; 13357 13358 if (promise._subscribers.length !== 0) { 13359 asap(publish, promise); 13360 } 13361 } 13362 13363 function reject(promise, reason) { 13364 if (promise._state !== PENDING) { 13365 return; 13366 } 13367 promise._state = REJECTED; 13368 promise._result = reason; 13369 13370 asap(publishRejection, promise); 13371 } 13372 13373 function subscribe(parent, child, onFulfillment, onRejection) { 13374 var _subscribers = parent._subscribers; 13375 var length = _subscribers.length; 13376 13377 parent._onerror = null; 13378 13379 _subscribers[length] = child; 13380 _subscribers[length + FULFILLED] = onFulfillment; 13381 _subscribers[length + REJECTED] = onRejection; 13382 13383 if (length === 0 && parent._state) { 13384 asap(publish, parent); 13385 } 13386 } 13387 13388 function publish(promise) { 13389 var subscribers = promise._subscribers; 13390 var settled = promise._state; 13391 13392 if (subscribers.length === 0) { 13393 return; 13394 } 13395 13396 var child = undefined, 13397 callback = undefined, 13398 detail = promise._result; 13399 13400 for (var i = 0; i < subscribers.length; i += 3) { 13401 child = subscribers[i]; 13402 callback = subscribers[i + settled]; 13403 13404 if (child) { 13405 invokeCallback(settled, child, callback, detail); 13406 } else { 13407 callback(detail); 13408 } 13409 } 13410 13411 promise._subscribers.length = 0; 13412 } 13413 13414 function ErrorObject() { 13415 this.error = null; 13416 } 13417 13418 var TRY_CATCH_ERROR = new ErrorObject(); 13419 13420 function tryCatch(callback, detail) { 13421 try { 13422 return callback(detail); 13423 } catch (e) { 13424 TRY_CATCH_ERROR.error = e; 13425 return TRY_CATCH_ERROR; 13426 } 13427 } 13428 13429 function invokeCallback(settled, promise, callback, detail) { 13430 var hasCallback = isFunction(callback), 13431 value = undefined, 13432 error = undefined, 13433 succeeded = undefined, 13434 failed = undefined; 13435 13436 if (hasCallback) { 13437 value = tryCatch(callback, detail); 13438 13439 if (value === TRY_CATCH_ERROR) { 13440 failed = true; 13441 error = value.error; 13442 value.error = null; 13443 } else { 13444 succeeded = true; 13445 } 13446 13447 if (promise === value) { 13448 reject(promise, cannotReturnOwn()); 13449 return; 13450 } 13451 } else { 13452 value = detail; 13453 succeeded = true; 13454 } 13455 13456 if (promise._state !== PENDING) { 13457 // noop 13458 } else if (hasCallback && succeeded) { 13459 resolve(promise, value); 13460 } else if (failed) { 13461 reject(promise, error); 13462 } else if (settled === FULFILLED) { 13463 fulfill(promise, value); 13464 } else if (settled === REJECTED) { 13465 reject(promise, value); 13466 } 13467 } 13468 13469 function initializePromise(promise, resolver) { 13470 try { 13471 resolver(function resolvePromise(value) { 13472 resolve(promise, value); 13473 }, function rejectPromise(reason) { 13474 reject(promise, reason); 13475 }); 13476 } catch (e) { 13477 reject(promise, e); 13478 } 13479 } 13480 13481 var id = 0; 13482 13483 function nextId() { 13484 return id++; 13485 } 13486 13487 function makePromise(promise) { 13488 promise[PROMISE_ID] = id++; 13489 promise._state = undefined; 13490 promise._result = undefined; 13491 promise._subscribers = []; 13492 } 13493 13494 function Enumerator$1(Constructor, input) { 13495 this._instanceConstructor = Constructor; 13496 this.promise = new Constructor(noop); 13497 13498 if (!this.promise[PROMISE_ID]) { 13499 makePromise(this.promise); 13500 } 13501 13502 if (isArray(input)) { 13503 this.length = input.length; 13504 this._remaining = input.length; 13505 13506 this._result = new Array(this.length); 13507 13508 if (this.length === 0) { 13509 fulfill(this.promise, this._result); 13510 } else { 13511 this.length = this.length || 0; 13512 this._enumerate(input); 13513 if (this._remaining === 0) { 13514 fulfill(this.promise, this._result); 13515 } 13516 } 13517 } else { 13518 reject(this.promise, validationError()); 13519 } 13520 } 13521 13522 function validationError() { 13523 return new Error('Array Methods must be provided an Array'); 13524 } 13525 13526 Enumerator$1.prototype._enumerate = function (input) { 13527 for (var i = 0; this._state === PENDING && i < input.length; i++) { 13528 this._eachEntry(input[i], i); 13529 } 13530 }; 13531 13532 Enumerator$1.prototype._eachEntry = function (entry, i) { 13533 var c = this._instanceConstructor; 13534 var resolve$$1 = c.resolve; 13535 13536 if (resolve$$1 === resolve$1) { 13537 var _then = getThen(entry); 13538 13539 if (_then === then && entry._state !== PENDING) { 13540 this._settledAt(entry._state, i, entry._result); 13541 } else if (typeof _then !== 'function') { 13542 this._remaining--; 13543 this._result[i] = entry; 13544 } else if (c === Promise$2) { 13545 var promise = new c(noop); 13546 handleMaybeThenable(promise, entry, _then); 13547 this._willSettleAt(promise, i); 13548 } else { 13549 this._willSettleAt(new c(function (resolve$$1) { 13550 return resolve$$1(entry); 13551 }), i); 13552 } 13553 } else { 13554 this._willSettleAt(resolve$$1(entry), i); 13555 } 13556 }; 13557 13558 Enumerator$1.prototype._settledAt = function (state, i, value) { 13559 var promise = this.promise; 13560 13561 if (promise._state === PENDING) { 13562 this._remaining--; 13563 13564 if (state === REJECTED) { 13565 reject(promise, value); 13566 } else { 13567 this._result[i] = value; 13568 } 13569 } 13570 13571 if (this._remaining === 0) { 13572 fulfill(promise, this._result); 13573 } 13574 }; 13575 13576 Enumerator$1.prototype._willSettleAt = function (promise, i) { 13577 var enumerator = this; 13578 13579 subscribe(promise, undefined, function (value) { 13580 return enumerator._settledAt(FULFILLED, i, value); 13581 }, function (reason) { 13582 return enumerator._settledAt(REJECTED, i, reason); 13583 }); 13584 }; 13585 13586 /** 13587 `Promise.all` accepts an array of promises, and returns a new promise which 13588 is fulfilled with an array of fulfillment values for the passed promises, or 13589 rejected with the reason of the first passed promise to be rejected. It casts all 13590 elements of the passed iterable to promises as it runs this algorithm. 13591 13592 Example: 13593 13594 ```javascript 13595 let promise1 = resolve(1); 13596 let promise2 = resolve(2); 13597 let promise3 = resolve(3); 13598 let promises = [ promise1, promise2, promise3 ]; 13599 13600 Promise.all(promises).then(function(array){ 13601 // The array here would be [ 1, 2, 3 ]; 13602 }); 13603 ``` 13604 13605 If any of the `promises` given to `all` are rejected, the first promise 13606 that is rejected will be given as an argument to the returned promises's 13607 rejection handler. For example: 13608 13609 Example: 13610 13611 ```javascript 13612 let promise1 = resolve(1); 13613 let promise2 = reject(new Error("2")); 13614 let promise3 = reject(new Error("3")); 13615 let promises = [ promise1, promise2, promise3 ]; 13616 13617 Promise.all(promises).then(function(array){ 13618 // Code here never runs because there are rejected promises! 13619 }, function(error) { 13620 // error.message === "2" 13621 }); 13622 ``` 13623 13624 @method all 13625 @static 13626 @param {Array} entries array of promises 13627 @param {String} label optional string for labeling the promise. 13628 Useful for tooling. 13629 @return {Promise} promise that is fulfilled when all `promises` have been 13630 fulfilled, or rejected if any of them become rejected. 13631 @static 13632 */ 13633 function all$1(entries) { 13634 return new Enumerator$1(this, entries).promise; 13635 } 13636 13637 /** 13638 `Promise.race` returns a new promise which is settled in the same way as the 13639 first passed promise to settle. 13640 13641 Example: 13642 13643 ```javascript 13644 let promise1 = new Promise(function(resolve, reject){ 13645 setTimeout(function(){ 13646 resolve('promise 1'); 13647 }, 200); 13648 }); 13649 13650 let promise2 = new Promise(function(resolve, reject){ 13651 setTimeout(function(){ 13652 resolve('promise 2'); 13653 }, 100); 13654 }); 13655 13656 Promise.race([promise1, promise2]).then(function(result){ 13657 // result === 'promise 2' because it was resolved before promise1 13658 // was resolved. 13659 }); 13660 ``` 13661 13662 `Promise.race` is deterministic in that only the state of the first 13663 settled promise matters. For example, even if other promises given to the 13664 `promises` array argument are resolved, but the first settled promise has 13665 become rejected before the other promises became fulfilled, the returned 13666 promise will become rejected: 13667 13668 ```javascript 13669 let promise1 = new Promise(function(resolve, reject){ 13670 setTimeout(function(){ 13671 resolve('promise 1'); 13672 }, 200); 13673 }); 13674 13675 let promise2 = new Promise(function(resolve, reject){ 13676 setTimeout(function(){ 13677 reject(new Error('promise 2')); 13678 }, 100); 13679 }); 13680 13681 Promise.race([promise1, promise2]).then(function(result){ 13682 // Code here never runs 13683 }, function(reason){
13684 // reason.message === 'promise 2' because promise 2 became rejected before 13685 // promise 1 became fulfilled 13686 }); 13687 ``` 13688 13689 An example real-world use case is implementing timeouts: 13690 13691 ```javascript 13692 Promise.race([ajax('foo.json'), timeout(5000)]) 13693 ``` 13694 13695 @method race 13696 @static 13697 @param {Array} promises array of promises to observe 13698 Useful for tooling. 13699 @return {Promise} a promise which settles in the same way as the first passed 13700 promise to settle. 13701 */ 13702 function race$1(entries) { 13703 /*jshint validthis:true */ 13704 var Constructor = this; 13705 13706 if (!isArray(entries)) { 13707 return new Constructor(function (_, reject) { 13708 return reject(new TypeError('You must pass an array to race.')); 13709 }); 13710 } else { 13711 return new Constructor(function (resolve, reject) { 13712 var length = entries.length; 13713 for (var i = 0; i < length; i++) { 13714 Constructor.resolve(entries[i]).then(resolve, reject); 13715 } 13716 }); 13717 } 13718 } 13719 13720 /** 13721 `Promise.reject` returns a promise rejected with the passed `reason`. 13722 It is shorthand for the following: 13723 13724 ```javascript 13725 let promise = new Promise(function(resolve, reject){ 13726 reject(new Error('WHOOPS')); 13727 }); 13728 13729 promise.then(function(value){ 13730 // Code here doesn't run because the promise is rejected! 13731 }, function(reason){ 13732 // reason.message === 'WHOOPS' 13733 }); 13734 ``` 13735 13736 Instead of writing the above, your code now simply becomes the following: 13737 13738 ```javascript 13739 let promise = Promise.reject(new Error('WHOOPS')); 13740 13741 promise.then(function(value){ 13742 // Code here doesn't run because the promise is rejected! 13743 }, function(reason){ 13744 // reason.message === 'WHOOPS' 13745 }); 13746 ``` 13747 13748 @method reject 13749 @static 13750 @param {Any} reason value that the returned promise will be rejected with. 13751 Useful for tooling. 13752 @return {Promise} a promise rejected with the given `reason`. 13753 */ 13754 function reject$1(reason) { 13755 /*jshint validthis:true */ 13756 var Constructor = this; 13757 var promise = new Constructor(noop); 13758 reject(promise, reason); 13759 return promise; 13760 } 13761 13762 function needsResolver() { 13763 throw new TypeError('You must pass a resolver function as the first argument to the promise constructor'); 13764 } 13765 13766 function needsNew() { 13767 throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
13767onstructor cannot be called as a function."); 13768 } 13769 13770 /** 13771 Promise objects represent the eventual result of an asynchronous operation. The 13772 primary way of interacting with a promise is through its `then` method, which 13773 registers callbacks to receive either a promise's eventual value or the reason 13774 why the promise cannot be fulfilled. 13775 13776 Terminology 13777 ----------- 13778 13779 - `promise` is an object or function with a `then` method whose behavior conforms to this specification. 13780 - `thenable` is an object or function that defines a `then` method. 13781 - `value` is any legal JavaScript value (including undefined, a thenable, or a promise). 13782 - `exception` is a value that is thrown using the throw statement. 13783 - `reason` is a value that indicates why a promise was rejected. 13784 - `settled` the final resting state of a promise, fulfilled or rejected. 13785 13786 A promise can be in one of three states: pending, fulfilled, or rejected. 13787 13788 Promises that are fulfilled have a fulfillment value and are in the fulfilled 13789 state. Promises that are rejected have a rejection reason and are in the 13790 rejected state. A fulfillment value is never a thenable. 13791 13792 Promises can also be said to *resolve* a value. If this value is also a 13793 promise, then the original promise's settled state will match the value's 13794 settled state. So a promise that *resolves* a promise that rejects will 13795 itself reject, and a promise that *resolves* a promise that fulfills will 13796 itself fulfill. 13797 13798 13799 Basic Usage: 13800 ------------ 13801 13802 ```js 13803 let promise = new Promise(function(resolve, reject) { 13804 // on success 13805 resolve(value); 13806 13807 // on failure 13808 reject(reason); 13809 }); 13810 13811 promise.then(function(value) { 13812 // on fulfillment 13813 }, function(reason) { 13814 // on rejection 13815 }); 13816 ``` 13817 13818 Advanced Usage: 13819 --------------- 13820 13821 Promises shine when abstracting away asynchronous interactions such as 13822 `XMLHttpRequest`s. 13823 13824 ```js 13825 function getJSON(url) { 13826 return new Promise(function(resolve, reject){ 13827 let xhr = new XMLHttpRequest(); 13828 13829 xhr.open('GET', url); 13830 xhr.onreadystatechange = handler; 13831 xhr.responseType = 'json'; 13832 xhr.setRequestHeader('Accept', 'application/json'); 13833 xhr.send(); 13834 13835 function handler() { 13836 if (this.readyState === this.DONE) { 13837 if (this.status === 200) { 13838 resolve(this.response); 13839 } else { 13840 reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']')); 13841 } 13842 } 13843 }; 13844 }); 13845 } 13846 13847 getJSON('/posts.json').then(function(json) { 13848 // on fulfillment 13849 }, function(reason) { 13850 // on rejection 13851 }); 13852 ``` 13853 13854 Unlike callbacks, promises are great composable primitives. 13855 13856 ```js 13857 Promise.all([ 13858 getJSON('/posts'), 13859 getJSON('/comments') 13860 ]).then(function(values){ 13861 values[0] // => postsJSON 13862 values[1] // => commentsJSON 13863 13864 return values; 13865 }); 13866 ``` 13867 13868 @class Promise 13869 @param {function} resolver 13870 Useful for tooling. 13871 @constructor 13872 */ 13873 function Promise$2(resolver) { 13874 this[PROMISE_ID] = nextId(); 13875 this._result = this._state = undefined; 13876 this._subscribers = []; 13877 13878 if (noop !== resolver) { 13879 typeof resolver !== 'function' && needsResolver(); 13880 this instanceof Promise$2 ? initializePromise(this, resolver) : needsNew(); 13881 } 13882 } 13883 13884 Promise$2.all = all$1; 13885 Promise$2.race = race$1; 13886 Promise$2.resolve = resolve$1; 13887 Promise$2.reject = reject$1; 13888 Promise$2._setScheduler = setScheduler; 13889 Promise$2._setAsap = setAsap; 13890 Promise$2._asap = asap; 13891 13892 Promise$2.prototype = { 13893 constructor: Promise$2, 13894 13895 /** 13896 The primary way of interacting with a promise is through its `then` method, 13897 which registers callbacks to receive either a promise's eventual value or the 13898 reason why the promise cannot be fulfilled. 13899 13900 ```js 13901 findUser().then(function(user){ 13902 // user is available 13903 }, function(reason){ 13904 // user is unavailable, and you are given the reason why 13905 }); 13906 ``` 13907 13908 Chaining 13909 -------- 13910 13911 The return value of `then` is itself a promise. This second, 'downstream' 13912 promise is resolved with the return value of the first promise's fulfillment 13913 or rejection handler, or rejected if the handler throws an exception. 13914 13915 ```js 13916 findUser().then(function (user) { 13917 return user.name; 13918 }, function (reason) { 13919 return 'default name'; 13920 }).then(function (userName) { 13921 // If `findUser` fulfilled, `userName` will be the user's name, otherwise it 13922 // will be `'default name'` 13923 }); 13924 13925 findUser().then(function (user) { 13926 throw new Error('Found user, but still unhappy'); 13927 }, function (reason) { 13928 throw new Error('`findUser` rejected and we're unhappy'); 13929 }).then(function (value) { 13930 // never reached 13931 }, function (reason) { 13932 // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'. 13933 // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'. 13934 }); 13935 ``` 13936 If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream. 13937 13938 ```js 13939 findUser().then(function (user) { 13940 throw new PedagogicalException('Upstream error'); 13941 }).then(function (value) { 13942 // never reached 13943 }).then(function (value) { 13944 // never reached 13945 }, function (reason) { 13946 // The `PedgagocialException` is propagated all the way down to here 13947 }); 13948 ``` 13949 13950 Assimilation 13951 ------------ 13952 13953 Sometimes the value you want to propagate to a downstream promise can only be 13954 retrieved asynchronously. This can be achieved by returning a promise in the 13955 fulfillment or rejection handler. The downstream promise will then be pending 13956 until the returned promise is settled. This is called *assimilation*. 13957 13958 ```js 13959 findUser().then(function (user) { 13960 return findCommentsByAuthor(user); 13961 }).then(function (comments) { 13962 // The user's comments are now available 13963 }); 13964 ``` 13965 13966 If the assimliated promise rejects, then the downstream promise will also reject. 13967 13968 ```js 13969 findUser().then(function (user) { 13970 return findCommentsByAuthor(user); 13971 }).then(function (comments) { 13972 // If `findCommentsByAuthor` fulfills, we'll have the value here 13973 }, function (reason) { 13974 // If `findCommentsByAuthor` rejects, we'll have the reason here 13975 }); 13976 ``` 13977
13978 Simple Example 13979 -------------- 13980 13981 Synchronous Example 13982 13983 ```javascript 13984 let result; 13985 13986 try { 13987 result = findResult(); 13988 // success 13989 } catch(reason) { 13990 // failure 13991 } 13992 ``` 13993 13994 Errback Example 13995 13996 ```js 13997 findResult(function(result, err){ 13998 if (err) { 13999 // failure 14000 } else { 14001 // success 14002 } 14003 }); 14004 ``` 14005 14006 Promise Example; 14007 14008 ```javascript 14009 findResult().then(function(result){ 14010 // success 14011 }, function(reason){ 14012 // failure 14013 }); 14014 ``` 14015 14016 Advanced Example 14017 -------------- 14018 14019 Synchronous Example 14020 14021 ```javascript 14022 let author, books; 14023 14024 try { 14025 author = findAuthor(); 14026 books = findBooksByAuthor(author); 14027 // success 14028 } catch(reason) { 14029 // failure 14030 } 14031 ``` 14032 14033 Errback Example 14034 14035 ```js 14036 14037 function foundBooks(books) { 14038 14039 } 14040 14041 function failure(reason) { 14042 14043 } 14044 14045 findAuthor(function(author, err){ 14046 if (err) { 14047 failure(err); 14048 // failure 14049 } else { 14050 try { 14051 findBoooksByAuthor(author, function(books, err) { 14052 if (err) { 14053 failure(err); 14054 } else { 14055 try { 14056 foundBooks(books); 14057 } catch(reason) { 14058 failure(reason); 14059 } 14060 } 14061 }); 14062 } catch(error) { 14063 failure(err); 14064 } 14065 // success 14066 } 14067 }); 14068 ``` 14069 14070 Promise Example; 14071 14072 ```javascript 14073 findAuthor(). 14074 then(findBooksByAuthor). 14075 then(function(books){ 14076 // found books 14077 }).catch(function(reason){ 14078 // something went wrong 14079 }); 14080 ``` 14081 14082 @method then 14083 @param {Function} onFulfilled 14084 @param {Function} onRejected 14085 Useful for tooling. 14086 @return {Promise} 14087 */ 14088 then: then, 14089 14090 /** 14091 `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same 14092 as the catch block of a try/catch statement. 14093 14094 ```js 14095 function findAuthor(){ 14096 throw new Error('couldn't find that author'); 14097 } 14098 14099 // synchronous 14100 try { 14101 findAuthor(); 14102 } catch(reason) { 14103 // something went wrong 14104 } 14105 14106 // async with promises 14107 findAuthor().catch(function(reason){ 14108 // something went wrong 14109 }); 14110 ``` 14111 14112 @method catch 14113 @param {Function} onRejection 14114 Useful for tooling. 14115 @return {Promise} 14116 */ 14117 'catch': function _catch(onRejection) { 14118 return this.then(null, onRejection); 14119 } 14120 }; 14121 14122 /*global self*/ 14123 function polyfill$1() { 14124 var local = undefined; 14125 14126 if (typeof global !== 'undefined') { 14127 local = global; 14128 } else if (typeof self !== 'undefined') { 14129 local = self; 14130 } else { 14131 try { 14132 local = Function('return this')(); 14133 } catch (e) { 14134 throw new Error('polyfill failed because global object is unavailable in this environment'); 14135 } 14136 } 14137 14138 var P = local.Promise; 14139 14140 if (P) { 14141 var promiseToString = null; 14142 try { 14143 promiseToString = Object.prototype.toString.call(P.resolve()); 14144 } catch (e) { 14145 // silently ignored 14146 } 14147 14148 if (promiseToString === '[object Promise]' && !P.cast) { 14149 return; 14150 } 14151 } 14152 14153 local.Promise = Promise$2; 14154 } 14155 14156// Strange compat.. 14157 Promise$2.polyfill = polyfill$1; 14158 Promise$2.Promise = Promise$2; 14159 14160 return Promise$2; 14161 14162 }))); 14163 14164//# sourceMappingURL=es6-promise.map 14165 14166 /* WEBPACK VAR INJECTION */ 14167 }.call(exports, __webpack_require__(18), __webpack_require__(205))) 14168 14169 /***/ 14170 }), 14171 /* 205 */
vendor: 6,591 bytes, lines 14172-14352
14172 /***/ (function (module, exports) { 14173 14174 var g; 14175 14176// This works in non-strict mode 14177 g = (function () { 14178 return this; 14179 })(); 14180 14181 try { 14182 // This works if eval is allowed (see CSP) 14183 g = g || Function("return this")() || (1, eval)("this"); 14184 } catch (e) { 14185 // This works if the window reference is available 14186 if (typeof window === "object") 14187 g = window; 14188 } 14189 14190// g can still be undefined, but nothing to do about it... 14191// We return undefined, instead of nothing here, so it's 14192// easier to handle this case. if(!global) { ...} 14193 14194 module.exports = g; 14195 14196 14197 /***/ 14198 }), 14199 /* 206 */ 14200 /***/ (function (module, exports) { 14201 14202 /* (ignored) */ 14203 14204 /***/ 14205 }), 14206 /* 207 */ 14207 /***/ (function (module, exports, __webpack_require__) { 14208 14209 "use strict"; 14210 14211 14212 var _promise = __webpack_require__(208); 14213 14214 var _promise2 = _interopRequireDefault(_promise); 14215 14216 var _assign = __webpack_require__(228); 14217 14218 var _assign2 = _interopRequireDefault(_assign); 14219 14220 var _getPrototypeOf = __webpack_require__(114); 14221 14222 var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); 14223 14224 var _classCallCheck2 = __webpack_require__(64); 14225 14226 var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); 14227 14228 var _createClass2 = __webpack_require__(65); 14229 14230 var _createClass3 = _interopRequireDefault(_createClass2); 14231 14232 var _possibleConstructorReturn2 = __webpack_require__(116); 14233 14234 var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); 14235 14236 var _inherits2 = __webpack_require__(120); 14237 14238 var _inherits3 = _interopRequireDefault(_inherits2); 14239 14240 var _react = __webpack_require__(12); 14241 14242 var _react2 = _interopRequireDefault(_react); 14243 14244 var _reactFlipMove = __webpack_require__(252); 14245 14246 var _reactFlipMove2 = _interopRequireDefault(_reactFlipMove); 14247 14248 var _autosize = __webpack_require__(259); 14249 14250 var _autosize2 = _interopRequireDefault(_autosize); 14251 14252 var _i18n = __webpack_require__(260); 14253 14254 var _i18n2 = _interopRequireDefault(_i18n); 14255 14256 __webpack_require__(271); 14257 14258 var _util = __webpack_require__(121); 14259 14260 var _avatar = __webpack_require__(130); 14261 14262 var _avatar2 = _interopRequireDefault(_avatar); 14263 14264 var _button = __webpack_require__(299); 14265 14266 var _button2 = _interopRequireDefault(_button); 14267 14268 var _action = __webpack_require__(300); 14269 14270 var _action2 = _interopRequireDefault(_action); 14271 14272 var _comment = __webpack_require__(301); 14273 14274 var _comment2 = _interopRequireDefault(_comment); 14275 14276 var _svg = __webpack_require__(131); 14277 14278 var _svg2 = _interopRequireDefault(_svg); 14279 14280 var _const = __webpack_require__(856); 14281 14282 var _getComments = __webpack_require__(857); 14283 14284 var _getComments2 = _interopRequireDefault(_getComments); 14285 14286 function _interopRequireDefault(obj) { 14287 return obj && obj.__esModule ? obj : {default: obj}; 14288 } 14289 14290 var GitalkComponent = function (_Component) { 14291 (0, _inherits3.default)(GitalkComponent, _Component); 14292 14293 function GitalkComponent(props) { 14294 (0, _classCallCheck3.default)(this, GitalkComponent); 14295 14296 var _this = (0, _possibleConstructorReturn3.default)(this, (GitalkComponent.__proto__ || (0, _getPrototypeOf2.default)(GitalkComponent)).call(this, props)); 14297 14298 _this.state = { 14299 user: null, 14300 issue: null, 14301 comments: [], 14302 localComments: [], 14303 comment: '', 14304 page: 1, 14305 pagerDirection: 'last', 14306 cursor: null, 14307 previewHtml: '', 14308 14309 isNoInit: false, 14310 isIniting: true, 14311 isCreating: false, 14312 isLoading: false, 14313 isLoadMore: false, 14314 isLoadOver: false, 14315 isIssueCreating: false, 14316 isPopupVisible: false, 14317 isInputFocused: false, 14318 isPreview: false, 14319 14320 isOccurError: false, 14321 errorMsg: '' 14322 }; 14323 14324 _this.getCommentsV3 = function (issue) { 14325 var _this$options = _this.options, 14326 clientID = _this$options.clientID, 14327 clientSecret = _this$options.clientSecret, 14328 perPage = _this$options.perPage; 14329 var page = _this.state.page; 14330 14331 14332 return _this.getIssue().then(function (issue) { 14333 if (!issue) return; 14334 14335 return _util.axiosGithub.get(issue.comments_url, { 14336 headers: { 14337 Accept: 'application/vnd.github.v3.full+json' 14338 }, 14339 auth: { 14340 username: clientID, 14341 password: clientSecret 14342 }, 14343 params: { 14344 per_page: perPage, 14345 page: page 14346 } 14347 }).then(function (res) { 14348 var _this$state = _this.state, 14349 comments = _this$state.comments, 14350 issue = _this$state.issue; 14351 14352 var isLoadOver = false;
vendor: 53,186 bytes, lines 14353-15357
14353 var cs = comments.concat(res.data); 14354 if (cs.length >= issue.comments || res.data.length < perPage) { 14355 isLoadOver = true; 14356 } 14357 _this.setState({ 14358 comments: cs, 14359 isLoadOver: isLoadOver, 14360 page: page + 1 14361 }); 14362 return cs; 14363 }); 14364 }); 14365 }; 14366 14367 _this.getRef = function (e) { 14368 _this.publicBtnEL = e; 14369 }; 14370 14371 _this.reply = function (replyComment) { 14372 return function () { 14373 var comment = _this.state.comment; 14374 14375 var replyCommentBody = replyComment.body; 14376 var replyCommentArray = replyCommentBody.split('\n'); 14377 replyCommentArray.unshift('@' + replyComment.user.login); 14378 replyCommentArray = replyCommentArray.map(function (t) { 14379 return '> ' + t; 14380 }); 14381 replyCommentArray.push(''); 14382 replyCommentArray.push(''); 14383 if (comment) replyCommentArray.unshift(''); 14384 _this.setState({comment: comment + replyCommentArray.join('\n')}, function () { 14385 _autosize2.default.update(_this.commentEL); 14386 _this.commentEL.focus(); 14387 }); 14388 }; 14389 }; 14390 14391 _this.handlePopup = function (e) { 14392 e.preventDefault(); 14393 e.stopPropagation(); 14394 var isVisible = !_this.state.isPopupVisible; 14395 var hideHandle = function hideHandle(e1) { 14396 if ((0, _util.hasClassInParent)(e1.target, 'gt-user', 'gt-popup')) { 14397 return; 14398 } 14399 window.document.removeEventListener('click', hideHandle); 14400 _this.setState({isPopupVisible: false}); 14401 }; 14402 _this.setState({isPopupVisible: isVisible}); 14403 if (isVisible) { 14404 window.document.addEventListener('click', hideHandle); 14405 } else { 14406 window.document.removeEventListener('click', hideHandle); 14407 } 14408 }; 14409 14410 _this.handleLogin = function () { 14411 var comment = _this.state.comment; 14412 14413 window.localStorage.setItem(_const.GT_COMMENT, encodeURIComponent(comment)); 14414 window.location.href = _this.loginLink; 14415 }; 14416 14417 _this.handleIssueCreate = function () { 14418 _this.setState({isIssueCreating: true}); 14419 _this.createIssue().then(function (issue) { 14420 _this.setState({ 14421 isIssueCreating: false, 14422 isOccurError: false 14423 }); 14424 return _this.getComments(issue); 14425 }).catch(function (err) { 14426 _this.setState({ 14427 isIssueCreating: false, 14428 isOccurError: true, 14429 errorMsg: (0, _util.formatErrorMsg)(err) 14430 }); 14431 }).then(function (res) { 14432 if (res) { 14433 _this.setState({ 14434 isNoInit: false 14435 }); 14436 } 14437 }); 14438 }; 14439 14440 _this.handleCommentCreate = function (e) { 14441 if (!_this.state.comment.length) { 14442 e && e.preventDefault(); 14443 _this.commentEL.focus(); 14444 return; 14445 } 14446 _this.setState(function (state) { 14447 if (state.isCreating) return; 14448 14449 _this.createComment().then(function () { 14450 return _this.setState({ 14451 isCreating: false, 14452 isOccurError: false 14453 }); 14454 }).catch(function (err) { 14455 _this.setState({ 14456 isCreating: false, 14457 isOccurError: true, 14458 errorMsg: (0, _util.formatErrorMsg)(err) 14459 }); 14460 }); 14461 return {isCreating: true}; 14462 }); 14463 }; 14464 14465 _this.handleCommentPreview = function (e) { 14466 _this.setState({ 14467 isPreview: !_this.state.isPreview 14468 }); 14469 14470 _util.axiosGithub.post('/markdown', { 14471 text: _this.state.comment 14472 }, { 14473 headers: _this.accessToken && {Authorization: 'token ' + _this.accessToken} 14474 }).then(function (res) { 14475 _this.setState({ 14476 previewHtml: res.data 14477 }); 14478 }).catch(function (err) { 14479 _this.setState({ 14480 isOccurError: true, 14481 errorMsg: (0, _util.formatErrorMsg)(err) 14482 }); 14483 }); 14484 }; 14485 14486 _this.handleCommentLoad = function () { 14487 var _this$state2 = _this.state, 14488 issue = _this$state2.issue, 14489 isLoadMore = _this$state2.isLoadMore; 14490 14491 if (isLoadMore) return; 14492 _this.setState({isLoadMore: true}); 14493 _this.getComments(issue).then(function () { 14494 return _this.setState({isLoadMore: false}); 14495 }); 14496 }; 14497 14498 _this.handleCommentChange = function (e) { 14499 return _this.setState({comment: e.target.value}); 14500 }; 14501 14502 _this.handleLogout = function () { 14503 _this.logout(); 14504 window.location.reload(); 14505 }; 14506 14507 _this.handleCommentFocus = function (e) { 14508 var distractionFreeMode = _this.options.distractionFreeMode; 14509 14510 if (!distractionFreeMode) return e.preventDefault(); 14511 _this.setState({isInputFocused: true}); 14512 }; 14513 14514 _this.handleCommentBlur = function (e) { 14515 var distractionFreeMode = _this.options.distractionFreeMode; 14516 14517 if (!distractionFreeMode) return e.preventDefault(); 14518 _this.setState({isInputFocused: false}); 14519 }; 14520 14521 _this.handleSort = function (direction) { 14522 return function (e) { 14523 _this.setState({pagerDirection: direction}); 14524 }; 14525 }; 14526 14527 _this.handleCommentKeyDown = function (e) { 14528 var enableHotKey = _this.options.enableHotKey; 14529 14530 if (enableHotKey && (e.metaKey || e.ctrlKey) && e.keyCode === 13) { 14531 _this.publicBtnEL && _this.publicBtnEL.focus(); 14532 _this.handleCommentCreate(); 14533 } 14534 }; 14535 14536 var id2 = window.location.hash; 14537 if (id2.indexOf("?") === -1) { 14538 14539 } else { 14540 id2 = id2.substr(0, id2.indexOf("?")) 14541 } 14542 14543 _this.options = (0, _assign2.default)({}, { 14544 id: id2, 14545 number: -1, 14546 labels: ['ArticleComment'], 14547 title: window.document.title, 14548 body: '', // window.location.href + header.meta[description] 14549 language: window.navigator.language || window.navigator.userLanguage, 14550 perPage: 10, 14551 pagerDirection: 'last', // last or first 14552 createIssueManually: false, 14553 distractionFreeMode: false, 14554 proxy: 'https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token', 14555 flipMoveOptions: { 14556 staggerDelayBy: 150, 14557 appearAnimation: 'accordionVertical', 14558 enterAnimation: 'accordionVertical', 14559 leaveAnimation: 'accordionVertical' 14560 }, 14561 enableHotKey: true, 14562 14563 url: window.location.href, 14564 14565 defaultAuthor: { 14566 avatarUrl: '//avatars1.githubusercontent.com/u/29697133?s=50', 14567 login: 'null', 14568 url: '' 14569 }, 14570 14571 updateCountCallback: null 14572 }, props.options); 14573 14574 _this.state.pagerDirection = _this.options.pagerDirection; 14575 var storedComment = window.localStorage.getItem(_const.GT_COMMENT); 14576 if (storedComment) { 14577 _this.state.comment = decodeURIComponent(storedComment); 14578 window.localStorage.removeItem(_const.GT_COMMENT); 14579 } 14580 14581 var query = (0, _util.queryParse)(); 14582 if (query.code) { 14583 var code = query.code; 14584 delete query.code; 14585 var replacedUrl = '' + window.location.origin + window.location.pathname + (0, _util.queryStringify)(query) + window.location.hash; 14586 history.replaceState(null, null, replacedUrl); 14587 _this.options = (0, _assign2.default)({}, _this.options, { 14588 url: replacedUrl, 14589 id: replacedUrl 14590 }, props.options); 14591 14592 _util.axiosJSON.post(_this.options.proxy, { 14593 code: code, 14594 client_id: _this.options.clientID, 14595 client_secret: _this.options.clientSecret 14596 }).then(function (res) { 14597 if (res.data && res.data.access_token) { 14598 _this.accessToken = res.data.access_token; 14599 14600 _this.getInit().then(function () { 14601 return _this.setState({isIniting: false}); 14602 }).catch(function (err) { 14603 console.log('err:', err); 14604 _this.setState({ 14605 isIniting: false, 14606 isOccurError: true, 14607 errorMsg: (0, _util.formatErrorMsg)(err) 14608 }); 14609 }); 14610 } else { 14611 // no access_token 14612 console.log('res.data err:', res.data); 14613 _this.setState({ 14614 isOccurError: true, 14615 errorMsg: (0, _util.formatErrorMsg)(new Error('no access token')) 14616 }); 14617 } 14618 }).catch(function (err) { 14619 console.log('err: ', err); 14620 _this.setState({ 14621 isOccurError: true, 14622 errorMsg: (0, _util.formatErrorMsg)(err) 14623 }); 14624 }); 14625 } else { 14626 _this.getInit().then(function () { 14627 return _this.setState({isIniting: false}); 14628 }).catch(function (err) { 14629 console.log('err:', err); 14630 _this.setState({ 14631 isIniting: false, 14632 isOccurError: true, 14633 errorMsg: (0, _util.formatErrorMsg)(err) 14634 }); 14635 }); 14636 } 14637 14638 _this.i18n = (0, _i18n2.default)(_this.options.language); 14639 return _this; 14640 } 14641 14642 (0, _createClass3.default)(GitalkComponent, [{ 14643 key: 'componentDidUpdate', 14644 value: function componentDidUpdate() { 14645 this.commentEL && (0, _autosize2.default)(this.commentEL); 14646 } 14647 }, { 14648 key: 'getInit', 14649 value: function getInit() { 14650 var _this2 = this; 14651 14652 return this.getUserInfo().then(function () { 14653 return _this2.getIssue(); 14654 }).then(function (issue) { 14655 return _this2.getComments(issue); 14656 }); 14657 } 14658 }, { 14659 key: 'getUserInfo', 14660 value: function getUserInfo() { 14661 var _this3 = this; 14662 14663 if (!this.accessToken) { 14664 return new _promise2.default(function (resolve) { 14665 resolve(); 14666 }); 14667 } 14668 return _util.axiosGithub.get('/user', { 14669 headers: { 14670 Authorization: 'token ' + this.accessToken 14671 } 14672 }).then(function (res) { 14673 _this3.setState({user: res.data}); 14674 }).catch(function (err) { 14675 _this3.logout(); 14676 }); 14677 } 14678 }, { 14679 key: 'getIssueById', 14680 value: function getIssueById() { 14681 var _this4 = this; 14682 14683 var _options = this.options, 14684 owner = _options.owner, 14685 repo = _options.repo, 14686 number = _options.number, 14687 clientID = _options.clientID, 14688 clientSecret = _options.clientSecret; 14689 14690 var getUrl = '/repos/' + owner + '/' + repo + '/issues/' + number; 14691 14692 return new _promise2.default(function (resolve, reject) { 14693 _util.axiosGithub.get(getUrl, { 14694 auth: { 14695 username: clientID, 14696 password: clientSecret 14697 }, 14698 params: { 14699 t: Date.now() 14700 } 14701 }).then(function (res) { 14702 var issue = null; 14703 14704 if (res && res.data && res.data.number === number) { 14705 issue = res.data; 14706 14707 _this4.setState({issue: issue, isNoInit: false}); 14708 } 14709 resolve(issue); 14710 }).catch(function (err) { 14711 // When the status code is 404, promise will be resolved with null 14712 if (err.response.status === 404) resolve(null); 14713 reject(err); 14714 }); 14715 }); 14716 } 14717 }, { 14718 key: 'getIssueByLabels', 14719 value: function getIssueByLabels() { 14720 var _this5 = this; 14721 14722 var _options2 = this.options, 14723 owner = _options2.owner, 14724 repo = _options2.repo, 14725 id = _options2.id, 14726 labels = _options2.labels, 14727 clientID = _options2.clientID, 14728 clientSecret = _options2.clientSecret; 14729 14730 14731 return _util.axiosGithub.get('/repos/' + owner + '/' + repo + '/issues', { 14732 auth: { 14733 username: clientID, 14734 password: clientSecret 14735 }, 14736 params: { 14737 labels: labels.concat(id).join(','), 14738 t: Date.now() 14739 } 14740 }).then(function (res) { 14741 var createIssueManually = _this5.options.createIssueManually; 14742 14743 var isNoInit = false; 14744 var issue = null; 14745 if (!(res && res.data && res.data.length)) { 14746 if (!createIssueManually && _this5.isAdmin) { 14747 return _this5.createIssue(); 14748 } 14749 14750 isNoInit = true; 14751 } else { 14752 issue = res.data[0]; 14753 } 14754 _this5.setState({issue: issue, isNoInit: isNoInit}); 14755 return issue; 14756 }); 14757 } 14758 }, { 14759 key: 'getIssue', 14760 value: function getIssue() { 14761 var _this6 = this; 14762 14763 var number = this.options.number; 14764 var issue = this.state.issue; 14765 14766 if (issue) { 14767 this.setState({isNoInit: false}); 14768 return _promise2.default.resolve(issue); 14769 } 14770 14771 if (typeof number === 'number' && number > 0) { 14772 return this.getIssueById().then(function (resIssue) { 14773 if (!resIssue) return _this6.getIssueByLabels(); 14774 return resIssue; 14775 }); 14776 } 14777 return this.getIssueByLabels(); 14778 } 14779 }, { 14780 key: 'createIssue', 14781 value: function createIssue() { 14782 var _this7 = this; 14783 14784 var _options3 = this.options, 14785 owner = _options3.owner, 14786 repo = _options3.repo, 14787 title = _options3.title, 14788 body = _options3.body, 14789 id = _options3.id, 14790 labels = _options3.labels, 14791 url = _options3.url; 14792 14793 return _util.axiosGithub.post('/repos/' + owner + '/' + repo + '/issues', { 14794 title: title, 14795 labels: labels.concat(id), 14796 body: body || url + ' \n\n ' + ((0, _util.getMetaContent)('description') || (0, _util.getMetaContent)('description', 'og:description') || '') 14797 }, { 14798 headers: { 14799 Authorization: 'token ' + this.accessToken 14800 } 14801 }).then(function (res) { 14802 _this7.setState({issue: res.data}); 14803 return res.data; 14804 }); 14805 } 14806 // Get comments via v3 api, don't require login, but sorting feature is disable 14807 14808 }, { 14809 key: 'getComments', 14810 value: function getComments(issue) { 14811 if (!issue) return; 14812 // Get comments via v4 graphql api, login required and sorting feature is available 14813 if (this.accessToken) return _getComments2.default.call(this, issue); 14814 return this.getCommentsV3(issue); 14815 } 14816 }, { 14817 key: 'createComment', 14818 value: function createComment() { 14819 var _this8 = this; 14820 14821 var _state = this.state, 14822 comment = _state.comment, 14823 localComments = _state.localComments, 14824 comments = _state.comments; 14825 14826 14827 return this.getIssue().then(function (issue) { 14828 return _util.axiosGithub.post(issue.comments_url, { 14829 body: comment 14830 }, { 14831 headers: { 14832 Accept: 'application/vnd.github.v3.full+json', 14833 Authorization: 'token ' + _this8.accessToken 14834 } 14835 }); 14836 }).then(function (res) { 14837 _this8.setState({ 14838 comment: '', 14839 comments: comments.concat(res.data), 14840 localComments: localComments.concat(res.data) 14841 }); 14842 }); 14843 } 14844 }, { 14845 key: 'logout', 14846 value: function logout() { 14847 this.setState({user: null}); 14848 window.localStorage.removeItem(_const.GT_ACCESS_TOKEN); 14849 } 14850 }, { 14851 key: 'like', 14852 value: function like(comment) { 14853 var _this9 = this; 14854 14855 var _options4 = this.options, 14856 owner = _options4.owner, 14857 repo = _options4.repo; 14858 var user = this.state.user; 14859 var comments = this.state.comments; 14860 14861 14862 _util.axiosGithub.post('/repos/' + owner + '/' + repo + '/issues/comments/' + comment.id + '/reactions', { 14863 content: 'heart' 14864 }, { 14865 headers: { 14866 Authorization: 'token ' + this.accessToken, 14867 Accept: 'application/vnd.github.squirrel-girl-preview' 14868 } 14869 }).then(function (res) { 14870 comments = comments.map(function (c) { 14871 if (c.id === comment.id) { 14872 if (c.reactions) { 14873 if (!~c.reactions.nodes.findIndex(function (n) { 14874 return n.user.login === user.login; 14875 })) { 14876 c.reactions.totalCount += 1; 14877 } 14878 } else { 14879 c.reactions = {nodes: []}; 14880 c.reactions.totalCount = 1; 14881 } 14882 14883 c.reactions.nodes.push(res.data); 14884 c.reactions.viewerHasReacted = true; 14885 return (0, _assign2.default)({}, c); 14886 } 14887 return c; 14888 }); 14889 14890 _this9.setState({ 14891 comments: comments 14892 }); 14893 }); 14894 } 14895 }, { 14896 key: 'unLike', 14897 value: function unLike(comment) { 14898 var _this10 = this; 14899 14900 var user = this.state.user; 14901 var comments = this.state.comments; 14902 14903 // const { user } = this.state 14904 // let id 14905 // comment.reactions.nodes.forEach(r => { 14906 // if (r.user.login = user.login) id = r.databaseId 14907 // }) 14908 // return axiosGithub.delete(`/reactions/${id}`, { 14909 // headers: { 14910 // Authorization: `token ${this.accessToken}`, 14911 // Accept: 'application/vnd.github.squirrel-girl-preview' 14912 // } 14913 // }).then(res => { 14914 // console.log('res:', res) 14915 // }) 14916 14917 var getQL = function getQL(id) { 14918 return { 14919 operationName: 'RemoveReaction', 14920 query: '\n mutation RemoveReaction{\n removeReaction (input:{\n subjectId: "' + id + '",\n content: HEART\n }) {\n reaction {\n content\n }\n }\n }\n ' 14921 }; 14922 }; 14923 14924 _util.axiosGithub.post('/graphql', getQL(comment.gId), { 14925 headers: { 14926 Authorization: 'bearer ' + this.accessToken 14927 } 14928 }).then(function (res) { 14929 if (res.data) { 14930 comments = comments.map(function (c) { 14931 if (c.id === comment.id) { 14932 var index = c.reactions.nodes.findIndex(function (n) { 14933 return n.user.login === user.login; 14934 }); 14935 if (~index) { 14936 c.reactions.totalCount -= 1; 14937 c.reactions.nodes.splice(index, 1); 14938 } 14939 c.reactions.viewerHasReacted = false; 14940 return (0, _assign2.default)({}, c); 14941 } 14942 return c; 14943 }); 14944 14945 _this10.setState({ 14946 comments: comments 14947 }); 14948 } 14949 }); 14950 } 14951 }, { 14952 key: 'initing', 14953 value: function initing() { 14954 return _react2.default.createElement( 14955 'div', 14956 {className: 'gt-initing'}, 14957 _react2.default.createElement('i', {className: 'gt-loader'}), 14958 _react2.default.createElement( 14959 'p', 14960 {className: 'gt-initing-text'}, 14961 this.i18n.t('init') 14962 ) 14963 ); 14964 } 14965 }, { 14966 key: 'noInit', 14967 value: function noInit() { 14968 var _state2 = this.state, 14969 user = _state2.user, 14970 isIssueCreating = _state2.isIssueCreating; 14971 var _options5 = this.options, 14972 owner = _options5.owner, 14973 repo = _options5.repo, 14974 admin = _options5.admin; 14975 14976 return _react2.default.createElement( 14977 'div', 14978 {className: 'gt-no-init', key: 'no-init'}, 14979 _react2.default.createElement('p', { 14980 dangerouslySetInnerHTML: { 14981 __html: this.i18n.t('no-found-related', { 14982 link: '<a href="https://github.com/' + owner + '/' + repo + '/issues">Issues</a>' 14983 }) 14984 } 14985 }), 14986 _react2.default.createElement( 14987 'p', 14988 null, 14989 this.i18n.t('please-contact', { 14990 user: [].concat(admin).map(function (u) { 14991 return '@' + u; 14992 }).join(' ') 14993 }) 14994 ), 14995 this.isAdmin ? _react2.default.createElement( 14996 'p', 14997 null, 14998 _react2.default.createElement(_button2.default, { 14999 onClick: this.handleIssueCreate, 15000 isLoading: isIssueCreating, 15001 text: this.i18n.t('init-issue') 15002 }) 15003 ) : null, 15004 !user && _react2.default.createElement(_button2.default, { 15005 className: 'gt-btn-login', 15006 onClick: this.handleLogin, 15007 text: this.i18n.t('login-with-github') 15008 }) 15009 ); 15010 } 15011 }, { 15012 key: 'header', 15013 value: function header() { 15014 var _this11 = this; 15015 15016 var _state3 = this.state, 15017 user = _state3.user, 15018 comment = _state3.comment, 15019 isCreating = _state3.isCreating, 15020 previewHtml = _state3.previewHtml, 15021 isPreview = _state3.isPreview; 15022 15023 return _react2.default.createElement( 15024 'div', 15025 {className: 'gt-header', key: 'header'}, 15026 user ? _react2.default.createElement(_avatar2.default, { 15027 className: 'gt-header-avatar', 15028 src: user.avatar_url, 15029 alt: user.login 15030 }) : _react2.default.createElement( 15031 'a', 15032 {className: 'gt-avatar-github', onClick: this.handleLogin}, 15033 _react2.default.createElement(_svg2.default, { 15034 className: 'gt-ico-github', 15035 name: 'github' 15036 }) 15037 ), 15038 _react2.default.createElement( 15039 'div', 15040 {className: 'gt-header-comment'}, 15041 _react2.default.createElement('textarea', { 15042 ref: function ref(t) { 15043 _this11.commentEL = t; 15044 }, 15045 className: 'gt-header-textarea ' + (isPreview ? 'hide' : ''), 15046 value: comment, 15047 onChange: this.handleCommentChange, 15048 onFocus: this.handleCommentFocus, 15049 onBlur: this.handleCommentBlur, 15050 onKeyDown: this.handleCommentKeyDown, 15051 placeholder: this.i18n.t('leave-a-comment') 15052 }), 15053 _react2.default.createElement('div', { 15054 className: 'gt-header-preview markdown-body ' + (isPreview ? '' : 'hide'), 15055 dangerouslySetInnerHTML: {__html: previewHtml} 15056 }), 15057 _react2.default.createElement( 15058 'div', 15059 {className: 'gt-header-controls'}, 15060 _react2.default.createElement( 15061 'a', 15062 { 15063 className: 'gt-header-controls-tip', 15064 href: 'https://guides.github.com/features/mastering-markdown/', 15065 target: '_blank', 15066 rel: 'noopener noreferrer' 15067 }, 15068 _react2.default.createElement(_svg2.default, { 15069 className: 'gt-ico-tip', 15070 name: 'tip', 15071 text: this.i18n.t('support-markdown') 15072 }) 15073 ), 15074 user && _react2.default.createElement(_button2.default, { 15075 getRef: this.getRef, 15076 className: 'gt-btn-public', 15077 onClick: this.handleCommentCreate, 15078 text: this.i18n.t('comment'), 15079 isLoading: isCreating 15080 }), 15081 _react2.default.createElement(_button2.default, { 15082 className: 'gt-btn-preview', 15083 onClick: this.handleCommentPreview, 15084 text: isPreview ? this.i18n.t('edit') : this.i18n.t('preview') 15085 // isLoading={isPreviewing} 15086 }), 15087 !user && _react2.default.createElement(_button2.default, { 15088 className: 'gt-btn-login', 15089 onClick: this.handleLogin, 15090 text: this.i18n.t('login-with-github') 15091 }) 15092 ) 15093 ) 15094 ); 15095 } 15096 }, { 15097 key: 'comments', 15098 value: function comments() { 15099 var _this12 = this; 15100 15101 var _state4 = this.state, 15102 user = _state4.user, 15103 comments = _state4.comments, 15104 isLoadOver = _state4.isLoadOver, 15105 isLoadMore = _state4.isLoadMore, 15106 pagerDirection = _state4.pagerDirection; 15107 var _options6 = this.options, 15108 language = _options6.language, 15109 flipMoveOptions = _options6.flipMoveOptions, 15110 admin = _options6.admin; 15111 15112 var totalComments = comments.concat([]); 15113 if (pagerDirection === 'last' && this.accessToken) { 15114 totalComments.reverse(); 15115 } 15116 return _react2.default.createElement( 15117 'div', 15118 {className: 'gt-comments', key: 'comments'}, 15119 _react2.default.createElement( 15120 _reactFlipMove2.default, 15121 flipMoveOptions, 15122 totalComments.map(function (c) { 15123 return _react2.default.createElement(_comment2.default, { 15124 comment: c, 15125 key: c.id, 15126 user: user, 15127 language: language, 15128 commentedText: _this12.i18n.t('commented'), 15129 admin: admin, 15130 replyCallback: _this12.reply(c), 15131 likeCallback: c.reactions && c.reactions.viewerHasReacted ? _this12.unLike.bind(_this12, c) : _this12.like.bind(_this12, c) 15132 }); 15133 }) 15134 ), 15135 !totalComments.length && _react2.default.createElement( 15136 'p', 15137 {className: 'gt-comments-null'}, 15138 this.i18n.t('first-comment-person') 15139 ), 15140 !isLoadOver && totalComments.length ? _react2.default.createElement( 15141 'div', 15142 {className: 'gt-comments-controls'}, 15143 _react2.default.createElement(_button2.default, { 15144 className: 'gt-btn-loadmore', 15145 onClick: this.handleCommentLoad, 15146 isLoading: isLoadMore, 15147 text: this.i18n.t('load-more') 15148 }) 15149 ) : null 15150 ); 15151 } 15152 }, { 15153 key: 'meta', 15154 value: function meta() { 15155 var _state5 = this.state, 15156 user = _state5.user, 15157 issue = _state5.issue, 15158 isPopupVisible = _state5.isPopupVisible, 15159 pagerDirection = _state5.pagerDirection, 15160 localComments = _state5.localComments; 15161 15162 var cnt = (issue && issue.comments) + localComments.length; 15163 var isDesc = pagerDirection === 'last'; 15164 var updateCountCallback = this.options.updateCountCallback; 15165 15166 // window.GITALK_COMMENTS_COUNT = cnt 15167 15168 if (updateCountCallback && {}.toString.call(updateCountCallback) === '[object Function]') { 15169 try { 15170 updateCountCallback(cnt); 15171 } catch (err) { 15172 console.log('An error occurred executing the updateCountCallback:', err); 15173 } 15174 } 15175 15176 return _react2.default.createElement( 15177 'div', 15178 {className: 'gt-meta', key: 'meta'}, 15179 _react2.default.createElement('span', { 15180 className: 'gt-counts', dangerouslySetInnerHTML: { 15181 __html: this.i18n.t('counts', { 15182 counts: '<a class="gt-link gt-link-counts" href="' + (issue && issue.html_url) + '" target="_blank" rel="noopener noreferrer">' + cnt + '</a>', 15183 smart_count: cnt 15184 }) 15185 } 15186 }), 15187 isPopupVisible && _react2.default.createElement( 15188 'div', 15189 {className: 'gt-popup'}, 15190 user ? _react2.default.createElement(_action2.default, { 15191 className: 'gt-action-sortasc' + (!isDesc ? ' is--active' : ''), 15192 onClick: this.handleSort('first'), 15193 text: this.i18n.t('sort-asc') 15194 }) : null, 15195 user ? _react2.default.createElement(_action2.default, { 15196 className: 'gt-action-sortdesc' + (isDesc ? ' is--active' : ''), 15197 onClick: this.handleSort('last'), 15198 text: this.i18n.t('sort-desc') 15199 }) : null, 15200 user ? _react2.default.createElement(_action2.default, { 15201 className: 'gt-action-logout', 15202 onClick: this.handleLogout, 15203 text: this.i18n.t('logout') 15204 }) : _react2.default.createElement( 15205 'a', 15206 {className: 'gt-action gt-action-login', onClick: this.handleLogin}, 15207 this.i18n.t('login-with-github') 15208 ), 15209 _react2.default.createElement( 15210 'div', 15211 {className: 'gt-copyright'}, 15212 _react2.default.createElement( 15213 'a', 15214 { 15215 className: 'gt-link gt-link-project', 15216 href: 'https://github.com/gitalk/gitalk', 15217 target: '_blank', 15218 rel: 'noopener noreferrer' 15219 }, 15220 'Gitalk' 15221 ), 15222 _react2.default.createElement( 15223 'span', 15224 {className: 'gt-version'}, 15225 _const.GT_VERSION 15226 ) 15227 ) 15228 ), 15229 _react2.default.createElement( 15230 'div', 15231 {className: 'gt-user'}, 15232 user ? _react2.default.createElement( 15233 'div', 15234 { 15235 className: isPopupVisible ? 'gt-user-inner is--poping' : 'gt-user-inner', 15236 onClick: this.handlePopup 15237 }, 15238 _react2.default.createElement( 15239 'span', 15240 {className: 'gt-user-name'}, 15241 user.login 15242 ), 15243 _react2.default.createElement(_svg2.default, { 15244 className: 'gt-ico-arrdown', 15245 name: 'arrow_down' 15246 }) 15247 ) : _react2.default.createElement( 15248 'div', 15249 { 15250 className: isPopupVisible ? 'gt-user-inner is--poping' : 'gt-user-inner', 15251 onClick: this.handlePopup 15252 }, 15253 _react2.default.createElement( 15254 'span', 15255 {className: 'gt-user-name'}, 15256 this.i18n.t('anonymous') 15257 ), 15258 _react2.default.createElement(_svg2.default, { 15259 className: 'gt-ico-arrdown', 15260 name: 'arrow_down' 15261 }) 15262 ) 15263 ) 15264 ); 15265 } 15266 }, { 15267 key: 'render', 15268 value: function render() { 15269 var _state6 = this.state, 15270 isIniting = _state6.isIniting, 15271 isNoInit = _state6.isNoInit, 15272 isOccurError = _state6.isOccurError, 15273 errorMsg = _state6.errorMsg, 15274 isInputFocused = _state6.isInputFocused; 15275 15276 return _react2.default.createElement( 15277 'div', 15278 {className: 'gt-container' + (isInputFocused ? ' gt-input-focused' : '')}, 15279 isIniting && this.initing(), 15280 !isIniting && (isNoInit ? [] : [this.meta()]), 15281 isOccurError && _react2.default.createElement( 15282 'div', 15283 {className: 'gt-error'}, 15284 errorMsg 15285 ), 15286 !isIniting && (isNoInit ? [this.noInit()] : [this.header(), this.comments()]) 15287 ); 15288 } 15289 }, { 15290 key: 'accessToken', 15291 get: function get() { 15292 return this._accessToke || window.localStorage.getItem(_const.GT_ACCESS_TOKEN); 15293 }, 15294 set: function set(token) { 15295 window.localStorage.setItem(_const.GT_ACCESS_TOKEN, token); 15296 this._accessToken = token; 15297 } 15298 }, { 15299 key: 'loginLink', 15300 get: function get() { 15301 var githubOauthUrl = 'https://github.com/login/oauth/authorize'; 15302 var clientID = this.options.clientID; 15303 15304 var query = { 15305 client_id: clientID, 15306 redirect_uri: window.location.href, 15307 scope: 'public_repo' 15308 }; 15309 return githubOauthUrl + '?' + (0, _util.queryStringify)(query); 15310 } 15311 }, { 15312 key: 'isAdmin', 15313 get: function get() { 15314 var admin = this.options.admin; 15315 var user = this.state.user; 15316 15317 15318 return user && ~[].concat(admin).map(function (a) { 15319 return a.toLowerCase(); 15320 }).indexOf(user.login.toLowerCase()); 15321 } 15322 }]); 15323 return GitalkComponent; 15324 }(_react.Component); 15325 15326 module.exports = GitalkComponent; 15327 15328 /***/ 15329 }), 15330 /* 208 */ 15331 /***/ (function (module, exports, __webpack_require__) { 15332 15333 module.exports = {"default": __webpack_require__(209), __esModule: true}; 15334 15335 /***/ 15336 }), 15337 /* 209 */ 15338 /***/ (function (module, exports, __webpack_require__) { 15339 15340 __webpack_require__(100); 15341 __webpack_require__(40); 15342 __webpack_require__(54); 15343 __webpack_require__(218); 15344 __webpack_require__(226); 15345 __webpack_require__(227); 15346 module.exports = __webpack_require__(7).Promise; 15347 15348 15349 /***/ 15350 }), 15351 /* 210 */ 15352 /***/ (function (module, exports, __webpack_require__) { 15353 15354 var toInteger = __webpack_require__(69); 15355 var defined = __webpack_require__(70); 15356// true -> String#at 15357// false ->
vendor: 6,032 bytes, lines 15357-15505
15357 String#codePointAt 15358 module.exports = function (TO_STRING) { 15359 return function (that, pos) { 15360 var s = String(defined(that)); 15361 var i = toInteger(pos); 15362 var l = s.length; 15363 var a, b; 15364 if (i < 0 || i >= l) return TO_STRING ? '' : undefined; 15365 a = s.charCodeAt(i); 15366 return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff 15367 ? TO_STRING ? s.charAt(i) : a 15368 : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; 15369 }; 15370 }; 15371 15372 15373 /***/ 15374 }), 15375 /* 211 */ 15376 /***/ (function (module, exports, __webpack_require__) { 15377 15378 "use strict"; 15379 15380 var create = __webpack_require__(71); 15381 var descriptor = __webpack_require__(39); 15382 var setToStringTag = __webpack_require__(53); 15383 var IteratorPrototype = {}; 15384 15385// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() 15386 __webpack_require__(23)(IteratorPrototype, __webpack_require__(9)('iterator'), function () { 15387 return this; 15388 }); 15389 15390 module.exports = function (Constructor, NAME, next) { 15391 Constructor.prototype = create(IteratorPrototype, {next: descriptor(1, next)}); 15392 setToStringTag(Constructor, NAME + ' Iterator'); 15393 }; 15394 15395 15396 /***/ 15397 }), 15398 /* 212 */ 15399 /***/ (function (module, exports, __webpack_require__) { 15400 15401 var dP = __webpack_require__(16); 15402 var anObject = __webpack_require__(14); 15403 var getKeys = __webpack_require__(42); 15404 15405 module.exports = __webpack_require__(17) ? Object.defineProperties : function defineProperties(O, Properties) { 15406 anObject(O); 15407 var keys = getKeys(Properties); 15408 var length = keys.length; 15409 var i = 0; 15410 var P; 15411 while (length > i) dP.f(O, P = keys[i++], Properties[P]); 15412 return O; 15413 }; 15414 15415 15416 /***/ 15417 }), 15418 /* 213 */ 15419 /***/ (function (module, exports, __webpack_require__) { 15420 15421// false -> Array#indexOf 15422// true -> Array#includes 15423 var toIObject = __webpack_require__(32); 15424 var toLength = __webpack_require__(72); 15425 var toAbsoluteIndex = __webpack_require__(214); 15426 module.exports = function (IS_INCLUDES) { 15427 return function ($this, el, fromIndex) { 15428 var O = toIObject($this); 15429 var length = toLength(O.length); 15430 var index = toAbsoluteIndex(fromIndex, length); 15431 var value; 15432 // Array#includes uses SameValueZero equality algorithm 15433 // eslint-disable-next-line no-self-compare 15434 if (IS_INCLUDES && el != el) while (length > index) { 15435 value = O[index++]; 15436 // eslint-disable-next-line no-self-compare 15437 if (value != value) return true; 15438 // Array#indexOf ignores holes, Array#includes - not 15439 } else for (; length > index; index++) if (IS_INCLUDES || index in O) { 15440 if (O[index] === el) return IS_INCLUDES || index || 0; 15441 } 15442 return !IS_INCLUDES && -1; 15443 }; 15444 }; 15445 15446 15447 /***/ 15448 }), 15449 /* 214 */ 15450 /***/ (function (module, exports, __webpack_require__) { 15451 15452 var toInteger = __webpack_require__(69); 15453 var max = Math.max; 15454 var min = Math.min; 15455 module.exports = function (index, length) { 15456 index = toInteger(index); 15457 return index < 0 ? max(index + length, 0) : min(index, length); 15458 }; 15459 15460 15461 /***/ 15462 }), 15463 /* 215 */ 15464 /***/ (function (module, exports, __webpack_require__) { 15465 15466 "use strict"; 15467 15468 var addToUnscopables = __webpack_require__(216); 15469 var step = __webpack_require__(217); 15470 var Iterators = __webpack_require__(31); 15471 var toIObject = __webpack_require__(32); 15472 15473// 22.1.3.4 Array.prototype.entries() 15474// 22.1.3.13 Array.prototype.keys() 15475// 22.1.3.29 Array.prototype.values() 15476// 22.1.3.30 Array.prototype[@@iterator]() 15477 module.exports = __webpack_require__(101)(Array, 'Array', function (iterated, kind) { 15478 this._t = toIObject(iterated); // target 15479 this._i = 0; // next index 15480 this._k = kind; // kind 15481// 22.1.5.2.1 %ArrayIteratorPrototype%.next() 15482 }, function () { 15483 var O = this._t; 15484 var kind = this._k; 15485 var index = this._i++; 15486 if (!O || index >= O.length) { 15487 this._t = undefined; 15488 return step(1); 15489 } 15490 if (kind == 'keys') return step(0, index); 15491 if (kind == 'values') return step(0, O[index]); 15492 return step(0, [index, O[index]]); 15493 }, 'values'); 15494 15495// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) 15496 Iterators.Arguments = Iterators.Array; 15497 15498 addToUnscopables('keys'); 15499 addToUnscopables('values'); 15500 addToUnscopables('entries'); 15501 15502 15503 /***/ 15504 }), 15505 /* 216 */
vendor: 5,848 bytes, lines 15506-15623
15506 /***/ (function (module, exports) { 15507 15508 module.exports = function () { /* empty */ 15509 }; 15510 15511 15512 /***/ 15513 }), 15514 /* 217 */ 15515 /***/ (function (module, exports) { 15516 15517 module.exports = function (done, value) { 15518 return {value: value, done: !!done}; 15519 }; 15520 15521 15522 /***/ 15523 }), 15524 /* 218 */ 15525 /***/ (function (module, exports, __webpack_require__) { 15526 15527 "use strict"; 15528 15529 var LIBRARY = __webpack_require__(41); 15530 var global = __webpack_require__(8); 15531 var ctx = __webpack_require__(29); 15532 var classof = __webpack_require__(76); 15533 var $export = __webpack_require__(11); 15534 var isObject = __webpack_require__(20); 15535 var aFunction = __webpack_require__(51); 15536 var anInstance = __webpack_require__(219); 15537 var forOf = __webpack_require__(220); 15538 var speciesConstructor = __webpack_require__(109); 15539 var task = __webpack_require__(110).set; 15540 var microtask = __webpack_require__(222)(); 15541 var newPromiseCapabilityModule = __webpack_require__(78); 15542 var perform = __webpack_require__(111); 15543 var userAgent = __webpack_require__(223); 15544 var promiseResolve = __webpack_require__(112); 15545 var PROMISE = 'Promise'; 15546 var TypeError = global.TypeError; 15547 var process = global.process; 15548 var versions = process && process.versions; 15549 var v8 = versions && versions.v8 || ''; 15550 var $Promise = global[PROMISE]; 15551 var isNode = classof(process) == 'process'; 15552 var empty = function () { /* empty */ 15553 }; 15554 var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper; 15555 var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f; 15556 15557 var USE_NATIVE = !!function () { 15558 try { 15559 // correct subclassing with @@species support 15560 var promise = $Promise.resolve(1); 15561 var FakePromise = (promise.constructor = {})[__webpack_require__(9)('species')] = function (exec) { 15562 exec(empty, empty); 15563 }; 15564 // unhandled rejections tracking support, NodeJS Promise without it fails @@species test 15565 return (isNode || typeof PromiseRejectionEvent == 'function') 15566 && promise.then(empty) instanceof FakePromise 15567 // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables 15568 // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 15569 // we can't detect it synchronously, so just check versions 15570 && v8.indexOf('6.6') !== 0 15571 && userAgent.indexOf('Chrome/66') === -1; 15572 } catch (e) { /* empty */ 15573 } 15574 }(); 15575 15576// helpers 15577 var isThenable = function (it) { 15578 var then; 15579 return isObject(it) && typeof (then = it.then) == 'function' ? then : false; 15580 }; 15581 var notify = function (promise, isReject) { 15582 if (promise._n) return; 15583 promise._n = true; 15584 var chain = promise._c; 15585 microtask(function () { 15586 var value = promise._v; 15587 var ok = promise._s == 1; 15588 var i = 0; 15589 var run = function (reaction) { 15590 var handler = ok ? reaction.ok : reaction.fail; 15591 var resolve = reaction.resolve; 15592 var reject = reaction.reject; 15593 var domain = reaction.domain; 15594 var result, then, exited; 15595 try { 15596 if (handler) { 15597 if (!ok) { 15598 if (promise._h == 2) onHandleUnhandled(promise); 15599 promise._h = 1; 15600 } 15601 if (handler === true) result = value; 15602 else { 15603 if (domain) domain.enter(); 15604 result = handler(value); // may throw 15605 if (domain) { 15606 domain.exit(); 15607 exited = true; 15608 } 15609 } 15610 if (result === reaction.promise) { 15611 reject(TypeError('Promise-chain cycle')); 15612 } else if (then = isThenable(result)) { 15613 then.call(result, resolve, reject); 15614 } else resolve(result); 15615 } else reject(value); 15616 } catch (e) { 15617 if (domain && !exited) domain.exit(); 15618 reject(e); 15619 } 15620 }; 15621 while (chain.length > i) run(chain[i++]); // variable length - can't use forEach 15622 promise._c = []; 15623 promise._n = false;
vendor: 8,687 bytes, lines 15624-15788
15624 if (isReject && !promise._h) onUnhandled(promise); 15625 }); 15626 }; 15627 var onUnhandled = function (promise) { 15628 task.call(global, function () { 15629 var value = promise._v; 15630 var unhandled = isUnhandled(promise); 15631 var result, handler, console; 15632 if (unhandled) { 15633 result = perform(function () { 15634 if (isNode) { 15635 process.emit('unhandledRejection', value, promise); 15636 } else if (handler = global.onunhandledrejection) { 15637 handler({promise: promise, reason: value}); 15638 } else if ((console = global.console) && console.error) { 15639 console.error('Unhandled promise rejection', value); 15640 } 15641 }); 15642 // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should 15643 promise._h = isNode || isUnhandled(promise) ? 2 : 1; 15644 } 15645 promise._a = undefined; 15646 if (unhandled && result.e) throw result.v; 15647 }); 15648 }; 15649 var isUnhandled = function (promise) { 15650 return promise._h !== 1 && (promise._a || promise._c).length === 0; 15651 }; 15652 var onHandleUnhandled = function (promise) { 15653 task.call(global, function () { 15654 var handler; 15655 if (isNode) { 15656 process.emit('rejectionHandled', promise); 15657 } else if (handler = global.onrejectionhandled) { 15658 handler({promise: promise, reason: promise._v}); 15659 } 15660 }); 15661 }; 15662 var $reject = function (value) { 15663 var promise = this; 15664 if (promise._d) return; 15665 promise._d = true; 15666 promise = promise._w || promise; // unwrap 15667 promise._v = value; 15668 promise._s = 2; 15669 if (!promise._a) promise._a = promise._c.slice(); 15670 notify(promise, true); 15671 }; 15672 var $resolve = function (value) { 15673 var promise = this; 15674 var then; 15675 if (promise._d) return; 15676 promise._d = true; 15677 promise = promise._w || promise; // unwrap 15678 try { 15679 if (promise === value) throw TypeError("Promise can't be resolved itself"); 15680 if (then = isThenable(value)) { 15681 microtask(function () { 15682 var wrapper = {_w: promise, _d: false}; // wrap 15683 try { 15684 then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1)); 15685 } catch (e) { 15686 $reject.call(wrapper, e); 15687 } 15688 }); 15689 } else { 15690 promise._v = value; 15691 promise._s = 1; 15692 notify(promise, false); 15693 } 15694 } catch (e) { 15695 $reject.call({_w: promise, _d: false}, e); // wrap 15696 } 15697 }; 15698 15699// constructor polyfill 15700 if (!USE_NATIVE) { 15701 // 25.4.3.1 Promise(executor) 15702 $Promise = function Promise(executor) { 15703 anInstance(this, $Promise, PROMISE, '_h'); 15704 aFunction(executor); 15705 Internal.call(this); 15706 try { 15707 executor(ctx($resolve, this, 1), ctx($reject, this, 1)); 15708 } catch (err) { 15709 $reject.call(this, err); 15710 } 15711 }; 15712 // eslint-disable-next-line no-unused-vars 15713 Internal = function Promise(executor) { 15714 this._c = []; // <- awaiting reactions 15715 this._a = undefined; // <- checked in isUnhandled reactions 15716 this._s = 0; // <- state 15717 this._d = false; // <- done 15718 this._v = undefined; // <- value 15719 this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled 15720 this._n = false; // <- notify 15721 }; 15722 Internal.prototype = __webpack_require__(224)($Promise.prototype, { 15723 // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) 15724 then: function then(onFulfilled, onRejected) { 15725 var reaction = newPromiseCapability(speciesConstructor(this, $Promise)); 15726 reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true; 15727 reaction.fail = typeof onRejected == 'function' && onRejected; 15728 reaction.domain = isNode ? process.domain : undefined; 15729 this._c.push(reaction); 15730 if (this._a) this._a.push(reaction); 15731 if (this._s) notify(this, false); 15732 return reaction.promise; 15733 }, 15734 // 25.4.5.1 Promise.prototype.catch(onRejected) 15735 'catch': function (onRejected) { 15736 return this.then(undefined, onRejected); 15737 } 15738 }); 15739 OwnPromiseCapability = function () { 15740 var promise = new Internal(); 15741 this.promise = promise; 15742 this.resolve = ctx($resolve, promise, 1); 15743 this.reject = ctx($reject, promise, 1); 15744 }; 15745 newPromiseCapabilityModule.f = newPromiseCapability = function (C) { 15746 return C === $Promise || C === Wrapper 15747 ? new OwnPromiseCapability(C) 15748 : newGenericPromiseCapability(C); 15749 }; 15750 } 15751 15752 $export($export.G + $export.W + $export.F * !USE_NATIVE, {Promise: $Promise}); 15753 __webpack_require__(53)($Promise, PROMISE); 15754 __webpack_require__(225)(PROMISE); 15755 Wrapper = __webpack_require__(7)[PROMISE]; 15756 15757// statics 15758 $export($export.S + $export.F * !USE_NATIVE, PROMISE, { 15759 // 25.4.4.5 Promise.reject(r) 15760 reject: function reject(r) { 15761 var capability = newPromiseCapability(this); 15762 var $$reject = capability.reject; 15763 $$reject(r); 15764 return capability.promise; 15765 } 15766 }); 15767 $export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, { 15768 // 25.4.4.6 Promise.resolve(x) 15769 resolve: function resolve(x) { 15770 return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x); 15771 } 15772 }); 15773 $export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(113)(function (iter) { 15774 $Promise.all(iter)['catch'](empty); 15775 })), PROMISE, { 15776 // 25.4.4.1 Promise.all(iterable) 15777 all: function all(iterable) { 15778 var C = this; 15779 var capability = newPromiseCapability(C); 15780 var resolve = capability.resolve; 15781 var reject = capability.reject; 15782 var result = perform(function () { 15783 var values = []; 15784 var index = 0; 15785 var remaining = 1; 15786 forOf(iterable, false, function (promise) { 15787 var $index = index++; 15788 var alreadyCalled = false;
vendor: 19,658 bytes, lines 15789-16268
15789 values.push(undefined); 15790 remaining++; 15791 C.resolve(promise).then(function (value) { 15792 if (alreadyCalled) return; 15793 alreadyCalled = true; 15794 values[$index] = value; 15795 --remaining || resolve(values); 15796 }, reject); 15797 }); 15798 --remaining || resolve(values); 15799 }); 15800 if (result.e) reject(result.v); 15801 return capability.promise; 15802 }, 15803 // 25.4.4.4 Promise.race(iterable) 15804 race: function race(iterable) { 15805 var C = this; 15806 var capability = newPromiseCapability(C); 15807 var reject = capability.reject; 15808 var result = perform(function () { 15809 forOf(iterable, false, function (promise) { 15810 C.resolve(promise).then(capability.resolve, reject); 15811 }); 15812 }); 15813 if (result.e) reject(result.v); 15814 return capability.promise; 15815 } 15816 }); 15817 15818 15819 /***/ 15820 }), 15821 /* 219 */ 15822 /***/ (function (module, exports) { 15823 15824 module.exports = function (it, Constructor, name, forbiddenField) { 15825 if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) { 15826 throw TypeError(name + ': incorrect invocation!'); 15827 } 15828 return it; 15829 }; 15830 15831 15832 /***/ 15833 }), 15834 /* 220 */ 15835 /***/ (function (module, exports, __webpack_require__) { 15836 15837 var ctx = __webpack_require__(29); 15838 var call = __webpack_require__(107); 15839 var isArrayIter = __webpack_require__(108); 15840 var anObject = __webpack_require__(14); 15841 var toLength = __webpack_require__(72); 15842 var getIterFn = __webpack_require__(77); 15843 var BREAK = {}; 15844 var RETURN = {}; 15845 var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) { 15846 var iterFn = ITERATOR ? function () { 15847 return iterable; 15848 } : getIterFn(iterable); 15849 var f = ctx(fn, that, entries ? 2 : 1); 15850 var index = 0; 15851 var length, step, iterator, result; 15852 if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!'); 15853 // fast case for arrays with default iterator 15854 if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) { 15855 result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]); 15856 if (result === BREAK || result === RETURN) return result; 15857 } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) { 15858 result = call(iterator, f, step.value, entries); 15859 if (result === BREAK || result === RETURN) return result; 15860 } 15861 }; 15862 exports.BREAK = BREAK; 15863 exports.RETURN = RETURN; 15864 15865 15866 /***/ 15867 }), 15868 /* 221 */ 15869 /***/ (function (module, exports) { 15870 15871// fast apply, http://jsperf.lnkit.com/fast-apply/5 15872 module.exports = function (fn, args, that) { 15873 var un = that === undefined; 15874 switch (args.length) { 15875 case 0: 15876 return un ? fn() 15877 : fn.call(that); 15878 case 1: 15879 return un ? fn(args[0]) 15880 : fn.call(that, args[0]); 15881 case 2: 15882 return un ? fn(args[0], args[1]) 15883 : fn.call(that, args[0], args[1]); 15884 case 3: 15885 return un ? fn(args[0], args[1], args[2]) 15886 : fn.call(that, args[0], args[1], args[2]); 15887 case 4: 15888 return un ? fn(args[0], args[1], args[2], args[3]) 15889 : fn.call(that, args[0], args[1], args[2], args[3]); 15890 } 15891 return fn.apply(that, args); 15892 }; 15893 15894 15895 /***/ 15896 }), 15897 /* 222 */ 15898 /***/ (function (module, exports, __webpack_require__) { 15899 15900 var global = __webpack_require__(8); 15901 var macrotask = __webpack_require__(110).set; 15902 var Observer = global.MutationObserver || global.WebKitMutationObserver; 15903 var process = global.process; 15904 var Promise = global.Promise; 15905 var isNode = __webpack_require__(43)(process) == 'process'; 15906 15907 module.exports = function () { 15908 var head, last, notify; 15909 15910 var flush = function () { 15911 var parent, fn; 15912 if (isNode && (parent = process.domain)) parent.exit(); 15913 while (head) { 15914 fn = head.fn; 15915 head = head.next; 15916 try { 15917 fn(); 15918 } catch (e) { 15919 if (head) notify(); 15920 else last = undefined; 15921 throw e; 15922 } 15923 } 15924 last = undefined; 15925 if (parent) parent.enter(); 15926 }; 15927 15928 // Node.js 15929 if (isNode) { 15930 notify = function () { 15931 process.nextTick(flush); 15932 }; 15933 // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339 15934 } else if (Observer && !(global.navigator && global.navigator.standalone)) { 15935 var toggle = true; 15936 var node = document.createTextNode(''); 15937 new Observer(flush).observe(node, {characterData: true}); // eslint-disable-line no-new 15938 notify = function () { 15939 node.data = toggle = !toggle; 15940 }; 15941 // environments with maybe non-completely correct, but existent Promise 15942 } else if (Promise && Promise.resolve) { 15943 // Promise.resolve without an argument throws an error in LG WebOS 2 15944 var promise = Promise.resolve(undefined); 15945 notify = function () { 15946 promise.then(flush); 15947 }; 15948 // for other environments - macrotask based on: 15949 // - setImmediate 15950 // - MessageChannel 15951 // - window.postMessag 15952 // - onreadystatechange 15953 // - setTimeout 15954 } else { 15955 notify = function () { 15956 // strange IE + webpack dev server bug - use .call(global) 15957 macrotask.call(global, flush); 15958 }; 15959 } 15960 15961 return function (fn) { 15962 var task = {fn: fn, next: undefined}; 15963 if (last) last.next = task; 15964 if (!head) { 15965 head = task; 15966 notify(); 15967 } 15968 last = task; 15969 }; 15970 }; 15971 15972 15973 /***/ 15974 }), 15975 /* 223 */ 15976 /***/ (function (module, exports, __webpack_require__) { 15977 15978 var global = __webpack_require__(8); 15979 var navigator = global.navigator; 15980 15981 module.exports = navigator && navigator.userAgent || ''; 15982 15983 15984 /***/ 15985 }), 15986 /* 224 */ 15987 /***/ (function (module, exports, __webpack_require__) { 15988 15989 var hide = __webpack_require__(23); 15990 module.exports = function (target, src, safe) { 15991 for (var key in src) { 15992 if (safe && target[key]) target[key] = src[key]; 15993 else hide(target, key, src[key]); 15994 } 15995 return target; 15996 }; 15997 15998 15999 /***/ 16000 }), 16001 /* 225 */ 16002 /***/ (function (module, exports, __webpack_require__) { 16003 16004 "use strict"; 16005 16006 var global = __webpack_require__(8); 16007 var core = __webpack_require__(7); 16008 var dP = __webpack_require__(16); 16009 var DESCRIPTORS = __webpack_require__(17); 16010 var SPECIES = __webpack_require__(9)('species'); 16011 16012 module.exports = function (KEY) { 16013 var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY]; 16014 if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, { 16015 configurable: true, 16016 get: function () { 16017 return this; 16018 } 16019 }); 16020 }; 16021 16022 16023 /***/ 16024 }), 16025 /* 226 */ 16026 /***/ (function (module, exports, __webpack_require__) { 16027 16028 "use strict"; 16029// https://github.com/tc39/proposal-promise-finally 16030 16031 var $export = __webpack_require__(11); 16032 var core = __webpack_require__(7); 16033 var global = __webpack_require__(8); 16034 var speciesConstructor = __webpack_require__(109); 16035 var promiseResolve = __webpack_require__(112); 16036 16037 $export($export.P + $export.R, 'Promise', { 16038 'finally': function (onFinally) { 16039 var C = speciesConstructor(this, core.Promise || global.Promise); 16040 var isFunction = typeof onFinally == 'function'; 16041 return this.then( 16042 isFunction ? function (x) { 16043 return promiseResolve(C, onFinally()).then(function () { 16044 return x; 16045 }); 16046 } : onFinally, 16047 isFunction ? function (e) { 16048 return promiseResolve(C, onFinally()).then(function () { 16049 throw e; 16050 }); 16051 } : onFinally 16052 ); 16053 } 16054 }); 16055 16056 16057 /***/ 16058 }), 16059 /* 227 */ 16060 /***/ (function (module, exports, __webpack_require__) { 16061 16062 "use strict"; 16063 16064// https://github.com/tc39/proposal-promise-try 16065 var $export = __webpack_require__(11); 16066 var newPromiseCapability = __webpack_require__(78); 16067 var perform = __webpack_require__(111); 16068 16069 $export($export.S, 'Promise', { 16070 'try': function (callbackfn) { 16071 var promiseCapability = newPromiseCapability.f(this); 16072 var result = perform(callbackfn); 16073 (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v); 16074 return promiseCapability.promise; 16075 } 16076 }); 16077 16078 16079 /***/ 16080 }), 16081 /* 228 */ 16082 /***/ (function (module, exports, __webpack_require__) { 16083 16084 module.exports = {"default": __webpack_require__(229), __esModule: true}; 16085 16086 /***/ 16087 }), 16088 /* 229 */ 16089 /***/ (function (module, exports, __webpack_require__) { 16090 16091 __webpack_require__(230); 16092 module.exports = __webpack_require__(7).Object.assign; 16093 16094 16095 /***/ 16096 }), 16097 /* 230 */ 16098 /***/ (function (module, exports, __webpack_require__) { 16099 16100// 19.1.3.1 Object.assign(target, source) 16101 var $export = __webpack_require__(11); 16102 16103 $export($export.S + $export.F, 'Object', {assign: __webpack_require__(231)}); 16104 16105 16106 /***/ 16107 }), 16108 /* 231 */ 16109 /***/ (function (module, exports, __webpack_require__) { 16110 16111 "use strict"; 16112 16113// 19.1.2.1 Object.assign(target, source, ...) 16114 var DESCRIPTORS = __webpack_require__(17); 16115 var getKeys = __webpack_require__(42); 16116 var gOPS = __webpack_require__(79); 16117 var pIE = __webpack_require__(55); 16118 var toObject = __webpack_require__(33); 16119 var IObject = __webpack_require__(104); 16120 var $assign = Object.assign; 16121 16122// should work with symbols and should have deterministic property order (V8 bug) 16123 module.exports = !$assign || __webpack_require__(30)(function () { 16124 var A = {}; 16125 var B = {}; 16126 // eslint-disable-next-line no-undef 16127 var S = Symbol(); 16128 var K = 'abcdefghijklmnopqrst'; 16129 A[S] = 7; 16130 K.split('').forEach(function (k) { 16131 B[k] = k; 16132 }); 16133 return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; 16134 }) ? function assign(target, source) { // eslint-disable-line no-unused-vars 16135 var T = toObject(target); 16136 var aLen = arguments.length; 16137 var index = 1; 16138 var getSymbols = gOPS.f; 16139 var isEnum = pIE.f; 16140 while (aLen > index) { 16141 var S = IObject(arguments[index++]); 16142 var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S); 16143 var length = keys.length; 16144 var j = 0; 16145 var key; 16146 while (length > j) { 16147 key = keys[j++]; 16148 if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key]; 16149 } 16150 } 16151 return T; 16152 } : $assign; 16153 16154 16155 /***/ 16156 }), 16157 /* 232 */ 16158 /***/ (function (module, exports, __webpack_require__) { 16159 16160 __webpack_require__(233); 16161 module.exports = __webpack_require__(7).Object.getPrototypeOf; 16162 16163 16164 /***/ 16165 }), 16166 /* 233 */ 16167 /***/ (function (module, exports, __webpack_require__) { 16168 16169// 19.1.2.9 Object.getPrototypeOf(O) 16170 var toObject = __webpack_require__(33); 16171 var $getPrototypeOf = __webpack_require__(106); 16172 16173 __webpack_require__(115)('getPrototypeOf', function () { 16174 return function getPrototypeOf(it) { 16175 return $getPrototypeOf(toObject(it)); 16176 }; 16177 }); 16178 16179 16180 /***/ 16181 }), 16182 /* 234 */ 16183 /***/ (function (module, exports, __webpack_require__) { 16184 16185 module.exports = {"default": __webpack_require__(235), __esModule: true}; 16186 16187 /***/ 16188 }), 16189 /* 235 */ 16190 /***/ (function (module, exports, __webpack_require__) { 16191 16192 __webpack_require__(40); 16193 __webpack_require__(54); 16194 module.exports = __webpack_require__(80).f('iterator'); 16195 16196 16197 /***/ 16198 }), 16199 /* 236 */ 16200 /***/ (function (module, exports, __webpack_require__) { 16201 16202 module.exports = {"default": __webpack_require__(237), __esModule: true}; 16203 16204 /***/ 16205 }), 16206 /* 237 */ 16207 /***/ (function (module, exports, __webpack_require__) { 16208 16209 __webpack_require__(238); 16210 __webpack_require__(100); 16211 __webpack_require__(243); 16212 __webpack_require__(244); 16213 module.exports = __webpack_require__(7).Symbol; 16214 16215 16216 /***/ 16217 }), 16218 /* 238 */ 16219 /***/ (function (module, exports, __webpack_require__) { 16220 16221 "use strict"; 16222 16223// ECMAScript 6 symbols shim 16224 var global = __webpack_require__(8); 16225 var has = __webpack_require__(24); 16226 var DESCRIPTORS = __webpack_require__(17); 16227 var $export = __webpack_require__(11); 16228 var redefine = __webpack_require__(102); 16229 var META = __webpack_require__(239).KEY; 16230 var $fails = __webpack_require__(30); 16231 var shared = __webpack_require__(74); 16232 var setToStringTag = __webpack_require__(53); 16233 var uid = __webpack_require__(52); 16234 var wks = __webpack_require__(9); 16235 var wksExt = __webpack_require__(80); 16236 var wksDefine = __webpack_require__(81); 16237 var enumKeys = __webpack_require__(240); 16238 var isArray = __webpack_require__(241); 16239 var anObject = __webpack_require__(14); 16240 var isObject = __webpack_require__(20); 16241 var toObject = __webpack_require__(33); 16242 var toIObject = __webpack_require__(32); 16243 var toPrimitive = __webpack_require__(67); 16244 var createDesc = __webpack_require__(39); 16245 var _create = __webpack_require__(71); 16246 var gOPNExt = __webpack_require__(242); 16247 var $GOPD = __webpack_require__(119); 16248 var $GOPS = __webpack_require__(79); 16249 var $DP = __webpack_require__(16); 16250 var $keys = __webpack_require__(42); 16251 var gOPD = $GOPD.f; 16252 var dP = $DP.f; 16253 var gOPN = gOPNExt.f; 16254 var $Symbol = global.Symbol; 16255 var $JSON = global.JSON; 16256 var _stringify = $JSON && $JSON.stringify; 16257 var PROTOTYPE = 'prototype'; 16258 var HIDDEN = wks('_hidden'); 16259 var TO_PRIMITIVE = wks('toPrimitive'); 16260 var isEnum = {}.propertyIsEnumerable; 16261 var SymbolRegistry = shared('symbol-registry'); 16262 var AllSymbols = shared('symbols'); 16263 var OPSymbols = shared('op-symbols'); 16264 var ObjectProto = Object[PROTOTYPE]; 16265 var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f; 16266 var QObject = global.QObject; 16267// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 16268 var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findC
vendor: 5,072 bytes, lines 16268-16367
16268hild; 16269 16270// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 16271 var setSymbolDesc = DESCRIPTORS && $fails(function () { 16272 return _create(dP({}, 'a', { 16273 get: function () { 16274 return dP(this, 'a', {value: 7}).a; 16275 } 16276 })).a != 7; 16277 }) ? function (it, key, D) { 16278 var protoDesc = gOPD(ObjectProto, key); 16279 if (protoDesc) delete ObjectProto[key]; 16280 dP(it, key, D); 16281 if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); 16282 } : dP; 16283 16284 var wrap = function (tag) { 16285 var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); 16286 sym._k = tag; 16287 return sym; 16288 }; 16289 16290 var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { 16291 return typeof it == 'symbol'; 16292 } : function (it) { 16293 return it instanceof $Symbol; 16294 }; 16295 16296 var $defineProperty = function defineProperty(it, key, D) { 16297 if (it === ObjectProto) $defineProperty(OPSymbols, key, D); 16298 anObject(it); 16299 key = toPrimitive(key, true); 16300 anObject(D); 16301 if (has(AllSymbols, key)) { 16302 if (!D.enumerable) { 16303 if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); 16304 it[HIDDEN][key] = true; 16305 } else { 16306 if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; 16307 D = _create(D, {enumerable: createDesc(0, false)}); 16308 } 16309 return setSymbolDesc(it, key, D); 16310 } 16311 return dP(it, key, D); 16312 }; 16313 var $defineProperties = function defineProperties(it, P) { 16314 anObject(it); 16315 var keys = enumKeys(P = toIObject(P)); 16316 var i = 0; 16317 var l = keys.length; 16318 var key; 16319 while (l > i) $defineProperty(it, key = keys[i++], P[key]); 16320 return it; 16321 }; 16322 var $create = function create(it, P) { 16323 return P === undefined ? _create(it) : $defineProperties(_create(it), P); 16324 }; 16325 var $propertyIsEnumerable = function propertyIsEnumerable(key) { 16326 var E = isEnum.call(this, key = toPrimitive(key, true)); 16327 if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; 16328 return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; 16329 }; 16330 var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { 16331 it = toIObject(it); 16332 key = toPrimitive(key, true); 16333 if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; 16334 var D = gOPD(it, key); 16335 if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; 16336 return D; 16337 }; 16338 var $getOwnPropertyNames = function getOwnPropertyNames(it) { 16339 var names = gOPN(toIObject(it)); 16340 var result = []; 16341 var i = 0; 16342 var key; 16343 while (names.length > i) { 16344 if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); 16345 } 16346 return result; 16347 }; 16348 var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { 16349 var IS_OP = it === ObjectProto; 16350 var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); 16351 var result = []; 16352 var i = 0; 16353 var key; 16354 while (names.length > i) { 16355 if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); 16356 } 16357 return result; 16358 }; 16359 16360// 19.4.1.1 Symbol([description]) 16361 if (!USE_NATIVE) { 16362 $Symbol = function Symbol() { 16363 if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); 16364 var tag = uid(arguments.length > 0 ? arguments[0] : undefined); 16365 var $set = function (value) { 16366 if (this === ObjectProto) $set.call(OPSymbols, value); 16367 if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
vendor: 3,583 bytes, lines 16368-16437
16368 setSymbolDesc(this, tag, createDesc(1, value)); 16369 }; 16370 if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, {configurable: true, set: $set}); 16371 return wrap(tag); 16372 }; 16373 redefine($Symbol[PROTOTYPE], 'toString', function toString() { 16374 return this._k; 16375 }); 16376 16377 $GOPD.f = $getOwnPropertyDescriptor; 16378 $DP.f = $defineProperty; 16379 __webpack_require__(118).f = gOPNExt.f = $getOwnPropertyNames; 16380 __webpack_require__(55).f = $propertyIsEnumerable; 16381 $GOPS.f = $getOwnPropertySymbols; 16382 16383 if (DESCRIPTORS && !__webpack_require__(41)) { 16384 redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); 16385 } 16386 16387 wksExt.f = function (name) { 16388 return wrap(wks(name)); 16389 }; 16390 } 16391 16392 $export($export.G + $export.W + $export.F * !USE_NATIVE, {Symbol: $Symbol}); 16393 16394 for (var es6Symbols = ( 16395 // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 16396 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' 16397 ).split(','), j = 0; es6Symbols.length > j;) wks(es6Symbols[j++]); 16398 16399 for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); 16400 16401 $export($export.S + $export.F * !USE_NATIVE, 'Symbol', { 16402 // 19.4.2.1 Symbol.for(key) 16403 'for': function (key) { 16404 return has(SymbolRegistry, key += '') 16405 ? SymbolRegistry[key] 16406 : SymbolRegistry[key] = $Symbol(key); 16407 }, 16408 // 19.4.2.5 Symbol.keyFor(sym) 16409 keyFor: function keyFor(sym) { 16410 if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); 16411 for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; 16412 }, 16413 useSetter: function () { 16414 setter = true; 16415 }, 16416 useSimple: function () { 16417 setter = false; 16418 } 16419 }); 16420 16421 $export($export.S + $export.F * !USE_NATIVE, 'Object', { 16422 // 19.1.2.2 Object.create(O [, Properties]) 16423 create: $create, 16424 // 19.1.2.4 Object.defineProperty(O, P, Attributes) 16425 defineProperty: $defineProperty, 16426 // 19.1.2.3 Object.defineProperties(O, Properties) 16427 defineProperties: $defineProperties, 16428 // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) 16429 getOwnPropertyDescriptor: $getOwnPropertyDescriptor, 16430 // 19.1.2.7 Object.getOwnPropertyNames(O) 16431 getOwnPropertyNames: $getOwnPropertyNames, 16432 // 19.1.2.8 Object.getOwnPropertySymbols(O) 16433 getOwnPropertySymbols: $getOwnPropertySymbols 16434 }); 16435 16436// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives 16437// https://bugs.chromium.org/p/v8/issues/detail?id=3443
vendor: 4,255 bytes, lines 16438-16525
16438 var FAILS_ON_PRIMITIVES = $fails(function () { 16439 $GOPS.f(1); 16440 }); 16441 16442 $export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', { 16443 getOwnPropertySymbols: function getOwnPropertySymbols(it) { 16444 return $GOPS.f(toObject(it)); 16445 } 16446 }); 16447 16448// 24.3.2 JSON.stringify(value [, replacer [, space]]) 16449 $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { 16450 var S = $Symbol(); 16451 // MS Edge converts symbol values to JSON as {} 16452 // WebKit converts symbol values to JSON as null 16453 // V8 throws on boxed symbols 16454 return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}'; 16455 })), 'JSON', { 16456 stringify: function stringify(it) { 16457 var args = [it]; 16458 var i = 1; 16459 var replacer, $replacer; 16460 while (arguments.length > i) args.push(arguments[i++]); 16461 $replacer = replacer = args[1]; 16462 if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined 16463 if (!isArray(replacer)) replacer = function (key, value) { 16464 if (typeof $replacer == 'function') value = $replacer.call(this, key, value); 16465 if (!isSymbol(value)) return value; 16466 }; 16467 args[1] = replacer; 16468 return _stringify.apply($JSON, args); 16469 } 16470 }); 16471 16472// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) 16473 $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(23)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); 16474// 19.4.3.5 Symbol.prototype[@@toStringTag] 16475 setToStringTag($Symbol, 'Symbol'); 16476// 20.2.1.9 Math[@@toStringTag] 16477 setToStringTag(Math, 'Math', true); 16478// 24.3.3 JSON[@@toStringTag] 16479 setToStringTag(global.JSON, 'JSON', true); 16480 16481 16482 /***/ 16483 }), 16484 /* 239 */ 16485 /***/ (function (module, exports, __webpack_require__) { 16486 16487 var META = __webpack_require__(52)('meta'); 16488 var isObject = __webpack_require__(20); 16489 var has = __webpack_require__(24); 16490 var setDesc = __webpack_require__(16).f; 16491 var id = 0; 16492 var isExtensible = Object.isExtensible || function () { 16493 return true; 16494 }; 16495 var FREEZE = !__webpack_require__(30)(function () { 16496 return isExtensible(Object.preventExtensions({})); 16497 }); 16498 var setMeta = function (it) { 16499 setDesc(it, META, { 16500 value: { 16501 i: 'O' + ++id, // object ID 16502 w: {} // weak collections IDs 16503 } 16504 }); 16505 }; 16506 var fastKey = function (it, create) { 16507 // return primitive with prefix 16508 if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; 16509 if (!has(it, META)) { 16510 // can't set metadata to uncaught frozen object 16511 if (!isExtensible(it)) return 'F'; 16512 // not necessary to add metadata 16513 if (!create) return 'E'; 16514 // add missing metadata 16515 setMeta(it); 16516 // return object ID 16517 } 16518 return it[META].i; 16519 }; 16520 var getWeak = function (it, create) { 16521 if (!has(it, META)) { 16522 // can't set metadata to uncaught frozen object 16523 if (!isExtensible(it)) return true; 16524 // not necessary to add metadata 16525 if (!create) return false;
vendor: 6,077 bytes, lines 16526-16695
16526 // add missing metadata 16527 setMeta(it); 16528 // return hash weak collections IDs 16529 } 16530 return it[META].w; 16531 }; 16532// add metadata on freeze-family methods calling 16533 var onFreeze = function (it) { 16534 if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); 16535 return it; 16536 }; 16537 var meta = module.exports = { 16538 KEY: META, 16539 NEED: false, 16540 fastKey: fastKey, 16541 getWeak: getWeak, 16542 onFreeze: onFreeze 16543 }; 16544 16545 16546 /***/ 16547 }), 16548 /* 240 */ 16549 /***/ (function (module, exports, __webpack_require__) { 16550 16551// all enumerable object keys, includes symbols 16552 var getKeys = __webpack_require__(42); 16553 var gOPS = __webpack_require__(79); 16554 var pIE = __webpack_require__(55); 16555 module.exports = function (it) { 16556 var result = getKeys(it); 16557 var getSymbols = gOPS.f; 16558 if (getSymbols) { 16559 var symbols = getSymbols(it); 16560 var isEnum = pIE.f; 16561 var i = 0; 16562 var key; 16563 while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); 16564 } 16565 return result; 16566 }; 16567 16568 16569 /***/ 16570 }), 16571 /* 241 */ 16572 /***/ (function (module, exports, __webpack_require__) { 16573 16574// 7.2.2 IsArray(argument) 16575 var cof = __webpack_require__(43); 16576 module.exports = Array.isArray || function isArray(arg) { 16577 return cof(arg) == 'Array'; 16578 }; 16579 16580 16581 /***/ 16582 }), 16583 /* 242 */ 16584 /***/ (function (module, exports, __webpack_require__) { 16585 16586// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window 16587 var toIObject = __webpack_require__(32); 16588 var gOPN = __webpack_require__(118).f; 16589 var toString = {}.toString; 16590 16591 var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames 16592 ? Object.getOwnPropertyNames(window) : []; 16593 16594 var getWindowNames = function (it) { 16595 try { 16596 return gOPN(it); 16597 } catch (e) { 16598 return windowNames.slice(); 16599 } 16600 }; 16601 16602 module.exports.f = function getOwnPropertyNames(it) { 16603 return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); 16604 }; 16605 16606 16607 /***/ 16608 }), 16609 /* 243 */ 16610 /***/ (function (module, exports, __webpack_require__) { 16611 16612 __webpack_require__(81)('asyncIterator'); 16613 16614 16615 /***/ 16616 }), 16617 /* 244 */ 16618 /***/ (function (module, exports, __webpack_require__) { 16619 16620 __webpack_require__(81)('observable'); 16621 16622 16623 /***/ 16624 }), 16625 /* 245 */ 16626 /***/ (function (module, exports, __webpack_require__) { 16627 16628 module.exports = {"default": __webpack_require__(246), __esModule: true}; 16629 16630 /***/ 16631 }), 16632 /* 246 */ 16633 /***/ (function (module, exports, __webpack_require__) { 16634 16635 __webpack_require__(247); 16636 module.exports = __webpack_require__(7).Object.setPrototypeOf; 16637 16638 16639 /***/ 16640 }), 16641 /* 247 */ 16642 /***/ (function (module, exports, __webpack_require__) { 16643 16644// 19.1.3.19 Object.setPrototypeOf(O, proto) 16645 var $export = __webpack_require__(11); 16646 $export($export.S, 'Object', {setPrototypeOf: __webpack_require__(248).set}); 16647 16648 16649 /***/ 16650 }), 16651 /* 248 */ 16652 /***/ (function (module, exports, __webpack_require__) { 16653 16654// Works with __proto__ only. Old v8 can't work with null proto objects. 16655 /* eslint-disable no-proto */ 16656 var isObject = __webpack_require__(20); 16657 var anObject = __webpack_require__(14); 16658 var check = function (O, proto) { 16659 anObject(O); 16660 if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); 16661 }; 16662 module.exports = { 16663 set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line 16664 function (test, buggy, set) { 16665 try { 16666 set = __webpack_require__(29)(Function.call, __webpack_require__(119).f(Object.prototype, '__proto__').set, 2); 16667 set(test, []); 16668 buggy = !(test instanceof Array); 16669 } catch (e) { 16670 buggy = true; 16671 } 16672 return function setPrototypeOf(O, proto) { 16673 check(O, proto); 16674 if (buggy) O.__proto__ = proto; 16675 else set(O, proto); 16676 return O; 16677 }; 16678 }({}, false) : undefined), 16679 check: check 16680 }; 16681 16682 16683 /***/ 16684 }), 16685 /* 249 */ 16686 /***/ (function (module, exports, __webpack_require__) { 16687 16688 module.exports = {"default": __webpack_require__(250), __esModule: true}; 16689 16690 /***/ 16691 }), 16692 /* 250 */ 16693 /***/ (function (module, exports, __webpack_require__) { 16694 16695 __webpack_require__(251);
vendor: 115,093 bytes, lines 16696-19039
16696 var $Object = __webpack_require__(7).Object; 16697 module.exports = function create(P, D) { 16698 return $Object.create(P, D); 16699 }; 16700 16701 16702 /***/ 16703 }), 16704 /* 251 */ 16705 /***/ (function (module, exports, __webpack_require__) { 16706 16707 var $export = __webpack_require__(11); 16708// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 16709 $export($export.S, 'Object', {create: __webpack_require__(71)}); 16710 16711 16712 /***/ 16713 }), 16714 /* 252 */ 16715 /***/ (function (module, exports, __webpack_require__) { 16716 16717 "use strict"; 16718 16719 16720 Object.defineProperty(exports, "__esModule", { 16721 value: true 16722 }); 16723 16724 var _FlipMove = __webpack_require__(253); 16725 16726 var _FlipMove2 = _interopRequireDefault(_FlipMove); 16727 16728 function _interopRequireDefault(obj) { 16729 return obj && obj.__esModule ? obj : {default: obj}; 16730 } 16731 16732 exports.default = _FlipMove2.default; 16733 /** 16734 * React Flip Move 16735 * (c) 2016-present Joshua Comeau 16736 */ 16737 16738 module.exports = exports['default']; 16739 16740 /***/ 16741 }), 16742 /* 253 */ 16743 /***/ (function (module, exports, __webpack_require__) { 16744 16745 "use strict"; 16746 16747 16748 Object.defineProperty(exports, "__esModule", { 16749 value: true 16750 }); 16751 16752 var _slicedToArray = function () { 16753 function sliceIterator(arr, i) { 16754 var _arr = []; 16755 var _n = true; 16756 var _d = false; 16757 var _e = undefined; 16758 try { 16759 for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { 16760 _arr.push(_s.value); 16761 if (i && _arr.length === i) break; 16762 } 16763 } catch (err) { 16764 _d = true; 16765 _e = err; 16766 } finally { 16767 try { 16768 if (!_n && _i["return"]) _i["return"](); 16769 } finally { 16770 if (_d) throw _e; 16771 } 16772 } 16773 return _arr; 16774 } 16775 16776 return function (arr, i) { 16777 if (Array.isArray(arr)) { 16778 return arr; 16779 } else if (Symbol.iterator in Object(arr)) { 16780 return sliceIterator(arr, i); 16781 } else { 16782 throw new TypeError("Invalid attempt to destructure non-iterable instance"); 16783 } 16784 }; 16785 }(); 16786 16787 var _extends = Object.assign || function (target) { 16788 for (var i = 1; i < arguments.length; i++) { 16789 var source = arguments[i]; 16790 for (var key in source) { 16791 if (Object.prototype.hasOwnProperty.call(source, key)) { 16792 target[key] = source[key]; 16793 } 16794 } 16795 } 16796 return target; 16797 }; 16798 16799 var _createClass = function () { 16800 function defineProperties(target, props) { 16801 for (var i = 0; i < props.length; i++) { 16802 var descriptor = props[i]; 16803 descriptor.enumerable = descriptor.enumerable || false; 16804 descriptor.configurable = true; 16805 if ("value" in descriptor) descriptor.writable = true; 16806 Object.defineProperty(target, descriptor.key, descriptor); 16807 } 16808 } 16809 16810 return function (Constructor, protoProps, staticProps) { 16811 if (protoProps) defineProperties(Constructor.prototype, protoProps); 16812 if (staticProps) defineProperties(Constructor, staticProps); 16813 return Constructor; 16814 }; 16815 }(); 16816 16817 var _react = __webpack_require__(12); 16818 16819 var _react2 = _interopRequireDefault(_react); 16820 16821 __webpack_require__(254); 16822 16823 var _propConverter = __webpack_require__(255); 16824 16825 var _propConverter2 = _interopRequireDefault(_propConverter); 16826 16827 var _domManipulation = __webpack_require__(258); 16828 16829 var _helpers = __webpack_require__(82); 16830 16831 function _interopRequireDefault(obj) { 16832 return obj && obj.__esModule ? obj : {default: obj}; 16833 } 16834 16835 function _classCallCheck(instance, Constructor) { 16836 if (!(instance instanceof Constructor)) { 16837 throw new TypeError("Cannot call a class as a function"); 16838 } 16839 } 16840 16841 function _possibleConstructorReturn(self, call) { 16842 if (!self) { 16843 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 16844 } 16845 return call && (typeof call === "object" || typeof call === "function") ? call : self; 16846 } 16847 16848 function _inherits(subClass, superClass) { 16849 if (typeof superClass !== "function" && superClass !== null) { 16850 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 16851 } 16852 subClass.prototype = Object.create(superClass && superClass.prototype, { 16853 constructor: { 16854 value: subClass, 16855 enumerable: false, 16856 writable: true, 16857 configurable: true 16858 } 16859 }); 16860 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; 16861 } 16862 16863 /** 16864 * React Flip Move 16865 * (c) 2016-present Joshua Comeau 16866 * 16867 * For information on how this code is laid out, check out CODE_TOUR.md 16868 */ 16869 16870 /* eslint-disable react/prop-types */ 16871 16872 var transitionEnd = (0, _domManipulation.whichTransitionEvent)(); 16873 var noBrowserSupport = !transitionEnd; 16874 16875 function getKey(childData) { 16876 return childData.key || ''; 16877 } 16878 16879 var FlipMove = function (_Component) { 16880 _inherits(FlipMove, _Component); 16881 16882 function FlipMove() { 16883 var _ref; 16884 16885 var _temp, _this, _ret; 16886 16887 _classCallCheck(this, FlipMove); 16888 16889 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { 16890 args[_key] = arguments[_key]; 16891 } 16892 16893 return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = FlipMove.__proto__ || Object.getPrototypeOf(FlipMove)).call.apply(_ref, [this].concat(args))), _this), _this.state = { 16894 children: _react.Children.toArray(_this.props.children).map(function (element) { 16895 return _extends({}, element, { 16896 element: element, 16897 appearing: true 16898 }); 16899 }) 16900 }, _this.childrenData = {}, _this.parentData = { 16901 domNode: null, 16902 boundingBox: null 16903 }, _this.heightPlaceholderData = { 16904 domNode: null 16905 }, _this.remainingAnimations = 0, _this.childrenToAnimate = [], _this.runAnimation = function () { 16906 var dynamicChildren = _this.state.children.filter(_this.doesChildNeedToBeAnimated); 16907 16908 dynamicChildren.forEach(function (child, n) { 16909 _this.remainingAnimations += 1; 16910 _this.childrenToAnimate.push(getKey(child)); 16911 _this.animateChild(child, n); 16912 }); 16913 16914 if (typeof _this.props.onStartAll === 'function') { 16915 _this.callChildrenHook(_this.props.onStartAll); 16916 } 16917 }, _this.doesChildNeedToBeAnimated = function (child) { 16918 // If the child doesn't have a key, it's an immovable child (one that we 16919 // do not want to do FLIP stuff to.) 16920 if (!getKey(child)) { 16921 return false; 16922 } 16923 16924 var childData = _this.getChildData(getKey(child)); 16925 var childDomNode = childData.domNode; 16926 var childBoundingBox = childData.boundingBox; 16927 var parentBoundingBox = _this.parentData.boundingBox; 16928 16929 if (!childDomNode) { 16930 return false; 16931 } 16932 16933 var _this$props = _this.props, 16934 appearAnimation = _this$props.appearAnimation, 16935 enterAnimation = _this$props.enterAnimation, 16936 leaveAnimation = _this$props.leaveAnimation, 16937 getPosition = _this$props.getPosition; 16938 16939 16940 var isAppearingWithAnimation = child.appearing && appearAnimation; 16941 var isEnteringWithAnimation = child.entering && enterAnimation; 16942 var isLeavingWithAnimation = child.leaving && leaveAnimation; 16943 16944 if (isAppearingWithAnimation || isEnteringWithAnimation || isLeavingWithAnimation) { 16945 return true; 16946 } 16947 16948 // If it isn't entering/leaving, we want to animate it if it's 16949 // on-screen position has changed. 16950 16951 var _getPositionDelta = (0, _domManipulation.getPositionDelta)({ 16952 childDomNode: childDomNode, 16953 childBoundingBox: childBoundingBox, 16954 parentBoundingBox: parentBoundingBox, 16955 getPosition: getPosition 16956 }), 16957 _getPositionDelta2 = _slicedToArray(_getPositionDelta, 2), 16958 dX = _getPositionDelta2[0], 16959 dY = _getPositionDelta2[1]; 16960 16961 return dX !== 0 || dY !== 0; 16962 }, _temp), _possibleConstructorReturn(_this, _ret); 16963 } 16964 16965 // Copy props.children into state. 16966 // To understand why this is important (and not an anti-pattern), consider 16967 // how "leave" animations work. An item has "left" when the component 16968 // receives a new set of props that do NOT contain the item. 16969 // If we just render the props as-is, the item would instantly disappear. 16970 // We want to keep the item rendered for a little while, until its animation 16971 // can complete. Because we cannot mutate props, we make `state` the source 16972 // of truth. 16973 16974 16975 // FlipMove needs to know quite a bit about its children in order to do 16976 // its job. We store these as a property on the instance. We're not using 16977 // state, because we don't want changes to trigger re-renders, we just 16978 // need a place to keep the data for reference, when changes happen. 16979 // This field should not be accessed directly. Instead, use getChildData, 16980 // putChildData, etc... 16981 16982 16983 // Similarly, track the dom node and box of our parent element. 16984 16985 16986 // If `maintainContainerHeight` prop is set to true, we'll create a 16987 // placeholder element which occupies space so that the parent height 16988 // doesn't change when items are removed from the document flow (which 16989 // happens during leave animations) 16990 16991 16992 // Keep track of remaining animations so we know when to fire the 16993 // all-finished callback, and clean up after ourselves. 16994 // NOTE: we can't simply use childrenToAnimate.length to track remaining 16995 // animations, because we need to maintain the list of animating children, 16996 // to pass to the `onFinishAll` handler. 16997 16998 16999 _createClass(FlipMove, [{ 17000 key: 'componentDidMount', 17001 value: function componentDidMount() { 17002 // Run our `appearAnimation` if it was requested, right after the 17003 // component mounts. 17004 var shouldTriggerFLIP = this.props.appearAnimation && !this.isAnimationDisabled(this.props); 17005 17006 if (shouldTriggerFLIP) { 17007 this.prepForAnimation(); 17008 this.runAnimation(); 17009 } 17010 } 17011 }, { 17012 key: 'componentWillReceiveProps', 17013 value: function componentWillReceiveProps(nextProps) { 17014 // When the component is handed new props, we need to figure out the 17015 // "resting" position of all currently-rendered DOM nodes. 17016 // We store that data in this.parent and this.children, 17017 // so it can be used later to work out the animation. 17018 this.updateBoundingBoxCaches(); 17019 17020 // Convert opaque children object to array. 17021 var nextChildren = _react.Children.toArray(nextProps.children); 17022 17023 // Next, we need to update our state, so that it contains our new set of 17024 // children. If animation is disabled or unsupported, this is easy; 17025 // we just copy our props into state. 17026 // Assuming that we can animate, though, we have to do some work. 17027 // Essentially, we want to keep just-deleted nodes in the DOM for a bit 17028 // longer, so that we can animate them away. 17029 this.setState({ 17030 children: this.isAnimationDisabled(nextProps) ? nextChildren.map(function (element) { 17031 return _extends({}, element, {element: element}); 17032 }) : this.calculateNextSetOfChildren(nextChildren) 17033 }); 17034 } 17035 }, { 17036 key: 'componentDidUpdate', 17037 value: function componentDidUpdate(previousProps) { 17038 // If the children have been re-arranged, moved, or added/removed, 17039 // trigger the main FLIP animation. 17040 // 17041 // IMPORTANT: We need to make sure that the children have actually changed. 17042 // At the end of the transition, we clean up nodes that need to be removed. 17043 var oldChildrenKeys = _react.Children.toArray(this.props.children).map(function (d) { 17044 return d.key; 17045 }); 17046 var nextChildrenKeys = _react.Children.toArray(previousProps.children).map(function (d) { 17047 return d.key; 17048 }); 17049 17050 var shouldTriggerFLIP = !(0, _helpers.arraysEqual)(oldChildrenKeys, nextChildrenKeys) && !this.isAnimationDisabled(this.props); 17051 17052 if (shouldTriggerFLIP) { 17053 this.prepForAnimation(); 17054 this.runAnimation(); 17055 } 17056 } 17057 }, { 17058 key: 'calculateNextSetOfChildren', 17059 value: function calculateNextSetOfChildren(nextChildren) { 17060 var _this2 = this; 17061 17062 // We want to: 17063 // - Mark all new children as `entering` 17064 // - Pull in previous children that aren't in nextChildren, and mark them 17065 // as `leaving` 17066 // - Preserve the nextChildren list order, with leaving children in their 17067 // appropriate places. 17068 // 17069 17070 var updatedChildren = nextChildren.map(function (nextChild) { 17071 var child = _this2.findChildByKey(nextChild.key || ''); 17072 17073 // If the current child did exist, but it was in the midst of leaving, 17074 // we want to treat it as though it's entering 17075 var isEntering = !child || child.leaving; 17076 17077 return _extends({}, nextChild, {element: nextChild, entering: isEntering}); 17078 }); 17079 17080 // This is tricky. We want to keep the nextChildren's ordering, but with 17081 // any just-removed items maintaining their original position. 17082 // eg. 17083 // this.state.children = [ 1, 2, 3, 4 ] 17084 // nextChildren = [ 3, 1 ] 17085 // 17086 // In this example, we've removed the '2' & '4' 17087 // We want to end up with: [ 2, 3, 1, 4 ] 17088 // 17089 // To accomplish that, we'll iterate through this.state.children. whenever 17090 // we find a match, we'll append our `leaving` flag to it, and insert it 17091 // into the nextChildren in its ORIGINAL position. Note that, as we keep 17092 // inserting old items into the new list, the "original" position will 17093 // keep incrementing. 17094 var numOfChildrenLeaving = 0; 17095 this.state.children.forEach(function (child, index) { 17096 var isLeaving = !nextChildren.find(function (_ref2) { 17097 var key = _ref2.key; 17098 return key === getKey(child); 17099 }); 17100 17101 // If the child isn't leaving (or, if there is no leave animation), 17102 // we don't need to add it into the state children. 17103 if (!isLeaving || !_this2.props.leaveAnimation) return; 17104 17105 var nextChild = _extends({}, child, {leaving: true}); 17106 var nextChildIndex = index + numOfChildrenLeaving; 17107 17108 updatedChildren.splice(nextChildIndex, 0, nextChild); 17109 numOfChildrenLeaving += 1; 17110 }); 17111 17112 return updatedChildren; 17113 } 17114 }, { 17115 key: 'prepForAnimation', 17116 value: function prepForAnimation() { 17117 var _this3 = this; 17118 17119 // Our animation prep consists of: 17120 // - remove children that are leaving from the DOM flow, so that the new 17121 // layout can be accurately calculated, 17122 // - update the placeholder container height, if needed, to ensure that 17123 // the parent's height doesn't collapse. 17124 17125 var _props = this.props, 17126 leaveAnimation = _props.leaveAnimation, 17127 maintainContainerHeight = _props.maintainContainerHeight, 17128 getPosition = _props.getPosition; 17129 17130 // we need to make all leaving nodes "invisible" to the layout calculations 17131 // that will take place in the next step (this.runAnimation). 17132 17133 if (leaveAnimation) { 17134 var leavingChildren = this.state.children.filter(function (child) { 17135 return child.leaving; 17136 }); 17137 17138 leavingChildren.forEach(function (leavingChild) { 17139 var childData = _this3.getChildData(getKey(leavingChild)); 17140 17141 // We need to take the items out of the "flow" of the document, so that 17142 // its siblings can move to take its place. 17143 if (childData.boundingBox) { 17144 (0, _domManipulation.removeNodeFromDOMFlow)(childData, _this3.props.verticalAlignment); 17145 } 17146 }); 17147 17148 if (maintainContainerHeight && this.heightPlaceholderData.domNode) { 17149 (0, _domManipulation.updateHeightPlaceholder)({ 17150 domNode: this.heightPlaceholderData.domNode, 17151 parentData: this.parentData, 17152 getPosition: getPosition 17153 }); 17154 } 17155 } 17156 17157 // For all children not in the middle of entering or leaving, 17158 // we need to reset the transition, so that the NEW shuffle starts from 17159 // the right place. 17160 this.state.children.forEach(function (child) { 17161 var _getChildData = _this3.getChildData(getKey(child)), 17162 domNode = _getChildData.domNode; 17163 17164 // Ignore children that don't render DOM nodes (eg. by returning null) 17165 17166 17167 if (!domNode) { 17168 return; 17169 } 17170 17171 if (!child.entering && !child.leaving) { 17172 (0, _domManipulation.applyStylesToDOMNode)({ 17173 domNode: domNode, 17174 styles: { 17175 transition: '' 17176 } 17177 }); 17178 } 17179 }); 17180 } 17181 }, { 17182 key: 'animateChild', 17183 value: function animateChild(child, index) { 17184 var _this4 = this; 17185 17186 var _getChildData2 = this.getChildData(getKey(child)), 17187 domNode = _getChildData2.domNode; 17188 17189 if (!domNode) { 17190 return; 17191 } 17192 17193 // Apply the relevant style for this DOM node 17194 // This is the offset from its actual DOM position. 17195 // eg. if an item has been re-rendered 20px lower, we want to apply a 17196 // style of 'transform: translate(-20px)', so that it appears to be where 17197 // it started. 17198 // In FLIP terminology, this is the 'Invert' stage. 17199 (0, _domManipulation.applyStylesToDOMNode)({ 17200 domNode: domNode, 17201 styles: this.computeInitialStyles(child) 17202 }); 17203 17204 // Start by invoking the onStart callback for this child. 17205 if (this.props.onStart) this.props.onStart(child, domNode); 17206 17207 // Next, animate the item from it's artificially-offset position to its 17208 // new, natural position. 17209 requestAnimationFrame(function () { 17210 requestAnimationFrame(function () { 17211 // NOTE, RE: the double-requestAnimationFrame: 17212 // Sadly, this is the most browser-compatible way to do this I've found. 17213 // Essentially we need to set the initial styles outside of any request 17214 // callbacks to avoid batching them. Then, a frame needs to pass with 17215 // the styles above rendered. Then, on the second frame, we can apply 17216 // our final styles to perform the animation. 17217 17218 // Our first order of business is to "undo" the styles applied in the 17219 // previous frames, while also adding a `transition` property. 17220 // This way, the item will smoothly transition from its old position 17221 // to its new position. 17222 17223 // eslint-disable-next-line flowtype/require-variable-type 17224 var styles = { 17225 transition: (0, _domManipulation.createTransitionString)(index, _this4.props), 17226 transform: '', 17227 opacity: '' 17228 }; 17229 17230 if (child.appearing && _this4.props.appearAnimation) { 17231 styles = _extends({}, styles, _this4.props.appearAnimation.to); 17232 } else if (child.entering && _this4.props.enterAnimation) { 17233 styles = _extends({}, styles, _this4.props.enterAnimation.to); 17234 } else if (child.leaving && _this4.props.leaveAnimation) { 17235 styles = _extends({}, styles, _this4.props.leaveAnimation.to); 17236 } 17237 17238 // In FLIP terminology, this is the 'Play' stage. 17239 (0, _domManipulation.applyStylesToDOMNode)({domNode: domNode, styles: styles}); 17240 }); 17241 }); 17242 17243 this.bindTransitionEndHandler(child); 17244 } 17245 }, { 17246 key: 'bindTransitionEndHandler', 17247 value: function bindTransitionEndHandler(child) { 17248 var _this5 = this; 17249 17250 var _getChildData3 = this.getChildData(getKey(child)), 17251 domNode = _getChildData3.domNode; 17252 17253 if (!domNode) { 17254 return; 17255 } 17256 17257 // The onFinish callback needs to be bound to the transitionEnd event. 17258 // We also need to unbind it when the transition completes, so this ugly 17259 // inline function is required (we need it here so it closes over 17260 // dependent variables `child` and `domNode`) 17261 var transitionEndHandler = function transitionEndHandler(ev) { 17262 // It's possible that this handler is fired not on our primary transition, 17263 // but on a nested transition (eg. a hover effect). Ignore these cases. 17264 if (ev.target !== domNode) return; 17265 17266 // Remove the 'transition' inline style we added. This is cleanup. 17267 domNode.style.transition = ''; 17268 17269 // Trigger any applicable onFinish/onFinishAll hooks 17270 _this5.triggerFinishHooks(child, domNode); 17271 17272 domNode.removeEventListener(transitionEnd, transitionEndHandler); 17273 17274 if (child.leaving) { 17275 _this5.removeChildData(getKey(child)); 17276 } 17277 }; 17278 17279 domNode.addEventListener(transitionEnd, transitionEndHandler); 17280 } 17281 }, { 17282 key: 'triggerFinishHooks', 17283 value: function triggerFinishHooks(child, domNode) { 17284 var _this6 = this; 17285 17286 if (this.props.onFinish) this.props.onFinish(child, domNode); 17287 17288 // Reduce the number of children we need to animate by 1, 17289 // so that we can tell when all children have finished. 17290 this.remainingAnimations -= 1; 17291 17292 if (this.remainingAnimations === 0) { 17293 // Remove any items from the DOM that have left, and reset `entering`. 17294 var nextChildren = this.state.children.filter(function (_ref3) { 17295 var leaving = _ref3.leaving; 17296 return !leaving; 17297 }).map(function (item) { 17298 return _extends({}, item, { 17299 appearing: false, 17300 entering: false 17301 }); 17302 }); 17303 17304 this.setState({children: nextChildren}, function () { 17305 if (typeof _this6.props.onFinishAll === 'function') { 17306 _this6.callChildrenHook(_this6.props.onFinishAll); 17307 } 17308 17309 // Reset our variables for the next iteration 17310 _this6.childrenToAnimate = []; 17311 }); 17312 17313 // If the placeholder was holding the container open while elements were 17314 // leaving, we we can now set its height to zero. 17315 if (this.heightPlaceholderData.domNode) { 17316 this.heightPlaceholderData.domNode.style.height = '0'; 17317 } 17318 } 17319 } 17320 }, { 17321 key: 'callChildrenHook', 17322 value: function callChildrenHook(hook) { 17323 var _this7 = this; 17324 17325 var elements = []; 17326 var domNodes = []; 17327 17328 this.childrenToAnimate.forEach(function (childKey) { 17329 // If this was an exit animation, the child may no longer exist. 17330 // If so, skip it. 17331 var child = _this7.findChildByKey(childKey); 17332 17333 if (!child) { 17334 return; 17335 } 17336 17337 elements.push(child); 17338 17339 if (_this7.hasChildData(childKey)) { 17340 domNodes.push(_this7.getChildData(childKey).domNode); 17341 } 17342 }); 17343 17344 hook(elements, domNodes); 17345 } 17346 }, { 17347 key: 'updateBoundingBoxCaches', 17348 value: function updateBoundingBoxCaches() { 17349 var _this8 = this; 17350 17351 // This is the ONLY place that parentData and childrenData's 17352 // bounding boxes are updated. They will be calculated at other times 17353 // to be compared to this value, but it's important that the cache is 17354 // updated once per update. 17355 var parentDomNode = this.parentData.domNode; 17356 17357 if (!parentDomNode) { 17358 return; 17359 } 17360 17361 this.parentData.boundingBox = this.props.getPosition(parentDomNode); 17362 17363 this.state.children.forEach(function (child) { 17364 var childKey = getKey(child); 17365 17366 // It is possible that a child does not have a `key` property; 17367 // Ignore these children, they don't need to be moved. 17368 if (!childKey) { 17369 return; 17370 } 17371 17372 // In very rare circumstances, for reasons unknown, the ref is never 17373 // populated for certain children. In this case, avoid doing this update. 17374 // see: https://github.com/joshwcomeau/react-flip-move/pull/91 17375 if (!_this8.hasChildData(childKey)) { 17376 return; 17377 } 17378 17379 var childData = _this8.getChildData(childKey); 17380 17381 // If the child element returns null, we need to avoid trying to 17382 // account for it 17383 if (!childData.domNode || !child) { 17384 return; 17385 } 17386 17387 _this8.setChildData(childKey, { 17388 boundingBox: (0, _domManipulation.getRelativeBoundingBox)({ 17389 childDomNode: childData.domNode, 17390 parentDomNode: parentDomNode, 17391 getPosition: _this8.props.getPosition 17392 }) 17393 }); 17394 }); 17395 } 17396 }, { 17397 key: 'computeInitialStyles', 17398 value: function computeInitialStyles(child) { 17399 if (child.appearing) { 17400 return this.props.appearAnimation ? this.props.appearAnimation.from : {}; 17401 } else if (child.entering) { 17402 if (!this.props.enterAnimation) { 17403 return {}; 17404 } 17405 // If this child was in the middle of leaving, it still has its 17406 // absolute positioning styles applied. We need to undo those. 17407 return _extends({ 17408 position: '', 17409 top: '', 17410 left: '', 17411 right: '', 17412 bottom: '' 17413 }, this.props.enterAnimation.from); 17414 } else if (child.leaving) { 17415 return this.props.leaveAnimation ? this.props.leaveAnimation.from : {}; 17416 } 17417 17418 var childData = this.getChildData(getKey(child)); 17419 var childDomNode = childData.domNode; 17420 var childBoundingBox = childData.boundingBox; 17421 var parentBoundingBox = this.parentData.boundingBox; 17422 17423 if (!childDomNode) { 17424 return {}; 17425 } 17426 17427 var _getPositionDelta3 = (0, _domManipulation.getPositionDelta)({ 17428 childDomNode: childDomNode, 17429 childBoundingBox: childBoundingBox, 17430 parentBoundingBox: parentBoundingBox, 17431 getPosition: this.props.getPosition 17432 }), 17433 _getPositionDelta4 = _slicedToArray(_getPositionDelta3, 2), 17434 dX = _getPositionDelta4[0], 17435 dY = _getPositionDelta4[1]; 17436 17437 return { 17438 transform: 'translate(' + dX + 'px, ' + dY + 'px)' 17439 }; 17440 } 17441 17442 // eslint-disable-next-line class-methods-use-this 17443 17444 }, { 17445 key: 'isAnimationDisabled', 17446 value: function isAnimationDisabled(props) { 17447 // If the component is explicitly passed a `disableAllAnimations` flag, 17448 // we can skip this whole process. Similarly, if all of the numbers have 17449 // been set to 0, there is no point in trying to animate; doing so would 17450 // only cause a flicker (and the intent is probably to disable animations) 17451 // We can also skip this rigamarole if there's no browser support for it. 17452 return noBrowserSupport || props.disableAllAnimations || props.duration === 0 && props.delay === 0 && props.staggerDurationBy === 0 && props.staggerDelayBy === 0; 17453 } 17454 }, { 17455 key: 'findChildByKey', 17456 value: function findChildByKey(key) { 17457 return this.state.children.find(function (child) { 17458 return getKey(child) === key; 17459 }); 17460 } 17461 }, { 17462 key: 'hasChildData', 17463 value: function hasChildData(key) { 17464 // Object has some built-in properties on its prototype, such as toString. hasOwnProperty makes 17465 // sure that key is present on childrenData itself, not on its prototype. 17466 return Object.prototype.hasOwnProperty.call(this.childrenData, key); 17467 } 17468 }, { 17469 key: 'getChildData', 17470 value: function getChildData(key) { 17471 return this.hasChildData(key) ? this.childrenData[key] : {}; 17472 } 17473 }, { 17474 key: 'setChildData', 17475 value: function setChildData(key, data) { 17476 this.childrenData[key] = _extends({}, this.getChildData(key), data); 17477 } 17478 }, { 17479 key: 'removeChildData', 17480 value: function removeChildData(key) { 17481 delete this.childrenData[key]; 17482 } 17483 }, { 17484 key: 'createHeightPlaceholder', 17485 value: function createHeightPlaceholder() { 17486 var _this9 = this; 17487 17488 var typeName = this.props.typeName; 17489 17490 // If requested, create an invisible element at the end of the list. 17491 // Its height will be modified to prevent the container from collapsing 17492 // prematurely. 17493 17494 var isContainerAList = typeName === 'ul' || typeName === 'ol'; 17495 var placeholderType = isContainerAList ? 'li' : 'div'; 17496 17497 return _react2.default.createElement(placeholderType, { 17498 key: 'height-placeholder', 17499 ref: function ref(domNode) { 17500 _this9.heightPlaceholderData.domNode = domNode; 17501 }, 17502 style: {visibility: 'hidden', height: 0} 17503 }); 17504 } 17505 }, { 17506 key: 'childrenWithRefs', 17507 value: function childrenWithRefs() { 17508 var _this10 = this; 17509 17510 // We need to clone the provided children, capturing a reference to the 17511 // underlying DOM node. Flip Move needs to use the React escape hatches to 17512 // be able to do its calculations. 17513 return this.state.children.map(function (child) { 17514 return _react2.default.cloneElement(child.element, { 17515 ref: function ref(element) { 17516 // Stateless Functional Components are not supported by FlipMove, 17517 // because they don't have instances. 17518 if (!element) { 17519 return; 17520 } 17521 17522 var domNode = (0, _domManipulation.getNativeNode)(element); 17523 _this10.setChildData(getKey(child), {domNode: domNode}); 17524 } 17525 }); 17526 }); 17527 } 17528 }, { 17529 key: 'render', 17530 value: function render() { 17531 var _this11 = this; 17532 17533 var _props2 = this.props, 17534 typeName = _props2.typeName, 17535 delegated = _props2.delegated, 17536 leaveAnimation = _props2.leaveAnimation, 17537 maintainContainerHeight = _props2.maintainContainerHeight; 17538 17539 17540 var props = _extends({}, delegated, { 17541 ref: function ref(node) { 17542 _this11.parentData.domNode = node; 17543 } 17544 }); 17545 17546 var children = this.childrenWithRefs(); 17547 if (leaveAnimation && maintainContainerHeight) { 17548 children.push(this.createHeightPlaceholder()); 17549 } 17550 17551 return _react2.default.createElement(typeName, props, children); 17552 } 17553 }]); 17554 17555 return FlipMove; 17556 }(_react.Component); 17557 17558 exports.default = (0, _propConverter2.default)(FlipMove); 17559 module.exports = exports['default']; 17560 17561 /***/ 17562 }), 17563 /* 254 */ 17564 /***/ (function (module, exports, __webpack_require__) { 17565 17566 "use strict"; 17567 17568 17569// @noflow 17570 /** 17571 * React Flip Move - Polyfills 17572 * (c) 2016-present Joshua Comeau 17573 */ 17574 17575 /* eslint-disable */ 17576 17577 if (!Array.prototype.find) { 17578 Array.prototype.find = function (predicate) { 17579 if (this === null) { 17580 throw new TypeError('Array.prototype.find called on null or undefined'); 17581 } 17582 if (typeof predicate !== 'function') { 17583 throw new TypeError('predicate must be a function'); 17584 } 17585 var list = Object(this); 17586 var length = list.length >>> 0; 17587 var thisArg = arguments[1]; 17588 var value = void 0; 17589 17590 for (var i = 0; i < length; i++) { 17591 value = list[i]; 17592 if (predicate.call(thisArg, value, i, list)) { 17593 return value; 17594 } 17595 } 17596 return undefined; 17597 }; 17598 } 17599 17600 if (!Array.prototype.every) { 17601 Array.prototype.every = function (callbackfn, thisArg) { 17602 'use strict'; 17603 17604 var T, k; 17605 17606 if (this == null) { 17607 throw new TypeError('this is null or not defined'); 17608 } 17609 17610 var O = Object(this); 17611 var len = O.length >>> 0; 17612 17613 if (typeof callbackfn !== 'function') { 17614 throw new TypeError(); 17615 } 17616 17617 if (arguments.length > 1) { 17618 T = thisArg; 17619 } 17620 17621 k = 0; 17622 17623 while (k < len) { 17624 17625 var kValue; 17626 17627 if (k in O) { 17628 kValue = O[k]; 17629 17630 var testResult = callbackfn.call(T, kValue, k, O); 17631 17632 if (!testResult) { 17633 return false; 17634 } 17635 } 17636 k++; 17637 } 17638 return true; 17639 }; 17640 } 17641 17642 if (!Array.isArray) { 17643 Array.isArray = function (arg) { 17644 return Object.prototype.toString.call(arg) === '[object Array]'; 17645 }; 17646 } 17647 17648 /***/ 17649 }), 17650 /* 255 */ 17651 /***/ (function (module, exports, __webpack_require__) { 17652 17653 "use strict"; 17654 /* WEBPACK VAR INJECTION */ 17655 (function (process) { 17656 17657 Object.defineProperty(exports, "__esModule", { 17658 value: true 17659 }); 17660 17661 var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { 17662 return typeof obj; 17663 } : function (obj) { 17664 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 17665 }; 17666 17667 var _extends = Object.assign || function (target) { 17668 for (var i = 1; i < arguments.length; i++) { 17669 var source = arguments[i]; 17670 for (var key in source) { 17671 if (Object.prototype.hasOwnProperty.call(source, key)) { 17672 target[key] = source[key]; 17673 } 17674 } 17675 } 17676 return target; 17677 }; 17678 17679 var _createClass = function () { 17680 function defineProperties(target, props) { 17681 for (var i = 0; i < props.length; i++) { 17682 var descriptor = props[i]; 17683 descriptor.enumerable = descriptor.enumerable || false; 17684 descriptor.configurable = true; 17685 if ("value" in descriptor) descriptor.writable = true; 17686 Object.defineProperty(target, descriptor.key, descriptor); 17687 } 17688 } 17689 17690 return function (Constructor, protoProps, staticProps) { 17691 if (protoProps) defineProperties(Constructor.prototype, protoProps); 17692 if (staticProps) defineProperties(Constructor, staticProps); 17693 return Constructor; 17694 }; 17695 }(); 17696 17697 var _react = __webpack_require__(12); 17698 17699 var _react2 = _interopRequireDefault(_react); 17700 17701 var _errorMessages = __webpack_require__(256); 17702 17703 var _enterLeavePresets = __webpack_require__(257); 17704 17705 var _helpers = __webpack_require__(82); 17706 17707 function _interopRequireDefault(obj) { 17708 return obj && obj.__esModule ? obj : {default: obj}; 17709 } 17710 17711 function _classCallCheck(instance, Constructor) { 17712 if (!(instance instanceof Constructor)) { 17713 throw new TypeError("Cannot call a class as a function"); 17714 } 17715 } 17716 17717 function _possibleConstructorReturn(self, call) { 17718 if (!self) { 17719 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 17720 } 17721 return call && (typeof call === "object" || typeof call === "function") ? call : self; 17722 } 17723 17724 function _inherits(subClass, superClass) { 17725 if (typeof superClass !== "function" && superClass !== null) { 17726 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 17727 } 17728 subClass.prototype = Object.create(superClass && superClass.prototype, { 17729 constructor: { 17730 value: subClass, 17731 enumerable: false, 17732 writable: true, 17733 configurable: true 17734 } 17735 }); 17736 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; 17737 } 17738 17739 /** 17740 * React Flip Move | propConverter 17741 * (c) 2016-present Joshua Comeau 17742 * 17743 * Abstracted away a bunch of the messy business with props. 17744 * - props flow types and defaultProps 17745 * - Type conversion (We accept 'string' and 'number' values for duration, 17746 * delay, and other fields, but we actually need them to be ints.) 17747 * - Children conversion (we need the children to be an array. May not always 17748 * be, if a single child is passed in.) 17749 * - Resolving animation presets into their base CSS styles 17750 */ 17751 /* eslint-disable block-scoped-var */ 17752 17753 var nodeEnv = void 0; 17754 try { 17755 nodeEnv = process.env.NODE_ENV; 17756 } catch (e) { 17757 nodeEnv = 'development'; 17758 } 17759 17760 function propConverter(ComposedComponent) { 17761 var _class, _temp; 17762 17763 return _temp = _class = function (_Component) { 17764 _inherits(FlipMovePropConverter, _Component); 17765 17766 function FlipMovePropConverter() { 17767 _classCallCheck(this, FlipMovePropConverter); 17768 17769 return _possibleConstructorReturn(this, (FlipMovePropConverter.__proto__ || Object.getPrototypeOf(FlipMovePropConverter)).apply(this, arguments)); 17770 } 17771 17772 _createClass(FlipMovePropConverter, [{ 17773 key: 'checkForStatelessFunctionalComponents', 17774 17775 17776 // eslint-disable-next-line class-methods-use-this 17777 value: function checkForStatelessFunctionalComponents(children) { 17778 // Skip all console warnings in production. 17779 // Bail early, to avoid unnecessary work. 17780 if (nodeEnv === 'production') { 17781 return; 17782 } 17783 17784 // FlipMove does not support stateless functional components. 17785 // Check to see if any supplied components won't work. 17786 // If the child doesn't have a key, it means we aren't animating it. 17787 // It's allowed to be an SFC, since we ignore it. 17788 var childArray = _react.Children.toArray(children); 17789 var noStateless = childArray.every(function (child) { 17790 return !(0, _helpers.isElementAnSFC)(child) || typeof child.key === 'undefined'; 17791 }); 17792 17793 if (!noStateless) { 17794 (0, _errorMessages.statelessFunctionalComponentSupplied)(); 17795 } 17796 } 17797 }, { 17798 key: 'convertProps', 17799 value: function convertProps(props) { 17800 var workingProps = { 17801 // explicitly bypass the props that don't need conversion 17802 children: props.children, 17803 easing: props.easing, 17804 onStart: props.onStart, 17805 onFinish: props.onFinish, 17806 onStartAll: props.onStartAll, 17807 onFinishAll: props.onFinishAll, 17808 typeName: props.typeName, 17809 disableAllAnimations: props.disableAllAnimations, 17810 getPosition: props.getPosition, 17811 maintainContainerHeight: props.maintainContainerHeight, 17812 verticalAlignment: props.verticalAlignment, 17813 17814 // Do string-to-int conversion for all timing-related props 17815 duration: this.convertTimingProp('duration'), 17816 delay: this.convertTimingProp('delay'), 17817 staggerDurationBy: this.convertTimingProp('staggerDurationBy'), 17818 staggerDelayBy: this.convertTimingProp('staggerDelayBy'), 17819 17820 // Our enter/leave animations can be specified as boolean (default or 17821 // disabled), string (preset name), or object (actual animation values). 17822 // Let's standardize this so that they're always objects 17823 appearAnimation: this.convertAnimationProp(props.appearAnimation, _enterLeavePresets.appearPresets), 17824 enterAnimation: this.convertAnimationProp(props.enterAnimation, _enterLeavePresets.enterPresets), 17825 leaveAnimation: this.convertAnimationProp(props.leaveAnimation, _enterLeavePresets.leavePresets), 17826 17827 delegated: {} 17828 }; 17829 17830 this.checkForStatelessFunctionalComponents(workingProps.children); 17831 17832 // Accept `disableAnimations`, but add a deprecation warning 17833 if (typeof props.disableAnimations !== 'undefined') { 17834 if (nodeEnv !== 'production') { 17835 (0, _errorMessages.deprecatedDisableAnimations)(); 17836 } 17837 17838 workingProps.disableAllAnimations = props.disableAnimations; 17839 } 17840 17841 // Gather any additional props; 17842 // they will be delegated to the ReactElement created. 17843 var primaryPropKeys = Object.keys(workingProps); 17844 var delegatedProps = (0, _helpers.omit)(this.props, primaryPropKeys); 17845 17846 // The FlipMove container element needs to have a non-static position. 17847 // We use `relative` by default, but it can be overridden by the user. 17848 // Now that we're delegating props, we need to merge this in. 17849 delegatedProps.style = _extends({ 17850 position: 'relative' 17851 }, delegatedProps.style); 17852 17853 workingProps.delegated = delegatedProps; 17854 17855 return workingProps; 17856 } 17857 }, { 17858 key: 'convertTimingProp', 17859 value: function convertTimingProp(prop) { 17860 var rawValue = this.props[prop]; 17861 17862 var value = typeof rawValue === 'number' ? rawValue : parseInt(rawValue, 10); 17863 17864 if (isNaN(value)) { 17865 var defaultValue = FlipMovePropConverter.defaultProps[prop]; 17866 17867 if (nodeEnv !== 'production') { 17868 (0, _errorMessages.invalidTypeForTimingProp)({ 17869 prop: prop, 17870 value: rawValue, 17871 defaultValue: defaultValue 17872 }); 17873 } 17874 17875 return defaultValue; 17876 } 17877 17878 return value; 17879 } 17880 17881 // eslint-disable-next-line class-methods-use-this 17882 17883 }, { 17884 key: 'convertAnimationProp', 17885 value: function convertAnimationProp(animation, presets) { 17886 switch (typeof animation === 'undefined' ? 'undefined' : _typeof(animation)) { 17887 case 'boolean': { 17888 // If it's true, we want to use the default preset. 17889 // If it's false, we want to use the 'none' preset. 17890 return presets[animation ? _enterLeavePresets.defaultPreset : _enterLeavePresets.disablePreset]; 17891 } 17892 17893 case 'string': { 17894 var presetKeys = Object.keys(presets); 17895 17896 if (presetKeys.indexOf(animation) === -1) { 17897 if (nodeEnv !== 'production') { 17898 (0, _errorMessages.invalidEnterLeavePreset)({ 17899 value: animation, 17900 acceptableValues: presetKeys.join(', '), 17901 defaultValue: _enterLeavePresets.defaultPreset 17902 }); 17903 } 17904 17905 return presets[_enterLeavePresets.defaultPreset]; 17906 } 17907 17908 return presets[animation]; 17909 } 17910 17911 default: { 17912 return animation; 17913 } 17914 } 17915 } 17916 }, { 17917 key: 'render', 17918 value: function render() { 17919 return _react2.default.createElement(ComposedComponent, this.convertProps(this.props)); 17920 } 17921 }]); 17922 17923 return FlipMovePropConverter; 17924 }(_react.Component), _class.defaultProps = { 17925 easing: 'ease-in-out', 17926 duration: 350, 17927 delay: 0, 17928 staggerDurationBy: 0, 17929 staggerDelayBy: 0, 17930 typeName: 'div', 17931 enterAnimation: _enterLeavePresets.defaultPreset, 17932 leaveAnimation: _enterLeavePresets.defaultPreset, 17933 disableAllAnimations: false, 17934 getPosition: function getPosition(node) { 17935 return node.getBoundingClientRect(); 17936 }, 17937 maintainContainerHeight: false, 17938 verticalAlignment: 'top' 17939 }, _temp; 17940 } 17941 17942 exports.default = propConverter; 17943 module.exports = exports['default']; 17944 /* WEBPACK VAR INJECTION */ 17945 }.call(exports, __webpack_require__(18))) 17946 17947 /***/ 17948 }), 17949 /* 256 */ 17950 /***/ (function (module, exports, __webpack_require__) { 17951 17952 "use strict"; 17953 17954 17955 Object.defineProperty(exports, "__esModule", { 17956 value: true 17957 }); 17958 17959 17960 function warnOnce(msg) { 17961 var hasWarned = false; 17962 return function () { 17963 if (!hasWarned) { 17964 console.warn(msg); 17965 hasWarned = true; 17966 } 17967 }; 17968 } 17969 17970 var statelessFunctionalComponentSupplied = exports.statelessFunctionalComponentSupplied = warnOnce('\n>> Error, via react-flip-move <<\n\nYou provided a stateless functional component as a child to <FlipMove>. Unfortunately, SFCs aren\'t supported, because Flip Move needs access to the backing instances via refs, and SFCs don\'t have a public instance that holds that info.\n\nPlease wrap your components in a native element (eg. <div>), or a non-functional component.\n'); 17971 17972 var invalidTypeForTimingProp = exports.invalidTypeForTimingProp = function invalidTypeForTimingProp(args) { 17973 return console.error('\n>> Error, via react-flip-move <<\n\nThe prop you provided for \'' + args.prop + '\' is invalid. It needs to be a positive integer, or a string that can be resolved to a number. The value you provided is \'' + args.value + '\'.\n\nAs a result, the default value for this parameter will be used, which is \'' + args.defaultValue + '\'.\n'); 17974 }; 17975 17976 var deprecatedDisableAnimations = exports.deprecatedDisableAnimations = warnOnce('\n>> Warning, via react-flip-move <<\n\nThe \'disableAnimations\' prop you provided is deprecated. Please switch to use \'disableAllAnimations\'.\n\nThis will become a silent error in future versions of react-flip-move.\n'); 17977 17978 var invalidEnterLeavePreset = exports.invalidEnterLeavePreset = function invalidEnterLeavePreset(args) { 17979 return console.error('\n>> Error, via react-flip-move <<\n\nThe enter/leave preset you provided is invalid. We don\'t currently have a \'' + args.value + ' preset.\'\n\nAcceptable values are ' + args.acceptableValues + '. The default value of \'' + args.defaultValue + '\' will be used.\n'); 17980 }; 17981 17982 /***/ 17983 }), 17984 /* 257 */ 17985 /***/ (function (module, exports, __webpack_require__) { 17986 17987 "use strict"; 17988 17989 17990 Object.defineProperty(exports, "__esModule", { 17991 value: true 17992 }); 17993 var enterPresets = exports.enterPresets = { 17994 elevator: { 17995 from: {transform: 'scale(0)', opacity: '0'}, 17996 to: {transform: '', opacity: ''} 17997 }, 17998 fade: { 17999 from: {opacity: '0'}, 18000 to: {opacity: ''} 18001 }, 18002 accordionVertical: { 18003 from: {transform: 'scaleY(0)', transformOrigin: 'center top'}, 18004 to: {transform: '', transformOrigin: 'center top'} 18005 }, 18006 accordionHorizontal: { 18007 from: {transform: 'scaleX(0)', transformOrigin: 'left center'}, 18008 to: {transform: '', transformOrigin: 'left center'} 18009 }, 18010 none: null 18011 }; 18012 /** 18013 * React Flip Move | enterLeavePresets 18014 * (c) 2016-present Joshua Comeau 18015 * 18016 * This contains the master list of presets available for enter/leave animations, 18017 * along with the mapping between preset and styles. 18018 */ 18019 var leavePresets = exports.leavePresets = { 18020 elevator: { 18021 from: {transform: 'scale(1)', opacity: '1'}, 18022 to: {transform: 'scale(0)', opacity: '0'} 18023 }, 18024 fade: { 18025 from: {opacity: '1'}, 18026 to: {opacity: '0'} 18027 }, 18028 accordionVertical: { 18029 from: {transform: 'scaleY(1)', transformOrigin: 'center top'}, 18030 to: {transform: 'scaleY(0)', transformOrigin: 'center top'} 18031 }, 18032 accordionHorizontal: { 18033 from: {transform: 'scaleX(1)', transformOrigin: 'left center'}, 18034 to: {transform: 'scaleX(0)', transformOrigin: 'left center'} 18035 }, 18036 none: null 18037 }; 18038 18039// For now, appearPresets will be identical to enterPresets. 18040// Assigning a custom export in case we ever want to add appear-specific ones. 18041 var appearPresets = exports.appearPresets = enterPresets; 18042 18043// Embarrassingly enough, v2.0 launched with typo'ed preset names. 18044// To avoid penning a new major version over something so inconsequential, 18045// we're supporting both spellings. In a future version, these alternatives 18046// may be deprecated. 18047// $FlowFixMe 18048 enterPresets.accordianVertical = enterPresets.accordionVertical; 18049// $FlowFixMe 18050 enterPresets.accordianHorizontal = enterPresets.accordionHorizontal; 18051// $FlowFixMe 18052 leavePresets.accordianVertical = leavePresets.accordionVertical; 18053// $FlowFixMe 18054 leavePresets.accordianHorizontal = leavePresets.accordionHorizontal; 18055 18056 var defaultPreset = exports.defaultPreset = 'elevator'; 18057 var disablePreset = exports.disablePreset = 'none'; 18058 18059 /***/ 18060 }), 18061 /* 258 */ 18062 /***/ (function (module, exports, __webpack_require__) { 18063 18064 "use strict"; 18065 18066 18067 Object.defineProperty(exports, "__esModule", { 18068 value: true 18069 }); 18070 exports.createTransitionString = exports.getNativeNode = exports.updateHeightPlaceholder = exports.removeNodeFromDOMFlow = exports.getPositionDelta = exports.getRelativeBoundingBox = undefined; 18071 18072 var _extends = Object.assign || function (target) { 18073 for (var i = 1; i < arguments.length; i++) { 18074 var source = arguments[i]; 18075 for (var key in source) { 18076 if (Object.prototype.hasOwnProperty.call(source, key)) { 18077 target[key] = source[key]; 18078 } 18079 } 18080 } 18081 return target; 18082 }; 18083 /** 18084 * React Flip Move 18085 * (c) 2016-present Joshua Comeau 18086 * 18087 * These methods read from and write to the DOM. 18088 * They almost always have side effects, and will hopefully become the 18089 * only spot in the codebase with impure functions. 18090 */ 18091 18092 18093 exports.applyStylesToDOMNode = applyStylesToDOMNode; 18094 exports.whichTransitionEvent = whichTransitionEvent; 18095 18096 var _reactDom = __webpack_require__(12); 18097 18098 var _helpers = __webpack_require__(82); 18099 18100 function _defineProperty(obj, key, value) { 18101 if (key in obj) { 18102 Object.defineProperty(obj, key, { 18103 value: value, 18104 enumerable: true, 18105 configurable: true, 18106 writable: true 18107 }); 18108 } else { 18109 obj[key] = value; 18110 } 18111 return obj; 18112 } 18113 18114 function applyStylesToDOMNode(_ref) { 18115 var domNode = _ref.domNode, 18116 styles = _ref.styles; 18117 18118 // Can't just do an object merge because domNode.styles is no regular object. 18119 // Need to do it this way for the engine to fire its `set` listeners. 18120 Object.keys(styles).forEach(function (key) { 18121 domNode.style.setProperty((0, _helpers.hyphenate)(key), styles[key]); 18122 }); 18123 } 18124 18125// Modified from Modernizr 18126 function whichTransitionEvent() { 18127 var transitions = { 18128 transition: 'transitionend', 18129 '-o-transition': 'oTransitionEnd', 18130 '-moz-transition': 'transitionend', 18131 '-webkit-transition': 'webkitTransitionEnd' 18132 }; 18133 18134 // If we're running in a browserless environment (eg. SSR), it doesn't apply. 18135 // Return a placeholder string, for consistent type return. 18136 if (typeof document === 'undefined') return ''; 18137 18138 var el = document.createElement('fakeelement'); 18139 18140 var match = Object.keys(transitions).find(function (t) { 18141 return el.style.getPropertyValue(t) !== undefined; 18142 }); 18143 18144 // If no `transition` is found, we must be running in a browser so ancient, 18145 // React itself won't run. Return an empty string, for consistent type return 18146 return match ? transitions[match] : ''; 18147 } 18148 18149 var getRelativeBoundingBox = exports.getRelativeBoundingBox = function getRelativeBoundingBox(_ref2) { 18150 var childDomNode = _ref2.childDomNode, 18151 parentDomNode = _ref2.parentDomNode, 18152 getPosition = _ref2.getPosition; 18153 18154 var parentBox = getPosition(parentDomNode); 18155 18156 var _getPosition = getPosition(childDomNode), 18157 top = _getPosition.top, 18158 left = _getPosition.left, 18159 right = _getPosition.right, 18160 bottom = _getPosition.bottom, 18161 width = _getPosition.width, 18162 height = _getPosition.height; 18163 18164 return { 18165 top: top - parentBox.top, 18166 left: left - parentBox.left, 18167 right: parentBox.right - right, 18168 bottom: parentBox.bottom - bottom, 18169 width: width, 18170 height: height 18171 }; 18172 }; 18173 18174 /** getPositionDelta 18175 * This method returns the delta between two bounding boxes, to figure out 18176 * how many pixels on each axis the element has moved. 18177 * 18178 */ 18179 var getPositionDelta = exports.getPositionDelta = function getPositionDelta(_ref3) { 18180 var childDomNode = _ref3.childDomNode, 18181 childBoundingBox = _ref3.childBoundingBox, 18182 parentBoundingBox = _ref3.parentBoundingBox, 18183 getPosition = _ref3.getPosition; 18184 18185 // TEMP: A mystery bug is sometimes causing unnecessary boundingBoxes to 18186 var defaultBox = {top: 0, left: 0, right: 0, bottom: 0, height: 0, width: 0}; 18187 18188 // Our old box is its last calculated position, derived on mount or at the 18189 // start of the previous animation. 18190 var oldRelativeBox = childBoundingBox || defaultBox; 18191 var parentBox = parentBoundingBox || defaultBox; 18192 18193 // Our new box is the new final resting place: Where we expect it to wind up 18194 // after the animation. First we get the box in absolute terms (AKA relative 18195 // to the viewport), and then we calculate its relative box (relative to the 18196 // parent container) 18197 var newAbsoluteBox = getPosition(childDomNode); 18198 var newRelativeBox = { 18199 top: newAbsoluteBox.top - parentBox.top, 18200 left: newAbsoluteBox.left - parentBox.left 18201 }; 18202 18203 return [oldRelativeBox.left - newRelativeBox.left, oldRelativeBox.top - newRelativeBox.top]; 18204 }; 18205 18206 /** removeNodeFromDOMFlow 18207 * This method does something very sneaky: it removes a DOM node from the 18208 * document flow, but without actually changing its on-screen position. 18209 * 18210 * It works by calculating where the node is, and then applying styles 18211 * so that it winds up being positioned absolutely, but in exactly the 18212 * same place. 18213 * 18214 * This is a vital part of the FLIP technique. 18215 */ 18216 var removeNodeFromDOMFlow = exports.removeNodeFromDOMFlow = function removeNodeFromDOMFlow(childData, verticalAlignment) { 18217 var domNode = childData.domNode, 18218 boundingBox = childData.boundingBox; 18219 18220 18221 if (!domNode || !boundingBox) { 18222 return; 18223 } 18224 18225 // For this to work, we have to offset any given `margin`. 18226 var computed = window.getComputedStyle(domNode); 18227 18228 // We need to clean up margins, by converting and removing suffix: 18229 // eg. '21px' -> 21 18230 var marginAttrs = ['margin-top', 'margin-left', 'margin-right']; 18231 var margins = marginAttrs.reduce(function (acc, margin) { 18232 var propertyVal = computed.getPropertyValue(margin); 18233 18234 return _extends({}, acc, _defineProperty({}, margin, Number(propertyVal.replace('px', '')))); 18235 }, {}); 18236 18237 // If we're bottom-aligned, we need to add the height of the child to its 18238 // top offset. This is because, when the container is bottom-aligned, its 18239 // height shrinks from the top, not the bottom. We're removing this node 18240 // from the flow, so the top is going to drop by its height. 18241 var topOffset = verticalAlignment === 'bottom' ? boundingBox.top - boundingBox.height : boundingBox.top; 18242 18243 var styles = { 18244 position: 'absolute', 18245 top: topOffset - margins['margin-top'] + 'px', 18246 left: boundingBox.left - margins['margin-left'] + 'px', 18247 right: boundingBox.right - margins['margin-right'] + 'px' 18248 }; 18249 18250 applyStylesToDOMNode({domNode: domNode, styles: styles}); 18251 }; 18252 18253 /** updateHeightPlaceholder 18254 * An optional property to FlipMove is a `maintainContainerHeight` boolean. 18255 * This property creates a node that fills space, so that the parent 18256 * container doesn't collapse when its children are removed from the 18257 * document flow. 18258 */ 18259 var updateHeightPlaceholder = exports.updateHeightPlaceholder = function updateHeightPlaceholder(_ref4) { 18260 var domNode = _ref4.domNode, 18261 parentData = _ref4.parentData, 18262 getPosition = _ref4.getPosition; 18263 18264 var parentDomNode = parentData.domNode; 18265 var parentBoundingBox = parentData.boundingBox; 18266 18267 if (!parentDomNode || !parentBoundingBox) { 18268 return; 18269 } 18270 18271 // We need to find the height of the container *without* the placeholder. 18272 // Since it's possible that the placeholder might already be present, 18273 // we first set its height to 0. 18274 // This allows the container to collapse down to the size of just its 18275 // content (plus container padding or borders if any). 18276 applyStylesToDOMNode({domNode: domNode, styles: {height: '0'}}); 18277 18278 // Find the distance by which the container would be collapsed by elements 18279 // leaving. We compare the freshly-available parent height with the original, 18280 // cached container height. 18281 var originalParentHeight = parentBoundingBox.height; 18282 var collapsedParentHeight = getPosition(parentDomNode).height; 18283 var reductionInHeight = originalParentHeight - collapsedParentHeight; 18284 18285 // If the container has become shorter, update the padding element's 18286 // height to take up the difference. Otherwise set its height to zero, 18287 // so that it has no effect. 18288 var styles = { 18289 height: reductionInHeight > 0 ? reductionInHeight + 'px' : '0' 18290 }; 18291 18292 applyStylesToDOMNode({domNode: domNode, styles: styles}); 18293 }; 18294 18295 var getNativeNode = exports.getNativeNode = function getNativeNode(element) { 18296 // When running in a windowless environment, abort! 18297 if (typeof HTMLElement === 'undefined') { 18298 return null; 18299 } 18300 18301 // `element` may already be a native node. 18302 if (element instanceof HTMLElement) { 18303 return element; 18304 } 18305 18306 // While ReactDOM's `findDOMNode` is discouraged, it's the only 18307 // publicly-exposed way to find the underlying DOM node for 18308 // composite components. 18309 var foundNode = (0, _reactDom.findDOMNode)(element); 18310 18311 if (!(foundNode instanceof HTMLElement)) { 18312 // Text nodes are not supported 18313 return null; 18314 } 18315 18316 return foundNode; 18317 }; 18318 18319 var createTransitionString = exports.createTransitionString = function createTransitionString(index, props) { 18320 var delay = props.delay, 18321 duration = props.duration; 18322 var staggerDurationBy = props.staggerDurationBy, 18323 staggerDelayBy = props.staggerDelayBy, 18324 easing = props.easing; 18325 18326 18327 delay += index * staggerDelayBy; 18328 duration += index * staggerDurationBy; 18329 18330 var cssProperties = ['transform', 'opacity']; 18331 18332 return cssProperties.map(function (prop) { 18333 return prop + ' ' + duration + 'ms ' + easing + ' ' + delay + 'ms'; 18334 }).join(', '); 18335 }; 18336 18337 /***/ 18338 }), 18339 /* 259 */ 18340 /***/ (function (module, exports, __webpack_require__) { 18341 18342 var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! 18343 Autosize 3.0.21 18344 license: MIT 18345 http://www.jacklmoore.com/autosize 18346*/ 18347 (function (global, factory) { 18348 if (true) { 18349 !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports, module], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), 18350 __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? 18351 (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), 18352 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); 18353 } else if (typeof exports !== 'undefined' && typeof module !== 'undefined') { 18354 factory(exports, module); 18355 } else { 18356 var mod = { 18357 exports: {} 18358 }; 18359 factory(mod.exports, mod); 18360 global.autosize = mod.exports; 18361 } 18362 })(this, function (exports, module) { 18363 'use strict'; 18364 18365 var map = typeof Map === "function" ? new Map() : (function () { 18366 var keys = []; 18367 var values = []; 18368 18369 return { 18370 has: function has(key) { 18371 return keys.indexOf(key) > -1; 18372 }, 18373 get: function get(key) { 18374 return values[keys.indexOf(key)]; 18375 }, 18376 set: function set(key, value) { 18377 if (keys.indexOf(key) === -1) { 18378 keys.push(key); 18379 values.push(value); 18380 } 18381 }, 18382 'delete': function _delete(key) { 18383 var index = keys.indexOf(key); 18384 if (index > -1) { 18385 keys.splice(index, 1); 18386 values.splice(index, 1); 18387 } 18388 } 18389 }; 18390 })(); 18391 18392 var createEvent = function createEvent(name) { 18393 return new Event(name, {bubbles: true}); 18394 }; 18395 try { 18396 new Event('test'); 18397 } catch (e) { 18398 // IE does not support `new Event()` 18399 createEvent = function (name) { 18400 var evt = document.createEvent('Event'); 18401 evt.initEvent(name, true, false); 18402 return evt; 18403 }; 18404 } 18405 18406 function assign(ta) { 18407 if (!ta || !ta.nodeName || ta.nodeName !== 'TEXTAREA' || map.has(ta)) return; 18408 18409 var heightOffset = null; 18410 var clientWidth = ta.clientWidth; 18411 var cachedHeight = null; 18412 18413 function init() { 18414 var style = window.getComputedStyle(ta, null); 18415 18416 if (style.resize === 'vertical') { 18417 ta.style.resize = 'none'; 18418 } else if (style.resize === 'both') { 18419 ta.style.resize = 'horizontal'; 18420 } 18421 18422 if (style.boxSizing === 'content-box') { 18423 heightOffset = -(parseFloat(style.paddingTop) + parseFloat(style.paddingBottom)); 18424 } else { 18425 heightOffset = parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth); 18426 } 18427 // Fix when a textarea is not on document body and heightOffset is Not a Number 18428 if (isNaN(heightOffset)) { 18429 heightOffset = 0; 18430 } 18431 18432 update(); 18433 } 18434 18435 function changeOverflow(value) { 18436 { 18437 // Chrome/Safari-specific fix: 18438 // When the textarea y-overflow is hidden, Chrome/Safari do not reflow the text to account for the space 18439 // made available by removing the scrollbar. The following forces the necessary text reflow. 18440 var width = ta.style.width; 18441 ta.style.width = '0px'; 18442 // Force reflow: 18443 /* jshint ignore:start */ 18444 ta.offsetWidth; 18445 /* jshint ignore:end */ 18446 ta.style.width = width; 18447 } 18448 18449 ta.style.overflowY = value; 18450 } 18451 18452 function getParentOverflows(el) { 18453 var arr = []; 18454 18455 while (el && el.parentNode && el.parentNode instanceof Element) { 18456 if (el.parentNode.scrollTop) { 18457 arr.push({ 18458 node: el.parentNode, 18459 scrollTop: el.parentNode.scrollTop 18460 }); 18461 } 18462 el = el.parentNode; 18463 } 18464 18465 return arr; 18466 } 18467 18468 function resize() { 18469 var originalHeight = ta.style.height; 18470 var overflows = getParentOverflows(ta); 18471 var docTop = document.documentElement && document.documentElement.scrollTop; // Needed for Mobile IE (ticket #240) 18472 18473 ta.style.height = 'auto'; 18474 18475 var endHeight = ta.scrollHeight + heightOffset; 18476 18477 if (ta.scrollHeight === 0) { 18478 // If the scrollHeight is 0, then the element probably has display:none or is detached from the DOM. 18479 ta.style.height = originalHeight; 18480 return; 18481 } 18482 18483 ta.style.height = endHeight + 'px'; 18484 18485 // used to check if an update is actually necessary on window.resize 18486 clientWidth = ta.clientWidth; 18487 18488 // prevents scroll-position jumping 18489 overflows.forEach(function (el) { 18490 el.node.scrollTop = el.scrollTop; 18491 }); 18492 18493 if (docTop) { 18494 document.documentElement.scrollTop = docTop; 18495 } 18496 } 18497 18498 function update() { 18499 resize(); 18500 18501 var styleHeight = Math.round(parseFloat(ta.style.height)); 18502 var computed = window.getComputedStyle(ta, null); 18503 18504 // Using offsetHeight as a replacement for computed.height in IE, because IE does not account use of border-box 18505 var actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(computed.height)) : ta.offsetHeight; 18506 18507 // The actual height not matching the style height (set via the resize method) indicates that 18508 // the max-height has been exceeded, in which case the overflow should be allowed. 18509 if (actualHeight !== styleHeight) { 18510 if (computed.overflowY === 'hidden') { 18511 changeOverflow('scroll'); 18512 resize(); 18513 actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(ta, null).height)) : ta.offsetHeight; 18514 } 18515 } else { 18516 // Normally keep overflow set to hidden, to avoid flash of scrollbar as the textarea expands. 18517 if (computed.overflowY !== 'hidden') { 18518 changeOverflow('hidden'); 18519 resize(); 18520 actualHeight = computed.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(ta, null).height)) : ta.offsetHeight; 18521 } 18522 } 18523 18524 if (cachedHeight !== actualHeight) { 18525 cachedHeight = actualHeight; 18526 var evt = createEvent('autosize:resized'); 18527 try { 18528 ta.dispatchEvent(evt); 18529 } catch (err) { 18530 // Firefox will throw an error on dispatchEvent for a detached element 18531 // https://bugzilla.mozilla.org/show_bug.cgi?id=889376 18532 } 18533 } 18534 } 18535 18536 var pageResize = function pageResize() { 18537 if (ta.clientWidth !== clientWidth) { 18538 update(); 18539 } 18540 }; 18541 18542 var destroy = (function (style) { 18543 window.removeEventListener('resize', pageResize, false); 18544 ta.removeEventListener('input', update, false); 18545 ta.removeEventListener('keyup', update, false); 18546 ta.removeEventListener('autosize:destroy', destroy, false); 18547 ta.removeEventListener('autosize:update', update, false); 18548 18549 Object.keys(style).forEach(function (key) { 18550 ta.style[key] = style[key]; 18551 }); 18552 18553 map['delete'](ta); 18554 }).bind(ta, { 18555 height: ta.style.height, 18556 resize: ta.style.resize, 18557 overflowY: ta.style.overflowY, 18558 overflowX: ta.style.overflowX, 18559 wordWrap: ta.style.wordWrap 18560 }); 18561 18562 ta.addEventListener('autosize:destroy', destroy, false); 18563 18564 // IE9 does not fire onpropertychange or oninput for deletions, 18565 // so binding to onkeyup to catch most of those events. 18566 // There is no way that I know of to detect something like 'cut' in IE9. 18567 if ('onpropertychange' in ta && 'oninput' in ta) { 18568 ta.addEventListener('keyup', update, false); 18569 } 18570 18571 window.addEventListener('resize', pageResize, false); 18572 ta.addEventListener('input', update, false); 18573 ta.addEventListener('autosize:update', update, false); 18574 ta.style.overflowX = 'hidden'; 18575 ta.style.wordWrap = 'break-word'; 18576 18577 map.set(ta, { 18578 destroy: destroy, 18579 update: update 18580 }); 18581 18582 init(); 18583 } 18584 18585 function destroy(ta) { 18586 var methods = map.get(ta); 18587 if (methods) { 18588 methods.destroy(); 18589 } 18590 } 18591 18592 function update(ta) { 18593 var methods = map.get(ta); 18594 if (methods) { 18595 methods.update(); 18596 } 18597 } 18598 18599 var autosize = null; 18600 18601 // Do nothing in Node.js environment and IE8 (or lower) 18602 if (typeof window === 'undefined' || typeof window.getComputedStyle !== 'function') { 18603 autosize = function (el) { 18604 return el; 18605 }; 18606 autosize.destroy = function (el) { 18607 return el; 18608 }; 18609 autosize.update = function (el) { 18610 return el; 18611 }; 18612 } else { 18613 autosize = function (el, options) { 18614 if (el) { 18615 Array.prototype.forEach.call(el.length ? el : [el], function (x) { 18616 return assign(x, options); 18617 }); 18618 } 18619 return el; 18620 }; 18621 autosize.destroy = function (el) { 18622 if (el) { 18623 Array.prototype.forEach.call(el.length ? el : [el], destroy); 18624 } 18625 return el; 18626 }; 18627 autosize.update = function (el) { 18628 if (el) { 18629 Array.prototype.forEach.call(el.length ? el : [el], update); 18630 } 18631 return el; 18632 }; 18633 } 18634 18635 module.exports = autosize; 18636 }); 18637 18638 /***/ 18639 }), 18640 /* 260 */ 18641 /***/ (function (module, exports, __webpack_require__) { 18642 18643 "use strict"; 18644 18645 18646 Object.defineProperty(exports, "__esModule", { 18647 value: true 18648 }); 18649 18650 exports.default = function (language) { 18651 return new _polyglot2.default({ 18652 phrases: i18nMap[language] || i18nMap.en, 18653 locale: language 18654 }); 18655 }; 18656 18657 var _polyglot = __webpack_require__(261); 18658 18659 var _polyglot2 = _interopRequireDefault(_polyglot); 18660 18661 var _zhCN = __webpack_require__(262); 18662 18663 var _zhCN2 = _interopRequireDefault(_zhCN); 18664 18665 var _zhTW = __webpack_require__(263); 18666 18667 var _zhTW2 = _interopRequireDefault(_zhTW); 18668 18669 var _en = __webpack_require__(264); 18670 18671 var _en2 = _interopRequireDefault(_en); 18672 18673 var _esES = __webpack_require__(265); 18674 18675 var _esES2 = _interopRequireDefault(_esES); 18676 18677 var _fr = __webpack_require__(266); 18678 18679 var _fr2 = _interopRequireDefault(_fr); 18680 18681 var _ru = __webpack_require__(267); 18682 18683 var _ru2 = _interopRequireDefault(_ru); 18684 18685 var _de = __webpack_require__(268); 18686 18687 var _de2 = _interopRequireDefault(_de); 18688 18689 var _pl = __webpack_require__(269); 18690 18691 var _pl2 = _interopRequireDefault(_pl); 18692 18693 var _ko = __webpack_require__(270); 18694 18695 var _ko2 = _interopRequireDefault(_ko); 18696 18697 function _interopRequireDefault(obj) { 18698 return obj && obj.__esModule ? obj : {default: obj}; 18699 } 18700 18701 var i18nMap = { 18702 'zh': _zhCN2.default, 18703 'zh-CN': _zhCN2.default, 18704 'zh-TW': _zhTW2.default, 18705 'en': _en2.default, 18706 'es-ES': _esES2.default, 18707 'fr': _fr2.default, 18708 'ru': _ru2.default, 18709 'de': _de2.default, 18710 'pl': _pl2.default, 18711 'ko': _ko2.default 18712 }; 18713 18714 /***/ 18715 }), 18716 /* 261 */ 18717 /***/ (function (module, exports, __webpack_require__) { 18718 18719 var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// (c) 2012 Airbnb, Inc. 18720// 18721// polyglot.js may be freely distributed under the terms of the BSD 18722// license. For all licensing information, details, and documention: 18723// http://airbnb.github.com/polyglot.js 18724// 18725// 18726// Polyglot.js is an I18n helper library written in JavaScript, made to 18727// work both in the browser and in Node. It provides a simple solution for 18728// interpolation and pluralization, based off of Airbnb's 18729// experience adding I18n functionality to its Backbone.js and Node apps. 18730// 18731// Polylglot is agnostic to your translation backend. It doesn't perform any 18732// translation; it simply gives you a way to manage translated phrases from 18733// your client- or server-side JavaScript application. 18734// 18735 18736 18737 (function (root, factory) { 18738 if (true) { 18739 !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () { 18740 return factory(root); 18741 }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), 18742 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); 18743 } else if (typeof exports === 'object') { 18744 module.exports = factory(root); 18745 } else { 18746 root.Polyglot = factory(root); 18747 } 18748 }(this, function (root) { 18749 'use strict'; 18750 18751 // ### Polyglot class constructor 18752 function Polyglot(options) { 18753 options = options || {}; 18754 this.phrases = {}; 18755 this.extend(options.phrases || {}); 18756 this.currentLocale = options.locale || 'en'; 18757 this.allowMissing = !!options.allowMissing; 18758 this.warn = options.warn || warn; 18759 } 18760 18761 // ### Version 18762 Polyglot.VERSION = '0.4.3'; 18763 18764 // ### polyglot.locale([locale]) 18765 // 18766 // Get or set locale. Internally, Polyglot only uses locale for pluralization. 18767 Polyglot.prototype.locale = function (newLocale) { 18768 if (newLocale) this.currentLocale = newLocale; 18769 return this.currentLocale; 18770 }; 18771 18772 // ### polyglot.extend(phrases) 18773 // 18774 // Use `extend` to tell Polyglot how to translate a given key. 18775 // 18776 // polyglot.extend({ 18777 // "hello": "Hello", 18778 // "hello_name": "Hello, %{name}" 18779 // }); 18780 // 18781 // The key can be any string. Feel free to call `extend` multiple times; 18782 // it will override any phrases with the same key, but leave existing phrases 18783 // untouched. 18784 // 18785 // It is also possible to pass nested phrase objects, which get flattened 18786 // into an object with the nested keys concatenated using dot notation. 18787 // 18788 // polyglot.extend({ 18789 // "nav": { 18790 // "hello": "Hello", 18791 // "hello_name": "Hello, %{name}", 18792 // "sidebar": { 18793 // "welcome": "Welcome" 18794 // } 18795 // } 18796 // }); 18797 // 18798 // console.log(polyglot.phrases); 18799 // // { 18800 // // 'nav.hello': 'Hello', 18801 // // 'nav.hello_name': 'Hello, %{name}', 18802 // // 'nav.sidebar.welcome': 'Welcome' 18803 // // } 18804 // 18805 // `extend` accepts an optional second argument, `prefix`, which can be used 18806 // to prefix every key in the phrases object with some string, using dot 18807 // notation. 18808 // 18809 // polyglot.extend({ 18810 // "hello": "Hello", 18811 // "hello_name": "Hello, %{name}" 18812 // }, "nav"); 18813 // 18814 // console.log(polyglot.phrases); 18815 // // { 18816 // // 'nav.hello': 'Hello', 18817 // // 'nav.hello_name': 'Hello, %{name}' 18818 // // } 18819 // 18820 // This feature is used internally to support nested phrase objects. 18821 Polyglot.prototype.extend = function (morePhrases, prefix) { 18822 var phrase; 18823 18824 for (var key in morePhrases) { 18825 if (morePhrases.hasOwnProperty(key)) { 18826 phrase = morePhrases[key]; 18827 if (prefix) key = prefix + '.' + key; 18828 if (typeof phrase === 'object') { 18829 this.extend(phrase, key); 18830 } else { 18831 this.phrases[key] = phrase; 18832 } 18833 } 18834 } 18835 }; 18836 18837 // ### polyglot.clear() 18838 // 18839 // Clears all phrases. Useful for special cases, such as freeing 18840 // up memory if you have lots of phrases but no longer need to 18841 // perform any translation. Also used internally by `replace`. 18842 Polyglot.prototype.clear = function () { 18843 this.phrases = {}; 18844 }; 18845 18846 // ### polyglot.replace(phrases) 18847 // 18848 // Completely replace the existing phrases with a new set of phrases. 18849 // Normally, just use `extend` to add more phrases, but under certain 18850 // circumstances, you may want to make sure no old phrases are lying around. 18851 Polyglot.prototype.replace = function (newPhrases) { 18852 this.clear(); 18853 this.extend(newPhrases); 18854 }; 18855 18856 18857 // ### polyglot.t(key, options) 18858 // 18859 // The most-used method. Provide a key, and `t` will return the 18860 // phrase. 18861 // 18862 // polyglot.t("hello"); 18863 // => "Hello" 18864 // 18865 // The phrase value is provided first by a call to `polyglot.extend()` or 18866 // `polyglot.replace()`. 18867 // 18868 // Pass in an object as the second argument to perform interpolation. 18869 // 18870 // polyglot.t("hello_name", {name: "Spike"}); 18871 // => "Hello, Spike" 18872 // 18873 // If you like, you can provide a default value in case the phrase is missing. 18874 // Use the special option key "_" to specify a default. 18875 // 18876 // polyglot.t("i_like_to_write_in_language", { 18877 // _: "I like to write in %{language}.", 18878 // language: "JavaScript" 18879 // }); 18880 // => "I like to write in JavaScript." 18881 // 18882 Polyglot.prototype.t = function (key, options) { 18883 var phrase, result; 18884 options = options == null ? {} : options; 18885 // allow number as a pluralization shortcut 18886 if (typeof options === 'number') { 18887 options = {smart_count: options}; 18888 } 18889 if (typeof this.phrases[key] === 'string') { 18890 phrase = this.phrases[key]; 18891 } else if (typeof options._ === 'string') { 18892 phrase = options._; 18893 } else if (this.allowMissing) { 18894 phrase = key; 18895 } else { 18896 this.warn('Missing translation for key: "' + key + '"'); 18897 result = key; 18898 } 18899 if (typeof phrase === 'string') { 18900 options = clone(options); 18901 result = choosePluralForm(phrase, this.currentLocale, options.smart_count); 18902 result = interpolate(result, options); 18903 } 18904 return result; 18905 }; 18906 18907 18908 // ### polyglot.has(key) 18909 // 18910 // Check if polyglot has a translation for given key 18911 Polyglot.prototype.has = function (key) { 18912 return key in this.phrases; 18913 }; 18914 18915 18916 // #### Pluralization methods 18917 // The string that separates the different phrase possibilities. 18918 var delimeter = '||||'; 18919 18920 // Mapping from pluralization group plural logic. 18921 var pluralTypes = { 18922 chinese: function (n) { 18923 return 0; 18924 }, 18925 german: function (n) { 18926 return n !== 1 ? 1 : 0; 18927 }, 18928 french: function (n) { 18929 return n > 1 ? 1 : 0; 18930 }, 18931 russian: function (n) { 18932 return n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2; 18933 }, 18934 czech: function (n) { 18935 return (n === 1) ? 0 : (n >= 2 && n <= 4) ? 1 : 2; 18936 }, 18937 polish: function (n) { 18938 return (n === 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2); 18939 }, 18940 icelandic: function (n) { 18941 return (n % 10 !== 1 || n % 100 === 11) ? 1 : 0; 18942 } 18943 }; 18944 18945 // Mapping from pluralization group to individual locales. 18946 var pluralTypeToLanguages = { 18947 chinese: ['fa', 'id', 'ja', 'ko', 'lo', 'ms', 'th', 'tr', 'zh'], 18948 german: ['da', 'de', 'en', 'es', 'fi', 'el', 'he', 'hu', 'it', 'nl', 'no', 'pt', 'sv'], 18949 french: ['fr', 'tl', 'pt-br'], 18950 russian: ['hr', 'ru'], 18951 czech: ['cs'], 18952 polish: ['pl'], 18953 icelandic: ['is'] 18954 }; 18955 18956 function langToTypeMap(mapping) { 18957 var type, langs, l, ret = {}; 18958 for (type in mapping) { 18959 if (mapping.hasOwnProperty(type)) { 18960 langs = mapping[type]; 18961 for (l in langs) { 18962 ret[langs[l]] = type; 18963 } 18964 } 18965 } 18966 return ret; 18967 } 18968 18969 // Trim a string. 18970 function trim(str) { 18971 var trimRe = /^\s+|\s+$/g; 18972 return str.replace(trimRe, ''); 18973 } 18974 18975 // Based on a phrase text that contains `n` plural forms separated 18976 // by `delimeter`, a `locale`, and a `count`, choose the correct 18977 // plural form, or none if `count` is `null`. 18978 function choosePluralForm(text, locale, count) { 18979 var ret, texts, chosenText; 18980 if (count != null && text) { 18981 texts = text.split(delimeter); 18982 chosenText = texts[pluralTypeIndex(locale, count)] || texts[0]; 18983 ret = trim(chosenText); 18984 } else { 18985 ret = text; 18986 } 18987 return ret; 18988 } 18989 18990 function pluralTypeName(locale) { 18991 var langToPluralType = langToTypeMap(pluralTypeToLanguages); 18992 return langToPluralType[locale] || langToPluralType.en; 18993 } 18994 18995 function pluralTypeIndex(locale, count) { 18996 return pluralTypes[pluralTypeName(locale)](count); 18997 } 18998 18999 // ### interpolate 19000 // 19001 // Does the dirty work. Creates a `RegExp` object for each 19002 // interpolation placeholder. 19003 function interpolate(phrase, options) { 19004 for (var arg in options) { 19005 if (arg !== '_' && options.hasOwnProperty(arg)) { 19006 // We create a new `RegExp` each time instead of using a more-efficient 19007 // string replace so that the same argument can be replaced multiple times 19008 // in the same phrase. 19009 phrase = phrase.replace(new RegExp('%\\{' + arg + '\\}', 'g'), options[arg]); 19010 } 19011 } 19012 return phrase; 19013 } 19014 19015 // ### warn 19016 // 19017 // Provides a warning in the console if a phrase key is missing. 19018 function warn(message) { 19019 root.console && root.console.warn && root.console.warn('WARNING: ' + message); 19020 } 19021 19022 // ### clone 19023 // 19024 // Clone an object. 19025 function clone(source) { 19026 var ret = {}; 19027 for (var prop in source) { 19028 ret[prop] = source[prop]; 19029 } 19030 return ret; 19031 } 19032 19033 return Polyglot; 19034 })); 19035 19036 19037 /***/ 19038 }), 19039 /* 262 */
19040 /***/ (function (module, exports) { 19041 19042 module.exports = { 19043 "init": "Gitalk å è½½ä¸ ...", 19044 "no-found-related": "æªæ¾å°ç¸å ³ç %{link} è¿è¡è¯è®º", 19045 "please-contact": "请èç³» %{user} åå§åå建", 19046 "init-issue": "åå§å Issue", 19047 "leave-a-comment": "说ç¹ä»ä¹", 19048 "preview": "é¢è§", 19049 "edit": "ç¼è¾", 19050 "comment": "è¯è®º", 19051 "support-markdown": "æ¯æ Markdown è¯æ³", 19052 "login-with-github": "ä½¿ç¨ GitHub ç»å½", 19053 "first-comment-person": "æ¥å第ä¸ä¸ªçè¨ç人å§ï¼", 19054 "commented": "å表äº", 19055 "load-more": "å è½½æ´å¤", 19056 "counts": "%{counts} æ¡è¯è®º", 19057 "sort-asc": "仿§å°æ°æåº", 19058 "sort-desc": "仿°å°æ§æåº", 19059 "logout": "注é", 19060 "anonymous": "æªç»å½ç¨æ·" 19061 } 19062 19063 /***/ 19064 }), 19065 /* 263 */ 19066 /***/ (function (module, exports) { 19067 19068 module.exports = { 19069 "init": "Gitalk è¼å ¥ä¸â¦", 19070 "no-found-related": "æªæ¾å°ç¸éç %{link}", 19071 "please-contact": "è«è¯çµ¡ %{user} åå§åè©è«", 19072 "init-issue": "åå§å Issue", 19073 "leave-a-comment": "寫é»ä»éº¼", 19074 "preview": "é 覽", 19075 "edit": "編輯", 19076 "comment": "è©è«", 19077 "support-markdown": "æ¯æ´ Markdown èªæ³", 19078 "login-with-github": "ä½¿ç¨ GitHub ç»å ¥", 19079 "first-comment-person": "æçºé¦åçè¨ç人å§ï¼", 19080 "commented": "è©è«æ¼", 19081 "load-more": "è¼å ¥æ´å¤", 19082 "counts": "%{counts} çè©è«", 19083 "sort-asc": "å¾èè³æ°æåº", 19084 "sort-desc": "徿°è³èæåº", 19085 "logout": "ç»åº", 19086 "anonymous": "訪客" 19087 } 19088 19089 /***/ 19090 }), 19091 /* 264 */ 19092 /***/ (function (module, exports) { 19093 19094 module.exports = { 19095 "init": "Gitalking ...", 19096 "no-found-related": "Related %{link} not found", 19097 "please-contact": "Please contact %{user} to initialize the comment", 19098 "init-issue": "Init Issue", 19099 "leave-a-comment": "Leave a comment", 19100 "preview": "Preview", 19101 "edit": "Edit", 19102 "comment": "Comment", 19103 "support-markdown": "Markdown is supported", 19104 "login-with-github": "Login with GitHub", 19105 "first-comment-person": "Be the first person to leave a comment!", 19106 "commented": "commented", 19107 "load-more": "Load more", 19108 "counts": "%{counts} comment |||| %{counts} comments", 19109 "sort-asc": "Sort by Oldest", 19110 "sort-desc": "Sort by Latest", 19111 "logout": "Logout", 19112 "anonymous": "Anonymous" 19113 } 19114 19115 /***/ 19116 }), 19117 /* 265 */ 19118 /***/ (function (module, exports) { 19119 19120 module.exports = { 19121 "init": "Gitalking ...", 19122 "no-found-related": "Link %{link} no encontrado", 19123 "please-contact": "Por favor contacta con %{user} para inicializar el comentario", 19124 "init-issue": "Iniciar Issue", 19125 "leave-a-comment": "Deja un comentario", 19126 "preview": "Avance", 19127 "edit": "Editar", 19128 "comment": "Comentario", 19129 "support-markdown": "Markdown es soportado",
19130 "login-with-github": "Entrar con GitHub", 19131 "first-comment-person": "Sé el primero en dejar un comentario!", 19132 "commented": "comentó", 19133 "load-more": "Cargar más", 19134 "counts": "%{counts} comentario |||| %{counts} comentarios", 19135 "sort-asc": "Ordenar por Antiguos", 19136 "sort-desc": "Ordenar por Recientes", 19137 "logout": "Salir", 19138 "anonymous": "Anónimo" 19139 } 19140 19141 /***/ 19142 }), 19143 /* 266 */ 19144 /***/ (function (module, exports) { 19145 19146 module.exports = { 19147 "init": "Gitalking ...", 19148 "no-found-related": "Lien %{link} non trouvé", 19149 "please-contact": "Sâil vous plaît contactez %{user} pour initialiser les commentaires", 19150 "init-issue": "Initialisation des issues", 19151 "leave-a-comment": "Laisser un commentaire", 19152 "preview": "Aperçu", 19153 "edit": "Modifier", 19154 "comment": "Commentaire", 19155 "support-markdown": "Markdown est supporté", 19156 "login-with-github": "Se connecter avec GitHub", 19157 "first-comment-person": "Ãtre le premier à laisser un commentaire !", 19158 "commented": "commenter", 19159 "load-more": "Charger plus", 19160 "counts": "%{counts} commentaire |||| %{counts} commentaires", 19161 "sort-asc": "Trier par plus ancien", 19162 "sort-desc": "Trier par plus récent", 19163 "logout": "Déconnexion", 19164 "anonymous": "Anonyme" 19165 } 19166 19167 /***/ 19168 }), 19169 /* 267 */ 19170 /***/ (function (module, exports) { 19171 19172 module.exports = { 19173 "init": "Gitalking ...", 19174 "no-found-related": "СвÑзаннÑе %{link} не найденÑ", 19175 "please-contact": "ÐожалÑйÑÑа, ÑвÑжиÑеÑÑ Ñ %{user} ÑÑÐ¾Ð±Ñ Ð¸Ð½Ð¸ÑиализиÑоваÑÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑаÑий", 19176 "init-issue": "ÐÑпÑÑк иниÑиализаÑии", 19177 "leave-a-comment": "ÐÑÑавиÑÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑаÑий", 19178 "preview": "ÐÑедваÑиÑелÑнÑй пÑоÑмоÑÑ", 19179 "edit": "PедакÑиÑоваÑÑ", 19180 "comment": "ÐомменÑаÑий", 19181 "support-markdown": "ÐоддеÑживаеÑÑÑ Markdown", 19182 "login-with-github": "ÐÑ Ð¾Ð´ ÑеÑез GitHub", 19183 "first-comment-person": "ÐÑдÑÑе пеÑвÑм, кÑо оÑÑавил комменÑаÑий", 19184 "commented": "пÑокомменÑиÑованнÑй", 19185 "load-more": "ÐагÑÑзиÑÑ ÐµÑÑ", 19186 "counts": "%{counts} комменÑаÑий |||| %{counts} комменÑаÑиев", 19187 "sort-asc": "СоÑÑиÑоваÑÑ Ð¿Ð¾ ÑÑаÑÑм", 19188 "sort-desc": "СоÑÑиÑоваÑÑ Ð¿Ð¾ поÑледним", 19189 "logout": "ÐÑÑ Ð¾Ð´", 19190 "anonymous": "ÐнонимнÑй" 19191 } 19192 19193 /***/ 19194 }), 19195 /* 268 */ 19196 /***/ (function (module, exports) { 19197 19198 module.exports = { 19199 "init": "Gitalking ...", 19200 "no-found-related": "Zugehöriger %{link} nicht gefunden", 19201 "please-contact": "Bitte kontaktiere %{user} um den Kommentar zu initialisieren", 19202 "init-issue": "Initialisiere Issue", 19203 "leave-a-comment": "Hinterlasse einen Kommentar", 19204 "preview": "Vorschau", 19205 "edit": "Editieren", 19206 "comment": "Kommentieren", 19207 "support-markdown": "Markdown wird unterstützt", 19208 "login-with-github": "Mit GitHub-Account anmelden", 19209 "first-comment-person": "Sei die erste Person, welche einen Kommentar hinterlässt!", 19210 "commented": "kommentierte", 19211 "load-more": "Zeige mehr", 19212 "counts": "%{counts} Kommentar |||| %{counts} Kommentare", 19213 "sort-asc": "Ãlteste zuerst", 19214 "sort-desc": "Neuste zuerst", 19215 "logout": "Abmelden", 19216 "anonymous": "Anonym" 19217 } 19218 19219 /***/ 19220 }), 19221 /* 269 */
19222 /***/ (function (module, exports) { 19223 19224 module.exports = { 19225 "init": "Gitalking ...", 19226 "no-found-related": "Nie znaleziono powiÄ zanego zgÅoszenia: %{link}", 19227 "please-contact": "Skontaktuj siÄ z %{user}, aby umożliwiÄ komentowanie", 19228 "init-issue": "Utwórz zgÅoszenie (GitHub Issue)", 19229 "leave-a-comment": "Skomentuj", 19230 "preview": "PodglÄ d", 19231 "edit": "Edytuj", 19232 "comment": "WyÅlij", 19233 "support-markdown": "Możesz użyÄ skÅadni Markdown", 19234 "login-with-github": "Zaloguj siÄ poprzez GitHub", 19235 "first-comment-person": "Skomentuj jako pierwszy!", 19236 "commented": "skomentowany", 19237 "load-more": "ZaÅaduj wiÄcej", 19238 "counts": "%{counts} komentarz |||| %{counts} komentarze |||| %{counts} komentarzy", 19239 "sort-asc": "Sortuj od najstarszych", 19240 "sort-desc": "Sortuj od najnowszych", 19241 "logout": "Wyloguj", 19242 "anonymous": "Anonimowy" 19243 } 19244 19245 /***/ 19246 }), 19247 /* 270 */ 19248 /***/ (function (module, exports) { 19249 19250 module.exports = { 19251 "init": "ì´ê¸°í ì¤ ...", 19252 "no-found-related": "ê´ë ¨ ë§í¬ë¥¼ ì°¾ì ì ììµëë¤: %{link} ", 19253 "please-contact": "ì´ê¸°í를 ìí´ %{user} ìê² ì°ë½í´ 주ì¸ì", 19254 "init-issue": "ì´ì ì´ê¸°í", 19255 "leave-a-comment": "ëê¸ì ë¨ê²¨ë³´ì¸ì", 19256 "preview": "미리보기", 19257 "edit": "ìì í기", 19258 "comment": "ëê¸ ë¬ê¸°", 19259 "support-markdown": "ë§í¬ë¤ì´(Markdown) ë¬¸ë² ì§ì", 19260 "login-with-github": "GitHubë¡ ë¡ê·¸ì¸í기", 19261 "first-comment-person": "첫 ë²ì§¸ë¡ ëê¸ì ë¨ê²¨ë³´ì¸ì!", 19262 "commented": "ëì´ ìì±í¨", 19263 "load-more": "ë 보기", 19264 "counts": "ëê¸ %{counts} ê°", 19265 "sort-asc": "ì¤ëë ëê¸ ë¨¼ì ", 19266 "sort-desc": "ìµì ëê¸ ë¨¼ì ", 19267 "logout": "ë¡ê·¸ìì", 19268 "anonymous": "ìµëª " 19269 } 19270 19271 /***/ 19272 }), 19273 /* 271 */ 19274 /***/ (function (module, exports) { 19275 19276// removed by extract-text-webpack-plugin 19277 19278 /***/ 19279 }), 19280 /* 272 */ 19281 /***/ (function (module, exports, __webpack_require__) { 19282 19283 module.exports = {"default": __webpack_require__(273), __esModule: true}; 19284 19285 /***/ 19286 }), 19287 /* 273 */ 19288 /***/ (function (module, exports, __webpack_require__) { 19289 19290 __webpack_require__(274);
vendor: 36,006 bytes, lines 19291-20239
19291 module.exports = __webpack_require__(7).Object.keys; 19292 19293 19294 /***/ 19295 }), 19296 /* 274 */ 19297 /***/ (function (module, exports, __webpack_require__) { 19298 19299// 19.1.2.14 Object.keys(O) 19300 var toObject = __webpack_require__(33); 19301 var $keys = __webpack_require__(42); 19302 19303 __webpack_require__(115)('keys', function () { 19304 return function keys(it) { 19305 return $keys(toObject(it)); 19306 }; 19307 }); 19308 19309 19310 /***/ 19311 }), 19312 /* 275 */ 19313 /***/ (function (module, exports, __webpack_require__) { 19314 19315 "use strict"; 19316 19317 19318 exports.__esModule = true; 19319 19320 var _isIterable2 = __webpack_require__(276); 19321 19322 var _isIterable3 = _interopRequireDefault(_isIterable2); 19323 19324 var _getIterator2 = __webpack_require__(279); 19325 19326 var _getIterator3 = _interopRequireDefault(_getIterator2); 19327 19328 function _interopRequireDefault(obj) { 19329 return obj && obj.__esModule ? obj : {default: obj}; 19330 } 19331 19332 exports.default = function () { 19333 function sliceIterator(arr, i) { 19334 var _arr = []; 19335 var _n = true; 19336 var _d = false; 19337 var _e = undefined; 19338 19339 try { 19340 for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) { 19341 _arr.push(_s.value); 19342 19343 if (i && _arr.length === i) break; 19344 } 19345 } catch (err) { 19346 _d = true; 19347 _e = err; 19348 } finally { 19349 try { 19350 if (!_n && _i["return"]) _i["return"](); 19351 } finally { 19352 if (_d) throw _e; 19353 } 19354 } 19355 19356 return _arr; 19357 } 19358 19359 return function (arr, i) { 19360 if (Array.isArray(arr)) { 19361 return arr; 19362 } else if ((0, _isIterable3.default)(Object(arr))) { 19363 return sliceIterator(arr, i); 19364 } else { 19365 throw new TypeError("Invalid attempt to destructure non-iterable instance"); 19366 } 19367 }; 19368 }(); 19369 19370 /***/ 19371 }), 19372 /* 276 */ 19373 /***/ (function (module, exports, __webpack_require__) { 19374 19375 module.exports = {"default": __webpack_require__(277), __esModule: true}; 19376 19377 /***/ 19378 }), 19379 /* 277 */ 19380 /***/ (function (module, exports, __webpack_require__) { 19381 19382 __webpack_require__(54); 19383 __webpack_require__(40); 19384 module.exports = __webpack_require__(278); 19385 19386 19387 /***/ 19388 }), 19389 /* 278 */ 19390 /***/ (function (module, exports, __webpack_require__) { 19391 19392 var classof = __webpack_require__(76); 19393 var ITERATOR = __webpack_require__(9)('iterator'); 19394 var Iterators = __webpack_require__(31); 19395 module.exports = __webpack_require__(7).isIterable = function (it) { 19396 var O = Object(it); 19397 return O[ITERATOR] !== undefined 19398 || '@@iterator' in O 19399 // eslint-disable-next-line no-prototype-builtins 19400 || Iterators.hasOwnProperty(classof(O)); 19401 }; 19402 19403 19404 /***/ 19405 }), 19406 /* 279 */ 19407 /***/ (function (module, exports, __webpack_require__) { 19408 19409 module.exports = {"default": __webpack_require__(280), __esModule: true}; 19410 19411 /***/ 19412 }), 19413 /* 280 */ 19414 /***/ (function (module, exports, __webpack_require__) { 19415 19416 __webpack_require__(54); 19417 __webpack_require__(40); 19418 module.exports = __webpack_require__(281); 19419 19420 19421 /***/ 19422 }), 19423 /* 281 */ 19424 /***/ (function (module, exports, __webpack_require__) { 19425 19426 var anObject = __webpack_require__(14); 19427 var get = __webpack_require__(77); 19428 module.exports = __webpack_require__(7).getIterator = function (it) { 19429 var iterFn = get(it); 19430 if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!'); 19431 return anObject(iterFn.call(it)); 19432 }; 19433 19434 19435 /***/ 19436 }), 19437 /* 282 */ 19438 /***/ (function (module, exports, __webpack_require__) { 19439 19440 module.exports = __webpack_require__(283); 19441 19442 /***/ 19443 }), 19444 /* 283 */ 19445 /***/ (function (module, exports, __webpack_require__) { 19446 19447 "use strict"; 19448 19449 19450 var utils = __webpack_require__(10); 19451 var bind = __webpack_require__(122); 19452 var Axios = __webpack_require__(284); 19453 var mergeConfig = __webpack_require__(128); 19454 var defaults = __webpack_require__(125); 19455 19456 /** 19457 * Create an instance of Axios 19458 * 19459 * @param {Object} defaultConfig The default config for the instance 19460 * @return {Axios} A new instance of Axios 19461 */ 19462 function createInstance(defaultConfig) { 19463 var context = new Axios(defaultConfig); 19464 var instance = bind(Axios.prototype.request, context); 19465 19466 // Copy axios.prototype to instance 19467 utils.extend(instance, Axios.prototype, context); 19468 19469 // Copy context to instance 19470 utils.extend(instance, context); 19471 19472 return instance; 19473 } 19474 19475// Create the default instance to be exported 19476 var axios = createInstance(defaults); 19477 19478// Expose Axios class to allow class inheritance 19479 axios.Axios = Axios; 19480 19481// Factory for creating new instances 19482 axios.create = function create(instanceConfig) { 19483 return createInstance(mergeConfig(axios.defaults, instanceConfig)); 19484 }; 19485 19486// Expose Cancel & CancelToken 19487 axios.Cancel = __webpack_require__(129); 19488 axios.CancelToken = __webpack_require__(297); 19489 axios.isCancel = __webpack_require__(124); 19490 19491// Expose all/spread 19492 axios.all = function all(promises) { 19493 return Promise.all(promises); 19494 }; 19495 axios.spread = __webpack_require__(298); 19496 19497 module.exports = axios; 19498 19499// Allow use of default import syntax in TypeScript 19500 module.exports.default = axios; 19501 19502 19503 /***/ 19504 }), 19505 /* 284 */ 19506 /***/ (function (module, exports, __webpack_require__) { 19507 19508 "use strict"; 19509 19510 19511 var utils = __webpack_require__(10); 19512 var buildURL = __webpack_require__(123); 19513 var InterceptorManager = __webpack_require__(285); 19514 var dispatchRequest = __webpack_require__(286); 19515 var mergeConfig = __webpack_require__(128); 19516 19517 /** 19518 * Create a new instance of Axios 19519 * 19520 * @param {Object} instanceConfig The default config for the instance 19521 */ 19522 function Axios(instanceConfig) { 19523 this.defaults = instanceConfig; 19524 this.interceptors = { 19525 request: new InterceptorManager(), 19526 response: new InterceptorManager() 19527 }; 19528 } 19529 19530 /** 19531 * Dispatch a request 19532 * 19533 * @param {Object} config The config specific for this request (merged with this.defaults) 19534 */ 19535 Axios.prototype.request = function request(config) { 19536 /*eslint no-param-reassign:0*/ 19537 // Allow for axios('example/url'[, config]) a la fetch API 19538 if (typeof config === 'string') { 19539 config = arguments[1] || {}; 19540 config.url = arguments[0]; 19541 } else { 19542 config = config || {}; 19543 } 19544 19545 config = mergeConfig(this.defaults, config); 19546 19547 // Set config.method 19548 if (config.method) { 19549 config.method = config.method.toLowerCase(); 19550 } else if (this.defaults.method) { 19551 config.method = this.defaults.method.toLowerCase(); 19552 } else { 19553 config.method = 'get'; 19554 } 19555 19556 // Hook up interceptors middleware 19557 var chain = [dispatchRequest, undefined]; 19558 var promise = Promise.resolve(config); 19559 19560 this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { 19561 chain.unshift(interceptor.fulfilled, interceptor.rejected); 19562 }); 19563 19564 this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { 19565 chain.push(interceptor.fulfilled, interceptor.rejected); 19566 }); 19567 19568 while (chain.length) { 19569 promise = promise.then(chain.shift(), chain.shift()); 19570 } 19571 19572 return promise; 19573 }; 19574 19575 Axios.prototype.getUri = function getUri(config) { 19576 config = mergeConfig(this.defaults, config); 19577 return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, ''); 19578 }; 19579 19580// Provide aliases for supported request methods 19581 utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { 19582 /*eslint func-names:0*/ 19583 Axios.prototype[method] = function (url, config) { 19584 return this.request(utils.merge(config || {}, { 19585 method: method, 19586 url: url 19587 })); 19588 }; 19589 }); 19590 19591 utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { 19592 /*eslint func-names:0*/ 19593 Axios.prototype[method] = function (url, data, config) { 19594 return this.request(utils.merge(config || {}, { 19595 method: method, 19596 url: url, 19597 data: data 19598 })); 19599 }; 19600 }); 19601 19602 module.exports = Axios; 19603 19604 19605 /***/ 19606 }), 19607 /* 285 */ 19608 /***/ (function (module, exports, __webpack_require__) { 19609 19610 "use strict"; 19611 19612 19613 var utils = __webpack_require__(10); 19614 19615 function InterceptorManager() { 19616 this.handlers = []; 19617 } 19618 19619 /** 19620 * Add a new interceptor to the stack 19621 * 19622 * @param {Function} fulfilled The function to handle `then` for a `Promise` 19623 * @param {Function} rejected The function to handle `reject` for a `Promise` 19624 * 19625 * @return {Number} An ID used to remove interceptor later 19626 */ 19627 InterceptorManager.prototype.use = function use(fulfilled, rejected) { 19628 this.handlers.push({ 19629 fulfilled: fulfilled, 19630 rejected: rejected 19631 }); 19632 return this.handlers.length - 1; 19633 }; 19634 19635 /** 19636 * Remove an interceptor from the stack 19637 * 19638 * @param {Number} id The ID that was returned by `use` 19639 */ 19640 InterceptorManager.prototype.eject = function eject(id) { 19641 if (this.handlers[id]) { 19642 this.handlers[id] = null; 19643 } 19644 }; 19645 19646 /** 19647 * Iterate over all the registered interceptors 19648 * 19649 * This method is particularly useful for skipping over any 19650 * interceptors that may have become `null` calling `eject`. 19651 * 19652 * @param {Function} fn The function to call for each interceptor 19653 */ 19654 InterceptorManager.prototype.forEach = function forEach(fn) { 19655 utils.forEach(this.handlers, function forEachHandler(h) { 19656 if (h !== null) { 19657 fn(h); 19658 } 19659 }); 19660 }; 19661 19662 module.exports = InterceptorManager; 19663 19664 19665 /***/ 19666 }), 19667 /* 286 */ 19668 /***/ (function (module, exports, __webpack_require__) { 19669 19670 "use strict"; 19671 19672 19673 var utils = __webpack_require__(10); 19674 var transformData = __webpack_require__(287); 19675 var isCancel = __webpack_require__(124); 19676 var defaults = __webpack_require__(125); 19677 19678 /** 19679 * Throws a `Cancel` if cancellation has been requested. 19680 */ 19681 function throwIfCancellationRequested(config) { 19682 if (config.cancelToken) { 19683 config.cancelToken.throwIfRequested(); 19684 } 19685 } 19686 19687 /** 19688 * Dispatch a request to the server using the configured adapter. 19689 * 19690 * @param {object} config The config that is to be used for the request 19691 * @returns {Promise} The Promise to be fulfilled 19692 */ 19693 module.exports = function dispatchRequest(config) { 19694 throwIfCancellationRequested(config); 19695 19696 // Ensure headers exist 19697 config.headers = config.headers || {}; 19698 19699 // Transform request data 19700 config.data = transformData( 19701 config.data, 19702 config.headers, 19703 config.transformRequest 19704 ); 19705 19706 // Flatten headers 19707 config.headers = utils.merge( 19708 config.headers.common || {}, 19709 config.headers[config.method] || {}, 19710 config.headers 19711 ); 19712 19713 utils.forEach( 19714 ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], 19715 function cleanHeaderConfig(method) { 19716 delete config.headers[method]; 19717 } 19718 ); 19719 19720 var adapter = config.adapter || defaults.adapter; 19721 19722 return adapter(config).then(function onAdapterResolution(response) { 19723 throwIfCancellationRequested(config); 19724 19725 // Transform response data 19726 response.data = transformData( 19727 response.data, 19728 response.headers, 19729 config.transformResponse 19730 ); 19731 19732 return response; 19733 }, function onAdapterRejection(reason) { 19734 if (!isCancel(reason)) { 19735 throwIfCancellationRequested(config); 19736 19737 // Transform response data 19738 if (reason && reason.response) { 19739 reason.response.data = transformData( 19740 reason.response.data, 19741 reason.response.headers, 19742 config.transformResponse 19743 ); 19744 } 19745 } 19746 19747 return Promise.reject(reason); 19748 }); 19749 }; 19750 19751 19752 /***/ 19753 }), 19754 /* 287 */ 19755 /***/ (function (module, exports, __webpack_require__) { 19756 19757 "use strict"; 19758 19759 19760 var utils = __webpack_require__(10); 19761 19762 /** 19763 * Transform the data for a request or a response 19764 * 19765 * @param {Object|String} data The data to be transformed 19766 * @param {Array} headers The headers for the request or response 19767 * @param {Array|Function} fns A single function or Array of functions 19768 * @returns {*} The resulting transformed data 19769 */ 19770 module.exports = function transformData(data, headers, fns) { 19771 /*eslint no-param-reassign:0*/ 19772 utils.forEach(fns, function transform(fn) { 19773 data = fn(data, headers); 19774 }); 19775 19776 return data; 19777 }; 19778 19779 19780 /***/ 19781 }), 19782 /* 288 */ 19783 /***/ (function (module, exports, __webpack_require__) { 19784 19785 "use strict"; 19786 19787 19788 var utils = __webpack_require__(10); 19789 19790 module.exports = function normalizeHeaderName(headers, normalizedName) { 19791 utils.forEach(headers, function processHeader(value, name) { 19792 if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { 19793 headers[normalizedName] = value; 19794 delete headers[name]; 19795 } 19796 }); 19797 }; 19798 19799 19800 /***/ 19801 }), 19802 /* 289 */ 19803 /***/ (function (module, exports, __webpack_require__) { 19804 19805 "use strict"; 19806 19807 19808 var createError = __webpack_require__(127); 19809 19810 /** 19811 * Resolve or reject a Promise based on response status. 19812 * 19813 * @param {Function} resolve A function that resolves the promise. 19814 * @param {Function} reject A function that rejects the promise. 19815 * @param {object} response The response. 19816 */ 19817 module.exports = function settle(resolve, reject, response) { 19818 var validateStatus = response.config.validateStatus; 19819 if (!validateStatus || validateStatus(response.status)) { 19820 resolve(response); 19821 } else { 19822 reject(createError( 19823 'Request failed with status code ' + response.status, 19824 response.config, 19825 null, 19826 response.request, 19827 response 19828 )); 19829 } 19830 }; 19831 19832 19833 /***/ 19834 }), 19835 /* 290 */ 19836 /***/ (function (module, exports, __webpack_require__) { 19837 19838 "use strict"; 19839 19840 19841 /** 19842 * Update an Error with the specified config, error code, and response. 19843 * 19844 * @param {Error} error The error to update. 19845 * @param {Object} config The config. 19846 * @param {string} [code] The error code (for example, 'ECONNABORTED'). 19847 * @param {Object} [request] The request. 19848 * @param {Object} [response] The response. 19849 * @returns {Error} The error. 19850 */ 19851 module.exports = function enhanceError(error, config, code, request, response) { 19852 error.config = config; 19853 if (code) { 19854 error.code = code; 19855 } 19856 19857 error.request = request; 19858 error.response = response; 19859 error.isAxiosError = true; 19860 19861 error.toJSON = function () { 19862 return { 19863 // Standard 19864 message: this.message, 19865 name: this.name, 19866 // Microsoft 19867 description: this.description, 19868 number: this.number, 19869 // Mozilla 19870 fileName: this.fileName, 19871 lineNumber: this.lineNumber, 19872 columnNumber: this.columnNumber, 19873 stack: this.stack, 19874 // Axios 19875 config: this.config, 19876 code: this.code 19877 }; 19878 }; 19879 return error; 19880 }; 19881 19882 19883 /***/ 19884 }), 19885 /* 291 */ 19886 /***/ (function (module, exports, __webpack_require__) { 19887 19888 "use strict"; 19889 19890 19891 var isAbsoluteURL = __webpack_require__(292); 19892 var combineURLs = __webpack_require__(293); 19893 19894 /** 19895 * Creates a new URL by combining the baseURL with the requestedURL, 19896 * only when the requestedURL is not already an absolute URL. 19897 * If the requestURL is absolute, this function returns the requestedURL untouched. 19898 * 19899 * @param {string} baseURL The base URL 19900 * @param {string} requestedURL Absolute or relative URL to combine 19901 * @returns {string} The combined full path 19902 */ 19903 module.exports = function buildFullPath(baseURL, requestedURL) { 19904 if (baseURL && !isAbsoluteURL(requestedURL)) { 19905 return combineURLs(baseURL, requestedURL); 19906 } 19907 return requestedURL; 19908 }; 19909 19910 19911 /***/ 19912 }), 19913 /* 292 */ 19914 /***/ (function (module, exports, __webpack_require__) { 19915 19916 "use strict"; 19917 19918 19919 /** 19920 * Determines whether the specified URL is absolute 19921 * 19922 * @param {string} url The URL to test 19923 * @returns {boolean} True if the specified URL is absolute, otherwise false 19924 */ 19925 module.exports = function isAbsoluteURL(url) { 19926 // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL). 19927 // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed 19928 // by any combination of letters, digits, plus, period, or hyphen. 19929 return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url); 19930 }; 19931 19932 19933 /***/ 19934 }), 19935 /* 293 */ 19936 /***/ (function (module, exports, __webpack_require__) { 19937 19938 "use strict"; 19939 19940 19941 /** 19942 * Creates a new URL by combining the specified URLs 19943 * 19944 * @param {string} baseURL The base URL 19945 * @param {string} relativeURL The relative URL 19946 * @returns {string} The combined URL 19947 */ 19948 module.exports = function combineURLs(baseURL, relativeURL) { 19949 return relativeURL 19950 ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') 19951 : baseURL; 19952 }; 19953 19954 19955 /***/ 19956 }), 19957 /* 294 */ 19958 /***/ (function (module, exports, __webpack_require__) { 19959 19960 "use strict"; 19961 19962 19963 var utils = __webpack_require__(10); 19964 19965// Headers whose duplicates are ignored by node 19966// c.f. https://nodejs.org/api/http.html#http_message_headers 19967 var ignoreDuplicateOf = [ 19968 'age', 'authorization', 'content-length', 'content-type', 'etag', 19969 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 19970 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 19971 'referer', 'retry-after', 'user-agent' 19972 ]; 19973 19974 /** 19975 * Parse headers into an object 19976 * 19977 * ``` 19978 * Date: Wed, 27 Aug 2014 08:58:49 GMT 19979 * Content-Type: application/json 19980 * Connection: keep-alive 19981 * Transfer-Encoding: chunked 19982 * ``` 19983 * 19984 * @param {String} headers Headers needing to be parsed 19985 * @returns {Object} Headers parsed into an object 19986 */ 19987 module.exports = function parseHeaders(headers) { 19988 var parsed = {}; 19989 var key; 19990 var val; 19991 var i; 19992 19993 if (!headers) { 19994 return parsed; 19995 } 19996 19997 utils.forEach(headers.split('\n'), function parser(line) { 19998 i = line.indexOf(':'); 19999 key = utils.trim(line.substr(0, i)).toLowerCase(); 20000 val = utils.trim(line.substr(i + 1)); 20001 20002 if (key) { 20003 if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { 20004 return; 20005 } 20006 if (key === 'set-cookie') { 20007 parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); 20008 } else { 20009 parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; 20010 } 20011 } 20012 }); 20013 20014 return parsed; 20015 }; 20016 20017 20018 /***/ 20019 }), 20020 /* 295 */ 20021 /***/ (function (module, exports, __webpack_require__) { 20022 20023 "use strict"; 20024 20025 20026 var utils = __webpack_require__(10); 20027 20028 module.exports = ( 20029 utils.isStandardBrowserEnv() ? 20030 20031 // Standard browser envs have full support of the APIs needed to test 20032 // whether the request URL is of the same origin as current location. 20033 (function standardBrowserEnv() { 20034 var msie = /(msie|trident)/i.test(navigator.userAgent); 20035 var urlParsingNode = document.createElement('a'); 20036 var originURL; 20037 20038 /** 20039 * Parse a URL to discover it's components 20040 * 20041 * @param {String} url The URL to be parsed 20042 * @returns {Object} 20043 */ 20044 function resolveURL(url) { 20045 var href = url; 20046 20047 if (msie) { 20048 // IE needs attribute set twice to normalize properties 20049 urlParsingNode.setAttribute('href', href); 20050 href = urlParsingNode.href; 20051 } 20052 20053 urlParsingNode.setAttribute('href', href); 20054 20055 // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils 20056 return { 20057 href: urlParsingNode.href, 20058 protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', 20059 host: urlParsingNode.host, 20060 search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', 20061 hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', 20062 hostname: urlParsingNode.hostname, 20063 port: urlParsingNode.port, 20064 pathname: (urlParsingNode.pathname.charAt(0) === '/') ? 20065 urlParsingNode.pathname : 20066 '/' + urlParsingNode.pathname 20067 }; 20068 } 20069 20070 originURL = resolveURL(window.location.href); 20071 20072 /** 20073 * Determine if a URL shares the same origin as the current location 20074 * 20075 * @param {String} requestURL The URL to test 20076 * @returns {boolean} True if URL shares the same origin, otherwise false 20077 */ 20078 return function isURLSameOrigin(requestURL) { 20079 var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; 20080 return (parsed.protocol === originURL.protocol && 20081 parsed.host === originURL.host); 20082 }; 20083 })() : 20084 20085 // Non standard browser envs (web workers, react-native) lack needed support. 20086 (function nonStandardBrowserEnv() { 20087 return function isURLSameOrigin() { 20088 return true; 20089 }; 20090 })() 20091 ); 20092 20093 20094 /***/ 20095 }), 20096 /* 296 */ 20097 /***/ (function (module, exports, __webpack_require__) { 20098 20099 "use strict"; 20100 20101 20102 var utils = __webpack_require__(10); 20103 20104 module.exports = ( 20105 utils.isStandardBrowserEnv() ? 20106 20107 // Standard browser envs support document.cookie 20108 (function standardBrowserEnv() { 20109 return { 20110 write: function write(name, value, expires, path, domain, secure) { 20111 var cookie = []; 20112 cookie.push(name + '=' + encodeURIComponent(value)); 20113 20114 if (utils.isNumber(expires)) { 20115 cookie.push('expires=' + new Date(expires).toGMTString()); 20116 } 20117 20118 if (utils.isString(path)) { 20119 cookie.push('path=' + path); 20120 } 20121 20122 if (utils.isString(domain)) { 20123 cookie.push('domain=' + domain); 20124 } 20125 20126 if (secure === true) { 20127 cookie.push('secure'); 20128 } 20129 20130 document.cookie = cookie.join('; '); 20131 }, 20132 20133 read: function read(name) { 20134 var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); 20135 return (match ? decodeURIComponent(match[3]) : null); 20136 }, 20137 20138 remove: function remove(name) { 20139 this.write(name, '', Date.now() - 86400000); 20140 } 20141 }; 20142 })() : 20143 20144 // Non standard browser env (web workers, react-native) lack needed support. 20145 (function nonStandardBrowserEnv() { 20146 return { 20147 write: function write() { 20148 }, 20149 read: function read() { 20150 return null; 20151 }, 20152 remove: function remove() { 20153 } 20154 }; 20155 })() 20156 ); 20157 20158 20159 /***/ 20160 }), 20161 /* 297 */ 20162 /***/ (function (module, exports, __webpack_require__) { 20163 20164 "use strict"; 20165 20166 20167 var Cancel = __webpack_require__(129); 20168 20169 /** 20170 * A `CancelToken` is an object that can be used to request cancellation of an operation. 20171 * 20172 * @class 20173 * @param {Function} executor The executor function. 20174 */ 20175 function CancelToken(executor) { 20176 if (typeof executor !== 'function') { 20177 throw new TypeError('executor must be a function.'); 20178 } 20179 20180 var resolvePromise; 20181 this.promise = new Promise(function promiseExecutor(resolve) { 20182 resolvePromise = resolve; 20183 }); 20184 20185 var token = this; 20186 executor(function cancel(message) { 20187 if (token.reason) { 20188 // Cancellation has already been requested 20189 return; 20190 } 20191 20192 token.reason = new Cancel(message); 20193 resolvePromise(token.reason); 20194 }); 20195 } 20196 20197 /** 20198 * Throws a `Cancel` if cancellation has been requested. 20199 */ 20200 CancelToken.prototype.throwIfRequested = function throwIfRequested() { 20201 if (this.reason) { 20202 throw this.reason; 20203 } 20204 }; 20205 20206 /** 20207 * Returns an object that contains a new `CancelToken` and a function that, when called, 20208 * cancels the `CancelToken`. 20209 */ 20210 CancelToken.source = function source() { 20211 var cancel; 20212 var token = new CancelToken(function executor(c) { 20213 cancel = c; 20214 }); 20215 return { 20216 token: token, 20217 cancel: cancel 20218 }; 20219 }; 20220 20221 module.exports = CancelToken; 20222 20223 20224 /***/ 20225 }), 20226 /* 298 */ 20227 /***/ (function (module, exports, __webpack_require__) { 20228 20229 "use strict"; 20230 20231 20232 /** 20233 * Syntactic sugar for invoking a function and expanding an array for arguments. 20234 * 20235 * Common use case would be to use `Function.prototype.apply`. 20236 * 20237 * ```js 20238 * function f(x, y, z) {} 20239 * var args = [1, 2, 3];
20240 * f.apply(null, args); 20241 * ``` 20242 * 20243 * With `spread` this example can be re-written. 20244 * 20245 * ```js 20246 * spread(function(x, y, z) {})([1, 2, 3]); 20247 * ``` 20248 * 20249 * @param {Function} callback 20250 * @returns {Function} 20251 */ 20252 module.exports = function spread(callback) { 20253 return function wrap(arr) { 20254 return callback.apply(null, arr); 20255 }; 20256 }; 20257 20258 20259 /***/ 20260 }), 20261 /* 299 */ 20262 /***/ (function (module, exports, __webpack_require__) { 20263 20264 "use strict"; 20265 20266 20267 Object.defineProperty(exports, "__esModule", { 20268 value: true 20269 }); 20270 20271 var _react = __webpack_require__(12); 20272 20273 var _react2 = _interopRequireDefault(_react); 20274 20275 function _interopRequireDefault(obj) { 20276 return obj && obj.__esModule ? obj : {default: obj}; 20277 } 20278 20279 exports.default = function (_ref) { 20280 var className = _ref.className, 20281 getRef = _ref.getRef, 20282 onClick = _ref.onClick, 20283 onMouseDown = _ref.onMouseDown, 20284 text = _ref.text, 20285 isLoading = _ref.isLoading; 20286 return _react2.default.createElement( 20287 "button", 20288 { 20289 ref: function ref(el) { 20290 return getRef && getRef(el); 20291 }, 20292 className: "gt-btn " + className, 20293 onClick: onClick, 20294 onMouseDown: onMouseDown 20295 }, 20296 _react2.default.createElement( 20297 "span", 20298 {className: "gt-btn-text"}, 20299 text 20300 ), 20301 isLoading && _react2.default.createElement("span", {className: "gt-btn-loading gt-spinner"}) 20302 ); 20303 }; 20304 20305 /***/ 20306 }), 20307 /* 300 */ 20308 /***/ (function (module, exports, __webpack_require__) { 20309 20310 "use strict"; 20311 20312 20313 Object.defineProperty(exports, "__esModule", { 20314 value: true 20315 }); 20316 20317 var _react = __webpack_require__(12); 20318 20319 var _react2 = _interopRequireDefault(_react); 20320 20321 function _interopRequireDefault(obj) { 20322 return obj && obj.__esModule ? obj : {default: obj}; 20323 } 20324 20325 exports.default = function (_ref) { 20326 var className = _ref.className, 20327 onClick = _ref.onClick, 20328 text = _ref.text; 20329 return _react2.default.createElement( 20330 "a", 20331 {className: "gt-action " + className, onClick: onClick}, 20332 _react2.default.createElement( 20333 "span", 20334 {className: "gt-action-text"}, 20335 text 20336 ) 20337 ); 20338 }; 20339 20340 /***/ 20341 }), 20342 /* 301 */ 20343 /***/ (function (module, exports, __webpack_require__) { 20344 20345 "use strict"; 20346 20347 20348 Object.defineProperty(exports, "__esModule", { 20349 value: true 20350 }); 20351 20352 var _getPrototypeOf = __webpack_require__(114); 20353 20354 var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); 20355 20356 var _classCallCheck2 = __webpack_require__(64); 20357 20358 var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); 20359 20360 var _createClass2 = __webpack_require__(65); 20361 20362 var _createClass3 = _interopRequireDefault(_createClass2); 20363 20364 var _possibleConstructorReturn2 = __webpack_require__(116); 20365 20366 var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); 20367 20368 var _inherits2 = __webpack_require__(120); 20369 20370 var _inherits3 = _interopRequireDefault(_inherits2); 20371 20372 var _react = __webpack_require__(12); 20373 20374 var _react2 = _interopRequireDefault(_react); 20375 20376 var _avatar = __webpack_require__(130); 20377 20378 var _avatar2 = _interopRequireDefault(_avatar); 20379 20380 var _svg = __webpack_require__(131); 20381 20382 var _svg2 = _interopRequireDefault(_svg); 20383 20384 var _dateFns = __webpack_require__(310); 20385 20386 var _locale = __webpack_require__(439); 20387 20388 __webpack_require__(855); 20389 20390 function _interopRequireDefault(obj) { 20391 return obj && obj.__esModule ? obj : {default: obj}; 20392 } 20393 20394 if (typeof window !== 'undefined') { 20395 window.GT_i18n_LocaleMap = { 20396 zh: _locale.zhCN, 20397 'zh-CN': _locale.zhCN, 20398 'zh-TW': _locale.zhTW, 20399 'es-ES': _locale.es, 20400 fr: _locale.fr, 20401 ru: _locale.ru, 20402 pl: _locale.pl, 20403 ko: _locale.ko, 20404 de: _locale.de 20405 }; 20406 } 20407 20408 var Comment = function (_Component) { 20409 (0, _inherits3.default)(Comment, _Component); 20410 20411 function Comment() { 20412 (0, _classCallCheck3.default)(this, Comment); 20413 return (0, _possibleConstructorReturn3.default)(this, (Comment.__proto__ || (0, _getPrototypeOf2.default)(Comment)).apply(this, arguments)); 20414 } 20415 20416 (0, _createClass3.default)(Comment, [{ 20417 key: 'shouldComponentUpdate', 20418 value: function shouldComponentUpdate(_ref) { 20419 var comment = _ref.comment; 20420 20421 return comment !== this.props.comment; 20422 } 20423 }, { 20424 key: 'componentDidMount', 20425 value: function componentDidMount() { 20426 var comment = this.node; 20427 var emailResponse = comment.querySelector('.email-hidden-toggle>a');
vendor: 8,978 bytes, lines 20428-20589
20428 if (emailResponse) { 20429 emailResponse.addEventListener('click', function (e) { 20430 e.preventDefault(); 20431 comment.querySelector('.email-hidden-reply').classList.toggle('expanded'); 20432 }, true); 20433 } 20434 } 20435 }, { 20436 key: 'render', 20437 value: function render() { 20438 var _this2 = this; 20439 20440 var _props = this.props, 20441 comment = _props.comment, 20442 user = _props.user, 20443 language = _props.language, 20444 _props$commentedText = _props.commentedText, 20445 commentedText = _props$commentedText === undefined ? '' : _props$commentedText, 20446 _props$admin = _props.admin, 20447 admin = _props$admin === undefined ? [] : _props$admin, 20448 replyCallback = _props.replyCallback, 20449 likeCallback = _props.likeCallback; 20450 20451 var enableEdit = user && comment.user.login === user.login; 20452 var isAdmin = ~[].concat(admin).map(function (a) { 20453 return a.toLowerCase(); 20454 }).indexOf(comment.user.login.toLowerCase()); 20455 var reactions = comment.reactions; 20456 20457 var reactionTotalCount = ''; 20458 if (reactions && reactions.totalCount) { 20459 reactionTotalCount = reactions.totalCount; 20460 if (reactions.totalCount === 100 && reactions.pageInfo && reactions.pageInfo.hasNextPage) { 20461 reactionTotalCount = '100+'; 20462 } 20463 } 20464 20465 return _react2.default.createElement( 20466 'div', 20467 { 20468 ref: function ref(node) { 20469 _this2.node = node; 20470 }, className: 'gt-comment ' + (isAdmin ? 'gt-comment-admin' : '') 20471 }, 20472 _react2.default.createElement(_avatar2.default, { 20473 className: 'gt-comment-avatar', 20474 src: comment.user && comment.user.avatar_url, 20475 alt: comment.user && comment.user.login 20476 }), 20477 _react2.default.createElement( 20478 'div', 20479 {className: 'gt-comment-content'}, 20480 _react2.default.createElement( 20481 'div', 20482 {className: 'gt-comment-header'}, 20483 _react2.default.createElement('div', {className: 'gt-comment-block-' + (user ? '2' : '1')}), 20484 _react2.default.createElement( 20485 'a', 20486 { 20487 className: 'gt-comment-username', 20488 href: comment.user && comment.user.html_url 20489 }, 20490 comment.user && comment.user.login 20491 ), 20492 _react2.default.createElement( 20493 'span', 20494 {className: 'gt-comment-text'}, 20495 commentedText 20496 ), 20497 _react2.default.createElement( 20498 'span', 20499 {className: 'gt-comment-date'}, 20500 (0, _dateFns.formatDistanceToNow)((0, _dateFns.parseISO)(comment.created_at), { 20501 addSuffix: true, 20502 locale: window.GT_i18n_LocaleMap[language] 20503 }) 20504 ), 20505 reactions && _react2.default.createElement( 20506 'a', 20507 {className: 'gt-comment-like', title: 'Like', onClick: likeCallback}, 20508 reactions.viewerHasReacted ? _react2.default.createElement(_svg2.default, { 20509 className: 'gt-ico-heart', 20510 name: 'heart_on', 20511 text: reactionTotalCount 20512 }) : _react2.default.createElement(_svg2.default, { 20513 className: 'gt-ico-heart', 20514 name: 'heart', 20515 text: reactionTotalCount 20516 }) 20517 ), 20518 enableEdit ? _react2.default.createElement( 20519 'a', 20520 { 20521 href: comment.html_url, 20522 className: 'gt-comment-edit', 20523 title: 'Edit', 20524 target: '_blank', 20525 rel: 'noopener noreferrer' 20526 }, 20527 _react2.default.createElement(_svg2.default, { 20528 className: 'gt-ico-edit', 20529 name: 'edit' 20530 }) 20531 ) : _react2.default.createElement( 20532 'a', 20533 {className: 'gt-comment-reply', title: 'Reply', onClick: replyCallback}, 20534 _react2.default.createElement(_svg2.default, { 20535 className: 'gt-ico-reply', 20536 name: 'reply' 20537 }) 20538 ) 20539 ), 20540 _react2.default.createElement('div', { 20541 className: 'gt-comment-body markdown-body', 20542 dangerouslySetInnerHTML: { 20543 __html: comment.body_html 20544 } 20545 }) 20546 ) 20547 ); 20548 } 20549 }]); 20550 return Comment; 20551 }(_react.Component); 20552 20553 exports.default = Comment; 20554 20555 /***/ 20556 }), 20557 /* 302 */ 20558 /***/ (function (module, exports, __webpack_require__) { 20559 20560 var map = { 20561 "./arrow_down.svg": 303, 20562 "./edit.svg": 304, 20563 "./github.svg": 305, 20564 "./heart.svg": 306, 20565 "./heart_on.svg": 307, 20566 "./reply.svg": 308, 20567 "./tip.svg": 309 20568 }; 20569 20570 function webpackContext(req) { 20571 return __webpack_require__(webpackContextResolve(req)); 20572 }; 20573 20574 function webpackContextResolve(req) { 20575 var id = map[req]; 20576 if (!(id + 1)) // check for number or string 20577 throw new Error("Cannot find module '" + req + "'."); 20578 return id; 20579 }; 20580 webpackContext.keys = function webpackContextKeys() { 20581 return Object.keys(map); 20582 }; 20583 webpackContext.resolve = webpackContextResolve; 20584 module.exports = webpackContext; 20585 webpackContext.id = 302; 20586 20587 /***/ 20588 }), 20589 /* 303 */
20590 /***/ (function (module, exports) { 20591 20592 module.exports = "<svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"1619\"><path d=\"M511.872 676.8c-0.003 0-0.006 0-0.008 0-9.137 0-17.379-3.829-23.21-9.97l-251.277-265.614c-5.415-5.72-8.743-13.464-8.744-21.984 0-17.678 14.33-32.008 32.008-32.008 9.157 0 17.416 3.845 23.25 10.009l228.045 241.103 228.224-241.088c5.855-6.165 14.113-10.001 23.266-10.001 8.516 0 16.256 3.32 21.998 8.736 12.784 12.145 13.36 32.434 1.264 45.233l-251.52 265.6c-5.844 6.155-14.086 9.984-23.223 9.984-0.025 0-0.051 0-0.076 0z\" p-id=\"1620\"></path></svg>" 20593 20594 /***/ 20595 }), 20596 /* 304 */ 20597 /***/ (function (module, exports) { 20598 20599 module.exports = "<svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M785.333333 85.333333C774.666667 85.333333 763.2 90.133333 754.666667 98.666667L682.666667 170.666667 853.333333 341.333333 925.333333 269.333333C942.4 252.266667 942.4 222.133333 925.333333 209.333333L814.666667 98.666667C806.133333 90.133333 796 85.333333 785.333333 85.333333zM640 217.333333 85.333333 768 85.333333 938.666667 256 938.666667 806.666667 384 640 217.333333z\"></path>\n</svg>\n" 20600 20601 /***/ 20602 }), 20603 /* 305 */ 20604 /***/ (function (module, exports) { 20605 20606 module.exports = "<svg viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M64 524C64 719.602 189.356 885.926 364.113 947.017 387.65799 953 384 936.115 384 924.767L384 847.107C248.118 863.007 242.674 773.052 233.5 758.001 215 726.501 171.5 718.501 184.5 703.501 215.5 687.501 247 707.501 283.5 761.501 309.956 800.642 361.366 794.075 387.658 787.497 393.403 763.997 405.637 743.042 422.353 726.638 281.774 701.609 223 615.67 223 513.5 223 464.053 239.322 418.406 271.465 381.627 251.142 320.928 273.421 269.19 276.337 261.415 334.458 256.131 394.888 302.993 399.549 306.685 432.663 297.835 470.341 293 512.5 293 554.924 293 592.81 297.896 626.075 306.853 637.426 298.219 693.46 258.054 747.5 262.966 750.382 270.652 772.185 321.292 753.058 381.083 785.516 417.956 802 463.809 802 513.5 802 615.874 742.99 701.953 601.803 726.786 625.381 750.003 640 782.295 640 818.008L640 930.653C640.752 939.626 640 948.664978 655.086 948.665 832.344 888.962 960 721.389 960 524 960 276.576 759.424 76 512 76 264.577 76 64 276.576 64 524Z\"></path>\n</svg>\n" 20607 20608 /***/ 20609 }), 20610 /* 306 */ 20611 /***/ (function (module, exports) { 20612 20613 module.exports = "<svg viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <path d=\"M527.061333 166.528A277.333333 277.333333 0 0 1 1000.618667 362.666667a277.333333 277.333333 0 0 1-81.28 196.138666l-377.173334 377.173334a42.666667 42.666667 0 0 1-60.330666 0l-377.173334-377.173334a277.376 277.376 0 0 1 392.277334-392.277333l15.061333 15.061333 15.061333-15.061333z m286.72 377.173333l45.226667-45.226666a192 192 0 0 0-135.808-327.893334 192 192 0 0 0-135.808 56.32l-45.226667 45.226667a42.666667 42.666667 0 0 1-60.330666 0l-45.226667-45.226667a192.042667 192.042667 0 0 0-271.616 271.573334L512 845.482667l301.781333-301.781334z\"></path>\n</svg>\n" 20614 20615 /***/ 20616 }), 20617 /* 307 */ 20618 /***/ (function (module, exports) { 20619 20620 module.exports = "<svg t=\"1512463363724\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <path d=\"M527.061333 166.528A277.333333 277.333333 0 0 1 1000.618667 362.666667a277.333333 277.333333 0 0 1-81.28 196.138666l-377.173334 377.173334a42.666667 42.666667 0 0 1-60.330666 0l-377.173334-377.173334a277.376 277.376 0 0 1 392.277334-392.277333l15.061333 15.061333 15.061333-15.061333z\"></path>\n</svg>\n" 20621 20622 /***/ 20623 }), 20624 /* 308 */ 20625 /***/ (function (module, exports) { 20626 20627 module.exports = "<svg viewBox=\"0 0 1332 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M529.066665 273.066666 529.066665 0 51.2 477.866666 529.066665 955.733335 529.066665 675.84C870.4 675.84 1109.333335 785.066665 1280 1024 1211.733335 682.666665 1006.933335 341.333334 529.066665 273.066666\"></path>\n</svg>\n" 20628 20629 /***/ 20630 }), 20631 /* 309 */
20632 /***/ (function (module, exports) { 20633 20634 module.exports = "<svg viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M512 366.949535c-16.065554 0-29.982212 13.405016-29.982212 29.879884l0 359.070251c0 16.167882 13.405016 29.879884 29.982212 29.879884 15.963226 0 29.879884-13.405016 29.879884-29.879884L541.879884 396.829419C541.879884 380.763865 528.474868 366.949535 512 366.949535L512 366.949535z\"\n p-id=\"3083\"></path>\n <path d=\"M482.017788 287.645048c0-7.776956 3.274508-15.553912 8.80024-21.181973 5.525732-5.525732 13.302688-8.80024 21.181973-8.80024 7.776956 0 15.553912 3.274508 21.079644 8.80024 5.525732 5.62806 8.80024 13.405016 8.80024 21.181973 0 7.776956-3.274508 15.656241-8.80024 21.181973-5.525732 5.525732-13.405016 8.697911-21.079644 8.697911-7.879285 0-15.656241-3.274508-21.181973-8.697911C485.292295 303.301289 482.017788 295.524333 482.017788 287.645048L482.017788 287.645048z\"\n p-id=\"3084\"></path>\n <path d=\"M512 946.844409c-239.8577 0-434.895573-195.037873-434.895573-434.895573 0-239.8577 195.037873-434.895573 434.895573-434.895573 239.755371 0 434.895573 195.037873 434.895573 434.895573C946.895573 751.806535 751.755371 946.844409 512 946.844409zM512 126.17088c-212.740682 0-385.880284 173.037274-385.880284 385.777955 0 212.740682 173.037274 385.777955 385.880284 385.777955 212.740682 0 385.777955-173.037274 385.777955-385.777955C897.777955 299.208154 724.740682 126.17088 512 126.17088z\"\n p-id=\"3085\"></path>\n</svg>\n" 20635 20636 /***/ 20637 }), 20638 /* 310 */ 20639 /***/ (function (module, __webpack_exports__, __webpack_require__) { 20640 20641 "use strict"; 20642 Object.defineProperty(__webpack_exports__, "__esModule", {value: true}); 20643 /* harmony import */ 20644 var __WEBPACK_IMPORTED_MODULE_0__add_index_js__ = __webpack_require__(311); 20645 /* harmony reexport (binding) */ 20646 __webpack_require__.d(__webpack_exports__, "add", function () { 20647 return __WEBPACK_IMPORTED_MODULE_0__add_index_js__["a"]; 20648 }); 20649 /* harmony import */ 20650 var __WEBPACK_IMPORTED_MODULE_1__addBusinessDays_index_js__ = __webpack_require__(132); 20651 /* harmony reexport (binding) */ 20652 __webpack_require__.d(__webpack_exports__, "addBusinessDays", function () { 20653 return __WEBPACK_IMPORTED_MODULE_1__addBusinessDays_index_js__["a"]; 20654 }); 20655 /* harmony import */ 20656 var __WEBPACK_IMPORTED_MODULE_2__addDays_index_js__ = __webpack_require__(21); 20657 /* harmony reexport (binding) */ 20658 __webpack_require__.d(__webpack_exports__, "addDays", function () { 20659 return __WEBPACK_IMPORTED_MODULE_2__addDays_index_js__["a"]; 20660 }); 20661 /* harmony import */ 20662 var __WEBPACK_IMPORTED_MODULE_3__addHours_index_js__ = __webpack_require__(84); 20663 /* harmony reexport (binding) */ 20664 __webpack_require__.d(__webpack_exports__, "addHours", function () { 20665 return __WEBPACK_IMPORTED_MODULE_3__addHours_index_js__["a"]; 20666 }); 20667 /* harmony import */ 20668 var __WEBPACK_IMPORTED_MODULE_4__addISOWeekYears_index_js__ = __webpack_require__(134); 20669 /* harmony reexport (binding) */ 20670 __webpack_require__.d(__webpack_exports__, "addISOWeekYears", function () { 20671 return __WEBPACK_IMPORTED_MODULE_4__addISOWeekYears_index_js__["a"]; 20672 }); 20673 /* harmony import */ 20674 var __WEBPACK_IMPORTED_MODULE_5__addMilliseconds_index_js__ = __webpack_require__(45); 20675 /* harmony reexport (binding) */ 20676 __webpack_require__.d(__webpack_exports__, "addMilliseconds", function () { 20677 return __WEBPACK_IMPORTED_MODULE_5__addMilliseconds_index_js__["a"]; 20678 }); 20679 /* harmony import */ 20680 var __WEBPACK_IMPORTED_MODULE_6__addMinutes_index_js__ = __webpack_require__(136); 20681 /* harmony reexport (binding) */ 20682 __webpack_require__.d(__webpack_exports__, "addMinutes", function () { 20683 return __WEBPACK_IMPORTED_MODULE_6__addMinutes_index_js__["a"]; 20684 }); 20685 /* harmony import */ 20686 var __WEBPACK_IMPORTED_MODULE_7__addMonths_index_js__ = __webpack_require__(44); 20687 /* harmony reexport (binding) */ 20688 __webpack_require__.d(__webpack_exports__, "addMonths", function () { 20689 return __WEBPACK_IMPORTED_MODULE_7__addMonths_index_js__["a"]; 20690 }); 20691 /* harmony import */ 20692 var __WEBPACK_IMPORTED_MODULE_8__addQuarters_index_js__ = __webpack_require__(85); 20693 /* harmony reexport (binding) */ 20694 __webpack_require__.d(__webpack_exports__, "addQuarters", function () { 20695 return __WEBPACK_IMPORTED_MODULE_8__addQuarters_index_js__["a"]; 20696 }); 20697 /* harmony import */ 20698 var __WEBPACK_IMPORTED_MODULE_9__addSeconds_index_js__ = __webpack_require__(137); 20699 /* harmony reexport (binding) */ 20700 __webpack_require__.d(__webpack_exports__, "addSeconds", function () { 20701 return __WEBPACK_IMPORTED_MODULE_9__addSeconds_index_js__["a"]; 20702 }); 20703 /* harmony import */ 20704 var __WEBPACK_IMPORTED_MODULE_10__addWeeks_index_js__ = __webpack_require__(58); 20705 /* harmony reexport (binding) */ 20706 __webpack_require__.d(__webpack_exports__, "addWeeks", function () { 20707 return __WEBPACK_IMPORTED_MODULE_10__addWeeks_index_js__["a"]; 20708 }); 20709 /* harmony import */ 20710 var __WEBPACK_IMPORTED_MODULE_11__addYears_index_js__ = __webpack_require__(138); 20711 /* harmony reexport (binding) */ 20712 __webpack_require__.d(__webpack_exports__, "addYears", function () { 20713 return __WEBPACK_IMPORTED_MODULE_11__addYears_index_js__["a"]; 20714 }); 20715 /* harmony import */ 20716 var __WEBPACK_IMPORTED_MODULE_12__areIntervalsOverlapping_index_js__ = __webpack_require__(312); 20717 /* harmony reexport (binding) */ 20718 __webpack_require__.d(__webpack_exports__, "areIntervalsOverlapping", function () { 20719 return __WEBPACK_IMPORTED_MODULE_12__areIntervalsOverlapping_index_js__["a"]; 20720 }); 20721 /* harmony import */ 20722 var __WEBPACK_IMPORTED_MODULE_13__closestIndexTo_index_js__ = __webpack_require__(313); 20723 /* harmony reexport (binding) */ 20724 __webpack_require__.d(__webpack_exports__, "closestIndexTo", function () { 20725 return __WEBPACK_IMPORTED_MODULE_13__closestIndexTo_index_js__["a"]; 20726 }); 20727 /* harmony import */ 20728 var __WEBPACK_IMPORTED_MODULE_14__closestTo_index_js__ = __webpack_require__(314); 20729 /* harmony reexport (binding) */ 20730 __webpack_require__.d(__webpack_exports__, "closestTo", function () { 20731 return __WEBPACK_IMPORTED_MODULE_14__closestTo_index_js__["a"]; 20732 }); 20733 /* harmony import */ 20734 var __WEBPACK_IMPORTED_MODULE_15__compareAsc_index_js__ = __webpack_require__(27); 20735 /* harmony reexport (binding) */ 20736 __webpack_require__.d(__webpack_exports__, "compareAsc", function () { 20737 return __WEBPACK_IMPORTED_MODULE_15__compareAsc_index_js__["a"]; 20738 }); 20739 /* harmony import */ 20740 var __WEBPACK_IMPORTED_MODULE_16__compareDesc_index_js__ = __webpack_require__(315); 20741 /* harmony reexport (binding) */ 20742 __webpack_require__.d(__webpack_exports__, "compareDesc", function () { 20743 return __WEBPACK_IMPORTED_MODULE_16__compareDesc_index_js__["a"]; 20744 }); 20745 /* harmony import */ 20746 var __WEBPACK_IMPORTED_MODULE_17__differenceInBusinessDays_index_js__ = __webpack_require__(316); 20747 /* harmony reexport (binding) */ 20748 __webpack_require__.d(__webpack_exports__, "differenceInBusinessDays", function () { 20749 return __WEBPACK_IMPORTED_MODULE_17__differenceInBusinessDays_index_js__["a"]; 20750 }); 20751 /* harmony import */ 20752 var __WEBPACK_IMPORTED_MODULE_18__differenceInCalendarDays_index_js__ = __webpack_require__(26); 20753 /* harmony reexport (binding) */ 20754 __webpack_require__.d(__webpack_exports__, "differenceInCalendarDays", function () { 20755 return __WEBPACK_IMPORTED_MODULE_18__differenceInCalendarDays_index_js__["a"]; 20756 }); 20757 /* harmony import */ 20758 var __WEBPACK_IMPORTED_MODULE_19__differenceInCalendarISOWeekYears_index_js__ = __webpack_require__(139); 20759 /* harmony reexport (binding) */ 20760 __webpack_require__.d(__webpack_exports__, "differenceInCalendarISOWeekYears", function () { 20761 return __WEBPACK_IMPORTED_MODULE_19__differenceInCalendarISOWeekYears_index_js__["a"]; 20762 }); 20763 /* harmony import */ 20764 var __WEBPACK_IMPORTED_MODULE_20__differenceInCalendarISOWeeks_index_js__ = __webpack_require__(317); 20765 /* harmony reexport (binding) */ 20766 __webpack_require__.d(__webpack_exports__, "differenceInCalendarISOWeeks", function () { 20767 return __WEBPACK_IMPORTED_MODULE_20__differenceInCalendarISOWeeks_index_js__["a"]; 20768 }); 20769 /* harmony import */ 20770 var __WEBPACK_IMPORTED_MODULE_21__differenceInCalendarMonths_index_js__ = __webpack_require__(140); 20771 /* harmony reexport (binding) */ 20772 __webpack_require__.d(__webpack_exports__, "differenceInCalendarMonths", function () { 20773 return __WEBPACK_IMPORTED_MODULE_21__differenceInCalendarMonths_index_js__["a"]; 20774 }); 20775 /* harmony import */ 20776 var __WEBPACK_IMPORTED_MODULE_22__differenceInCalendarQuarters_index_js__ = __webpack_require__(318); 20777 /* harmony reexport (binding) */ 20778 __webpack_require__.d(__webpack_exports__, "differenceInCalendarQuarters", function () { 20779 return __WEBPACK_IMPORTED_MODULE_22__differenceInCalendarQuarters_index_js__["a"]; 20780 }); 20781 /* harmony import */ 20782 var __WEBPACK_IMPORTED_MODULE_23__differenceInCalendarWeeks_index_js__ = __webpack_require__(142); 20783 /* harmony reexport (binding) */ 20784 __webpack_require__.d(__webpack_exports__, "differenceInCalendarWeeks", function () { 20785 return __WEBPACK_IMPORTED_MODULE_23__differenceInCalendarWeeks_index_js__["a"]; 20786 }); 20787 /* harmony import */ 20788 var __WEBPACK_IMPORTED_MODULE_24__differenceInCalendarYears_index_js__ = __webpack_require__(143); 20789 /* harmony reexport (binding) */ 20790 __webpack_require__.d(__webpack_exports__, "differenceInCalendarYears", function () { 20791 return __WEBPACK_IMPORTED_MODULE_24__differenceInCalendarYears_index_js__["a"]; 20792 }); 20793 /* harmony import */ 20794 var __WEBPACK_IMPORTED_MODULE_25__differenceInDays_index_js__ = __webpack_require__(86); 20795 /* harmony reexport (binding) */ 20796 __webpack_require__.d(__webpack_exports__, "differenceInDays", function () { 20797 return __WEBPACK_IMPORTED_MODULE_25__differenceInDays_index_js__["a"]; 20798 }); 20799 /* harmony import */ 20800 var __WEBPACK_IMPORTED_MODULE_26__differenceInHours_index_js__ = __webpack_require__(144); 20801 /* harmony reexport (binding) */ 20802 __webpack_require__.d(__webpack_exports__, "differenceInHours", function () { 20803 return __WEBPACK_IMPORTED_MODULE_26__differenceInHours_index_js__["a"]; 20804 }); 20805 /* harmony import */ 20806 var __WEBPACK_IMPORTED_MODULE_27__differenceInISOWeekYears_index_js__ = __webpack_require__(319); 20807 /* harmony reexport (binding) */ 20808 __webpack_require__.d(__webpack_exports__, "differenceInISOWeekYears", function () { 20809 return __WEBPACK_IMPORTED_MODULE_27__differenceInISOWeekYears_index_js__["a"]; 20810 }); 20811 /* harmony import */ 20812 var __WEBPACK_IMPORTED_MODULE_28__differenceInMilliseconds_index_js__ = __webpack_require__(59); 20813 /* harmony reexport (binding) */ 20814 __webpack_require__.d(__webpack_exports__, "differenceInMilliseconds", function () { 20815 return __WEBPACK_IMPORTED_MODULE_28__differenceInMilliseconds_index_js__["a"]; 20816 }); 20817 /* harmony import */ 20818 var __WEBPACK_IMPORTED_MODULE_29__differenceInMinutes_index_js__ = __webpack_require__(146); 20819 /* harmony reexport (binding) */ 20820 __webpack_require__.d(__webpack_exports__, "differenceInMinutes", function () { 20821 return __WEBPACK_IMPORTED_MODULE_29__differenceInMinutes_index_js__["a"]; 20822 }); 20823 /* harmony import */ 20824 var __WEBPACK_IMPORTED_MODULE_30__differenceInMonths_index_js__ = __webpack_require__(60); 20825 /* harmony reexport (binding) */ 20826 __webpack_require__.d(__webpack_exports__, "differenceInMonths", function () { 20827 return __WEBPACK_IMPORTED_MODULE_30__differenceInMonths_index_js__["a"]; 20828 }); 20829 /* harmony import */ 20830 var __WEBPACK_IMPORTED_MODULE_31__differenceInQuarters_index_js__ = __webpack_require__(320); 20831 /* harmony reexport (binding) */ 20832 __webpack_require__.d(__webpack_exports__, "differenceInQuarters", function () { 20833 return __WEBPACK_IMPORTED_MODULE_31__differenceInQuarters_index_js__["a"]; 20834 }); 20835 /* harmony import */ 20836 var __WEBPACK_IMPORTED_MODULE_32__differenceInSeconds_index_js__ = __webpack_require__(61); 20837 /* harmony reexport (binding) */ 20838 __webpack_require__.d(__webpack_exports__, "differenceInSeconds", function () { 20839 return __WEBPACK_IMPORTED_MODULE_32__differenceInSeconds_index_js__["a"]; 20840 }); 20841 /* harmony import */ 20842 var __WEBPACK_IMPORTED_MODULE_33__differenceInWeeks_index_js__ = __webpack_require__(321); 20843 /* harmony reexport (binding) */ 20844 __webpack_require__.d(__webpack_exports__, "differenceInWeeks", function () { 20845 return __WEBPACK_IMPORTED_MODULE_33__differenceInWeeks_index_js__["a"]; 20846 }); 20847 /* harmony import */ 20848 var __WEBPACK_IMPORTED_MODULE_34__differenceInYears_index_js__ = __webpack_require__(147); 20849 /* harmony reexport (binding) */ 20850 __webpack_require__.d(__webpack_exports__, "differenceInYears", function () { 20851 return __WEBPACK_IMPORTED_MODULE_34__differenceInYears_index_js__["a"]; 20852 }); 20853 /* harmony import */ 20854 var __WEBPACK_IMPORTED_MODULE_35__eachDayOfInterval_index_js__ = __webpack_require__(148); 20855 /* harmony reexport (binding) */ 20856 __webpack_require__.d(__webpack_exports__, "eachDayOfInterval", function () { 20857 return __WEBPACK_IMPORTED_MODULE_35__eachDayOfInterval_index_js__["a"]; 20858 }); 20859 /* harmony import */ 20860 var __WEBPACK_IMPORTED_MODULE_36__eachHourOfInterval_index_js__ = __webpack_require__(322); 20861 /* harmony reexport (binding) */ 20862 __webpack_require__.d(__webpack_exports__, "eachHourOf
20862Interval", function () { 20863 return __WEBPACK_IMPORTED_MODULE_36__eachHourOfInterval_index_js__["a"]; 20864 }); 20865 /* harmony import */ 20866 var __WEBPACK_IMPORTED_MODULE_37__eachMonthOfInterval_index_js__ = __webpack_require__(323); 20867 /* harmony reexport (binding) */ 20868 __webpack_require__.d(__webpack_exports__, "eachMonthOfInterval", function () { 20869 return __WEBPACK_IMPORTED_MODULE_37__eachMonthOfInterval_index_js__["a"]; 20870 }); 20871 /* harmony import */ 20872 var __WEBPACK_IMPORTED_MODULE_38__eachQuarterOfInterval_index_js__ = __webpack_require__(324); 20873 /* harmony reexport (binding) */ 20874 __webpack_require__.d(__webpack_exports__, "eachQuarterOfInterval", function () { 20875 return __WEBPACK_IMPORTED_MODULE_38__eachQuarterOfInterval_index_js__["a"]; 20876 }); 20877 /* harmony import */ 20878 var __WEBPACK_IMPORTED_MODULE_39__eachWeekOfInterval_index_js__ = __webpack_require__(325); 20879 /* harmony reexport (binding) */ 20880 __webpack_require__.d(__webpack_exports__, "eachWeekOfInterval", function () { 20881 return __WEBPACK_IMPORTED_MODULE_39__eachWeekOfInterval_index_js__["a"]; 20882 }); 20883 /* harmony import */ 20884 var __WEBPACK_IMPORTED_MODULE_40__eachWeekendOfInterval_index_js__ = __webpack_require__(88); 20885 /* harmony reexport (binding) */ 20886 __webpack_require__.d(__webpack_exports__, "eachWeekendOfInterval", function () { 20887 return __WEBPACK_IMPORTED_MODULE_40__eachWeekendOfInterval_index_js__["a"]; 20888 }); 20889 /* harmony import */ 20890 var __WEBPACK_IMPORTED_MODULE_41__eachWeekendOfMonth_index_js__ = __webpack_require__(326); 20891 /* harmony reexport (binding) */ 20892 __webpack_require__.d(__webpack_exports__, "eachWeekendOfMonth", function () { 20893 return __WEBPACK_IMPORTED_MODULE_41__eachWeekendOfMonth_index_js__["a"]; 20894 }); 20895 /* harmony import */ 20896 var __WEBPACK_IMPORTED_MODULE_42__eachWeekendOfYear_index_js__ = __webpack_require__(327); 20897 /* harmony reexport (binding) */ 20898 __webpack_require__.d(__webpack_exports__, "eachWeekendOfYear", function () { 20899 return __WEBPACK_IMPORTED_MODULE_42__eachWeekendOfYear_index_js__["a"]; 20900 }); 20901 /* harmony import */ 20902 var __WEBPACK_IMPORTED_MODULE_43__eachYearOfInterval_index_js__ = __webpack_require__(328); 20903 /* harmony reexport (binding) */ 20904 __webpack_require__.d(__webpack_exports__, "eachYearOfInterval", function () { 20905 return __WEBPACK_IMPORTED_MODULE_43__eachYearOfInterval_index_js__["a"]; 20906 }); 20907 /* harmony import */ 20908 var __WEBPACK_IMPORTED_MODULE_44__endOfDay_index_js__ = __webpack_require__(91); 20909 /* harmony reexport (binding) */ 20910 __webpack_require__.d(__webpack_exports__, "endOfDay", function () { 20911 return __WEBPACK_IMPORTED_MODULE_44__endOfDay_index_js__["a"]; 20912 }); 20913 /* harmony import */ 20914 var __WEBPACK_IMPORTED_MODULE_45__endOfDecade_index_js__ = __webpack_require__(329); 20915 /* harmony reexport (binding) */ 20916 __webpack_require__.d(__webpack_exports__, "endOfDecade", function () { 20917 return __WEBPACK_IMPORTED_MODULE_45__endOfDecade_index_js__["a"]; 20918 }); 20919 /* harmony import */ 20920 var __WEBPACK_IMPORTED_MODULE_46__endOfHour_index_js__ = __webpack_require__(330); 20921 /* harmony reexport (binding) */ 20922 __webpack_require__.d(__webpack_exports__, "endOfHour", function () { 20923 return __WEBPACK_IMPORTED_MODULE_46__endOfHour_index_js__["a"]; 20924 }); 20925 /* harmony import */ 20926 var __WEBPACK_IMPORTED_MODULE_47__endOfISOWeek_index_js__ = __webpack_require__(331); 20927 /* harmony reexport (binding) */ 20928 __webpack_require__.d(__webpack_exports__, "endOfISOWeek", function () { 20929 return __WEBPACK_IMPORTED_MODULE_47__endOfISOWeek_index_js__["a"]; 20930 }); 20931 /* harmony import */ 20932 var __WEBPACK_IMPORTED_MODULE_48__endOfISOWeekYear_index_js__ = __webpack_require__(332); 20933 /* harmony reexport (binding) */ 20934 __webpack_require__.d(__webpack_exports__, "endOfISOWeekYear", function () { 20935 return __WEBPACK_IMPORTED_MODULE_48__endOfISOWeekYear_index_js__["a"]; 20936 }); 20937 /* harmony import */ 20938 var __WEBPACK_IMPORTED_MODULE_49__endOfMinute_index_js__ = __webpack_require__(333); 20939 /* harmony reexport (binding) */ 20940 __webpack_require__.d(__webpack_exports__, "endOfMinute", function () { 20941 return __WEBPACK_IMPORTED_MODULE_49__endOfMinute_index_js__["a"]; 20942 }); 20943 /* harmony import */ 20944 var __WEBPACK_IMPORTED_MODULE_50__endOfMonth_index_js__ = __webpack_require__(89); 20945 /* harmony reexport (binding) */ 20946 __webpack_require__.d(__webpack_exports__, "endOfMonth", function () { 20947 return __WEBPACK_IMPORTED_MODULE_50__endOfMonth_index_js__["a"]; 20948 }); 20949 /* harmony import */ 20950 var __WEBPACK_IMPORTED_MODULE_51__endOfQuarter_index_js__ = __webpack_require__(334); 20951 /* harmony reexport (binding) */ 20952 __webpack_require__.d(__webpack_exports__, "endOfQuarter", function () { 20953 return __WEBPACK_IMPORTED_MODULE_51__endOfQuarter_index_js__["a"]; 20954 }); 20955 /* harmony import */ 20956 var __WEBPACK_IMPORTED_MODULE_52__endOfSecond_index_js__ = __webpack_require__(335); 20957 /* harmony reexport (binding) */ 20958 __webpack_require__.d(__webpack_exports__, "endOfSecond", function () { 20959 return __WEBPACK_IMPORTED_MODULE_52__endOfSecond_index_js__["a"]; 20960 }); 20961 /* harmony import */ 20962 var __WEBPACK_IMPORTED_MODULE_53__endOfToday_index_js__ = __webpack_require__(336); 20963 /* harmony reexport (binding) */ 20964 __webpack_require__.d(__webpack_exports__, "endOfToday", function () { 20965 return __WEBPACK_IMPORTED_MODULE_53__endOfToday_index_js__["a"]; 20966 }); 20967 /* harmony import */ 20968 var __WEBPACK_IMPORTED_MODULE_54__endOfTomorrow_index_js__ = __webpack_require__(337); 20969 /* harmony reexport (binding) */ 20970 __webpack_require__.d(__webpack_exports__, "endOfTomorrow", function () { 20971 return __WEBPACK_IMPORTED_MODULE_54__endOfTomorrow_index_js__["a"]; 20972 }); 20973 /* harmony import */ 20974 var __WEBPACK_IMPORTED_MODULE_55__endOfWeek_index_js__ = __webpack_require__(150); 20975 /* harmony reexport (binding) */ 20976 __webpack_require__.d(__webpack_exports__, "endOfWeek", function () { 20977 return __WEBPACK_IMPORTED_MODULE_55__endOfWeek_index_js__["a"]; 20978 }); 20979 /* harmony import */ 20980 var __WEBPACK_IMPORTED_MODULE_56__endOfYear_index_js__ = __webpack_require__(149); 20981 /* harmony reexport (binding) */ 20982 __webpack_require__.d(__webpack_exports__, "endOfYear", function () { 20983 return __WEBPACK_IMPORTED_MODULE_56__endOfYear_index_js__["a"]; 20984 }); 20985 /* harmony import */ 20986 var __WEBPACK_IMPORTED_MODULE_57__endOfYesterday_index_js__ = __webpack_require__(338); 20987 /* harmony reexport (binding) */ 20988 __webpack_require__.d(__webpack_exports__, "endOfYesterday", function () { 20989 return __WEBPACK_IMPORTED_MODULE_57__endOfYesterday_index_js__["a"]; 20990 }); 20991 /* harmony import */ 20992 var __WEBPACK_IMPORTED_MODULE_58__format_index_js__ = __webpack_require__(151); 20993 /* harmony reexport (binding) */ 20994 __webpack_require__.d(__webpack_exports__, "format", function () { 20995 return __WEBPACK_IMPORTED_MODULE_58__format_index_js__["a"]; 20996 }); 20997 /* harmony import */ 20998 var __WEBPACK_IMPORTED_MODULE_59__formatDistance_index_js__ = __webpack_require__(158); 20999 /* harmony reexport (binding) */ 21000 __webpack_require__.d(__webpack_exports__, "formatDistance", function () { 21001 return __WEBPACK_IMPORTED_MODULE_59__formatDistance_index_js__["a"]; 21002 }); 21003 /* harmony import */ 21004 var __WEBPACK_IMPORTED_MODULE_60__formatDistanceStrict_index_js__ = __webpack_require__(161); 21005 /* harmony reexport (binding) */ 21006 __webpack_require__.d(__webpack_exports__, "formatDistanceStrict", function () { 21007 return __WEBPACK_IMPORTED_MODULE_60__formatDistanceStrict_index_js__["a"]; 21008 }); 21009 /* harmony import */ 21010 var __WEBPACK_IMPORTED_MODULE_61__formatDistanceToNow_index_js__ = __webpack_require__(344); 21011 /* harmony reexport (binding) */ 21012 __webpack_require__.d(__webpack_exports__, "formatDistanceToNow", function () { 21013 return __WEBPACK_IMPORTED_MODULE_61__formatDistanceToNow_index_js__["a"]; 21014 }); 21015 /* harmony import */ 21016 var __WEBPACK_IMPORTED_MODULE_62__formatDistanceToNowStrict_index_js__ = __webpack_require__(345); 21017 /* harmony reexport (binding) */ 21018 __webpack_require__.d(__webpack_exports__, "formatDistanceToNowStrict", function () { 21019 return __WEBPACK_IMPORTED_MODULE_62__formatDistanceToNowStrict_index_js__["a"]; 21020 }); 21021 /* harmony import */ 21022 var __WEBPACK_IMPORTED_MODULE_63__formatDuration_index_js__ = __webpack_require__(346); 21023 /* harmony reexport (binding) */ 21024 __webpack_require__.d(__webpack_exports__, "formatDuration", function () { 21025 return __WEBPACK_IMPORTED_MODULE_63__formatDuration_index_js__["a"]; 21026 }); 21027 /* harmony import */ 21028 var __WEBPACK_IMPORTED_MODULE_64__formatISO_index_js__ = __webpack_require__(347); 21029 /* harmony reexport (binding) */ 21030 __webpack_require__.d(__webpack_exports__, "formatISO", function () { 21031 return __WEBPACK_IMPORTED_MODULE_64__formatISO_index_js__["a"]; 21032 }); 21033 /* harmony import */ 21034 var __WEBPACK_IMPORTED_MODULE_65__formatISO9075_index_js__ = __webpack_require__(348); 21035 /* harmony reexport (binding) */ 21036 __webpack_require__.d(__webpack_exports__, "formatISO9075", function () { 21037 return __WEBPACK_IMPORTED_MODULE_65__formatISO9075_index_js__["a"]; 21038 }); 21039 /* harmony import */ 21040 var __WEBPACK_IMPORTED_MODULE_66__formatISODuration_index_js__ = __webpack_require__(349); 21041 /* harmony reexport (binding) */ 21042 __webpack_require__.d(__webpack_exports__, "formatISODuration", function () { 21043 return __WEBPACK_IMPORTED_MODULE_66__formatISODuration_index_js__["a"]; 21044 }); 21045 /* harmony import */ 21046 var __WEBPACK_IMPORTED_MODULE_67__formatRFC3339_index_js__ = __webpack_require__(350); 21047 /* harmony reexport (binding) */ 21048 __webpack_require__.d(__webpack_exports__, "formatRFC3339", function () { 21049 return __WEBPACK_IMPORTED_MODULE_67__formatRFC3339_index_js__["a"]; 21050 }); 21051 /* harmony import */ 21052 var __WEBPACK_IMPORTED_MODULE_68__formatRFC7231_index_js__ = __webpack_require__(351); 21053 /* harmony reexport (binding) */ 21054 __webpack_require__.d(__webpack_exports__, "formatRFC7231", function () { 21055 return __WEBPACK_IMPORTED_MODULE_68__formatRFC7231_index_js__["a"]; 21056 }); 21057 /* harmony import */ 21058 var __WEBPACK_IMPORTED_MODULE_69__formatRelative_index_js__ = __webpack_require__(352); 21059 /* harmony reexport (binding) */ 21060 __webpack_require__.d(__webpack_exports__, "formatRelative", function () { 21061 return __WEBPACK_IMPORTED_MODULE_69__formatRelative_index_js__["a"]; 21062 }); 21063 /* harmony import */ 21064 var __WEBPACK_IMPORTED_MODULE_70__fromUnixTime_index_js__ = __webpack_require__(353); 21065 /* harmony reexport (binding) */ 21066 __webpack_require__.d(__webpack_exports__, "fromUnixTime", function () { 21067 return __WEBPACK_IMPORTED_MODULE_70__fromUnixTime_index_js__["a"]; 21068 }); 21069 /* harmony import */ 21070 var __WEBPACK_IMPORTED_MODULE_71__getDate_index_js__ = __webpack_require__(162); 21071 /* harmony reexport (binding) */ 21072 __webpack_require__.d(__webpack_exports__, "getDate", function () { 21073 return __WEBPACK_IMPORTED_MODULE_71__getDate_index_js__["a"]; 21074 }); 21075 /* harmony import */ 21076 var __WEBPACK_IMPORTED_MODULE_72__getDay_index_js__ = __webpack_require__(163); 21077 /* harmony reexport (binding) */ 21078 __webpack_require__.d(__webpack_exports__, "getDay", function () { 21079 return __WEBPACK_IMPORTED_MODULE_72__getDay_index_js__["a"]; 21080 }); 21081 /* harmony import */ 21082 var __WEBPACK_IMPORTED_MODULE_73__getDayOfYear_index_js__ = __webpack_require__(354); 21083 /* harmony reexport (binding) */ 21084 __webpack_require__.d(__webpack_exports__, "getDayOfYear", function () { 21085 return __WEBPACK_IMPORTED_MODULE_73__getDayOfYear_index_js__["a"]; 21086 }); 21087 /* harmony import */ 21088 var __WEBPACK_IMPORTED_MODULE_74__getDaysInMonth_index_js__ = __webpack_require__(164); 21089 /* harmony reexport (binding) */ 21090 __webpack_require__.d(__webpack_exports__, "getDaysInMonth", function () { 21091 return __WEBPACK_IMPORTED_MODULE_74__getDaysInMonth_index_js__["a"]; 21092 }); 21093 /* harmony import */ 21094 var __WEBPACK_IMPORTED_MODULE_75__getDaysInYear_index_js__ = __webpack_require__(355); 21095 /* harmony reexport (binding) */ 21096 __webpack_require__.d(__webpack_exports__, "getDaysInYear", function () { 21097 return __WEBPACK_IMPORTED_MODULE_75__getDaysInYear_index_js__["a"]; 21098 }); 21099 /* harmony import */ 21100 var __WEBPACK_IMPORTED_MODULE_76__getDecade_index_js__ = __webpack_require__(356); 21101 /* harmony reexport (binding) */ 21102 __webpack_require__.d(__webpack_exports__, "getDecade", function () { 21103 return __WEBPACK_IMPORTED_MODULE_76__getDecade_index_js__["a"]; 21104 }); 21105 /* harmony import */ 21106 var __WEBPACK_IMPORTED_MODULE_77__getHours_index_js__ = __webpack_require__(357); 21107 /* harmony reexport (binding) */ 21108 __webpack_require__.d(__webpack_exports__, "getHours", function () { 21109 return __WEBPACK_IMPORTED_MODULE_77__getHours_index_js__["a"]; 21110 }); 21111 /* harmony import */ 21112 var __WEBPACK_IMPORTED_MODULE_78__getISODay_index_js__ = __webpack_require__(166); 21113 /* harmony reexport (binding) */ 21114 __webpack_require__.d(__webpack_exports__, "getISODay", function () { 21115 return __WEBPACK_IMPORTED_MODULE_78__getISODay_index_js
21115__["a"]; 21116 }); 21117 /* harmony import */ 21118 var __WEBPACK_IMPORTED_MODULE_79__getISOWeek_index_js__ = __webpack_require__(167); 21119 /* harmony reexport (binding) */ 21120 __webpack_require__.d(__webpack_exports__, "getISOWeek", function () { 21121 return __WEBPACK_IMPORTED_MODULE_79__getISOWeek_index_js__["a"]; 21122 }); 21123 /* harmony import */ 21124 var __WEBPACK_IMPORTED_MODULE_80__getISOWeekYear_index_js__ = __webpack_require__(34); 21125 /* harmony reexport (binding) */ 21126 __webpack_require__.d(__webpack_exports__, "getISOWeekYear", function () { 21127 return __WEBPACK_IMPORTED_MODULE_80__getISOWeekYear_index_js__["a"]; 21128 }); 21129 /* harmony import */ 21130 var __WEBPACK_IMPORTED_MODULE_81__getISOWeeksInYear_index_js__ = __webpack_require__(358); 21131 /* harmony reexport (binding) */ 21132 __webpack_require__.d(__webpack_exports__, "getISOWeeksInYear", function () { 21133 return __WEBPACK_IMPORTED_MODULE_81__getISOWeeksInYear_index_js__["a"]; 21134 }); 21135 /* harmony import */ 21136 var __WEBPACK_IMPORTED_MODULE_82__getMilliseconds_index_js__ = __webpack_require__(359); 21137 /* harmony reexport (binding) */ 21138 __webpack_require__.d(__webpack_exports__, "getMilliseconds", function () { 21139 return __WEBPACK_IMPORTED_MODULE_82__getMilliseconds_index_js__["a"]; 21140 }); 21141 /* harmony import */ 21142 var __WEBPACK_IMPORTED_MODULE_83__getMinutes_index_js__ = __webpack_require__(360); 21143 /* harmony reexport (binding) */ 21144 __webpack_require__.d(__webpack_exports__, "getMinutes", function () { 21145 return __WEBPACK_IMPORTED_MODULE_83__getMinutes_index_js__["a"]; 21146 }); 21147 /* harmony import */ 21148 var __WEBPACK_IMPORTED_MODULE_84__getMonth_index_js__ = __webpack_require__(361); 21149 /* harmony reexport (binding) */ 21150 __webpack_require__.d(__webpack_exports__, "getMonth", function () { 21151 return __WEBPACK_IMPORTED_MODULE_84__getMonth_index_js__["a"]; 21152 }); 21153 /* harmony import */ 21154 var __WEBPACK_IMPORTED_MODULE_85__getOverlappingDaysInIntervals_index_js__ = __webpack_require__(362); 21155 /* harmony reexport (binding) */ 21156 __webpack_require__.d(__webpack_exports__, "getOverlappingDaysInIntervals", function () { 21157 return __WEBPACK_IMPORTED_MODULE_85__getOverlappingDaysInIntervals_index_js__["a"]; 21158 }); 21159 /* harmony import */ 21160 var __WEBPACK_IMPORTED_MODULE_86__getQuarter_index_js__ = __webpack_require__(141); 21161 /* harmony reexport (binding) */ 21162 __webpack_require__.d(__webpack_exports__, "getQuarter", function () { 21163 return __WEBPACK_IMPORTED_MODULE_86__getQuarter_index_js__["a"]; 21164 }); 21165 /* harmony import */ 21166 var __WEBPACK_IMPORTED_MODULE_87__getSeconds_index_js__ = __webpack_require__(363); 21167 /* harmony reexport (binding) */ 21168 __webpack_require__.d(__webpack_exports__, "getSeconds", function () { 21169 return __WEBPACK_IMPORTED_MODULE_87__getSeconds_index_js__["a"]; 21170 }); 21171 /* harmony import */ 21172 var __WEBPACK_IMPORTED_MODULE_88__getTime_index_js__ = __webpack_require__(168); 21173 /* harmony reexport (binding) */ 21174 __webpack_require__.d(__webpack_exports__, "getTime", function () { 21175 return __WEBPACK_IMPORTED_MODULE_88__getTime_index_js__["a"]; 21176 }); 21177 /* harmony import */ 21178 var __WEBPACK_IMPORTED_MODULE_89__getUnixTime_index_js__ = __webpack_require__(364); 21179 /* harmony reexport (binding) */ 21180 __webpack_require__.d(__webpack_exports__, "getUnixTime", function () { 21181 return __WEBPACK_IMPORTED_MODULE_89__getUnixTime_index_js__["a"]; 21182 }); 21183 /* harmony import */ 21184 var __WEBPACK_IMPORTED_MODULE_90__getWeek_index_js__ = __webpack_require__(169); 21185 /* harmony reexport (binding) */ 21186 __webpack_require__.d(__webpack_exports__, "getWeek", function () { 21187 return __WEBPACK_IMPORTED_MODULE_90__getWeek_index_js__["a"]; 21188 }); 21189 /* harmony import */ 21190 var __WEBPACK_IMPORTED_MODULE_91__getWeekOfMonth_index_js__ = __webpack_require__(365); 21191 /* harmony reexport (binding) */ 21192 __webpack_require__.d(__webpack_exports__, "getWeekOfMonth", function () { 21193 return __WEBPACK_IMPORTED_MODULE_91__getWeekOfMonth_index_js__["a"]; 21194 }); 21195 /* harmony import */ 21196 var __WEBPACK_IMPORTED_MODULE_92__getWeekYear_index_js__ = __webpack_require__(170); 21197 /* harmony reexport (binding) */ 21198 __webpack_require__.d(__webpack_exports__, "getWeekYear", function () { 21199 return __WEBPACK_IMPORTED_MODULE_92__getWeekYear_index_js__["a"]; 21200 }); 21201 /* harmony import */ 21202 var __WEBPACK_IMPORTED_MODULE_93__getWeeksInMonth_index_js__ = __webpack_require__(366); 21203 /* harmony reexport (binding) */ 21204 __webpack_require__.d(__webpack_exports__, "getWeeksInMonth", function () { 21205 return __WEBPACK_IMPORTED_MODULE_93__getWeeksInMonth_index_js__["a"]; 21206 }); 21207 /* harmony import */ 21208 var __WEBPACK_IMPORTED_MODULE_94__getYear_index_js__ = __webpack_require__(367); 21209 /* harmony reexport (binding) */ 21210 __webpack_require__.d(__webpack_exports__, "getYear", function () { 21211 return __WEBPACK_IMPORTED_MODULE_94__getYear_index_js__["a"]; 21212 }); 21213 /* harmony import */ 21214 var __WEBPACK_IMPORTED_MODULE_95__intervalToDuration_index_js__ = __webpack_require__(368); 21215 /* harmony reexport (binding) */ 21216 __webpack_require__.d(__webpack_exports__, "intervalToDuration", function () { 21217 return __WEBPACK_IMPORTED_MODULE_95__intervalToDuration_index_js__["a"]; 21218 }); 21219 /* harmony import */ 21220 var __WEBPACK_IMPORTED_MODULE_96__isAfter_index_js__ = __webpack_require__(369); 21221 /* harmony reexport (binding) */ 21222 __webpack_require__.d(__webpack_exports__, "isAfter", function () { 21223 return __WEBPACK_IMPORTED_MODULE_96__isAfter_index_js__["a"]; 21224 }); 21225 /* harmony import */ 21226 var __WEBPACK_IMPORTED_MODULE_97__isBefore_index_js__ = __webpack_require__(370); 21227 /* harmony reexport (binding) */ 21228 __webpack_require__.d(__webpack_exports__, "isBefore", function () { 21229 return __WEBPACK_IMPORTED_MODULE_97__isBefore_index_js__["a"]; 21230 }); 21231 /* harmony import */ 21232 var __WEBPACK_IMPORTED_MODULE_98__isDate_index_js__ = __webpack_require__(371); 21233 /* harmony reexport (binding) */ 21234 __webpack_require__.d(__webpack_exports__, "isDate", function () { 21235 return __WEBPACK_IMPORTED_MODULE_98__isDate_index_js__["a"]; 21236 }); 21237 /* harmony import */ 21238 var __WEBPACK_IMPORTED_MODULE_99__isEqual_index_js__ = __webpack_require__(372); 21239 /* harmony reexport (binding) */ 21240 __webpack_require__.d(__webpack_exports__, "isEqual", function () { 21241 return __WEBPACK_IMPORTED_MODULE_99__isEqual_index_js__["a"]; 21242 }); 21243 /* harmony import */ 21244 var __WEBPACK_IMPORTED_MODULE_100__isExists_index_js__ = __webpack_require__(373); 21245 /* harmony reexport (binding) */ 21246 __webpack_require__.d(__webpack_exports__, "isExists", function () { 21247 return __WEBPACK_IMPORTED_MODULE_100__isExists_index_js__["a"]; 21248 }); 21249 /* harmony import */ 21250 var __WEBPACK_IMPORTED_MODULE_101__isFirstDayOfMonth_index_js__ = __webpack_require__(374); 21251 /* harmony reexport (binding) */ 21252 __webpack_require__.d(__webpack_exports__, "isFirstDayOfMonth", function () { 21253 return __WEBPACK_IMPORTED_MODULE_101__isFirstDayOfMonth_index_js__["a"]; 21254 }); 21255 /* harmony import */ 21256 var __WEBPACK_IMPORTED_MODULE_102__isFriday_index_js__ = __webpack_require__(375); 21257 /* harmony reexport (binding) */ 21258 __webpack_require__.d(__webpack_exports__, "isFriday", function () { 21259 return __WEBPACK_IMPORTED_MODULE_102__isFriday_index_js__["a"]; 21260 }); 21261 /* harmony import */ 21262 var __WEBPACK_IMPORTED_MODULE_103__isFuture_index_js__ = __webpack_require__(376); 21263 /* harmony reexport (binding) */ 21264 __webpack_require__.d(__webpack_exports__, "isFuture", function () { 21265 return __WEBPACK_IMPORTED_MODULE_103__isFuture_index_js__["a"]; 21266 }); 21267 /* harmony import */ 21268 var __WEBPACK_IMPORTED_MODULE_104__isLastDayOfMonth_index_js__ = __webpack_require__(377); 21269 /* harmony reexport (binding) */ 21270 __webpack_require__.d(__webpack_exports__, "isLastDayOfMonth", function () { 21271 return __WEBPACK_IMPORTED_MODULE_104__isLastDayOfMonth_index_js__["a"]; 21272 }); 21273 /* harmony import */ 21274 var __WEBPACK_IMPORTED_MODULE_105__isLeapYear_index_js__ = __webpack_require__(165); 21275 /* harmony reexport (binding) */ 21276 __webpack_require__.d(__webpack_exports__, "isLeapYear", function () { 21277 return __WEBPACK_IMPORTED_MODULE_105__isLeapYear_index_js__["a"]; 21278 }); 21279 /* harmony import */ 21280 var __WEBPACK_IMPORTED_MODULE_106__isMatch_index_js__ = __webpack_require__(378); 21281 /* harmony reexport (binding) */ 21282 __webpack_require__.d(__webpack_exports__, "isMatch", function () { 21283 return __WEBPACK_IMPORTED_MODULE_106__isMatch_index_js__["a"]; 21284 }); 21285 /* harmony import */ 21286 var __WEBPACK_IMPORTED_MODULE_107__isMonday_index_js__ = __webpack_require__(384); 21287 /* harmony reexport (binding) */ 21288 __webpack_require__.d(__webpack_exports__, "isMonday", function () { 21289 return __WEBPACK_IMPORTED_MODULE_107__isMonday_index_js__["a"]; 21290 }); 21291 /* harmony import */ 21292 var __WEBPACK_IMPORTED_MODULE_108__isPast_index_js__ = __webpack_require__(385); 21293 /* harmony reexport (binding) */ 21294 __webpack_require__.d(__webpack_exports__, "isPast", function () { 21295 return __WEBPACK_IMPORTED_MODULE_108__isPast_index_js__["a"]; 21296 }); 21297 /* harmony import */ 21298 var __WEBPACK_IMPORTED_MODULE_109__isSameDay_index_js__ = __webpack_require__(47); 21299 /* harmony reexport (binding) */ 21300 __webpack_require__.d(__webpack_exports__, "isSameDay", function () { 21301 return __WEBPACK_IMPORTED_MODULE_109__isSameDay_index_js__["a"]; 21302 }); 21303 /* harmony import */ 21304 var __WEBPACK_IMPORTED_MODULE_110__isSameHour_index_js__ = __webpack_require__(175); 21305 /* harmony reexport (binding) */ 21306 __webpack_require__.d(__webpack_exports__, "isSameHour", function () { 21307 return __WEBPACK_IMPORTED_MODULE_110__isSameHour_index_js__["a"]; 21308 }); 21309 /* harmony import */ 21310 var __WEBPACK_IMPORTED_MODULE_111__isSameISOWeek_index_js__ = __webpack_require__(177); 21311 /* harmony reexport (binding) */ 21312 __webpack_require__.d(__webpack_exports__, "isSameISOWeek", function () { 21313 return __WEBPACK_IMPORTED_MODULE_111__isSameISOWeek_index_js__["a"]; 21314 }); 21315 /* harmony import */ 21316 var __WEBPACK_IMPORTED_MODULE_112__isSameISOWeekYear_index_js__ = __webpack_require__(386); 21317 /* harmony reexport (binding) */ 21318 __webpack_require__.d(__webpack_exports__, "isSameISOWeekYear", function () { 21319 return __WEBPACK_IMPORTED_MODULE_112__isSameISOWeekYear_index_js__["a"]; 21320 }); 21321 /* harmony import */ 21322 var __WEBPACK_IMPORTED_MODULE_113__isSameMinute_index_js__ = __webpack_require__(178); 21323 /* harmony reexport (binding) */ 21324 __webpack_require__.d(__webpack_exports__, "isSameMinute", function () { 21325 return __WEBPACK_IMPORTED_MODULE_113__isSameMinute_index_js__["a"]; 21326 }); 21327 /* harmony import */ 21328 var __WEBPACK_IMPORTED_MODULE_114__isSameMonth_index_js__ = __webpack_require__(180); 21329 /* harmony reexport (binding) */ 21330 __webpack_require__.d(__webpack_exports__, "isSameMonth", function () { 21331 return __WEBPACK_IMPORTED_MODULE_114__isSameMonth_index_js__["a"]; 21332 }); 21333 /* harmony import */ 21334 var __WEBPACK_IMPORTED_MODULE_115__isSameQuarter_index_js__ = __webpack_require__(181); 21335 /* harmony reexport (binding) */ 21336 __webpack_require__.d(__webpack_exports__, "isSameQuarter", function () { 21337 return __WEBPACK_IMPORTED_MODULE_115__isSameQuarter_index_js__["a"]; 21338 }); 21339 /* harmony import */ 21340 var __WEBPACK_IMPORTED_MODULE_116__isSameSecond_index_js__ = __webpack_require__(182); 21341 /* harmony reexport (binding) */ 21342 __webpack_require__.d(__webpack_exports__, "isSameSecond", function () { 21343 return __WEBPACK_IMPORTED_MODULE_116__isSameSecond_index_js__["a"]; 21344 }); 21345 /* harmony import */ 21346 var __WEBPACK_IMPORTED_MODULE_117__isSameWeek_index_js__ = __webpack_require__(95); 21347 /* harmony reexport (binding) */ 21348 __webpack_require__.d(__webpack_exports__, "isSameWeek", function () { 21349 return __WEBPACK_IMPORTED_MODULE_117__isSameWeek_index_js__["a"]; 21350 }); 21351 /* harmony import */ 21352 var __WEBPACK_IMPORTED_MODULE_118__isSameYear_index_js__ = __webpack_require__(184); 21353 /* harmony reexport (binding) */ 21354 __webpack_require__.d(__webpack_exports__, "isSameYear", function () { 21355 return __WEBPACK_IMPORTED_MODULE_118__isSameYear_index_js__["a"]; 21356 }); 21357 /* harmony import */ 21358 var __WEBPACK_IMPORTED_MODULE_119__isSaturday_index_js__ = __webpack_require__(133); 21359 /* harmony reexport (binding) */ 21360 __webpack_require__.d(__webpack_exports__, "isSaturday", function () { 21361 return __WEBPACK_IMPORTED_MODULE_119__isSaturday_index_js__["a"]; 21362 }); 21363 /* harmony import */ 21364 var __WEBPACK_IMPORTED_MODULE_120__isSunday_index_js__ = __webpack_require__(83); 21365 /* harmony reexport (binding) */ 21366 __webpack_require__.d(__webpack_exports__, "isSunday", function () { 21367 return __WEBPACK_IMPORTED_MODULE_120__isSunday_index_js__["a"]; 21368 }); 21369 /* harmony import */ 21370 var __WEBPACK_IMPORTED_MODULE_121__isThisHour_index_js__ = __webpack_require__(387); 21371 /* harmony reexport (binding) */ 21372 __webpack_require__.d(__webpack_exports__, "isThisHour", function () { 21373 return __WEBPAC
21373K_IMPORTED_MODULE_121__isThisHour_index_js__["a"]; 21374 }); 21375 /* harmony import */ 21376 var __WEBPACK_IMPORTED_MODULE_122__isThisISOWeek_index_js__ = __webpack_require__(388); 21377 /* harmony reexport (binding) */ 21378 __webpack_require__.d(__webpack_exports__, "isThisISOWeek", function () { 21379 return __WEBPACK_IMPORTED_MODULE_122__isThisISOWeek_index_js__["a"]; 21380 }); 21381 /* harmony import */ 21382 var __WEBPACK_IMPORTED_MODULE_123__isThisMinute_index_js__ = __webpack_require__(389); 21383 /* harmony reexport (binding) */ 21384 __webpack_require__.d(__webpack_exports__, "isThisMinute", function () { 21385 return __WEBPACK_IMPORTED_MODULE_123__isThisMinute_index_js__["a"]; 21386 }); 21387 /* harmony import */ 21388 var __WEBPACK_IMPORTED_MODULE_124__isThisMonth_index_js__ = __webpack_require__(390); 21389 /* harmony reexport (binding) */ 21390 __webpack_require__.d(__webpack_exports__, "isThisMonth", function () { 21391 return __WEBPACK_IMPORTED_MODULE_124__isThisMonth_index_js__["a"]; 21392 }); 21393 /* harmony import */ 21394 var __WEBPACK_IMPORTED_MODULE_125__isThisQuarter_index_js__ = __webpack_require__(391); 21395 /* harmony reexport (binding) */ 21396 __webpack_require__.d(__webpack_exports__, "isThisQuarter", function () { 21397 return __WEBPACK_IMPORTED_MODULE_125__isThisQuarter_index_js__["a"]; 21398 }); 21399 /* harmony import */ 21400 var __WEBPACK_IMPORTED_MODULE_126__isThisSecond_index_js__ = __webpack_require__(392); 21401 /* harmony reexport (binding) */ 21402 __webpack_require__.d(__webpack_exports__, "isThisSecond", function () { 21403 return __WEBPACK_IMPORTED_MODULE_126__isThisSecond_index_js__["a"]; 21404 }); 21405 /* harmony import */ 21406 var __WEBPACK_IMPORTED_MODULE_127__isThisWeek_index_js__ = __webpack_require__(393); 21407 /* harmony reexport (binding) */ 21408 __webpack_require__.d(__webpack_exports__, "isThisWeek", function () { 21409 return __WEBPACK_IMPORTED_MODULE_127__isThisWeek_index_js__["a"]; 21410 }); 21411 /* harmony import */ 21412 var __WEBPACK_IMPORTED_MODULE_128__isThisYear_index_js__ = __webpack_require__(394); 21413 /* harmony reexport (binding) */ 21414 __webpack_require__.d(__webpack_exports__, "isThisYear", function () { 21415 return __WEBPACK_IMPORTED_MODULE_128__isThisYear_index_js__["a"]; 21416 }); 21417 /* harmony import */ 21418 var __WEBPACK_IMPORTED_MODULE_129__isThursday_index_js__ = __webpack_require__(395); 21419 /* harmony reexport (binding) */ 21420 __webpack_require__.d(__webpack_exports__, "isThursday", function () { 21421 return __WEBPACK_IMPORTED_MODULE_129__isThursday_index_js__["a"]; 21422 }); 21423 /* harmony import */ 21424 var __WEBPACK_IMPORTED_MODULE_130__isToday_index_js__ = __webpack_require__(396); 21425 /* harmony reexport (binding) */ 21426 __webpack_require__.d(__webpack_exports__, "isToday", function () { 21427 return __WEBPACK_IMPORTED_MODULE_130__isToday_index_js__["a"]; 21428 }); 21429 /* harmony import */ 21430 var __WEBPACK_IMPORTED_MODULE_131__isTomorrow_index_js__ = __webpack_require__(397); 21431 /* harmony reexport (binding) */ 21432 __webpack_require__.d(__webpack_exports__, "isTomorrow", function () { 21433 return __WEBPACK_IMPORTED_MODULE_131__isTomorrow_index_js__["a"]; 21434 }); 21435 /* harmony import */ 21436 var __WEBPACK_IMPORTED_MODULE_132__isTuesday_index_js__ = __webpack_require__(398); 21437 /* harmony reexport (binding) */ 21438 __webpack_require__.d(__webpack_exports__, "isTuesday", function () { 21439 return __WEBPACK_IMPORTED_MODULE_132__isTuesday_index_js__["a"]; 21440 }); 21441 /* harmony import */ 21442 var __WEBPACK_IMPORTED_MODULE_133__isValid_index_js__ = __webpack_require__(15); 21443 /* harmony reexport (binding) */ 21444 __webpack_require__.d(__webpack_exports__, "isValid", function () { 21445 return __WEBPACK_IMPORTED_MODULE_133__isValid_index_js__["a"]; 21446 }); 21447 /* harmony import */ 21448 var __WEBPACK_IMPORTED_MODULE_134__isWednesday_index_js__ = __webpack_require__(399); 21449 /* harmony reexport (binding) */ 21450 __webpack_require__.d(__webpack_exports__, "isWednesday", function () { 21451 return __WEBPACK_IMPORTED_MODULE_134__isWednesday_index_js__["a"]; 21452 }); 21453 /* harmony import */ 21454 var __WEBPACK_IMPORTED_MODULE_135__isWeekend_index_js__ = __webpack_require__(56); 21455 /* harmony reexport (binding) */ 21456 __webpack_require__.d(__webpack_exports__, "isWeekend", function () { 21457 return __WEBPACK_IMPORTED_MODULE_135__isWeekend_index_js__["a"]; 21458 }); 21459 /* harmony import */ 21460 var __WEBPACK_IMPORTED_MODULE_136__isWithinInterval_index_js__ = __webpack_require__(400); 21461 /* harmony reexport (binding) */ 21462 __webpack_require__.d(__webpack_exports__, "isWithinInterval", function () { 21463 return __WEBPACK_IMPORTED_MODULE_136__isWithinInterval_index_js__["a"]; 21464 }); 21465 /* harmony import */ 21466 var __WEBPACK_IMPORTED_MODULE_137__isYesterday_index_js__ = __webpack_require__(401); 21467 /* harmony reexport (binding) */ 21468 __webpack_require__.d(__webpack_exports__, "isYesterday", function () { 21469 return __WEBPACK_IMPORTED_MODULE_137__isYesterday_index_js__["a"]; 21470 }); 21471 /* harmony import */ 21472 var __WEBPACK_IMPORTED_MODULE_138__lastDayOfDecade_index_js__ = __webpack_require__(402); 21473 /* harmony reexport (binding) */ 21474 __webpack_require__.d(__webpack_exports__, "lastDayOfDecade", function () { 21475 return __WEBPACK_IMPORTED_MODULE_138__lastDayOfDecade_index_js__["a"]; 21476 }); 21477 /* harmony import */ 21478 var __WEBPACK_IMPORTED_MODULE_139__lastDayOfISOWeek_index_js__ = __webpack_require__(403); 21479 /* harmony reexport (binding) */ 21480 __webpack_require__.d(__webpack_exports__, "lastDayOfISOWeek", function () { 21481 return __WEBPACK_IMPORTED_MODULE_139__lastDayOfISOWeek_index_js__["a"]; 21482 }); 21483 /* harmony import */ 21484 var __WEBPACK_IMPORTED_MODULE_140__lastDayOfISOWeekYear_index_js__ = __webpack_require__(404); 21485 /* harmony reexport (binding) */ 21486 __webpack_require__.d(__webpack_exports__, "lastDayOfISOWeekYear", function () { 21487 return __WEBPACK_IMPORTED_MODULE_140__lastDayOfISOWeekYear_index_js__["a"]; 21488 }); 21489 /* harmony import */ 21490 var __WEBPACK_IMPORTED_MODULE_141__lastDayOfMonth_index_js__ = __webpack_require__(171); 21491 /* harmony reexport (binding) */ 21492 __webpack_require__.d(__webpack_exports__, "lastDayOfMonth", function () { 21493 return __WEBPACK_IMPORTED_MODULE_141__lastDayOfMonth_index_js__["a"]; 21494 }); 21495 /* harmony import */ 21496 var __WEBPACK_IMPORTED_MODULE_142__lastDayOfQuarter_index_js__ = __webpack_require__(405); 21497 /* harmony reexport (binding) */ 21498 __webpack_require__.d(__webpack_exports__, "lastDayOfQuarter", function () { 21499 return __WEBPACK_IMPORTED_MODULE_142__lastDayOfQuarter_index_js__["a"]; 21500 }); 21501 /* harmony import */ 21502 var __WEBPACK_IMPORTED_MODULE_143__lastDayOfWeek_index_js__ = __webpack_require__(185); 21503 /* harmony reexport (binding) */ 21504 __webpack_require__.d(__webpack_exports__, "lastDayOfWeek", function () { 21505 return __WEBPACK_IMPORTED_MODULE_143__lastDayOfWeek_index_js__["a"]; 21506 }); 21507 /* harmony import */ 21508 var __WEBPACK_IMPORTED_MODULE_144__lastDayOfYear_index_js__ = __webpack_require__(406); 21509 /* harmony reexport (binding) */ 21510 __webpack_require__.d(__webpack_exports__, "lastDayOfYear", function () { 21511 return __WEBPACK_IMPORTED_MODULE_144__lastDayOfYear_index_js__["a"]; 21512 }); 21513 /* harmony import */ 21514 var __WEBPACK_IMPORTED_MODULE_145__lightFormat_index_js__ = __webpack_require__(407); 21515 /* harmony reexport (binding) */ 21516 __webpack_require__.d(__webpack_exports__, "lightFormat", function () { 21517 return __WEBPACK_IMPORTED_MODULE_145__lightFormat_index_js__["a"]; 21518 }); 21519 /* harmony import */ 21520 var __WEBPACK_IMPORTED_MODULE_146__max_index_js__ = __webpack_require__(408); 21521 /* harmony reexport (binding) */ 21522 __webpack_require__.d(__webpack_exports__, "max", function () { 21523 return __WEBPACK_IMPORTED_MODULE_146__max_index_js__["a"]; 21524 }); 21525 /* harmony import */ 21526 var __WEBPACK_IMPORTED_MODULE_147__min_index_js__ = __webpack_require__(409); 21527 /* harmony reexport (binding) */ 21528 __webpack_require__.d(__webpack_exports__, "min", function () { 21529 return __WEBPACK_IMPORTED_MODULE_147__min_index_js__["a"]; 21530 }); 21531 /* harmony import */ 21532 var __WEBPACK_IMPORTED_MODULE_148__parse_index_js__ = __webpack_require__(174); 21533 /* harmony reexport (binding) */ 21534 __webpack_require__.d(__webpack_exports__, "parse", function () { 21535 return __WEBPACK_IMPORTED_MODULE_148__parse_index_js__["a"]; 21536 }); 21537 /* harmony import */ 21538 var __WEBPACK_IMPORTED_MODULE_149__parseISO_index_js__ = __webpack_require__(410); 21539 /* harmony reexport (binding) */ 21540 __webpack_require__.d(__webpack_exports__, "parseISO", function () { 21541 return __WEBPACK_IMPORTED_MODULE_149__parseISO_index_js__["a"]; 21542 }); 21543 /* harmony import */ 21544 var __WEBPACK_IMPORTED_MODULE_150__parseJSON_index_js__ = __webpack_require__(411); 21545 /* harmony reexport (binding) */ 21546 __webpack_require__.d(__webpack_exports__, "parseJSON", function () { 21547 return __WEBPACK_IMPORTED_MODULE_150__parseJSON_index_js__["a"]; 21548 }); 21549 /* harmony import */ 21550 var __WEBPACK_IMPORTED_MODULE_151__roundToNearestMinutes_index_js__ = __webpack_require__(412); 21551 /* harmony reexport (binding) */ 21552 __webpack_require__.d(__webpack_exports__, "roundToNearestMinutes", function () { 21553 return __WEBPACK_IMPORTED_MODULE_151__roundToNearestMinutes_index_js__["a"]; 21554 }); 21555 /* harmony import */ 21556 var __WEBPACK_IMPORTED_MODULE_152__set_index_js__ = __webpack_require__(413); 21557 /* harmony reexport (binding) */ 21558 __webpack_require__.d(__webpack_exports__, "set", function () { 21559 return __WEBPACK_IMPORTED_MODULE_152__set_index_js__["a"]; 21560 }); 21561 /* harmony import */ 21562 var __WEBPACK_IMPORTED_MODULE_153__setDate_index_js__ = __webpack_require__(414); 21563 /* harmony reexport (binding) */ 21564 __webpack_require__.d(__webpack_exports__, "setDate", function () { 21565 return __WEBPACK_IMPORTED_MODULE_153__setDate_index_js__["a"]; 21566 }); 21567 /* harmony import */ 21568 var __WEBPACK_IMPORTED_MODULE_154__setDay_index_js__ = __webpack_require__(415); 21569 /* harmony reexport (binding) */ 21570 __webpack_require__.d(__webpack_exports__, "setDay", function () { 21571 return __WEBPACK_IMPORTED_MODULE_154__setDay_index_js__["a"]; 21572 }); 21573 /* harmony import */ 21574 var __WEBPACK_IMPORTED_MODULE_155__setDayOfYear_index_js__ = __webpack_require__(416); 21575 /* harmony reexport (binding) */ 21576 __webpack_require__.d(__webpack_exports__, "setDayOfYear", function () { 21577 return __WEBPACK_IMPORTED_MODULE_155__setDayOfYear_index_js__["a"]; 21578 }); 21579 /* harmony import */ 21580 var __WEBPACK_IMPORTED_MODULE_156__setHours_index_js__ = __webpack_require__(417); 21581 /* harmony reexport (binding) */ 21582 __webpack_require__.d(__webpack_exports__, "setHours", function () { 21583 return __WEBPACK_IMPORTED_MODULE_156__setHours_index_js__["a"]; 21584 }); 21585 /* harmony import */ 21586 var __WEBPACK_IMPORTED_MODULE_157__setISODay_index_js__ = __webpack_require__(418); 21587 /* harmony reexport (binding) */ 21588 __webpack_require__.d(__webpack_exports__, "setISODay", function () { 21589 return __WEBPACK_IMPORTED_MODULE_157__setISODay_index_js__["a"]; 21590 }); 21591 /* harmony import */ 21592 var __WEBPACK_IMPORTED_MODULE_158__setISOWeek_index_js__ = __webpack_require__(419); 21593 /* harmony reexport (binding) */ 21594 __webpack_require__.d(__webpack_exports__, "setISOWeek", function () { 21595 return __WEBPACK_IMPORTED_MODULE_158__setISOWeek_index_js__["a"]; 21596 }); 21597 /* harmony import */ 21598 var __WEBPACK_IMPORTED_MODULE_159__setISOWeekYear_index_js__ = __webpack_require__(135); 21599 /* harmony reexport (binding) */ 21600 __webpack_require__.d(__webpack_exports__, "setISOWeekYear", function () { 21601 return __WEBPACK_IMPORTED_MODULE_159__setISOWeekYear_index_js__["a"]; 21602 }); 21603 /* harmony import */ 21604 var __WEBPACK_IMPORTED_MODULE_160__setMilliseconds_index_js__ = __webpack_require__(420); 21605 /* harmony reexport (binding) */ 21606 __webpack_require__.d(__webpack_exports__, "setMilliseconds", function () { 21607 return __WEBPACK_IMPORTED_MODULE_160__setMilliseconds_index_js__["a"]; 21608 }); 21609 /* harmony import */ 21610 var __WEBPACK_IMPORTED_MODULE_161__setMinutes_index_js__ = __webpack_require__(421); 21611 /* harmony reexport (binding) */ 21612 __webpack_require__.d(__webpack_exports__, "setMinutes", function () { 21613 return __WEBPACK_IMPORTED_MODULE_161__setMinutes_index_js__["a"]; 21614 }); 21615 /* harmony import */ 21616 var __WEBPACK_IMPORTED_MODULE_162__setMonth_index_js__ = __webpack_require__(96); 21617 /* harmony reexport (binding) */ 21618 __webpack_require__.d(__webpack_exports__, "setMonth", function () { 21619 return __WEBPACK_IMPORTED_MODULE_162__setMonth_index_js__["a"]; 21620 }); 21621 /* harmony import */ 21622 var __WEBPACK_IMPORTED_MODULE_163__setQuarter_index_js__ = __webpack_require__(422); 21623 /* harmony reexport (binding) */ 21624 __webpack_require__.d(__webpack_exports__, "setQuarter", function () { 21625 return __WEBPACK_IMPORTED_MODULE_163__setQuarter_index_js__["a"]; 21626 }); 21627 /* harmony import */ 21628 var __WEBPACK_IMPORTED_MODULE_164__setSeconds_index_js__ = __webpack_require__(423); 21629 /* harmony reexport (binding) */ 21630 __webpack_require__.d(__webpack_exports__, "setSeconds", functi
21630on () { 21631 return __WEBPACK_IMPORTED_MODULE_164__setSeconds_index_js__["a"]; 21632 }); 21633 /* harmony import */ 21634 var __WEBPACK_IMPORTED_MODULE_165__setWeek_index_js__ = __webpack_require__(424); 21635 /* harmony reexport (binding) */ 21636 __webpack_require__.d(__webpack_exports__, "setWeek", function () { 21637 return __WEBPACK_IMPORTED_MODULE_165__setWeek_index_js__["a"]; 21638 }); 21639 /* harmony import */ 21640 var __WEBPACK_IMPORTED_MODULE_166__setWeekYear_index_js__ = __webpack_require__(425); 21641 /* harmony reexport (binding) */ 21642 __webpack_require__.d(__webpack_exports__, "setWeekYear", function () { 21643 return __WEBPACK_IMPORTED_MODULE_166__setWeekYear_index_js__["a"]; 21644 }); 21645 /* harmony import */ 21646 var __WEBPACK_IMPORTED_MODULE_167__setYear_index_js__ = __webpack_require__(426); 21647 /* harmony reexport (binding) */ 21648 __webpack_require__.d(__webpack_exports__, "setYear", function () { 21649 return __WEBPACK_IMPORTED_MODULE_167__setYear_index_js__["a"]; 21650 }); 21651 /* harmony import */ 21652 var __WEBPACK_IMPORTED_MODULE_168__startOfDay_index_js__ = __webpack_require__(57); 21653 /* harmony reexport (binding) */ 21654 __webpack_require__.d(__webpack_exports__, "startOfDay", function () { 21655 return __WEBPACK_IMPORTED_MODULE_168__startOfDay_index_js__["a"]; 21656 }); 21657 /* harmony import */ 21658 var __WEBPACK_IMPORTED_MODULE_169__startOfDecade_index_js__ = __webpack_require__(427); 21659 /* harmony reexport (binding) */ 21660 __webpack_require__.d(__webpack_exports__, "startOfDecade", function () { 21661 return __WEBPACK_IMPORTED_MODULE_169__startOfDecade_index_js__["a"]; 21662 }); 21663 /* harmony import */ 21664 var __WEBPACK_IMPORTED_MODULE_170__startOfHour_index_js__ = __webpack_require__(176); 21665 /* harmony reexport (binding) */ 21666 __webpack_require__.d(__webpack_exports__, "startOfHour", function () { 21667 return __WEBPACK_IMPORTED_MODULE_170__startOfHour_index_js__["a"]; 21668 }); 21669 /* harmony import */ 21670 var __WEBPACK_IMPORTED_MODULE_171__startOfISOWeek_index_js__ = __webpack_require__(25); 21671 /* harmony reexport (binding) */ 21672 __webpack_require__.d(__webpack_exports__, "startOfISOWeek", function () { 21673 return __WEBPACK_IMPORTED_MODULE_171__startOfISOWeek_index_js__["a"]; 21674 }); 21675 /* harmony import */ 21676 var __WEBPACK_IMPORTED_MODULE_172__startOfISOWeekYear_index_js__ = __webpack_require__(46); 21677 /* harmony reexport (binding) */ 21678 __webpack_require__.d(__webpack_exports__, "startOfISOWeekYear", function () { 21679 return __WEBPACK_IMPORTED_MODULE_172__startOfISOWeekYear_index_js__["a"]; 21680 }); 21681 /* harmony import */ 21682 var __WEBPACK_IMPORTED_MODULE_173__startOfMinute_index_js__ = __webpack_require__(179); 21683 /* harmony reexport (binding) */ 21684 __webpack_require__.d(__webpack_exports__, "startOfMinute", function () { 21685 return __WEBPACK_IMPORTED_MODULE_173__startOfMinute_index_js__["a"]; 21686 }); 21687 /* harmony import */ 21688 var __WEBPACK_IMPORTED_MODULE_174__startOfMonth_index_js__ = __webpack_require__(62); 21689 /* harmony reexport (binding) */ 21690 __webpack_require__.d(__webpack_exports__, "startOfMonth", function () { 21691 return __WEBPACK_IMPORTED_MODULE_174__startOfMonth_index_js__["a"]; 21692 }); 21693 /* harmony import */ 21694 var __WEBPACK_IMPORTED_MODULE_175__startOfQuarter_index_js__ = __webpack_require__(87); 21695 /* harmony reexport (binding) */ 21696 __webpack_require__.d(__webpack_exports__, "startOfQuarter", function () { 21697 return __WEBPACK_IMPORTED_MODULE_175__startOfQuarter_index_js__["a"]; 21698 }); 21699 /* harmony import */ 21700 var __WEBPACK_IMPORTED_MODULE_176__startOfSecond_index_js__ = __webpack_require__(183); 21701 /* harmony reexport (binding) */ 21702 __webpack_require__.d(__webpack_exports__, "startOfSecond", function () { 21703 return __WEBPACK_IMPORTED_MODULE_176__startOfSecond_index_js__["a"]; 21704 }); 21705 /* harmony import */ 21706 var __WEBPACK_IMPORTED_MODULE_177__startOfToday_
21706index_js__ = __webpack_require__(428); 21707 /* harmony reexport (binding) */ 21708 __webpack_require__.d(__webpack_exports__, "startOfToday", function () { 21709 return __WEBPACK_IMPORTED_MODULE_177__startOfToday_index_js__["a"]; 21710 }); 21711 /* harmony import */ 21712 var __WEBPACK_IMPORTED_MODULE_178__startOfTomorrow_index_js__ = __webpack_require__(429); 21713 /* harmony reexport (binding) */ 21714 __webpack_require__.d(__webpack_exports__, "startOfTomorrow", function () { 21715 return __WEBPACK_IMPORTED_MODULE_178__startOfTomorrow_index_js__["a"]; 21716 }); 21717 /* harmony import */ 21718 var __WEBPACK_IMPORTED_MODULE_179__startOfWeek_index_js__ = __webpack_require__(22); 21719 /* harmony reexport (binding) */ 21720 __webpack_require__.d(__webpack_exports__, "startOfWeek", function () { 21721 return __WEBPACK_IMPORTED_MODULE_179__startOfWeek_index_js__["a"]; 21722 }); 21723 /* harmony import */ 21724 var __WEBPACK_IMPORTED_MODULE_180__startOfWeekYear_index_js__ = __webpack_require__(93); 21725 /* harmony reexport (binding) */ 21726 __webpack_require__.d(__webpack_exports__, "startOfWeekYear", function () { 21727 return __WEBPACK_IMPORTED_MODULE_180__startOfWeekYear_index_js__["a"]; 21728 }); 21729 /* harmony import */ 21730 var __WEBPACK_IMPORTED_MODULE_181__startOfYear_index_js__ = __webpack_require__(90); 21731 /* harmony reexport (binding) */ 21732 __webpack_require__.d(__webpack_exports__, "startOfYear", function () { 21733 return __WEBPACK_IMPORTED_MODULE_181__startOfYear_index_js__["a"]; 21734 }); 21735 /* harmony import */ 21736 var __WEBPACK_IMPORTED_MODULE_182__startOfYesterday_index_js__ = __webpack_require__(430); 21737 /* harmony reexport (binding) */ 21738 __webpack_require__.d(__webpack_exports__, "startOfYesterday", function () { 21739 return __WEBPACK_IMPORTED_MODULE_182__startOfYesterday_index_js__["a"]; 21740 }); 21741 /* harmony import */ 21742 var __WEBPACK_IMPORTED_MODULE_183__sub_index_js__ = __webpack_require__(172); 21743 /* harmony reexport (binding) */ 21744 __webpack_require__.d(__webpack_exports__, "sub", function () { 21745 return __WEBPACK_IMPORTED_MODULE_183__sub_index_js__["a"]; 21746 }); 21747 /* harmony import */ 21748 var __WEBPACK_IMPORTED_MODULE_184__subBusinessDays_index_js__ = __webpack_require__(431); 21749 /* harmony reexport (binding) */ 21750 __webpack_require__.d(__webpack_exports__, "subBusinessDays", function () { 21751 return __WEBPACK_IMPORTED_MODULE_184__subBusinessDays_index_js__["a"]; 21752 }); 21753 /* harmony import */ 21754 var __WEBPACK_IMPORTED_MODULE_185__subDays_index_js__ = __webpack_require__(94); 21755 /* harmony reexport (binding) */ 21756 __webpack_require__.d(__webpack_exports__, "subDays", function () { 21757 return __WEBPACK_IMPORTED_MODULE_185__subDays_index_js__["a"]; 21758 }); 21759 /* harmony import */ 21760 var __WEBPACK_IMPORTED_MODULE_186__subHours_index_js__ = __webpack_require__(432); 21761 /* harmony reexport (binding) */ 21762 __webpack_require__.d(__webpack_exports__, "subHours", function () { 21763 return __WEBPACK_IMPORTED_MODULE_186__subHours_index_js__["a"]; 21764 }); 21765 /* harmony import */ 21766 var __WEBPACK_IMPORTED_MODULE_187__subISOWeekYears_index_js__ = __webpack_require__(145); 21767 /* harmony reexport (binding) */ 21768 __webpack_require__.d(__webpack_exports__, "subISOWeekYears", function () { 21769 return __WEBPACK_IMPORTED_MODULE_187__subISOWeekYears_index_js__["a"]; 21770 }); 21771 /* harmony import */ 21772 var __WEBPACK_IMPORTED_MODULE_188__subMilliseconds_index_js__ = __webpack_require__(49); 21773 /* harmony reexport (binding) */ 21774 __webpack_require__.d(__webpack_exports__, "subMilliseconds", function () { 21775 return __WEBPACK_IMPORTED_MODULE_188__subMilliseconds_index_js__["a"]; 21776 }); 21777 /* harmony import */ 21778 var __WEBPACK_IMPORTED_MODULE_189__subMinutes_index_js__ = __webpack_require__(433); 21779 /* harmony reexport (binding) */ 21780 __webpack_require__.d(__webpack_exports__, "subMinutes", function () { 21781 return __WEBPACK_IMPORTED_MODULE_189__subMinutes_index_js__["a"]; 21782 }); 21783 /* harmony import */ 21784 var __WEBPACK_IMPORTED_MODULE_190__subMonths_index_js__ = __webpack_require__(173); 21785 /* harmony reexport (binding) */ 21786 __webpack_require__.d(__webpack_exports__, "subMonths", function () { 21787 return __WEBPACK_IMPORTED_MODULE_190__subMonths_index_js__["a"]; 21788 }); 21789 /* harmony import */ 21790 var __WEBPACK_IMPORTED_MODULE_191__subQuarters_index_js__ = __webpack_require__(434); 21791 /* harmony reexport (binding) */ 21792 __webpack_require__.d(__webpack_exports__, "subQuarters", function () { 21793 return __WEBPACK_IMPORTED_MODULE_191__subQuarters_index_js__["a"]; 21794 }); 21795 /* harmony import */ 21796 var __WEBPACK_IMPORTED_MODULE_192__subSeconds_index_js__ = __webpack_require__(435); 21797 /* harmony reexport (binding) */ 21798 __webpack_require__.d(__webpack_exports__, "subSeconds", function () { 21799 return __WEBPACK_IMPORTED_MODULE_192__subSeconds_index_js__["a"]; 21800 }); 21801 /* harmony import */ 21802 var __WEBPACK_IMPORTED_MODULE_193__subWeeks_index_js__ = __webpack_require__(436); 21803 /* harmony reexport (binding) */ 21804 __webpack_require__.d(__webpack_exports__, "subWeeks", function () { 21805 return __WEBPACK_IMPORTED_MODULE_193__subWeeks_index_js__["a"]; 21806 }); 21807 /* harmony import */ 21808 var __WEBPACK_IMPORTED_MODULE_194__subYears_index_js__ = __webpack_require__(437); 21809 /* harmony reexport (binding) */ 21810 __webpack_require__.d(__webpack_exports__, "subYears", function () { 21811 return __WEBPACK_IMPORTED_MODULE_194__subYears_index_js__["a"]; 21812 }); 21813 /* harmony import */ 21814 var __WEBPACK_IMPORTED_MODULE_195__toDate_index_js__ = __webpack_require__(1); 21815 /* harmony reexport (binding) */ 21816 __webpack_require__.d(__webpack_exports__, "toDate", function () { 21817 return __WEBPACK_IMPORTED_MODULE_195__toDate_index_js__["a"]; 21818 }); 21819 /* harmony import */ 21820 var __WEBPACK_IMPORTED_MODULE_196__constants_index_js__ = __webpack_require__(438); 21821 /* harmony namespace reexport (by provided) */ 21822 __webpack_require__.d(__webpack_exports__, "maxTime", function () { 21823 return __WEBPACK_IMPORTED_MODULE_196__constants_index_js__["a"]; 21824 }); 21825 /* harmony namespace reexport (by provided) */ 21826 __webpack_require__.d(__webpack_exports__, "minTime", function () { 21827 return __WEBPACK_IMPORTED_MODULE_196__constants_index_js__["b"]; 21828 }); 21829// This file is generated automatically by `scripts/build/indices.js`. Please, don't change it. 21830 21831 21832 /***/ 21833 }), 21834 /* 311 */ 21835 /***/ (function (module, __webpack_exports__, __webpack_require__) { 21836 21837 "use strict"; 21838 /* harmony export (immutable) */ 21839 __webpack_exports__["a"] = add; 21840 /* harmony import */ 21841 var __WEBPACK_IMPORTED_MODULE_0__addDays_index_js__ = __webpack_require__(21); 21842 /* harmony import */ 21843 var __WEBPACK_IMPORTED_MODULE_1__addMonths_index_js__ = __webpack_require__(44); 21844 /* harmony import */ 21845 var __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__ = __webpack_require__(1); 21846 /* harmony import */ 21847 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 21848 /* harmony import */ 21849 var __WEBPACK_IMPORTED_MODULE_4__lib_toInteger_index_js__ = __webpack_require__(6); 21850 21851 21852 /** 21853 * @name add 21854 * @category Common Helpers 21855 * @summary Add the specified years, months, weeks, days, hours, minutes and seconds to the given date. 21856 *
21857 * @description 21858 * Add the specified years, months, weeks, days, hours, minutes and seconds to the given date. 21859 * 21860 * @param {Date|Number} date - the date to be changed 21861 * @param {Duration} duration - the object with years, months, weeks, days, hours, minutes and seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 21862 * 21863 * | Key | Description | 21864 * |----------------|------------------------------------| 21865 * | years | Amount of years to be added | 21866 * | months | Amount of months to be added | 21867 * | weeks | Amount of weeks to be added | 21868 * | days | Amount of days to be added | 21869 * | hours | Amount of hours to be added | 21870 * | minutes | Amount of minutes to be added | 21871 * | seconds | Amount of seconds to be added | 21872 * 21873 * All values default to 0 21874 * 21875 * @returns {Date} the new date with the seconds added 21876 * @throws {TypeError} 2 arguments required 21877 * 21878 * @example 21879 * // Add the following duration to 1 September 2014, 10:19:50 21880 * var result = add(new Date(2014, 8, 1, 10, 19, 50), { 21881 * years: 2, 21882 * months: 9, 21883 * weeks: 1, 21884 * days: 7, 21885 * hours: 5, 21886 * minutes: 9, 21887 * seconds: 30, 21888 * }) 21889 * //=> Thu Jun 15 2017 15:29:20 21890 */ 21891 21892 function add(dirtyDate, duration) { 21893 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 21894 if (!duration || typeof duration !== 'object') return new Date(NaN); 21895 var years = 'years' in duration ? __WEBPACK_IMPORTED_MODULE_4__lib_toInteger_index_js__["a" /* default */](duration.years) : 0; 21896 var months = 'months' in duration ? __WEBPACK_IMPORTED_MODULE_4__lib_toInteger_index_js__["a" /* default */](duration.months) : 0; 21897 var weeks = 'weeks' in duration ? __WEBPACK_IMPORTED_MODULE_4__lib_toInteger_index_js__["a" /* default */](duration.weeks) : 0; 21898 var days = 'days' in duration ? __WEBPACK_IMPORTED_MODULE_4__lib_toInteger_index_js__["a" /* default */](duration.days) : 0; 21899 var hours = 'hours' in duration ? __WEBPACK_IMPORTED_MODULE_4__lib_toInteger_index_js__["a" /* default */](duration.hours) : 0; 21900 var minutes = 'minutes' in duration ? __WEBPACK_IMPORTED_MODULE_4__lib_toInteger_index_js__["a" /* default */](duration.minutes) : 0; 21901 var seconds = 'seconds' in duration ? __WEBPACK_IMPORTED_MODULE_4__lib_toInteger_index_js__["a" /* default */](duration.seconds) : 0; // Add years and months 21902 21903 var date = __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](dirtyDate); 21904 var dateWithMonths = months || years ? __WEBPACK_IMPORTED_MODULE_1__addMonths_index_js__["a" /* default */](date, months + years * 12) : date; // Add weeks and days 21905 21906 var dateWithDays = days || weeks ? __WEBPACK_IMPORTED_MODULE_0__addDays_index_js__["a" /* default */](dateWithMonths, days + weeks * 7) : dateWithMonths; // Add days, hours, minutes and seconds 21907 21908 var minutesToAdd = minutes + hours * 60; 21909 var secondsToAdd = seconds + minutesToAdd * 60; 21910 var msToAdd = secondsToAdd * 1000; 21911 var finalDate = new Date(dateWithDays.getTime() + msToAdd); 21912 return finalDate; 21913 } 21914 21915 /***/ 21916 }), 21917 /* 312 */ 21918 /***/ (function (module, __webpack_exports__, __webpack_require__) { 21919 21920 "use strict"; 21921 /* harmony export (immutable) */ 21922 __webpack_exports__["a"] = areIntervalsOverlapping; 21923 /* harmony import */ 21924 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 21925 /* harmony import */ 21926 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 21927 21928 21929 /** 21930 * @name areIntervalsOverlapping 21931 * @category Interval Helpers 21932 * @summary Is the given time interval overlapping with another time interval? 21933 *
21934 * @description 21935 * Is the given time interval overlapping with another time interval? Adjacent intervals do not count as overlapping. 21936 * 21937 * ### v2.0.0 breaking changes: 21938 * 21939 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 21940 * 21941 * - The function was renamed from `areRangesOverlapping` to `areIntervalsOverlapping`. 21942 * This change was made to mirror the use of the word "interval" in standard ISO 8601:2004 terminology: 21943 * 21944 * ``` 21945 * 2.1.3 21946 * time interval 21947 * part of the time axis limited by two instants 21948 * ``` 21949 * 21950 * Also, this function now accepts an object with `start` and `end` properties 21951 * instead of two arguments as an interval. 21952 * This function now throws `RangeError` if the start of the interval is after its end 21953 * or if any date in the interval is `Invalid Date`. 21954 * 21955 * ```javascript 21956 * // Before v2.0.0 21957 * 21958 * areRangesOverlapping( 21959 * new Date(2014, 0, 10), new Date(2014, 0, 20), 21960 * new Date(2014, 0, 17), new Date(2014, 0, 21) 21961 * ) 21962 * 21963 * // v2.0.0 onward 21964 * 21965 * areIntervalsOverlapping( 21966 * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, 21967 * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } 21968 * ) 21969 * ``` 21970 * 21971 * @param {Interval} intervalLeft - the first interval to compare. See [Interval]{@link docs/types/Interval} 21972 * @param {Interval} intervalRight - the second interval to compare. See [Interval]{@link docs/types/Interval} 21973 * @param {Object} [options] - the object with options 21974 * @param {Boolean} [options.inclusive=false] - whether the comparison is inclusive or not 21975 * @returns {Boolean} whether the time intervals are overlapping 21976 * @throws {TypeError} 2 arguments required 21977 * @throws {RangeError} The start of an interval cannot be after its end 21978 * @throws {RangeError} Date in interval cannot be `Invalid Date` 21979 * 21980 * @example 21981 * // For overlapping time intervals: 21982 * areIntervalsOverlapping( 21983 * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, 21984 * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } 21985 * ) 21986 * //=> true 21987 * 21988 * @example 21989 * // For non-overlapping time intervals: 21990 * areIntervalsOverlapping( 21991 * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, 21992 * { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } 21993 * ) 21994 * //=> false 21995 * 21996 * @example 21997 * // For adjacent time intervals: 21998 * areIntervalsOverlapping( 21999 * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, 22000 * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 30) } 22001 * ) 22002 * //=> false 22003 * 22004 * @example 22005 * // Using the inclusive option: 22006 * areIntervalsOverlapping( 22007 * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, 22008 * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 24) } 22009 * ) 22010 * //=> false 22011 * areIntervalsOverlapping( 22012 * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, 22013 * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 24) }, 22014 * { inclusive: true } 22015 * ) 22016 * //=> true 22017 */ 22018 22019 function areIntervalsOverlapping(dirtyIntervalLeft, dirtyIntervalRight) { 22020 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; 22021 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 22022 var intervalLeft = dirtyIntervalLeft || {}; 22023 var intervalRight = dirtyIntervalRight || {}; 22024 var leftStartTime = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](intervalLeft.start).getTime(); 22025 var leftEndTime = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](intervalLeft.end).getTime(); 22026 var rightStartTime = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](intervalRight.start).getTime(); 22027 var rightEndTime = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](intervalRight.end).getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` 22028 22029 if (!(leftStartTime <= leftEndTime && rightStartTime <= rightEndTime)) { 22030 throw new RangeError('Invalid interval'); 22031 } 22032 22033 if (options.inclusive) { 22034 return leftStartTime <= rightEndTime && rightStartTime <= leftEndTime; 22035 } 22036 22037 return leftStartTime < rightEndTime && rightStartTime < leftEndTime; 22038 } 22039 22040 /***/ 22041 }), 22042 /* 313 */ 22043 /***/ (function (module, __webpack_exports__, __webpack_require__) { 22044 22045 "use strict"; 22046 /* harmony export (immutable) */ 22047 __webpack_exports__["a"] = closestIndexTo; 22048 /* harmony import */ 22049 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 22050 /* harmony import */ 22051 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 22052 22053 22054 /** 22055 * @name closestIndexTo 22056 * @category Common Helpers 22057 * @summary Return an index of the closest date from the array comparing to the given date. 22058 *
22059 * @description 22060 * Return an index of the closest date from the array comparing to the given date. 22061 * 22062 * ### v2.0.0 breaking changes: 22063 * 22064 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 22065 * 22066 * - Now, `closestIndexTo` doesn't throw an exception 22067 * when the second argument is not an array, and returns Invalid Date instead. 22068 * 22069 * @param {Date|Number} dateToCompare - the date to compare with 22070 * @param {Date[]|Number[]} datesArray - the array to search 22071 * @returns {Number} an index of the date closest to the given date 22072 * @throws {TypeError} 2 arguments required 22073 * 22074 * @example 22075 * // Which date is closer to 6 September 2015? 22076 * var dateToCompare = new Date(2015, 8, 6) 22077 * var datesArray = [ 22078 * new Date(2015, 0, 1), 22079 * new Date(2016, 0, 1), 22080 * new Date(2017, 0, 1) 22081 * ] 22082 * var result = closestIndexTo(dateToCompare, datesArray) 22083 * //=> 1 22084 */ 22085 22086 function closestIndexTo(dirtyDateToCompare, dirtyDatesArray) { 22087 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 22088 var dateToCompare = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateToCompare); 22089 22090 if (isNaN(dateToCompare)) { 22091 return NaN; 22092 } 22093 22094 var timeToCompare = dateToCompare.getTime(); 22095 var datesArray; // `dirtyDatesArray` is undefined or null 22096 22097 if (dirtyDatesArray == null) { 22098 datesArray = []; // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method 22099 } else if (typeof dirtyDatesArray.forEach === 'function') { 22100 datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array. Otherwise, make it empty Array 22101 } else { 22102 datesArray = Array.prototype.slice.call(dirtyDatesArray); 22103 } 22104 22105 var result; 22106 var minDistance; 22107 datesArray.forEach(function (dirtyDate, index) { 22108 var currentDate = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 22109 22110 if (isNaN(currentDate)) { 22111 result = NaN; 22112 minDistance = NaN; 22113 return; 22114 } 22115 22116 var distance = Math.abs(timeToCompare - currentDate.getTime()); 22117 22118 if (result == null || distance < minDistance) { 22119 result = index; 22120 minDistance = distance; 22121 } 22122 }); 22123 return result; 22124 } 22125 22126 /***/ 22127 }), 22128 /* 314 */ 22129 /***/ (function (module, __webpack_exports__, __webpack_require__) { 22130 22131 "use strict"; 22132 /* harmony export (immutable) */ 22133 __webpack_exports__["a"] = closestTo; 22134 /* harmony import */ 22135 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 22136 /* harmony import */ 22137 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 22138 22139 22140 /** 22141 * @name closestTo 22142 * @category Common Helpers 22143 * @summary Return a date from the array closest to the given date. 22144 * 22145 * @description 22146 * Return a date from the array closest to the given date. 22147 * 22148 * ### v2.0.0 breaking changes: 22149 * 22150 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 22151 * 22152 * - Now, `closestTo` doesn't throw an exception 22153 * when the second argument is not an array, and returns Invalid Date instead. 22154 * 22155 * @param {Date|Number} dateToCompare - the date to compare with 22156 * @param {Date[]|Number[]} datesArray - the array to search 22157 * @returns {Date} the date from the array closest to the given date 22158 * @throws {TypeError} 2 arguments required 22159 * 22160 * @example 22161 * // Which date is closer to 6 September 2015: 1 January 2000 or 1 January 2030? 22162 * var dateToCompare = new Date(2015, 8, 6) 22163 * var result = closestTo(dateToCompare, [ 22164 * new Date(2000, 0, 1), 22165 * new Date(2030, 0, 1) 22166 * ]) 22167 * //=> Tue Jan 01 2030 00:00:00 22168 */ 22169 22170 function closestTo(dirtyDateToCompare, dirtyDatesArray) { 22171 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 22172 var dateToCompare = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateToCompare); 22173 22174 if (isNaN(dateToCompare)) { 22175 return new Date(NaN); 22176 } 22177 22178 var timeToCompare = dateToCompare.getTime(); 22179 var datesArray; // `dirtyDatesArray` is undefined or null 22180
vendor: 6,081 bytes, lines 22181-22306
22181 if (dirtyDatesArray == null) { 22182 datesArray = []; // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method 22183 } else if (typeof dirtyDatesArray.forEach === 'function') { 22184 datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array. Otherwise, make it empty Array 22185 } else { 22186 datesArray = Array.prototype.slice.call(dirtyDatesArray); 22187 } 22188 22189 var result; 22190 var minDistance; 22191 datesArray.forEach(function (dirtyDate) { 22192 var currentDate = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 22193 22194 if (isNaN(currentDate)) { 22195 result = new Date(NaN); 22196 minDistance = NaN; 22197 return; 22198 } 22199 22200 var distance = Math.abs(timeToCompare - currentDate.getTime()); 22201 22202 if (result == null || distance < minDistance) { 22203 result = currentDate; 22204 minDistance = distance; 22205 } 22206 }); 22207 return result; 22208 } 22209 22210 /***/ 22211 }), 22212 /* 315 */ 22213 /***/ (function (module, __webpack_exports__, __webpack_require__) { 22214 22215 "use strict"; 22216 /* harmony export (immutable) */ 22217 __webpack_exports__["a"] = compareDesc; 22218 /* harmony import */ 22219 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 22220 /* harmony import */ 22221 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 22222 22223 22224 /** 22225 * @name compareDesc 22226 * @category Common Helpers 22227 * @summary Compare the two dates reverse chronologically and return -1, 0 or 1. 22228 * 22229 * @description 22230 * Compare the two dates and return -1 if the first date is after the second, 22231 * 1 if the first date is before the second or 0 if dates are equal. 22232 * 22233 * ### v2.0.0 breaking changes: 22234 * 22235 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 22236 * 22237 * @param {Date|Number} dateLeft - the first date to compare 22238 * @param {Date|Number} dateRight - the second date to compare 22239 * @returns {Number} the result of the comparison 22240 * @throws {TypeError} 2 arguments required 22241 * 22242 * @example 22243 * // Compare 11 February 1987 and 10 July 1989 reverse chronologically: 22244 * var result = compareDesc(new Date(1987, 1, 11), new Date(1989, 6, 10)) 22245 * //=> 1 22246 * 22247 * @example 22248 * // Sort the array of dates in reverse chronological order: 22249 * var result = [ 22250 * new Date(1995, 6, 2), 22251 * new Date(1987, 1, 11), 22252 * new Date(1989, 6, 10) 22253 * ].sort(compareDesc) 22254 * //=> [ 22255 * // Sun Jul 02 1995 00:00:00, 22256 * // Mon Jul 10 1989 00:00:00, 22257 * // Wed Feb 11 1987 00:00:00 22258 * // ] 22259 */ 22260 22261 function compareDesc(dirtyDateLeft, dirtyDateRight) { 22262 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 22263 var dateLeft = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateLeft); 22264 var dateRight = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateRight); 22265 var diff = dateLeft.getTime() - dateRight.getTime(); 22266 22267 if (diff > 0) { 22268 return -1; 22269 } else if (diff < 0) { 22270 return 1; // Return 0 if diff is 0; return NaN if diff is NaN 22271 } else { 22272 return diff; 22273 } 22274 } 22275 22276 /***/ 22277 }), 22278 /* 316 */ 22279 /***/ (function (module, __webpack_exports__, __webpack_require__) { 22280 22281 "use strict"; 22282 /* harmony export (immutable) */ 22283 __webpack_exports__["a"] = differenceInBusinessDays; 22284 /* harmony import */ 22285 var __WEBPACK_IMPORTED_MODULE_0__isValid_index_js__ = __webpack_require__(15); 22286 /* harmony import */ 22287 var __WEBPACK_IMPORTED_MODULE_1__isWeekend_index_js__ = __webpack_require__(56); 22288 /* harmony import */ 22289 var __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__ = __webpack_require__(1); 22290 /* harmony import */ 22291 var __WEBPACK_IMPORTED_MODULE_3__differenceInCalendarDays_index_js__ = __webpack_require__(26); 22292 /* harmony import */ 22293 var __WEBPACK_IMPORTED_MODULE_4__addDays_index_js__ = __webpack_require__(21); 22294 /* harmony import */ 22295 var __WEBPACK_IMPORTED_MODULE_5__isSameDay_index_js__ = __webpack_require__(47); 22296 /* harmony import */ 22297 var __WEBPACK_IMPORTED_MODULE_6__lib_toInteger_index_js__ = __webpack_require__(6); 22298 /* harmony import */ 22299 var __WEBPACK_IMPORTED_MODULE_7__lib_requiredArgs_index_js__ = __webpack_require__(0); 22300 22301 22302 /** 22303 * @name differenceInBusinessDays 22304 * @category Day Helpers 22305 * @summary Get the number of business days between the given dates. 22306 *
22307 * @description 22308 * Get the number of business day periods between the given dates. 22309 * Business days being days that arent in the weekend. 22310 * Like `differenceInCalendarDays`, the function removes the times from 22311 * the dates before calculating the difference. 22312 * 22313 * @param {Date|Number} dateLeft - the later date 22314 * @param {Date|Number} dateRight - the earlier date 22315 * @returns {Number} the number of business days 22316 * @throws {TypeError} 2 arguments required 22317 * 22318 * @example 22319 * // How many business days are between 22320 * // 10 January 2014 and 20 July 2014? 22321 * var result = differenceInBusinessDays( 22322 * new Date(2014, 6, 20), 22323 * new Date(2014, 0, 10) 22324 * ) 22325 * //=> 136 22326 */ 22327 22328 function differenceInBusinessDays(dirtyDateLeft, dirtyDateRight) { 22329 __WEBPACK_IMPORTED_MODULE_7__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 22330 var dateLeft = __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](dirtyDateLeft); 22331 var dateRight = __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](dirtyDateRight); 22332 if (!__WEBPACK_IMPORTED_MODULE_0__isValid_index_js__["a" /* default */](dateLeft) || !__WEBPACK_IMPORTED_MODULE_0__isValid_index_js__["a" /* default */](dateRight)) return new Date(NaN); 22333 var calendarDifference = __WEBPACK_IMPORTED_MODULE_3__differenceInCalendarDays_index_js__["a" /* default */](dateLeft, dateRight); 22334 var sign = calendarDifference < 0 ? -1 : 1; 22335 var weeks = __WEBPACK_IMPORTED_MODULE_6__lib_toInteger_index_js__["a" /* default */](calendarDifference / 7); 22336 var result = weeks * 5; 22337 dateRight = __WEBPACK_IMPORTED_MODULE_4__addDays_index_js__["a" /* default */](dateRight, weeks * 7); // the loop below will run at most 6 times to account for the remaining days that don't makeup a full week 22338 22339 while (!__WEBPACK_IMPORTED_MODULE_5__isSameDay_index_js__["a" /* default */](dateLeft, dateRight)) { 22340 // sign is used to account for both negative and positive differences 22341 result += __WEBPACK_IMPORTED_MODULE_1__isWeekend_index_js__["a" /* default */](dateRight) ? 0 : sign; 22342 dateRight = __WEBPACK_IMPORTED_MODULE_4__addDays_index_js__["a" /* default */](dateRight, sign); 22343 } 22344 22345 return result === 0 ? 0 : result; 22346 } 22347 22348 /***/ 22349 }), 22350 /* 317 */ 22351 /***/ (function (module, __webpack_exports__, __webpack_require__) { 22352 22353 "use strict"; 22354 /* harmony export (immutable) */ 22355 __webpack_exports__["a"] = differenceInCalendarISOWeeks; 22356 /* harmony import */ 22357 var __WEBPACK_IMPORTED_MODULE_0__lib_getTimezoneOffsetInMilliseconds_index_js__ = __webpack_require__(19); 22358 /* harmony import */ 22359 var __WEBPACK_IMPORTED_MODULE_1__startOfISOWeek_index_js__ = __webpack_require__(25); 22360 /* harmony import */ 22361 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 22362 22363 22364 var MILLISECONDS_IN_WEEK = 604800000; 22365 22366 /** 22367 * @name differenceInCalendarISOWeeks 22368 * @category ISO Week Helpers 22369 * @summary Get the number of calendar ISO weeks between the given dates. 22370 * 22371 * @description 22372 * Get the number of calendar ISO weeks between the given dates. 22373 * 22374 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 22375 * 22376 * ### v2.0.0 breaking changes: 22377 * 22378 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 22379 * 22380 * @param {Date|Number} dateLeft - the later date 22381 * @param {Date|Number} dateRight - the earlier date 22382 * @returns {Number} the number of calendar ISO weeks 22383 * @throws {TypeError} 2 arguments required 22384 * 22385 * @example 22386 * // How many calendar ISO weeks are between 6 July 2014 and 21 July 2014? 22387 * var result = differenceInCalendarISOWeeks( 22388 * new Date(2014, 6, 21), 22389 * new Date(2014, 6, 6) 22390 * ) 22391 * //=> 3 22392 */ 22393 22394 function differenceInCalendarISOWeeks(dirtyDateLeft, dirtyDateRight) { 22395 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 22396 var startOfISOWeekLeft = __WEBPACK_IMPORTED_MODULE_1__startOfISOWeek_index_js__["a" /* default */](dirtyDateLeft); 22397 var startOfISOWeekRight = __WEBPACK_IMPORTED_MODULE_1__startOfISOWeek_index_js__["a" /* default */](dirtyDateRight); 22398 var timestampLeft = startOfISOWeekLeft.getTime() - __WEBPACK_IMPORTED_MODULE_0__lib_getTimezoneOffsetInMilliseconds_index_js__["a" /* default */](startOfISOWeekLeft); 22399 var timestampRight = startOfISOWeekRight.getTime() - __WEBPACK_IMPORTED_MODULE_0__lib_getTimezoneOffsetInMilliseconds_index_js__["a" /* default */](startOfISOWeekRight); // Round the number of days to the nearest integer 22400 // because the number of milliseconds in a week is not constant 22401 // (e.g. it's different in the week of the daylight saving time clock shift) 22402 22403 return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_WEEK); 22404 } 22405 22406 /***/ 22407 }), 22408 /* 318 */ 22409 /***/ (function (module, __webpack_exports__, __webpack_require__) { 22410 22411 "use strict"; 22412 /* harmony export (immutable) */ 22413 __webpack_exports__["a"] = differenceInCalendarQuarters; 22414 /* harmony import */ 22415 var __WEBPACK_IMPORTED_MODULE_0__getQuarter_index_js__ = __webpack_require__(141); 22416 /* harmony import */ 22417 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 22418 /* harmony import */ 22419 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 22420 22421 22422 /** 22423 * @name differenceInCalendarQuarters 22424 * @category Quarter Helpers 22425 * @summary Get the number of calendar quarters between the given dates. 22426 *
22427 * @description 22428 * Get the number of calendar quarters between the given dates. 22429 * 22430 * ### v2.0.0 breaking changes: 22431 * 22432 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 22433 * 22434 * @param {Date|Number} dateLeft - the later date 22435 * @param {Date|Number} dateRight - the earlier date 22436 * @returns {Number} the number of calendar quarters 22437 * @throws {TypeError} 2 arguments required 22438 * 22439 * @example 22440 * // How many calendar quarters are between 31 December 2013 and 2 July 2014? 22441 * var result = differenceInCalendarQuarters( 22442 * new Date(2014, 6, 2), 22443 * new Date(2013, 11, 31) 22444 * ) 22445 * //=> 3 22446 */ 22447 22448 function differenceInCalendarQuarters(dirtyDateLeft, dirtyDateRight) { 22449 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 22450 var dateLeft = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDateLeft); 22451 var dateRight = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDateRight); 22452 var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear(); 22453 var quarterDiff = __WEBPACK_IMPORTED_MODULE_0__getQuarter_index_js__["a" /* default */](dateLeft) - __WEBPACK_IMPORTED_MODULE_0__getQuarter_index_js__["a" /* default */](dateRight); 22454 return yearDiff * 4 + quarterDiff; 22455 } 22456 22457 /***/ 22458 }), 22459 /* 319 */ 22460 /***/ (function (module, __webpack_exports__, __webpack_require__) { 22461 22462 "use strict"; 22463 /* harmony export (immutable) */ 22464 __webpack_exports__["a"] = differenceInISOWeekYears; 22465 /* harmony import */ 22466 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 22467 /* harmony import */ 22468 var __WEBPACK_IMPORTED_MODULE_1__differenceInCalendarISOWeekYears_index_js__ = __webpack_require__(139); 22469 /* harmony import */ 22470 var __WEBPACK_IMPORTED_MODULE_2__compareAsc_index_js__ = __webpack_require__(27); 22471 /* harmony import */ 22472 var __WEBPACK_IMPORTED_MODULE_3__subISOWeekYears_index_js__ = __webpack_require__(145); 22473 /* harmony import */ 22474 var __WEBPACK_IMPORTED_MODULE_4__lib_requiredArgs_index_js__ = __webpack_require__(0); 22475 22476 22477 /** 22478 * @name differenceInISOWeekYears 22479 * @category ISO Week-Numbering Year Helpers 22480 * @summary Get the number of full ISO week-numbering years between the given dates. 22481 * 22482 * @description 22483 * Get the number of full ISO week-numbering years between the given dates. 22484 * 22485 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 22486 * 22487 * ### v2.0.0 breaking changes: 22488 * 22489 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 22490 * 22491 * - The function was renamed from `differenceInISOYears` to `differenceInISOWeekYears`. 22492 * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). 22493 * This change makes the name consistent with 22494 * locale-dependent week-numbering year helpers, e.g., `addWeekYears`. 22495 * 22496 * @param {Date|Number} dateLeft - the later date 22497 * @param {Date|Number} dateRight - the earlier date 22498 * @returns {Number} the number of full ISO week-numbering years 22499 * @throws {TypeError} 2 arguments required 22500 * 22501 * @example 22502 * // How many full ISO week-numbering years are between 1 January 2010 and 1 January 2012? 22503 * var result = differenceInISOWeekYears( 22504 * new Date(2012, 0, 1), 22505 * new Date(2010, 0, 1) 22506 * ) 22507 * //=> 1 22508 */ 22509 22510 function differenceInISOWeekYears(dirtyDateLeft, dirtyDateRight) { 22511 __WEBPACK_IMPORTED_MODULE_4__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 22512 var dateLeft = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateLeft); 22513 var dateRight = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateRight); 22514 var sign = __WEBPACK_IMPORTED_MODULE_2__compareAsc_index_js__["a" /* default */](dateLeft, dateRight); 22515 var difference = Math.abs(__WEBPACK_IMPORTED_MODULE_1__differenceInCalendarISOWeekYears_index_js__["a" /* default */](dateLeft, dateRight)); 22516 dateLeft = __WEBPACK_IMPORTED_MODULE_3__subISOWeekYears_index_js__["a" /* default */](dateLeft, sign * difference); // Math.abs(diff in full ISO years - diff in calendar ISO years) === 1 22517 // if last calendar ISO year is not full 22518 // If so, result must be decreased by 1 in absolute value 22519 22520 var isLastISOWeekYearNotFull = __WEBPACK_IMPORTED_MODULE_2__compareAsc_index_js__["a" /* default */](dateLeft, dateRight) === -sign; 22521 var result = sign * (difference - isLastISOWeekYearNotFull); // Prevent negative zero 22522 22523 return result === 0 ? 0 : result; 22524 } 22525 22526 /***/ 22527 }), 22528 /* 320 */ 22529 /***/ (function (module, __webpack_exports__, __webpack_require__) { 22530 22531 "use strict"; 22532 /* harmony export (immutable) */ 22533 __webpack_exports__["a"] = differenceInQuarters; 22534 /* harmony import */ 22535 var __WEBPACK_IMPORTED_MODULE_0__differenceInMonths_index_js__ = __webpack_require__(60); 22536 /* harmony import */ 22537 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 22538 22539 22540 /** 22541 * @name differenceInQuarters 22542 * @category Quarter Helpers 22543 * @summary Get the number of full quarters between the given dates. 22544 *
22545 * @description 22546 * Get the number of full quarters between the given dates. 22547 * 22548 * ### v2.0.0 breaking changes: 22549 * 22550 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 22551 * 22552 * @param {Date|Number} dateLeft - the later date 22553 * @param {Date|Number} dateRight - the earlier date 22554 * @returns {Number} the number of full quarters 22555 * @throws {TypeError} 2 arguments required 22556 * 22557 * @example 22558 * // How many full quarters are between 31 December 2013 and 2 July 2014? 22559 * var result = differenceInQuarters(new Date(2014, 6, 2), new Date(2013, 11, 31)) 22560 * //=> 2 22561 */ 22562 22563 function differenceInQuarters(dirtyDateLeft, dirtyDateRight) { 22564 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 22565 var diff = __WEBPACK_IMPORTED_MODULE_0__differenceInMonths_index_js__["a" /* default */](dirtyDateLeft, dirtyDateRight) / 3; 22566 return diff > 0 ? Math.floor(diff) : Math.ceil(diff); 22567 } 22568 22569 /***/ 22570 }), 22571 /* 321 */ 22572 /***/ (function (module, __webpack_exports__, __webpack_require__) { 22573 22574 "use strict"; 22575 /* harmony export (immutable) */ 22576 __webpack_exports__["a"] = differenceInWeeks; 22577 /* harmony import */ 22578 var __WEBPACK_IMPORTED_MODULE_0__differenceInDays_index_js__ = __webpack_require__(86); 22579 /* harmony import */ 22580 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 22581 22582 22583 /** 22584 * @name differenceInWeeks 22585 * @category Week Helpers 22586 * @summary Get the number of full weeks between the given dates. 22587 * 22588 * @description 22589 * Get the number of full weeks between two dates. Fractional weeks are 22590 * truncated towards zero. 22591 * 22592 * One "full week" is the distance between a local time in one day to the same 22593 * local time 7 days earlier or later. A full week can sometimes be less than 22594 * or more than 7*24 hours if a daylight savings change happens between two dates. 22595 * 22596 * To ignore DST and only measure exact 7*24-hour periods, use this instead: 22597 * `Math.floor(differenceInHours(dateLeft, dateRight)/(7*24))|0`. 22598 * 22599 * 22600 * ### v2.0.0 breaking changes: 22601 * 22602 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 22603 * 22604 * @param {Date|Number} dateLeft - the later date 22605 * @param {Date|Number} dateRight - the earlier date 22606 * @returns {Number} the number of full weeks 22607 * @throws {TypeError} 2 arguments required 22608 * 22609 * @example 22610 * // How many full weeks are between 5 July 2014 and 20 July 2014? 22611 * var result = differenceInWeeks(new Date(2014, 6, 20), new Date(2014, 6, 5)) 22612 * //=> 2 22613 * 22614 * // How many full weeks are between 22615 * // 1 March 2020 0:00 and 6 June 2020 0:00 ? 22616 * // Note: because local time is used, the 22617 * // result will always be 8 weeks (54 days), 22618 * // even if DST starts and the period has 22619 * // only 54*24-1 hours. 22620 * var result = differenceInWeeks( 22621 * new Date(2020, 5, 1), 22622 * new Date(2020, 2, 6) 22623 * ) 22624 * //=> 8 22625 */ 22626 22627 function differenceInWeeks(dirtyDateLeft, dirtyDateRight) { 22628 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 22629 var diff = __WEBPACK_IMPORTED_MODULE_0__differenceInDays_index_js__["a" /* default */](dirtyDateLeft, dirtyDateRight) / 7; 22630 return diff > 0 ? Math.floor(diff) : Math.ceil(diff); 22631 } 22632 22633 /***/ 22634 }), 22635 /* 322 */ 22636 /***/ (function (module, __webpack_exports__, __webpack_require__) { 22637 22638 "use strict"; 22639 /* harmony export (immutable) */ 22640 __webpack_exports__["a"] = eachHourOfInterval; 22641 /* harmony import */ 22642 var __WEBPACK_IMPORTED_MODULE_0__addHours_index_js__ = __webpack_require__(84); 22643 /* harmony import */ 22644 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 22645 /* harmony import */ 22646 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 22647 22648 22649 /** 22650 * @name eachHourOfInterval 22651 * @category Interval Helpers 22652 * @summary Return the array of hours within the specified time interval. 22653 *
22654 * @description 22655 * Return the array of hours within the specified time interval. 22656 * 22657 * @param {Interval} interval - the interval. See [Interval]{@link docs/types/Interval} 22658 * @param {Object} [options] - an object with options. 22659 * @param {Number} [options.step=1] - the step to increment by. The value should be more than 1. 22660 * @returns {Date[]} the array with starts of hours from the hour of the interval start to the hour of the interval end 22661 * @throws {TypeError} 1 argument required 22662 * @throws {RangeError} `options.step` must be a number greater than 1 22663 * @throws {RangeError} The start of an interval cannot be after its end 22664 * @throws {RangeError} Date in interval cannot be `Invalid Date` 22665 * 22666 * @example 22667 * // Each hour between 6 October 2014, 12:00 and 10 October 2014, 15:00 22668 * var result = eachHourOfInterval({ 22669 * start: new Date(2014, 9, 6, 12), 22670 * end: new Date(2014, 9, 6, 15) 22671 * }) 22672 * //=> [ 22673 * // Mon Oct 06 2014 12:00:00, 22674 * // Mon Oct 06 2014 13:00:00, 22675 * // Mon Oct 06 2014 14:00:00, 22676 * // Mon Oct 06 2014 15:00:00 22677 * // ] 22678 */ 22679 22680 function eachHourOfInterval(dirtyInterval, options) { 22681 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 22682 var interval = dirtyInterval || {}; 22683 var startDate = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](interval.start); 22684 var endDate = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](interval.end); 22685 var startTime = startDate.getTime(); 22686 var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` 22687 22688 if (!(startTime <= endTime)) { 22689 throw new RangeError('Invalid interval'); 22690 } 22691 22692 var dates = []; 22693 var currentDate = startDate; 22694 currentDate.setMinutes(0, 0, 0); 22695 var step = options && 'step' in options ? Number(options.step) : 1; 22696 if (step < 1 || isNaN(step)) throw new RangeError('`options.step` must be a number greater than 1'); 22697 22698 while (currentDate.getTime() <= endTime) { 22699 dates.push(__WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](currentDate)); 22700 currentDate = __WEBPACK_IMPORTED_MODULE_0__addHours_index_js__["a" /* default */](currentDate, step); 22701 } 22702 22703 return dates; 22704 } 22705 22706 /***/ 22707 }), 22708 /* 323 */ 22709 /***/ (function (module, __webpack_exports__, __webpack_require__) { 22710 22711 "use strict"; 22712 /* harmony export (immutable) */ 22713 __webpack_exports__["a"] = eachMonthOfInterval; 22714 /* harmony import */ 22715 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 22716 /* harmony import */ 22717 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 22718 22719 22720 /** 22721 * @name eachMonthOfInterval 22722 * @category Interval Helpers 22723 * @summary Return the array of months within the specified time interval. 22724 * 22725 * @description 22726 * Return the array of months within the specified time interval. 22727 * 22728 * @param {Interval} interval - the interval. See [Interval]{@link docs/types/Interval} 22729 * @returns {Date[]} the array with starts of months from the month of the interval start to the month of the interval end 22730 * @throws {TypeError} 1 argument required 22731 * @throws {RangeError} The start of an interval cannot be after its end 22732 * @throws {RangeError} Date in interval cannot be `Invalid Date` 22733 * 22734 * @example 22735 * // Each month between 6 February 2014 and 10 August 2014: 22736 * var result = eachMonthOfInterval({ 22737 * start: new Date(2014, 1, 6), 22738 * end: new Date(2014, 7, 10) 22739 * }) 22740 * //=> [ 22741 * // Sat Feb 01 2014 00:00:00, 22742 * // Sat Mar 01 2014 00:00:00, 22743 * // Tue Apr 01 2014 00:00:00, 22744 * // Thu May 01 2014 00:00:00, 22745 * // Sun Jun 01 2014 00:00:00, 22746 * // Tue Jul 01 2014 00:00:00,
vendor: 5,972 bytes, lines 22747-22863
22747 * // Fri Aug 01 2014 00:00:00 22748 * // ] 22749 */ 22750 22751 function eachMonthOfInterval(dirtyInterval) { 22752 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 22753 var interval = dirtyInterval || {}; 22754 var startDate = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](interval.start); 22755 var endDate = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](interval.end); 22756 var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` 22757 22758 if (!(startDate.getTime() <= endTime)) { 22759 throw new RangeError('Invalid interval'); 22760 } 22761 22762 var dates = []; 22763 var currentDate = startDate; 22764 currentDate.setHours(0, 0, 0, 0); 22765 currentDate.setDate(1); 22766 22767 while (currentDate.getTime() <= endTime) { 22768 dates.push(__WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](currentDate)); 22769 currentDate.setMonth(currentDate.getMonth() + 1); 22770 } 22771 22772 return dates; 22773 } 22774 22775 /***/ 22776 }), 22777 /* 324 */ 22778 /***/ (function (module, __webpack_exports__, __webpack_require__) { 22779 22780 "use strict"; 22781 /* harmony export (immutable) */ 22782 __webpack_exports__["a"] = eachQuarterOfInterval; 22783 /* harmony import */ 22784 var __WEBPACK_IMPORTED_MODULE_0__addQuarters_index_js__ = __webpack_require__(85); 22785 /* harmony import */ 22786 var __WEBPACK_IMPORTED_MODULE_1__startOfQuarter_index_js__ = __webpack_require__(87); 22787 /* harmony import */ 22788 var __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__ = __webpack_require__(1); 22789 /* harmony import */ 22790 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 22791 22792 22793 /** 22794 * @name eachQuarterOfInterval 22795 * @category Interval Helpers 22796 * @summary Return the array of quarters within the specified time interval. 22797 * 22798 * @description 22799 * Return the array of quarters within the specified time interval. 22800 * 22801 * @param {Interval} interval - the interval. See [Interval]{@link docs/types/Interval} 22802 * @returns {Date[]} the array with starts of quarters from the quarter of the interval start to the quarter of the interval end 22803 * @throws {TypeError} 1 argument required 22804 * @throws {RangeError} The start of an interval cannot be after its end 22805 * @throws {RangeError} Date in interval cannot be `Invalid Date` 22806 * 22807 * @example 22808 * // Each quarter within interval 6 February 2014 - 10 August 2014: 22809 * var result = eachQuarterOfInterval({ 22810 * start: new Date(2014, 1, 6), 22811 * end: new Date(2014, 7, 10) 22812 * }) 22813 * //=> [ 22814 * // Wed Jan 01 2014 00:00:00, 22815 * // Tue Apr 01 2014 00:00:00, 22816 * // Tue Jul 01 2014 00:00:00, 22817 * // ] 22818 */ 22819 22820 function eachQuarterOfInterval(dirtyInterval) { 22821 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 22822 var interval = dirtyInterval || {}; 22823 var startDate = __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](interval.start); 22824 var endDate = __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](interval.end); 22825 var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` 22826 22827 if (!(startDate.getTime() <= endTime)) { 22828 throw new RangeError('Invalid interval'); 22829 } 22830 22831 var startDateQuarter = __WEBPACK_IMPORTED_MODULE_1__startOfQuarter_index_js__["a" /* default */](startDate); 22832 var endDateQuarter = __WEBPACK_IMPORTED_MODULE_1__startOfQuarter_index_js__["a" /* default */](endDate); 22833 endTime = endDateQuarter.getTime(); 22834 var quarters = []; 22835 var currentQuarter = startDateQuarter; 22836 22837 while (currentQuarter.getTime() <= endTime) { 22838 quarters.push(__WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](currentQuarter)); 22839 currentQuarter = __WEBPACK_IMPORTED_MODULE_0__addQuarters_index_js__["a" /* default */](currentQuarter, 1); 22840 } 22841 22842 return quarters; 22843 } 22844 22845 /***/ 22846 }), 22847 /* 325 */ 22848 /***/ (function (module, __webpack_exports__, __webpack_require__) { 22849 22850 "use strict"; 22851 /* harmony export (immutable) */ 22852 __webpack_exports__["a"] = eachWeekOfInterval; 22853 /* harmony import */ 22854 var __WEBPACK_IMPORTED_MODULE_0__addWeeks_index_js__ = __webpack_require__(58); 22855 /* harmony import */ 22856 var __WEBPACK_IMPORTED_MODULE_1__startOfWeek_index_js__ = __webpack_require__(22); 22857 /* harmony import */ 22858 var __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__ = __webpack_require__(1); 22859 /* harmony import */ 22860 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 22861 22862 22863 /**
22864 * @name eachWeekOfInterval 22865 * @category Interval Helpers 22866 * @summary Return the array of weeks within the specified time interval. 22867 * 22868 * @description 22869 * Return the array of weeks within the specified time interval. 22870 * 22871 * ### v2.0.0 breaking changes: 22872 * 22873 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 22874 * 22875 * @param {Interval} interval - the interval. See [Interval]{@link docs/types/Interval} 22876 * @param {Object} [options] - an object with options. 22877 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 22878 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 22879 * @returns {Date[]} the array with starts of weeks from the week of the interval start to the week of the interval end 22880 * @throws {TypeError} 1 argument required 22881 * @throws {RangeError} `options.weekStartsOn` must be 0, 1, ..., 6 22882 * @throws {RangeError} The start of an interval cannot be after its end 22883 * @throws {RangeError} Date in interval cannot be `Invalid Date` 22884 * 22885 * @example 22886 * // Each week within interval 6 October 2014 - 23 November 2014: 22887 * var result = eachWeekOfInterval({ 22888 * start: new Date(2014, 9, 6), 22889 * end: new Date(2014, 10, 23) 22890 * }) 22891 * //=> [ 22892 * // Sun Oct 05 2014 00:00:00, 22893 * // Sun Oct 12 2014 00:00:00, 22894 * // Sun Oct 19 2014 00:00:00, 22895 * // Sun Oct 26 2014 00:00:00, 22896 * // Sun Nov 02 2014 00:00:00, 22897 * // Sun Nov 09 2014 00:00:00, 22898 * // Sun Nov 16 2014 00:00:00, 22899 * // Sun Nov 23 2014 00:00:00 22900 * // ] 22901 */ 22902 22903 function eachWeekOfInterval(dirtyInterval, options) { 22904 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 22905 var interval = dirtyInterval || {}; 22906 var startDate = __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](interval.start); 22907 var endDate = __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](interval.end); 22908 var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` 22909 22910 if (!(startDate.getTime() <= endTime)) { 22911 throw new RangeError('Invalid interval'); 22912 } 22913 22914 var startDateWeek = __WEBPACK_IMPORTED_MODULE_1__startOfWeek_index_js__["a" /* default */](startDate, options); 22915 var endDateWeek = __WEBPACK_IMPORTED_MODULE_1__startOfWeek_index_js__["a" /* default */](endDate, options); // Some timezones switch DST at midnight, making start of day unreliable in these timezones, 3pm is a safe bet 22916 22917 startDateWeek.setHours(15); 22918 endDateWeek.setHours(15); 22919 endTime = endDateWeek.getTime(); 22920 var weeks = []; 22921 var currentWeek = startDateWeek; 22922 22923 while (currentWeek.getTime() <= endTime) { 22924 currentWeek.setHours(0); 22925 weeks.push(__WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](currentWeek)); 22926 currentWeek = __WEBPACK_IMPORTED_MODULE_0__addWeeks_index_js__["a" /* default */](currentWeek, 1); 22927 currentWeek.setHours(15); 22928 } 22929 22930 return weeks; 22931 } 22932 22933 /***/ 22934 }), 22935 /* 326 */ 22936 /***/ (function (module, __webpack_exports__, __webpack_require__) { 22937 22938 "use strict"; 22939 /* harmony export (immutable) */ 22940 __webpack_exports__["a"] = eachWeekendOfMonth; 22941 /* harmony import */
22942 var __WEBPACK_IMPORTED_MODULE_0__eachWeekendOfInterval_index_js__ = __webpack_require__(88); 22943 /* harmony import */ 22944 var __WEBPACK_IMPORTED_MODULE_1__startOfMonth_index_js__ = __webpack_require__(62); 22945 /* harmony import */ 22946 var __WEBPACK_IMPORTED_MODULE_2__endOfMonth_index_js__ = __webpack_require__(89); 22947 /* harmony import */ 22948 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 22949 22950 22951 /** 22952 * @name eachWeekendOfMonth 22953 * @category Month Helpers 22954 * @summary List all the Saturdays and Sundays in the given month. 22955 * 22956 * @description 22957 * Get all the Saturdays and Sundays in the given month. 22958 * 22959 * @param {Date|Number} date - the given month 22960 * @returns {Date[]} an array containing all the Saturdays and Sundays 22961 * @throws {TypeError} 1 argument required 22962 * @throws {RangeError} The passed date is invalid 22963 * 22964 * @example 22965 * // Lists all Saturdays and Sundays in the given month 22966 * var result = eachWeekendOfMonth(new Date(2022, 1, 1)) 22967 * //=> [ 22968 * // Sat Feb 05 2022 00:00:00, 22969 * // Sun Feb 06 2022 00:00:00, 22970 * // Sat Feb 12 2022 00:00:00, 22971 * // Sun Feb 13 2022 00:00:00, 22972 * // Sat Feb 19 2022 00:00:00, 22973 * // Sun Feb 20 2022 00:00:00, 22974 * // Sat Feb 26 2022 00:00:00, 22975 * // Sun Feb 27 2022 00:00:00 22976 * // ] 22977 */ 22978 22979 function eachWeekendOfMonth(dirtyDate) { 22980 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 22981 var startDate = __WEBPACK_IMPORTED_MODULE_1__startOfMonth_index_js__["a" /* default */](dirtyDate); 22982 if (isNaN(startDate)) throw new RangeError('The passed date is invalid'); 22983 var endDate = __WEBPACK_IMPORTED_MODULE_2__endOfMonth_index_js__["a" /* default */](dirtyDate); 22984 return __WEBPACK_IMPORTED_MODULE_0__eachWeekendOfInterval_index_js__["a" /* default */]({ 22985 start: startDate, 22986 end: endDate 22987 }); 22988 } 22989 22990 /***/ 22991 }), 22992 /* 327 */ 22993 /***/ (function (module, __webpack_exports__, __webpack_require__) { 22994 22995 "use strict"; 22996 /* harmony export (immutable) */ 22997 __webpack_exports__["a"] = eachWeekendOfYear; 22998 /* harmony import */ 22999 var __WEBPACK_IMPORTED_MODULE_0__eachWeekendOfInterval_index_js__ = __webpack_require__(88); 23000 /* harmony import */ 23001 var __WEBPACK_IMPORTED_MODULE_1__startOfYear_index_js__ = __webpack_require__(90); 23002 /* harmony import */ 23003 var __WEBPACK_IMPORTED_MODULE_2__endOfYear_index_js__ = __webpack_require__(149); 23004 /* harmony import */ 23005 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 23006 23007 23008 /** 23009 * @name eachWeekendOfYear 23010 * @category Year Helpers 23011 * @summary List all the Saturdays and Sundays in the year. 23012 * 23013 * @description 23014 * Get all the Saturdays and Sundays in the year. 23015 * 23016 * @param {Date|Number} date - the given year 23017 * @returns {Date[]} an array containing all the Saturdays and Sundays 23018 * @throws {TypeError} 1 argument required 23019 * @throws {RangeError} The passed date is invalid 23020 * 23021 * @example 23022 * // Lists all Saturdays and Sundays in the year 23023 * var result = eachWeekendOfYear(new Date(2020, 1, 1)) 23024 * //=> [ 23025 * // Sat Jan 03 2020 00:00:00, 23026 * // Sun Jan 04 2020 00:00:00, 23027 * // ... 23028 * // Sun Dec 27 2020 00:00:00 23029 * // ] 23030 * ] 23031 */ 23032 23033 function eachWeekendOfYear(dirtyDate) { 23034 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 23035 var startDate = __WEBPACK_IMPORTED_MODULE_1__startOfYear_index_js__["a" /* default */](dirtyDate); 23036 if (isNaN(startDate)) throw new RangeError('The passed date is invali
vendor: 4,353 bytes, lines 23036-23128
23036d'); 23037 var endDate = __WEBPACK_IMPORTED_MODULE_2__endOfYear_index_js__["a" /* default */](dirtyDate); 23038 return __WEBPACK_IMPORTED_MODULE_0__eachWeekendOfInterval_index_js__["a" /* default */]({ 23039 start: startDate, 23040 end: endDate 23041 }); 23042 } 23043 23044 /***/ 23045 }), 23046 /* 328 */ 23047 /***/ (function (module, __webpack_exports__, __webpack_require__) { 23048 23049 "use strict"; 23050 /* harmony export (immutable) */ 23051 __webpack_exports__["a"] = eachYearOfInterval; 23052 /* harmony import */ 23053 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 23054 /* harmony import */ 23055 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 23056 23057 23058 /** 23059 * @name eachYearOfInterval 23060 * @category Interval Helpers 23061 * @summary Return the array of yearly timestamps within the specified time interval. 23062 * 23063 * @description 23064 * Return the array of yearly timestamps within the specified time interval. 23065 * 23066 * @param {Interval} interval - the interval. See [Interval]{@link docs/types/Interval} 23067 * @returns {Date[]} the array with starts of yearly timestamps from the month of the interval start to the month of the interval end 23068 * @throws {TypeError} 1 argument required 23069 * @throws {RangeError} The start of an interval cannot be after its end 23070 * @throws {RangeError} Date in interval cannot be `Invalid Date` 23071 * 23072 * @example 23073 * // Each year between 6 February 2014 and 10 August 2017: 23074 * var result = eachYearOfInterval({ 23075 * start: new Date(2014, 1, 6), 23076 * end: new Date(2017, 7, 10) 23077 * }) 23078 * //=> [ 23079 * // Wed Jan 01 2014 00:00:00, 23080 * // Thu Jan 01 2015 00:00:00, 23081 * // Fri Jan 01 2016 00:00:00, 23082 * // Sun Jan 01 2017 00:00:00 23083 * // ] 23084 */ 23085 23086 function eachYearOfInterval(dirtyInterval) { 23087 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 23088 var interval = dirtyInterval || {}; 23089 var startDate = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](interval.start); 23090 var endDate = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](interval.end); 23091 var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` 23092 23093 if (!(startDate.getTime() <= endTime)) { 23094 throw new RangeError('Invalid interval'); 23095 } 23096 23097 var dates = []; 23098 var currentDate = startDate; 23099 currentDate.setHours(0, 0, 0, 0); 23100 currentDate.setMonth(0, 1); 23101 23102 while (currentDate.getTime() <= endTime) { 23103 dates.push(__WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](currentDate)); 23104 currentDate.setFullYear(currentDate.getFullYear() + 1); 23105 } 23106 23107 return dates; 23108 } 23109 23110 /***/ 23111 }), 23112 /* 329 */ 23113 /***/ (function (module, __webpack_exports__, __webpack_require__) { 23114 23115 "use strict"; 23116 /* harmony export (immutable) */ 23117 __webpack_exports__["a"] = endOfDecade; 23118 /* harmony import */ 23119 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 23120 /* harmony import */ 23121 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 23122 23123 23124 /** 23125 * @name endOfDecade 23126 * @category Decade Helpers 23127 * @summary Return the end of a decade for the given date. 23128 *
23129 * @description 23130 * Return the end of a decade for the given date. 23131 * 23132 * ### v2.0.0 breaking changes: 23133 * 23134 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 23135 * 23136 * @param {Date|Number} date - the original date 23137 * @returns {Date} the end of a decade 23138 * @param {Object} [options] - an object with options. 23139 * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate} 23140 * @throws {TypeError} 1 argument required 23141 * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2 23142 * 23143 * @example 23144 * // The end of a decade for 12 May 1984 00:00:00: 23145 * var result = endOfDecade(new Date(1984, 4, 12, 00, 00, 00)) 23146 * //=> Dec 31 1989 23:59:59.999 23147 */ 23148 23149 function endOfDecade(dirtyDate) { 23150 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 23151 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 23152 var year = date.getFullYear(); 23153 var decade = 9 + Math.floor(year / 10) * 10; 23154 date.setFullYear(decade, 11, 31); 23155 date.setHours(23, 59, 59, 999); 23156 return date; 23157 } 23158 23159 /***/ 23160 }), 23161 /* 330 */ 23162 /***/ (function (module, __webpack_exports__, __webpack_require__) { 23163 23164 "use strict"; 23165 /* harmony export (immutable) */ 23166 __webpack_exports__["a"] = endOfHour; 23167 /* harmony import */ 23168 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 23169 /* harmony import */ 23170 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 23171 23172 23173 /** 23174 * @name endOfHour 23175 * @category Hour Helpers 23176 * @summary Return the end of an hour for the given date. 23177 * 23178 * @description 23179 * Return the end of an hour for the given date. 23180 * The result will be in the local timezone. 23181 * 23182 * ### v2.0.0 breaking changes: 23183 * 23184 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 23185 * 23186 * @param {Date|Number} date - the original date 23187 * @returns {Date} the end of an hour 23188 * @throws {TypeError} 1 argument required 23189 * 23190 * @example 23191 * // The end of an hour for 2 September 2014 11:55:00: 23192 * var result = endOfHour(new Date(2014, 8, 2, 11, 55)) 23193 * //=> Tue Sep 02 2014 11:59:59.999 23194 */ 23195 23196 function endOfHour(dirtyDate) { 23197 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 23198 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 23199 date.setMinutes(59, 59, 999); 23200 return date; 23201 } 23202 23203 /***/ 23204 }), 23205 /* 331 */ 23206 /***/ (function (module, __webpack_exports__, __webpack_require__) { 23207 23208 "use strict"; 23209 /* harmony export (immutable) */ 23210 __webpack_exports__["a"] = endOfISOWeek; 23211 /* harmony import */ 23212 var __WEBPACK_IMPORTED_MODULE_0__endOfWeek_index_js__ = __webpack_require__(150); 23213 /* harmony import */ 23214 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 23215 23216 23217 /** 23218 * @name endOfISOWeek 23219 * @category ISO Week Helpers 23220 * @summary Return the end of an ISO week for the given date. 23221 *
23222 * @description 23223 * Return the end of an ISO week for the given date. 23224 * The result will be in the local timezone. 23225 * 23226 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 23227 * 23228 * ### v2.0.0 breaking changes: 23229 * 23230 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 23231 * 23232 * @param {Date|Number} date - the original date 23233 * @returns {Date} the end of an ISO week 23234 * @throws {TypeError} 1 argument required 23235 * 23236 * @example 23237 * // The end of an ISO week for 2 September 2014 11:55:00: 23238 * var result = endOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) 23239 * //=> Sun Sep 07 2014 23:59:59.999 23240 */ 23241 23242 function endOfISOWeek(dirtyDate) { 23243 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 23244 return __WEBPACK_IMPORTED_MODULE_0__endOfWeek_index_js__["a" /* default */](dirtyDate, { 23245 weekStartsOn: 1 23246 }); 23247 } 23248 23249 /***/ 23250 }), 23251 /* 332 */ 23252 /***/ (function (module, __webpack_exports__, __webpack_require__) { 23253 23254 "use strict"; 23255 /* harmony export (immutable) */ 23256 __webpack_exports__["a"] = endOfISOWeekYear; 23257 /* harmony import */ 23258 var __WEBPACK_IMPORTED_MODULE_0__getISOWeekYear_index_js__ = __webpack_require__(34); 23259 /* harmony import */ 23260 var __WEBPACK_IMPORTED_MODULE_1__startOfISOWeek_index_js__ = __webpack_require__(25); 23261 /* harmony import */ 23262 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 23263 23264 23265 /** 23266 * @name endOfISOWeekYear 23267 * @category ISO Week-Numbering Year Helpers 23268 * @summary Return the end of an ISO week-numbering year for the given date. 23269 * 23270 * @description 23271 * Return the end of an ISO week-numbering year, 23272 * which always starts 3 days before the year's first Thursday. 23273 * The result will be in the local timezone. 23274 * 23275 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 23276 * 23277 * ### v2.0.0 breaking changes: 23278 * 23279 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 23280 * 23281 * - The function was renamed from `endOfISOYear` to `endOfISOWeekYear`. 23282 * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). 23283 * This change makes the name consistent with 23284 * locale-dependent week-numbering year helpers, e.g., `addWeekYears`. 23285 * 23286 * @param {Date|Number} date - the original date 23287 * @returns {Date} the end of an ISO week-numbering year 23288 * @throws {TypeError} 1 argument required 23289 * 23290 * @example 23291 * // The end of an ISO week-numbering year for 2 July 2005: 23292 * var result = endOfISOWeekYear(new Date(2005, 6, 2)) 23293 * //=> Sun Jan 01 2006 23:59:59.999 23294 */ 23295 23296 function endOfISOWeekYear(dirtyDate) { 23297 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 23298 var year = __WEBPACK_IMPORTED_MODULE_0__getISOWeekYear_index_js__["a" /* default */](dirtyDate); 23299 var fourthOfJanuaryOfNextYear = new Date(0); 23300 fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); 23301 fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); 23302 var date = __WEBPACK_IMPORTED_MODULE_1__startOfISOWeek_index_js__["a" /* default */](fourthOfJanuaryOfNextYear); 23303 date.setMilliseconds(date.getMilliseconds() - 1); 23304 return date; 23305 } 23306 23307 /***/ 23308 }), 23309 /* 333 */ 23310 /***/ (function (module, __webpack_exports__, __webpack_require__) { 23311 23312 "use strict"; 23313 /* harmony export (immutable) */ 23314 __webpack_exports__["a"] = endOfMinute; 23315 /* harmony import */ 23316 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 23317 /* harmony import */ 23318 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 23319 23320 23321 /** 23322 * @name endOfMinute 23323 * @category Minute Helpers 23324 * @summary Return the end of a minute for the given date. 23325 *
23326 * @description 23327 * Return the end of a minute for the given date. 23328 * The result will be in the local timezone. 23329 * 23330 * ### v2.0.0 breaking changes: 23331 * 23332 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 23333 * 23334 * @param {Date|Number} date - the original date 23335 * @returns {Date} the end of a minute 23336 * @throws {TypeError} 1 argument required 23337 * 23338 * @example 23339 * // The end of a minute for 1 December 2014 22:15:45.400: 23340 * var result = endOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400)) 23341 * //=> Mon Dec 01 2014 22:15:59.999 23342 */ 23343 23344 function endOfMinute(dirtyDate) { 23345 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 23346 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 23347 date.setSeconds(59, 999); 23348 return date; 23349 } 23350 23351 /***/ 23352 }), 23353 /* 334 */ 23354 /***/ (function (module, __webpack_exports__, __webpack_require__) { 23355 23356 "use strict"; 23357 /* harmony export (immutable) */ 23358 __webpack_exports__["a"] = endOfQuarter; 23359 /* harmony import */ 23360 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 23361 /* harmony import */ 23362 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 23363 23364 23365 /** 23366 * @name endOfQuarter 23367 * @category Quarter Helpers 23368 * @summary Return the end of a year quarter for the given date. 23369 * 23370 * @description 23371 * Return the end of a year quarter for the given date. 23372 * The result will be in the local timezone. 23373 * 23374 * ### v2.0.0 breaking changes: 23375 * 23376 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 23377 * 23378 * @param {Date|Number} date - the original date 23379 * @returns {Date} the end of a quarter 23380 * @throws {TypeError} 1 argument required 23381 * 23382 * @example 23383 * // The end of a quarter for 2 September 2014 11:55:00: 23384 * var result = endOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) 23385 * //=> Tue Sep 30 2014 23:59:59.999 23386 */ 23387 23388 function endOfQuarter(dirtyDate) { 23389 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 23390 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 23391 var currentMonth = date.getMonth(); 23392 var month = currentMonth - currentMonth % 3 + 3; 23393 date.setMonth(month, 0); 23394 date.setHours(23, 59, 59, 999); 23395 return date; 23396 } 23397 23398 /***/ 23399 }), 23400 /* 335 */ 23401 /***/ (function (module, __webpack_exports__, __webpack_require__) { 23402 23403 "use strict"; 23404 /* harmony export (immutable) */ 23405 __webpack_exports__["a"] = endOfSecond; 23406 /* harmony import */ 23407 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 23408 /* harmony import */ 23409 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 23410 23411 23412 /** 23413 * @name endOfSecond 23414 * @category Second Helpers 23415 * @summary Return the end of a second for the given date. 23416 *
23417 * @description 23418 * Return the end of a second for the given date. 23419 * The result will be in the local timezone. 23420 * 23421 * ### v2.0.0 breaking changes: 23422 * 23423 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 23424 * 23425 * @param {Date|Number} date - the original date 23426 * @returns {Date} the end of a second 23427 * @throws {TypeError} 1 argument required 23428 * 23429 * @example 23430 * // The end of a second for 1 December 2014 22:15:45.400: 23431 * var result = endOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400)) 23432 * //=> Mon Dec 01 2014 22:15:45.999 23433 */ 23434 23435 function endOfSecond(dirtyDate) { 23436 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 23437 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 23438 date.setMilliseconds(999); 23439 return date; 23440 } 23441 23442 /***/ 23443 }), 23444 /* 336 */ 23445 /***/ (function (module, __webpack_exports__, __webpack_require__) { 23446 23447 "use strict"; 23448 /* harmony export (immutable) */ 23449 __webpack_exports__["a"] = endOfToday; 23450 /* harmony import */ 23451 var __WEBPACK_IMPORTED_MODULE_0__endOfDay_index_js__ = __webpack_require__(91); 23452 23453 /** 23454 * @name endOfToday 23455 * @category Day Helpers 23456 * @summary Return the end of today. 23457 * @pure false 23458 * 23459 * @description 23460 * Return the end of today. 23461 * 23462 * > â ï¸ Please note that this function is not present in the FP submodule as 23463 * > it uses `Date.now()` internally hence impure and can't be safely curried. 23464 * 23465 * ### v2.0.0 breaking changes: 23466 * 23467 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 23468 * 23469 * @returns {Date} the end of today 23470 * 23471 * @example 23472 * // If today is 6 October 2014: 23473 * var result = endOfToday() 23474 * //=> Mon Oct 6 2014 23:59:59.999 23475 */ 23476 23477 function endOfToday() { 23478 return __WEBPACK_IMPORTED_MODULE_0__endOfDay_index_js__["a" /* default */](Date.now()); 23479 } 23480 23481 /***/ 23482 }), 23483 /* 337 */ 23484 /***/ (function (module, __webpack_exports__, __webpack_require__) { 23485 23486 "use strict"; 23487 /* harmony export (immutable) */ 23488 __webpack_exports__["a"] = endOfTomorrow; 23489 23490 /** 23491 * @name endOfTomorrow 23492 * @category Day Helpers 23493 * @summary Return the end of tomorrow. 23494 * @pure false 23495 * 23496 * @description 23497 * Return the end of tomorrow. 23498 * 23499 * > â ï¸ Please note that this function is not present in the FP submodule as 23500 * > it uses `new Date()` internally hence impure and can't be safely curried. 23501 * 23502 * ### v2.0.0 breaking changes: 23503 * 23504 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 23505 * 23506 * @returns {Date} the end of tomorrow 23507 * 23508 * @example 23509 * // If today is 6 October 2014: 23510 * var result = endOfTomorrow() 23511 * //=> Tue Oct 7 2014 23:59:59.999 23512 */ 23513 function endOfTomorrow() { 23514 var now = new Date(); 23515 var year = now.getFullYear();
vendor: 51,764 bytes, lines 23516-24596
23516 var month = now.getMonth(); 23517 var day = now.getDate(); 23518 var date = new Date(0); 23519 date.setFullYear(year, month, day + 1); 23520 date.setHours(23, 59, 59, 999); 23521 return date; 23522 } 23523 23524 /***/ 23525 }), 23526 /* 338 */ 23527 /***/ (function (module, __webpack_exports__, __webpack_require__) { 23528 23529 "use strict"; 23530 /* harmony export (immutable) */ 23531 __webpack_exports__["a"] = endOfYesterday; 23532 23533 /** 23534 * @name endOfYesterday 23535 * @category Day Helpers 23536 * @summary Return the end of yesterday. 23537 * @pure false 23538 * 23539 * @description 23540 * Return the end of yesterday. 23541 * 23542 * > â ï¸ Please note that this function is not present in the FP submodule as 23543 * > it uses `new Date()` internally hence impure and can't be safely curried. 23544 * 23545 * ### v2.0.0 breaking changes: 23546 * 23547 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 23548 * 23549 * @returns {Date} the end of yesterday 23550 * 23551 * @example 23552 * // If today is 6 October 2014: 23553 * var result = endOfYesterday() 23554 * //=> Sun Oct 5 2014 23:59:59.999 23555 */ 23556 function endOfYesterday() { 23557 var now = new Date(); 23558 var year = now.getFullYear(); 23559 var month = now.getMonth(); 23560 var day = now.getDate(); 23561 var date = new Date(0); 23562 date.setFullYear(year, month, day - 1); 23563 date.setHours(23, 59, 59, 999); 23564 return date; 23565 } 23566 23567 /***/ 23568 }), 23569 /* 339 */ 23570 /***/ (function (module, __webpack_exports__, __webpack_require__) { 23571 23572 "use strict"; 23573 /* harmony import */ 23574 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 23575 23576 var dateFormats = { 23577 full: 'EEEE, MMMM do, y', 23578 long: 'MMMM do, y', 23579 medium: 'MMM d, y', 23580 short: 'MM/dd/yyyy' 23581 }; 23582 var timeFormats = { 23583 full: 'h:mm:ss a zzzz', 23584 long: 'h:mm:ss a z', 23585 medium: 'h:mm:ss a', 23586 short: 'h:mm a' 23587 }; 23588 var dateTimeFormats = { 23589 full: "{{date}} 'at' {{time}}", 23590 long: "{{date}} 'at' {{time}}", 23591 medium: '{{date}}, {{time}}', 23592 short: '{{date}}, {{time}}' 23593 }; 23594 var formatLong = { 23595 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 23596 formats: dateFormats, 23597 defaultWidth: 'full' 23598 }), 23599 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 23600 formats: timeFormats, 23601 defaultWidth: 'full' 23602 }), 23603 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 23604 formats: dateTimeFormats, 23605 defaultWidth: 'full' 23606 }) 23607 }; 23608 /* harmony default export */ 23609 __webpack_exports__["a"] = (formatLong); 23610 23611 /***/ 23612 }), 23613 /* 340 */ 23614 /***/ (function (module, __webpack_exports__, __webpack_require__) { 23615 23616 "use strict"; 23617 /* harmony import */ 23618 var __WEBPACK_IMPORTED_MODULE_0__lightFormatters_index_js__ = __webpack_require__(152); 23619 /* harmony import */ 23620 var __WEBPACK_IMPORTED_MODULE_1__lib_getUTCDayOfYear_index_js__ = __webpack_require__(341); 23621 /* harmony import */ 23622 var __WEBPACK_IMPORTED_MODULE_2__lib_getUTCISOWeek_index_js__ = __webpack_require__(153); 23623 /* harmony import */ 23624 var __WEBPACK_IMPORTED_MODULE_3__lib_getUTCISOWeekYear_index_js__ = __webpack_require__(154); 23625 /* harmony import */ 23626 var __WEBPACK_IMPORTED_MODULE_4__lib_getUTCWeek_index_js__ = __webpack_require__(155); 23627 /* harmony import */ 23628 var __WEBPACK_IMPORTED_MODULE_5__lib_getUTCWeekYear_index_js__ = __webpack_require__(92); 23629 /* harmony import */ 23630 var __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__ = __webpack_require__(38); 23631 23632 23633 var dayPeriodEnum = { 23634 am: 'am', 23635 pm: 'pm', 23636 midnight: 'midnight', 23637 noon: 'noon', 23638 morning: 'morning', 23639 afternoon: 'afternoon', 23640 evening: 'evening', 23641 night: 'night' 23642 /* 23643 * | | Unit | | Unit | 23644 * |-----|--------------------------------|-----|--------------------------------| 23645 * | a | AM, PM | A* | Milliseconds in day | 23646 * | b | AM, PM, noon, midnight | B | Flexible day period | 23647 * | c | Stand-alone local day of week | C* | Localized hour w/ day period | 23648 * | d | Day of month | D | Day of year | 23649 * | e | Local day of week | E | Day of week | 23650 * | f | | F* | Day of week in month | 23651 * | g* | Modified Julian day | G | Era | 23652 * | h | Hour [1-12] | H | Hour [0-23] | 23653 * | i! | ISO day of week | I! | ISO week of year | 23654 * | j* | Localized hour w/ day period | J* | Localized hour w/o day period | 23655 * | k | Hour [1-24] | K | Hour [0-11] | 23656 * | l* | (deprecated) | L | Stand-alone month | 23657 * | m | Minute | M | Month | 23658 * | n | | N | | 23659 * | o! | Ordinal number modifier | O | Timezone (GMT) | 23660 * | p! | Long localized time | P! | Long localized date | 23661 * | q | Stand-alone quarter | Q | Quarter | 23662 * | r* | Related Gregorian year | R! | ISO week-numbering year | 23663 * | s | Second | S | Fraction of second | 23664 * | t! | Seconds timestamp | T! | Milliseconds timestamp | 23665 * | u | Extended year | U* | Cyclic year | 23666 * | v* | Timezone (generic non-locat.) | V* | Timezone (location) | 23667 * | w | Local week of year | W* | Week of month | 23668 * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) | 23669 * | y | Year (abs) | Y | Local week-numbering year | 23670 * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) | 23671 * 23672 * Letters marked by * are not implemented but reserved by Unicode standard. 23673 * 23674 * Letters marked by ! are non-standard, but implemented by date-fns: 23675 * - `o` modifies the previous token to turn it into an ordinal (see `format` docs) 23676 * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days, 23677 * i.e. 7 for Sunday, 1 for Monday, etc. 23678 * - `I` is ISO week of year, as opposed to `w` which is local week of year. 23679 * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year. 23680 * `R` is supposed to be used in conjunction with `I` and `i` 23681 * for universal ISO week-numbering date, whereas 23682 * `Y` is supposed to be used in conjunction with `w` and `e` 23683 * for week-numbering date specific to the locale. 23684 * - `P` is long localized date format 23685 * - `p` is long localized time format 23686 */ 23687 23688 }; 23689 var formatters = { 23690 // Era 23691 G: function (date, token, localize) { 23692 var era = date.getUTCFullYear() > 0 ? 1 : 0; 23693 23694 switch (token) { 23695 // AD, BC 23696 case 'G': 23697 case 'GG': 23698 case 'GGG': 23699 return localize.era(era, { 23700 width: 'abbreviated' 23701 }); 23702 // A, B 23703 23704 case 'GGGGG': 23705 return localize.era(era, { 23706 width: 'narrow' 23707 }); 23708 // Anno Domini, Before Christ 23709 23710 case 'GGGG': 23711 default: 23712 return localize.era(era, { 23713 width: 'wide' 23714 }); 23715 } 23716 }, 23717 // Year 23718 y: function (date, token, localize) { 23719 // Ordinal number 23720 if (token === 'yo') { 23721 var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript) 23722 23723 var year = signedYear > 0 ? signedYear : 1 - signedYear; 23724 return localize.ordinalNumber(year, { 23725 unit: 'year' 23726 }); 23727 } 23728 23729 return __WEBPACK_IMPORTED_MODULE_0__lightFormatters_index_js__["a" /* default */].y(date, token); 23730 }, 23731 // Local week-numbering year 23732 Y: function (date, token, localize, options) { 23733 var signedWeekYear = __WEBPACK_IMPORTED_MODULE_5__lib_getUTCWeekYear_index_js__["a" /* default */](date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript) 23734 23735 var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year 23736 23737 if (token === 'YY') { 23738 var twoDigitYear = weekYear % 100; 23739 return __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](twoDigitYear, 2); 23740 } // Ordinal number 23741 23742 23743 if (token === 'Yo') { 23744 return localize.ordinalNumber(weekYear, { 23745 unit: 'year' 23746 }); 23747 } // Padding 23748 23749 23750 return __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](weekYear, token.length); 23751 }, 23752 // ISO week-numbering year 23753 R: function (date, token) { 23754 var isoWeekYear = __WEBPACK_IMPORTED_MODULE_3__lib_getUTCISOWeekYear_index_js__["a" /* default */](date); // Padding 23755 23756 return __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](isoWeekYear, token.length); 23757 }, 23758 // Extended year. This is a single number designating the year of this calendar system. 23759 // The main difference between `y` and `u` localizers are B.C. years: 23760 // | Year | `y` | `u` | 23761 // |------|-----|-----| 23762 // | AC 1 | 1 | 1 | 23763 // | BC 1 | 1 | 0 | 23764 // | BC 2 | 2 | -1 | 23765 // Also `yy` always returns the last two digits of a year, 23766 // while `uu` pads single digit years to 2 characters and returns other years unchanged. 23767 u: function (date, token) { 23768 var year = date.getUTCFullYear(); 23769 return __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](year, token.length); 23770 }, 23771 // Quarter 23772 Q: function (date, token, localize) { 23773 var quarter = Math.ceil((date.getUTCMonth() + 1) / 3); 23774 23775 switch (token) { 23776 // 1, 2, 3, 4 23777 case 'Q': 23778 return String(quarter); 23779 // 01, 02, 03, 04 23780 23781 case 'QQ': 23782 return __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](quarter, 2); 23783 // 1st, 2nd, 3rd, 4th 23784 23785 case 'Qo': 23786 return localize.ordinalNumber(quarter, { 23787 unit: 'quarter' 23788 }); 23789 // Q1, Q2, Q3, Q4 23790 23791 case 'QQQ': 23792 return localize.quarter(quarter, { 23793 width: 'abbreviated', 23794 context: 'formatting' 23795 }); 23796 // 1, 2, 3, 4 (narrow quarter; could be not numerical) 23797 23798 case 'QQQQQ': 23799 return localize.quarter(quarter, { 23800 width: 'narrow', 23801 context: 'formatting' 23802 }); 23803 // 1st quarter, 2nd quarter, ... 23804 23805 case 'QQQQ': 23806 default: 23807 return localize.quarter(quarter, { 23808 width: 'wide', 23809 context: 'formatting' 23810 }); 23811 } 23812 }, 23813 // Stand-alone quarter 23814 q: function (date, token, localize) { 23815 var quarter = Math.ceil((date.getUTCMonth() + 1) / 3); 23816 23817 switch (token) { 23818 // 1, 2, 3, 4 23819 case 'q': 23820 return String(quarter); 23821 // 01, 02, 03, 04 23822 23823 case 'qq': 23824 return __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](quarter, 2); 23825 // 1st, 2nd, 3rd, 4th 23826 23827 case 'qo': 23828 return localize.ordinalNumber(quarter, { 23829 unit: 'quarter' 23830 }); 23831 // Q1, Q2, Q3, Q4 23832 23833 case 'qqq': 23834 return localize.quarter(quarter, { 23835 width: 'abbreviated', 23836 context: 'standalone' 23837 }); 23838 // 1, 2, 3, 4 (narrow quarter; could be not numerical) 23839 23840 case 'qqqqq': 23841 return localize.quarter(quarter, { 23842 width: 'narrow', 23843 context: 'standalone' 23844 }); 23845 // 1st quarter, 2nd quarter, ... 23846 23847 case 'qqqq': 23848 default: 23849 return localize.quarter(quarter, { 23850 width: 'wide', 23851 context: 'standalone' 23852 }); 23853 } 23854 }, 23855 // Month 23856 M: function (date, token, localize) { 23857 var month = date.getUTCMonth(); 23858 23859 switch (token) { 23860 case 'M': 23861 case 'MM': 23862 return __WEBPACK_IMPORTED_MODULE_0__lightFormatters_index_js__["a" /* default */].M(date, token); 23863 // 1st, 2nd, ..., 12th 23864 23865 case 'Mo': 23866 return localize.ordinalNumber(month + 1, { 23867 unit: 'month' 23868 }); 23869 // Jan, Feb, ..., Dec 23870 23871 case 'MMM': 23872 return localize.month(month, { 23873 width: 'abbreviated', 23874 context: 'formatting' 23875 }); 23876 // J, F, ..., D 23877 23878 case 'MMMMM': 23879 return localize.month(month, { 23880 width: 'narrow', 23881 context: 'formatting' 23882 }); 23883 // January, February, ..., December 23884 23885 case 'MMMM': 23886 default: 23887 return localize.month(month, { 23888 width: 'wide', 23889 context: 'formatting' 23890 }); 23891 } 23892 }, 23893 // Stand-alone month 23894 L: function (date, token, localize) { 23895 var month = date.getUTCMonth(); 23896 23897 switch (token) { 23898 // 1, 2, ..., 12 23899 case 'L': 23900 return String(month + 1); 23901 // 01, 02, ..., 12 23902 23903 case 'LL': 23904 return __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](month + 1, 2); 23905 // 1st, 2nd, ..., 12th 23906 23907 case 'Lo': 23908 return localize.ordinalNumber(month + 1, { 23909 unit: 'month' 23910 }); 23911 // Jan, Feb, ..., Dec 23912 23913 case 'LLL': 23914 return localize.month(month, { 23915 width: 'abbreviated', 23916 context: 'standalone' 23917 }); 23918 // J, F, ..., D 23919 23920 case 'LLLLL': 23921 return localize.month(month, { 23922 width: 'narrow', 23923 context: 'standalone' 23924 }); 23925 // January, February, ..., December 23926 23927 case 'LLLL': 23928 default: 23929 return localize.month(month, { 23930 width: 'wide', 23931 context: 'standalone' 23932 }); 23933 } 23934 }, 23935 // Local week of year 23936 w: function (date, token, localize, options) { 23937 var week = __WEBPACK_IMPORTED_MODULE_4__lib_getUTCWeek_index_js__["a" /* default */](date, options); 23938 23939 if (token === 'wo') { 23940 return localize.ordinalNumber(week, { 23941 unit: 'week' 23942 }); 23943 } 23944 23945 return __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](week, token.length); 23946 }, 23947 // ISO week of year 23948 I: function (date, token, localize) { 23949 var isoWeek = __WEBPACK_IMPORTED_MODULE_2__lib_getUTCISOWeek_index_js__["a" /* default */](date); 23950 23951 if (token === 'Io') { 23952 return localize.ordinalNumber(isoWeek, { 23953 unit: 'week' 23954 }); 23955 } 23956 23957 return __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](isoWeek, token.length); 23958 }, 23959 // Day of the month 23960 d: function (date, token, localize) { 23961 if (token === 'do') { 23962 return localize.ordinalNumber(date.getUTCDate(), { 23963 unit: 'date' 23964 }); 23965 } 23966 23967 return __WEBPACK_IMPORTED_MODULE_0__lightFormatters_index_js__["a" /* default */].d(date, token); 23968 }, 23969 // Day of year 23970 D: function (date, token, localize) { 23971 var dayOfYear = __WEBPACK_IMPORTED_MODULE_1__lib_getUTCDayOfYear_index_js__["a" /* default */](date); 23972 23973 if (token === 'Do') { 23974 return localize.ordinalNumber(dayOfYear, { 23975 unit: 'dayOfYear' 23976 }); 23977 } 23978 23979 return __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](dayOfYear, token.length); 23980 }, 23981 // Day of week 23982 E: function (date, token, localize) { 23983 var dayOfWeek = date.getUTCDay(); 23984 23985 switch (token) { 23986 // Tue 23987 case 'E': 23988 case 'EE': 23989 case 'EEE': 23990 return localize.day(dayOfWeek, { 23991 width: 'abbreviated', 23992 context: 'formatting' 23993 }); 23994 // T 23995 23996 case 'EEEEE': 23997 return localize.day(dayOfWeek, { 23998 width: 'narrow', 23999 context: 'formatting' 24000 }); 24001 // Tu 24002 24003 case 'EEEEEE': 24004 return localize.day(dayOfWeek, { 24005 width: 'short', 24006 context: 'formatting' 24007 }); 24008 // Tuesday 24009 24010 case 'EEEE': 24011 default: 24012 return localize.day(dayOfWeek, { 24013 width: 'wide', 24014 context: 'formatting' 24015 }); 24016 } 24017 }, 24018 // Local day of week 24019 e: function (date, token, localize, options) { 24020 var dayOfWeek = date.getUTCDay(); 24021 var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; 24022 24023 switch (token) { 24024 // Numerical value (Nth day of week with current locale or weekStartsOn) 24025 case 'e': 24026 return String(localDayOfWeek); 24027 // Padded numerical value 24028 24029 case 'ee': 24030 return __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](localDayOfWeek, 2); 24031 // 1st, 2nd, ..., 7th 24032 24033 case 'eo': 24034 return localize.ordinalNumber(localDayOfWeek, { 24035 unit: 'day' 24036 }); 24037 24038 case 'eee': 24039 return localize.day(dayOfWeek, { 24040 width: 'abbreviated', 24041 context: 'formatting' 24042 }); 24043 // T 24044 24045 case 'eeeee': 24046 return localize.day(dayOfWeek, { 24047 width: 'narrow', 24048 context: 'formatting' 24049 }); 24050 // Tu 24051 24052 case 'eeeeee': 24053 return localize.day(dayOfWeek, { 24054 width: 'short', 24055 context: 'formatting' 24056 }); 24057 // Tuesday 24058 24059 case 'eeee': 24060 default: 24061 return localize.day(dayOfWeek, { 24062 width: 'wide', 24063 context: 'formatting' 24064 }); 24065 } 24066 }, 24067 // Stand-alone local day of week 24068 c: function (date, token, localize, options) { 24069 var dayOfWeek = date.getUTCDay(); 24070 var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; 24071 24072 switch (token) { 24073 // Numerical value (same as in `e`) 24074 case 'c': 24075 return String(localDayOfWeek); 24076 // Padded numerical value 24077 24078 case 'cc': 24079 return __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](localDayOfWeek, token.length); 24080 // 1st, 2nd, ..., 7th 24081 24082 case 'co': 24083 return localize.ordinalNumber(localDayOfWeek, { 24084 unit: 'day' 24085 }); 24086 24087 case 'ccc': 24088 return localize.day(dayOfWeek, { 24089 width: 'abbreviated', 24090 context: 'standalone' 24091 }); 24092 // T 24093 24094 case 'ccccc': 24095 return localize.day(dayOfWeek, { 24096 width: 'narrow', 24097 context: 'standalone' 24098 }); 24099 // Tu 24100 24101 case 'cccccc': 24102 return localize.day(dayOfWeek, { 24103 width: 'short', 24104 context: 'standalone' 24105 }); 24106 // Tuesday 24107 24108 case 'cccc': 24109 default: 24110 return localize.day(dayOfWeek, { 24111 width: 'wide', 24112 context: 'standalone' 24113 }); 24114 } 24115 }, 24116 // ISO day of week 24117 i: function (date, token, localize) { 24118 var dayOfWeek = date.getUTCDay(); 24119 var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek; 24120 24121 switch (token) { 24122 // 2 24123 case 'i': 24124 return String(isoDayOfWeek); 24125 // 02 24126 24127 case 'ii': 24128 return __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](isoDayOfWeek, token.length); 24129 // 2nd 24130 24131 case 'io': 24132 return localize.ordinalNumber(isoDayOfWeek, { 24133 unit: 'day' 24134 }); 24135 // Tue 24136 24137 case 'iii': 24138 return localize.day(dayOfWeek, { 24139 width: 'abbreviated', 24140 context: 'formatting' 24141 }); 24142 // T 24143 24144 case 'iiiii': 24145 return localize.day(dayOfWeek, { 24146 width: 'narrow', 24147 context: 'formatting' 24148 }); 24149 // Tu 24150 24151 case 'iiiiii': 24152 return localize.day(dayOfWeek, { 24153 width: 'short', 24154 context: 'formatting' 24155 }); 24156 // Tuesday 24157 24158 case 'iiii': 24159 default: 24160 return localize.day(dayOfWeek, { 24161 width: 'wide', 24162 context: 'formatting' 24163 }); 24164 } 24165 }, 24166 // AM or PM 24167 a: function (date, token, localize) { 24168 var hours = date.getUTCHours(); 24169 var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am'; 24170 24171 switch (token) { 24172 case 'a': 24173 case 'aa': 24174 case 'aaa': 24175 return localize.dayPeriod(dayPeriodEnumValue, { 24176 width: 'abbreviated', 24177 context: 'formatting' 24178 }); 24179 24180 case 'aaaaa': 24181 return localize.dayPeriod(dayPeriodEnumValue, { 24182 width: 'narrow', 24183 context: 'formatting' 24184 }); 24185 24186 case 'aaaa': 24187 default: 24188 return localize.dayPeriod(dayPeriodEnumValue, { 24189 width: 'wide', 24190 context: 'formatting' 24191 }); 24192 } 24193 }, 24194 // AM, PM, midnight, noon 24195 b: function (date, token, localize) { 24196 var hours = date.getUTCHours(); 24197 var dayPeriodEnumValue; 24198 24199 if (hours === 12) { 24200 dayPeriodEnumValue = dayPeriodEnum.noon; 24201 } else if (hours === 0) { 24202 dayPeriodEnumValue = dayPeriodEnum.midnight; 24203 } else { 24204 dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am'; 24205 } 24206 24207 switch (token) { 24208 case 'b': 24209 case 'bb': 24210 case 'bbb': 24211 return localize.dayPeriod(dayPeriodEnumValue, { 24212 width: 'abbreviated', 24213 context: 'formatting' 24214 }); 24215 24216 case 'bbbbb': 24217 return localize.dayPeriod(dayPeriodEnumValue, { 24218 width: 'narrow', 24219 context: 'formatting' 24220 }); 24221 24222 case 'bbbb': 24223 default: 24224 return localize.dayPeriod(dayPeriodEnumValue, { 24225 width: 'wide', 24226 context: 'formatting' 24227 }); 24228 } 24229 }, 24230 // in the morning, in the afternoon, in the evening, at night 24231 B: function (date, token, localize) { 24232 var hours = date.getUTCHours(); 24233 var dayPeriodEnumValue; 24234 24235 if (hours >= 17) { 24236 dayPeriodEnumValue = dayPeriodEnum.evening; 24237 } else if (hours >= 12) { 24238 dayPeriodEnumValue = dayPeriodEnum.afternoon; 24239 } else if (hours >= 4) { 24240 dayPeriodEnumValue = dayPeriodEnum.morning; 24241 } else { 24242 dayPeriodEnumValue = dayPeriodEnum.night; 24243 } 24244 24245 switch (token) { 24246 case 'B': 24247 case 'BB': 24248 case 'BBB': 24249 return localize.dayPeriod(dayPeriodEnumValue, { 24250 width: 'abbreviated', 24251 context: 'formatting' 24252 }); 24253 24254 case 'BBBBB': 24255 return localize.dayPeriod(dayPeriodEnumValue, { 24256 width: 'narrow', 24257 context: 'formatting' 24258 }); 24259 24260 case 'BBBB': 24261 default: 24262 return localize.dayPeriod(dayPeriodEnumValue, { 24263 width: 'wide', 24264 context: 'formatting' 24265 }); 24266 } 24267 }, 24268 // Hour [1-12] 24269 h: function (date, token, localize) { 24270 if (token === 'ho') { 24271 var hours = date.getUTCHours() % 12; 24272 if (hours === 0) hours = 12; 24273 return localize.ordinalNumber(hours, { 24274 unit: 'hour' 24275 }); 24276 } 24277 24278 return __WEBPACK_IMPORTED_MODULE_0__lightFormatters_index_js__["a" /* default */].h(date, token); 24279 }, 24280 // Hour [0-23] 24281 H: function (date, token, localize) { 24282 if (token === 'Ho') { 24283 return localize.ordinalNumber(date.getUTCHours(), { 24284 unit: 'hour' 24285 }); 24286 } 24287 24288 return __WEBPACK_IMPORTED_MODULE_0__lightFormatters_index_js__["a" /* default */].H(date, token); 24289 }, 24290 // Hour [0-11] 24291 K: function (date, token, localize) { 24292 var hours = date.getUTCHours() % 12; 24293 24294 if (token === 'Ko') { 24295 return localize.ordinalNumber(hours, { 24296 unit: 'hour' 24297 }); 24298 } 24299 24300 return __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](hours, token.length); 24301 }, 24302 // Hour [1-24] 24303 k: function (date, token, localize) { 24304 var hours = date.getUTCHours(); 24305 if (hours === 0) hours = 24; 24306 24307 if (token === 'ko') { 24308 return localize.ordinalNumber(hours, { 24309 unit: 'hour' 24310 }); 24311 } 24312 24313 return __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](hours, token.length); 24314 }, 24315 // Minute 24316 m: function (date, token, localize) { 24317 if (token === 'mo') { 24318 return localize.ordinalNumber(date.getUTCMinutes(), { 24319 unit: 'minute' 24320 }); 24321 } 24322 24323 return __WEBPACK_IMPORTED_MODULE_0__lightFormatters_index_js__["a" /* default */].m(date, token); 24324 }, 24325 // Second 24326 s: function (date, token, localize) { 24327 if (token === 'so') { 24328 return localize.ordinalNumber(date.getUTCSeconds(), { 24329 unit: 'second' 24330 }); 24331 } 24332 24333 return __WEBPACK_IMPORTED_MODULE_0__lightFormatters_index_js__["a" /* default */].s(date, token); 24334 }, 24335 // Fraction of second 24336 S: function (date, token) { 24337 return __WEBPACK_IMPORTED_MODULE_0__lightFormatters_index_js__["a" /* default */].S(date, token); 24338 }, 24339 // Timezone (ISO-8601. If offset is 0, output is always `'Z'`) 24340 X: function (date, token, _localize, options) { 24341 var originalDate = options._originalDate || date; 24342 var timezoneOffset = originalDate.getTimezoneOffset(); 24343 24344 if (timezoneOffset === 0) { 24345 return 'Z'; 24346 } 24347 24348 switch (token) { 24349 // Hours and optional minutes 24350 case 'X': 24351 return formatTimezoneWithOptionalMinutes(timezoneOffset); 24352 // Hours, minutes and optional seconds without `:` delimiter 24353 // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets 24354 // so this token always has the same output as `XX` 24355 24356 case 'XXXX': 24357 case 'XX': 24358 // Hours and minutes without `:` delimiter 24359 return formatTimezone(timezoneOffset); 24360 // Hours, minutes and optional seconds with `:` delimiter 24361 // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets 24362 // so this token always has the same output as `XXX` 24363 24364 case 'XXXXX': 24365 case 'XXX': // Hours and minutes with `:` delimiter 24366 24367 default: 24368 return formatTimezone(timezoneOffset, ':'); 24369 } 24370 }, 24371 // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent) 24372 x: function (date, token, _localize, options) { 24373 var originalDate = options._originalDate || date; 24374 var timezoneOffset = originalDate.getTimezoneOffset(); 24375 24376 switch (token) { 24377 // Hours and optional minutes 24378 case 'x': 24379 return formatTimezoneWithOptionalMinutes(timezoneOffset); 24380 // Hours, minutes and optional seconds without `:` delimiter 24381 // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets 24382 // so this token always has the same output as `xx` 24383 24384 case 'xxxx': 24385 case 'xx': 24386 // Hours and minutes without `:` delimiter 24387 return formatTimezone(timezoneOffset); 24388 // Hours, minutes and optional seconds with `:` delimiter 24389 // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets 24390 // so this token always has the same output as `xxx` 24391 24392 case 'xxxxx': 24393 case 'xxx': // Hours and minutes with `:` delimiter 24394 24395 default: 24396 return formatTimezone(timezoneOffset, ':'); 24397 } 24398 }, 24399 // Timezone (GMT) 24400 O: function (date, token, _localize, options) { 24401 var originalDate = options._originalDate || date; 24402 var timezoneOffset = originalDate.getTimezoneOffset(); 24403 24404 switch (token) { 24405 // Short 24406 case 'O': 24407 case 'OO': 24408 case 'OOO': 24409 return 'GMT' + formatTimezoneShort(timezoneOffset, ':'); 24410 // Long 24411 24412 case 'OOOO': 24413 default: 24414 return 'GMT' + formatTimezone(timezoneOffset, ':'); 24415 } 24416 }, 24417 // Timezone (specific non-location) 24418 z: function (date, token, _localize, options) { 24419 var originalDate = options._originalDate || date; 24420 var timezoneOffset = originalDate.getTimezoneOffset(); 24421 24422 switch (token) { 24423 // Short 24424 case 'z': 24425 case 'zz': 24426 case 'zzz': 24427 return 'GMT' + formatTimezoneShort(timezoneOffset, ':'); 24428 // Long 24429 24430 case 'zzzz': 24431 default: 24432 return 'GMT' + formatTimezone(timezoneOffset, ':'); 24433 } 24434 }, 24435 // Seconds timestamp 24436 t: function (date, token, _localize, options) { 24437 var originalDate = options._originalDate || date; 24438 var timestamp = Math.floor(originalDate.getTime() / 1000); 24439 return __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](timestamp, token.length); 24440 }, 24441 // Milliseconds timestamp 24442 T: function (date, token, _localize, options) { 24443 var originalDate = options._originalDate || date; 24444 var timestamp = originalDate.getTime(); 24445 return __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](timestamp, token.length); 24446 } 24447 }; 24448 24449 function formatTimezoneShort(offset, dirtyDelimiter) { 24450 var sign = offset > 0 ? '-' : '+'; 24451 var absOffset = Math.abs(offset); 24452 var hours = Math.floor(absOffset / 60); 24453 var minutes = absOffset % 60; 24454 24455 if (minutes === 0) { 24456 return sign + String(hours); 24457 } 24458 24459 var delimiter = dirtyDelimiter || ''; 24460 return sign + String(hours) + delimiter + __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](minutes, 2); 24461 } 24462 24463 function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) { 24464 if (offset % 60 === 0) { 24465 var sign = offset > 0 ? '-' : '+'; 24466 return sign + __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](Math.abs(offset) / 60, 2); 24467 } 24468 24469 return formatTimezone(offset, dirtyDelimiter); 24470 } 24471 24472 function formatTimezone(offset, dirtyDelimiter) { 24473 var delimiter = dirtyDelimiter || ''; 24474 var sign = offset > 0 ? '-' : '+'; 24475 var absOffset = Math.abs(offset); 24476 var hours = __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](Math.floor(absOffset / 60), 2); 24477 var minutes = __WEBPACK_IMPORTED_MODULE_6__addLeadingZeros_index_js__["a" /* default */](absOffset % 60, 2); 24478 return sign + hours + delimiter + minutes; 24479 } 24480 24481 /* harmony default export */ 24482 __webpack_exports__["a"] = (formatters); 24483 24484 /***/ 24485 }), 24486 /* 341 */ 24487 /***/ (function (module, __webpack_exports__, __webpack_require__) { 24488 24489 "use strict"; 24490 /* harmony export (immutable) */ 24491 __webpack_exports__["a"] = getUTCDayOfYear; 24492 /* harmony import */ 24493 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 24494 /* harmony import */ 24495 var __WEBPACK_IMPORTED_MODULE_1__requiredArgs_index_js__ = __webpack_require__(0); 24496 24497 24498 var MILLISECONDS_IN_DAY = 86400000; // This function will be a part of public API when UTC function will be implemented. 24499// See issue: https://github.com/date-fns/date-fns/issues/376 24500 24501 function getUTCDayOfYear(dirtyDate) { 24502 __WEBPACK_IMPORTED_MODULE_1__requiredArgs_index_js__["a" /* default */](1, arguments); 24503 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 24504 var timestamp = date.getTime(); 24505 date.setUTCMonth(0, 1); 24506 date.setUTCHours(0, 0, 0, 0); 24507 var startOfYearTimestamp = date.getTime(); 24508 var difference = timestamp - startOfYearTimestamp; 24509 return Math.floor(difference / MILLISECONDS_IN_DAY) + 1; 24510 } 24511 24512 /***/ 24513 }), 24514 /* 342 */ 24515 /***/ (function (module, __webpack_exports__, __webpack_require__) { 24516 24517 "use strict"; 24518 /* harmony export (immutable) */ 24519 __webpack_exports__["a"] = startOfUTCISOWeekYear; 24520 /* harmony import */ 24521 var __WEBPACK_IMPORTED_MODULE_0__getUTCISOWeekYear_index_js__ = __webpack_require__(154); 24522 /* harmony import */ 24523 var __WEBPACK_IMPORTED_MODULE_1__startOfUTCISOWeek_index_js__ = __webpack_require__(63); 24524 /* harmony import */ 24525 var __WEBPACK_IMPORTED_MODULE_2__requiredArgs_index_js__ = __webpack_require__(0); 24526 24527 24528 // This function will be a part of public API when UTC function will be implemented. 24529// See issue: https://github.com/date-fns/date-fns/issues/376 24530 24531 function startOfUTCISOWeekYear(dirtyDate) { 24532 __WEBPACK_IMPORTED_MODULE_2__requiredArgs_index_js__["a" /* default */](1, arguments); 24533 var year = __WEBPACK_IMPORTED_MODULE_0__getUTCISOWeekYear_index_js__["a" /* default */](dirtyDate); 24534 var fourthOfJanuary = new Date(0); 24535 fourthOfJanuary.setUTCFullYear(year, 0, 4); 24536 fourthOfJanuary.setUTCHours(0, 0, 0, 0); 24537 var date = __WEBPACK_IMPORTED_MODULE_1__startOfUTCISOWeek_index_js__["a" /* default */](fourthOfJanuary); 24538 return date; 24539 } 24540 24541 /***/ 24542 }), 24543 /* 343 */ 24544 /***/ (function (module, __webpack_exports__, __webpack_require__) { 24545 24546 "use strict"; 24547 /* harmony export (immutable) */ 24548 __webpack_exports__["a"] = startOfUTCWeekYear; 24549 /* harmony import */ 24550 var __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__ = __webpack_require__(6); 24551 /* harmony import */ 24552 var __WEBPACK_IMPORTED_MODULE_1__getUTCWeekYear_index_js__ = __webpack_require__(92); 24553 /* harmony import */ 24554 var __WEBPACK_IMPORTED_MODULE_2__startOfUTCWeek_index_js__ = __webpack_require__(50); 24555 /* harmony import */ 24556 var __WEBPACK_IMPORTED_MODULE_3__requiredArgs_index_js__ = __webpack_require__(0); 24557 24558 24559 // This function will be a part of public API when UTC function will be implemented. 24560// See issue: https://github.com/date-fns/date-fns/issues/376 24561 24562 function startOfUTCWeekYear(dirtyDate, dirtyOptions) { 24563 __WEBPACK_IMPORTED_MODULE_3__requiredArgs_index_js__["a" /* default */](1, arguments); 24564 var options = dirtyOptions || {}; 24565 var locale = options.locale; 24566 var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate; 24567 var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__["a" /* default */](localeFirstWeekContainsDate); 24568 var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__["a" /* default */](options.firstWeekContainsDate); 24569 var year = __WEBPACK_IMPORTED_MODULE_1__getUTCWeekYear_index_js__["a" /* default */](dirtyDate, dirtyOptions); 24570 var firstWeek = new Date(0); 24571 firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate); 24572 firstWeek.setUTCHours(0, 0, 0, 0); 24573 var date = __WEBPACK_IMPORTED_MODULE_2__startOfUTCWeek_index_js__["a" /* default */](firstWeek, dirtyOptions); 24574 return date; 24575 } 24576 24577 /***/ 24578 }), 24579 /* 344 */ 24580 /***/ (function (module, __webpack_exports__, __webpack_require__) { 24581 24582 "use strict"; 24583 /* harmony export (immutable) */ 24584 __webpack_exports__["a"] = formatDistanceToNow; 24585 /* harmony import */ 24586 var __WEBPACK_IMPORTED_MODULE_0__formatDistance_index_js__ = __webpack_require__(158); 24587 /* harmony import */ 24588 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 24589 24590 24591 /** 24592 * @name formatDistanceToNow 24593 * @category Common Helpers 24594 * @summary Return the distance between the given date and now in words. 24595 * @pure false 24596 *
24597 * @description 24598 * Return the distance between the given date and now in words. 24599 * 24600 * | Distance to now | Result | 24601 * |-------------------------------------------------------------------|---------------------| 24602 * | 0 ... 30 secs | less than a minute | 24603 * | 30 secs ... 1 min 30 secs | 1 minute | 24604 * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | 24605 * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | 24606 * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | 24607 * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | 24608 * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | 24609 * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | 24610 * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | 24611 * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | 24612 * | 1 yr ... 1 yr 3 months | about 1 year | 24613 * | 1 yr 3 months ... 1 yr 9 month s | over 1 year | 24614 * | 1 yr 9 months ... 2 yrs | almost 2 years | 24615 * | N yrs ... N yrs 3 months | about N years | 24616 * | N yrs 3 months ... N yrs 9 months | over N years | 24617 * | N yrs 9 months ... N+1 yrs | almost N+1 years | 24618 * 24619 * With `options.includeSeconds == true`: 24620 * | Distance to now | Result | 24621 * |---------------------|----------------------| 24622 * | 0 secs ... 5 secs | less than 5 seconds | 24623 * | 5 secs ... 10 secs | less than 10 seconds | 24624 * | 10 secs ... 20 secs | less than 20 seconds | 24625 * | 20 secs ... 40 secs | half a minute | 24626 * | 40 secs ... 60 secs | less than a minute | 24627 * | 60 secs ... 90 secs | 1 minute | 24628 * 24629 * > â ï¸ Please note that this function is not present in the FP submodule as 24630 * > it uses `Date.now()` internally hence impure and can't be safely curried. 24631 * 24632 * ### v2.0.0 breaking changes: 24633 * 24634 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 24635 * 24636 * - The function was renamed from `distanceInWordsToNow ` to `formatDistanceToNow` 24637 * to make its name consistent with `format` and `formatRelative`. 24638 * 24639 * ```javascript 24640 * // Before v2.0.0 24641 * 24642 * distanceInWordsToNow(new Date(2014, 6, 2), { addSuffix: true }) 24643 * //=> 'in 6 months' 24644 * 24645 * // v2.0.0 onward 24646 * 24647 * formatDistanceToNow(new Date(2014, 6, 2), { addSuffix: true }) 24648 * //=> 'in 6 months' 24649 * ``` 24650 * 24651 * @param {Date|Number} date - the given date 24652 * @param {Object} [options] - the object with options 24653 * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed 24654 * @param {Boolean} [options.addSuffix=false] - result specifies if now is earlier or later than the passed date 24655 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 24656 * @returns {String} the distance in words 24657 * @throws {TypeError} 1 argument required 24658 * @throws {RangeError} `date` must not be Invalid Date 24659 * @throws {RangeError} `options.locale` must contain `formatDistance` property 24660 * 24661 * @example 24662 * // If today is 1 January 2015, what is the distance to 2 July 2014? 24663 * var result = formatDistanceToNow( 24664 * new Date(2014, 6, 2) 24665 * ) 24666 * //=> '6 months' 24667 * 24668 * @example 24669 * // If now is 1 January 2015 00:00:00, 24670 * // what is the distance to 1 January 2015 00:00:15, including seconds? 24671 * var result = formatDistanceToNow( 24672 * new Date(2015, 0, 1, 0, 0, 15), 24673 * {includeSeconds: true} 24674 * ) 24675 * //=> 'less than 20 seconds' 24676 * 24677 * @example 24678 * // If today is 1 January 2015, 24679 * // what is the distance to 1 January 2016, with a suffix? 24680 * var result = formatDistanceToNow( 24681 * new Date(2016, 0, 1), 24682 * {addSuffix: true} 24683 * ) 24684 * //=> 'in about 1 year' 24685 * 24686 * @example 24687 * // If today is 1 January 2015,
24688 * // what is the distance to 1 August 2016 in Esperanto? 24689 * var eoLocale = require('date-fns/locale/eo') 24690 * var result = formatDistanceToNow( 24691 * new Date(2016, 7, 1), 24692 * {locale: eoLocale} 24693 * ) 24694 * //=> 'pli ol 1 jaro' 24695 */ 24696 24697 function formatDistanceToNow(dirtyDate, dirtyOptions) { 24698 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 24699 return __WEBPACK_IMPORTED_MODULE_0__formatDistance_index_js__["a" /* default */](dirtyDate, Date.now(), dirtyOptions); 24700 } 24701 24702 /***/ 24703 }), 24704 /* 345 */ 24705 /***/ (function (module, __webpack_exports__, __webpack_require__) { 24706 24707 "use strict"; 24708 /* harmony export (immutable) */ 24709 __webpack_exports__["a"] = formatDistanceToNowStrict; 24710 /* harmony import */ 24711 var __WEBPACK_IMPORTED_MODULE_0__formatDistanceStrict_index_js__ = __webpack_require__(161); 24712 /* harmony import */ 24713 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 24714 24715 24716 /** 24717 * @name formatDistanceToNowStrict 24718 * @category Common Helpers 24719 * @summary Return the distance between the given date and now in words. 24720 * @pure false 24721 * 24722 * @description 24723 * Return the distance between the given dates in words, using strict units. 24724 * This is like `formatDistance`, but does not use helpers like 'almost', 'over', 24725 * 'less than' and the like. 24726 * 24727 * | Distance between dates | Result | 24728 * |------------------------|---------------------| 24729 * | 0 ... 59 secs | [0..59] seconds | 24730 * | 1 ... 59 mins | [1..59] minutes | 24731 * | 1 ... 23 hrs | [1..23] hours | 24732 * | 1 ... 29 days | [1..29] days | 24733 * | 1 ... 11 months | [1..11] months | 24734 * | 1 ... N years | [1..N] years | 24735 * 24736 * @param {Date|Number} date - the given date 24737 * @param {Object} [options] - an object with options. 24738 * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first 24739 * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit 24740 * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units 24741 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 24742 * @returns {String} the distance in words 24743 * @throws {TypeError} 1 argument required 24744 * @throws {RangeError} `date` must not be Invalid Date 24745 * @throws {RangeError} `options.locale` must contain `formatDistance` property 24746 * 24747 * @example 24748 * // If today is 1 January 2015, what is the distance to 2 July 2014? 24749 * var result = formatDistanceToNowStrict( 24750 * new Date(2014, 6, 2) 24751 * ) 24752 * //=> '6 months' 24753 * 24754 * @example 24755 * // If now is 1 January 2015 00:00:00, 24756 * // what is the distance to 1 January 2015 00:00:15, including seconds? 24757 * var result = formatDistanceToNowStrict( 24758 * new Date(2015, 0, 1, 0, 0, 15) 24759 * ) 24760 * //=> '20 seconds' 24761 * 24762 * @example 24763 * // If today is 1 January 2015, 24764 * // what is the distance to 1 January 2016, with a suffix? 24765 * var result = formatDistanceToNowStrict( 24766 * new Date(2016, 0, 1), 24767 * {addSuffix: true} 24768 * ) 24769 * //=> 'in 1 year' 24770 * 24771 * @example 24772 * // If today is 28 January 2015, 24773 * // what is the distance to 1 January 2015, in months, roun
24773ded up?? 24774 * var result = formatDistanceToNowStrict(new Date(2015, 0, 1), { 24775 * unit: 'month', 24776 * roundingMethod: 'ceil' 24777 * }) 24778 * //=> '1 month' 24779 * 24780 * @example 24781 * // If today is 1 January 2015, 24782 * // what is the distance to 1 August 2016 in Esperanto? 24783 * var eoLocale = require('date-fns/locale/eo') 24784 * var result = formatDistanceToNowStrict( 24785 * new Date(2016, 7, 1), 24786 * {locale: eoLocale} 24787 * ) 24788 * //=> '1 jaro' 24789 */ 24790 24791 function formatDistanceToNowStrict(dirtyDate, dirtyOptions) { 24792 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 24793 return __WEBPACK_IMPORTED_MODULE_0__formatDistanceStrict_index_js__["a" /* default */](dirtyDate, Date.now(), dirtyOptions); 24794 } 24795 24796 /***/ 24797 }), 24798 /* 346 */ 24799 /***/ (function (module, __webpack_exports__, __webpack_require__) { 24800 24801 "use strict"; 24802 /* harmony export (immutable) */ 24803 __webpack_exports__["a"] = formatDuration; 24804 /* harmony import */ 24805 var __WEBPACK_IMPORTED_MODULE_0__locale_en_US_index_js__ = __webpack_require__(28); 24806 24807 var defaultFormat = ['years', 'months', 'weeks', 'days', 'hours', 'minutes', 'seconds']; 24808 24809 /** 24810 * @name formatDuration 24811 * @category Common Helpers 24812 * @summary Formats a duration in human-readable format 24813 * 24814 * @description 24815 * Return human-readable duration string i.e. "9 months 2 days" 24816 * 24817 * @param {Duration} duration - the duration to format 24818 * @param {Object} [options] - an object with options. 24819 24820 * @param {string[]} [options.format=['years', 'months', 'weeks', 'days', 'hours', 'minutes', 'seconds']] - the array of units to format 24821 * @param {boolean} [options.zero=false] - should be zeros be included in the output? 24822 * @param {string} [options.delimiter=' '] - delimiter string 24823 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 24824 * @returns {string} the formatted date string 24825 * @throws {TypeError} 1 argument required 24826 * 24827 * @example 24828 * // Format full duration 24829 * formatDuration({ 24830 * years: 2, 24831 * months: 9, 24832 * weeks: 1, 24833 * days: 7, 24834 * hours: 5, 24835 * minutes: 9, 24836 * seconds: 30 24837 * }) 24838 * //=> '2 years 9 months 1 week 7 days 5 hours 9 minutes 30 seconds 24839 * 24840 * @example 24841 * // Format partial duration 24842 * formatDuration({ months: 9, days: 2 }) 24843 * //=> '9 months 2 days' 24844 * 24845 * @example 24846 * // Customize the format 24847 * formatDuration( 24848 * { 24849 * years: 2, 24850 * months: 9, 24851 * weeks: 1, 24852 * days: 7, 24853 * hours: 5, 24854 * minutes: 9, 24855 * seconds: 30 24856 * }, 24857 * { format: ['months', 'weeks'] } 24858 * ) === '9 months 1 week' 24859 * 24860 * @example 24861 * // Customize the zeros presence 24862 * formatDuration({ years: 0, months: 9 }) 24863 * //=> '9 months' 24864 * formatDuration({ years: 0, months: 9 }, null, { zero: true }) 24865 * //=> '0 years 9 months' 24866 * 24867 * @example 24868 * // Customize the delimiter 24869 * formatDuration({ years: 2, months: 9, weeks: 3 }, { delimiter: ', ' }) 24870 * //=> '2 years, 9 months, 3 weeks' 24871 */ 24872 24873 function formatDuration(duration) { 24874 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; 24875 24876 if (arguments.length < 1) { 24877 throw new TypeError("1 argument required, but only ".concat(arguments.length, " present")); 24878 } 24879 24880 var format = options.format || defaultFormat; 24881 var locale = options.locale || __WEBPACK_IMPORTED_MODULE_0__locale_en_US_index_js__["a" /* default */]; 24882 var zero = options.zero || false; 24883 var delimiter = options.delimiter || ' '; 24884 var result = format.reduce(function (acc, unit) { 24885 var token = "x".concat(unit.replace(/(^.)/, function (m) { 24886 return m.toUpperCase(); 24887 })); 24888 var addChunk = typeof duration[unit] === 'number' && (zero || duration[unit]); 24889 return addChunk ? acc.concat(locale.formatDistance(token, duration[unit])) : acc; 24890 }, []).join(delimiter); 24891 return result; 24892 } 24893 24894 /***/ 24895 }), 24896 /* 347 */ 24897 /***/ (function (module, __webpack_exports__, __webpack_require__) { 24898 24899 "use strict"; 24900 /* harmony export (immutable) */ 24901 __webpack_exports__["a"] = formatISO; 24902 /* harmony import */ 24903 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 24904 /* harmony import */ 24905 var __WEBPACK_IMPORTED_MODULE_1__isValid_index_js__ = __webpack_require__(15); 24906 /* harmony import */ 24907 var __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__ = __webpack_require__(38); 24908 24909 24910 /** 24911 * @name formatISO 24912 * @category Common Helpers 24913 * @summary Format the date according to the ISO 8601 standard (http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm). 24914 *
24915 * @description 24916 * Return the formatted date string in ISO 8601 format. Options may be passed to control the parts and notations of the date. 24917 * 24918 * @param {Date|Number} date - the original date 24919 * @param {Object} [options] - an object with options. 24920 * @param {'extended'|'basic'} [options.format='extended'] - if 'basic', hide delimiters between date and time values. 24921 * @param {'complete'|'date'|'time'} [options.representation='complete'] - format date, time with time zone, or both. 24922 * @returns {String} the formatted date string 24923 * @throws {TypeError} 1 argument required 24924 * @throws {RangeError} `date` must not be Invalid Date 24925 * @throws {RangeError} `options.format` must be 'extended' or 'basic' 24926 * @throws {RangeError} `options.represenation` must be 'date', 'time' or 'complete' 24927 * 24928 * @example 24929 * // Represent 18 September 2019 in ISO 8601 format (UTC): 24930 * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52)) 24931 * //=> '2019-09-18T19:00:52Z' 24932 * 24933 * @example 24934 * // Represent 18 September 2019 in ISO 8601, short format (UTC): 24935 * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) 24936 * //=> '20190918T190052' 24937 * 24938 * @example 24939 * // Represent 18 September 2019 in ISO 8601 format, date only: 24940 * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) 24941 * //=> '2019-09-18' 24942 * 24943 * @example 24944 * // Represent 18 September 2019 in ISO 8601 format, time only (UTC): 24945 * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) 24946 * //=> '19:00:52Z' 24947 */ 24948 24949 function formatISO(dirtyDate, dirtyOptions) { 24950 if (arguments.length < 1) { 24951 throw new TypeError("1 argument required, but only ".concat(arguments.length, " present")); 24952 } 24953 24954 var originalDate = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 24955 24956 if (!__WEBPACK_IMPORTED_MODULE_1__isValid_index_js__["a" /* default */](originalDate)) { 24957 throw new RangeError('Invalid time value'); 24958 } 24959 24960 var options = dirtyOptions || {}; 24961 var format = options.format == null ? 'extended' : String(options.format); 24962 var representation = options.representation == null ? 'complete' : String(options.representation); 24963 24964 if (format !== 'extended' && format !== 'basic') { 24965 throw new RangeError("format must be 'extended' or 'basic'"); 24966 } 24967 24968 if (representation !== 'date' && representation !== 'time' && representation !== 'complete') { 24969 throw new RangeError("representation must be 'date', 'time', or 'complete'"); 24970 } 24971 24972 var result = ''; 24973 var tzOffset = ''; 24974 var dateDelimiter = format === 'extended' ? '-' : ''; 24975 var timeDelimiter = format === 'extended' ? ':' : ''; // Representation is either 'date' or 'complete' 24976 24977 if (representation !== 'time') { 24978 var day = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getDate(), 2); 24979 var month = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getMonth() + 1, 2); 24980 var year = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getFullYear(), 4); // yyyyMMdd or yyyy-MM-dd. 24981 24982 result = "".concat(year).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day); 24983 } // Representation is either 'time' or 'complete' 24984 24985 24986 if (representation !== 'date') { 24987 // Add the timezone. 24988 var offset = originalDate.getTimezoneOffset(); 24989 24990 if (offset !== 0) { 24991 var absoluteOffset = Math.abs(offset); 24992 var hourOffset = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](Math.floor(absoluteOffset / 60), 2); 24993 var minuteOffset = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](absoluteOffset % 60, 2);
vendor: 11,352 bytes, lines 24993-25197
24993 // If less than 0, the sign is +, because it is ahead of time. 24994 24995 var sign = offset < 0 ? '+' : '-'; 24996 tzOffset = "".concat(sign).concat(hourOffset, ":").concat(minuteOffset); 24997 } else { 24998 tzOffset = 'Z'; 24999 } 25000 25001 var hour = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getHours(), 2); 25002 var minute = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getMinutes(), 2); 25003 var second = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getSeconds(), 2); // If there's also date, separate it with time with 'T' 25004 25005 var separator = result === '' ? '' : 'T'; // Creates a time string consisting of hour, minute, and second, separated by delimiters, if defined. 25006 25007 var time = [hour, minute, second].join(timeDelimiter); // HHmmss or HH:mm:ss. 25008 25009 result = "".concat(result).concat(separator).concat(time).concat(tzOffset); 25010 } 25011 25012 return result; 25013 } 25014 25015 /***/ 25016 }), 25017 /* 348 */ 25018 /***/ (function (module, __webpack_exports__, __webpack_require__) { 25019 25020 "use strict"; 25021 /* harmony export (immutable) */ 25022 __webpack_exports__["a"] = formatISO9075; 25023 /* harmony import */ 25024 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 25025 /* harmony import */ 25026 var __WEBPACK_IMPORTED_MODULE_1__isValid_index_js__ = __webpack_require__(15); 25027 /* harmony import */ 25028 var __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__ = __webpack_require__(38); 25029 25030 25031 /** 25032 * @name formatISO9075 25033 * @category Common Helpers 25034 * @summary Format the date according to the ISO 9075 standard (https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_get-format). 25035 * 25036 * @description 25037 * Return the formatted date string in ISO 9075 format. Options may be passed to control the parts and notations of the date. 25038 * 25039 * @param {Date|Number} date - the original date 25040 * @param {Object} [options] - an object with options. 25041 * @param {'extended'|'basic'} [options.format='extended'] - if 'basic', hide delimiters between date and time values. 25042 * @param {'complete'|'date'|'time'} [options.representation='complete'] - format date, time, or both. 25043 * @returns {String} the formatted date string 25044 * @throws {TypeError} 1 argument required 25045 * @throws {RangeError} `date` must not be Invalid Date 25046 * @throws {RangeError} `options.format` must be 'extended' or 'basic' 25047 * @throws {RangeError} `options.represenation` must be 'date', 'time' or 'complete' 25048 * 25049 * @example 25050 * // Represent 18 September 2019 in ISO 9075 format: 25051 * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52)) 25052 * //=> '2019-09-18 19:00:52' 25053 * 25054 * @example 25055 * // Represent 18 September 2019 in ISO 9075, short format: 25056 * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) 25057 * //=> '20190918 190052' 25058 * 25059 * @example 25060 * // Represent 18 September 2019 in ISO 9075 format, date only: 25061 * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) 25062 * //=> '2019-09-18' 25063 * 25064 * @example 25065 * // Represent 18 September 2019 in ISO 9075 format, time only: 25066 * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) 25067 * //=> '19:00:52' 25068 */ 25069 25070 function formatISO9075(dirtyDate, dirtyOptions) { 25071 if (arguments.length < 1) { 25072 throw new TypeError("1 argument required, but only ".concat(arguments.length, " present")); 25073 } 25074 25075 var originalDate = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 25076 25077 if (!__WEBPACK_IMPORTED_MODULE_1__isValid_index_js__["a" /* default */](originalDate)) { 25078 throw new RangeError('Invalid time value'); 25079 } 25080 25081 var options = dirtyOptions || {}; 25082 var format = options.format == null ? 'extended' : String(options.format); 25083 var representation = options.representation == null ? 'complete' : String(options.representation); 25084 25085 if (format !== 'extended' && format !== 'basic') { 25086 throw new RangeError("format must be 'extended' or 'basic'"); 25087 } 25088 25089 if (representation !== 'date' && representation !== 'time' && representation !== 'complete') { 25090 throw new RangeError("representation must be 'date', 'time', or 'complete'"); 25091 } 25092 25093 var result = ''; 25094 var dateDelimiter = format === 'extended' ? '-' : ''; 25095 var timeDelimiter = format === 'extended' ? ':' : ''; // Representation is either 'date' or 'complete' 25096 25097 if (representation !== 'time') { 25098 var day = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getDate(), 2); 25099 var month = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getMonth() + 1, 2); 25100 var year = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getFullYear(), 4); // yyyyMMdd or yyyy-MM-dd. 25101 25102 result = "".concat(year).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day); 25103 } // Representation is either 'time' or 'complete' 25104 25105 25106 if (representation !== 'date') { 25107 var hour = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getHours(), 2); 25108 var minute = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getMinutes(), 2); 25109 var second = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getSeconds(), 2); // If there's also date, separate it with time with a space 25110 25111 var separator = result === '' ? '' : ' '; // HHmmss or HH:mm:ss. 25112 25113 result = "".concat(result).concat(separator).concat(hour).concat(timeDelimiter).concat(minute).concat(timeDelimiter).concat(second); 25114 } 25115 25116 return result; 25117 } 25118 25119 /***/ 25120 }), 25121 /* 349 */ 25122 /***/ (function (module, __webpack_exports__, __webpack_require__) { 25123 25124 "use strict"; 25125 /* harmony export (immutable) */ 25126 __webpack_exports__["a"] = formatISODuration; 25127 /* harmony import */ 25128 var __WEBPACK_IMPORTED_MODULE_0__lib_requiredArgs_index_js__ = __webpack_require__(0); 25129 25130 /** 25131 * @name formatISODuration 25132 * @category Common Helpers 25133 * @summary Format a duration object according as ISO 8601 duration string 25134 * 25135 * @description 25136 * Format a duration object according to the ISO 8601 duration standard (https://www.digi.com/resources/documentation/digidocs/90001437-13/reference/r_iso_8601_duration_format.htm) 25137 * 25138 * @param {Duration} duration - the duration to format 25139 * 25140 * @returns {String} The ISO 8601 duration string 25141 * @throws {TypeError} Requires 1 argument 25142 * @throws {Error} Argument must be an object 25143 * 25144 * @example 25145 * // Format the given duration as ISO 8601 string 25146 * formatISODuration({ 25147 * years: 39, 25148 * months: 2, 25149 * days: 20, 25150 * hours: 7, 25151 * minutes: 5, 25152 * seconds: 0 25153 * }) 25154 * //=> 'P39Y2M20DT0H0M0S' 25155 */ 25156 25157 function formatISODuration(duration) { 25158 __WEBPACK_IMPORTED_MODULE_0__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 25159 if (typeof duration !== 'object') throw new Error('Duration must be an object'); 25160 var _duration$years = duration.years, 25161 years = _duration$years === void 0 ? 0 : _duration$years, 25162 _duration$months = duration.months, 25163 months = _duration$months === void 0 ? 0 : _duration$months, 25164 _duration$days = duration.days, 25165 days = _duration$days === void 0 ? 0 : _duration$days, 25166 _duration$hours = duration.hours, 25167 hours = _duration$hours === void 0 ? 0 : _duration$hours, 25168 _duration$minutes = duration.minutes, 25169 minutes = _duration$minutes === void 0 ? 0 : _duration$minutes, 25170 _duration$seconds = duration.seconds, 25171 seconds = _duration$seconds === void 0 ? 0 : _duration$seconds; 25172 return "P".concat(years, "Y").concat(months, "M").concat(days, "DT").concat(hours, "H").concat(minutes, "M").concat(seconds, "S"); 25173 } 25174 25175 /***/ 25176 }), 25177 /* 350 */ 25178 /***/ (function (module, __webpack_exports__, __webpack_require__) { 25179 25180 "use strict"; 25181 /* harmony export (immutable) */ 25182 __webpack_exports__["a"] = formatRFC3339; 25183 /* harmony import */ 25184 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 25185 /* harmony import */ 25186 var __WEBPACK_IMPORTED_MODULE_1__isValid_index_js__ = __webpack_require__(15); 25187 /* harmony import */ 25188 var __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__ = __webpack_require__(38); 25189 /* harmony import */ 25190 var __WEBPACK_IMPORTED_MODULE_3__lib_toInteger_index_js__ = __webpack_require__(6); 25191 25192 25193 /** 25194 * @name formatRFC3339 25195 * @category Common Helpers 25196 * @summary Format the date according to the ISO 3339 standard (https://tools.ietf.org/html/rfc3339#section-5.6). 25197 *
25198 * @description 25199 * Return the formatted date string in ISO 3339 format. Options may be passed to control the parts and notations of the date. 25200 * 25201 * @param {Date|Number} date - the original date 25202 * @param {Object} [options] - an object with options. 25203 * @param {0|1|2|3} [options.fractionDigits=0] - number of digits after the decimal point after seconds 25204 * @returns {String} the formatted date string 25205 * @throws {TypeError} 1 argument required 25206 * @throws {RangeError} `date` must not be Invalid Date 25207 * @throws {RangeError} `options.fractionDigits` must be between 0 and 3 25208 * 25209 * @example 25210 * // Represent 18 September 2019 in ISO 3339 format: 25211 * const result = formatRFC3339(new Date(2019, 8, 18, 19, 0, 52)) 25212 * //=> '2019-09-18T19:00:52Z' 25213 * 25214 * @example 25215 * // Represent 18 September 2019 in ISO 3339 format, 2 digits of second fraction: 25216 * const result = formatRFC3339(new Date(2019, 8, 18, 19, 0, 52, 234), { fractionDigits: 2 }) 25217 * //=> '2019-09-18T19:00:52.23Z' 25218 * 25219 * @example 25220 * // Represent 18 September 2019 in ISO 3339 format, 3 digits of second fraction 25221 * const result = formatRFC3339(new Date(2019, 8, 18, 19, 0, 52, 234), { fractionDigits: 3 }) 25222 * //=> '2019-09-18T19:00:52.234Z' 25223 */ 25224 25225 function formatRFC3339(dirtyDate, dirtyOptions) { 25226 if (arguments.length < 1) { 25227 throw new TypeError("1 arguments required, but only ".concat(arguments.length, " present")); 25228 } 25229 25230 var originalDate = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 25231 25232 if (!__WEBPACK_IMPORTED_MODULE_1__isValid_index_js__["a" /* default */](originalDate)) { 25233 throw new RangeError('Invalid time value'); 25234 } 25235 25236 var options = dirtyOptions || {}; 25237 var fractionDigits = options.fractionDigits == null ? 0 : __WEBPACK_IMPORTED_MODULE_3__lib_toInteger_index_js__["a" /* default */](options.fractionDigits); // Test if fractionDigits is between 0 and 3 _and_ is not NaN 25238 25239 if (!(fractionDigits >= 0 && fractionDigits <= 3)) { 25240 throw new RangeError('fractionDigits must be between 0 and 3 inclusively'); 25241 } 25242 25243 var day = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getDate(), 2); 25244 var month = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getMonth() + 1, 2); 25245 var year = originalDate.getFullYear(); 25246 var hour = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getHours(), 2); 25247 var minute = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getMinutes(), 2); 25248 var second = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getSeconds(), 2); 25249 var fractionalSecond = ''; 25250 25251 if (fractionDigits > 0) { 25252 var milliseconds = originalDate.getMilliseconds(); 25253 var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, fractionDigits - 3)); 25254 fractionalSecond = '.' + __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](fractionalSeconds, fractionDigits); 25255 } 25256 25257 var offset = ''; 25258 var tzOffset = originalDate.getTimezoneOffset(); 25259 25260 if (tzOffset !== 0) { 25261 var absoluteOffset = Math.abs(tzOffset); 25262 var hourOffset = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](__WEBPACK_IMPORTED_MODULE_3__lib_toInteger_index_js__["a" /* default */](absoluteOffset / 60), 2); 25263 var minuteOffset = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](absoluteOffset % 60, 2);
vendor: 5,406 bytes, lines 25263-25363
25263 // If less than 0, the sign is +, because it is ahead of time. 25264 25265 var sign = tzOffset < 0 ? '+' : '-'; 25266 offset = "".concat(sign).concat(hourOffset, ":").concat(minuteOffset); 25267 } else { 25268 offset = 'Z'; 25269 } 25270 25271 return "".concat(year, "-").concat(month, "-").concat(day, "T").concat(hour, ":").concat(minute, ":").concat(second).concat(fractionalSecond).concat(offset); 25272 } 25273 25274 /***/ 25275 }), 25276 /* 351 */ 25277 /***/ (function (module, __webpack_exports__, __webpack_require__) { 25278 25279 "use strict"; 25280 /* harmony export (immutable) */ 25281 __webpack_exports__["a"] = formatRFC7231; 25282 /* harmony import */ 25283 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 25284 /* harmony import */ 25285 var __WEBPACK_IMPORTED_MODULE_1__isValid_index_js__ = __webpack_require__(15); 25286 /* harmony import */ 25287 var __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__ = __webpack_require__(38); 25288 25289 25290 var days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; 25291 var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; 25292 25293 /** 25294 * @name formatRFC7231 25295 * @category Common Helpers 25296 * @summary Format the date according to the RFC 7231 standard (https://tools.ietf.org/html/rfc7231#section-7.1.1.1). 25297 * 25298 * @description 25299 * Return the formatted date string in RFC 7231 format. 25300 * The result will always be in UTC timezone. 25301 * 25302 * @param {Date|Number} date - the original date 25303 * @returns {String} the formatted date string 25304 * @throws {TypeError} 1 argument required 25305 * @throws {RangeError} `date` must not be Invalid Date 25306 * 25307 * @example 25308 * // Represent 18 September 2019 in RFC 7231 format: 25309 * const result = formatRFC7231(new Date(2019, 8, 18, 19, 0, 52)) 25310 * //=> 'Wed, 18 Sep 2019 19:00:52 GMT' 25311 */ 25312 25313 function formatRFC7231(dirtyDate) { 25314 if (arguments.length < 1) { 25315 throw new TypeError("1 arguments required, but only ".concat(arguments.length, " present")); 25316 } 25317 25318 var originalDate = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 25319 25320 if (!__WEBPACK_IMPORTED_MODULE_1__isValid_index_js__["a" /* default */](originalDate)) { 25321 throw new RangeError('Invalid time value'); 25322 } 25323 25324 var dayName = days[originalDate.getUTCDay()]; 25325 var dayOfMonth = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getUTCDate(), 2); 25326 var monthName = months[originalDate.getUTCMonth()]; 25327 var year = originalDate.getUTCFullYear(); 25328 var hour = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getUTCHours(), 2); 25329 var minute = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getUTCMinutes(), 2); 25330 var second = __WEBPACK_IMPORTED_MODULE_2__lib_addLeadingZeros_index_js__["a" /* default */](originalDate.getUTCSeconds(), 2); // Result variables. 25331 25332 return "".concat(dayName, ", ").concat(dayOfMonth, " ").concat(monthName, " ").concat(year, " ").concat(hour, ":").concat(minute, ":").concat(second, " GMT"); 25333 } 25334 25335 /***/ 25336 }), 25337 /* 352 */ 25338 /***/ (function (module, __webpack_exports__, __webpack_require__) { 25339 25340 "use strict"; 25341 /* harmony export (immutable) */ 25342 __webpack_exports__["a"] = formatRelative; 25343 /* harmony import */ 25344 var __WEBPACK_IMPORTED_MODULE_0__differenceInCalendarDays_index_js__ = __webpack_require__(26); 25345 /* harmony import */ 25346 var __WEBPACK_IMPORTED_MODULE_1__format_index_js__ = __webpack_require__(151); 25347 /* harmony import */ 25348 var __WEBPACK_IMPORTED_MODULE_2__locale_en_US_index_js__ = __webpack_require__(28); 25349 /* harmony import */ 25350 var __WEBPACK_IMPORTED_MODULE_3__subMilliseconds_index_js__ = __webpack_require__(49); 25351 /* harmony import */ 25352 var __WEBPACK_IMPORTED_MODULE_4__toDate_index_js__ = __webpack_require__(1); 25353 /* harmony import */ 25354 var __WEBPACK_IMPORTED_MODULE_5__lib_getTimezoneOffsetInMilliseconds_index_js__ = __webpack_require__(19); 25355 /* harmony import */ 25356 var __WEBPACK_IMPORTED_MODULE_6__lib_requiredArgs_index_js__ = __webpack_require__(0); 25357 25358 25359 /** 25360 * @name formatRelative 25361 * @category Common Helpers 25362 * @summary Represent the date in words relative to the given base date. 25363 *
25364 * @description 25365 * Represent the date in words relative to the given base date. 25366 * 25367 * | Distance to the base date | Result | 25368 * |---------------------------|---------------------------| 25369 * | Previous 6 days | last Sunday at 04:30 AM | 25370 * | Last day | yesterday at 04:30 AM | 25371 * | Same day | today at 04:30 AM | 25372 * | Next day | tomorrow at 04:30 AM | 25373 * | Next 6 days | Sunday at 04:30 AM | 25374 * | Other | 12/31/2017 | 25375 * 25376 * ### v2.0.0 breaking changes: 25377 * 25378 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 25379 * 25380 * @param {Date|Number} date - the date to format 25381 * @param {Date|Number} baseDate - the date to compare with 25382 * @param {Object} [options] - an object with options. 25383 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 25384 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 25385 * @returns {String} the date in words 25386 * @throws {TypeError} 2 arguments required 25387 * @throws {RangeError} `date` must not be Invalid Date 25388 * @throws {RangeError} `baseDate` must not be Invalid Date 25389 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 25390 * @throws {RangeError} `options.locale` must contain `localize` property 25391 * @throws {RangeError} `options.locale` must contain `formatLong` property 25392 * @throws {RangeError} `options.locale` must contain `formatRelative` property 25393 */ 25394 25395 function formatRelative(dirtyDate, dirtyBaseDate, dirtyOptions) { 25396 __WEBPACK_IMPORTED_MODULE_6__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 25397 var date = __WEBPACK_IMPORTED_MODULE_4__toDate_index_js__["a" /* default */](dirtyDate); 25398 var baseDate = __WEBPACK_IMPORTED_MODULE_4__toDate_index_js__["a" /* default */](dirtyBaseDate); 25399 var options = dirtyOptions || {}; 25400 var locale = options.locale || __WEBPACK_IMPORTED_MODULE_2__locale_en_US_index_js__["a" /* default */]; 25401 25402 if (!locale.localize) { 25403 throw new RangeError('locale must contain localize property'); 25404 } 25405 25406 if (!locale.formatLong) { 25407 throw new RangeError('locale must contain formatLong property'); 25408 } 25409 25410 if (!locale.formatRelative) { 25411 throw new RangeError('locale must contain formatRelative property'); 25412 } 25413 25414 var diff = __WEBPACK_IMPORTED_MODULE_0__differenceInCalendarDays_index_js__["a" /* default */](date, baseDate); 25415 25416 if (isNaN(diff)) { 25417 throw new RangeError('Invalid time value'); 25418 } 25419 25420 var token; 25421 25422 if (diff < -6) { 25423 token = 'other'; 25424 } else if (diff < -1) { 25425 token = 'lastWeek'; 25426 } else if (diff < 0) { 25427 token = 'yesterday'; 25428 } else if (diff < 1) { 25429 token = 'today'; 25430 } else if (diff < 2) { 25431 token = 'tomorrow'; 25432 } else if (diff < 7) { 25433 token = 'nextWeek'; 25434 } else { 25435 token = 'other'; 25436 } 25437 25438 var utcDate = __WEBPACK_IMPORTED_MODULE_3__subMilliseconds_index_js__["a" /* default */](date, __WEBPACK_IMPORTED_MODULE_5__lib_getTimezoneOffsetInMilliseconds_index_js__["a" /* default */](date)); 25439 var utcBaseDate = __WEBPACK_IMPORTED_MODULE_3__subMilliseconds_index_js__["a" /* default */](baseDate, __WEBPACK_IMPORTED_MODULE_5__lib_getTimezoneOffsetInMilliseconds_index_js__["a" /* default */](baseDate)); 25440 var formatStr = locale.formatRelative(token, utc
vendor: 5,463 bytes, lines 25440-25556
25440Date, utcBaseDate, options); 25441 return __WEBPACK_IMPORTED_MODULE_1__format_index_js__["a" /* default */](date, formatStr, options); 25442 } 25443 25444 /***/ 25445 }), 25446 /* 353 */ 25447 /***/ (function (module, __webpack_exports__, __webpack_require__) { 25448 25449 "use strict"; 25450 /* harmony export (immutable) */ 25451 __webpack_exports__["a"] = fromUnixTime; 25452 /* harmony import */ 25453 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 25454 /* harmony import */ 25455 var __WEBPACK_IMPORTED_MODULE_1__lib_toInteger_index_js__ = __webpack_require__(6); 25456 /* harmony import */ 25457 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 25458 25459 25460 /** 25461 * @name fromUnixTime 25462 * @category Timestamp Helpers 25463 * @summary Create a date from a Unix timestamp. 25464 * 25465 * @description 25466 * Create a date from a Unix timestamp. 25467 * 25468 * ### v2.0.0 breaking changes: 25469 * 25470 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 25471 * 25472 * @param {Number} unixTime - the given Unix timestamp 25473 * @returns {Date} the date 25474 * @throws {TypeError} 1 argument required 25475 * 25476 * @example 25477 * // Create the date 29 February 2012 11:45:05: 25478 * var result = fromUnixTime(1330515905) 25479 * //=> Wed Feb 29 2012 11:45:05 25480 */ 25481 25482 function fromUnixTime(dirtyUnixTime) { 25483 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 25484 var unixTime = __WEBPACK_IMPORTED_MODULE_1__lib_toInteger_index_js__["a" /* default */](dirtyUnixTime); 25485 return __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](unixTime * 1000); 25486 } 25487 25488 /***/ 25489 }), 25490 /* 354 */ 25491 /***/ (function (module, __webpack_exports__, __webpack_require__) { 25492 25493 "use strict"; 25494 /* harmony export (immutable) */ 25495 __webpack_exports__["a"] = getDayOfYear; 25496 /* harmony import */ 25497 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 25498 /* harmony import */ 25499 var __WEBPACK_IMPORTED_MODULE_1__startOfYear_index_js__ = __webpack_require__(90); 25500 /* harmony import */ 25501 var __WEBPACK_IMPORTED_MODULE_2__differenceInCalendarDays_index_js__ = __webpack_require__(26); 25502 /* harmony import */ 25503 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 25504 25505 25506 /** 25507 * @name getDayOfYear 25508 * @category Day Helpers 25509 * @summary Get the day of the year of the given date. 25510 * 25511 * @description 25512 * Get the day of the year of the given date. 25513 * 25514 * ### v2.0.0 breaking changes: 25515 * 25516 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 25517 * 25518 * @param {Date|Number} date - the given date 25519 * @returns {Number} the day of year 25520 * @throws {TypeError} 1 argument required 25521 * 25522 * @example 25523 * // Which day of the year is 2 July 2014? 25524 * var result = getDayOfYear(new Date(2014, 6, 2)) 25525 * //=> 183 25526 */ 25527 25528 function getDayOfYear(dirtyDate) { 25529 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 25530 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 25531 var diff = __WEBPACK_IMPORTED_MODULE_2__differenceInCalendarDays_index_js__["a" /* default */](date, __WEBPACK_IMPORTED_MODULE_1__startOfYear_index_js__["a" /* default */](date)); 25532 var dayOfYear = diff + 1; 25533 return dayOfYear; 25534 } 25535 25536 /***/ 25537 }), 25538 /* 355 */ 25539 /***/ (function (module, __webpack_exports__, __webpack_require__) { 25540 25541 "use strict"; 25542 /* harmony export (immutable) */ 25543 __webpack_exports__["a"] = getDaysInYear; 25544 /* harmony import */ 25545 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 25546 /* harmony import */ 25547 var __WEBPACK_IMPORTED_MODULE_1__isLeapYear_index_js__ = __webpack_require__(165); 25548 /* harmony import */ 25549 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 25550 25551 25552 /** 25553 * @name getDaysInYear 25554 * @category Year Helpers 25555 * @summary Get the number of days in a year of the given date. 25556 *
25557 * @description 25558 * Get the number of days in a year of the given date. 25559 * 25560 * ### v2.0.0 breaking changes: 25561 * 25562 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 25563 * 25564 * @param {Date|Number} date - the given date 25565 * @returns {Number} the number of days in a year 25566 * @throws {TypeError} 1 argument required 25567 * 25568 * @example 25569 * // How many days are in 2012? 25570 * var result = getDaysInYear(new Date(2012, 0, 1)) 25571 * //=> 366 25572 */ 25573 25574 function getDaysInYear(dirtyDate) { 25575 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 25576 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 25577 25578 if (isNaN(date)) { 25579 return NaN; 25580 } 25581 25582 return __WEBPACK_IMPORTED_MODULE_1__isLeapYear_index_js__["a" /* default */](date) ? 366 : 365; 25583 } 25584 25585 /***/ 25586 }), 25587 /* 356 */ 25588 /***/ (function (module, __webpack_exports__, __webpack_require__) { 25589 25590 "use strict"; 25591 /* harmony export (immutable) */ 25592 __webpack_exports__["a"] = getDecade; 25593 /* harmony import */ 25594 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 25595 /* harmony import */ 25596 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 25597 25598 25599 /** 25600 * @name getDecade 25601 * @category Decade Helpers 25602 * @summary Get the decade of the given date. 25603 * 25604 * @description 25605 * Get the decade of the given date. 25606 * 25607 * ### v2.0.0 breaking changes: 25608 * 25609 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 25610 * 25611 * @param {Date|Number} date - the given date 25612 * @returns {Number} the year of decade 25613 * @throws {TypeError} 1 argument required 25614 * 25615 * @example 25616 * // Which decade belongs 27 November 1942? 25617 * var result = getDecade(new Date(1942, 10, 27)) 25618 * //=> 1940 25619 */ 25620 25621 function getDecade(dirtyDate) { 25622 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 25623 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 25624 var year = date.getFullYear(); 25625 var decade = Math.floor(year / 10) * 10; 25626 return decade; 25627 } 25628 25629 /***/ 25630 }), 25631 /* 357 */ 25632 /***/ (function (module, __webpack_exports__, __webpack_require__) { 25633 25634 "use strict"; 25635 /* harmony export (immutable) */ 25636 __webpack_exports__["a"] = getHours; 25637 /* harmony import */ 25638 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 25639 /* harmony import */ 25640 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 25641 25642 25643 /** 25644 * @name getHours 25645 * @category Hour Helpers 25646 * @summary Get the hours of the given date. 25647 * 25648 * @description 25649 * Get the hours of the given date. 25650 * 25651 * ### v2.0.0 breaking changes: 25652 * 25653 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 25654 * 25655 * @param {Date|Number} date - the given date 25656 * @returns {Number} the hours 25657 * @throws {TypeError} 1 argument required 25658 * 25659 * @example 25660 * // Get the hours of 29 February 2012 11:45:00: 25661 * var result = getHours(new Date(2012, 1, 29, 11, 45)) 25662 * //=> 11 25663 */ 25664 25665 function getHours(dirtyDate) { 25666 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 25667 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 25668 var hours = date.getHours(); 25669 return hours; 25670 } 25671 25672 /***/ 25673 }), 25674 /* 358 */ 25675 /***/ (function (module, __webpack_exports__, __webpack_require__) { 25676 25677 "use strict"; 25678 /* harmony export (immutable) */ 25679 __webpack_exports__["a"] = getISOWeeksInYear; 25680 /* harmony import */ 25681 var __WEBPACK_IMPORTED_MODULE_0__startOfISOWeekYear_index_js__ = __webpack_require__(46); 25682 /* harmony import */ 25683 var __WEBPACK_IMPORTED_MODULE_1__addWeeks_index_js__ = __webpack_require__(58); 25684 /* harmony import */ 25685 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 25686 25687 25688 var MILLISECONDS_IN_WEEK = 604800000; 25689 25690 /** 25691 * @name getISOWeeksInYear 25692 * @category ISO Week-Numbering Year Helpers 25693 * @summary Get the number of weeks in an ISO week-numbering year of the given date. 25694 *
25695 * @description 25696 * Get the number of weeks in an ISO week-numbering year of the given date. 25697 * 25698 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 25699 * 25700 * ### v2.0.0 breaking changes: 25701 * 25702 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 25703 * 25704 * @param {Date|Number} date - the given date 25705 * @returns {Number} the number of ISO weeks in a year 25706 * @throws {TypeError} 1 argument required 25707 * 25708 * @example 25709 * // How many weeks are in ISO week-numbering year 2015? 25710 * var result = getISOWeeksInYear(new Date(2015, 1, 11)) 25711 * //=> 53 25712 */ 25713 25714 function getISOWeeksInYear(dirtyDate) { 25715 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 25716 var thisYear = __WEBPACK_IMPORTED_MODULE_0__startOfISOWeekYear_index_js__["a" /* default */](dirtyDate); 25717 var nextYear = __WEBPACK_IMPORTED_MODULE_0__startOfISOWeekYear_index_js__["a" /* default */](__WEBPACK_IMPORTED_MODULE_1__addWeeks_index_js__["a" /* default */](thisYear, 60)); 25718 var diff = nextYear.valueOf() - thisYear.valueOf(); // Round the number of weeks to the nearest integer 25719 // because the number of milliseconds in a week is not constant 25720 // (e.g. it's different in the week of the daylight saving time clock shift) 25721 25722 return Math.round(diff / MILLISECONDS_IN_WEEK); 25723 } 25724 25725 /***/ 25726 }), 25727 /* 359 */ 25728 /***/ (function (module, __webpack_exports__, __webpack_require__) { 25729 25730 "use strict"; 25731 /* harmony export (immutable) */ 25732 __webpack_exports__["a"] = getMilliseconds; 25733 /* harmony import */ 25734 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 25735 /* harmony import */ 25736 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 25737 25738 25739 /** 25740 * @name getMilliseconds 25741 * @category Millisecond Helpers 25742 * @summary Get the milliseconds of the given date. 25743 * 25744 * @description 25745 * Get the milliseconds of the given date. 25746 * 25747 * ### v2.0.0 breaking changes: 25748 * 25749 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 25750 * 25751 * @param {Date|Number} date - the given date 25752 * @returns {Number} the milliseconds 25753 * @throws {TypeError} 1 argument required 25754 * 25755 * @example 25756 * // Get the milliseconds of 29 February 2012 11:45:05.123: 25757 * var result = getMilliseconds(new Date(2012, 1, 29, 11, 45, 5, 123)) 25758 * //=> 123 25759 */ 25760 25761 function getMilliseconds(dirtyDate) { 25762 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 25763 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 25764 var milliseconds = date.getMilliseconds(); 25765 return milliseconds; 25766 } 25767 25768 /***/ 25769 }), 25770 /* 360 */ 25771 /***/ (function (module, __webpack_exports__, __webpack_require__) { 25772 25773 "use strict"; 25774 /* harmony export (immutable) */ 25775 __webpack_exports__["a"] = getMinutes; 25776 /* harmony import */ 25777 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 25778 /* harmony import */ 25779 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 25780 25781 25782 /** 25783 * @name getMinutes 25784 * @category Minute Helpers 25785 * @summary Get the minutes of the given date. 25786 *
25787 * @description 25788 * Get the minutes of the given date. 25789 * 25790 * ### v2.0.0 breaking changes: 25791 * 25792 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 25793 * 25794 * @param {Date|Number} date - the given date 25795 * @returns {Number} the minutes 25796 * @throws {TypeError} 1 argument required 25797 * 25798 * @example 25799 * // Get the minutes of 29 February 2012 11:45:05: 25800 * var result = getMinutes(new Date(2012, 1, 29, 11, 45, 5)) 25801 * //=> 45 25802 */ 25803 25804 function getMinutes(dirtyDate) { 25805 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 25806 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 25807 var minutes = date.getMinutes(); 25808 return minutes; 25809 } 25810 25811 /***/ 25812 }), 25813 /* 361 */ 25814 /***/ (function (module, __webpack_exports__, __webpack_require__) { 25815 25816 "use strict"; 25817 /* harmony export (immutable) */ 25818 __webpack_exports__["a"] = getMonth; 25819 /* harmony import */ 25820 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 25821 /* harmony import */ 25822 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 25823 25824 25825 /** 25826 * @name getMonth 25827 * @category Month Helpers 25828 * @summary Get the month of the given date. 25829 * 25830 * @description 25831 * Get the month of the given date. 25832 * 25833 * ### v2.0.0 breaking changes: 25834 * 25835 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 25836 * 25837 * @param {Date|Number} date - the given date 25838 * @returns {Number} the month 25839 * @throws {TypeError} 1 argument required 25840 * 25841 * @example 25842 * // Which month is 29 February 2012? 25843 * var result = getMonth(new Date(2012, 1, 29)) 25844 * //=> 1 25845 */ 25846 25847 function getMonth(dirtyDate) { 25848 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 25849 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 25850 var month = date.getMonth(); 25851 return month; 25852 } 25853 25854 /***/ 25855 }), 25856 /* 362 */ 25857 /***/ (function (module, __webpack_exports__, __webpack_require__) { 25858 25859 "use strict"; 25860 /* harmony export (immutable) */ 25861 __webpack_exports__["a"] = getOverlappingDaysInIntervals; 25862 /* harmony import */ 25863 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 25864 /* harmony import */ 25865 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 25866 25867 25868 var MILLISECONDS_IN_DAY = 24 * 60 * 60 * 1000; 25869 25870 /** 25871 * @name getOverlappingDaysInIntervals 25872 * @category Interval Helpers 25873 * @summary Get the number of days that overlap in two time intervals 25874 * 25875 * @description 25876 * Get the number of days that overlap in two time intervals 25877 * 25878 * ### v2.0.0 breaking changes: 25879 * 25880 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 25881 * 25882 * - The function was renamed from `getOverlappingDaysInRanges` to `getOverlappingDaysInIntervals`. 25883 * This change was made to mirror the use of the word "interval" in standard ISO 8601:2004 terminology: 25884 * 25885 * ``` 25886 * 2.1.3 25887 * time interval 25888 * part of the time axis limited by two instants 25889 * ``` 25890 * 25891 * Also, this function now accepts an object with `start` and `end` properties 25892 * instead of two arguments as an interval. 25893 * This function now throws `RangeError` if the start of the interval is after its end 25894 * or if any date in the interval is `Invalid Date`. 25895 * 25896 * ```javascript 25897 * // Before v2.0.0 25898 * 25899 * getOverlappingDaysInRanges( 25900 * new Date(2014, 0, 10), new Date(2014, 0, 20), 25901 * new Date(2014, 0, 17), new Date(2014, 0, 21) 25902 * ) 25903 * 25904 * // v2.0.0 onward 25905 * 25906 * getOverlappingDaysInIntervals( 25907 * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, 25908 * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } 25909 * ) 25910 * ``` 25911 * 25912 * @param {Interval} intervalLeft - the first interval to compare. See [Interval]{@link docs/Interval} 25913 * @param {Interval} intervalRight - the second interval to compare. See [Interval]{@link docs/Interval} 25914 * @returns {Number}
25914 the number of days that overlap in two time intervals 25915 * @throws {TypeError} 2 arguments required 25916 * @throws {RangeError} The start of an interval cannot be after its end 25917 * @throws {RangeError} Date in interval cannot be `Invalid Date` 25918 * 25919 * @example 25920 * // For overlapping time intervals adds 1 for each started overlapping day: 25921 * getOverlappingDaysInIntervals( 25922 * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, 25923 * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } 25924 * ) 25925 * //=> 3 25926 * 25927 * @example 25928 * // For non-overlapping time intervals returns 0: 25929 * getOverlappingDaysInIntervals( 25930 * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, 25931 * { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } 25932 * ) 25933 * //=> 0 25934 */ 25935 25936 function getOverlappingDaysInIntervals(dirtyIntervalLeft, dirtyIntervalRight) { 25937 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 25938 var intervalLeft = dirtyIntervalLeft || {}; 25939 var intervalRight = dirtyIntervalRight || {}; 25940 var leftStartTime = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](intervalLeft.start).getTime(); 25941 var leftEndTime = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](intervalLeft.end).getTime(); 25942 var rightStartTime = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](intervalRight.start).getTime(); 25943 var rightEndTime = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](intervalRight.end).getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` 25944 25945 if (!(leftStartTime <= leftEndTime && rightStartTime <= rightEndTime)) { 25946 throw new RangeError('Invalid interval'); 25947 } 25948 25949 var isOverlapping = leftStartTime < rightEndTime && rightStartTime < leftEndTime; 25950 25951 if (!isOverlapping) { 25952 return 0; 25953 } 25954 25955 var overlapStartDate = rightStartTime < leftStartTime ? leftStartTime : rightStartTime; 25956 var overlapEndDate = rightEndTime > leftEndTime ? leftEndTime : rightEndTime; 25957 var differenceInMs = overlapEndDate - overlapStartDate; 25958 return Math.ceil(differenceInMs / MILLISECONDS_IN_DAY); 25959 } 25960 25961 /***/ 25962 }), 25963 /* 363 */ 25964 /***/ (function (module, __webpack_exports__, __webpack_require__) { 25965 25966 "use strict"; 25967 /* harmony export (immutable) */ 25968 __webpack_exports__["a"] = getSeconds; 25969 /* harmony import */ 25970 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 25971 /* harmony import */ 25972 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 25973 25974 25975 /** 25976 * @name getSeconds 25977 * @category Second Helpers 25978 * @summary Get the seconds of the given date. 25979 * 25980 * @description 25981 * Get the seconds of the given date. 25982 * 25983 * ### v2.0.0 breaking changes: 25984 * 25985 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 25986 * 25987 * @param {Date|Number} date - the given date 25988 * @returns {Number} the seconds 25989 * @throws {TypeError} 1 argument required 25990 * 25991 * @example 25992 * // Get the seconds of 29 February 2012 11:45:05.123: 25993 * var result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123)) 25994 * //=> 5 25995 */ 25996 25997 function getSeconds(dirtyDate) { 25998 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 25999 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 26000 var seconds = date.getSeconds(); 26001 return seconds; 26002 } 26003 26004 /***/ 26005 }), 26006 /* 364 */ 26007 /***/ (function (module, __webpack_exports__, __webpack_require__) { 26008 26009 "use strict"; 26010 /* harmony export (immutable) */ 26011 __webpack_exports__["a"] = getUnixTime; 26012 /* harmony import */ 26013 var __WEBPACK_IMPORTED_MODULE_0__getTime_index_js__ = __webpack_require__(168); 26014 /* harmony import */ 26015 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 26016 26017 26018 /** 26019 * @name getUnixTime 26020 * @category Timestamp Helpers 26021 * @summary Get the seconds timestamp of the given date. 26022 *
vendor: 6,583 bytes, lines 26023-26150
26023 * @description 26024 * Get the seconds timestamp of the given date. 26025 * 26026 * ### v2.0.0 breaking changes: 26027 * 26028 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 26029 * 26030 * @param {Date|Number} date - the given date 26031 * @returns {Number} the timestamp 26032 * @throws {TypeError} 1 argument required 26033 * 26034 * @example 26035 * // Get the timestamp of 29 February 2012 11:45:05 CET: 26036 * var result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5)) 26037 * //=> 1330512305 26038 */ 26039 26040 function getUnixTime(dirtyDate) { 26041 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 26042 return Math.floor(__WEBPACK_IMPORTED_MODULE_0__getTime_index_js__["a" /* default */](dirtyDate) / 1000); 26043 } 26044 26045 /***/ 26046 }), 26047 /* 365 */ 26048 /***/ (function (module, __webpack_exports__, __webpack_require__) { 26049 26050 "use strict"; 26051 /* harmony export (immutable) */ 26052 __webpack_exports__["a"] = getWeekOfMonth; 26053 /* harmony import */ 26054 var __WEBPACK_IMPORTED_MODULE_0__getDate_index_js__ = __webpack_require__(162); 26055 /* harmony import */ 26056 var __WEBPACK_IMPORTED_MODULE_1__getDay_index_js__ = __webpack_require__(163); 26057 /* harmony import */ 26058 var __WEBPACK_IMPORTED_MODULE_2__startOfMonth_index_js__ = __webpack_require__(62); 26059 /* harmony import */ 26060 var __WEBPACK_IMPORTED_MODULE_3__lib_toInteger_index_js__ = __webpack_require__(6); 26061 /* harmony import */ 26062 var __WEBPACK_IMPORTED_MODULE_4__lib_requiredArgs_index_js__ = __webpack_require__(0); 26063 26064 26065 /** 26066 * @name getWeekOfMonth 26067 * @category Week Helpers 26068 * @summary Get the week of the month of the given date. 26069 * 26070 * @description 26071 * Get the week of the month of the given date. 26072 * 26073 * ### v2.0.0 breaking changes: 26074 * 26075 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 26076 * 26077 * @param {Date|Number} date - the given date 26078 * @param {Object} [options] - an object with options. 26079 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 26080 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 26081 * @returns {Number} the week of month 26082 * @throws {TypeError} 1 argument required 26083 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 26084 * 26085 * @example 26086 * // Which week of the month is 9 November 2017? 26087 * var result = getWeekOfMonth(new Date(2017, 10, 9)) 26088 * //=> 2 26089 */ 26090 26091 function getWeekOfMonth(date, dirtyOptions) { 26092 __WEBPACK_IMPORTED_MODULE_4__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 26093 var options = dirtyOptions || {}; 26094 var locale = options.locale; 26095 var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; 26096 var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : __WEBPACK_IMPORTED_MODULE_3__lib_toInteger_index_js__["a" /* default */](localeWeekStartsOn); 26097 var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : __WEBPACK_IMPORTED_MODULE_3__lib_toInteger_index_js__["a" /* default */](options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 26098 26099 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 26100 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 26101 } 26102 26103 var currentDayOfMonth = __WEBPACK_IMPORTED_MODULE_0__getDate_index_js__["a" /* default */](date); 26104 26105 if (isNaN(currentDayOfMonth)) { 26106 return currentDayOfMonth; 26107 } 26108 26109 var startWeekDay = __WEBPACK_IMPORTED_MODULE_1__getDay_index_js__["a" /* default */](__WEBPACK_IMPORTED_MODULE_2__startOfMonth_index_js__["a" /* default */](date)); 26110 var lastDayOfFirstWeek = 0; 26111 26112 if (startWeekDay >= weekStartsOn) { 26113 lastDayOfFirstWeek = weekStartsOn + 7 - startWeekDay; 26114 } else { 26115 lastDayOfFirstWeek = weekStartsOn - startWeekDay; 26116 } 26117 26118 var weekNumber = 1; 26119 26120 if (currentDayOfMonth > lastDayOfFirstWeek) { 26121 var remainingDaysAfterFirstWeek = currentDayOfMonth - lastDayOfFirstWeek; 26122 weekNumber = weekNumber + Math.ceil(remainingDaysAfterFirstWeek / 7); 26123 } 26124 26125 return weekNumber; 26126 } 26127 26128 /***/ 26129 }), 26130 /* 366 */ 26131 /***/ (function (module, __webpack_exports__, __webpack_require__) { 26132 26133 "use strict"; 26134 /* harmony export (immutable) */ 26135 __webpack_exports__["a"] = getWeeksInMonth; 26136 /* harmony import */ 26137 var __WEBPACK_IMPORTED_MODULE_0__differenceInCalendarWeeks_index_js__ = __webpack_require__(142); 26138 /* harmony import */ 26139 var __WEBPACK_IMPORTED_MODULE_1__lastDayOfMonth_index_js__ = __webpack_require__(171); 26140 /* harmony import */ 26141 var __WEBPACK_IMPORTED_MODULE_2__startOfMonth_index_js__ = __webpack_require__(62); 26142 /* harmony import */ 26143 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 26144 26145 26146 /** 26147 * @name getWeeksInMonth 26148 * @category Week Helpers 26149 * @summary Get the number of calendar weeks a month spans. 26150 *
26151 * @description 26152 * Get the number of calendar weeks the month in the given date spans. 26153 * 26154 * ### v2.0.0 breaking changes: 26155 * 26156 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 26157 * 26158 * @param {Date|Number} date - the given date 26159 * @param {Object} [options] - an object with options. 26160 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 26161 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 26162 * @returns {Number} the number of calendar weeks 26163 * @throws {TypeError} 2 arguments required 26164 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 26165 * 26166 * @example 26167 * // How many calendar weeks does February 2015 span? 26168 * var result = getWeeksInMonth(new Date(2015, 1, 8)) 26169 * //=> 4 26170 * 26171 * @example 26172 * // If the week starts on Monday, 26173 * // how many calendar weeks does July 2017 span? 26174 * var result = getWeeksInMonth(new Date(2017, 6, 5), { weekStartsOn: 1 }) 26175 * //=> 6 26176 */ 26177 26178 function getWeeksInMonth(date, options) { 26179 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 26180 return __WEBPACK_IMPORTED_MODULE_0__differenceInCalendarWeeks_index_js__["a" /* default */](__WEBPACK_IMPORTED_MODULE_1__lastDayOfMonth_index_js__["a" /* default */](date), __WEBPACK_IMPORTED_MODULE_2__startOfMonth_index_js__["a" /* default */](date), options) + 1; 26181 } 26182 26183 /***/ 26184 }), 26185 /* 367 */ 26186 /***/ (function (module, __webpack_exports__, __webpack_require__) { 26187 26188 "use strict"; 26189 /* harmony export (immutable) */ 26190 __webpack_exports__["a"] = getYear; 26191 /* harmony import */ 26192 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 26193 /* harmony import */ 26194 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 26195 26196 26197 /** 26198 * @name getYear 26199 * @category Year Helpers 26200 * @summary Get the year of the given date. 26201 * 26202 * @description 26203 * Get the year of the given date. 26204 * 26205 * ### v2.0.0 breaking changes: 26206 * 26207 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 26208 * 26209 * @param {Date|Number} date - the given date 26210 * @returns {Number} the year 26211 * @throws {TypeError} 1 argument required 26212 * 26213 * @example 26214 * // Which year is 2 July 2014? 26215 * var result = getYear(new Date(2014, 6, 2)) 26216 * //=> 2014 26217 */ 26218 26219 function getYear(dirtyDate) { 26220 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 26221 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 26222 var year = date.getFullYear(); 26223 return year; 26224 } 26225 26226 /***/ 26227 }), 26228 /* 368 */ 26229 /***/ (function (module, __webpack_exports__, __webpack_require__) { 26230 26231 "use strict"; 26232 /* harmony export (immutable) */ 26233 __webpack_exports__["a"] = intervalToDuration; 26234 /* harmony import */ 26235 var __WEBPACK_IMPORTED_MODULE_0__compareAsc_index_js__ = __webpack_require__(27); 26236 /* harmony import */ 26237 var __WEBPACK_IMPORTED_MODULE_1__differenceInYears_index_js__ = __webpack_require__(147); 26238 /* harmony import */ 26239 var __WEBPACK_IMPORTED_MODULE_2__differenceInMonths_index_js__ = __webpack_require__(60); 26240 /* harmony import */ 26241 var __WEBPACK_IMPORTED_MODULE_3__differenceInDays_index_js__ = __webpack_require__(86); 26242 /* harmony import */ 26243 var __WEBPACK_IMPORTED_MODULE_4__differenceInHours_index_js__ = __webpack_require__(144); 26244 /* harmony import */ 26245 var __WEBPACK_IMPORTED_MODULE_5__differenceInMinutes_index_js__ = __webpack_require__(146); 26246 /* harmony import */ 26247 var __WEBPACK_IMPORTED_MODULE_6__differenceInSeconds_index_js__ = __webpack_require__(61); 26248 /* harmony import */ 26249 var __WEBPACK_IMPORTED_MODULE_7__isValid_index_js__ = __webpack_require__(15); 26250 /* harmony import */ 26251 var __WEBPACK_IMPORTED_MODULE_8__lib_requiredArgs_index_js__ = __webpack_require__(0); 26252 /* harmony import */ 26253 var __WEBPACK_IMPORTED_MODULE_9__toDate_index_js__ = __webpack_require__(1); 26254 /* harmony import */ 26255 var __WEBPACK_IMPORTED_MODULE_10__sub_index_js__ = __webpack_require__(172); 26256 26257 26258 /** 26259 * @name intervalToDuration 26260 * @category Common Helpers 26261 * @summary Convert interval to duration 26262 *
26263 * @description 26264 * Convert a interval object to a duration object. 26265 * 26266 * @param {Interval} interval - the interval to convert to duration 26267 * 26268 * @returns {Duration} The duration Object 26269 * @throws {TypeError} Requires 2 arguments 26270 * @throws {RangeError} `start` must not be Invalid Date 26271 * @throws {RangeError} `end` must not be Invalid Date 26272 * 26273 * @example 26274 * // Get the duration between January 15, 1929 and April 4, 1968. 26275 * intervalToDuration({ 26276 * start: new Date(1929, 0, 15, 12, 0, 0), 26277 * end: new Date(1968, 3, 4, 19, 5, 0) 26278 * }) 26279 * // => { years: 39, months: 2, days: 20, hours: 7, minutes: 5, seconds: 0 } 26280 */ 26281 26282 function intervalToDuration(_ref) { 26283 var start = _ref.start, 26284 end = _ref.end; 26285 __WEBPACK_IMPORTED_MODULE_8__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 26286 var dateLeft = __WEBPACK_IMPORTED_MODULE_9__toDate_index_js__["a" /* default */](start); 26287 var dateRight = __WEBPACK_IMPORTED_MODULE_9__toDate_index_js__["a" /* default */](end); 26288 26289 if (!__WEBPACK_IMPORTED_MODULE_7__isValid_index_js__["a" /* default */](dateLeft)) { 26290 throw new RangeError('Start Date is invalid'); 26291 } 26292 26293 if (!__WEBPACK_IMPORTED_MODULE_7__isValid_index_js__["a" /* default */](dateRight)) { 26294 throw new RangeError('End Date is invalid'); 26295 } 26296 26297 var duration = { 26298 years: 0, 26299 months: 0, 26300 days: 0, 26301 hours: 0, 26302 minutes: 0, 26303 seconds: 0 26304 }; 26305 var sign = __WEBPACK_IMPORTED_MODULE_0__compareAsc_index_js__["a" /* default */](dateLeft, dateRight); 26306 duration.years = Math.abs(__WEBPACK_IMPORTED_MODULE_1__differenceInYears_index_js__["a" /* default */](dateLeft, dateRight)); 26307 var remainingMonths = __WEBPACK_IMPORTED_MODULE_10__sub_index_js__["a" /* default */](dateLeft, { 26308 years: sign * duration.years 26309 }); 26310 duration.months = Math.abs(__WEBPACK_IMPORTED_MODULE_2__differenceInMonths_index_js__["a" /* default */](remainingMonths, dateRight)); 26311 var remainingDays = __WEBPACK_IMPORTED_MODULE_10__sub_index_js__["a" /* default */](remainingMonths, { 26312 months: sign * duration.months 26313 }); 26314 duration.days = Math.abs(__WEBPACK_IMPORTED_MODULE_3__differenceInDays_index_js__["a" /* default */](remainingDays, dateRight)); 26315 var remainingHours = __WEBPACK_IMPORTED_MODULE_10__sub_index_js__["a" /* default */](remainingDays, { 26316 days: sign * duration.days 26317 }); 26318 duration.hours = Math.abs(__WEBPACK_IMPORTED_MODULE_4__differenceInHours_index_js__["a" /* default */](remainingHours, dateRight)); 26319 var remainingMinutes = __WEBPACK_IMPORTED_MODULE_10__sub_index_js__["a" /* default */](remainingHours, { 26320 hours: sign * duration.hours 26321 }); 26322 duration.minutes = Math.abs(__WEBPACK_IMPORTED_MODULE_5__differenceInMinutes_index_js__["a" /* default */](remainingMinutes, dateRight)); 26323 var remainingSeconds = __WEBPACK_IMPORTED_MODULE_10__sub_index_js__["a" /* default */](remainingMinutes, { 26324 minutes: sign * duration.minutes 26325 }); 26326 duration.seconds = Math.abs(__WEBPACK_IMPORTED_MODULE_6__differenceInSeconds_index_js__["a" /* default */](remainingSeconds, dateRight)); 26327 return duration; 26328 } 26329 26330 /***/ 26331 }), 26332 /* 369 */ 26333 /***/ (function (module, __webpack_exports__, __webpack_require__) { 26334 26335 "use strict"; 26336 /* harmony export (immutable) */ 26337 __webpack_exports__["a"] = isAfter; 26338 /* harmony import */ 26339 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 26340 /* harmony import */ 26341 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 26342 26343 26344 /** 26345 * @name isAfter 26346 * @category Common Helpers 26347 * @summary Is the first date after the second one? 26348 *
26349 * @description 26350 * Is the first date after the second one? 26351 * 26352 * ### v2.0.0 breaking changes: 26353 * 26354 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 26355 * 26356 * @param {Date|Number} date - the date that should be after the other one to return true 26357 * @param {Date|Number} dateToCompare - the date to compare with 26358 * @returns {Boolean} the first date is after the second date 26359 * @throws {TypeError} 2 arguments required 26360 * 26361 * @example 26362 * // Is 10 July 1989 after 11 February 1987? 26363 * var result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11)) 26364 * //=> true 26365 */ 26366 26367 function isAfter(dirtyDate, dirtyDateToCompare) { 26368 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 26369 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 26370 var dateToCompare = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateToCompare); 26371 return date.getTime() > dateToCompare.getTime(); 26372 } 26373 26374 /***/ 26375 }), 26376 /* 370 */ 26377 /***/ (function (module, __webpack_exports__, __webpack_require__) { 26378 26379 "use strict"; 26380 /* harmony export (immutable) */ 26381 __webpack_exports__["a"] = isBefore; 26382 /* harmony import */ 26383 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 26384 /* harmony import */ 26385 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 26386 26387 26388 /** 26389 * @name isBefore 26390 * @category Common Helpers 26391 * @summary Is the first date before the second one? 26392 * 26393 * @description 26394 * Is the first date before the second one? 26395 * 26396 * ### v2.0.0 breaking changes: 26397 * 26398 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 26399 * 26400 * @param {Date|Number} date - the date that should be before the other one to return true 26401 * @param {Date|Number} dateToCompare - the date to compare with 26402 * @returns {Boolean} the first date is before the second date 26403 * @throws {TypeError} 2 arguments required 26404 * 26405 * @example 26406 * // Is 10 July 1989 before 11 February 1987? 26407 * var result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11)) 26408 * //=> false 26409 */ 26410 26411 function isBefore(dirtyDate, dirtyDateToCompare) { 26412 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 26413 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 26414 var dateToCompare = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDateToCompare); 26415 return date.getTime() < dateToCompare.getTime(); 26416 } 26417 26418 /***/ 26419 }), 26420 /* 371 */ 26421 /***/ (function (module, __webpack_exports__, __webpack_require__) { 26422 26423 "use strict"; 26424 /* harmony export (immutable) */ 26425 __webpack_exports__["a"] = isDate; 26426 /* harmony import */ 26427 var __WEBPACK_IMPORTED_MODULE_0__lib_requiredArgs_index_js__ = __webpack_require__(0); 26428 26429 /** 26430 * @name isDate 26431 * @category Common Helpers 26432 * @summary Is the given value a date? 26433 *
26434 * @description 26435 * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes. 26436 * 26437 * ### v2.0.0 breaking changes: 26438 * 26439 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 26440 * 26441 * @param {*} value - the value to check 26442 * @returns {boolean} true if the given value is a date 26443 * @throws {TypeError} 1 arguments required 26444 * 26445 * @example 26446 * // For a valid date: 26447 * var result = isDate(new Date()) 26448 * //=> true 26449 * 26450 * @example 26451 * // For an invalid date: 26452 * var result = isDate(new Date(NaN)) 26453 * //=> true 26454 * 26455 * @example 26456 * // For some value: 26457 * var result = isDate('2014-02-31') 26458 * //=> false 26459 * 26460 * @example 26461 * // For an object: 26462 * var result = isDate({}) 26463 * //=> false 26464 */ 26465 26466 function isDate(value) { 26467 __WEBPACK_IMPORTED_MODULE_0__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 26468 return value instanceof Date || typeof value === 'object' && Object.prototype.toString.call(value) === '[object Date]'; 26469 } 26470 26471 /***/ 26472 }), 26473 /* 372 */ 26474 /***/ (function (module, __webpack_exports__, __webpack_require__) { 26475 26476 "use strict"; 26477 /* harmony export (immutable) */ 26478 __webpack_exports__["a"] = isEqual; 26479 /* harmony import */ 26480 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 26481 /* harmony import */ 26482 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 26483 26484 26485 /** 26486 * @name isEqual 26487 * @category Common Helpers 26488 * @summary Are the given dates equal? 26489 * 26490 * @description 26491 * Are the given dates equal? 26492 * 26493 * ### v2.0.0 breaking changes: 26494 * 26495 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 26496 * 26497 * @param {Date|Number} dateLeft - the first date to compare 26498 * @param {Date|Number} dateRight - the second date to compare 26499 * @returns {Boolean} the dates are equal 26500 * @throws {TypeError} 2 arguments required 26501 * 26502 * @example 26503 * // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal? 26504 * var result = isEqual( 26505 * new Date(2014, 6, 2, 6, 30, 45, 0), 26506 * new Date(2014, 6, 2, 6, 30, 45, 500) 26507 * ) 26508 * //=> false 26509 */ 26510 26511 function isEqual(dirtyLeftDate, dirtyRightDate) { 26512 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 26513 var dateLeft = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyLeftDate); 26514 var dateRight = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyRightDate); 26515 return dateLeft.getTime() === dateRight.getTime(); 26516 } 26517 26518 /***/ 26519 }), 26520 /* 373 */ 26521 /***/ (function (module, __webpack_exports__, __webpack_require__) { 26522 26523 "use strict"; 26524 /* harmony export (immutable) */ 26525 __webpack_exports__["a"] = isExists; 26526 26527 /** 26528 * @name isExists 26529 * @category Common Helpers 26530 * @summary Is the given date exists? 26531 *
26532 * @description 26533 * Checks if the given arguments convert to an existing date. 26534 * 26535 * @param {Number} year of the date to check 26536 * @param {Number} month of the date to check 26537 * @param {Number} day of the date to check 26538 * @returns {Boolean} the date exists 26539 * @throws {TypeError} 3 arguments required 26540 * 26541 * @example 26542 * // For the valid date: 26543 * var result = isExists(2018, 0, 31) 26544 * //=> true 26545 * 26546 * @example 26547 * // For the invalid date: 26548 * var result = isExists(2018, 1, 31) 26549 * //=> false 26550 */ 26551 function isExists(year, month, day) { 26552 if (arguments.length < 3) { 26553 throw new TypeError('3 argument required, but only ' + arguments.length + ' present'); 26554 } 26555 26556 var date = new Date(year, month, day); 26557 return date.getFullYear() === year && date.getMonth() === month && date.getDate() === day; 26558 } 26559 26560 /***/ 26561 }), 26562 /* 374 */ 26563 /***/ (function (module, __webpack_exports__, __webpack_require__) { 26564 26565 "use strict"; 26566 /* harmony export (immutable) */ 26567 __webpack_exports__["a"] = isFirstDayOfMonth; 26568 /* harmony import */ 26569 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 26570 /* harmony import */ 26571 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 26572 26573 26574 /** 26575 * @name isFirstDayOfMonth 26576 * @category Month Helpers 26577 * @summary Is the given date the first day of a month? 26578 * 26579 * @description 26580 * Is the given date the first day of a month? 26581 * 26582 * ### v2.0.0 breaking changes: 26583 * 26584 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 26585 * 26586 * @param {Date|Number} date - the date to check 26587 * @returns {Boolean} the date is the first day of a month 26588 * @throws {TypeError} 1 argument required 26589 * 26590 * @example 26591 * // Is 1 September 2014 the first day of a month? 26592 * var result = isFirstDayOfMonth(new Date(2014, 8, 1)) 26593 * //=> true 26594 */ 26595 26596 function isFirstDayOfMonth(dirtyDate) { 26597 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 26598 return __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate).getDate() === 1; 26599 } 26600 26601 /***/ 26602 }), 26603 /* 375 */ 26604 /***/ (function (module, __webpack_exports__, __webpack_require__) { 26605 26606 "use strict"; 26607 /* harmony export (immutable) */ 26608 __webpack_exports__["a"] = isFriday; 26609 /* harmony import */ 26610 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 26611 /* harmony import */ 26612 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 26613 26614 26615 /** 26616 * @name isFriday 26617 * @category Weekday Helpers 26618 * @summary Is the given date Friday? 26619 * 26620 * @description 26621 * Is the given date Friday? 26622 * 26623 * ### v2.0.0 breaking changes: 26624 * 26625 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 26626 * 26627 * @param {Date|Number} date - the date to check 26628 * @returns {Boolean} the date is Friday 26629 * @throws {TypeError} 1 argument required 26630 * 26631 * @example 26632 * // Is 26 September 2014 Friday? 26633 * var result = isFriday(new Date(2014, 8, 26)) 26634 * //=> true 26635 */ 26636 26637 function isFriday(dirtyDate) { 26638 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 26639 return __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate).getDay() === 5; 26640 } 26641 26642 /***/ 26643 }), 26644 /* 376 */ 26645 /***/ (function (module, __webpack_exports__, __webpack_require__) { 26646 26647 "use strict"; 26648 /* harmony export (immutable) */ 26649 __webpack_exports__["a"] = isFuture; 26650 /* harmony import */ 26651 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 26652 /* harmony import */ 26653 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 26654 26655 26656 /** 26657 * @name isFuture 26658 * @category Common Helpers 26659 * @summary Is the given date in the future? 26660 * @pure false 26661 *
26662 * @description 26663 * Is the given date in the future? 26664 * 26665 * > â ï¸ Please note that this function is not present in the FP submodule as 26666 * > it uses `Date.now()` internally hence impure and can't be safely curried. 26667 * 26668 * ### v2.0.0 breaking changes: 26669 * 26670 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 26671 * 26672 * @param {Date|Number} date - the date to check 26673 * @returns {Boolean} the date is in the future 26674 * @throws {TypeError} 1 argument required 26675 * 26676 * @example 26677 * // If today is 6 October 2014, is 31 December 2014 in the future? 26678 * var result = isFuture(new Date(2014, 11, 31)) 26679 * //=> true 26680 */ 26681 26682 function isFuture(dirtyDate) { 26683 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 26684 return __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate).getTime() > Date.now(); 26685 } 26686 26687 /***/ 26688 }), 26689 /* 377 */ 26690 /***/ (function (module, __webpack_exports__, __webpack_require__) { 26691 26692 "use strict"; 26693 /* harmony export (immutable) */ 26694 __webpack_exports__["a"] = isLastDayOfMonth; 26695 /* harmony import */ 26696 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 26697 /* harmony import */ 26698 var __WEBPACK_IMPORTED_MODULE_1__endOfDay_index_js__ = __webpack_require__(91); 26699 /* harmony import */ 26700 var __WEBPACK_IMPORTED_MODULE_2__endOfMonth_index_js__ = __webpack_require__(89); 26701 /* harmony import */ 26702 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 26703 26704 26705 /** 26706 * @name isLastDayOfMonth 26707 * @category Month Helpers 26708 * @summary Is the given date the last day of a month? 26709 * 26710 * @description 26711 * Is the given date the last day of a month? 26712 * 26713 * ### v2.0.0 breaking changes: 26714 * 26715 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 26716 * 26717 * @param {Date|Number} date - the date to check 26718 * @returns {Boolean} the date is the last day of a month 26719 * @throws {TypeError} 1 argument required 26720 * 26721 * @example 26722 * // Is 28 February 2014 the last day of a month? 26723 * var result = isLastDayOfMonth(new Date(2014, 1, 28)) 26724 * //=> true 26725 */ 26726 26727 function isLastDayOfMonth(dirtyDate) { 26728 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 26729 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 26730 return __WEBPACK_IMPORTED_MODULE_1__endOfDay_index_js__["a" /* default */](date).getTime() === __WEBPACK_IMPORTED_MODULE_2__endOfMonth_index_js__["a" /* default */](date).getTime(); 26731 } 26732 26733 /***/ 26734 }), 26735 /* 378 */ 26736 /***/ (function (module, __webpack_exports__, __webpack_require__) { 26737 26738 "use strict"; 26739 /* harmony export (immutable) */ 26740 __webpack_exports__["a"] = isMatch; 26741 /* harmony import */ 26742 var __WEBPACK_IMPORTED_MODULE_0__parse_index_js__ = __webpack_require__(174); 26743 /* harmony import */ 26744 var __WEBPACK_IMPORTED_MODULE_1__isValid_index_js__ = __webpack_require__(15); 26745 /* harmony import */ 26746 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 26747 26748 26749 /** 26750 * @name isMatch 26751 * @category Common Helpers 26752 * @summary validates the date string against given formats 26753 *
26754 * @description 26755 * Return the true if given date is string correct against the given format else 26756 * will return false. 26757 * 26758 * > â ï¸ Please note that the `format` tokens differ from Moment.js and other libraries. 26759 * > See: https://git.io/fxCyr 26760 * 26761 * The characters in the format string wrapped between two single quotes characters (') are escaped. 26762 * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. 26763 * 26764 * Format of the format string is based on Unicode Technical Standard #35: 26765 * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table 26766 * with a few additions (see note 5 below the table). 26767 * 26768 * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited 26769 * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception: 26770 * 26771 * ```javascript 26772 * isMatch('23 AM', 'HH a') 26773 * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time 26774 * ``` 26775 * 26776 * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true 26777 * 26778 * Accepted format string patterns: 26779 * | Unit |Prior| Pattern | Result examples | Notes | 26780 * |---------------------------------|-----|---------|-----------------------------------|-------| 26781 * | Era | 140 | G..GGG | AD, BC | | 26782 * | | | GGGG | Anno Domini, Before Christ | 2 | 26783 * | | | GGGGG | A, B | | 26784 * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 | 26785 * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 | 26786 * | | | yy | 44, 01, 00, 17 | 4 | 26787 * | | | yyy | 044, 001, 123, 999 | 4 | 26788 * | | | yyyy | 0044, 0001, 1900, 2017 | 4 | 26789 * | | | yyyyy | ... | 2,4 | 26790 * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 | 26791 * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 | 26792 * | | | YY | 44, 01, 00, 17 | 4,6 | 26793 * | | | YYY | 044, 001, 123, 999 | 4 | 26794 * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 | 26795 * | | | YYYYY | ... | 2,4 | 26796 * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 | 26797 * | | | RR | -43, 01, 00, 17 | 4,5 | 26798 * | | | RRR | -043, 001, 123, 999, -999 | 4,5 | 26799 * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 | 26800 * | | | RRRRR | ... | 2,4,5 | 26801 * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 | 26802 * | | | uu | -43, 01, 99, -99 | 4 | 26803 * | | | uuu | -043, 001, 123, 999, -999 | 4 | 26804 * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 | 26805 * | | | uuuuu | ... | 2,4 | 26806 * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | | 26807 * | | | Qo | 1st, 2nd, 3rd, 4th | 5 | 26808 * | | | QQ | 01, 02, 03, 04 | | 26809 * | | | QQQ | Q1, Q2, Q3, Q4 | | 26810 * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | 26811 * | | | QQQQQ | 1, 2, 3, 4 | 4 | 26812 * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | | 26813 * | | | qo | 1st, 2nd, 3rd, 4th | 5 | 26814 * | | | qq | 01, 02, 03, 04 | | 26815 * | | | qqq | Q1, Q2, Q3, Q4 | | 26816 * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 | 26817 * | | | qqqqq | 1, 2, 3, 4 | 3 | 26818 * | Month (formatting) | 110 | M | 1, 2, ..., 12 | | 26819 * | | | Mo | 1st, 2nd, ..., 12th | 5 | 26820 * | | | MM | 01, 02, ..., 12 | | 26821 * | | | MMM | Jan, Feb, ..., Dec | | 26822 * | | | MMMM | January, February, ..., December | 2 | 26823 * | | | MMMMM | J, F, ..., D | | 26824 * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | | 26825 * | | | Lo | 1st, 2nd, ..., 12th | 5 | 26826 * | | | LL | 01, 02, ..., 12 | | 26827 * | | | LLL | Jan, Feb, ..., Dec | | 26828 * | | | LLLL | January, February, ..., December | 2 | 26829 * | | | LLLLL | J, F, ..., D | | 26830 * | Local week of year | 100 | w | 1, 2, ..., 53 | | 26831 * | | | wo | 1st, 2nd, ..., 53th | 5 | 26832 * | | | ww | 01, 02, ..., 53 | | 26833 * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 | 26834 * | | | Io | 1st, 2nd, ..., 53th | 5 | 26835 * | | | II | 01, 02, ..., 53 | 5 | 26836 * | Day of month | 90 | d | 1, 2, ..., 31 | | 26837 * | | | do | 1st, 2nd, ..., 31st | 5 | 26838 * | | | dd | 01, 02, ..., 31 | | 26839 * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 | 26840 * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 | 26841 * | | | DD | 01, 02, ..., 365, 366 | 7 | 26842 * | | | DDD | 001, 002, ..., 365, 366 | | 26843 * | | | DDDD | ... | 2 | 26844 * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Su | | 26845 * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 | 26846 * | | | EEEEE | M, T, W, T, F, S, S | | 26847 * | | | EEEEEE | Mo, Tu, We, Th, Fr, Su, Sa | | 26848 * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 | 26849 * | | | io | 1st, 2nd, ..., 7th | 5 | 26850 * | | | ii | 01, 02, ...,
2685007 | 5 | 26851 * | | | iii | Mon, Tue, Wed, ..., Su | 5 | 26852 * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 | 26853 * | | | iiiii | M, T, W, T, F, S, S | 5 | 26854 * | | | iiiiii | Mo, Tu, We, Th, Fr, Su, Sa | 5 | 26855 * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | | 26856 * | | | eo | 2nd, 3rd, ..., 1st | 5 | 26857 * | | | ee | 02, 03, ..., 01 | | 26858 * | | | eee | Mon, Tue, Wed, ..., Su | | 26859 * | | | eeee | Monday, Tuesday, ..., Sunday | 2 | 26860 * | | | eeeee | M, T, W, T, F, S, S | | 26861 * | | | eeeeee | Mo, Tu, We, Th, Fr, Su, Sa | | 26862 * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | | 26863 * | | | co | 2nd, 3rd, ..., 1st | 5 | 26864 * | | | cc | 02, 03, ..., 01 | | 26865 * | | | ccc | Mon, Tue, Wed, ..., Su | | 26866 * | | | cccc | Monday, Tuesday, ..., Sunday | 2 | 26867 * | | | ccccc | M, T, W, T, F, S, S | | 26868 * | | | cccccc | Mo, Tu, We, Th, Fr, Su, Sa | | 26869 * | AM, PM | 80 | a..aaa | AM, PM | | 26870 * | | | aaaa | a.m., p.m. | 2 | 26871 * | | | aaaaa | a, p | | 26872 * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | | 26873 * | | | bbbb | a.m., p.m., noon, midnight | 2 | 26874 * | | | bbbbb | a, p, n, mi | | 26875 * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | | 26876 * | | | BBBB | at night, in the morning, ... | 2 | 26877 * | | | BBBBB | at night, in the morning, ... | | 26878 * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | | 26879 * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 | 26880 * | | | hh | 01, 02, ..., 11, 12 | | 26881 * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | | 26882 * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 | 26883 * | | | HH | 00, 01, 02, ..., 23 | | 26884 * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | | 26885 * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 | 26886 * | | | KK | 01, 02, ..., 11, 00 | | 26887 * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | | 26888 * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 | 26889 * | | | kk | 24, 01, 02, ..., 23 | | 26890 * | Minute | 60 | m | 0, 1, ..., 59 | | 26891 * | | | mo | 0th, 1st, ..., 59th | 5 | 26892 * | | | mm | 00, 01, ..., 59 | | 26893 * | Second | 50 | s | 0, 1, ..., 59 | | 26894 * | | | so | 0th, 1st, ..., 59th | 5 | 26895 * | | | ss | 00, 01, ..., 59 | | 26896 * | Seconds timestamp | 40 | t | 512969520 | | 26897 * | | | tt | ... | 2 | 26898 * | Fraction of second | 30 | S | 0, 1, ..., 9 | | 26899 * | | | SS | 00, 01, ..., 99 | | 26900 * | | | SSS | 000, 0001, ..., 999 | | 26901 * | | | SSSS | ... | 2 | 26902 * | Milliseconds timestamp | 20 | T | 512969520900 | | 26903 * | | | TT | ... | 2 | 26904 * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | | 26905 * | | | XX | -0800, +0530, Z | | 26906 * | | | XXX | -08:00, +05:30, Z | | 26907 * | | | XXXX | -0800, +0530, Z, +123456 | 2 | 26908 * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | 26909 * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | | 26910 * | | | xx | -0800, +0530, +0000 | | 26911 * | | | xxx | -08:00, +05:30, +00:00 | 2 | 26912 * | | | xxxx | -0800, +0530, +0000, +123456 | | 26913 * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | 26914 * | Long localized date | NA | P | 05/29/1453 | 5,8 | 26915 * | | | PP | May 29, 1453 | | 26916 * | | | PPP | May 29th, 1453 | | 26917 * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 | 26918 * | Long localized time | NA | p | 12:00 AM | 5,8 | 26919 * | | | pp | 12:00:00 AM | | 26920 * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | | 26921 * | | | PPpp | May 29, 1453, 12:00:00 AM | | 26922 * | | | PPPpp | May 29th, 1453 at ... | | 26923 * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 | 26924 * Notes: 26925 * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale 26926 * are the same as "stand-alone" units, but are different in some languages. 26927 * "Formatting" units are declined according to the rules of the language 26928 * in the context of a date. "Stand-alone" units are always nominative singular. 26929 * In `format` function, they will produce different result: 26930 * 26931 * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` 26932 * 26933 * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` 26934 * 26935 * `isMatch` will try to match both formatting and stand-alone units interchangably. 26936 * 26937 * 2. Any sequence of the identical letters is a pattern, unless it is escaped by 26938 * the single quote characters (see below). 26939 * If the sequence is longer than listed in table: 26940 * - for numerical units (`yyyyyyyy`) `isMatch` will try to match a number 26941 * as wide as the sequence 26942 * - for text units (`MMMMMMMM`) `isMatch` will try to match the widest variation of the unit. 26943 * These variations are marked with "2" in the last column of the table. 26944 * 26945 * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. 26946 * These tokens represent the shortest form of the quarter. 26947 * 26948 * 4. The main difference between `y` and `u` patterns are B.C. years: 26949 * 26950 * | Year | `y` | `u` | 26951 * |------|-----|-----| 26952 * | AC 1 | 1 | 1 | 26953 * | BC 1 | 1 | 0 | 26954 * | BC 2 | 2 | -1 | 26955 * 26956 * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`: 26957 * 26958 * `isMatch('50', 'yy') //=> true` 26959 * 26960 * `isMatch('75', 'yy') //=> true` 26961 * 26962 * while `uu` will use the year as is: 26963 * 26964 * `isMatch('50', 'uu') //=> true` 26965 * 26966 * `isMatch('75', 'uu') //=> true` 26967 * 26968 * The same difference is true for local and ISO week-numbering years (`Y` and `R`), 26969 * except local week-numbering years are dependent on `options.weekStartsOn` 26970 * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear} 26971 * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}). 26972 * 26973 * 5. These patterns are not in the Unicode Technical Standard #35: 26974 * - `i`: ISO day of week 26975 * - `I`: ISO week of year 26976 * - `R`: ISO week-numbering year 26977 * - `o`: ordinal number modifier 26978 * - `P`: long localized date 26979 * - `p`: long localized time 26980 * 26981 * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. 26982 * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr 26983 * 26984 * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month. 26985 * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr 26986 *
26987 * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based 26988 * on the given locale. 26989 * 26990 * using `en-US` locale: `P` => `MM/dd/yyyy` 26991 * using `en-US` locale: `p` => `hh:mm a` 26992 * using `pt-BR` locale: `P` => `dd/MM/yyyy` 26993 * using `pt-BR` locale: `p` => `HH:mm` 26994 * 26995 * Values will be checked in the descending order of its unit's priority. 26996 * Units of an equal priority overwrite each other in the order of appearance. 26997 * 26998 * If no values of higher priority are matched (e.g. when matching string 'January 1st' without a year), 26999 * the values will be taken from today's using `new Date()` date which works as a context of parsing. 27000 * 27001 * The result may vary by locale. 27002 * 27003 * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned. 27004 * 27005 * 27006 * 27007 * @param {String} dateString - the date string to verify 27008 * @param {String} formatString - the string of tokens 27009 * @param {Object} [options] - an object with options. 27010 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 27011 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 27012 * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year 27013 * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`; 27014 * see: https://git.io/fxCyr 27015 * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; 27016 * see: https://git.io/fxCyr 27017 * @returns {Boolean} 27018 * @throws {TypeError} 2 arguments required 27019 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 27020 * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 27021 * @throws {RangeError} `options.locale` must contain `match` property 27022 * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr 27023 * @throws {RangeError} use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr 27024 * @throws {RangeError} use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr 27025 * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr 27026 * @throws {RangeError} format string contains an unescaped latin alphabet character 27027 * 27028 * @example 27029 * // Match 11 February 2014 from middle-endian format: 27030 * var result = isMatch('02/11/2014', 'MM/dd/yyyy') 27031 * //=> true 27032 * 27033 * @example 27034 * // Match 28th of February in Esperanto locale in the context of 2010 year: 27035 * import eo from 'date-fns/locale/eo' 27036 * var result = isMatch('28-a de februaro', "do 'de' MMMM", { 27037 * locale: eo 27038 * }) 27039 * //=> true 27040 */ 27041 27042 function isMatch(dateString, formatString, dirtyOptions) { 27043 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 27044 return __WEBPACK_IMPORTED_MODULE_1__isValid_index_js__["a" /* default */](__WEBPACK_IMPORTED_MODULE_0__parse_index_js__["a" /* default */](dateString, formatString, new Date(), dirtyOptions)); 27045 } 27046 27047 /***/ 27048 }), 27049 /* 379 */ 27050 /***/ (function (module, __webpack_exports__, __webpack_require__) { 27051 27052 "use strict"; 27053 /* harmony import */ 27054 var __WEBPACK_IMPORTED_MODULE_0__lib_getUTCWeekYear_index_js__ = __webpack_require__(92); 27055 /* harmony import */ 27056 var __WEBPACK_IMPORTED_MODULE_1__lib_setUTCDay_index_js__ = __webpack_require__(380); 27057 /* harmony import */ 27058 var __WEBPACK_IMPORTED_MODULE_2__lib_setUTCISODay_index_js__ = __webpack_require__(381); 27059 /* harmony import */ 27060 var __WEBPACK_IMPORTED_MODULE_3__lib_setUTCISOWeek_index_js__ = __webpack_require__(382); 27061 /* harmony import */ 27062 var __WEBPACK_IMPORTED_MODULE_4__lib_setUTCWeek_index_js__ = __webpack_require__(383); 27063 /* harmony import */ 27064 var __WEBPACK_IMPORTED_MODULE_5__lib_startOfUTCISOWeek_index_js__ = __webpack_require__(63); 27065 /* harmony import */ 27066 var __WEBPACK_IMPORTED_MODULE_6__lib_startOfUTCWeek_index_js__ = __webpack_require__(50); 27067 27068 27069 var MILLISECONDS_IN_HOUR = 3600000; 27070 var MILLISECONDS_IN_MINUTE = 60000; 27071 var MILLISECONDS_IN_SECOND = 1000; 27072 var numericPatterns = { 27073 month: /^(1[0-2]|0?\d)/, 27074 // 0 to 12 27075 date: /^(3[0-1]|[0-2]?\d)/, 27076 // 0 to 31 27077 dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/, 27078 // 0 to 366 27079 week: /^(5[0-3]|[0-4]?\d)/, 27080 // 0 to 53 27081 hour23h: /^(2[0-3]|[0-1]?\d)/, 27082 // 0 to 23 27083 hour24h: /^(2[0-4]|[0-1]?\d)/, 27084 // 0 to 24 27085 hour11h: /^(1[0-1]|0?\d)/, 27086 // 0 to 11 27087 hour12h: /^(1[0-2]|0?\d)/, 27088 // 0 to 12 27089 minute: /^[0-5]?\d/, 27090 // 0 to 59 27091 second: /^[0-5]?\d/, 27092 // 0 to 59 27093 singleDigit: /^\d/, 27094 // 0 to 9 27095 twoDigits: /^\d{1,2}/, 27096 // 0 to 99 27097 threeDigits: /^\d{1,3}/, 27098 // 0 to 999 27099 fourDigits: /^\d{1,4}/, 27100 // 0 to 9999 27101 anyDigitsSigned: /^-?\d+/, 27102 singleDigitSigned: /^-?\d/, 27103 // 0 to 9, -0 to -9 27104 twoDigitsSigned: /^-?\d{1,2}/, 27105 // 0 to 99, -0 to -99 27106 threeDigitsSigned: /^-?\d{1,3}/, 27107 // 0 to 999, -0 to -999 27108 fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999 27109 27110 }; 27111 var timezonePatterns = { 27112 basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/, 27113 basic: /^([+-])(\d{2})(\d{2})|Z/, 27114 basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/, 27115 extended: /^([+-])(\d{2}):(\d{2})|Z/, 27116 extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/ 27117 }; 27118 27119 function parseNumericPattern(pattern, string, valueCallback) { 27120 var matchResult = string.match(pattern); 27121 27122 if (!matchResult) { 27123 return null; 27124 } 27125 27126 var value = parseInt(matchResult[0], 10); 27127 return { 27128 value: valueCallback ? valueCallback(value) : value, 27129 rest: string.slice(matchResult[0].length) 27130 }; 27131 } 27132 27133 function parseTimezonePattern(pattern, string) { 27134 var matchResult = string.match(pattern); 27135 27136 if (!matchResult) { 27137 return null; 27138 } // Input is 'Z' 27139 27140 27141 if (matchResult[0] === 'Z') { 27142 return { 27143 value: 0, 27144 rest: string.slice(1) 27145 }; 27146 } 27147 27148 var sign = matchResult[1] === '+' ? 1 : -1; 27149 var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0; 27150 var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0; 27151 var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0; 27152 return { 27153 value: sign * (hours * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * MILLISECONDS_IN_SECOND), 27154 rest: string.slice(matchResult[0].length) 27155 }; 27156 } 27157 27158 function parseAnyDigitsSigned(string, valueCallback) { 27159 return parseNumericPattern(numericPatterns.anyDigitsSigned, string, valueCallback); 27160 } 27161 27162 function parseNDigits(n, string, valueCallback) { 27163 switch (n) { 27164 case 1: 27165 return parseNumericPattern(numericPatterns.singleDigit, string, valueCallback); 27166 27167 case 2: 27168 return parseNumericPattern(numericPatterns.twoDigits, str
vendor: 10,475 bytes, lines 27168-27375
27168ing, valueCallback); 27169 27170 case 3: 27171 return parseNumericPattern(numericPatterns.threeDigits, string, valueCallback); 27172 27173 case 4: 27174 return parseNumericPattern(numericPatterns.fourDigits, string, valueCallback); 27175 27176 default: 27177 return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), string, valueCallback); 27178 } 27179 } 27180 27181 function parseNDigitsSigned(n, string, valueCallback) { 27182 switch (n) { 27183 case 1: 27184 return parseNumericPattern(numericPatterns.singleDigitSigned, string, valueCallback); 27185 27186 case 2: 27187 return parseNumericPattern(numericPatterns.twoDigitsSigned, string, valueCallback); 27188 27189 case 3: 27190 return parseNumericPattern(numericPatterns.threeDigitsSigned, string, valueCallback); 27191 27192 case 4: 27193 return parseNumericPattern(numericPatterns.fourDigitsSigned, string, valueCallback); 27194 27195 default: 27196 return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), string, valueCallback); 27197 } 27198 } 27199 27200 function dayPeriodEnumToHours(enumValue) { 27201 switch (enumValue) { 27202 case 'morning': 27203 return 4; 27204 27205 case 'evening': 27206 return 17; 27207 27208 case 'pm': 27209 case 'noon': 27210 case 'afternoon': 27211 return 12; 27212 27213 case 'am': 27214 case 'midnight': 27215 case 'night': 27216 default: 27217 return 0; 27218 } 27219 } 27220 27221 function normalizeTwoDigitYear(twoDigitYear, currentYear) { 27222 var isCommonEra = currentYear > 0; // Absolute number of the current year: 27223 // 1 -> 1 AC 27224 // 0 -> 1 BC 27225 // -1 -> 2 BC 27226 27227 var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear; 27228 var result; 27229 27230 if (absCurrentYear <= 50) { 27231 result = twoDigitYear || 100; 27232 } else { 27233 var rangeEnd = absCurrentYear + 50; 27234 var rangeEndCentury = Math.floor(rangeEnd / 100) * 100; 27235 var isPreviousCentury = twoDigitYear >= rangeEnd % 100; 27236 result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0); 27237 } 27238 27239 return isCommonEra ? result : 1 - result; 27240 } 27241 27242 var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; 27243 var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // User for validation 27244 27245 function isLeapYearIndex(year) { 27246 return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; 27247 } 27248 27249 /* 27250 * | | Unit | | Unit | 27251 * |-----|--------------------------------|-----|--------------------------------| 27252 * | a | AM, PM | A* | Milliseconds in day | 27253 * | b | AM, PM, noon, midnight | B | Flexible day period | 27254 * | c | Stand-alone local day of week | C* | Localized hour w/ day period | 27255 * | d | Day of month | D | Day of year | 27256 * | e | Local day of week | E | Day of week | 27257 * | f | | F* | Day of week in month | 27258 * | g* | Modified Julian day | G | Era | 27259 * | h | Hour [1-12] | H | Hour [0-23] | 27260 * | i! | ISO day of week | I! | ISO week of year | 27261 * | j* | Localized hour w/ day period | J* | Localized hour w/o day period | 27262 * | k | Hour [1-24] | K | Hour [0-11] | 27263 * | l* | (deprecated) | L | Stand-alone month | 27264 * | m | Minute | M | Month | 27265 * | n | | N | | 27266 * | o! | Ordinal number modifier | O* | Timezone (GMT) | 27267 * | p | | P | | 27268 * | q | Stand-alone quarter | Q | Quarter | 27269 * | r* | Related Gregorian year | R! | ISO week-numbering year | 27270 * | s | Second | S | Fraction of second | 27271 * | t! | Seconds timestamp | T! | Milliseconds timestamp | 27272 * | u | Extended year | U* | Cyclic year | 27273 * | v* | Timezone (generic non-locat.) | V* | Timezone (location) | 27274 * | w | Local week of year | W* | Week of month | 27275 * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) | 27276 * | y | Year (abs) | Y | Local week-numbering year | 27277 * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) | 27278 * 27279 * Letters marked by * are not implemented but reserved by Unicode standard. 27280 * 27281 * Letters marked by ! are non-standard, but implemented by date-fns: 27282 * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs) 27283 * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days, 27284 * i.e. 7 for Sunday, 1 for Monday, etc. 27285 * - `I` is ISO week of year, as opposed to `w` which is local week of year. 27286 * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year. 27287 * `R` is supposed to be used in conjunction with `I` and `i` 27288 * for universal ISO week-numbering date, whereas 27289 * `Y` is supposed to be used in conjunction with `w` and `e` 27290 * for week-numbering date specific to the locale. 27291 */ 27292 27293 27294 var parsers = { 27295 // Era 27296 G: { 27297 priority: 140, 27298 parse: function (string, token, match, _options) { 27299 switch (token) { 27300 // AD, BC 27301 case 'G': 27302 case 'GG': 27303 case 'GGG': 27304 return match.era(string, { 27305 width: 'abbreviated' 27306 }) || match.era(string, { 27307 width: 'narrow' 27308 }); 27309 // A, B 27310 27311 case 'GGGGG': 27312 return match.era(string, { 27313 width: 'narrow' 27314 }); 27315 // Anno Domini, Before Christ 27316 27317 case 'GGGG': 27318 default: 27319 return match.era(string, { 27320 width: 'wide' 27321 }) || match.era(string, { 27322 width: 'abbreviated' 27323 }) || match.era(string, { 27324 width: 'narrow' 27325 }); 27326 } 27327 }, 27328 set: function (date, flags, value, _options) { 27329 flags.era = value; 27330 date.setUTCFullYear(value, 0, 1); 27331 date.setUTCHours(0, 0, 0, 0); 27332 return date; 27333 }, 27334 incompatibleTokens: ['R', 'u', 't', 'T'] 27335 }, 27336 // Year 27337 y: { 27338 // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns 27339 // | Year | y | yy | yyy | yyyy | yyyyy | 27340 // |----------|-------|----|-------|-------|-------| 27341 // | AD 1 | 1 | 01 | 001 | 0001 | 00001 | 27342 // | AD 12 | 12 | 12 | 012 | 0012 | 00012 | 27343 // | AD 123 | 123 | 23 | 123 | 0123 | 00123 | 27344 // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 | 27345 // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 | 27346 priority: 130, 27347 parse: function (string, token, match, _options) { 27348 var valueCallback = function (year) { 27349 return { 27350 year: year, 27351 isTwoDigitYear: token === 'yy' 27352 }; 27353 }; 27354 27355 switch (token) { 27356 case 'y': 27357 return parseNDigits(4, string, valueCallback); 27358 27359 case 'yo': 27360 return match.ordinalNumber(string, { 27361 unit: 'year', 27362 valueCallback: valueCallback 27363 }); 27364 27365 default: 27366 return parseNDigits(token.length, string, valueCallback); 27367 } 27368 }, 27369 validate: function (_date, value, _options) { 27370 return value.isTwoDigitYear || value.year > 0; 27371 }, 27372 set: function (date, flags, value, _options) { 27373 var currentYear = date.getUTCFullYear(); 27374 27375 if (value.isTwoDigitYear) {
vendor: 69,301 bytes, lines 27376-28766
27376 var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear); 27377 date.setUTCFullYear(normalizedTwoDigitYear, 0, 1); 27378 date.setUTCHours(0, 0, 0, 0); 27379 return date; 27380 } 27381 27382 var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year; 27383 date.setUTCFullYear(year, 0, 1); 27384 date.setUTCHours(0, 0, 0, 0); 27385 return date; 27386 }, 27387 incompatibleTokens: ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T'] 27388 }, 27389 // Local week-numbering year 27390 Y: { 27391 priority: 130, 27392 parse: function (string, token, match, _options) { 27393 var valueCallback = function (year) { 27394 return { 27395 year: year, 27396 isTwoDigitYear: token === 'YY' 27397 }; 27398 }; 27399 27400 switch (token) { 27401 case 'Y': 27402 return parseNDigits(4, string, valueCallback); 27403 27404 case 'Yo': 27405 return match.ordinalNumber(string, { 27406 unit: 'year', 27407 valueCallback: valueCallback 27408 }); 27409 27410 default: 27411 return parseNDigits(token.length, string, valueCallback); 27412 } 27413 }, 27414 validate: function (_date, value, _options) { 27415 return value.isTwoDigitYear || value.year > 0; 27416 }, 27417 set: function (date, flags, value, options) { 27418 var currentYear = __WEBPACK_IMPORTED_MODULE_0__lib_getUTCWeekYear_index_js__["a" /* default */](date, options); 27419 27420 if (value.isTwoDigitYear) { 27421 var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear); 27422 date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate); 27423 date.setUTCHours(0, 0, 0, 0); 27424 return __WEBPACK_IMPORTED_MODULE_6__lib_startOfUTCWeek_index_js__["a" /* default */](date, options); 27425 } 27426 27427 var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year; 27428 date.setUTCFullYear(year, 0, options.firstWeekContainsDate); 27429 date.setUTCHours(0, 0, 0, 0); 27430 return __WEBPACK_IMPORTED_MODULE_6__lib_startOfUTCWeek_index_js__["a" /* default */](date, options); 27431 }, 27432 incompatibleTokens: ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T'] 27433 }, 27434 // ISO week-numbering year 27435 R: { 27436 priority: 130, 27437 parse: function (string, token, _match, _options) { 27438 if (token === 'R') { 27439 return parseNDigitsSigned(4, string); 27440 } 27441 27442 return parseNDigitsSigned(token.length, string); 27443 }, 27444 set: function (_date, _flags, value, _options) { 27445 var firstWeekOfYear = new Date(0); 27446 firstWeekOfYear.setUTCFullYear(value, 0, 4); 27447 firstWeekOfYear.setUTCHours(0, 0, 0, 0); 27448 return __WEBPACK_IMPORTED_MODULE_5__lib_startOfUTCISOWeek_index_js__["a" /* default */](firstWeekOfYear); 27449 }, 27450 incompatibleTokens: ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T'] 27451 }, 27452 // Extended year 27453 u: { 27454 priority: 130, 27455 parse: function (string, token, _match, _options) { 27456 if (token === 'u') { 27457 return parseNDigitsSigned(4, string); 27458 } 27459 27460 return parseNDigitsSigned(token.length, string); 27461 }, 27462 set: function (date, _flags, value, _options) { 27463 date.setUTCFullYear(value, 0, 1); 27464 date.setUTCHours(0, 0, 0, 0); 27465 return date; 27466 }, 27467 incompatibleTokens: ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T'] 27468 }, 27469 // Quarter 27470 Q: { 27471 priority: 120, 27472 parse: function (string, token, match, _options) { 27473 switch (token) { 27474 // 1, 2, 3, 4 27475 case 'Q': 27476 case 'QQ': 27477 // 01, 02, 03, 04 27478 return parseNDigits(token.length, string); 27479 // 1st, 2nd, 3rd, 4th 27480 27481 case 'Qo': 27482 return match.ordinalNumber(string, { 27483 unit: 'quarter' 27484 }); 27485 // Q1, Q2, Q3, Q4 27486 27487 case 'QQQ': 27488 return match.quarter(string, { 27489 width: 'abbreviated', 27490 context: 'formatting' 27491 }) || match.quarter(string, { 27492 width: 'narrow', 27493 context: 'formatting' 27494 }); 27495 // 1, 2, 3, 4 (narrow quarter; could be not numerical) 27496 27497 case 'QQQQQ': 27498 return match.quarter(string, { 27499 width: 'narrow', 27500 context: 'formatting' 27501 }); 27502 // 1st quarter, 2nd quarter, ... 27503 27504 case 'QQQQ': 27505 default: 27506 return match.quarter(string, { 27507 width: 'wide', 27508 context: 'formatting' 27509 }) || match.quarter(string, { 27510 width: 'abbreviated', 27511 context: 'formatting' 27512 }) || match.quarter(string, { 27513 width: 'narrow', 27514 context: 'formatting' 27515 }); 27516 } 27517 }, 27518 validate: function (_date, value, _options) { 27519 return value >= 1 && value <= 4; 27520 }, 27521 set: function (date, _flags, value, _options) { 27522 date.setUTCMonth((value - 1) * 3, 1); 27523 date.setUTCHours(0, 0, 0, 0); 27524 return date; 27525 }, 27526 incompatibleTokens: ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T'] 27527 }, 27528 // Stand-alone quarter 27529 q: { 27530 priority: 120, 27531 parse: function (string, token, match, _options) { 27532 switch (token) { 27533 // 1, 2, 3, 4 27534 case 'q': 27535 case 'qq': 27536 // 01, 02, 03, 04 27537 return parseNDigits(token.length, string); 27538 // 1st, 2nd, 3rd, 4th 27539 27540 case 'qo': 27541 return match.ordinalNumber(string, { 27542 unit: 'quarter' 27543 }); 27544 // Q1, Q2, Q3, Q4 27545 27546 case 'qqq': 27547 return match.quarter(string, { 27548 width: 'abbreviated', 27549 context: 'standalone' 27550 }) || match.quarter(string, { 27551 width: 'narrow', 27552 context: 'standalone' 27553 }); 27554 // 1, 2, 3, 4 (narrow quarter; could be not numerical) 27555 27556 case 'qqqqq': 27557 return match.quarter(string, { 27558 width: 'narrow', 27559 context: 'standalone' 27560 }); 27561 // 1st quarter, 2nd quarter, ... 27562 27563 case 'qqqq': 27564 default: 27565 return match.quarter(string, { 27566 width: 'wide', 27567 context: 'standalone' 27568 }) || match.quarter(string, { 27569 width: 'abbreviated', 27570 context: 'standalone' 27571 }) || match.quarter(string, { 27572 width: 'narrow', 27573 context: 'standalone' 27574 }); 27575 } 27576 }, 27577 validate: function (_date, value, _options) { 27578 return value >= 1 && value <= 4; 27579 }, 27580 set: function (date, _flags, value, _options) { 27581 date.setUTCMonth((value - 1) * 3, 1); 27582 date.setUTCHours(0, 0, 0, 0); 27583 return date; 27584 }, 27585 incompatibleTokens: ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T'] 27586 }, 27587 // Month 27588 M: { 27589 priority: 110, 27590 parse: function (string, token, match, _options) { 27591 var valueCallback = function (value) { 27592 return value - 1; 27593 }; 27594 27595 switch (token) { 27596 // 1, 2, ..., 12 27597 case 'M': 27598 return parseNumericPattern(numericPatterns.month, string, valueCallback); 27599 // 01, 02, ..., 12 27600 27601 case 'MM': 27602 return parseNDigits(2, string, valueCallback); 27603 // 1st, 2nd, ..., 12th 27604 27605 case 'Mo': 27606 return match.ordinalNumber(string, { 27607 unit: 'month', 27608 valueCallback: valueCallback 27609 }); 27610 // Jan, Feb, ..., Dec 27611 27612 case 'MMM': 27613 return match.month(string, { 27614 width: 'abbreviated', 27615 context: 'formatting' 27616 }) || match.month(string, { 27617 width: 'narrow', 27618 context: 'formatting' 27619 }); 27620 // J, F, ..., D 27621 27622 case 'MMMMM': 27623 return match.month(string, { 27624 width: 'narrow', 27625 context: 'formatting' 27626 }); 27627 // January, February, ..., December 27628 27629 case 'MMMM': 27630 default: 27631 return match.month(string, { 27632 width: 'wide', 27633 context: 'formatting' 27634 }) || match.month(string, { 27635 width: 'abbreviated', 27636 context: 'formatting' 27637 }) || match.month(string, { 27638 width: 'narrow', 27639 context: 'formatting' 27640 }); 27641 } 27642 }, 27643 validate: function (_date, value, _options) { 27644 return value >= 0 && value <= 11; 27645 }, 27646 set: function (date, _flags, value, _options) { 27647 date.setUTCMonth(value, 1); 27648 date.setUTCHours(0, 0, 0, 0); 27649 return date; 27650 }, 27651 incompatibleTokens: ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T'] 27652 }, 27653 // Stand-alone month 27654 L: { 27655 priority: 110, 27656 parse: function (string, token, match, _options) { 27657 var valueCallback = function (value) { 27658 return value - 1; 27659 }; 27660 27661 switch (token) { 27662 // 1, 2, ..., 12 27663 case 'L': 27664 return parseNumericPattern(numericPatterns.month, string, valueCallback); 27665 // 01, 02, ..., 12 27666 27667 case 'LL': 27668 return parseNDigits(2, string, valueCallback); 27669 // 1st, 2nd, ..., 12th 27670 27671 case 'Lo': 27672 return match.ordinalNumber(string, { 27673 unit: 'month', 27674 valueCallback: valueCallback 27675 }); 27676 // Jan, Feb, ..., Dec 27677 27678 case 'LLL': 27679 return match.month(string, { 27680 width: 'abbreviated', 27681 context: 'standalone' 27682 }) || match.month(string, { 27683 width: 'narrow', 27684 context: 'standalone' 27685 }); 27686 // J, F, ..., D 27687 27688 case 'LLLLL': 27689 return match.month(string, { 27690 width: 'narrow', 27691 context: 'standalone' 27692 }); 27693 // January, February, ..., December 27694 27695 case 'LLLL': 27696 default: 27697 return match.month(string, { 27698 width: 'wide', 27699 context: 'standalone' 27700 }) || match.month(string, { 27701 width: 'abbreviated', 27702 context: 'standalone' 27703 }) || match.month(string, { 27704 width: 'narrow', 27705 context: 'standalone' 27706 }); 27707 } 27708 }, 27709 validate: function (_date, value, _options) { 27710 return value >= 0 && value <= 11; 27711 }, 27712 set: function (date, _flags, value, _options) { 27713 date.setUTCMonth(value, 1); 27714 date.setUTCHours(0, 0, 0, 0); 27715 return date; 27716 }, 27717 incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T'] 27718 }, 27719 // Local week of year 27720 w: { 27721 priority: 100, 27722 parse: function (string, token, match, _options) { 27723 switch (token) { 27724 case 'w': 27725 return parseNumericPattern(numericPatterns.week, string); 27726 27727 case 'wo': 27728 return match.ordinalNumber(string, { 27729 unit: 'week' 27730 }); 27731 27732 default: 27733 return parseNDigits(token.length, string); 27734 } 27735 }, 27736 validate: function (_date, value, _options) { 27737 return value >= 1 && value <= 53; 27738 }, 27739 set: function (date, _flags, value, options) { 27740 return __WEBPACK_IMPORTED_MODULE_6__lib_startOfUTCWeek_index_js__["a" /* default */](__WEBPACK_IMPORTED_MODULE_4__lib_setUTCWeek_index_js__["a" /* default */](date, value, options), options); 27741 }, 27742 incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T'] 27743 }, 27744 // ISO week of year 27745 I: { 27746 priority: 100, 27747 parse: function (string, token, match, _options) { 27748 switch (token) { 27749 case 'I': 27750 return parseNumericPattern(numericPatterns.week, string); 27751 27752 case 'Io': 27753 return match.ordinalNumber(string, { 27754 unit: 'week' 27755 }); 27756 27757 default: 27758 return parseNDigits(token.length, string); 27759 } 27760 }, 27761 validate: function (_date, value, _options) { 27762 return value >= 1 && value <= 53; 27763 }, 27764 set: function (date, _flags, value, options) { 27765 return __WEBPACK_IMPORTED_MODULE_5__lib_startOfUTCISOWeek_index_js__["a" /* default */](__WEBPACK_IMPORTED_MODULE_3__lib_setUTCISOWeek_index_js__["a" /* default */](date, value, options), options); 27766 }, 27767 incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T'] 27768 }, 27769 // Day of the month 27770 d: { 27771 priority: 90, 27772 subPriority: 1, 27773 parse: function (string, token, match, _options) { 27774 switch (token) { 27775 case 'd': 27776 return parseNumericPattern(numericPatterns.date, string); 27777 27778 case 'do': 27779 return match.ordinalNumber(string, { 27780 unit: 'date' 27781 }); 27782 27783 default: 27784 return parseNDigits(token.length, string); 27785 } 27786 }, 27787 validate: function (date, value, _options) { 27788 var year = date.getUTCFullYear(); 27789 var isLeapYear = isLeapYearIndex(year); 27790 var month = date.getUTCMonth(); 27791 27792 if (isLeapYear) { 27793 return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month]; 27794 } else { 27795 return value >= 1 && value <= DAYS_IN_MONTH[month]; 27796 } 27797 }, 27798 set: function (date, _flags, value, _options) { 27799 date.setUTCDate(value); 27800 date.setUTCHours(0, 0, 0, 0); 27801 return date; 27802 }, 27803 incompatibleTokens: ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T'] 27804 }, 27805 // Day of year 27806 D: { 27807 priority: 90, 27808 subPriority: 1, 27809 parse: function (string, token, match, _options) { 27810 switch (token) { 27811 case 'D': 27812 case 'DD': 27813 return parseNumericPattern(numericPatterns.dayOfYear, string); 27814 27815 case 'Do': 27816 return match.ordinalNumber(string, { 27817 unit: 'date' 27818 }); 27819 27820 default: 27821 return parseNDigits(token.length, string); 27822 } 27823 }, 27824 validate: function (date, value, _options) { 27825 var year = date.getUTCFullYear(); 27826 var isLeapYear = isLeapYearIndex(year); 27827 27828 if (isLeapYear) { 27829 return value >= 1 && value <= 366; 27830 } else { 27831 return value >= 1 && value <= 365; 27832 } 27833 }, 27834 set: function (date, _flags, value, _options) { 27835 date.setUTCMonth(0, value); 27836 date.setUTCHours(0, 0, 0, 0); 27837 return date; 27838 }, 27839 incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T'] 27840 }, 27841 // Day of week 27842 E: { 27843 priority: 90, 27844 parse: function (string, token, match, _options) { 27845 switch (token) { 27846 // Tue 27847 case 'E': 27848 case 'EE': 27849 case 'EEE': 27850 return match.day(string, { 27851 width: 'abbreviated', 27852 context: 'formatting' 27853 }) || match.day(string, { 27854 width: 'short', 27855 context: 'formatting' 27856 }) || match.day(string, { 27857 width: 'narrow', 27858 context: 'formatting' 27859 }); 27860 // T 27861 27862 case 'EEEEE': 27863 return match.day(string, { 27864 width: 'narrow', 27865 context: 'formatting' 27866 }); 27867 // Tu 27868 27869 case 'EEEEEE': 27870 return match.day(string, { 27871 width: 'short', 27872 context: 'formatting' 27873 }) || match.day(string, { 27874 width: 'narrow', 27875 context: 'formatting' 27876 }); 27877 // Tuesday 27878 27879 case 'EEEE': 27880 default: 27881 return match.day(string, { 27882 width: 'wide', 27883 context: 'formatting' 27884 }) || match.day(string, { 27885 width: 'abbreviated', 27886 context: 'formatting' 27887 }) || match.day(string, { 27888 width: 'short', 27889 context: 'formatting' 27890 }) || match.day(string, { 27891 width: 'narrow', 27892 context: 'formatting' 27893 }); 27894 } 27895 }, 27896 validate: function (_date, value, _options) { 27897 return value >= 0 && value <= 6; 27898 }, 27899 set: function (date, _flags, value, options) { 27900 date = __WEBPACK_IMPORTED_MODULE_1__lib_setUTCDay_index_js__["a" /* default */](date, value, options); 27901 date.setUTCHours(0, 0, 0, 0); 27902 return date; 27903 }, 27904 incompatibleTokens: ['D', 'i', 'e', 'c', 't', 'T'] 27905 }, 27906 // Local day of week 27907 e: { 27908 priority: 90, 27909 parse: function (string, token, match, options) { 27910 var valueCallback = function (value) { 27911 var wholeWeekDays = Math.floor((value - 1) / 7) * 7; 27912 return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays; 27913 }; 27914 27915 switch (token) { 27916 // 3 27917 case 'e': 27918 case 'ee': 27919 // 03 27920 return parseNDigits(token.length, string, valueCallback); 27921 // 3rd 27922 27923 case 'eo': 27924 return match.ordinalNumber(string, { 27925 unit: 'day', 27926 valueCallback: valueCallback 27927 }); 27928 // Tue 27929 27930 case 'eee': 27931 return match.day(string, { 27932 width: 'abbreviated', 27933 context: 'formatting' 27934 }) || match.day(string, { 27935 width: 'short', 27936 context: 'formatting' 27937 }) || match.day(string, { 27938 width: 'narrow', 27939 context: 'formatting' 27940 }); 27941 // T 27942 27943 case 'eeeee': 27944 return match.day(string, { 27945 width: 'narrow', 27946 context: 'formatting' 27947 }); 27948 // Tu 27949 27950 case 'eeeeee': 27951 return match.day(string, { 27952 width: 'short', 27953 context: 'formatting' 27954 }) || match.day(string, { 27955 width: 'narrow', 27956 context: 'formatting' 27957 }); 27958 // Tuesday 27959 27960 case 'eeee': 27961 default: 27962 return match.day(string, { 27963 width: 'wide', 27964 context: 'formatting' 27965 }) || match.day(string, { 27966 width: 'abbreviated', 27967 context: 'formatting' 27968 }) || match.day(string, { 27969 width: 'short', 27970 context: 'formatting' 27971 }) || match.day(string, { 27972 width: 'narrow', 27973 context: 'formatting' 27974 }); 27975 } 27976 }, 27977 validate: function (_date, value, _options) { 27978 return value >= 0 && value <= 6; 27979 }, 27980 set: function (date, _flags, value, options) { 27981 date = __WEBPACK_IMPORTED_MODULE_1__lib_setUTCDay_index_js__["a" /* default */](date, value, options); 27982 date.setUTCHours(0, 0, 0, 0); 27983 return date; 27984 }, 27985 incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T'] 27986 }, 27987 // Stand-alone local day of week 27988 c: { 27989 priority: 90, 27990 parse: function (string, token, match, options) { 27991 var valueCallback = function (value) { 27992 var wholeWeekDays = Math.floor((value - 1) / 7) * 7; 27993 return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays; 27994 }; 27995 27996 switch (token) { 27997 // 3 27998 case 'c': 27999 case 'cc': 28000 // 03 28001 return parseNDigits(token.length, string, valueCallback); 28002 // 3rd 28003 28004 case 'co': 28005 return match.ordinalNumber(string, { 28006 unit: 'day', 28007 valueCallback: valueCallback 28008 }); 28009 // Tue 28010 28011 case 'ccc': 28012 return match.day(string, { 28013 width: 'abbreviated', 28014 context: 'standalone' 28015 }) || match.day(string, { 28016 width: 'short', 28017 context: 'standalone' 28018 }) || match.day(string, { 28019 width: 'narrow', 28020 context: 'standalone' 28021 }); 28022 // T 28023 28024 case 'ccccc': 28025 return match.day(string, { 28026 width: 'narrow', 28027 context: 'standalone' 28028 }); 28029 // Tu 28030 28031 case 'cccccc': 28032 return match.day(string, { 28033 width: 'short', 28034 context: 'standalone' 28035 }) || match.day(string, { 28036 width: 'narrow', 28037 context: 'standalone' 28038 }); 28039 // Tuesday 28040 28041 case 'cccc': 28042 default: 28043 return match.day(string, { 28044 width: 'wide', 28045 context: 'standalone' 28046 }) || match.day(string, { 28047 width: 'abbreviated', 28048 context: 'standalone' 28049 }) || match.day(string, { 28050 width: 'short', 28051 context: 'standalone' 28052 }) || match.day(string, { 28053 width: 'narrow', 28054 context: 'standalone' 28055 }); 28056 } 28057 }, 28058 validate: function (_date, value, _options) { 28059 return value >= 0 && value <= 6; 28060 }, 28061 set: function (date, _flags, value, options) { 28062 date = __WEBPACK_IMPORTED_MODULE_1__lib_setUTCDay_index_js__["a" /* default */](date, value, options); 28063 date.setUTCHours(0, 0, 0, 0); 28064 return date; 28065 }, 28066 incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T'] 28067 }, 28068 // ISO day of week 28069 i: { 28070 priority: 90, 28071 parse: function (string, token, match, _options) { 28072 var valueCallback = function (value) { 28073 if (value === 0) { 28074 return 7; 28075 } 28076 28077 return value; 28078 }; 28079 28080 switch (token) { 28081 // 2 28082 case 'i': 28083 case 'ii': 28084 // 02 28085 return parseNDigits(token.length, string); 28086 // 2nd 28087 28088 case 'io': 28089 return match.ordinalNumber(string, { 28090 unit: 'day' 28091 }); 28092 // Tue 28093 28094 case 'iii': 28095 return match.day(string, { 28096 width: 'abbreviated', 28097 context: 'formatting', 28098 valueCallback: valueCallback 28099 }) || match.day(string, { 28100 width: 'short', 28101 context: 'formatting', 28102 valueCallback: valueCallback 28103 }) || match.day(string, { 28104 width: 'narrow', 28105 context: 'formatting', 28106 valueCallback: valueCallback 28107 }); 28108 // T 28109 28110 case 'iiiii': 28111 return match.day(string, { 28112 width: 'narrow', 28113 context: 'formatting', 28114 valueCallback: valueCallback 28115 }); 28116 // Tu 28117 28118 case 'iiiiii': 28119 return match.day(string, { 28120 width: 'short', 28121 context: 'formatting', 28122 valueCallback: valueCallback 28123 }) || match.day(string, { 28124 width: 'narrow', 28125 context: 'formatting', 28126 valueCallback: valueCallback 28127 }); 28128 // Tuesday 28129 28130 case 'iiii': 28131 default: 28132 return match.day(string, { 28133 width: 'wide', 28134 context: 'formatting', 28135 valueCallback: valueCallback 28136 }) || match.day(string, { 28137 width: 'abbreviated', 28138 context: 'formatting', 28139 valueCallback: valueCallback 28140 }) || match.day(string, { 28141 width: 'short', 28142 context: 'formatting', 28143 valueCallback: valueCallback 28144 }) || match.day(string, { 28145 width: 'narrow', 28146 context: 'formatting', 28147 valueCallback: valueCallback 28148 }); 28149 } 28150 }, 28151 validate: function (_date, value, _options) { 28152 return value >= 1 && value <= 7; 28153 }, 28154 set: function (date, _flags, value, options) { 28155 date = __WEBPACK_IMPORTED_MODULE_2__lib_setUTCISODay_index_js__["a" /* default */](date, value, options); 28156 date.setUTCHours(0, 0, 0, 0); 28157 return date; 28158 }, 28159 incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T'] 28160 }, 28161 // AM or PM 28162 a: { 28163 priority: 80, 28164 parse: function (string, token, match, _options) { 28165 switch (token) { 28166 case 'a': 28167 case 'aa': 28168 case 'aaa': 28169 return match.dayPeriod(string, { 28170 width: 'abbreviated', 28171 context: 'formatting' 28172 }) || match.dayPeriod(string, { 28173 width: 'narrow', 28174 context: 'formatting' 28175 }); 28176 28177 case 'aaaaa': 28178 return match.dayPeriod(string, { 28179 width: 'narrow', 28180 context: 'formatting' 28181 }); 28182 28183 case 'aaaa': 28184 default: 28185 return match.dayPeriod(string, { 28186 width: 'wide', 28187 context: 'formatting' 28188 }) || match.dayPeriod(string, { 28189 width: 'abbreviated', 28190 context: 'formatting' 28191 }) || match.dayPeriod(string, { 28192 width: 'narrow', 28193 context: 'formatting' 28194 }); 28195 } 28196 }, 28197 set: function (date, _flags, value, _options) { 28198 date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0); 28199 return date; 28200 }, 28201 incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T'] 28202 }, 28203 // AM, PM, midnight 28204 b: { 28205 priority: 80, 28206 parse: function (string, token, match, _options) { 28207 switch (token) { 28208 case 'b': 28209 case 'bb': 28210 case 'bbb': 28211 return match.dayPeriod(string, { 28212 width: 'abbreviated', 28213 context: 'formatting' 28214 }) || match.dayPeriod(string, { 28215 width: 'narrow', 28216 context: 'formatting' 28217 }); 28218 28219 case 'bbbbb': 28220 return match.dayPeriod(string, { 28221 width: 'narrow', 28222 context: 'formatting' 28223 }); 28224 28225 case 'bbbb': 28226 default: 28227 return match.dayPeriod(string, { 28228 width: 'wide', 28229 context: 'formatting' 28230 }) || match.dayPeriod(string, { 28231 width: 'abbreviated', 28232 context: 'formatting' 28233 }) || match.dayPeriod(string, { 28234 width: 'narrow', 28235 context: 'formatting' 28236 }); 28237 } 28238 }, 28239 set: function (date, _flags, value, _options) { 28240 date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0); 28241 return date; 28242 }, 28243 incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T'] 28244 }, 28245 // in the morning, in the afternoon, in the evening, at night 28246 B: { 28247 priority: 80, 28248 parse: function (string, token, match, _options) { 28249 switch (token) { 28250 case 'B': 28251 case 'BB': 28252 case 'BBB': 28253 return match.dayPeriod(string, { 28254 width: 'abbreviated', 28255 context: 'formatting' 28256 }) || match.dayPeriod(string, { 28257 width: 'narrow', 28258 context: 'formatting' 28259 }); 28260 28261 case 'BBBBB': 28262 return match.dayPeriod(string, { 28263 width: 'narrow', 28264 context: 'formatting' 28265 }); 28266 28267 case 'BBBB': 28268 default: 28269 return match.dayPeriod(string, { 28270 width: 'wide', 28271 context: 'formatting' 28272 }) || match.dayPeriod(string, { 28273 width: 'abbreviated', 28274 context: 'formatting' 28275 }) || match.dayPeriod(string, { 28276 width: 'narrow', 28277 context: 'formatting' 28278 }); 28279 } 28280 }, 28281 set: function (date, _flags, value, _options) { 28282 date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0); 28283 return date; 28284 }, 28285 incompatibleTokens: ['a', 'b', 't', 'T'] 28286 }, 28287 // Hour [1-12] 28288 h: { 28289 priority: 70, 28290 parse: function (string, token, match, _options) { 28291 switch (token) { 28292 case 'h': 28293 return parseNumericPattern(numericPatterns.hour12h, string); 28294 28295 case 'ho': 28296 return match.ordinalNumber(string, { 28297 unit: 'hour' 28298 }); 28299 28300 default: 28301 return parseNDigits(token.length, string); 28302 } 28303 }, 28304 validate: function (_date, value, _options) { 28305 return value >= 1 && value <= 12; 28306 }, 28307 set: function (date, _flags, value, _options) { 28308 var isPM = date.getUTCHours() >= 12; 28309 28310 if (isPM && value < 12) { 28311 date.setUTCHours(value + 12, 0, 0, 0); 28312 } else if (!isPM && value === 12) { 28313 date.setUTCHours(0, 0, 0, 0); 28314 } else { 28315 date.setUTCHours(value, 0, 0, 0); 28316 } 28317 28318 return date; 28319 }, 28320 incompatibleTokens: ['H', 'K', 'k', 't', 'T'] 28321 }, 28322 // Hour [0-23] 28323 H: { 28324 priority: 70, 28325 parse: function (string, token, match, _options) { 28326 switch (token) { 28327 case 'H': 28328 return parseNumericPattern(numericPatterns.hour23h, string); 28329 28330 case 'Ho': 28331 return match.ordinalNumber(string, { 28332 unit: 'hour' 28333 }); 28334 28335 default: 28336 return parseNDigits(token.length, string); 28337 } 28338 }, 28339 validate: function (_date, value, _options) { 28340 return value >= 0 && value <= 23; 28341 }, 28342 set: function (date, _flags, value, _options) { 28343 date.setUTCHours(value, 0, 0, 0); 28344 return date; 28345 }, 28346 incompatibleTokens: ['a', 'b', 'h', 'K', 'k', 't', 'T'] 28347 }, 28348 // Hour [0-11] 28349 K: { 28350 priority: 70, 28351 parse: function (string, token, match, _options) { 28352 switch (token) { 28353 case 'K': 28354 return parseNumericPattern(numericPatterns.hour11h, string); 28355 28356 case 'Ko': 28357 return match.ordinalNumber(string, { 28358 unit: 'hour' 28359 }); 28360 28361 default: 28362 return parseNDigits(token.length, string); 28363 } 28364 }, 28365 validate: function (_date, value, _options) { 28366 return value >= 0 && value <= 11; 28367 }, 28368 set: function (date, _flags, value, _options) { 28369 var isPM = date.getUTCHours() >= 12; 28370 28371 if (isPM && value < 12) { 28372 date.setUTCHours(value + 12, 0, 0, 0); 28373 } else { 28374 date.setUTCHours(value, 0, 0, 0); 28375 } 28376 28377 return date; 28378 }, 28379 incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T'] 28380 }, 28381 // Hour [1-24] 28382 k: { 28383 priority: 70, 28384 parse: function (string, token, match, _options) { 28385 switch (token) { 28386 case 'k': 28387 return parseNumericPattern(numericPatterns.hour24h, string); 28388 28389 case 'ko': 28390 return match.ordinalNumber(string, { 28391 unit: 'hour' 28392 }); 28393 28394 default: 28395 return parseNDigits(token.length, string); 28396 } 28397 }, 28398 validate: function (_date, value, _options) { 28399 return value >= 1 && value <= 24; 28400 }, 28401 set: function (date, _flags, value, _options) { 28402 var hours = value <= 24 ? value % 24 : value; 28403 date.setUTCHours(hours, 0, 0, 0); 28404 return date; 28405 }, 28406 incompatibleTokens: ['a', 'b', 'h', 'H', 'K', 't', 'T'] 28407 }, 28408 // Minute 28409 m: { 28410 priority: 60, 28411 parse: function (string, token, match, _options) { 28412 switch (token) { 28413 case 'm': 28414 return parseNumericPattern(numericPatterns.minute, string); 28415 28416 case 'mo': 28417 return match.ordinalNumber(string, { 28418 unit: 'minute' 28419 }); 28420 28421 default: 28422 return parseNDigits(token.length, string); 28423 } 28424 }, 28425 validate: function (_date, value, _options) { 28426 return value >= 0 && value <= 59; 28427 }, 28428 set: function (date, _flags, value, _options) { 28429 date.setUTCMinutes(value, 0, 0); 28430 return date; 28431 }, 28432 incompatibleTokens: ['t', 'T'] 28433 }, 28434 // Second 28435 s: { 28436 priority: 50, 28437 parse: function (string, token, match, _options) { 28438 switch (token) { 28439 case 's': 28440 return parseNumericPattern(numericPatterns.second, string); 28441 28442 case 'so': 28443 return match.ordinalNumber(string, { 28444 unit: 'second' 28445 }); 28446 28447 default: 28448 return parseNDigits(token.length, string); 28449 } 28450 }, 28451 validate: function (_date, value, _options) { 28452 return value >= 0 && value <= 59; 28453 }, 28454 set: function (date, _flags, value, _options) { 28455 date.setUTCSeconds(value, 0); 28456 return date; 28457 }, 28458 incompatibleTokens: ['t', 'T'] 28459 }, 28460 // Fraction of second 28461 S: { 28462 priority: 30, 28463 parse: function (string, token, _match, _options) { 28464 var valueCallback = function (value) { 28465 return Math.floor(value * Math.pow(10, -token.length + 3)); 28466 }; 28467 28468 return parseNDigits(token.length, string, valueCallback); 28469 }, 28470 set: function (date, _flags, value, _options) { 28471 date.setUTCMilliseconds(value); 28472 return date; 28473 }, 28474 incompatibleTokens: ['t', 'T'] 28475 }, 28476 // Timezone (ISO-8601. +00:00 is `'Z'`) 28477 X: { 28478 priority: 10, 28479 parse: function (string, token, _match, _options) { 28480 switch (token) { 28481 case 'X': 28482 return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string); 28483 28484 case 'XX': 28485 return parseTimezonePattern(timezonePatterns.basic, string); 28486 28487 case 'XXXX': 28488 return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string); 28489 28490 case 'XXXXX': 28491 return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string); 28492 28493 case 'XXX': 28494 default: 28495 return parseTimezonePattern(timezonePatterns.extended, string); 28496 } 28497 }, 28498 set: function (date, flags, value, _options) { 28499 if (flags.timestampIsSet) { 28500 return date; 28501 } 28502 28503 return new Date(date.getTime() - value); 28504 }, 28505 incompatibleTokens: ['t', 'T', 'x'] 28506 }, 28507 // Timezone (ISO-8601) 28508 x: { 28509 priority: 10, 28510 parse: function (string, token, _match, _options) { 28511 switch (token) { 28512 case 'x': 28513 return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string); 28514 28515 case 'xx': 28516 return parseTimezonePattern(timezonePatterns.basic, string); 28517 28518 case 'xxxx': 28519 return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string); 28520 28521 case 'xxxxx': 28522 return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string); 28523 28524 case 'xxx': 28525 default: 28526 return parseTimezonePattern(timezonePatterns.extended, string); 28527 } 28528 }, 28529 set: function (date, flags, value, _options) { 28530 if (flags.timestampIsSet) { 28531 return date; 28532 } 28533 28534 return new Date(date.getTime() - value); 28535 }, 28536 incompatibleTokens: ['t', 'T', 'X'] 28537 }, 28538 // Seconds timestamp 28539 t: { 28540 priority: 40, 28541 parse: function (string, _token, _match, _options) { 28542 return parseAnyDigitsSigned(string); 28543 }, 28544 set: function (_date, _flags, value, _options) { 28545 return [new Date(value * 1000), { 28546 timestampIsSet: true 28547 }]; 28548 }, 28549 incompatibleTokens: '*' 28550 }, 28551 // Milliseconds timestamp 28552 T: { 28553 priority: 20, 28554 parse: function (string, _token, _match, _options) { 28555 return parseAnyDigitsSigned(string); 28556 }, 28557 set: function (_date, _flags, value, _options) { 28558 return [new Date(value), { 28559 timestampIsSet: true 28560 }]; 28561 }, 28562 incompatibleTokens: '*' 28563 } 28564 }; 28565 /* harmony default export */ 28566 __webpack_exports__["a"] = (parsers); 28567 28568 /***/ 28569 }), 28570 /* 380 */ 28571 /***/ (function (module, __webpack_exports__, __webpack_require__) { 28572 28573 "use strict"; 28574 /* harmony export (immutable) */ 28575 __webpack_exports__["a"] = setUTCDay; 28576 /* harmony import */ 28577 var __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__ = __webpack_require__(6); 28578 /* harmony import */ 28579 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 28580 /* harmony import */ 28581 var __WEBPACK_IMPORTED_MODULE_2__requiredArgs_index_js__ = __webpack_require__(0); 28582 28583 28584 // This function will be a part of public API when UTC function will be implemented. 28585// See issue: https://github.com/date-fns/date-fns/issues/376 28586 28587 function setUTCDay(dirtyDate, dirtyDay, dirtyOptions) { 28588 __WEBPACK_IMPORTED_MODULE_2__requiredArgs_index_js__["a" /* default */](2, arguments); 28589 var options = dirtyOptions || {}; 28590 var locale = options.locale; 28591 var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; 28592 var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__["a" /* default */](localeWeekStartsOn); 28593 var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__["a" /* default */](options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 28594 28595 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 28596 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 28597 } 28598 28599 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 28600 var day = __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__["a" /* default */](dirtyDay); 28601 var currentDay = date.getUTCDay(); 28602 var remainder = day % 7; 28603 var dayIndex = (remainder + 7) % 7; 28604 var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay; 28605 date.setUTCDate(date.getUTCDate() + diff); 28606 return date; 28607 } 28608 28609 /***/ 28610 }), 28611 /* 381 */ 28612 /***/ (function (module, __webpack_exports__, __webpack_require__) { 28613 28614 "use strict"; 28615 /* harmony export (immutable) */ 28616 __webpack_exports__["a"] = setUTCISODay; 28617 /* harmony import */ 28618 var __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__ = __webpack_require__(6); 28619 /* harmony import */ 28620 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 28621 /* harmony import */ 28622 var __WEBPACK_IMPORTED_MODULE_2__requiredArgs_index_js__ = __webpack_require__(0); 28623 28624 28625 // This function will be a part of public API when UTC function will be implemented. 28626// See issue: https://github.com/date-fns/date-fns/issues/376 28627 28628 function setUTCISODay(dirtyDate, dirtyDay) { 28629 __WEBPACK_IMPORTED_MODULE_2__requiredArgs_index_js__["a" /* default */](2, arguments); 28630 var day = __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__["a" /* default */](dirtyDay); 28631 28632 if (day % 7 === 0) { 28633 day = day - 7; 28634 } 28635 28636 var weekStartsOn = 1; 28637 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 28638 var currentDay = date.getUTCDay(); 28639 var remainder = day % 7; 28640 var dayIndex = (remainder + 7) % 7; 28641 var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay; 28642 date.setUTCDate(date.getUTCDate() + diff); 28643 return date; 28644 } 28645 28646 /***/ 28647 }), 28648 /* 382 */ 28649 /***/ (function (module, __webpack_exports__, __webpack_require__) { 28650 28651 "use strict"; 28652 /* harmony export (immutable) */ 28653 __webpack_exports__["a"] = setUTCISOWeek; 28654 /* harmony import */ 28655 var __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__ = __webpack_require__(6); 28656 /* harmony import */ 28657 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 28658 /* harmony import */ 28659 var __WEBPACK_IMPORTED_MODULE_2__getUTCISOWeek_index_js__ = __webpack_require__(153); 28660 /* harmony import */ 28661 var __WEBPACK_IMPORTED_MODULE_3__requiredArgs_index_js__ = __webpack_require__(0); 28662 28663 28664 // This function will be a part of public API when UTC function will be implemented. 28665// See issue: https://github.com/date-fns/date-fns/issues/376 28666 28667 function setUTCISOWeek(dirtyDate, dirtyISOWeek) { 28668 __WEBPACK_IMPORTED_MODULE_3__requiredArgs_index_js__["a" /* default */](2, arguments); 28669 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 28670 var isoWeek = __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__["a" /* default */](dirtyISOWeek); 28671 var diff = __WEBPACK_IMPORTED_MODULE_2__getUTCISOWeek_index_js__["a" /* default */](date) - isoWeek; 28672 date.setUTCDate(date.getUTCDate() - diff * 7); 28673 return date; 28674 } 28675 28676 /***/ 28677 }), 28678 /* 383 */ 28679 /***/ (function (module, __webpack_exports__, __webpack_require__) { 28680 28681 "use strict"; 28682 /* harmony export (immutable) */ 28683 __webpack_exports__["a"] = setUTCWeek; 28684 /* harmony import */ 28685 var __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__ = __webpack_require__(6); 28686 /* harmony import */ 28687 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 28688 /* harmony import */ 28689 var __WEBPACK_IMPORTED_MODULE_2__getUTCWeek_index_js__ = __webpack_require__(155); 28690 /* harmony import */ 28691 var __WEBPACK_IMPORTED_MODULE_3__requiredArgs_index_js__ = __webpack_require__(0); 28692 28693 28694 // This function will be a part of public API when UTC function will be implemented. 28695// See issue: https://github.com/date-fns/date-fns/issues/376 28696 28697 function setUTCWeek(dirtyDate, dirtyWeek, options) { 28698 __WEBPACK_IMPORTED_MODULE_3__requiredArgs_index_js__["a" /* default */](2, arguments); 28699 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 28700 var week = __WEBPACK_IMPORTED_MODULE_0__toInteger_index_js__["a" /* default */](dirtyWeek); 28701 var diff = __WEBPACK_IMPORTED_MODULE_2__getUTCWeek_index_js__["a" /* default */](date, options) - week; 28702 date.setUTCDate(date.getUTCDate() - diff * 7); 28703 return date; 28704 } 28705 28706 /***/ 28707 }), 28708 /* 384 */ 28709 /***/ (function (module, __webpack_exports__, __webpack_require__) { 28710 28711 "use strict"; 28712 /* harmony export (immutable) */ 28713 __webpack_exports__["a"] = isMonday; 28714 /* harmony import */ 28715 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 28716 /* harmony import */ 28717 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 28718 28719 28720 /** 28721 * @name isMonday 28722 * @category Weekday Helpers 28723 * @summary Is the given date Monday? 28724 * 28725 * @description 28726 * Is the given date Monday? 28727 * 28728 * ### v2.0.0 breaking changes: 28729 * 28730 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 28731 * 28732 * @param {Date|Number} date - the date to check 28733 * @returns {Boolean} the date is Monday 28734 * @throws {TypeError} 1 argument required 28735 * 28736 * @example 28737 * // Is 22 September 2014 Monday? 28738 * var result = isMonday(new Date(2014, 8, 22)) 28739 * //=> true 28740 */ 28741 28742 function isMonday(dirtyDate) { 28743 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 28744 return __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate).getDay() === 1; 28745 } 28746 28747 /***/ 28748 }), 28749 /* 385 */ 28750 /***/ (function (module, __webpack_exports__, __webpack_require__) { 28751 28752 "use strict"; 28753 /* harmony export (immutable) */ 28754 __webpack_exports__["a"] = isPast; 28755 /* harmony import */ 28756 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 28757 /* harmony import */ 28758 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 28759 28760 28761 /** 28762 * @name isPast 28763 * @category Common Helpers 28764 * @summary Is the given date in the past? 28765 * @pure false 28766 *
28767 * @description 28768 * Is the given date in the past? 28769 * 28770 * > â ï¸ Please note that this function is not present in the FP submodule as 28771 * > it uses `Date.now()` internally hence impure and can't be safely curried. 28772 * 28773 * ### v2.0.0 breaking changes: 28774 * 28775 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 28776 * 28777 * @param {Date|Number} date - the date to check 28778 * @returns {Boolean} the date is in the past 28779 * @throws {TypeError} 1 argument required 28780 * 28781 * @example 28782 * // If today is 6 October 2014, is 2 July 2014 in the past? 28783 * var result = isPast(new Date(2014, 6, 2)) 28784 * //=> true 28785 */ 28786 28787 function isPast(dirtyDate) { 28788 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 28789 return __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate).getTime() < Date.now(); 28790 } 28791 28792 /***/ 28793 }), 28794 /* 386 */ 28795 /***/ (function (module, __webpack_exports__, __webpack_require__) { 28796 28797 "use strict"; 28798 /* harmony export (immutable) */ 28799 __webpack_exports__["a"] = isSameISOWeekYear; 28800 /* harmony import */ 28801 var __WEBPACK_IMPORTED_MODULE_0__startOfISOWeekYear_index_js__ = __webpack_require__(46); 28802 /* harmony import */ 28803 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 28804 28805 28806 /** 28807 * @name isSameISOWeekYear 28808 * @category ISO Week-Numbering Year Helpers 28809 * @summary Are the given dates in the same ISO week-numbering year? 28810 * 28811 * @description 28812 * Are the given dates in the same ISO week-numbering year? 28813 * 28814 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 28815 * 28816 * ### v2.0.0 breaking changes: 28817 * 28818 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 28819 * 28820 * - The function was renamed from `isSameISOYear` to `isSameISOWeekYear`. 28821 * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). 28822 * This change makes the name consistent with 28823 * locale-dependent week-numbering year helpers, e.g., `getWeekYear`. 28824 * 28825 * @param {Date|Number} dateLeft - the first date to check 28826 * @param {Date|Number} dateRight - the second date to check 28827 * @returns {Boolean} the dates are in the same ISO week-numbering year 28828 * @throws {TypeError} 2 arguments required 28829 * 28830 * @example 28831 * // Are 29 December 2003 and 2 January 2005 in the same ISO week-numbering year? 28832 * var result = isSameISOWeekYear(new Date(2003, 11, 29), new Date(2005, 0, 2)) 28833 * //=> true 28834 */ 28835 28836 function isSameISOWeekYear(dirtyDateLeft, dirtyDateRight) { 28837 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 28838 var dateLeftStartOfYear = __WEBPACK_IMPORTED_MODULE_0__startOfISOWeekYear_index_js__["a" /* default */](dirtyDateLeft); 28839 var dateRightStartOfYear = __WEBPACK_IMPORTED_MODULE_0__startOfISOWeekYear_index_js__["a" /* default */](dirtyDateRight); 28840 return dateLeftStartOfYear.getTime() === dateRightStartOfYear.getTime(); 28841 } 28842 28843 /***/ 28844 }), 28845 /* 387 */ 28846 /***/ (function (module, __webpack_exports__, __webpack_require__) { 28847 28848 "use strict"; 28849 /* harmony export (immutable) */ 28850 __webpack_exports__["a"] = isThisHour; 28851 /* harmony import */ 28852 var __WEBPACK_IMPORTED_MODULE_0__isSameHour_index_js__ = __webpack_require__(175); 28853 /* harmony import */ 28854 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 28855 28856 28857 /** 28858 * @name isThisHour 28859 * @category Hour Helpers 28860 * @summary Is the given date in the same hour as the current date? 28861 * @pure false 28862 *
28863 * @description 28864 * Is the given date in the same hour as the current date? 28865 * 28866 * > â ï¸ Please note that this function is not present in the FP submodule as 28867 * > it uses `Date.now()` internally hence impure and can't be safely curried. 28868 * 28869 * ### v2.0.0 breaking changes: 28870 * 28871 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 28872 * 28873 * @param {Date|Number} date - the date to check 28874 * @returns {Boolean} the date is in this hour 28875 * @throws {TypeError} 1 argument required 28876 * 28877 * @example 28878 * // If now is 25 September 2014 18:30:15.500, 28879 * // is 25 September 2014 18:00:00 in this hour? 28880 * var result = isThisHour(new Date(2014, 8, 25, 18)) 28881 * //=> true 28882 */ 28883 28884 function isThisHour(dirtyDate) { 28885 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 28886 return __WEBPACK_IMPORTED_MODULE_0__isSameHour_index_js__["a" /* default */](Date.now(), dirtyDate); 28887 } 28888 28889 /***/ 28890 }), 28891 /* 388 */ 28892 /***/ (function (module, __webpack_exports__, __webpack_require__) { 28893 28894 "use strict"; 28895 /* harmony export (immutable) */ 28896 __webpack_exports__["a"] = isThisISOWeek; 28897 /* harmony import */ 28898 var __WEBPACK_IMPORTED_MODULE_0__isSameISOWeek_index_js__ = __webpack_require__(177); 28899 /* harmony import */ 28900 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 28901 28902 28903 /** 28904 * @name isThisISOWeek 28905 * @category ISO Week Helpers 28906 * @summary Is the given date in the same ISO week as the current date? 28907 * @pure false 28908 * 28909 * @description 28910 * Is the given date in the same ISO week as the current date? 28911 * 28912 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 28913 * 28914 * > â ï¸ Please note that this function is not present in the FP submodule as 28915 * > it uses `Date.now()` internally hence impure and can't be safely curried. 28916 * 28917 * ### v2.0.0 breaking changes: 28918 * 28919 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 28920 * 28921 * @param {Date|Number} date - the date to check 28922 * @returns {Boolean} the date is in this ISO week 28923 * @throws {TypeError} 1 argument required 28924 * 28925 * @example 28926 * // If today is 25 September 2014, is 22 September 2014 in this ISO week? 28927 * var result = isThisISOWeek(new Date(2014, 8, 22)) 28928 * //=> true 28929 */ 28930 28931 function isThisISOWeek(dirtyDate) { 28932 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 28933 return __WEBPACK_IMPORTED_MODULE_0__isSameISOWeek_index_js__["a" /* default */](dirtyDate, Date.now()); 28934 } 28935 28936 /***/ 28937 }), 28938 /* 389 */ 28939 /***/ (function (module, __webpack_exports__, __webpack_require__) { 28940 28941 "use strict"; 28942 /* harmony export (immutable) */ 28943 __webpack_exports__["a"] = isThisMinute; 28944 /* harmony import */ 28945 var __WEBPACK_IMPORTED_MODULE_0__isSameMinute_index_js__ = __webpack_require__(178); 28946 /* harmony import */ 28947 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 28948 28949 28950 /** 28951 * @name isThisMinute 28952 * @category Minute Helpers 28953 * @summary Is the given date in the same minute as the current date? 28954 * @pure false 28955 *
28956 * @description 28957 * Is the given date in the same minute as the current date? 28958 * 28959 * > â ï¸ Please note that this function is not present in the FP submodule as 28960 * > it uses `Date.now()` internally hence impure and can't be safely curried. 28961 * 28962 * ### v2.0.0 breaking changes: 28963 * 28964 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 28965 * 28966 * @param {Date|Number} date - the date to check 28967 * @returns {Boolean} the date is in this minute 28968 * @throws {TypeError} 1 argument required 28969 * 28970 * @example 28971 * // If now is 25 September 2014 18:30:15.500, 28972 * // is 25 September 2014 18:30:00 in this minute? 28973 * var result = isThisMinute(new Date(2014, 8, 25, 18, 30)) 28974 * //=> true 28975 */ 28976 28977 function isThisMinute(dirtyDate) { 28978 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 28979 return __WEBPACK_IMPORTED_MODULE_0__isSameMinute_index_js__["a" /* default */](Date.now(), dirtyDate); 28980 } 28981 28982 /***/ 28983 }), 28984 /* 390 */ 28985 /***/ (function (module, __webpack_exports__, __webpack_require__) { 28986 28987 "use strict"; 28988 /* harmony export (immutable) */ 28989 __webpack_exports__["a"] = isThisMonth; 28990 /* harmony import */ 28991 var __WEBPACK_IMPORTED_MODULE_0__isSameMonth_index_js__ = __webpack_require__(180); 28992 /* harmony import */ 28993 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 28994 28995 28996 /** 28997 * @name isThisMonth 28998 * @category Month Helpers 28999 * @summary Is the given date in the same month as the current date? 29000 * @pure false 29001 * 29002 * @description 29003 * Is the given date in the same month as the current date? 29004 * 29005 * > â ï¸ Please note that this function is not present in the FP submodule as 29006 * > it uses `Date.now()` internally hence impure and can't be safely curried. 29007 * 29008 * ### v2.0.0 breaking changes: 29009 * 29010 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 29011 * 29012 * @param {Date|Number} date - the date to check 29013 * @returns {Boolean} the date is in this month 29014 * @throws {TypeError} 1 argument required 29015 * 29016 * @example 29017 * // If today is 25 September 2014, is 15 September 2014 in this month? 29018 * var result = isThisMonth(new Date(2014, 8, 15)) 29019 * //=> true 29020 */ 29021 29022 function isThisMonth(dirtyDate) { 29023 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 29024 return __WEBPACK_IMPORTED_MODULE_0__isSameMonth_index_js__["a" /* default */](Date.now(), dirtyDate); 29025 } 29026 29027 /***/ 29028 }), 29029 /* 391 */ 29030 /***/ (function (module, __webpack_exports__, __webpack_require__) { 29031 29032 "use strict"; 29033 /* harmony export (immutable) */ 29034 __webpack_exports__["a"] = isThisQuarter; 29035 /* harmony import */ 29036 var __WEBPACK_IMPORTED_MODULE_0__isSameQuarter_index_js__ = __webpack_require__(181); 29037 /* harmony import */ 29038 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 29039 29040 29041 /** 29042 * @name isThisQuarter 29043 * @category Quarter Helpers 29044 * @summary Is the given date in the same quarter as the current date? 29045 * @pure false 29046 *
29047 * @description 29048 * Is the given date in the same quarter as the current date? 29049 * 29050 * > â ï¸ Please note that this function is not present in the FP submodule as 29051 * > it uses `Date.now()` internally hence impure and can't be safely curried. 29052 * 29053 * ### v2.0.0 breaking changes: 29054 * 29055 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 29056 * 29057 * @param {Date|Number} date - the date to check 29058 * @returns {Boolean} the date is in this quarter 29059 * @throws {TypeError} 1 argument required 29060 * 29061 * @example 29062 * // If today is 25 September 2014, is 2 July 2014 in this quarter? 29063 * var result = isThisQuarter(new Date(2014, 6, 2)) 29064 * //=> true 29065 */ 29066 29067 function isThisQuarter(dirtyDate) { 29068 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 29069 return __WEBPACK_IMPORTED_MODULE_0__isSameQuarter_index_js__["a" /* default */](Date.now(), dirtyDate); 29070 } 29071 29072 /***/ 29073 }), 29074 /* 392 */ 29075 /***/ (function (module, __webpack_exports__, __webpack_require__) { 29076 29077 "use strict"; 29078 /* harmony export (immutable) */ 29079 __webpack_exports__["a"] = isThisSecond; 29080 /* harmony import */ 29081 var __WEBPACK_IMPORTED_MODULE_0__isSameSecond_index_js__ = __webpack_require__(182); 29082 /* harmony import */ 29083 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 29084 29085 29086 /** 29087 * @name isThisSecond 29088 * @category Second Helpers 29089 * @summary Is the given date in the same second as the current date? 29090 * @pure false 29091 * 29092 * @description 29093 * Is the given date in the same second as the current date? 29094 * 29095 * > â ï¸ Please note that this function is not present in the FP submodule as 29096 * > it uses `Date.now()` internally hence impure and can't be safely curried. 29097 * 29098 * ### v2.0.0 breaking changes: 29099 * 29100 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 29101 * 29102 * @param {Date|Number} date - the date to check 29103 * @returns {Boolean} the date is in this second 29104 * @throws {TypeError} 1 argument required 29105 * 29106 * @example 29107 * // If now is 25 September 2014 18:30:15.500, 29108 * // is 25 September 2014 18:30:15.000 in this second? 29109 * var result = isThisSecond(new Date(2014, 8, 25, 18, 30, 15)) 29110 * //=> true 29111 */ 29112 29113 function isThisSecond(dirtyDate) { 29114 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 29115 return __WEBPACK_IMPORTED_MODULE_0__isSameSecond_index_js__["a" /* default */](Date.now(), dirtyDate); 29116 } 29117 29118 /***/ 29119 }), 29120 /* 393 */ 29121 /***/ (function (module, __webpack_exports__, __webpack_require__) { 29122 29123 "use strict"; 29124 /* harmony export (immutable) */ 29125 __webpack_exports__["a"] = isThisWeek; 29126 /* harmony import */ 29127 var __WEBPACK_IMPORTED_MODULE_0__isSameWeek_index_js__ = __webpack_require__(95); 29128 /* harmony import */ 29129 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 29130 29131 29132 /** 29133 * @name isThisWeek 29134 * @category Week Helpers 29135 * @summary Is the given date in the same week as the current date? 29136 * @pure false 29137 *
29138 * @description 29139 * Is the given date in the same week as the current date? 29140 * 29141 * > â ï¸ Please note that this function is not present in the FP submodule as 29142 * > it uses `Date.now()` internally hence impure and can't be safely curried. 29143 * 29144 * ### v2.0.0 breaking changes: 29145 * 29146 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 29147 * 29148 * @param {Date|Number} date - the date to check 29149 * @param {Object} [options] - the object with options 29150 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 29151 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 29152 * @returns {Boolean} the date is in this week 29153 * @throws {TypeError} 1 argument required 29154 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 29155 * 29156 * @example 29157 * // If today is 25 September 2014, is 21 September 2014 in this week? 29158 * var result = isThisWeek(new Date(2014, 8, 21)) 29159 * //=> true 29160 * 29161 * @example 29162 * // If today is 25 September 2014 and week starts with Monday 29163 * // is 21 September 2014 in this week? 29164 * var result = isThisWeek(new Date(2014, 8, 21), { weekStartsOn: 1 }) 29165 * //=> false 29166 */ 29167 29168 function isThisWeek(dirtyDate, options) { 29169 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 29170 return __WEBPACK_IMPORTED_MODULE_0__isSameWeek_index_js__["a" /* default */](dirtyDate, Date.now(), options); 29171 } 29172 29173 /***/ 29174 }), 29175 /* 394 */ 29176 /***/ (function (module, __webpack_exports__, __webpack_require__) { 29177 29178 "use strict"; 29179 /* harmony export (immutable) */ 29180 __webpack_exports__["a"] = isThisYear; 29181 /* harmony import */ 29182 var __WEBPACK_IMPORTED_MODULE_0__isSameYear_index_js__ = __webpack_require__(184); 29183 /* harmony import */ 29184 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 29185 29186 29187 /** 29188 * @name isThisYear 29189 * @category Year Helpers 29190 * @summary Is the given date in the same year as the current date? 29191 * @pure false 29192 * 29193 * @description 29194 * Is the given date in the same year as the current date? 29195 * 29196 * > â ï¸ Please note that this function is not present in the FP submodule as 29197 * > it uses `Date.now()` internally hence impure and can't be safely curried. 29198 * 29199 * ### v2.0.0 breaking changes: 29200 * 29201 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 29202 * 29203 * @param {Date|Number} date - the date to check 29204 * @returns {Boolean} the date is in this year 29205 * @throws {TypeError} 1 argument required 29206 * 29207 * @example 29208 * // If today is 25 September 2014, is 2 July 2014 in this year? 29209 * var result = isThisYear(new Date(2014, 6, 2)) 29210 * //=> true 29211 */ 29212 29213 function isThisYear(dirtyDate) { 29214 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 29215 return __WEBPACK_IMPORTED_MODULE_0__isSameYear_index_js__["a" /* default */](dirtyDate, Date.now()); 29216 } 29217 29218 /***/ 29219 }), 29220 /* 395 */ 29221 /***/ (function (module, __webpack_exports__, __webpack_require__) { 29222 29223 "use strict"; 29224 /* harmony export (immutable) */ 29225 __webpack_exports__["a"] = isThursday; 29226 /* harmony import */ 29227 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 29228 /* harmony import */ 29229 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 29230 29231 29232 /** 29233 * @name isThursday 29234 * @category Weekday Helpers 29235 * @summary Is the given date Thursday? 29236 *
29237 * @description 29238 * Is the given date Thursday? 29239 * 29240 * ### v2.0.0 breaking changes: 29241 * 29242 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 29243 * 29244 * @param {Date|Number} date - the date to check 29245 * @returns {Boolean} the date is Thursday 29246 * @throws {TypeError} 1 argument required 29247 * 29248 * @example 29249 * // Is 25 September 2014 Thursday? 29250 * var result = isThursday(new Date(2014, 8, 25)) 29251 * //=> true 29252 */ 29253 29254 function isThursday(dirtyDate) { 29255 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 29256 return __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate).getDay() === 4; 29257 } 29258 29259 /***/ 29260 }), 29261 /* 396 */ 29262 /***/ (function (module, __webpack_exports__, __webpack_require__) { 29263 29264 "use strict"; 29265 /* harmony export (immutable) */ 29266 __webpack_exports__["a"] = isToday; 29267 /* harmony import */ 29268 var __WEBPACK_IMPORTED_MODULE_0__isSameDay_index_js__ = __webpack_require__(47); 29269 /* harmony import */ 29270 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 29271 29272 29273 /** 29274 * @name isToday 29275 * @category Day Helpers 29276 * @summary Is the given date today? 29277 * @pure false 29278 * 29279 * @description 29280 * Is the given date today? 29281 * 29282 * > â ï¸ Please note that this function is not present in the FP submodule as 29283 * > it uses `Date.now()` internally hence impure and can't be safely curried. 29284 * 29285 * ### v2.0.0 breaking changes: 29286 * 29287 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 29288 * 29289 * @param {Date|Number} date - the date to check 29290 * @returns {Boolean} the date is today 29291 * @throws {TypeError} 1 argument required 29292 * 29293 * @example 29294 * // If today is 6 October 2014, is 6 October 14:00:00 today? 29295 * var result = isToday(new Date(2014, 9, 6, 14, 0)) 29296 * //=> true 29297 */ 29298 29299 function isToday(dirtyDate) { 29300 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 29301 return __WEBPACK_IMPORTED_MODULE_0__isSameDay_index_js__["a" /* default */](dirtyDate, Date.now()); 29302 } 29303 29304 /***/ 29305 }), 29306 /* 397 */ 29307 /***/ (function (module, __webpack_exports__, __webpack_require__) { 29308 29309 "use strict"; 29310 /* harmony export (immutable) */ 29311 __webpack_exports__["a"] = isTomorrow; 29312 /* harmony import */ 29313 var __WEBPACK_IMPORTED_MODULE_0__addDays_index_js__ = __webpack_require__(21); 29314 /* harmony import */ 29315 var __WEBPACK_IMPORTED_MODULE_1__isSameDay_index_js__ = __webpack_require__(47); 29316 /* harmony import */ 29317 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 29318 29319 29320 /** 29321 * @name isTomorrow 29322 * @category Day Helpers 29323 * @summary Is the given date tomorrow? 29324 * @pure false 29325 * 29326 * @description 29327 * Is the given date tomorrow? 29328 * 29329 * > â ï¸ Please note that this function is not present in the FP submodule as 29330 * > it uses `Date.now()` internally hence impure and can't be safely curried. 29331 * 29332 * ### v2.0.0 breaking changes: 29333 * 29334 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 29335 * 29336 * @param {Date|Number} date - the date to check 29337 * @returns {Boolean} the date is tomorrow 29338 * @throws {TypeError} 1 argument required 29339 * 29340 * @example 29341 * // If today is 6 October 2014, is 7 October 14:00:00 tomorrow? 29342 * var result = isTomorrow(new Date(2014, 9, 7, 14, 0)) 29343 * //=> true 29344 */ 29345 29346 function isTomorrow(dirtyDate) { 29347 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 29348 return __WEBPACK_IMPORTED_MODULE_1__isSameDay_index_js__["a" /* default */](dirtyDate, __WEBPACK_IMPORTED_MODULE_0__addDays_index_js__["a" /* default */](Date.now(), 1)); 29349 } 29350 29351 /***/ 29352 }), 29353 /* 398 */ 29354 /***/ (function (module, __webpack_exports__, __webpack_require__) { 29355 29356 "use strict"; 29357 /* harmony export (immutable) */ 29358 __webpack_exports__["a"] = isTuesday; 29359 /* harmony import */ 29360 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 29361 /* harmony import */ 29362 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 29363 29364 29365 /** 29366 * @name isTuesday 29367 * @category Weekday Helpers 29368 * @summary Is the given date Tuesday? 29369 *
29370 * @description 29371 * Is the given date Tuesday? 29372 * 29373 * ### v2.0.0 breaking changes: 29374 * 29375 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 29376 * 29377 * @param {Date|Number} date - the date to check 29378 * @returns {Boolean} the date is Tuesday 29379 * @throws {TypeError} 1 argument required 29380 * 29381 * @example 29382 * // Is 23 September 2014 Tuesday? 29383 * var result = isTuesday(new Date(2014, 8, 23)) 29384 * //=> true 29385 */ 29386 29387 function isTuesday(dirtyDate) { 29388 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 29389 return __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate).getDay() === 2; 29390 } 29391 29392 /***/ 29393 }), 29394 /* 399 */ 29395 /***/ (function (module, __webpack_exports__, __webpack_require__) { 29396 29397 "use strict"; 29398 /* harmony export (immutable) */ 29399 __webpack_exports__["a"] = isWednesday; 29400 /* harmony import */ 29401 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 29402 /* harmony import */ 29403 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 29404 29405 29406 /** 29407 * @name isWednesday 29408 * @category Weekday Helpers 29409 * @summary Is the given date Wednesday? 29410 * 29411 * @description 29412 * Is the given date Wednesday? 29413 * 29414 * ### v2.0.0 breaking changes: 29415 * 29416 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 29417 * 29418 * @param {Date|Number} date - the date to check 29419 * @returns {Boolean} the date is Wednesday 29420 * @throws {TypeError} 1 argument required 29421 * 29422 * @example 29423 * // Is 24 September 2014 Wednesday? 29424 * var result = isWednesday(new Date(2014, 8, 24)) 29425 * //=> true 29426 */ 29427 29428 function isWednesday(dirtyDate) { 29429 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 29430 return __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate).getDay() === 3; 29431 } 29432 29433 /***/ 29434 }), 29435 /* 400 */ 29436 /***/ (function (module, __webpack_exports__, __webpack_require__) { 29437 29438 "use strict"; 29439 /* harmony export (immutable) */ 29440 __webpack_exports__["a"] = isWithinInterval; 29441 /* harmony import */ 29442 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 29443 /* harmony import */ 29444 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 29445 29446 29447 /** 29448 * @name isWithinInterval 29449 * @category Interval Helpers 29450 * @summary Is the given date within the interval? 29451 * 29452 * @description 29453 * Is the given date within the interval? (Including start and end.) 29454 * 29455 * ### v2.0.0 breaking changes: 29456 * 29457 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 29458 * 29459 * - The function was renamed from `isWithinRange` to `isWithinInterval`. 29460 * This change was made to mirror the use of the word "interval" in standard ISO 8601:2004 terminology: 29461 * 29462 * ``` 29463 * 2.1.3 29464 * time interval 29465 * part of the time axis limited by two instants 29466 * ``` 29467 * 29468 * Also, this function now accepts an object with `start` and `end` properties 29469 * instead of two arguments as an interval. 29470 * This function now throws `RangeError` if the start of the interval is after its end 29471 * or if any date in the interval is `Invalid Date`. 29472 * 29473 * ```javascript 29474 * // Before v2.0.0 29475 * 29476 * isWithinRange( 29477 * new Date(2014, 0, 3), 29478 * new Date(2014, 0, 1), new Date(2014, 0, 7) 29479 * ) 29480 * 29481 * // v2.0.0 onward 29482 * 29483 * isWithinInterval( 29484 * new Date(2014, 0, 3), 29485 * { start: new Date(2014, 0, 1), end: new Date(2014, 0, 7) } 29486 * ) 29487 * ``` 29488 * 29489 * @param {Date|Number} date - the date to check 29490 * @param {Interval} interval - the interval to check 29491 * @returns {Boolean} the date is within the interval 29492 * @throws {TypeError} 2 arguments required 29493 * @throws {RangeError} The start of an interval cannot be after its end 29494 * @throws {RangeError} Date in interval cannot be `Invalid Date` 29495 * 29496 * @example 29497 * // For the date within the interval: 29498 * isWithinInterval(new Date(2014, 0, 3), { 29499 * start: new Date(2014, 0, 1), 29500 * end: new Date(2014, 0, 7) 29501 * }) 29502 * //=> true 29503 * 29504 * @example 29505 * // For the date outside of the interval: 29506 * isWithinInterval(new Date(2014, 0, 10), { 29507 * start: new Date(2014, 0, 1), 29508 * end: new Date(2014, 0, 7) 29509 * }) 29510 * //=> false 29511 * 29512 * @example 29513 * // For date equal to interval start: 29514 * isWithinInterval(date, { start, end: date }) // => true 29515 * 29516 * @example 29517 * // For date equal to interval end: 29518 * isWithinInterval(date, { start: date, end }) // => true 29519 */ 29520 29521 function isWithinInterval(dirtyDate, dirtyInterval) { 29522 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 29523 var interval = dirtyInterval || {}; 29524 var time = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate).getTime(); 29525 var startTime = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](interval.start).getTime(); 29526 var endTime = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](interval.end).getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` 29527 29528 if (!(startTime <= endTime)) { 29529 throw new RangeError('Invalid interval'); 29530 } 29531 29532 return time >= startTime && time <= endTime; 29533 } 29534 29535 /***/ 29536 }), 29537 /* 401 */ 29538 /***/ (function (module, __webpack_exports__, __webpack_require__) { 29539 29540 "use strict"; 29541 /* harmony export (immutable) */ 29542 __webpack_exports__["a"] = isYesterday; 29543 /* harmony import */ 29544 var __WEBPACK_IMPORTED_MODULE_0__isSameDay_index_js__ = __webpack_require__(47); 29545 /* harmony import */ 29546 var __WEBPACK_IMPORTED_MODULE_1__subDays_index_js__ = __webpack_require__(94); 29547 /* harmony import */ 29548 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 29549 29550 29551 /** 29552 * @name isYesterday 29553 * @category Day Helpers 29554 * @summary Is the given date yesterday? 29555 * @pure false 29556 *
29557 * @description 29558 * Is the given date yesterday? 29559 * 29560 * > â ï¸ Please note that this function is not present in the FP submodule as 29561 * > it uses `Date.now()` internally hence impure and can't be safely curried. 29562 * 29563 * ### v2.0.0 breaking changes: 29564 * 29565 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 29566 * 29567 * @param {Date|Number} date - the date to check 29568 * @returns {Boolean} the date is yesterday 29569 * @throws {TypeError} 1 argument required 29570 * 29571 * @example 29572 * // If today is 6 October 2014, is 5 October 14:00:00 yesterday? 29573 * var result = isYesterday(new Date(2014, 9, 5, 14, 0)) 29574 * //=> true 29575 */ 29576 29577 function isYesterday(dirtyDate) { 29578 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 29579 return __WEBPACK_IMPORTED_MODULE_0__isSameDay_index_js__["a" /* default */](dirtyDate, __WEBPACK_IMPORTED_MODULE_1__subDays_index_js__["a" /* default */](Date.now(), 1)); 29580 } 29581 29582 /***/ 29583 }), 29584 /* 402 */ 29585 /***/ (function (module, __webpack_exports__, __webpack_require__) { 29586 29587 "use strict"; 29588 /* harmony export (immutable) */ 29589 __webpack_exports__["a"] = lastDayOfDecade; 29590 /* harmony import */ 29591 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 29592 /* harmony import */ 29593 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 29594 29595 29596 /** 29597 * @name lastDayOfDecade 29598 * @category Decade Helpers 29599 * @summary Return the last day of a decade for the given date. 29600 * 29601 * @description 29602 * Return the last day of a decade for the given date. 29603 * 29604 * ### v2.0.0 breaking changes: 29605 * 29606 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 29607 * 29608 * @param {Date|Number} date - the original date 29609 * @returns {Date} the last day of a decade 29610 * @throws {TypeError} 1 argument required 29611 * 29612 * @example 29613 * // The last day of a decade for 21 December 2012 21:12:00: 29614 * var result = lastDayOfDecade(new Date(2012, 11, 21, 21, 12, 00)) 29615 * //=> Wed Dec 31 2019 00:00:00 29616 */ 29617 29618 function lastDayOfDecade(dirtyDate) { 29619 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 29620 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 29621 var year = date.getFullYear(); 29622 var decade = 9 + Math.floor(year / 10) * 10; 29623 date.setFullYear(decade + 1, 0, 0); 29624 date.setHours(0, 0, 0, 0); 29625 return date; 29626 } 29627 29628 /***/ 29629 }), 29630 /* 403 */ 29631 /***/ (function (module, __webpack_exports__, __webpack_require__) { 29632 29633 "use strict"; 29634 /* harmony export (immutable) */ 29635 __webpack_exports__["a"] = lastDayOfISOWeek; 29636 /* harmony import */ 29637 var __WEBPACK_IMPORTED_MODULE_0__lastDayOfWeek_index_js__ = __webpack_require__(185); 29638 /* harmony import */ 29639 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 29640 29641 29642 /** 29643 * @name lastDayOfISOWeek 29644 * @category ISO Week Helpers 29645 * @summary Return the last day of an ISO week for the given date. 29646 *
29647 * @description 29648 * Return the last day of an ISO week for the given date. 29649 * The result will be in the local timezone. 29650 * 29651 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 29652 * 29653 * ### v2.0.0 breaking changes: 29654 * 29655 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 29656 * 29657 * @param {Date|Number} date - the original date 29658 * @returns {Date} the last day of an ISO week 29659 * @throws {TypeError} 1 argument required 29660 * 29661 * @example 29662 * // The last day of an ISO week for 2 September 2014 11:55:00: 29663 * var result = lastDayOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) 29664 * //=> Sun Sep 07 2014 00:00:00 29665 */ 29666 29667 function lastDayOfISOWeek(dirtyDate) { 29668 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 29669 return __WEBPACK_IMPORTED_MODULE_0__lastDayOfWeek_index_js__["a" /* default */](dirtyDate, { 29670 weekStartsOn: 1 29671 }); 29672 } 29673 29674 /***/ 29675 }), 29676 /* 404 */ 29677 /***/ (function (module, __webpack_exports__, __webpack_require__) { 29678 29679 "use strict"; 29680 /* harmony export (immutable) */ 29681 __webpack_exports__["a"] = lastDayOfISOWeekYear; 29682 /* harmony import */ 29683 var __WEBPACK_IMPORTED_MODULE_0__getISOWeekYear_index_js__ = __webpack_require__(34); 29684 /* harmony import */ 29685 var __WEBPACK_IMPORTED_MODULE_1__startOfISOWeek_index_js__ = __webpack_require__(25); 29686 /* harmony import */ 29687 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 29688 29689 29690 /** 29691 * @name lastDayOfISOWeekYear 29692 * @category ISO Week-Numbering Year Helpers 29693 * @summary Return the last day of an ISO week-numbering year for the given date. 29694 * 29695 * @description 29696 * Return the last day of an ISO week-numbering year, 29697 * which always starts 3 days before the year's first Thursday. 29698 * The result will be in the local timezone. 29699 * 29700 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 29701 * 29702 * ### v2.0.0 breaking changes: 29703 * 29704 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 29705 * 29706 * - The function was renamed from `lastDayOfISOYear` to `lastDayOfISOWeekYear`. 29707 * "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). 29708 * This change makes the name consistent with 29709 * locale-dependent week-numbering year helpers, e.g., `getWeekYear`. 29710 * 29711 * @param {Date|Number} date - the original date 29712 * @returns {Date} the end of an ISO week-numbering year 29713 * @throws {TypeError} 1 argument required 29714 * 29715 * @example 29716 * // The last day of an ISO week-numbering year for 2 July 2005: 29717 * var result = lastDayOfISOWeekYear(new Date(2005, 6, 2)) 29718 * //=> Sun Jan 01 2006 00:00:00 29719 */ 29720 29721 function lastDayOfISOWeekYear(dirtyDate) { 29722 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 29723 var year = __WEBPACK_IMPORTED_MODULE_0__getISOWeekYear_index_js__["a" /* default */](dirtyDate); 29724 var fourthOfJanuary = new Date(0); 29725 fourthOfJanuary.setFullYear(year + 1, 0, 4); 29726 fourthOfJanuary.setHours(0, 0, 0, 0); 29727 var date = __WEBPACK_IMPORTED_MODULE_1__startOfISOWeek_index_js__["a" /* default */](fourthOfJanuary); 29728 date.setDate(date.getDate() - 1); 29729 return date; 29730 } 29731 29732 /***/ 29733 }), 29734 /* 405 */ 29735 /***/ (function (module, __webpack_exports__, __webpack_require__) { 29736 29737 "use strict"; 29738 /* harmony export (immutable) */ 29739 __webpack_exports__["a"] = lastDayOfQuarter; 29740 /* harmony import */ 29741 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 29742 /* harmony import */ 29743 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 29744 29745 29746 /** 29747 * @name lastDayOfQuarter 29748 * @category Quarter Helpers 29749 * @summary Return the last day of a year quarter for the given date. 29750 *
29751 * @description 29752 * Return the last day of a year quarter for the given date. 29753 * The result will be in the local timezone. 29754 * 29755 * ### v2.0.0 breaking changes: 29756 * 29757 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 29758 * 29759 * @param {Date|Number} date - the original date 29760 * @param {Object} [options] - an object with options. 29761 * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate} 29762 * @returns {Date} the last day of a quarter 29763 * @throws {TypeError} 1 argument required 29764 * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2 29765 * 29766 * @example 29767 * // The last day of a quarter for 2 September 2014 11:55:00: 29768 * var result = lastDayOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) 29769 * //=> Tue Sep 30 2014 00:00:00 29770 */ 29771 29772 function lastDayOfQuarter(dirtyDate) { 29773 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 29774 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 29775 var currentMonth = date.getMonth(); 29776 var month = currentMonth - currentMonth % 3 + 3; 29777 date.setMonth(month, 0); 29778 date.setHours(0, 0, 0, 0); 29779 return date; 29780 } 29781 29782 /***/ 29783 }), 29784 /* 406 */ 29785 /***/ (function (module, __webpack_exports__, __webpack_require__) { 29786 29787 "use strict"; 29788 /* harmony export (immutable) */ 29789 __webpack_exports__["a"] = lastDayOfYear; 29790 /* harmony import */ 29791 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 29792 /* harmony import */ 29793 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 29794 29795 29796 /** 29797 * @name lastDayOfYear 29798 * @category Year Helpers 29799 * @summary Return the last day of a year for the given date. 29800 * 29801 * @description 29802 * Return the last day of a year for the given date. 29803 * The result will be in the local timezone. 29804 * 29805 * ### v2.0.0 breaking changes: 29806 * 29807 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 29808 * 29809 * @param {Date|Number} date - the original date 29810 * @returns {Date} the last day of a year 29811 * @throws {TypeError} 1 argument required 29812 * 29813 * @example 29814 * // The last day of a year for 2 September 2014 11:55:00: 29815 * var result = lastDayOfYear(new Date(2014, 8, 2, 11, 55, 00)) 29816 * //=> Wed Dec 31 2014 00:00:00 29817 */ 29818 29819 function lastDayOfYear(dirtyDate) { 29820 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 29821 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 29822 var year = date.getFullYear(); 29823 date.setFullYear(year + 1, 0, 0); 29824 date.setHours(0, 0, 0, 0); 29825 return date; 29826 } 29827 29828 /***/ 29829 }), 29830 /* 407 */ 29831 /***/ (function (module, __webpack_exports__, __webpack_require__) { 29832 29833 "use strict"; 29834 /* harmony export (immutable) */ 29835 __webpack_exports__["a"] = lightFormat; 29836 /* harmony import */ 29837 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 29838 /* harmony import */ 29839 var __WEBPACK_IMPORTED_MODULE_1__lib_format_lightFormatters_index_js__ = __webpack_require__(152); 29840 /* harmony import */ 29841 var __WEBPACK_IMPORTED_MODULE_2__lib_getTimezoneOffsetInMilliseconds_index_js__ = __webpack_require__(19); 29842 /* harmony import */ 29843 var __WEBPACK_IMPORTED_MODULE_3__isValid_index_js__ = __webpack_require__(15); 29844 /* harmony import */ 29845 var __WEBPACK_IMPORTED_MODULE_4__subMilliseconds_index_js__ = __webpack_require__(49); 29846 /* harmony import */ 29847 var __WEBPACK_IMPORTED_MODULE_5__lib_requiredArgs_index_js__ = __webpack_require__(0); 29848 29849 29850 // This RegExp consists of three parts separated by `|`: 29851// - (\w)\1* matches any sequences of the same letter 29852// - '' matches two quote characters in a row 29853// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), 29854// except a single quote symbol, which ends the sequence. 29855// Two quote characters do not end the sequence. 29856// If there is no matching single quote
29857// then the sequence will continue until the end of the string. 29858// - . matches any single character unmatched by previous parts of the RegExps 29859 29860 var formattingTokensRegExp = /(\w)\1*|''|'(''|[^'])+('|$)|./g; 29861 var escapedStringRegExp = /^'([^]*?)'?$/; 29862 var doubleQuoteRegExp = /''/g; 29863 var unescapedLatinCharacterRegExp = /[a-zA-Z]/; 29864 29865 /** 29866 * @name lightFormat 29867 * @category Common Helpers 29868 * @summary Format the date. 29869 * 29870 * @description 29871 * Return the formatted date string in the given format. Unlike `format`, 29872 * `lightFormat` doesn't use locales and outputs date using the most popular tokens. 29873 * 29874 * > â ï¸ Please note that the `lightFormat` tokens differ from Moment.js and other libraries. 29875 * > See: https://git.io/fxCyr 29876 * 29877 * The characters wrapped between two single quotes characters (') are escaped. 29878 * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. 29879 * 29880 * Format of the string is based on Unicode Technical Standard #35: 29881 * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table 29882 * 29883 * Accepted patterns: 29884 * | Unit | Pattern | Result examples | 29885 * |---------------------------------|---------|-----------------------------------| 29886 * | AM, PM | a..aaa | AM, PM | 29887 * | | aaaa | a.m., p.m. | 29888 * | | aaaaa | a, p | 29889 * | Calendar year | y | 44, 1, 1900, 2017 | 29890 * | | yy | 44, 01, 00, 17 | 29891 * | | yyy | 044, 001, 000, 017 | 29892 * | | yyyy | 0044, 0001, 1900, 2017 | 29893 * | Month (formatting) | M | 1, 2, ..., 12 | 29894 * | | MM | 01, 02, ..., 12 | 29895 * | Day of month | d | 1, 2, ..., 31 | 29896 * | | dd | 01, 02, ..., 31 | 29897 * | Hour [1-12] | h | 1, 2, ..., 11, 12 | 29898 * | | hh | 01, 02, ..., 11, 12 | 29899 * | Hour [0-23] | H | 0, 1, 2, ..., 23 | 29900 * | | HH | 00, 01, 02, ..., 23 | 29901 * | Minute | m | 0, 1, ..., 59 | 29902 * | | mm | 00, 01, ..., 59 | 29903 * | Second | s | 0, 1, ..., 59 | 29904 * | | ss | 00, 01, ..., 59 | 29905 * | Fraction of second | S | 0, 1, ..., 9 | 29906 * | | SS | 00, 01, ..., 99 | 29907 * | | SSS | 000, 0001, ..., 999 | 29908 * | | SSSS | ... | 29909 * 29910 * @param {Date|Number} date - the original date 29911 * @param {String} format - the string of tokens 29912 * @returns {String} the formatted date string 29913 * @throws {TypeError} 2 arguments required 29914 * @throws {RangeError}
vendor: 4,229 bytes, lines 29914-30000
29914 format string contains an unescaped latin alphabet character 29915 * 29916 * @example 29917 * var result = lightFormat(new Date(2014, 1, 11), 'yyyy-MM-dd') 29918 * //=> '2014-02-11' 29919 */ 29920 29921 function lightFormat(dirtyDate, dirtyFormatStr) { 29922 __WEBPACK_IMPORTED_MODULE_5__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 29923 var formatStr = String(dirtyFormatStr); 29924 var originalDate = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 29925 29926 if (!__WEBPACK_IMPORTED_MODULE_3__isValid_index_js__["a" /* default */](originalDate)) { 29927 throw new RangeError('Invalid time value'); 29928 } // Convert the date in system timezone to the same date in UTC+00:00 timezone. 29929 // This ensures that when UTC functions will be implemented, locales will be compatible with them. 29930 // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376 29931 29932 29933 var timezoneOffset = __WEBPACK_IMPORTED_MODULE_2__lib_getTimezoneOffsetInMilliseconds_index_js__["a" /* default */](originalDate); 29934 var utcDate = __WEBPACK_IMPORTED_MODULE_4__subMilliseconds_index_js__["a" /* default */](originalDate, timezoneOffset); 29935 var result = formatStr.match(formattingTokensRegExp).map(function (substring) { 29936 // Replace two single quote characters with one single quote character 29937 if (substring === "''") { 29938 return "'"; 29939 } 29940 29941 var firstCharacter = substring[0]; 29942 29943 if (firstCharacter === "'") { 29944 return cleanEscapedString(substring); 29945 } 29946 29947 var formatter = __WEBPACK_IMPORTED_MODULE_1__lib_format_lightFormatters_index_js__["a" /* default */][firstCharacter]; 29948 29949 if (formatter) { 29950 return formatter(utcDate, substring, null, {}); 29951 } 29952 29953 if (firstCharacter.match(unescapedLatinCharacterRegExp)) { 29954 throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`'); 29955 } 29956 29957 return substring; 29958 }).join(''); 29959 return result; 29960 } 29961 29962 function cleanEscapedString(input) { 29963 return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'"); 29964 } 29965 29966 /***/ 29967 }), 29968 /* 408 */ 29969 /***/ (function (module, __webpack_exports__, __webpack_require__) { 29970 29971 "use strict"; 29972 /* harmony export (immutable) */ 29973 __webpack_exports__["a"] = max; 29974 /* harmony import */ 29975 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 29976 /* harmony import */ 29977 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 29978 29979 29980 /** 29981 * @name max 29982 * @category Common Helpers 29983 * @summary Return the latest of the given dates. 29984 * 29985 * @description 29986 * Return the latest of the given dates. 29987 * 29988 * ### v2.0.0 breaking changes: 29989 * 29990 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 29991 * 29992 * - `max` function now accepts an array of dates rather than spread arguments. 29993 * 29994 * ```javascript 29995 * // Before v2.0.0 29996 * var date1 = new Date(1989, 6, 10) 29997 * var date2 = new Date(1987, 1, 11) 29998 * var maxDate = max(date1, date2) 29999 * 30000 * // v2.0.0 onward:
30001 * var dates = [new Date(1989, 6, 10), new Date(1987, 1, 11)] 30002 * var maxDate = max(dates) 30003 * ``` 30004 * 30005 * @param {Date[]|Number[]} datesArray - the dates to compare 30006 * @returns {Date} the latest of the dates 30007 * @throws {TypeError} 1 argument required 30008 * 30009 * @example 30010 * // Which of these dates is the latest? 30011 * var result = max([ 30012 * new Date(1989, 6, 10), 30013 * new Date(1987, 1, 11), 30014 * new Date(1995, 6, 2), 30015 * new Date(1990, 0, 1) 30016 * ]) 30017 * //=> Sun Jul 02 1995 00:00:00 30018 */ 30019 30020 function max(dirtyDatesArray) { 30021 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 30022 var datesArray; // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method 30023 30024 if (dirtyDatesArray && typeof dirtyDatesArray.forEach === 'function') { 30025 datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array. 30026 } else if (typeof dirtyDatesArray === 'object' && dirtyDatesArray !== null) { 30027 datesArray = Array.prototype.slice.call(dirtyDatesArray); 30028 } else { 30029 // `dirtyDatesArray` is non-iterable, return Invalid Date 30030 return new Date(NaN); 30031 } 30032 30033 var result; 30034 datesArray.forEach(function (dirtyDate) { 30035 var currentDate = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 30036 30037 if (result === undefined || result < currentDate || isNaN(currentDate)) { 30038 result = currentDate; 30039 } 30040 }); 30041 return result || new Date(NaN); 30042 } 30043 30044 /***/ 30045 }), 30046 /* 409 */ 30047 /***/ (function (module, __webpack_exports__, __webpack_require__) { 30048 30049 "use strict"; 30050 /* harmony export (immutable) */ 30051 __webpack_exports__["a"] = min; 30052 /* harmony import */ 30053 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 30054 /* harmony import */ 30055 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 30056 30057 30058 /** 30059 * @name min 30060 * @category Common Helpers 30061 * @summary Return the earliest of the given dates. 30062 * 30063 * @description 30064 * Return the earliest of the given dates. 30065 * 30066 * ### v2.0.0 breaking changes: 30067 * 30068 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 30069 * 30070 * - `min` function now accepts an array of dates rather than spread arguments. 30071 * 30072 * ```javascript 30073 * // Before v2.0.0 30074 * var date1 = new Date(1989, 6, 10) 30075 * var date2 = new Date(1987, 1, 11) 30076 * var minDate = min(date1, date2) 30077 * 30078 * // v2.0.0 onward: 30079 * var dates = [new Date(1989, 6, 10), new Date(1987, 1, 11)] 30080 * var minDate = min(dates) 30081 * ``` 30082 * 30083 * @param {Date[]|Number[]} datesArray - the dates to compare 30084 * @returns {Date} the earliest of the dates 30085 * @throws {TypeError} 1 argument required 30086 * 30087 * @example 30088 * // Which of these dates is the earliest? 30089 * var result = min([ 30090 * new Date(1989, 6, 10), 30091 * new Date(1987, 1, 11), 30092 * new Date(1995, 6, 2), 30093 * new Date(1990, 0, 1) 30094 * ]) 30095 * //=> Wed Feb 11 1987 00:00:00 30096 */ 30097 30098 function min(dirtyDatesArray) { 30099 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 30100 var datesArray; // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEac
30100h` method 30101 30102 if (dirtyDatesArray && typeof dirtyDatesArray.forEach === 'function') { 30103 datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array. 30104 } else if (typeof dirtyDatesArray === 'object' && dirtyDatesArray !== null) { 30105 datesArray = Array.prototype.slice.call(dirtyDatesArray); 30106 } else { 30107 // `dirtyDatesArray` is non-iterable, return Invalid Date 30108 return new Date(NaN); 30109 } 30110 30111 var result; 30112 datesArray.forEach(function (dirtyDate) { 30113 var currentDate = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 30114 30115 if (result === undefined || result > currentDate || isNaN(currentDate)) { 30116 result = currentDate; 30117 } 30118 }); 30119 return result || new Date(NaN); 30120 } 30121 30122 /***/ 30123 }), 30124 /* 410 */ 30125 /***/ (function (module, __webpack_exports__, __webpack_require__) { 30126 30127 "use strict"; 30128 /* harmony export (immutable) */ 30129 __webpack_exports__["a"] = parseISO; 30130 /* harmony import */ 30131 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 30132 /* harmony import */ 30133 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 30134 30135 30136 var MILLISECONDS_IN_HOUR = 3600000; 30137 var MILLISECONDS_IN_MINUTE = 60000; 30138 var DEFAULT_ADDITIONAL_DIGITS = 2; 30139 var patterns = { 30140 dateTimeDelimiter: /[T ]/, 30141 timeZoneDelimiter: /[Z ]/i, 30142 timezone: /([Z+-].*)$/ 30143 }; 30144 var dateRegex = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/; 30145 var timeRegex = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/; 30146 var timezoneRegex = /^([+-])(\d{2})(?::?(\d{2}))?$/; 30147 30148 /** 30149 * @name parseISO 30150 * @category Common Helpers 30151 * @summary Parse ISO string 30152 * 30153 * @description 30154 * Parse the given string in ISO 8601 format and return an instance of Date. 30155 * 30156 * Function accepts complete ISO 8601 formats as well as partial implementations. 30157 * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601 30158 * 30159 * If the argument isn't a string, the function cannot parse the string or 30160 * the values are invalid, it returns Invalid Date. 30161 * 30162 * ### v2.0.0 breaking changes: 30163 * 30164 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 30165 * 30166 * - The previous `parse` implementation was renamed to `parseISO`. 30167 * 30168 * ```javascript 30169 * // Before v2.0.0 30170 * parse('2016-01-01') 30171 * 30172 * // v2.0.0 onward 30173 * parseISO('2016-01-01') 30174 * ``` 30175 * 30176 * - `parseISO` now validates separate date and time values in ISO-8601 strings 30177 * and returns `Invalid Date` if the date is invalid. 30178 * 30179 * ```javascript 30180 * parseISO('2018-13-32') 30181 * //=> Invalid Date 30182 * ``` 30183 * 30184 * - `parseISO` now doesn't fall back to `new Date` constructor 30185 * if it fails to parse a string argument. Instead, it returns `Invalid Date`. 30186 * 30187 * @param {String} argument - the value to convert 30188 * @param {Object} [options] - an object with options. 30189 * @param {0|1|2} [options.additionalDigits=2] - the additional number of digits in the extended year format 30190 * @returns {Date} the parsed date in the local time zone 30191 * @throws {TypeError} 1 argument required 30192 * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2 30193 * 30194 * @example 30195 * // Convert string '2014-02-11T11:30:30' to date: 30196 * var result = parseISO('2014-02-11T11:30:30') 30197 * //=> Tue Feb 11 2014 11:30:30 30198 * 30199 * @example 30200 * // Convert string '+02014101' to date, 30201 * // if the additional number of digits in the extended year format is 1: 30202 * var result = parseISO('+02014101', { additionalDigits: 1 }) 30203 * //=> Fri Apr 11 2014 00:00:00 30204 */ 30205 30206 function parseISO(argument, dirtyOptions) { 30207 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 30208 var options = dirtyOptions || {}; 30209 var additionalDigits = options.additionalDigits == null ? DEFAULT_ADDITIONAL_DIGITS : __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](options.additionalDigits); 30210 30211 if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) { 30212 throw new RangeError('additionalDigits must be 0, 1 or 2'); 30213 } 30214 30215 if (!(typeof argument === 'string' || Object.prototype.toString.call(argument) === '[object String]')) { 30216 return new Date(NaN); 30217 } 30218 30219 var dateStrings = splitDateString(argument); 30220 var date; 30221 30222 if (dateStrings.date) { 30223 var parseYearResult = parseYear(dateStrings.date, additionalDigits); 30224 date = parseDate(parseYearResult.restDateString, parseYearResult.year); 30225 } 30226 30227 if (isNaN(date) || !date) { 30228 return new Date(NaN); 30229 } 30230 30231 var timestamp = date.getTime(); 30232 var time = 0; 30233 var offset; 30234 30235 if (dateStrings.time) { 30236 time = parseTime(dateStrings.time); 30237 30238 if (isNaN(time) || time === null) { 30239 return new Date(NaN); 30240 } 30241 } 30242 30243 if (dateStrings.timezone) { 30244 offset = parseTimezone(dateStrings.timezone); 30245 30246 if (isNaN(offset)) { 30247 return new Date(NaN); 30248 } 30249 } else { 30250 var dirtyDate = new Date(timestamp + time); // js parsed string assuming it's in UTC timezone 30251 // but we need it to be parsed in our timezone 30252 // so we use utc values to build date in our timezone. 30253 // Year values from 0 to 99 map to the years 1900 to 1999 30254 // so set year explicitly with setFullYear. 30255
vendor: 1,650 bytes, lines 30256-30290
30256 var result = new Date(dirtyDate.getUTCFullYear(), dirtyDate.getUTCMonth(), dirtyDate.getUTCDate(), dirtyDate.getUTCHours(), dirtyDate.getUTCMinutes(), dirtyDate.getUTCSeconds(), dirtyDate.getUTCMilliseconds()); 30257 result.setFullYear(dirtyDate.getUTCFullYear()); 30258 return result; 30259 } 30260 30261 return new Date(timestamp + time + offset); 30262 } 30263 30264 function splitDateString(dateString) { 30265 var dateStrings = {}; 30266 var array = dateString.split(patterns.dateTimeDelimiter); 30267 var timeString; // The regex match should only return at maximum two array elements. 30268 // [date], [time], or [date, time]. 30269 30270 if (array.length > 2) { 30271 return dateStrings; 30272 } 30273 30274 if (/:/.test(array[0])) { 30275 dateStrings.date = null; 30276 timeString = array[0]; 30277 } else { 30278 dateStrings.date = array[0]; 30279 timeString = array[1]; 30280 30281 if (patterns.timeZoneDelimiter.test(dateStrings.date)) { 30282 dateStrings.date = dateString.split(patterns.timeZoneDelimiter)[0]; 30283 timeString = dateString.substr(dateStrings.date.length, dateString.length); 30284 } 30285 } 30286 30287 if (timeString) { 30288 var token = patterns.timezone.exec(timeString); 30289 30290 if (token) {
vendor: 6,524 bytes, lines 30291-30444
30291 dateStrings.time = timeString.replace(token[1], ''); 30292 dateStrings.timezone = token[1]; 30293 } else { 30294 dateStrings.time = timeString; 30295 } 30296 } 30297 30298 return dateStrings; 30299 } 30300 30301 function parseYear(dateString, additionalDigits) { 30302 var regex = new RegExp('^(?:(\\d{4}|[+-]\\d{' + (4 + additionalDigits) + '})|(\\d{2}|[+-]\\d{' + (2 + additionalDigits) + '})$)'); 30303 var captures = dateString.match(regex); // Invalid ISO-formatted year 30304 30305 if (!captures) return { 30306 year: null 30307 }; 30308 var year = captures[1] && parseInt(captures[1]); 30309 var century = captures[2] && parseInt(captures[2]); 30310 return { 30311 year: century == null ? year : century * 100, 30312 restDateString: dateString.slice((captures[1] || captures[2]).length) 30313 }; 30314 } 30315 30316 function parseDate(dateString, year) { 30317 // Invalid ISO-formatted year 30318 if (year === null) return null; 30319 var captures = dateString.match(dateRegex); // Invalid ISO-formatted string 30320 30321 if (!captures) return null; 30322 var isWeekDate = !!captures[4]; 30323 var dayOfYear = parseDateUnit(captures[1]); 30324 var month = parseDateUnit(captures[2]) - 1; 30325 var day = parseDateUnit(captures[3]); 30326 var week = parseDateUnit(captures[4]); 30327 var dayOfWeek = parseDateUnit(captures[5]) - 1; 30328 30329 if (isWeekDate) { 30330 if (!validateWeekDate(year, week, dayOfWeek)) { 30331 return new Date(NaN); 30332 } 30333 30334 return dayOfISOWeekYear(year, week, dayOfWeek); 30335 } else { 30336 var date = new Date(0); 30337 30338 if (!validateDate(year, month, day) || !validateDayOfYearDate(year, dayOfYear)) { 30339 return new Date(NaN); 30340 } 30341 30342 date.setUTCFullYear(year, month, Math.max(dayOfYear, day)); 30343 return date; 30344 } 30345 } 30346 30347 function parseDateUnit(value) { 30348 return value ? parseInt(value) : 1; 30349 } 30350 30351 function parseTime(timeString) { 30352 var captures = timeString.match(timeRegex); 30353 if (!captures) return null; // Invalid ISO-formatted time 30354 30355 var hours = parseTimeUnit(captures[1]); 30356 var minutes = parseTimeUnit(captures[2]); 30357 var seconds = parseTimeUnit(captures[3]); 30358 30359 if (!validateTime(hours, minutes, seconds)) { 30360 return NaN; 30361 } 30362 30363 return hours * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * 1000; 30364 } 30365 30366 function parseTimeUnit(value) { 30367 return value && parseFloat(value.replace(',', '.')) || 0; 30368 } 30369 30370 function parseTimezone(timezoneString) { 30371 if (timezoneString === 'Z') return 0; 30372 var captures = timezoneString.match(timezoneRegex); 30373 if (!captures) return 0; 30374 var sign = captures[1] === '+' ? -1 : 1; 30375 var hours = parseInt(captures[2]); 30376 var minutes = captures[3] && parseInt(captures[3]) || 0; 30377 30378 if (!validateTimezone(hours, minutes)) { 30379 return NaN; 30380 } 30381 30382 return sign * (hours * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE); 30383 } 30384 30385 function dayOfISOWeekYear(isoWeekYear, week, day) { 30386 var date = new Date(0); 30387 date.setUTCFullYear(isoWeekYear, 0, 4); 30388 var fourthOfJanuaryDay = date.getUTCDay() || 7; 30389 var diff = (week - 1) * 7 + day + 1 - fourthOfJanuaryDay; 30390 date.setUTCDate(date.getUTCDate() + diff); 30391 return date; 30392 } // Validation functions 30393// February is null to handle the leap year (using ||) 30394 30395 30396 var daysInMonths = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; 30397 30398 function isLeapYearIndex(year) { 30399 return year % 400 === 0 || year % 4 === 0 && year % 100; 30400 } 30401 30402 function validateDate(year, month, date) { 30403 return month >= 0 && month <= 11 && date >= 1 && date <= (daysInMonths[month] || (isLeapYearIndex(year) ? 29 : 28)); 30404 } 30405 30406 function validateDayOfYearDate(year, dayOfYear) { 30407 return dayOfYear >= 1 && dayOfYear <= (isLeapYearIndex(year) ? 366 : 365); 30408 } 30409 30410 function validateWeekDate(_year, week, day) { 30411 return week >= 1 && week <= 53 && day >= 0 && day <= 6; 30412 } 30413 30414 function validateTime(hours, minutes, seconds) { 30415 if (hours === 24) { 30416 return minutes === 0 && seconds === 0; 30417 } 30418 30419 return seconds >= 0 && seconds < 60 && minutes >= 0 && minutes < 60 && hours >= 0 && hours < 25; 30420 } 30421 30422 function validateTimezone(_hours, minutes) { 30423 return minutes >= 0 && minutes <= 59; 30424 } 30425 30426 /***/ 30427 }), 30428 /* 411 */ 30429 /***/ (function (module, __webpack_exports__, __webpack_require__) { 30430 30431 "use strict"; 30432 /* harmony export (immutable) */ 30433 __webpack_exports__["a"] = parseJSON; 30434 /* harmony import */ 30435 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 30436 /* harmony import */ 30437 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 30438 30439 30440 /** 30441 * @name parseJSON 30442 * @category Common Helpers 30443 * @summary Parse a JSON date string 30444 *
30445 * @description 30446 * Converts a complete ISO date string in UTC time, the typical format for transmitting 30447 * a date in JSON, to a JavaScript `Date` instance. 30448 * 30449 * This is a minimal implementation for converting dates retrieved from a JSON API to 30450 * a `Date` instance which can be used with other functions in the `date-fns` library. 30451 * The following formats are supported: 30452 * 30453 * - `2000-03-15T05:20:10.123Z`: The output of `.toISOString()` and `JSON.stringify(new Date())` 30454 * - `2000-03-15T05:20:10Z`: Without milliseconds 30455 * - `2000-03-15T05:20:10+00:00`: With a zero offset, the default JSON encoded format in some other languages 30456 * - `2000-03-15T05:20:10+0000`: With a zero offset without a colon 30457 * - `2000-03-15T05:20:10`: Without a trailing 'Z' symbol 30458 * - `2000-03-15T05:20:10.1234567`: Up to 7 digits in milliseconds field. Only first 3 are taken into account since JS does not allow fractional milliseconds 30459 * - `2000-03-15 05:20:10`: With a space instead of a 'T' separator for APIs returning a SQL date without reformatting 30460 * 30461 * For convenience and ease of use these other input types are also supported 30462 * via [toDate]{@link https://date-fns.org/docs/toDate}: 30463 * 30464 * - A `Date` instance will be cloned 30465 * - A `number` will be treated as a timestamp 30466 * 30467 * Any other input type or invalid date strings will return an `Invalid Date`. 30468 * 30469 * @param {String|Number|Date} argument A fully formed ISO8601 date string to convert 30470 * @returns {Date} the parsed date in the local time zone 30471 * @throws {TypeError} 1 argument required 30472 */ 30473 30474 function parseJSON(argument) { 30475 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 30476 30477 if (typeof argument === 'string') { 30478 var parts = argument.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|\+00:?00)?/); 30479 30480 if (parts) { 30481 return new Date(Date.UTC(+parts[1], parts[2] - 1, +parts[3], +parts[4], +parts[5], +parts[6], +((parts[7] || '0') + '00').substring(0, 3))); 30482 } 30483 30484 return new Date(NaN); 30485 } 30486 30487 return __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](argument); 30488 } 30489 30490 /***/ 30491 }), 30492 /* 412 */ 30493 /***/ (function (module, __webpack_exports__, __webpack_require__) { 30494 30495 "use strict"; 30496 /* harmony export (immutable) */ 30497 __webpack_exports__["a"] = roundToNearestMinutes; 30498 /* harmony import */ 30499 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 30500 /* harmony import */ 30501 var __WEBPACK_IMPORTED_MODULE_1__lib_toInteger_index_js__ = __webpack_require__(6); 30502 30503 30504 /** 30505 * @name roundToNearestMinutes 30506 * @category Minute Helpers 30507 * @summary Rounds the given date to the nearest minute 30508 * 30509 * @description 30510 * Rounds the given date to the nearest minute (or number of minutes). 30511 * Rounds up when the given date is exactly between the nearest roun
30511d minutes. 30512 * 30513 * ### v2.0.0 breaking changes: 30514 * 30515 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 30516 * 30517 * @param {Date|Number} date - the date to round 30518 * @param {Object} [options] - an object with options. 30519 * @param {Number} [options.nearestTo=1] - nearest number of minutes to round to. E.g. `15` to round to quarter hours. 30520 * @returns {Date} the new date rounded to the closest minute 30521 * @throws {TypeError} 1 argument required 30522 * @throws {RangeError} `options.nearestTo` must be between 1 and 30 30523 * 30524 * @example 30525 * // Round 10 July 2014 12:12:34 to nearest minute: 30526 * var result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34)) 30527 * //=> Thu Jul 10 2014 12:13:00 30528 * 30529 * @example 30530 * // Round 10 July 2014 12:07:30 to nearest quarter hour: 30531 * var result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34), { nearestTo: 15 }) 30532 * // rounds up because given date is exactly between 12:00:00 and 12:15:00 30533 * //=> Thu Jul 10 2014 12:15:00 30534 */ 30535 30536 function roundToNearestMinutes(dirtyDate, options) { 30537 if (arguments.length < 1) { 30538 throw new TypeError('1 argument required, but only none provided present'); 30539 } 30540 30541 var nearestTo = options && 'nearestTo' in options ? __WEBPACK_IMPORTED_MODULE_1__lib_toInteger_index_js__["a" /* default */](options.nearestTo) : 1; 30542 30543 if (nearestTo < 1 || nearestTo > 30) { 30544 throw new RangeError('`options.nearestTo` must be between 1 and 30'); 30545 } 30546 30547 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 30548 var seconds = date.getSeconds(); // relevant if nearestTo is 1, which is the default case 30549 30550 var minutes = date.getMinutes() + seconds / 60; 30551 var roundedMinutes = Math.floor(minutes / nearestTo) * nearestTo; 30552 var remainderMinutes = minutes % nearestTo; 30553 var addedMinutes = Math.round(remainderMinutes / nearestTo) * nearestTo; 30554 return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), roundedMinutes + addedMinutes); 30555 } 30556 30557 /***/ 30558 }), 30559 /* 413 */ 30560 /***/ (function (module, __webpack_exports__, __webpack_require__) { 30561 30562 "use strict"; 30563 /* harmony export (immutable) */ 30564 __webpack_exports__["a"] = set; 30565 /* harmony import */ 30566 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 30567 /* harmony import */ 30568 var __WEBPACK_IMPORTED_MODULE_1__setMonth_index_js__ = __webpack_require__(96); 30569 /* harmony import */ 30570 var __WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__ = __webpack_require__(6); 30571 /* harmony import */ 30572 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 30573 30574 30575 /** 30576 * @name set 30577 * @category Common Helpers 30578 * @summary Set date values to a given date. 30579 * 30580 * @description 30581 * Set date values to a given date. 30582 * 30583 * Sets time values to date from object `values`. 30584 * A value is not set if it is undefined or null or doesn't exist in `values`. 30585 * 30586 * Note about bundle size: `set` does not internally use `setX` functions from date-fns but instead opts 30587 * to use native `Date#setX` methods. If you use this function, you may
30587not want to include the 30588 * other `setX` functions that date-fns provides if you are concerned about the bundle size. 30589 * 30590 * @param {Date|Number} date - the date to be changed 30591 * @param {Object} values - an object with options 30592 * @param {Number} [values.year] - the number of years to be set 30593 * @param {Number} [values.month] - the number of months to be set 30594 * @param {Number} [values.date] - the number of days to be set 30595 * @param {Number} [values.hours] - the number of hours to be set 30596 * @param {Number} [values.minutes] - the number of minutes to be set 30597 * @param {Number} [values.seconds] - the number of seconds to be set 30598 * @param {Number} [values.milliseconds] - the number of milliseconds to be set 30599 * @returns {Date} the new date with options set 30600 * @throws {TypeError} 2 arguments required 30601 * @throws {RangeError} `values` must be an object 30602 * 30603 * @example 30604 * // Transform 1 September 2014 into 20 October 2015 in a single line: 30605 * var result = set(new Date(2014, 8, 20), { year: 2015, month: 9, date: 20 }) 30606 * //=> Tue Oct 20 2015 00:00:00 30607 * 30608 * @example 30609 * // Set 12 PM to 1 September 2014 01:23:45 to 1 September 2014 12:00:00: 30610 * var result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 }) 30611 * //=> Mon Sep 01 2014 12:23:45 30612 */ 30613 30614 function set(dirtyDate, values) { 30615 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 30616 30617 if (typeof values !== 'object' || values === null) { 30618 throw new RangeError('values parameter must be an object'); 30619 } 30620 30621 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date 30622 30623 if (isNaN(date)) { 30624 return new Date(NaN); 30625 } 30626 30627 if (values.year != null) { 30628 date.setFullYear(values.year); 30629 } 30630 30631 if (values.month != null) { 30632 date = __WEBPACK_IMPORTED_MODULE_1__setMonth_index_js__["a" /* default */](date, values.month); 30633 } 30634 30635 if (values.date != null) { 30636 date.setDate(__WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__["a" /* default */](values.date)); 30637 } 30638 30639 if (values.hours != null) { 30640 date.setHours(__WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__["a" /* default */](values.hours)); 30641 } 30642 30643 if (values.minutes != null) { 30644 date.setMinutes(__WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__["a" /* default */](values.minutes)); 30645 } 30646 30647 if (values.seconds != null) { 30648 date.setSeconds(__WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__["a" /* default */](values.seconds)); 30649 } 30650 30651 if (values.milliseconds != null) { 30652 date.setMilliseconds(__WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__["a" /* default */](values.milliseconds)); 30653 } 30654 30655 return date; 30656 } 30657 30658 /***/ 30659 }), 30660 /* 414 */ 30661 /***/ (function (module, __webpack_exports__, __webpack_require__) { 30662 30663 "use strict"; 30664 /* harmony export (immutable) */ 30665 __webpack_exports__["a"] = setDate; 30666 /* harmony import */ 30667 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 30668 /* harmony import */ 30669 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 30670 /* harmony import */ 30671 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 30672 30673 30674 /** 30675 * @name setDate 30676 * @category Day Helpers 30677 * @summary Set the day of the month to the given date. 30678 *
30679 * @description 30680 * Set the day of the month to the given date. 30681 * 30682 * ### v2.0.0 breaking changes: 30683 * 30684 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 30685 * 30686 * @param {Date|Number} date - the date to be changed 30687 * @param {Number} dayOfMonth - the day of the month of the new date 30688 * @returns {Date} the new date with the day of the month set 30689 * @throws {TypeError} 2 arguments required 30690 * 30691 * @example 30692 * // Set the 30th day of the month to 1 September 2014: 30693 * var result = setDate(new Date(2014, 8, 1), 30) 30694 * //=> Tue Sep 30 2014 00:00:00 30695 */ 30696 30697 function setDate(dirtyDate, dirtyDayOfMonth) { 30698 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 30699 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 30700 var dayOfMonth = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyDayOfMonth); 30701 date.setDate(dayOfMonth); 30702 return date; 30703 } 30704 30705 /***/ 30706 }), 30707 /* 415 */ 30708 /***/ (function (module, __webpack_exports__, __webpack_require__) { 30709 30710 "use strict"; 30711 /* harmony export (immutable) */ 30712 __webpack_exports__["a"] = setDay; 30713 /* harmony import */ 30714 var __WEBPACK_IMPORTED_MODULE_0__addDays_index_js__ = __webpack_require__(21); 30715 /* harmony import */ 30716 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 30717 /* harmony import */ 30718 var __WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__ = __webpack_require__(6); 30719 /* harmony import */ 30720 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 30721 30722 30723 /** 30724 * @name setDay 30725 * @category Weekday Helpers 30726 * @summary Set the day of the week to the given date. 30727 * 30728 * @description 30729 * Set the day of the week to the given date. 30730 * 30731 * ### v2.0.0 breaking changes: 30732 * 30733 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 30734 * 30735 * @param {Date|Number} date - the date to be changed 30736 * @param {Number} day - the day of the week of the new date 30737 * @param {Object} [options] - an object with options. 30738 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 30739 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 30740 * @returns {Date} the new date with the day of the week set 30741 * @throws {TypeError} 2 arguments required 30742 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 30743 * 30744 * @example 30745 * // Set week day to Sunday, with the default weekStartsOn of Sunday: 30746 * var result = setDay(new Date(2014, 8, 1), 0) 30747 * //=> Sun Aug 31 2014 00:00:00 30748 * 30749 * @example 30750 * // Set week day to Sunday, with a weekStartsOn of Monday: 30751 * var result = setDay(new Date(2014, 8, 1), 0, { weekStartsOn: 1 }) 30752 * //=> Sun Sep 07 2014 00:00:00 30753 */ 30754 30755 function setDay(dirtyDate, dirtyDay, dirtyOptions) { 30756 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 30757 var options = dirtyOptions || {}; 30758 var locale = options.locale; 30759 var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn; 30760 var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : __WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__["a" /* default */](localeWeekStartsOn); 30761 var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : __WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__["a" /* default */](options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 30762 30763 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 30764 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 30765 } 30766 30767 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate, options); 30768 var day = __WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__["a" /* default */](dirtyDay); 30769 var currentDay = date.getDay(); 30770 var remainder = day % 7; 30771 var dayIndex = (remainder + 7) % 7; 30772 var delta = 7 - weekStartsOn; 30773 var diff = day < 0 || day > 6 ? day - (currentDay + delta) % 7 : (dayIndex + delta) % 7 - (currentDay + delta) % 7; 30774 return __WEBPACK_IMPORTED_MODULE_0__addDays_index_js__["a" /* default */](date, diff, options); 30775 } 30776 30777 /***/ 30778 }), 30779 /* 416 */ 30780 /***/ (function (module, __webpack_exports__, __webpack_require__) { 30781 30782 "use strict"; 30783 /* harmony export (immutable) */ 30784 __webpack_exports__["a"] = setDayOfYear; 30785 /* harmony import */ 30786 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 30787 /* harmony import */ 30788 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 30789 /* harmony import */ 30790 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 30791 30792 30793 /** 30794 * @name setDayOfYear 30795 * @category Day Helpers 30796 * @summary Set the day of the year to the given date. 30797 *
30798 * @description 30799 * Set the day of the year to the given date. 30800 * 30801 * ### v2.0.0 breaking changes: 30802 * 30803 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 30804 * 30805 * @param {Date|Number} date - the date to be changed 30806 * @param {Number} dayOfYear - the day of the year of the new date 30807 * @returns {Date} the new date with the day of the year set 30808 * @throws {TypeError} 2 arguments required 30809 * 30810 * @example 30811 * // Set the 2nd day of the year to 2 July 2014: 30812 * var result = setDayOfYear(new Date(2014, 6, 2), 2) 30813 * //=> Thu Jan 02 2014 00:00:00 30814 */ 30815 30816 function setDayOfYear(dirtyDate, dirtyDayOfYear) { 30817 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 30818 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 30819 var dayOfYear = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyDayOfYear); 30820 date.setMonth(0); 30821 date.setDate(dayOfYear); 30822 return date; 30823 } 30824 30825 /***/ 30826 }), 30827 /* 417 */ 30828 /***/ (function (module, __webpack_exports__, __webpack_require__) { 30829 30830 "use strict"; 30831 /* harmony export (immutable) */ 30832 __webpack_exports__["a"] = setHours; 30833 /* harmony import */ 30834 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 30835 /* harmony import */ 30836 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 30837 /* harmony import */ 30838 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 30839 30840 30841 /** 30842 * @name setHours 30843 * @category Hour Helpers 30844 * @summary Set the hours to the given date. 30845 * 30846 * @description 30847 * Set the hours to the given date. 30848 * 30849 * ### v2.0.0 breaking changes: 30850 * 30851 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 30852 * 30853 * @param {Date|Number} date - the date to be changed 30854 * @param {Number} hours - the hours of the new date 30855 * @returns {Date} the new date with the hours set 30856 * @throws {TypeError} 2 arguments required 30857 * 30858 * @example 30859 * // Set 4 hours to 1 September 2014 11:30:00: 30860 * var result = setHours(new Date(2014, 8, 1, 11, 30), 4) 30861 * //=> Mon Sep 01 2014 04:30:00 30862 */ 30863 30864 function setHours(dirtyDate, dirtyHours) { 30865 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 30866 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 30867 var hours = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyHours); 30868 date.setHours(hours); 30869 return date; 30870 } 30871 30872 /***/ 30873 }), 30874 /* 418 */ 30875 /***/ (function (module, __webpack_exports__, __webpack_require__) { 30876 30877 "use strict"; 30878 /* harmony export (immutable) */ 30879 __webpack_exports__["a"] = setISODay; 30880 /* harmony import */ 30881 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 30882 /* harmony import */ 30883 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 30884 /* harmony import */ 30885 var __WEBPACK_IMPORTED_MODULE_2__addDays_index_js__ = __webpack_require__(21); 30886 /* harmony import */ 30887 var __WEBPACK_IMPORTED_MODULE_3__getISODay_index_js__ = __webpack_require__(166); 30888 /* harmony import */ 30889 var __WEBPACK_IMPORTED_MODULE_4__lib_requiredArgs_index_js__ = __webpack_require__(0); 30890 30891 30892 /** 30893 * @name setISODay 30894 * @category Weekday Helpers 30895 * @summary Set the day of the ISO week to the given date. 30896 *
30897 * @description 30898 * Set the day of the ISO week to the given date. 30899 * ISO week starts with Monday. 30900 * 7 is the index of Sunday, 1 is the index of Monday etc. 30901 * 30902 * ### v2.0.0 breaking changes: 30903 * 30904 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 30905 * 30906 * @param {Date|Number} date - the date to be changed 30907 * @param {Number} day - the day of the ISO week of the new date 30908 * @returns {Date} the new date with the day of the ISO week set 30909 * @throws {TypeError} 2 arguments required 30910 * 30911 * @example 30912 * // Set Sunday to 1 September 2014: 30913 * var result = setISODay(new Date(2014, 8, 1), 7) 30914 * //=> Sun Sep 07 2014 00:00:00 30915 */ 30916 30917 function setISODay(dirtyDate, dirtyDay) { 30918 __WEBPACK_IMPORTED_MODULE_4__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 30919 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 30920 var day = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyDay); 30921 var currentDay = __WEBPACK_IMPORTED_MODULE_3__getISODay_index_js__["a" /* default */](date); 30922 var diff = day - currentDay; 30923 return __WEBPACK_IMPORTED_MODULE_2__addDays_index_js__["a" /* default */](date, diff); 30924 } 30925 30926 /***/ 30927 }), 30928 /* 419 */ 30929 /***/ (function (module, __webpack_exports__, __webpack_require__) { 30930 30931 "use strict"; 30932 /* harmony export (immutable) */ 30933 __webpack_exports__["a"] = setISOWeek; 30934 /* harmony import */ 30935 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 30936 /* harmony import */ 30937 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 30938 /* harmony import */ 30939 var __WEBPACK_IMPORTED_MODULE_2__getISOWeek_index_js__ = __webpack_require__(167); 30940 /* harmony import */ 30941 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 30942 30943 30944 /** 30945 * @name setISOWeek 30946 * @category ISO Week Helpers 30947 * @summary Set the ISO week to the given date. 30948 * 30949 * @description 30950 * Set the ISO week to the given date, saving the weekday number. 30951 * 30952 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 30953 * 30954 * ### v2.0.0 breaking changes: 30955 * 30956 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 30957 * 30958 * @param {Date|Number} date - the date to be changed 30959 * @param {Number} isoWeek - the ISO week of the new date 30960 * @returns {Date} the new date with the ISO week set 30961 * @throws {TypeError} 2 arguments required 30962 * 30963 * @example 30964 * // Set the 53rd ISO week to 7 August 2004: 30965 * var result = setISOWeek(new Date(2004, 7, 7), 53) 30966 * //=> Sat Jan 01 2005 00:00:00 30967 */ 30968 30969 function setISOWeek(dirtyDate, dirtyISOWeek) { 30970 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 30971 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 30972 var isoWeek = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyISOWeek); 30973 var diff = __WEBPACK_IMPORTED_MODULE_2__getISOWeek_index_js__["a" /* default */](date) - isoWeek; 30974 date.setDate(date.getDate() - diff * 7); 30975 return date; 30976 } 30977 30978 /***/ 30979 }), 30980 /* 420 */ 30981 /***/ (function (module, __webpack_exports__, __webpack_require__) { 30982 30983 "use strict"; 30984 /* harmony export (immutable) */ 30985 __webpack_exports__["a"] = setMilliseconds; 30986 /* harmony import */ 30987 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 30988 /* harmony import */ 30989 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 30990 /* harmony import */ 30991 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 30992 30993 30994 /** 30995 * @name setMilliseconds 30996 * @category Millisecond Helpers 30997 * @summary Set the milliseconds to the given date. 30998 *
30999 * @description 31000 * Set the milliseconds to the given date. 31001 * 31002 * ### v2.0.0 breaking changes: 31003 * 31004 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 31005 * 31006 * @param {Date|Number} date - the date to be changed 31007 * @param {Number} milliseconds - the milliseconds of the new date 31008 * @returns {Date} the new date with the milliseconds set 31009 * @throws {TypeError} 2 arguments required 31010 * 31011 * @example 31012 * // Set 300 milliseconds to 1 September 2014 11:30:40.500: 31013 * var result = setMilliseconds(new Date(2014, 8, 1, 11, 30, 40, 500), 300) 31014 * //=> Mon Sep 01 2014 11:30:40.300 31015 */ 31016 31017 function setMilliseconds(dirtyDate, dirtyMilliseconds) { 31018 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 31019 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 31020 var milliseconds = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyMilliseconds); 31021 date.setMilliseconds(milliseconds); 31022 return date; 31023 } 31024 31025 /***/ 31026 }), 31027 /* 421 */ 31028 /***/ (function (module, __webpack_exports__, __webpack_require__) { 31029 31030 "use strict"; 31031 /* harmony export (immutable) */ 31032 __webpack_exports__["a"] = setMinutes; 31033 /* harmony import */ 31034 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 31035 /* harmony import */ 31036 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 31037 /* harmony import */ 31038 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 31039 31040 31041 /** 31042 * @name setMinutes 31043 * @category Minute Helpers 31044 * @summary Set the minutes to the given date. 31045 * 31046 * @description 31047 * Set the minutes to the given date. 31048 * 31049 * ### v2.0.0 breaking changes: 31050 * 31051 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 31052 * 31053 * @param {Date|Number} date - the date to be changed 31054 * @param {Number} minutes - the minutes of the new date 31055 * @returns {Date} the new date with the minutes set 31056 * @throws {TypeError} 2 arguments required 31057 * 31058 * @example 31059 * // Set 45 minutes to 1 September 2014 11:30:40: 31060 * var result = setMinutes(new Date(2014, 8, 1, 11, 30, 40), 45) 31061 * //=> Mon Sep 01 2014 11:45:40 31062 */ 31063 31064 function setMinutes(dirtyDate, dirtyMinutes) { 31065 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 31066 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 31067 var minutes = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyMinutes); 31068 date.setMinutes(minutes); 31069 return date; 31070 } 31071 31072 /***/ 31073 }), 31074 /* 422 */ 31075 /***/ (function (module, __webpack_exports__, __webpack_require__) { 31076 31077 "use strict"; 31078 /* harmony export (immutable) */ 31079 __webpack_exports__["a"] = setQuarter; 31080 /* harmony import */ 31081 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 31082 /* harmony import */ 31083 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 31084 /* harmony import */ 31085 var __WEBPACK_IMPORTED_MODULE_2__setMonth_index_js__ = __webpack_require__(96); 31086 /* harmony import */ 31087 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 31088 31089 31090 /** 31091 * @name setQuarter 31092 * @category Quarter Helpers 31093 * @summary Set the year quarter to the given date. 31094 *
31095 * @description 31096 * Set the year quarter to the given date. 31097 * 31098 * ### v2.0.0 breaking changes: 31099 * 31100 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 31101 * 31102 * @param {Date|Number} date - the date to be changed 31103 * @param {Number} quarter - the quarter of the new date 31104 * @returns {Date} the new date with the quarter set 31105 * @throws {TypeError} 2 arguments required 31106 * 31107 * @example 31108 * // Set the 2nd quarter to 2 July 2014: 31109 * var result = setQuarter(new Date(2014, 6, 2), 2) 31110 * //=> Wed Apr 02 2014 00:00:00 31111 */ 31112 31113 function setQuarter(dirtyDate, dirtyQuarter) { 31114 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 31115 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 31116 var quarter = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyQuarter); 31117 var oldQuarter = Math.floor(date.getMonth() / 3) + 1; 31118 var diff = quarter - oldQuarter; 31119 return __WEBPACK_IMPORTED_MODULE_2__setMonth_index_js__["a" /* default */](date, date.getMonth() + diff * 3); 31120 } 31121 31122 /***/ 31123 }), 31124 /* 423 */ 31125 /***/ (function (module, __webpack_exports__, __webpack_require__) { 31126 31127 "use strict"; 31128 /* harmony export (immutable) */ 31129 __webpack_exports__["a"] = setSeconds; 31130 /* harmony import */ 31131 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 31132 /* harmony import */ 31133 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 31134 /* harmony import */ 31135 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 31136 31137 31138 /** 31139 * @name setSeconds 31140 * @category Second Helpers 31141 * @summary Set the seconds to the given date. 31142 * 31143 * @description 31144 * Set the seconds to the given date. 31145 * 31146 * ### v2.0.0 breaking changes: 31147 * 31148 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 31149 * 31150 * @param {Date|Number} date - the date to be changed 31151 * @param {Number} seconds - the seconds of the new date 31152 * @returns {Date} the new date with the seconds set 31153 * @throws {TypeError} 2 arguments required 31154 * 31155 * @example 31156 * // Set 45 seconds to 1 September 2014 11:30:40: 31157 * var result = setSeconds(new Date(2014, 8, 1, 11, 30, 40), 45) 31158 * //=> Mon Sep 01 2014 11:30:45 31159 */ 31160 31161 function setSeconds(dirtyDate, dirtySeconds) { 31162 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 31163 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 31164 var seconds = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtySeconds); 31165 date.setSeconds(seconds); 31166 return date; 31167 } 31168 31169 /***/ 31170 }), 31171 /* 424 */ 31172 /***/ (function (module, __webpack_exports__, __webpack_require__) { 31173 31174 "use strict"; 31175 /* harmony export (immutable) */ 31176 __webpack_exports__["a"] = setWeek; 31177 /* harmony import */ 31178 var __WEBPACK_IMPORTED_MODULE_0__getWeek_index_js__ = __webpack_require__(169); 31179 /* harmony import */ 31180 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 31181 /* harmony import */ 31182 var __WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__ = __webpack_require__(6); 31183 /* harmony import */ 31184 var __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__ = __webpack_require__(0); 31185 31186 31187 /** 31188 * @name setWeek 31189 * @category Week Helpers 31190 * @summary Set the local week to the given date. 31191 *
31192 * @description 31193 * Set the local week to the given date, saving the weekday number. 31194 * The exact calculation depends on the values of 31195 * `options.weekStartsOn` (which is the index of the first day of the week) 31196 * and `options.firstWeekContainsDate` (which is the day of January, which is always in 31197 * the first week of the week-numbering year) 31198 * 31199 * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering 31200 * 31201 * ### v2.0.0 breaking changes: 31202 * 31203 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 31204 * 31205 * @param {Date|Number} date - the date to be changed 31206 * @param {Number} week - the week of the new date 31207 * @param {Object} [options] - an object with options. 31208 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 31209 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 31210 * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year 31211 * @returns {Date} the new date with the local week set 31212 * @throws {TypeError} 2 arguments required 31213 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 31214 * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 31215 * 31216 * @example 31217 * // Set the 1st week to 2 January 2005 with default options: 31218 * var result = setWeek(new Date(2005, 0, 2), 1) 31219 * //=> Sun Dec 26 2004 00:00:00 31220 * 31221 * @example 31222 * // Set the 1st week to 2 January 2005, 31223 * // if Monday is the first day of the week, 31224 * // and the first week of the year always contains 4 January: 31225 * var result = setWeek(new Date(2005, 0, 2), 1, { 31226 * weekStartsOn: 1, 31227 * firstWeekContainsDate: 4 31228 * }) 31229 * //=> Sun Jan 4 2004 00:00:00 31230 */ 31231 31232 function setWeek(dirtyDate, dirtyWeek, dirtyOptions) { 31233 __WEBPACK_IMPORTED_MODULE_3__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 31234 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 31235 var week = __WEBPACK_IMPORTED_MODULE_2__lib_toInteger_index_js__["a" /* default */](dirtyWeek); 31236 var diff = __WEBPACK_IMPORTED_MODULE_0__getWeek_index_js__["a" /* default */](date, dirtyOptions) - week; 31237 date.setDate(date.getDate() - diff * 7); 31238 return date; 31239 } 31240 31241 /***/ 31242 }), 31243 /* 425 */ 31244 /***/ (function (module, __webpack_exports__, __webpack_require__) { 31245 31246 "use strict"; 31247 /* harmony export (immutable) */ 31248 __webpack_exports__["a"] = setWeekYear; 31249 /* harmony import */ 31250 var __WEBPACK_IMPORTED_MODULE_0__differenceInCalendarDays_index_js__ = __webpack_require__(26); 31251 /* harmony import */ 31252 var __WEBPACK_IMPORTED_MODULE_1__startOfWeekYear_index_js__ = __webpack_require__(93); 31253 /* harmony import */ 31254 var __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__ = __webpack_require__(1); 31255 /* harmony import */ 31256 var __WEBPACK_IMPORTED_MODULE_3__lib_toInteger_index_js__ = __webpack_require__(6); 31257 /* harmony import */ 31258 var __WEBPACK_IMPORTED_MODULE_4__lib_requiredArgs_index_js__ = __webpack_require__(0); 31259 31260 31261 /** 31262 * @name setWeekYear 31263 * @category Week-Numbering Year Helpers 31264 * @summary Set the local week-numbering year to the given date. 31265 *
31266 * @description 31267 * Set the local week-numbering year to the given date, 31268 * saving the week number and the weekday number. 31269 * The exact calculation depends on the values of 31270 * `options.weekStartsOn` (which is the index of the first day of the week) 31271 * and `options.firstWeekContainsDate` (which is the day of January, which is always in 31272 * the first week of the week-numbering year) 31273 * 31274 * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering 31275 * 31276 * ### v2.0.0 breaking changes: 31277 * 31278 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 31279 * 31280 * @param {Date|Number} date - the date to be changed 31281 * @param {Number} weekYear - the local week-numbering year of the new date 31282 * @param {Object} [options] - an object with options. 31283 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 31284 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 31285 * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year 31286 * @returns {Date} the new date with the local week-numbering year set 31287 * @throws {TypeError} 2 arguments required 31288 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 31289 * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 31290 * 31291 * @example 31292 * // Set the local week-numbering year 2004 to 2 January 2010 with default options: 31293 * var result = setWeekYear(new Date(2010, 0, 2), 2004) 31294 * //=> Sat Jan 03 2004 00:00:00 31295 * 31296 * @example 31297 * // Set the local week-numbering year 2004 to 2 January 2010, 31298 * // if Monday is the first day of week 31299 * // and 4 January is always in the first week of the year: 31300 * var result = setWeekYear(new Date(2010, 0, 2), 2004, { 31301 * weekStartsOn: 1, 31302 * firstWeekContainsDate: 4 31303 * }) 31304 * //=> Sat Jan 01 2005 00:00:00 31305 */ 31306 31307 function setWeekYear(dirtyDate, dirtyWeekYear, dirtyOptions) { 31308 __WEBPACK_IMPORTED_MODULE_4__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 31309 var options = dirtyOptions || {}; 31310 var locale = options.locale; 31311 var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate; 31312 var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : __WEBPACK_IMPORTED_MODULE_3__lib_toInteger_index_js__["a" /* default */](localeFirstWeekContainsDate); 31313 var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : __WEBPACK_IMPORTED_MODULE_3__lib_toInteger_index_js__["a" /* default */](options.firstWeekContainsDate); 31314 var date = __WEBPACK_IMPORTED_MODULE_2__toDate_index_js__["a" /* default */](dirtyDate); 31315 var weekYear = __WEBPACK_IMPORTED_MODULE_3__lib_toInteger_index_js__["a" /* default */](dirtyWeekYear); 31316 var diff = __WEBPACK_IMPORTED_MODULE_0__differenceInCalendarDays_index_js__["a" /* default */](date, __WEBPACK_IMPORTED_MODULE_1__startOfWeekYear_index_js__["a" /* default */](date, dirtyOptions)); 31317 var firstWeek = new Date(0); 31318 firstWeek.setFullYear(weekYear, 0, firstWeekContainsDate); 31319 firstWeek.setHours(0, 0, 0, 0); 31320 date = __WEBPACK_IMPORTED_MODULE_1__startOfWeekYear_index_js__["a" /* default */](firstWeek, dirtyOptions); 31321 date.setDate(date.getDate() + diff); 31322 return date; 31323 } 31324 31325 /***/ 31326 }), 31327 /* 426 */ 31328 /***/ (function (module, __webpack_exports__, __webpack_require__) { 31329 31330 "use strict"; 31331 /* harmony export (immutable) */ 31332 __webpack_exports__["a"] = setYear; 31333 /* harmony import */ 31334 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 31335 /* harmony import */ 31336 var __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__ = __webpack_require__(1); 31337 /* harmony import */ 31338 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 31339 31340 31341 /** 31342 * @name setYear 31343 * @category Year Helpers 31344 * @summary Set the year to the given date. 31345 *
31346 * @description 31347 * Set the year to the given date. 31348 * 31349 * ### v2.0.0 breaking changes: 31350 * 31351 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 31352 * 31353 * @param {Date|Number} date - the date to be changed 31354 * @param {Number} year - the year of the new date 31355 * @returns {Date} the new date with the year set 31356 * @throws {TypeError} 2 arguments required 31357 * 31358 * @example 31359 * // Set year 2013 to 1 September 2014: 31360 * var result = setYear(new Date(2014, 8, 1), 2013) 31361 * //=> Sun Sep 01 2013 00:00:00 31362 */ 31363 31364 function setYear(dirtyDate, dirtyYear) { 31365 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 31366 var date = __WEBPACK_IMPORTED_MODULE_1__toDate_index_js__["a" /* default */](dirtyDate); 31367 var year = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyYear); // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date 31368 31369 if (isNaN(date)) { 31370 return new Date(NaN); 31371 } 31372 31373 date.setFullYear(year); 31374 return date; 31375 } 31376 31377 /***/ 31378 }), 31379 /* 427 */ 31380 /***/ (function (module, __webpack_exports__, __webpack_require__) { 31381 31382 "use strict"; 31383 /* harmony export (immutable) */ 31384 __webpack_exports__["a"] = startOfDecade; 31385 /* harmony import */ 31386 var __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__ = __webpack_require__(1); 31387 /* harmony import */ 31388 var __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__ = __webpack_require__(0); 31389 31390 31391 /** 31392 * @name startOfDecade 31393 * @category Decade Helpers 31394 * @summary Return the start of a decade for the given date. 31395 * 31396 * @description 31397 * Return the start of a decade for the given date. 31398 * 31399 * ### v2.0.0 breaking changes: 31400 * 31401 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 31402 * 31403 * @param {Date|Number} date - the original date 31404 * @returns {Date} the start of a decade 31405 * @throws {TypeError} 1 argument required 31406 * 31407 * @example 31408 * // The start of a decade for 21 October 2015 00:00:00: 31409 * var result = startOfDecade(new Date(2015, 9, 21, 00, 00, 00)) 31410 * //=> Jan 01 2010 00:00:00 31411 */ 31412 31413 function startOfDecade(dirtyDate) { 31414 __WEBPACK_IMPORTED_MODULE_1__lib_requiredArgs_index_js__["a" /* default */](1, arguments); 31415 var date = __WEBPACK_IMPORTED_MODULE_0__toDate_index_js__["a" /* default */](dirtyDate); 31416 var year = date.getFullYear(); 31417 var decade = Math.floor(year / 10) * 10; 31418 date.setFullYear(decade, 0, 1); 31419 date.setHours(0, 0, 0, 0); 31420 return date; 31421 } 31422 31423 /***/ 31424 }), 31425 /* 428 */ 31426 /***/ (function (module, __webpack_exports__, __webpack_require__) { 31427 31428 "use strict"; 31429 /* harmony export (immutable) */ 31430 __webpack_exports__["a"] = startOfToday; 31431 /* harmony import */ 31432 var __WEBPACK_IMPORTED_MODULE_0__startOfDay_index_js__ = __webpack_require__(57); 31433 31434 /** 31435 * @name startOfToday 31436 * @category Day Helpers 31437 * @summary Return the start of today. 31438 * @pure false 31439 *
31440 * @description 31441 * Return the start of today. 31442 * 31443 * > â ï¸ Please note that this function is not present in the FP submodule as 31444 * > it uses `Date.now()` internally hence impure and can't be safely curried. 31445 * 31446 * ### v2.0.0 breaking changes: 31447 * 31448 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 31449 * 31450 * @returns {Date} the start of today 31451 * 31452 * @example 31453 * // If today is 6 October 2014: 31454 * var result = startOfToday() 31455 * //=> Mon Oct 6 2014 00:00:00 31456 */ 31457 31458 function startOfToday() { 31459 return __WEBPACK_IMPORTED_MODULE_0__startOfDay_index_js__["a" /* default */](Date.now()); 31460 } 31461 31462 /***/ 31463 }), 31464 /* 429 */ 31465 /***/ (function (module, __webpack_exports__, __webpack_require__) { 31466 31467 "use strict"; 31468 /* harmony export (immutable) */ 31469 __webpack_exports__["a"] = startOfTomorrow; 31470 31471 /** 31472 * @name startOfTomorrow 31473 * @category Day Helpers 31474 * @summary Return the start of tomorrow. 31475 * @pure false 31476 * 31477 * @description 31478 * Return the start of tomorrow. 31479 * 31480 * > â ï¸ Please note that this function is not present in the FP submodule as 31481 * > it uses `new Date()` internally hence impure and can't be safely curried. 31482 * 31483 * ### v2.0.0 breaking changes: 31484 * 31485 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 31486 * 31487 * @returns {Date} the start of tomorrow 31488 * 31489 * @example 31490 * // If today is 6 October 2014: 31491 * var result = startOfTomorrow() 31492 * //=> Tue Oct 7 2014 00:00:00 31493 */ 31494 function startOfTomorrow() { 31495 var now = new Date(); 31496 var year = now.getFullYear(); 31497 var month = now.getMonth(); 31498 var day = now.getDate(); 31499 var date = new Date(0); 31500 date.setFullYear(year, month, day + 1); 31501 date.setHours(0, 0, 0, 0); 31502 return date; 31503 } 31504 31505 /***/ 31506 }), 31507 /* 430 */ 31508 /***/ (function (module, __webpack_exports__, __webpack_require__) { 31509 31510 "use strict"; 31511 /* harmony export (immutable) */ 31512 __webpack_exports__["a"] = startOfYesterday; 31513 31514 /** 31515 * @name startOfYesterday 31516 * @category Day Helpers 31517 * @summary Return the start of yesterday. 31518 * @pure false 31519 * 31520 * @description 31521 * Return the start of yesterday. 31522 * 31523 * > â ï¸ Please note that this function is not present in the FP submodule as 31524 * > it uses `new Date()` internally hence impure and can't be safely curried. 31525 * 31526 * ### v2.0.0 breaking changes: 31527 * 31528 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 31529 * 31530 * @returns {Date} the start of yesterday 31531 * 31532 * @example 31533 * // If today is 6 October 2014: 31534 * var result = startOfYesterday() 31535 * //=> Sun Oct 5 2014 00:00:00 31536 */ 31537 function startOfYesterday() { 31538 var now = new Date(); 31539 var year = now.getFullYear();
vendor: 5,777 bytes, lines 31540-31654
31540 var month = now.getMonth(); 31541 var day = now.getDate(); 31542 var date = new Date(0); 31543 date.setFullYear(year, month, day - 1); 31544 date.setHours(0, 0, 0, 0); 31545 return date; 31546 } 31547 31548 /***/ 31549 }), 31550 /* 431 */ 31551 /***/ (function (module, __webpack_exports__, __webpack_require__) { 31552 31553 "use strict"; 31554 /* harmony export (immutable) */ 31555 __webpack_exports__["a"] = subBusinessDays; 31556 /* harmony import */ 31557 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 31558 /* harmony import */ 31559 var __WEBPACK_IMPORTED_MODULE_1__addBusinessDays_index_js__ = __webpack_require__(132); 31560 /* harmony import */ 31561 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 31562 31563 31564 /** 31565 * @name subBusinessDays 31566 * @category Day Helpers 31567 * @summary Substract the specified number of business days (mon - fri) to the given date. 31568 * 31569 * @description 31570 * Substract the specified number of business days (mon - fri) to the given date, ignoring weekends. 31571 * 31572 * @param {Date|Number} date - the date to be changed 31573 * @param {Number} amount - the amount of business days to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 31574 * @returns {Date} the new date with the business days subtracted 31575 * @throws {TypeError} 2 arguments required 31576 * 31577 * @example 31578 * // Substract 10 business days from 1 September 2014: 31579 * var result = subBusinessDays(new Date(2014, 8, 1), 10) 31580 * //=> Mon Aug 18 2014 00:00:00 (skipped weekend days) 31581 */ 31582 31583 function subBusinessDays(dirtyDate, dirtyAmount) { 31584 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 31585 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 31586 return __WEBPACK_IMPORTED_MODULE_1__addBusinessDays_index_js__["a" /* default */](dirtyDate, -amount); 31587 } 31588 31589 /***/ 31590 }), 31591 /* 432 */ 31592 /***/ (function (module, __webpack_exports__, __webpack_require__) { 31593 31594 "use strict"; 31595 /* harmony export (immutable) */ 31596 __webpack_exports__["a"] = subHours; 31597 /* harmony import */ 31598 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 31599 /* harmony import */ 31600 var __WEBPACK_IMPORTED_MODULE_1__addHours_index_js__ = __webpack_require__(84); 31601 /* harmony import */ 31602 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 31603 31604 31605 /** 31606 * @name subHours 31607 * @category Hour Helpers 31608 * @summary Subtract the specified number of hours from the given date. 31609 * 31610 * @description 31611 * Subtract the specified number of hours from the given date. 31612 * 31613 * ### v2.0.0 breaking changes: 31614 * 31615 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 31616 * 31617 * @param {Date|Number} date - the date to be changed 31618 * @param {Number} amount - the amount of hours to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 31619 * @returns {Date} the new date with the hours subtracted 31620 * @throws {TypeError} 2 arguments required 31621 * 31622 * @example 31623 * // Subtract 2 hours from 11 July 2014 01:00:00: 31624 * var result = subHours(new Date(2014, 6, 11, 1, 0), 2) 31625 * //=> Thu Jul 10 2014 23:00:00 31626 */ 31627 31628 function subHours(dirtyDate, dirtyAmount) { 31629 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 31630 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 31631 return __WEBPACK_IMPORTED_MODULE_1__addHours_index_js__["a" /* default */](dirtyDate, -amount); 31632 } 31633 31634 /***/ 31635 }), 31636 /* 433 */ 31637 /***/ (function (module, __webpack_exports__, __webpack_require__) { 31638 31639 "use strict"; 31640 /* harmony export (immutable) */ 31641 __webpack_exports__["a"] = subMinutes; 31642 /* harmony import */ 31643 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 31644 /* harmony import */ 31645 var __WEBPACK_IMPORTED_MODULE_1__addMinutes_index_js__ = __webpack_require__(136); 31646 /* harmony import */ 31647 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 31648 31649 31650 /** 31651 * @name subMinutes 31652 * @category Minute Helpers 31653 * @summary Subtract the specified number of minutes from the given date. 31654 *
31655 * @description 31656 * Subtract the specified number of minutes from the given date. 31657 * 31658 * ### v2.0.0 breaking changes: 31659 * 31660 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 31661 * 31662 * @param {Date|Number} date - the date to be changed 31663 * @param {Number} amount - the amount of minutes to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 31664 * @returns {Date} the new date with the minutes subtracted 31665 * @throws {TypeError} 2 arguments required 31666 * 31667 * @example 31668 * // Subtract 30 minutes from 10 July 2014 12:00:00: 31669 * var result = subMinutes(new Date(2014, 6, 10, 12, 0), 30) 31670 * //=> Thu Jul 10 2014 11:30:00 31671 */ 31672 31673 function subMinutes(dirtyDate, dirtyAmount) { 31674 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 31675 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 31676 return __WEBPACK_IMPORTED_MODULE_1__addMinutes_index_js__["a" /* default */](dirtyDate, -amount); 31677 } 31678 31679 /***/ 31680 }), 31681 /* 434 */ 31682 /***/ (function (module, __webpack_exports__, __webpack_require__) { 31683 31684 "use strict"; 31685 /* harmony export (immutable) */ 31686 __webpack_exports__["a"] = subQuarters; 31687 /* harmony import */ 31688 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 31689 /* harmony import */ 31690 var __WEBPACK_IMPORTED_MODULE_1__addQuarters_index_js__ = __webpack_require__(85); 31691 /* harmony import */ 31692 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 31693 31694 31695 /** 31696 * @name subQuarters 31697 * @category Quarter Helpers 31698 * @summary Subtract the specified number of year quarters from the given date. 31699 * 31700 * @description 31701 * Subtract the specified number of year quarters from the given date. 31702 * 31703 * ### v2.0.0 breaking changes: 31704 * 31705 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 31706 * 31707 * @param {Date|Number} date - the date to be changed 31708 * @param {Number} amount - the amount of quarters to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 31709 * @returns {Date} the new date with the quarters subtracted 31710 * @throws {TypeError} 2 arguments required 31711 * 31712 * @example 31713 * // Subtract 3 quarters from 1 September 2014: 31714 * var result = subQuarters(new Date(2014, 8, 1), 3) 31715 * //=> Sun Dec 01 2013 00:00:00 31716 */ 31717 31718 function subQuarters(dirtyDate, dirtyAmount) { 31719 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 31720 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 31721 return __WEBPACK_IMPORTED_MODULE_1__addQuarters_index_js__["a" /* default */](dirtyDate, -amount); 31722 } 31723 31724 /***/ 31725 }), 31726 /* 435 */ 31727 /***/ (function (module, __webpack_exports__, __webpack_require__) { 31728 31729 "use strict"; 31730 /* harmony export (immutable) */ 31731 __webpack_exports__["a"] = subSeconds; 31732 /* harmony import */ 31733 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 31734 /* harmony import */ 31735 var __WEBPACK_IMPORTED_MODULE_1__addSeconds_index_js__ = __webpack_require__(137); 31736 /* harmony import */ 31737 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 31738 31739 31740 /** 31741 * @name subSeconds 31742 * @category Second Helpers 31743 * @summary Subtract the specified number of seconds from the given date. 31744 *
31745 * @description 31746 * Subtract the specified number of seconds from the given date. 31747 * 31748 * ### v2.0.0 breaking changes: 31749 * 31750 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 31751 * 31752 * @param {Date|Number} date - the date to be changed 31753 * @param {Number} amount - the amount of seconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 31754 * @returns {Date} the new date with the seconds subtracted 31755 * @throws {TypeError} 2 arguments required 31756 * 31757 * @example 31758 * // Subtract 30 seconds from 10 July 2014 12:45:00: 31759 * var result = subSeconds(new Date(2014, 6, 10, 12, 45, 0), 30) 31760 * //=> Thu Jul 10 2014 12:44:30 31761 */ 31762 31763 function subSeconds(dirtyDate, dirtyAmount) { 31764 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 31765 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 31766 return __WEBPACK_IMPORTED_MODULE_1__addSeconds_index_js__["a" /* default */](dirtyDate, -amount); 31767 } 31768 31769 /***/ 31770 }), 31771 /* 436 */ 31772 /***/ (function (module, __webpack_exports__, __webpack_require__) { 31773 31774 "use strict"; 31775 /* harmony export (immutable) */ 31776 __webpack_exports__["a"] = subWeeks; 31777 /* harmony import */ 31778 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 31779 /* harmony import */ 31780 var __WEBPACK_IMPORTED_MODULE_1__addWeeks_index_js__ = __webpack_require__(58); 31781 /* harmony import */ 31782 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 31783 31784 31785 /** 31786 * @name subWeeks 31787 * @category Week Helpers 31788 * @summary Subtract the specified number of weeks from the given date. 31789 * 31790 * @description 31791 * Subtract the specified number of weeks from the given date. 31792 * 31793 * ### v2.0.0 breaking changes: 31794 * 31795 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 31796 * 31797 * @param {Date|Number} date - the date to be changed 31798 * @param {Number} amount - the amount of weeks to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 31799 * @returns {Date} the new date with the weeks subtracted 31800 * @throws {TypeError} 2 arguments required 31801 * 31802 * @example 31803 * // Subtract 4 weeks from 1 September 2014: 31804 * var result = subWeeks(new Date(2014, 8, 1), 4) 31805 * //=> Mon Aug 04 2014 00:00:00 31806 */ 31807 31808 function subWeeks(dirtyDate, dirtyAmount) { 31809 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 31810 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 31811 return __WEBPACK_IMPORTED_MODULE_1__addWeeks_index_js__["a" /* default */](dirtyDate, -amount); 31812 } 31813 31814 /***/ 31815 }), 31816 /* 437 */ 31817 /***/ (function (module, __webpack_exports__, __webpack_require__) { 31818 31819 "use strict"; 31820 /* harmony export (immutable) */ 31821 __webpack_exports__["a"] = subYears; 31822 /* harmony import */ 31823 var __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__ = __webpack_require__(6); 31824 /* harmony import */ 31825 var __WEBPACK_IMPORTED_MODULE_1__addYears_index_js__ = __webpack_require__(138); 31826 /* harmony import */ 31827 var __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__ = __webpack_require__(0); 31828 31829 31830 /** 31831 * @name subYears 31832 * @category Year Helpers 31833 * @summary Subtract the specified number of years from the given date. 31834 *
31835 * @description 31836 * Subtract the specified number of years from the given date. 31837 * 31838 * ### v2.0.0 breaking changes: 31839 * 31840 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes). 31841 * 31842 * @param {Date|Number} date - the date to be changed 31843 * @param {Number} amount - the amount of years to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 31844 * @returns {Date} the new date with the years subtracted 31845 * @throws {TypeError} 2 arguments required 31846 * 31847 * @example 31848 * // Subtract 5 years from 1 September 2014: 31849 * var result = subYears(new Date(2014, 8, 1), 5) 31850 * //=> Tue Sep 01 2009 00:00:00 31851 */ 31852 31853 function subYears(dirtyDate, dirtyAmount) { 31854 __WEBPACK_IMPORTED_MODULE_2__lib_requiredArgs_index_js__["a" /* default */](2, arguments); 31855 var amount = __WEBPACK_IMPORTED_MODULE_0__lib_toInteger_index_js__["a" /* default */](dirtyAmount); 31856 return __WEBPACK_IMPORTED_MODULE_1__addYears_index_js__["a" /* default */](dirtyDate, -amount); 31857 } 31858 31859 /***/ 31860 }), 31861 /* 438 */ 31862 /***/ (function (module, __webpack_exports__, __webpack_require__) { 31863 31864 "use strict"; 31865 /* harmony export (binding) */ 31866 __webpack_require__.d(__webpack_exports__, "a", function () { 31867 return maxTime; 31868 }); 31869 /* harmony export (binding) */ 31870 __webpack_require__.d(__webpack_exports__, "b", function () { 31871 return minTime; 31872 }); 31873 /** 31874 * Maximum allowed time. 31875 * @constant 31876 * @type {number} 31877 * @default 31878 */ 31879 var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000; 31880 /** 31881 * Minimum allowed time. 31882 * @constant 31883 * @type {number} 31884 * @default 31885 */ 31886 31887 var minTime = -maxTime; 31888 31889 /***/ 31890 }), 31891 /* 439 */ 31892 /***/ (function (module, __webpack_exports__, __webpack_require__) { 31893 31894 "use strict"; 31895 Object.defineProperty(__webpack_exports__, "__esModule", {value: true}); 31896 /* harmony import */ 31897 var __WEBPACK_IMPORTED_MODULE_0__af_index_js__ = __webpack_require__(440); 31898 /* harmony reexport (binding) */ 31899 __webpack_require__.d(__webpack_exports__, "af", function () { 31900 return __WEBPACK_IMPORTED_MODULE_0__af_index_js__["a"]; 31901 }); 31902 /* harmony import */ 31903 var __WEBPACK_IMPORTED_MODULE_1__ar_DZ_index_js__ = __webpack_require__(446); 31904 /* harmony reexport (binding) */ 31905 __webpack_require__.d(__webpack_exports__, "arDZ", function () { 31906 return __WEBPACK_IMPORTED_MODULE_1__ar_DZ_index_js__["a"]; 31907 }); 31908 /* harmony import */ 31909 var __WEBPACK_IMPORTED_MODULE_2__ar_MA_index_js__ = __webpack_require__(452); 31910 /* harmony reexport (binding) */ 31911 __webpack_require__.d(__webpack_exports__, "arMA", function () { 31912 return __WEBPACK_IMPORTED_MODULE_2__ar_MA_index_js__["a"]; 31913 }); 31914 /* harmony import */ 31915 var __WEBPACK_IMPORTED_MODULE_3__ar_SA_index_js__ = __webpack_require__(458); 31916 /* harmony reexport (binding) */ 31917 __webpack_require__.d(__webpack_exports__, "arSA", function () { 31918 return __WEBPACK_IMPORTED_MODULE_3__ar_SA_index_js__["a"]; 31919 }); 31920 /* harmony import */ 31921 var __WEBPACK_IMPORTED_MODULE_4__az_index_js__ = __webpack_require__(464); 31922 /* harmony reexport (binding) */ 31923 __webpack_require__.d(__webpack_exports__, "az", function () { 31924 return __WEBPACK_IMPORTED_MODULE_4__az_index_js__["a"]; 31925 }); 31926 /* harmony import */ 31927 var __WEBPACK_IMPORTED_MODULE_5__be_index_js__ = __webpack_require__(470); 31928 /* harmony reexport (binding) */ 31929 __webpack_require__.d(__webpack_exports__, "be", function () { 31930 return __WEBPACK_IMPORTED_MODULE_5__be_index_js__["a"]; 31931 }); 31932 /* harmony import */ 31933 var __WEBPACK_IMPORTED_MODULE_6__bg_index_js__ = __webpack_require__(476); 31934 /* harmony reexport (binding) */ 31935 __webpack_require__.d(__webpack_exports__, "bg", function () { 31936 return __WEBPACK_IMPORTED_MODULE_6__bg_index_js__["a"]; 31937 }); 31938 /* harmony import */ 31939 var __WEBPACK_IMPORTED_MODULE_7__bn_index_js__ = __webpack_require__(482); 31940 /* harmony reexport (binding) */ 31941 __webpack_require__.d(__webpack_exports__, "bn", function () { 31942 return __WEBPACK_IMPORTED_MODULE_7__bn_index_js__["a"]; 31943 }); 31944 /* harmony import */ 31945 var __WEBPACK_IMPORTED_MODULE_8__ca_index_js__ = __webpack_require__(487); 31946 /* harmony reexport (binding) */ 31947 __webpack_require__.d(__webpack_exports__, "ca", function () { 31948 return __WEBPACK_IMPORTED_MODULE_8__ca_index_js__["a"]; 31949 }); 31950 /* harmony import */ 31951 var __WEBPACK_IMPORTED_MODULE_9__cs_index_js__ = __webpack_require__(493); 31952 /* harmony reexport (binding) */ 31953 __webpack_require__.d(__webpack_exports__, "cs", function () { 31954 return __WEBPACK_IMPORTED_MODULE_9__cs_index_js__["a"]; 31955 }); 31956 /* harmony import */ 31957 var __WEBPACK_IMPORTED_MODULE_10__cy_index_js__ = __webpack_require__(499); 31958 /* harmony reexport (binding) */ 31959 __webpack_require__.d(__webpack_exports__, "cy", function () { 31960 return __WEBPACK_IMPORTED_MODULE_10__cy_index_js__["a"]; 31961 }); 31962 /* harmony import */ 31963 var __WEBPACK_IMPORTED_MODULE_11__da_index_js__ = __webpack_require__(505); 31964 /* harmony reexport (binding) */ 31965 __webpack_require__.d(__webpack_exports__, "da", function () { 31966 return __WEBPACK_IMPORTED_MODULE_11__da_index_js__["a"]; 31967 }); 31968 /* harmony import */ 31969 var __WEBPACK_IMPORTED_MODULE_12__de_index_js__ = __webpack_require__(511); 31970 /* harmony reexport (binding) */ 31971 __webpack_require__.d(__webpack_exports__, "de", function () { 31972 return __WEBPACK_IMPORTED_MODULE_12__de_index_js__["a"]; 31973 }); 31974 /* harmony import */ 31975 var __WEBPACK_IMPORTED_MODULE_13__el_index_js__ = __webpack_require__(517); 31976 /* harmony reexport (binding) */ 31977 __webpack_require__.d(__webpack_exports__, "el", function () { 31978 return __WEBPACK_IMPORTED_MODULE_13__el_index_js__["a"]; 31979 }); 31980 /* harmony import */ 31981 var __WEBPACK_IMPORTED_MODULE_14__en_AU_index_js__ = __webpack_require__(523); 31982 /* harmony reexport (binding) */ 31983 __webpack_require__.d(__webpack_exports__, "enAU", function () { 31984 return __WEBPACK_IMPORTED_MODULE_14__en_AU_index_js__["a"]; 31985 }); 31986 /* harmony import */ 31987 var __WEBPACK_IMPORTED_MODULE_15__en_CA_index_js__ = __webpack_require__(525); 31988 /* harmony reexport (binding) */ 31989 __webpack_require__.d(__webpack_exports__, "enCA", function () { 31990 return __WEBPACK_IMPORTED_MODULE_15__en_CA_index_js__["a"]; 31991 }); 31992 /* harmony import */ 31993 var __WEBPACK_IMPORTED_MODULE_16__en_GB_index_js__ = __webpack_require__(528); 31994 /* harmony reexport (binding) */ 31995 __webpack_require__.d(__webpack_exports__, "enGB", function () { 31996 return __WEBPACK_IMPORTED_MODULE_16__en_GB_index_js__["a"]; 31997 }); 31998 /* harmony import */ 31999 var __WEBPACK_IMPORTED_MODULE_17__en_IN_index_js__ = __webpack_require__(530); 32000 /* harmony reexport (binding) */ 32001 __webpack_require__.d(__webpack_exports__, "enIN", function () { 32002 return __WEBPACK_IMPORTED_MODULE_17__en_IN_index_js__["a"]; 32003 }); 32004 /* harmony import */ 32005 var __WEBPACK_IMPORTED_MODULE_18__en_NZ_index_js__ = __webpack_require__(532); 32006 /* harmony reexport (binding) */ 32007 __webpack_require__.d(__webpack_exports__, "enNZ", function () { 32008 return __WEBPACK_IMPORTED_MODULE_18__en_NZ_index_js__["a"]; 32009 }); 32010 /* harmony import */ 32011 var __WEBPACK_IMPORTED_MODULE_19__en_US_index_js__ = __webpack_require__(28); 32012 /* harmony reexport (binding) */ 32013 __webpack_require__.d(__webpack_exports__, "enUS", function () { 32014 return __WEBPACK_IMPORTED_MODULE_19__en_US_index_js__["a"]; 32015 }); 32016 /* harmony import */
32017 var __WEBPACK_IMPORTED_MODULE_20__eo_index_js__ = __webpack_require__(534); 32018 /* harmony reexport (binding) */ 32019 __webpack_require__.d(__webpack_exports__, "eo", function () { 32020 return __WEBPACK_IMPORTED_MODULE_20__eo_index_js__["a"]; 32021 }); 32022 /* harmony import */ 32023 var __WEBPACK_IMPORTED_MODULE_21__es_index_js__ = __webpack_require__(540); 32024 /* harmony reexport (binding) */ 32025 __webpack_require__.d(__webpack_exports__, "es", function () { 32026 return __WEBPACK_IMPORTED_MODULE_21__es_index_js__["a"]; 32027 }); 32028 /* harmony import */ 32029 var __WEBPACK_IMPORTED_MODULE_22__et_index_js__ = __webpack_require__(546); 32030 /* harmony reexport (binding) */ 32031 __webpack_require__.d(__webpack_exports__, "et", function () { 32032 return __WEBPACK_IMPORTED_MODULE_22__et_index_js__["a"]; 32033 }); 32034 /* harmony import */ 32035 var __WEBPACK_IMPORTED_MODULE_23__eu_index_js__ = __webpack_require__(552); 32036 /* harmony reexport (binding) */ 32037 __webpack_require__.d(__webpack_exports__, "eu", function () { 32038 return __WEBPACK_IMPORTED_MODULE_23__eu_index_js__["a"]; 32039 }); 32040 /* harmony import */ 32041 var __WEBPACK_IMPORTED_MODULE_24__fa_IR_index_js__ = __webpack_require__(558); 32042 /* harmony reexport (binding) */ 32043 __webpack_require__.d(__webpack_exports__, "faIR", function () { 32044 return __WEBPACK_IMPORTED_MODULE_24__fa_IR_index_js__["a"]; 32045 }); 32046 /* harmony import */ 32047 var __WEBPACK_IMPORTED_MODULE_25__fi_index_js__ = __webpack_require__(564); 32048 /* harmony reexport (binding) */ 32049 __webpack_require__.d(__webpack_exports__, "fi", function () { 32050 return __WEBPACK_IMPORTED_MODULE_25__fi_index_js__["a"]; 32051 }); 32052 /* harmony import */ 32053 var __WEBPACK_IMPORTED_MODULE_26__fr_index_js__ = __webpack_require__(570); 32054 /* harmony reexport (binding) */ 32055 __webpack_require__.d(__webpack_exports__, "fr", function () { 32056 return __WEBPACK_IMPORTED_MODULE_26__fr_index_js__["a"]; 32057 }); 32058 /* harmony import */ 32059 var __WEBPACK_IMPORTED_MODULE_27__fr_CA_index_js__ = __webpack_require__(572); 32060 /* harmony reexport (binding) */ 32061 __webpack_require__.d(__webpack_exports__, "frCA", function () { 32062 return __WEBPACK_IMPORTED_MODULE_27__fr_CA_index_js__["a"]; 32063 }); 32064 /* harmony import */ 32065 var __WEBPACK_IMPORTED_MODULE_28__fr_CH_index_js__ = __webpack_require__(574); 32066 /* harmony reexport (binding) */ 32067 __webpack_require__.d(__webpack_exports__, "frCH", function () { 32068 return __WEBPACK_IMPORTED_MODULE_28__fr_CH_index_js__["a"]; 32069 }); 32070 /* harmony import */ 32071 var __WEBPACK_IMPORTED_MODULE_29__gd_index_js__ = __webpack_require__(580); 32072 /* harmony reexport (binding) */ 32073 __webpack_require__.d(__webpack_exports__, "gd", function () { 32074 return __WEBPACK_IMPORTED_MODULE_29__gd_index_js__["a"]; 32075 }); 32076 /* harmony import */ 32077 var __WEBPACK_IMPORTED_MODULE_30__gl_index_js__ = __webpack_require__(586); 32078 /* harmony reexport (binding) */ 32079 __webpack_require__.d(__webpack_exports__, "gl", function () { 32080 return __WEBPACK_IMPORTED_MODULE_30__gl_index_js__["a"]; 32081 }); 32082 /* harmony import */ 32083 var __WEBPACK_IMPORTED_MODULE_31__gu_index_js__ = __webpack_require__(592); 32084 /* harmony reexport (binding) */ 32085 __webpack_require__.d(__webpack_exports__, "gu", function () { 32086 return __WEBPACK_IMPORTED_MODULE_31__gu_index_js__["a"]; 32087 }); 32088 /* harmony import */ 32089 var __WEBPACK_IMPORTED_MODULE_32__he_index_js__ = __webpack_require__(598); 32090 /* harmony reexport (binding) */ 32091 __webpack_require__.d(__webpack_exports__, "he", function () { 32092 return __WEBPACK_IMPORTED_MODULE_32__he_index_js__["a"]; 32093 }); 32094 /* harmony import */ 32095 var __WEBPACK_IMPORTED_MODULE_33__hi_index_js__ = __webpack_require__(604); 32096 /* harmony reexport (binding) */ 32097 __webpack_require__.d(__webpack_exports__, "hi", function () { 32098 return __WEBPACK_IMPORTED_MODULE_33__hi_index_js__["a"]; 32099 }); 32100 /* harmony import */ 32101 var __WEBPACK_IMPORTED_MODULE_34__hr_index_js__ = __webpack_require__(609); 32102 /* harmony reexport (binding) */ 32103 __webpack_require__.d(__webpack_exports__, "hr", function () { 32104 return __WEBPACK_IMPORTED_MODULE_34__hr_index_js__["a"]; 32105 }); 32106 /* harmony import */ 32107 var __WEBPACK_IMPORTED_MODULE_35__hu_index_js__ = __webpack_require__(615); 32108 /* harmony reexport (binding) */ 32109 __webpack_require__.d(__webpack_exports__, "hu", function () { 32110 return __WEBPACK_IMPORTED_MODULE_35__hu_index_js__["a"]; 32111 }); 32112 /* harmony import */ 32113 var __WEBPACK_IMPORTED_MODULE_36__hy_index_js__ = __webpack_require__(621); 32114 /* harmony reexport (binding) */ 32115 __webpack_require__.d(__webpack_exports__, "hy", function () { 32116 return __WEBPACK_IMPORTED_MODULE_36__hy_index_js__["a"]; 32117 }); 32118 /* harmony import */ 32119 var __WEBPACK_IMPORTED_MODULE_37__id_index_js__ = __webpack_require__(627); 32120 /* harmony reexport (binding) */ 32121 __webpack_require__.d(__webpack_exports__, "id", function () { 32122 return __WEBPACK_IMPORTED_MODULE_37__id_index_js__["a"]; 32123 }); 32124 /* harmony import */ 32125 var __WEBPACK_IMPORTED_MODULE_38__is_index_js__ = __webpack_require__(633); 32126 /* harmony reexport (binding) */ 32127 __webpack_require__.d(__webpack_exports__, "is", function () { 32128 return __WEBPACK_IMPORTED_MODULE_38__is_index_js__["a"]; 32129 }); 32130 /* harmony import */ 32131 var __WEBPACK_IMPORTED_MODULE_39__it_index_js__ = __webpack_require__(639); 32132 /* harmony reexport (binding) */ 32133 __webpack_require__.d(__webpack_exports__, "it", function () { 32134 return __WEBPACK_IMPORTED_MODULE_39__it_index_js__["a"]; 32135 }); 32136 /* harmony import */ 32137 var __WEBPACK_IMPORTED_MODULE_40__ja_index_js__ = __webpack_require__(645); 32138 /* harmony reexport (binding) */ 32139 __webpack_require__.d(__webpack_exports__, "ja", function () { 32140 return __WEBPACK_IMPORTED_MODULE_40__ja_index_js__["a"]; 32141 }); 32142 /* harmony import */ 32143 var __WEBPACK_IMPORTED_MODULE_41__ka_index_js__ = __webpack_require__(651); 32144 /* harmony reexport (binding) */ 32145 __webpack_require__.d(__webpack_exports__, "ka", function () { 32146 return __WEBPACK_IMPORTED_MODULE_41__ka_index_js__["a"]; 32147 }); 32148 /* harmony import */ 32149 var __WEBPACK_IMPORTED_MODULE_42__kk_index_js__ = __webpack_require__(657); 32150 /* harmony reexport (binding) */ 32151 __webpack_require__.d(__webpack_exports__, "kk", function () { 32152 return __WEBPACK_IMPORTED_MODULE_42__kk_index_js__["a"]; 32153 }); 32154 /* harmony import */ 32155 var __WEBPACK_IMPORTED_MODULE_43__kn_index_js__ = __webpack_require__(663); 32156 /* harmony reexport (binding) */ 32157 __webpack_require__.d(__webpack_exports__, "kn", function () { 32158 return __WEBPACK_IMPORTED_MODULE_43__kn_index_js__["a"]; 32159 }); 32160 /* harmony import */ 32161 var __WEBPACK_IMPORTED_MODULE_44__ko_index_js__ = __webpack_require__(669); 32162 /* harmony reexport (binding) */ 32163 __webpack_require__.d(__webpack_exports__, "ko", function () { 32164 return __WEBPACK_IMPORTED_MODULE_44__ko_index_js__["a"]; 32165 }); 32166 /* harmony import */ 32167 var __WEBPACK_IMPORTED_MODULE_45__lb_index_js__ = __webpack_require__(675); 32168 /* harmony reexport (binding) */ 32169 __webpack_require__.d(__webpack_exports__, "lb", function () { 32170 return __WEBPACK_IMPORTED_MODULE_45__lb_index_js__["a"]; 32171 }); 32172 /* harmony import */ 32173 var __WEBPACK_IMPORTED_MODULE_46__lt_index_js__ = __webpack_require__(681); 32174 /* harmony reexport (binding) */ 32175 __webpack_require__.d(__webpack_exports__, "lt", function () { 32176 return __WEBPACK_IMPORTED_MODULE_46__lt_index_js__["a"]; 32177 }); 32178 /* harmony import */ 32179 var __WEBPACK_IMPORTED_MODULE_47__lv_index_js__ = __webpack_require__(687); 32180 /* harmony reexport (binding) */ 32181 __webpack_require__.d(__webpack_exports__, "lv", function () { 32182 return __WEBPACK_IMPORTED_MODULE_47__lv_index_js__["a"]; 32183 }); 32184 /* harmony import */ 32185 var __WEBPACK_IMPORTED_MODULE_48__mk_index_js__ = __webpack_require__(693); 32186 /* harmony reexport (binding) */ 32187 __webpack_require__.d(__webpack_exports__, "mk", function () { 32188 return __WEBPACK_IMPORTED_MODULE_48__mk_index_js__["a"]; 32189 }); 32190 /* harmony import */ 32191 var __WEBPACK_IMPORTED_MODULE_49__ms_index_js__ = __webpack_require__(699); 32192 /* harmony reexport (binding) */ 32193 __webpack_require__.d(__webpack_exports__, "ms", function () { 32194 return __WEBPACK_IMPORTED_MODULE_49__ms_index_js__["a"]; 32195 }); 32196 /* harmony import */ 32197 var __WEBPACK_IMPORTED_MODULE_50__mt_index_js__ = __webpack_require__(705); 32198 /* harmony reexport (binding) */ 32199 __webpack_require__.d(__webpack_exports__, "mt", function () { 32200 return __WEBPACK_IMPORTED_MODULE_50__mt_index_js__["a"]; 32201 }); 32202 /* harmony import */ 32203 var __WEBPACK_IMPORTED_MODULE_51__nb_index_js__ = __webpack_require__(711); 32204 /* harmony reexport (binding) */ 32205 __webpack_require__.d(__webpack_exports__, "nb", function () { 32206 return __WEBPACK_IMPORTED_MODULE_51__nb_index_js__["a"]; 32207 }); 32208 /* harmony import */ 32209 var __WEBPACK_IMPORTED_MODULE_52__nl_index_js__ = __webpack_require__(717); 32210 /* harmony reexport (binding) */ 32211 __webpack_require__.d(__webpack_exports__, "nl", function () { 32212 return __WEBPACK_IMPORTED_MODULE_52__nl_index_js__["a"]; 32213 }); 32214 /* harmony import */ 32215 var __WEBPACK_IMPORTED_MODULE_53__nl_BE_index_js__ = __webpack_require__(723); 32216 /* harmony reexport (binding) */ 32217 __webpack_require__.d(__webpack_exports__, "nlBE", function () { 32218 return __WEBPACK_IMPORTED_MODULE_53__nl_BE_index_js__["a"]; 32219 }); 32220 /* harmony import */ 32221 var __WEBPACK_IMPORTED_MODULE_54__nn_index_js__ = __webpack_require__(729); 32222 /* harmony reexport (binding) */ 32223 __webpack_require__.d(__webpack_exports__, "nn", function () { 32224 return __WEBPACK_IMPORTED_MODULE_54__nn_index_js__["a"]; 32225 }); 32226 /* harmony import */ 32227 var __WEBPACK_IMPORTED_MODULE_55__pl_index_js__ = __webpack_require__(735); 32228 /* harmony reexport (binding) */ 32229 __webpack_require__.d(__webpack_exports__, "pl", function () { 32230 return __WEBPACK_IMPORTED_MODULE_55__pl_index_js__["a"]; 32231 }); 32232 /* harmony import */ 32233 var __WEBPACK_IMPORTED_MODULE_56__pt_index_js__ = __webpack_require__(741); 32234 /* harmony reexport (binding) */ 32235 __webpack_require__.d(__webpack_exports__, "pt", function () { 32236 return __WEBPACK_IMPORTED_MODULE_56__pt_index_js__["a"]; 32237 }); 32238 /* harmony import */ 32239 var __WEBPACK_IMPORTED_MODULE_57__pt_BR_index_js__ = __webpack_require__(747); 32240 /* harmony reexport (binding) */ 32241 __webpack_require__.d(__webpack_exports__, "ptBR", function () { 32242 return __WEBPACK_IMPORTED_MODULE_57__pt_BR_index_js__["a"]; 32243 }); 32244 /* harmony import */ 32245 var __WEBPACK_IMPORTED_MODULE_58__ro_index_js__ = __webpack_require__(753); 32246 /* harmony reexport (binding) */ 32247 __webpack_require__.d(__webpack_exports__, "ro", function () { 32248 return __WEBPACK_IMPORTED_MODULE_58__ro_index_js__["a"]; 32249 }); 32250 /* harmony import */ 32251 var __WEBPACK_IMPORTED_MODULE_59__ru_index_js__ = __webpack_require__(759); 32252 /* harmony reexport (binding) */ 32253 __webpack_require__.d(__webpack_exports__, "ru", function () { 32254 return __WEBPACK_IMPORTED_MODULE_59__ru_index_js__["a"]; 32255 }); 32256 /* harmony import */ 32257 var __WEBPACK_IMPORTED_MODULE_60__sk_index_js__ = __webpack_require__(765); 32258 /* harmony reexport (binding) */ 32259 __webpack_require__.d(__webpack_exports__, "sk", function () { 32260 return __WEBPACK_IMPORTED_MODULE_60__sk_index_js__["a"]; 32261 }); 32262 /* harmony import */ 32263 var __WEBPACK_IMPORTED_MODULE_61__sl_index_js__ = __webpack_require__(771); 32264 /* harmony reexport (binding) */ 32265 __webpack_require__.d(__webpack_exports__, "sl", function () { 32266 return __WEBPACK_IMPORTED_MODULE_61__sl_index_js__["a"]; 32267 }); 32268 /* harmony import */ 32269 var __WEBPACK_IMPORTED_MODULE_62__sr_index_js__ = __webpack_require__(777); 32270 /* harmony reexport (binding) */ 32271 __webpack_require__.d(__webpack_exports__, "sr", function () { 32272 return __WEBPACK_IMPORTED_MODULE_62__sr_index_js__["a"]; 32273 }); 32274 /* harmony import */ 32275 var __WEBPACK_IMPORTED_MODULE_63__sr_Latn_index_js__ = __webpack_require__(783); 32276 /* harmony reexport (binding) */ 32277 __webpack_require__.d(__webpack_exports__, "srLatn", function () { 32278 return __WEBPACK_IMPORTED_MODULE_63__sr_Latn_index_js__["a"]; 32279 }); 32280 /* harmony import */ 32281 var __WEBPACK_IMPORTED_MODULE_64__sv_index_js__ = __webpack_require__(789); 32282 /* harmony reexport (binding) */ 32283 __webpack_require__.d(__webpack_exports__, "sv", function () { 32284 return __WEBPACK_IMPORTED_MODULE_64__sv_index_js__["a"]; 32285 }); 32286 /* harmony import */ 32287 var __WEBPACK_IMPORTED_MODULE_65__ta_index_js__ = __webpack_require__(795); 32288 /* harmony reexport (binding) */ 32289 __webpack_require__.d(__webpack_exports__, "ta", function () { 32290 return __WEBPACK_IMPORTED_MODULE_65__ta_index_js__["a"]; 32291 }); 32292 /* harmony import */ 32293 var __WEBPACK_IMPORTED_MODULE_
vendor: 140,055 bytes, lines 32293-35251
3229366__te_index_js__ = __webpack_require__(801); 32294 /* harmony reexport (binding) */ 32295 __webpack_require__.d(__webpack_exports__, "te", function () { 32296 return __WEBPACK_IMPORTED_MODULE_66__te_index_js__["a"]; 32297 }); 32298 /* harmony import */ 32299 var __WEBPACK_IMPORTED_MODULE_67__th_index_js__ = __webpack_require__(807); 32300 /* harmony reexport (binding) */ 32301 __webpack_require__.d(__webpack_exports__, "th", function () { 32302 return __WEBPACK_IMPORTED_MODULE_67__th_index_js__["a"]; 32303 }); 32304 /* harmony import */ 32305 var __WEBPACK_IMPORTED_MODULE_68__tr_index_js__ = __webpack_require__(813); 32306 /* harmony reexport (binding) */ 32307 __webpack_require__.d(__webpack_exports__, "tr", function () { 32308 return __WEBPACK_IMPORTED_MODULE_68__tr_index_js__["a"]; 32309 }); 32310 /* harmony import */ 32311 var __WEBPACK_IMPORTED_MODULE_69__ug_index_js__ = __webpack_require__(819); 32312 /* harmony reexport (binding) */ 32313 __webpack_require__.d(__webpack_exports__, "ug", function () { 32314 return __WEBPACK_IMPORTED_MODULE_69__ug_index_js__["a"]; 32315 }); 32316 /* harmony import */ 32317 var __WEBPACK_IMPORTED_MODULE_70__uk_index_js__ = __webpack_require__(825); 32318 /* harmony reexport (binding) */ 32319 __webpack_require__.d(__webpack_exports__, "uk", function () { 32320 return __WEBPACK_IMPORTED_MODULE_70__uk_index_js__["a"]; 32321 }); 32322 /* harmony import */ 32323 var __WEBPACK_IMPORTED_MODULE_71__uz_index_js__ = __webpack_require__(831); 32324 /* harmony reexport (binding) */ 32325 __webpack_require__.d(__webpack_exports__, "uz", function () { 32326 return __WEBPACK_IMPORTED_MODULE_71__uz_index_js__["a"]; 32327 }); 32328 /* harmony import */ 32329 var __WEBPACK_IMPORTED_MODULE_72__vi_index_js__ = __webpack_require__(837); 32330 /* harmony reexport (binding) */ 32331 __webpack_require__.d(__webpack_exports__, "vi", function () { 32332 return __WEBPACK_IMPORTED_MODULE_72__vi_index_js__["a"]; 32333 }); 32334 /* harmony import */ 32335 var __WEBPACK_IMPORTED_MODULE_73__zh_CN_index_js__ = __webpack_require__(843); 32336 /* harmony reexport (binding) */ 32337 __webpack_require__.d(__webpack_exports__, "zhCN", function () { 32338 return __WEBPACK_IMPORTED_MODULE_73__zh_CN_index_js__["a"]; 32339 }); 32340 /* harmony import */ 32341 var __WEBPACK_IMPORTED_MODULE_74__zh_TW_index_js__ = __webpack_require__(849); 32342 /* harmony reexport (binding) */ 32343 __webpack_require__.d(__webpack_exports__, "zhTW", function () { 32344 return __WEBPACK_IMPORTED_MODULE_74__zh_TW_index_js__["a"]; 32345 }); 32346// This file is generated automatically by `scripts/build/indices.js`. Please, don't change it. 32347 32348 32349 /***/ 32350 }), 32351 /* 440 */ 32352 /***/ (function (module, __webpack_exports__, __webpack_require__) { 32353 32354 "use strict"; 32355 /* harmony import */ 32356 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(441); 32357 /* harmony import */ 32358 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(442); 32359 /* harmony import */ 32360 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(443); 32361 /* harmony import */ 32362 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(444); 32363 /* harmony import */ 32364 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(445); 32365 32366 32367 /** 32368 * @type {Locale} 32369 * @category Locales 32370 * @summary Afrikaans locale. 32371 * @language Afrikaans 32372 * @iso-639-2 afr 32373 * @author Marnus Weststrate [@marnusw]{@link https://github.com/marnusw} 32374 */ 32375 32376 var locale = { 32377 code: 'af', 32378 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 32379 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 32380 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 32381 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 32382 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 32383 options: { 32384 weekStartsOn: 0 32385 /* Sunday */ 32386 , 32387 firstWeekContainsDate: 1 32388 } 32389 }; 32390 /* harmony default export */ 32391 __webpack_exports__["a"] = (locale); 32392 32393 /***/ 32394 }), 32395 /* 441 */ 32396 /***/ (function (module, __webpack_exports__, __webpack_require__) { 32397 32398 "use strict"; 32399 /* harmony export (immutable) */ 32400 __webpack_exports__["a"] = formatDistance; 32401 var formatDistanceLocale = { 32402 lessThanXSeconds: { 32403 one: "minder as 'n sekonde", 32404 other: 'minder as {{count}} sekondes' 32405 }, 32406 xSeconds: { 32407 one: '1 sekonde', 32408 other: '{{count}} sekondes' 32409 }, 32410 halfAMinute: "'n halwe minuut", 32411 lessThanXMinutes: { 32412 one: "minder as 'n minuut", 32413 other: 'minder as {{count}} minute' 32414 }, 32415 xMinutes: { 32416 one: "'n minuut", 32417 other: '{{count}} minute' 32418 }, 32419 aboutXHours: { 32420 one: 'ongeveer 1 uur', 32421 other: 'ongeveer {{count}} ure' 32422 }, 32423 xHours: { 32424 one: '1 uur', 32425 other: '{{count}} ure' 32426 }, 32427 xDays: { 32428 one: '1 dag', 32429 other: '{{count}} dae' 32430 }, 32431 aboutXWeeks: { 32432 one: 'ongeveer 1 week', 32433 other: 'ongeveer {{count}} weke' 32434 }, 32435 xWeeks: { 32436 one: '1 week', 32437 other: '{{count}} weke' 32438 }, 32439 aboutXMonths: { 32440 one: 'ongeveer 1 maand', 32441 other: 'ongeveer {{count}} maande' 32442 }, 32443 xMonths: { 32444 one: '1 maand', 32445 other: '{{count}} maande' 32446 }, 32447 aboutXYears: { 32448 one: 'ongeveer 1 jaar', 32449 other: 'ongeveer {{count}} jaar' 32450 }, 32451 xYears: { 32452 one: '1 jaar', 32453 other: '{{count}} jaar' 32454 }, 32455 overXYears: { 32456 one: 'meer as 1 jaar', 32457 other: 'meer as {{count}} jaar' 32458 }, 32459 almostXYears: { 32460 one: 'byna 1 jaar', 32461 other: 'byna {{count}} jaar' 32462 } 32463 }; 32464 32465 function formatDistance(token, count, options) { 32466 options = options || {}; 32467 var result; 32468 32469 if (typeof formatDistanceLocale[token] === 'string') { 32470 result = formatDistanceLocale[token]; 32471 } else if (count === 1) { 32472 result = formatDistanceLocale[token].one; 32473 } else { 32474 result = formatDistanceLocale[token].other.replace('{{count}}', count); 32475 } 32476 32477 if (options.addSuffix) { 32478 if (options.comparison > 0) { 32479 return 'oor ' + result; 32480 } else { 32481 return result + ' gelede'; 32482 } 32483 } 32484 32485 return result; 32486 } 32487 32488 /***/ 32489 }), 32490 /* 442 */ 32491 /***/ (function (module, __webpack_exports__, __webpack_require__) { 32492 32493 "use strict"; 32494 /* harmony import */ 32495 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 32496 32497 var dateFormats = { 32498 full: 'EEEE, d MMMM yyyy', 32499 long: 'd MMMM yyyy', 32500 medium: 'd MMM yyyy', 32501 short: 'yyyy/MM/dd' 32502 }; 32503 var timeFormats = { 32504 full: 'HH:mm:ss zzzz', 32505 long: 'HH:mm:ss z', 32506 medium: 'HH:mm:ss', 32507 short: 'HH:mm' 32508 }; 32509 var dateTimeFormats = { 32510 full: "{{date}} 'om' {{time}}", 32511 long: "{{date}} 'om' {{time}}", 32512 medium: '{{date}}, {{time}}', 32513 short: '{{date}}, {{time}}' 32514 }; 32515 var formatLong = { 32516 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 32517 formats: dateFormats, 32518 defaultWidth: 'full' 32519 }), 32520 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 32521 formats: timeFormats, 32522 defaultWidth: 'full' 32523 }), 32524 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 32525 formats: dateTimeFormats, 32526 defaultWidth: 'full' 32527 }) 32528 }; 32529 /* harmony default export */ 32530 __webpack_exports__["a"] = (formatLong); 32531 32532 /***/ 32533 }), 32534 /* 443 */ 32535 /***/ (function (module, __webpack_exports__, __webpack_require__) { 32536 32537 "use strict"; 32538 /* harmony export (immutable) */ 32539 __webpack_exports__["a"] = formatRelative; 32540 var formatRelativeLocale = { 32541 lastWeek: "'verlede' eeee 'om' p", 32542 yesterday: "'gister om' p", 32543 today: "'vandag om' p", 32544 tomorrow: "'môre om' p", 32545 nextWeek: "eeee 'om' p", 32546 other: 'P' 32547 }; 32548 32549 function formatRelative(token) { 32550 return formatRelativeLocale[token]; 32551 } 32552 32553 /***/ 32554 }), 32555 /* 444 */ 32556 /***/ (function (module, __webpack_exports__, __webpack_require__) { 32557 32558 "use strict"; 32559 /* harmony import */ 32560 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 32561 32562 var eraValues = { 32563 narrow: ['vC', 'nC'], 32564 abbreviated: ['vC', 'nC'], 32565 wide: ['voor Christus', 'na Christus'] 32566 }; 32567 var quarterValues = { 32568 narrow: ['1', '2', '3', '4'], 32569 abbreviated: ['K1', 'K2', 'K3', 'K4'], 32570 wide: ['1ste kwartaal', '2de kwartaal', '3de kwartaal', '4de kwartaal'] 32571 }; 32572 var monthValues = { 32573 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], 32574 abbreviated: ['Jan', 'Feb', 'Mrt', 'Apr', 'Mei', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'], 32575 wide: ['Januarie', 'Februarie', 'Maart', 'April', 'Mei', 'Junie', 'Julie', 'Augustus', 'September', 'Oktober', 'November', 'Desember'] 32576 }; 32577 var dayValues = { 32578 narrow: ['S', 'M', 'D', 'W', 'D', 'V', 'S'], 32579 short: ['So', 'Ma', 'Di', 'Wo', 'Do', 'Vr', 'Sa'], 32580 abbreviated: ['Son', 'Maa', 'Din', 'Woe', 'Don', 'Vry', 'Sat'], 32581 wide: ['Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag'] 32582 }; 32583 var dayPeriodValues = { 32584 narrow: { 32585 am: 'vm', 32586 pm: 'nm', 32587 midnight: 'middernag', 32588 noon: 'middaguur', 32589 morning: 'oggend', 32590 afternoon: 'middag', 32591 evening: 'laat middag', 32592 night: 'aand' 32593 }, 32594 abbreviated: { 32595 am: 'vm', 32596 pm: 'nm', 32597 midnight: 'middernag', 32598 noon: 'middaguur', 32599 morning: 'oggend', 32600 afternoon: 'middag', 32601 evening: 'laat middag', 32602 night: 'aand' 32603 }, 32604 wide: { 32605 am: 'vm', 32606 pm: 'nm', 32607 midnight: 'middernag', 32608 noon: 'middaguur', 32609 morning: 'oggend', 32610 afternoon: 'middag', 32611 evening: 'laat middag', 32612 night: 'aand' 32613 } 32614 }; 32615 var formattingDayPeriodValues = { 32616 narrow: { 32617 am: 'vm', 32618 pm: 'nm', 32619 midnight: 'middernag', 32620 noon: 'uur die middag', 32621 morning: 'uur die oggend', 32622 afternoon: 'uur die middag', 32623 evening: 'uur die aand', 32624 night: 'uur die aand' 32625 }, 32626 abbreviated: { 32627 am: 'vm', 32628 pm: 'nm', 32629 midnight: 'middernag', 32630 noon: 'uur die middag', 32631 morning: 'uur die oggend', 32632 afternoon: 'uur die middag', 32633 evening: 'uur die aand', 32634 night: 'uur die aand' 32635 }, 32636 wide: { 32637 am: 'vm', 32638 pm: 'nm', 32639 midnight: 'middernag', 32640 noon: 'uur die middag', 32641 morning: 'uur die oggend', 32642 afternoon: 'uur die middag', 32643 evening: 'uur die aand', 32644 night: 'uur die aand' 32645 } 32646 }; 32647 32648 function ordinalNumber(dirtyNumber) { 32649 var number = Number(dirtyNumber); 32650 var rem100 = number % 100; 32651 32652 if (rem100 < 20) { 32653 switch (rem100) { 32654 case 1: 32655 case 8: 32656 return number + 'ste'; 32657 32658 default: 32659 return number + 'de'; 32660 } 32661 } 32662 32663 return number + 'ste'; 32664 } 32665 32666 var localize = { 32667 ordinalNumber: ordinalNumber, 32668 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 32669 values: eraValues, 32670 defaultWidth: 'wide' 32671 }), 32672 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 32673 values: quarterValues, 32674 defaultWidth: 'wide', 32675 argumentCallback: function (quarter) { 32676 return Number(quarter) - 1; 32677 } 32678 }), 32679 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 32680 values: monthValues, 32681 defaultWidth: 'wide' 32682 }), 32683 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 32684 values: dayValues, 32685 defaultWidth: 'wide' 32686 }), 32687 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 32688 values: dayPeriodValues, 32689 defaultWidth: 'wide', 32690 formattingValues: formattingDayPeriodValues, 32691 defaultFormattingWidth: 'wide' 32692 }) 32693 }; 32694 /* harmony default export */ 32695 __webpack_exports__["a"] = (localize); 32696 32697 /***/ 32698 }), 32699 /* 445 */ 32700 /***/ (function (module, __webpack_exports__, __webpack_require__) { 32701 32702 "use strict"; 32703 /* harmony import */ 32704 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 32705 /* harmony import */ 32706 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 32707 32708 32709 var matchOrdinalNumberPattern = /^(\d+)(ste|de)?/i; 32710 var parseOrdinalNumberPattern = /\d+/i; 32711 var matchEraPatterns = { 32712 narrow: /^([vn]\.? ?C\.?)/, 32713 abbreviated: /^([vn]\. ?C\.?)/, 32714 wide: /^((voor|na) Christus)/ 32715 }; 32716 var parseEraPatterns = { 32717 any: [/^v/, /^n/] 32718 }; 32719 var matchQuarterPatterns = { 32720 narrow: /^[1234]/i, 32721 abbreviated: /^K[1234]/i, 32722 wide: /^[1234](st|d)e kwartaal/i 32723 }; 32724 var parseQuarterPatterns = { 32725 any: [/1/i, /2/i, /3/i, /4/i] 32726 }; 32727 var matchMonthPatterns = { 32728 narrow: /^[jfmasond]/i, 32729 abbreviated: /^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i, 32730 wide: /^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i 32731 }; 32732 var parseMonthPatterns = { 32733 narrow: [/^J/i, /^F/i, /^M/i, /^A/i, /^M/i, /^J/i, /^J/i, /^A/i, /^S/i, /^O/i, /^N/i, /^D/i], 32734 any: [/^Jan/i, /^Feb/i, /^Mrt/i, /^Apr/i, /^Mei/i, /^Jun/i, /^Jul/i, /^Aug/i, /^Sep/i, /^Okt/i, /^Nov/i, /^Dec/i] 32735 }; 32736 var matchDayPatterns = { 32737 narrow: /^[smdwv]/i, 32738 short: /^(So|Ma|Di|Wo|Do|Vr|Sa)/i, 32739 abbreviated: /^(Son|Maa|Din|Woe|Don|Vry|Sat)/i, 32740 wide: /^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i 32741 }; 32742 var parseDayPatterns = { 32743 narrow: [/^S/i, /^M/i, /^D/i, /^W/i, /^D/i, /^V/i, /^S/i], 32744 any: [/^So/i, /^Ma/i, /^Di/i, /^Wo/i, /^Do/i, /^Vr/i, /^Sa/i] 32745 }; 32746 var matchDayPeriodPatterns = { 32747 any: /^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i 32748 }; 32749 var parseDayPeriodPatterns = { 32750 any: { 32751 am: /^vm/i, 32752 pm: /^nm/i, 32753 midnight: /^middernag/i, 32754 noon: /^middaguur/i, 32755 morning: /oggend/i, 32756 afternoon: /middag/i, 32757 evening: /laat middag/i, 32758 night: /aand/i 32759 } 32760 }; 32761 var match = { 32762 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 32763 matchPattern: matchOrdinalNumberPattern, 32764 parsePattern: parseOrdinalNumberPattern, 32765 valueCallback: function (value) { 32766 return parseInt(value, 10); 32767 } 32768 }), 32769 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 32770 matchPatterns: matchEraPatterns, 32771 defaultMatchWidth: 'wide', 32772 parsePatterns: parseEraPatterns, 32773 defaultParseWidth: 'any' 32774 }), 32775 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 32776 matchPatterns: matchQuarterPatterns, 32777 defaultMatchWidth: 'wide', 32778 parsePatterns: parseQuarterPatterns, 32779 defaultParseWidth: 'any', 32780 valueCallback: function (index) { 32781 return index + 1; 32782 } 32783 }), 32784 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 32785 matchPatterns: matchMonthPatterns, 32786 defaultMatchWidth: 'wide', 32787 parsePatterns: parseMonthPatterns, 32788 defaultParseWidth: 'any' 32789 }), 32790 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 32791 matchPatterns: matchDayPatterns, 32792 defaultMatchWidth: 'wide', 32793 parsePatterns: parseDayPatterns, 32794 defaultParseWidth: 'any' 32795 }), 32796 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 32797 matchPatterns: matchDayPeriodPatterns, 32798 defaultMatchWidth: 'any', 32799 parsePatterns: parseDayPeriodPatterns, 32800 defaultParseWidth: 'any' 32801 }) 32802 }; 32803 /* harmony default export */ 32804 __webpack_exports__["a"] = (match); 32805 32806 /***/ 32807 }), 32808 /* 446 */ 32809 /***/ (function (module, __webpack_exports__, __webpack_require__) { 32810 32811 "use strict"; 32812 /* harmony import */ 32813 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(447); 32814 /* harmony import */ 32815 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(448); 32816 /* harmony import */ 32817 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(449); 32818 /* harmony import */ 32819 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(450); 32820 /* harmony import */ 32821 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(451); 32822 32823 32824 /** 32825 * @type {Locale} 32826 * @category Locales 32827 * @summary Arabic locale (Modern Standard Arabic ). 32828 * @language Modern Standard Arabic (Algeria) [ar-dz] 32829 * @iso-639-2 ara 32830 * @author Badreddine Boumaza [@badre429]{@link https://github.com/badre429} 32831 * @author Ahmed ElShahat [@elshahat]{@link https://github.com/elshahat} 32832 */ 32833 32834 var locale = { 32835 code: 'ar-DZ', 32836 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 32837 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 32838 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 32839 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 32840 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 32841 options: { 32842 weekStartsOn: 0 32843 /* Sunday */ 32844 , 32845 firstWeekContainsDate: 1 32846 } 32847 }; 32848 /* harmony default export */ 32849 __webpack_exports__["a"] = (locale); 32850 32851 /***/ 32852 }), 32853 /* 447 */ 32854 /***/ (function (module, __webpack_exports__, __webpack_require__) { 32855 32856 "use strict"; 32857 /* harmony export (immutable) */ 32858 __webpack_exports__["a"] = formatDistance; 32859 var formatDistanceLocale = { 32860 lessThanXSeconds: { 32861 one: 'Ø£Ù٠٠٠ثاÙÙØ© ÙØ§ØØ¯Ø©', 32862 two: 'Ø£ÙÙ Ù Ù Ø«Ø§ÙØªÙÙ', 32863 threeToTen: 'Ø£ÙÙ Ù Ù {{count}} Ø«ÙØ§ÙÙ', 32864 other: 'Ø£ÙÙ Ù Ù {{count}} ثاÙÙØ©' 32865 }, 32866 xSeconds: { 32867 one: 'ثاÙÙØ© ÙØ§ØØ¯Ø©', 32868 two: 'Ø«Ø§ÙØªÙÙ', 32869 threeToTen: '{{count}} Ø«ÙØ§ÙÙ', 32870 other: '{{count}} ثاÙÙØ©' 32871 }, 32872 halfAMinute: 'ÙØµÙ دÙÙÙØ©', 32873 lessThanXMinutes: { 32874 one: 'Ø£Ù٠٠٠دÙÙÙØ©', 32875 two: 'Ø£Ù٠٠٠دÙÙÙØªÙÙ', 32876 threeToTen: 'Ø£ÙÙ Ù Ù {{count}} Ø¯ÙØ§Ø¦Ù', 32877 other: 'Ø£ÙÙ Ù Ù {{count}} دÙÙÙØ©' 32878 }, 32879 xMinutes: { 32880 one: 'دÙÙÙØ© ÙØ§ØØ¯Ø©', 32881 two: 'دÙÙÙØªÙÙ', 32882 threeToTen: '{{count}} Ø¯ÙØ§Ø¦Ù', 32883 other: '{{count}} دÙÙÙØ©' 32884 }, 32885 aboutXHours: { 32886 one: 'ساعة ÙØ§ØØ¯Ø© ØªÙØ±ÙباÙ', 32887 two: 'ساعتÙÙ ØªÙØ±ÙباÙ', 32888 threeToTen: '{{count}} ساعات ØªÙØ±ÙباÙ', 32889 other: '{{count}} ساعة ØªÙØ±ÙباÙ' 32890 }, 32891 xHours: { 32892 one: 'ساعة ÙØ§ØØ¯Ø©', 32893 two: 'ساعتÙÙ', 32894 threeToTen: '{{count}} ساعات', 32895 other: '{{count}} ساعة' 32896 }, 32897 xDays: { 32898 one: 'ÙÙÙ ÙØ§ØØ¯', 32899 two: 'ÙÙÙ ÙÙ', 32900 threeToTen: '{{count}} Ø£ÙØ§Ù ', 32901 other: '{{count}} ÙÙÙ ' 32902 }, 32903 aboutXWeeks: { 32904 one: 'Ø£Ø³Ø¨ÙØ¹ ÙØ§ØØ¯ ØªÙØ±ÙباÙ', 32905 two: 'Ø£Ø³Ø¨ÙØ¹ÙÙ ØªÙØ±ÙباÙ', 32906 threeToTen: '{{count}} Ø£Ø³Ø§Ø¨ÙØ¹ ØªÙØ±ÙباÙ', 32907 other: '{{count}} Ø£Ø³Ø¨ÙØ¹ ØªÙØ±ÙباÙ' 32908 }, 32909 xWeeks: { 32910 one: 'Ø£Ø³Ø¨ÙØ¹ ÙØ§ØØ¯', 32911 two: 'Ø£Ø³Ø¨ÙØ¹ÙÙ', 32912 threeToTen: '{{count}} Ø£Ø³Ø§Ø¨ÙØ¹', 32913 other: '{{count}} Ø£Ø³Ø¨ÙØ¹' 32914 }, 32915 aboutXMonths: { 32916 one: 'Ø´ÙØ± ÙØ§ØØ¯ ØªÙØ±ÙباÙ', 32917 two: 'Ø´ÙØ±ÙÙ ØªÙØ±ÙباÙ', 32918 threeToTen: '{{count}} Ø£Ø´ÙØ± ØªÙØ±ÙباÙ', 32919 other: '{{count}} Ø´ÙØ± ØªÙØ±ÙباÙ' 32920 }, 32921 xMonths: { 32922 one: 'Ø´ÙØ± ÙØ§ØØ¯', 32923 two: 'Ø´ÙØ±ÙÙ', 32924 threeToTen: '{{count}} Ø£Ø´ÙØ±', 32925 other: '{{count}} Ø´ÙØ±' 32926 }, 32927 aboutXYears: { 32928 one: 'Ø¹Ø§Ù ÙØ§ØØ¯ ØªÙØ±ÙباÙ', 32929 two: 'عا٠ÙÙ ØªÙØ±ÙباÙ', 32930 threeToTen: '{{count}} Ø£Ø¹ÙØ§Ù ØªÙØ±ÙباÙ', 32931 other: '{{count}} Ø¹Ø§Ù ØªÙØ±ÙباÙ' 32932 }, 32933 xYears: { 32934 one: 'Ø¹Ø§Ù ÙØ§ØØ¯', 32935 two: 'عا٠ÙÙ', 32936 threeToTen: '{{count}} Ø£Ø¹ÙØ§Ù ', 32937 other: '{{count}} عا٠' 32938 }, 32939 overXYears: { 32940 one: 'Ø£ÙØ«Ø± ٠٠عا٠', 32941 two: 'Ø£ÙØ«Ø± ٠٠عا٠ÙÙ', 32942 threeToTen: 'Ø£ÙØ«Ø± Ù Ù {{count}} Ø£Ø¹ÙØ§Ù ', 32943 other: 'Ø£ÙØ«Ø± Ù Ù {{count}} عا٠' 32944 }, 32945 almostXYears: { 32946 one: 'Ø¹Ø§Ù ÙØ§ØØ¯ ØªÙØ±ÙباÙ', 32947 two: 'عا٠ÙÙ ØªÙØ±ÙباÙ', 32948 threeToTen: '{{count}} Ø£Ø¹ÙØ§Ù ØªÙØ±ÙباÙ', 32949 other: '{{count}} Ø¹Ø§Ù ØªÙØ±ÙباÙ' 32950 } 32951 }; 32952 32953 function formatDistance(token, count, options) { 32954 options = options || {}; 32955 var result; 32956 32957 if (typeof formatDistanceLocale[token] === 'string') { 32958 result = formatDistanceLocale[token]; 32959 } else if (count === 1) { 32960 result = formatDistanceLocale[token].one; 32961 } else if (count === 2) { 32962 result = formatDistanceLocale[token].two; 32963 } else if (count <= 10) { 32964 result = formatDistanceLocale[token].threeToTen.replace('{{count}}', count); 32965 } else { 32966 result = formatDistanceLocale[token].other.replace('{{count}}', count); 32967 } 32968 32969 if (options.addSuffix) { 32970 if (options.comparison > 0) { 32971 return 'ÙÙ Ø®ÙØ§Ù ' + result; 32972 } else { 32973 return 'Ù ÙØ° ' + result; 32974 } 32975 } 32976 32977 return result; 32978 } 32979 32980 /***/ 32981 }), 32982 /* 448 */ 32983 /***/ (function (module, __webpack_exports__, __webpack_require__) { 32984 32985 "use strict"; 32986 /* harmony import */ 32987 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 32988 32989 var dateFormats = { 32990 full: 'EEEE, MMMM do, y', 32991 long: 'MMMM do, y', 32992 medium: 'MMM d, y', 32993 short: 'MM/dd/yyyy' 32994 }; 32995 var timeFormats = { 32996 full: 'h:mm:ss a zzzz', 32997 long: 'h:mm:ss a z', 32998 medium: 'h:mm:ss a', 32999 short: 'h:mm a' 33000 }; 33001 var dateTimeFormats = { 33002 full: "{{date}} 'Ø¹ÙØ¯' {{time}}", 33003 long: "{{date}} 'Ø¹ÙØ¯' {{time}}", 33004 medium: '{{date}}, {{time}}', 33005 short: '{{date}}, {{time}}' 33006 }; 33007 var formatLong = { 33008 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 33009 formats: dateFormats, 33010 defaultWidth: 'full' 33011 }), 33012 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 33013 formats: timeFormats, 33014 defaultWidth: 'full' 33015 }), 33016 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 33017 formats: dateTimeFormats, 33018 defaultWidth: 'full' 33019 }) 33020 }; 33021 /* harmony default export */ 33022 __webpack_exports__["a"] = (formatLong); 33023 33024 /***/ 33025 }), 33026 /* 449 */ 33027 /***/ (function (module, __webpack_exports__, __webpack_require__) { 33028 33029 "use strict"; 33030 /* harmony export (immutable) */ 33031 __webpack_exports__["a"] = formatRelative; 33032 var formatRelativeLocale = { 33033 lastWeek: "'أخر' eeee 'Ø¹ÙØ¯' p", 33034 yesterday: "'أ٠س Ø¹ÙØ¯' p", 33035 today: "'اÙÙÙÙ Ø¹ÙØ¯' p", 33036 tomorrow: "'ØºØ¯Ø§Ù Ø¹ÙØ¯' p", 33037 nextWeek: "eeee 'Ø¹ÙØ¯' p", 33038 other: 'P' 33039 }; 33040 33041 function formatRelative(token, _date, _baseDate, _options) { 33042 return formatRelativeLocale[token]; 33043 } 33044 33045 /***/ 33046 }), 33047 /* 450 */ 33048 /***/ (function (module, __webpack_exports__, __webpack_require__) { 33049 33050 "use strict"; 33051 /* harmony import */ 33052 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 33053 33054 var eraValues = { 33055 narrow: ['Ù', 'ب'], 33056 abbreviated: ['Ù.Ù .', 'ب.Ù .'], 33057 wide: ['ÙØ¨Ù اÙÙ ÙÙØ§Ø¯', 'بعد اÙÙ ÙÙØ§Ø¯'] 33058 }; 33059 var quarterValues = { 33060 narrow: ['1', '2', '3', '4'], 33061 abbreviated: ['ر1', 'ر2', 'ر3', 'ر4'], 33062 wide: ['Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ£ÙÙ', 'Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ«Ø§ÙÙ', 'Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ«Ø§ÙØ«', 'Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ±Ø§Ø¨Ø¹'] 33063 }; 33064 var monthValues = { 33065 narrow: ['ج', 'Ù', 'Ù ', 'Ø£', 'Ù ', 'ج', 'ج', 'Ø£', 'س', 'Ø£', 'Ù', 'د'], 33066 abbreviated: ['جاÙÙ', 'ÙÙÙÙ', '٠ارس', 'Ø£ÙØ±ÙÙ', '٠اÙÙ', 'Ø¬ÙØ§ÙÙ', 'جÙÙÙ', 'Ø£ÙØª', 'سبتÙ', 'Ø£ÙØªÙ', 'ÙÙÙÙ', 'Ø¯ÙØ³Ù'], 33067 wide: ['جاÙÙÙ', 'ÙÙÙØ±Ù', '٠ارس', 'Ø£ÙØ±ÙÙ', '٠اÙ', 'Ø¬ÙØ§Ù', 'جÙÙÙÙØ©', 'Ø£ÙØª', 'سبت٠بر', 'Ø£ÙØªÙبر', 'ÙÙÙ٠بر', 'Ø¯ÙØ³Ù بر'] 33068 }; 33069 var dayValues = { 33070 narrow: ['Ø', 'Ù', 'Ø«', 'ر', 'Ø®', 'ج', 'س'], 33071 short: ['Ø£ØØ¯', 'اثÙÙÙ', 'Ø«ÙØ§Ø«Ø§Ø¡', 'أربعاء', 'Ø®Ù ÙØ³', 'ج٠عة', 'سبت'], 33072 abbreviated: ['Ø£ØØ¯', 'اثÙÙ', 'Ø«ÙØ§', 'أربÙ', 'خ٠ÙÙ', 'ج٠عة', 'سبت'], 33073 wide: ['Ø§ÙØ£ØØ¯', 'Ø§ÙØ§Ø«ÙÙÙ', 'Ø§ÙØ«Ùاثاء', 'Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡', 'Ø§ÙØ®Ù ÙØ³', 'Ø§ÙØ¬Ù عة', 'Ø§ÙØ³Ø¨Øª'] 33074 }; 33075 var dayPeriodValues = { 33076 narrow: { 33077 am: 'ص', 33078 pm: 'Ù ', 33079 midnight: 'Ù', 33080 noon: 'ظ', 33081 morning: 'ØµØ¨Ø§ØØ§Ù', 33082 afternoon: 'بعد Ø§ÙØ¸Ùر', 33083 evening: '٠ساءاÙ', 33084 night: 'ÙÙÙØ§Ù' 33085 }, 33086 abbreviated: { 33087 am: 'ص', 33088 pm: 'Ù ', 33089 midnight: 'ÙØµÙ اÙÙÙÙ', 33090 noon: 'Ø¸ÙØ±', 33091 morning: 'ØµØ¨Ø§ØØ§Ù', 33092 afternoon: 'بعد Ø§ÙØ¸Ùر', 33093 evening: '٠ساءاÙ', 33094 night: 'ÙÙÙØ§Ù' 33095 }, 33096 wide: { 33097 am: 'ص', 33098 pm: 'Ù ', 33099 midnight: 'ÙØµÙ اÙÙÙÙ', 33100 noon: 'Ø¸ÙØ±', 33101 morning: 'ØµØ¨Ø§ØØ§Ù', 33102 afternoon: 'بعد Ø§ÙØ¸Ùر', 33103 evening: '٠ساءاÙ', 33104 night: 'ÙÙÙØ§Ù' 33105 } 33106 }; 33107 var formattingDayPeriodValues = { 33108 narrow: { 33109 am: 'ص', 33110 pm: 'Ù ', 33111 midnight: 'Ù', 33112 noon: 'ظ', 33113 morning: 'ÙÙ Ø§ÙØµØ¨Ø§Ø', 33114 afternoon: 'بعد Ø§ÙØ¸ÙÙØ±', 33115 evening: 'Ù٠اÙ٠ساء', 33116 night: 'Ù٠اÙÙÙÙ' 33117 }, 33118 abbreviated: { 33119 am: 'ص', 33120 pm: 'Ù ', 33121 midnight: 'ÙØµÙ اÙÙÙÙ', 33122 noon: 'Ø¸ÙØ±', 33123 morning: 'ÙÙ Ø§ÙØµØ¨Ø§Ø', 33124 evening: 'Ù٠اÙ٠ساء', 33125 night: 'Ù٠اÙÙÙÙ' 33126 }, 33127 wide: { 33128 am: 'ص', 33129 pm: 'Ù ', 33130 midnight: 'ÙØµÙ اÙÙÙÙ', 33131 noon: 'Ø¸ÙØ±', 33132 afternoon: 'بعد Ø§ÙØ¸ÙÙØ±', 33133 evening: 'Ù٠اÙ٠ساء', 33134 night: 'Ù٠اÙÙÙÙ' 33135 } 33136 }; 33137 33138 function ordinalNumber(dirtyNumber) { 33139 return String(dirtyNumber); 33140 } 33141 33142 var localize = { 33143 ordinalNumber: ordinalNumber, 33144 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 33145 values: eraValues, 33146 defaultWidth: 'wide' 33147 }), 33148 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 33149 values: quarterValues, 33150 defaultWidth: 'wide', 33151 argumentCallback: function (quarter) { 33152 return Number(quarter) - 1; 33153 } 33154 }), 33155 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 33156 values: monthValues, 33157 defaultWidth: 'wide' 33158 }), 33159 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 33160 values: dayValues, 33161 defaultWidth: 'wide' 33162 }), 33163 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 33164 values: dayPeriodValues, 33165 defaultWidth: 'wide', 33166 formattingValues: formattingDayPeriodValues, 33167 defaultFormattingWidth: 'wide' 33168 }) 33169 }; 33170 /* harmony default export */ 33171 __webpack_exports__["a"] = (localize); 33172 33173 /***/ 33174 }), 33175 /* 451 */ 33176 /***/ (function (module, __webpack_exports__, __webpack_require__) { 33177 33178 "use strict"; 33179 /* harmony import */ 33180 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 33181 /* harmony import */ 33182 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 33183 33184 33185 var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; 33186 var parseOrdinalNumberPattern = /\d+/i; 33187 var matchEraPatterns = { 33188 narrow: /^(Ù|ب)/i, 33189 abbreviated: /^(Ù\.?\s?Ù \.?|Ù\.?\s?Ù \.?\s?|a\.?\s?d\.?|c\.?\s?)/i, 33190 wide: /^(ÙØ¨Ù اÙÙ ÙÙØ§Ø¯|ÙØ¨Ù اÙÙ ÙÙØ§Ø¯|بعد اÙÙ ÙÙØ§Ø¯|بعد اÙÙ ÙÙØ§Ø¯)/i 33191 }; 33192 var parseEraPatterns = { 33193 any: [/^ÙØ¨Ù/i, /^بعد/i] 33194 }; 33195 var matchQuarterPatterns = { 33196 narrow: /^[1234]/i, 33197 abbreviated: /^ر[1234]/i, 33198 wide: /^Ø§ÙØ±Ø¨Ø¹ [1234]/i 33199 }; 33200 var parseQuarterPatterns = { 33201 any: [/1/i, /2/i, /3/i, /4/i] 33202 }; 33203 var matchMonthPatterns = { 33204 narrow: /^[جÙÙ Ø£Ø³ÙØ¯]/i, 33205 abbreviated: /^(جاÙ|ÙÙÙ|٠ار|Ø£ÙØ±|٠اÙ|Ø¬ÙØ§|جÙÙ|Ø£ÙØª|سبت|Ø£ÙØª|ÙÙÙ|Ø¯ÙØ³)/i, 33206 wide: /^(جاÙÙÙ|ÙÙÙØ±Ù|٠ارس|Ø£ÙØ±ÙÙ|٠اÙ|Ø¬ÙØ§Ù|جÙÙÙÙØ©|Ø£ÙØª|سبت٠بر|Ø£ÙØªÙبر|ÙÙÙ٠بر|Ø¯ÙØ³Ù بر)/i 33207 }; 33208 var parseMonthPatterns = { 33209 narrow: [/^ج/i, /^Ù/i, /^Ù /i, /^Ø£/i, /^Ù /i, /^ج/i, /^ج/i, /^Ø£/i, /^س/i, /^Ø£/i, /^Ù/i, /^د/i], 33210 any: [/^جاÙ/i, /^ÙÙÙ/i, /^٠ار/i, /^Ø£ÙØ±/i, /^٠اÙ/i, /^Ø¬ÙØ§/i, /^جÙÙ/i, /^Ø£ÙØª/i, /^سبت/i, /^Ø£ÙØª/i, /^ÙÙÙ/i, /^Ø¯ÙØ³/i] 33211 }; 33212 var matchDayPatterns = { 33213 narrow: /^[ØÙثرخجس]/i, 33214 short: /^(Ø£ØØ¯|اثÙÙÙ|Ø«ÙØ§Ø«Ø§Ø¡|أربعاء|Ø®Ù ÙØ³|ج٠عة|سبت)/i, 33215 abbreviated: /^(Ø£ØØ¯|اثÙ|Ø«ÙØ§|أرب|خ٠Ù|ج٠عة|سبت)/i, 33216 wide: /^(Ø§ÙØ£ØØ¯|Ø§ÙØ§Ø«ÙÙÙ|Ø§ÙØ«Ùاثاء|Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡|Ø§ÙØ®Ù ÙØ³|Ø§ÙØ¬Ù عة|Ø§ÙØ³Ø¨Øª)/i 33217 }; 33218 var parseDayPatterns = { 33219 narrow: [/^Ø/i, /^Ù/i, /^Ø«/i, /^ر/i, /^Ø®/i, /^ج/i, /^س/i], 33220 wide: [/^Ø§ÙØ£ØØ¯/i, /^Ø§ÙØ§Ø«ÙÙÙ/i, /^Ø§ÙØ«Ùاثاء/i, /^Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡/i, /^Ø§ÙØ®Ù ÙØ³/i, /^Ø§ÙØ¬Ù عة/i, /^Ø§ÙØ³Ø¨Øª/i], 33221 any: [/^Ø£Ø/i, /^اث/i, /^Ø«/i, /^أر/i, /^Ø®/i, /^ج/i, /^س/i] 33222 }; 33223 var matchDayPeriodPatterns = { 33224 narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, 33225 any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i 33226 }; 33227 var parseDayPeriodPatterns = { 33228 any: { 33229 am: /^a/i, 33230 pm: /^p/i, 33231 midnight: /^mi/i, 33232 noon: /^no/i, 33233 morning: /morning/i, 33234 afternoon: /afternoon/i, 33235 evening: /evening/i, 33236 night: /night/i 33237 } 33238 }; 33239 var match = { 33240 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 33241 matchPattern: matchOrdinalNumberPattern, 33242 parsePattern: parseOrdinalNumberPattern, 33243 valueCallback: function (value) { 33244 return parseInt(value, 10); 33245 } 33246 }), 33247 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 33248 matchPatterns: matchEraPatterns, 33249 defaultMatchWidth: 'wide', 33250 parsePatterns: parseEraPatterns, 33251 defaultParseWidth: 'any' 33252 }), 33253 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 33254 matchPatterns: matchQuarterPatterns, 33255 defaultMatchWidth: 'wide', 33256 parsePatterns: parseQuarterPatterns, 33257 defaultParseWidth: 'any', 33258 valueCallback: function (index) { 33259 return index + 1; 33260 } 33261 }), 33262 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 33263 matchPatterns: matchMonthPatterns, 33264 defaultMatchWidth: 'wide', 33265 parsePatterns: parseMonthPatterns, 33266 defaultParseWidth: 'any' 33267 }), 33268 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 33269 matchPatterns: matchDayPatterns, 33270 defaultMatchWidth: 'wide', 33271 parsePatterns: parseDayPatterns, 33272 defaultParseWidth: 'any' 33273 }), 33274 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 33275 matchPatterns: matchDayPeriodPatterns, 33276 defaultMatchWidth: 'any', 33277 parsePatterns: parseDayPeriodPatterns, 33278 defaultParseWidth: 'any' 33279 }) 33280 }; 33281 /* harmony default export */ 33282 __webpack_exports__["a"] = (match); 33283 33284 /***/ 33285 }), 33286 /* 452 */ 33287 /***/ (function (module, __webpack_exports__, __webpack_require__) { 33288 33289 "use strict"; 33290 /* harmony import */ 33291 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(453); 33292 /* harmony import */ 33293 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(454); 33294 /* harmony import */ 33295 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(455); 33296 /* harmony import */ 33297 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(456); 33298 /* harmony import */ 33299 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(457); 33300 33301 33302 /** 33303 * @type {Locale} 33304 * @category Locales 33305 * @summary Arabic locale (Moroccan Arabic). 33306 * @language Moroccan Arabic 33307 * @iso-639-2 ara 33308 * @author Achraf Rrami [@rramiachraf]{@link https://github.com/rramiachraf} 33309 */ 33310 33311 var locale = { 33312 code: 'ar-MA', 33313 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 33314 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 33315 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 33316 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 33317 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 33318 options: { 33319 // Monday is 1 33320 weekStartsOn: 1, 33321 firstWeekContainsDate: 1 33322 } 33323 }; 33324 /* harmony default export */ 33325 __webpack_exports__["a"] = (locale); 33326 33327 /***/ 33328 }), 33329 /* 453 */ 33330 /***/ (function (module, __webpack_exports__, __webpack_require__) { 33331 33332 "use strict"; 33333 /* harmony export (immutable) */ 33334 __webpack_exports__["a"] = formatDistance; 33335 var formatDistanceLocale = { 33336 lessThanXSeconds: { 33337 one: 'Ø£Ù٠٠٠ثاÙÙØ© ÙØ§ØØ¯Ø©', 33338 two: 'Ø£ÙÙ Ù Ù Ø«Ø§ÙØªÙÙ', 33339 threeToTen: 'Ø£ÙÙ Ù Ù {{count}} Ø«ÙØ§ÙÙ', 33340 other: 'Ø£ÙÙ Ù Ù {{count}} ثاÙÙØ©' 33341 }, 33342 xSeconds: { 33343 one: 'ثاÙÙØ© ÙØ§ØØ¯Ø©', 33344 two: 'Ø«Ø§ÙØªÙÙ', 33345 threeToTen: '{{count}} Ø«ÙØ§ÙÙ', 33346 other: '{{count}} ثاÙÙØ©' 33347 }, 33348 halfAMinute: 'ÙØµÙ دÙÙÙØ©', 33349 lessThanXMinutes: { 33350 one: 'Ø£Ù٠٠٠دÙÙÙØ©', 33351 two: 'Ø£Ù٠٠٠دÙÙÙØªÙÙ', 33352 threeToTen: 'Ø£ÙÙ Ù Ù {{count}} Ø¯ÙØ§Ø¦Ù', 33353 other: 'Ø£ÙÙ Ù Ù {{count}} دÙÙÙØ©' 33354 }, 33355 xMinutes: { 33356 one: 'دÙÙÙØ© ÙØ§ØØ¯Ø©', 33357 two: 'دÙÙÙØªÙÙ', 33358 threeToTen: '{{count}} Ø¯ÙØ§Ø¦Ù', 33359 other: '{{count}} دÙÙÙØ©' 33360 }, 33361 aboutXHours: { 33362 one: 'ساعة ÙØ§ØØ¯Ø© ØªÙØ±ÙباÙ', 33363 two: 'ساعتÙÙ ØªÙØ±ÙباÙ', 33364 threeToTen: '{{count}} ساعات ØªÙØ±ÙباÙ', 33365 other: '{{count}} ساعة ØªÙØ±ÙباÙ' 33366 }, 33367 xHours: { 33368 one: 'ساعة ÙØ§ØØ¯Ø©', 33369 two: 'ساعتÙÙ', 33370 threeToTen: '{{count}} ساعات', 33371 other: '{{count}} ساعة' 33372 }, 33373 xDays: { 33374 one: 'ÙÙÙ ÙØ§ØØ¯', 33375 two: 'ÙÙÙ ÙÙ', 33376 threeToTen: '{{count}} Ø£ÙØ§Ù ', 33377 other: '{{count}} ÙÙÙ ' 33378 }, 33379 aboutXWeeks: { 33380 one: 'Ø£Ø³Ø¨ÙØ¹ ÙØ§ØØ¯ ØªÙØ±ÙباÙ', 33381 two: 'Ø£Ø³Ø¨ÙØ¹ÙÙ ØªÙØ±ÙباÙ', 33382 threeToTen: '{{count}} Ø£Ø³Ø§Ø¨ÙØ¹ ØªÙØ±ÙباÙ', 33383 other: '{{count}} Ø£Ø³Ø¨ÙØ¹ ØªÙØ±ÙباÙ' 33384 }, 33385 xWeeks: { 33386 one: 'Ø£Ø³Ø¨ÙØ¹ ÙØ§ØØ¯', 33387 two: 'Ø£Ø³Ø¨ÙØ¹ÙÙ', 33388 threeToTen: '{{count}} Ø£Ø³Ø§Ø¨ÙØ¹', 33389 other: '{{count}} Ø£Ø³Ø¨ÙØ¹' 33390 }, 33391 aboutXMonths: { 33392 one: 'Ø´ÙØ± ÙØ§ØØ¯ ØªÙØ±ÙباÙ', 33393 two: 'Ø´ÙØ±ÙÙ ØªÙØ±ÙباÙ', 33394 threeToTen: '{{count}} Ø£Ø´ÙØ± ØªÙØ±ÙباÙ', 33395 other: '{{count}} Ø´ÙØ± ØªÙØ±ÙباÙ' 33396 }, 33397 xMonths: { 33398 one: 'Ø´ÙØ± ÙØ§ØØ¯', 33399 two: 'Ø´ÙØ±ÙÙ', 33400 threeToTen: '{{count}} Ø£Ø´ÙØ±', 33401 other: '{{count}} Ø´ÙØ±' 33402 }, 33403 aboutXYears: { 33404 one: 'Ø¹Ø§Ù ÙØ§ØØ¯ ØªÙØ±ÙباÙ', 33405 two: 'عا٠ÙÙ ØªÙØ±ÙباÙ', 33406 threeToTen: '{{count}} Ø£Ø¹ÙØ§Ù ØªÙØ±ÙباÙ', 33407 other: '{{count}} Ø¹Ø§Ù ØªÙØ±ÙباÙ' 33408 }, 33409 xYears: { 33410 one: 'Ø¹Ø§Ù ÙØ§ØØ¯', 33411 two: 'عا٠ÙÙ', 33412 threeToTen: '{{count}} Ø£Ø¹ÙØ§Ù ', 33413 other: '{{count}} عا٠' 33414 }, 33415 overXYears: { 33416 one: 'Ø£ÙØ«Ø± ٠٠عا٠', 33417 two: 'Ø£ÙØ«Ø± ٠٠عا٠ÙÙ', 33418 threeToTen: 'Ø£ÙØ«Ø± Ù Ù {{count}} Ø£Ø¹ÙØ§Ù ', 33419 other: 'Ø£ÙØ«Ø± Ù Ù {{count}} عا٠' 33420 }, 33421 almostXYears: { 33422 one: 'Ø¹Ø§Ù ÙØ§ØØ¯ ØªÙØ±ÙباÙ', 33423 two: 'عا٠ÙÙ ØªÙØ±ÙباÙ', 33424 threeToTen: '{{count}} Ø£Ø¹ÙØ§Ù ØªÙØ±ÙباÙ', 33425 other: '{{count}} Ø¹Ø§Ù ØªÙØ±ÙباÙ' 33426 } 33427 }; 33428 33429 function formatDistance(token, count, options) { 33430 options = options || {}; 33431 var result; 33432 33433 if (typeof formatDistanceLocale[token] === 'string') { 33434 result = formatDistanceLocale[token]; 33435 } else if (count === 1) { 33436 result = formatDistanceLocale[token].one; 33437 } else if (count === 2) { 33438 result = formatDistanceLocale[token].two; 33439 } else if (count <= 10) { 33440 result = formatDistanceLocale[token].threeToTen.replace('{{count}}', count); 33441 } else { 33442 result = formatDistanceLocale[token].other.replace('{{count}}', count); 33443 } 33444 33445 if (options.addSuffix) { 33446 if (options.comparison > 0) { 33447 return 'ÙÙ Ø®ÙØ§Ù ' + result; 33448 } else { 33449 return 'Ù ÙØ° ' + result; 33450 } 33451 } 33452 33453 return result; 33454 } 33455 33456 /***/ 33457 }), 33458 /* 454 */ 33459 /***/ (function (module, __webpack_exports__, __webpack_require__) { 33460 33461 "use strict"; 33462 /* harmony import */ 33463 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 33464 33465 var dateFormats = { 33466 full: 'EEEE, MMMM do, y', 33467 long: 'MMMM do, y', 33468 medium: 'MMM d, y', 33469 short: 'MM/dd/yyyy' 33470 }; 33471 var timeFormats = { 33472 full: 'h:mm:ss a zzzz', 33473 long: 'h:mm:ss a z', 33474 medium: 'h:mm:ss a', 33475 short: 'h:mm a' 33476 }; 33477 var dateTimeFormats = { 33478 full: "{{date}} 'Ø¹ÙØ¯' {{time}}", 33479 long: "{{date}} 'Ø¹ÙØ¯' {{time}}", 33480 medium: '{{date}}, {{time}}', 33481 short: '{{date}}, {{time}}' 33482 }; 33483 var formatLong = { 33484 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 33485 formats: dateFormats, 33486 defaultWidth: 'full' 33487 }), 33488 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 33489 formats: timeFormats, 33490 defaultWidth: 'full' 33491 }), 33492 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 33493 formats: dateTimeFormats, 33494 defaultWidth: 'full' 33495 }) 33496 }; 33497 /* harmony default export */ 33498 __webpack_exports__["a"] = (formatLong); 33499 33500 /***/ 33501 }), 33502 /* 455 */ 33503 /***/ (function (module, __webpack_exports__, __webpack_require__) { 33504 33505 "use strict"; 33506 /* harmony export (immutable) */ 33507 __webpack_exports__["a"] = formatRelative; 33508 var formatRelativeLocale = { 33509 lastWeek: "'أخر' eeee 'Ø¹ÙØ¯' p", 33510 yesterday: "'أ٠س Ø¹ÙØ¯' p", 33511 today: "'اÙÙÙÙ Ø¹ÙØ¯' p", 33512 tomorrow: "'ØºØ¯Ø§Ù Ø¹ÙØ¯' p", 33513 nextWeek: "eeee 'Ø¹ÙØ¯' p", 33514 other: 'P' 33515 }; 33516 33517 function formatRelative(token, _date, _baseDate, _options) { 33518 return formatRelativeLocale[token]; 33519 } 33520 33521 /***/ 33522 }), 33523 /* 456 */ 33524 /***/ (function (module, __webpack_exports__, __webpack_require__) { 33525 33526 "use strict"; 33527 /* harmony import */ 33528 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 33529 33530 var eraValues = { 33531 narrow: ['Ù', 'ب'], 33532 abbreviated: ['Ù.Ù .', 'ب.Ù .'], 33533 wide: ['ÙØ¨Ù اÙÙ ÙÙØ§Ø¯', 'بعد اÙÙ ÙÙØ§Ø¯'] 33534 }; 33535 var quarterValues = { 33536 narrow: ['1', '2', '3', '4'], 33537 abbreviated: ['ر1', 'ر2', 'ر3', 'ر4'], 33538 wide: ['Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ£ÙÙ', 'Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ«Ø§ÙÙ', 'Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ«Ø§ÙØ«', 'Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ±Ø§Ø¨Ø¹'] 33539 }; 33540 var monthValues = { 33541 narrow: ['Ù', 'Ù', 'Ù ', 'Ø£', 'Ù ', 'Ù', 'Ù', 'غ', 'Ø´', 'Ø£', 'Ù', 'د'], 33542 abbreviated: ['ÙÙØ§', 'ÙØ¨Ø±', '٠ارس', 'أبرÙÙ', '٠اÙ', 'ÙÙÙÙ', 'ÙÙÙÙ', 'غشت', 'شتÙÙ', 'Ø£ÙØªÙ', 'ÙÙÙÙ', 'دجÙÙ'], 33543 wide: ['ÙÙØ§Ùر', 'ÙØ¨Ø±Ø§Ùر', '٠ارس', 'أبرÙÙ', '٠اÙ', 'ÙÙÙÙÙ', 'ÙÙÙÙÙØ²', 'غشت', 'Ø´ØªÙØ¨Ø±', 'Ø£ÙØªÙبر', 'ÙÙÙØ¨Ø±', 'Ø¯Ø¬ÙØ¨Ø±'] 33544 }; 33545 var dayValues = { 33546 narrow: ['Ø', 'Ù', 'Ø«', 'ر', 'Ø®', 'ج', 'س'], 33547 short: ['Ø£ØØ¯', 'اثÙÙÙ', 'Ø«ÙØ§Ø«Ø§Ø¡', 'أربعاء', 'Ø®Ù ÙØ³', 'ج٠عة', 'سبت'], 33548 abbreviated: ['Ø£ØØ¯', 'اثÙÙ', 'Ø«ÙØ§', 'أربÙ', 'خ٠ÙÙ', 'ج٠عة', 'سبت'], 33549 wide: ['Ø§ÙØ£ØØ¯', 'Ø§ÙØ¥Ø«ÙÙÙ', 'Ø§ÙØ«Ùاثاء', 'Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡', 'Ø§ÙØ®Ù ÙØ³', 'Ø§ÙØ¬Ù عة', 'Ø§ÙØ³Ø¨Øª'] 33550 }; 33551 var dayPeriodValues = { 33552 narrow: { 33553 am: 'ص', 33554 pm: 'Ù ', 33555 midnight: 'Ù', 33556 noon: 'ظ', 33557 morning: 'ØµØ¨Ø§ØØ§Ù', 33558 afternoon: 'بعد Ø§ÙØ¸Ùر', 33559 evening: '٠ساءاÙ', 33560 night: 'ÙÙÙØ§Ù' 33561 }, 33562 abbreviated: { 33563 am: 'ص', 33564 pm: 'Ù ', 33565 midnight: 'ÙØµÙ اÙÙÙÙ', 33566 noon: 'Ø¸ÙØ±', 33567 morning: 'ØµØ¨Ø§ØØ§Ù', 33568 afternoon: 'بعد Ø§ÙØ¸Ùر', 33569 evening: '٠ساءاÙ', 33570 night: 'ÙÙÙØ§Ù' 33571 }, 33572 wide: { 33573 am: 'ص', 33574 pm: 'Ù ', 33575 midnight: 'ÙØµÙ اÙÙÙÙ', 33576 noon: 'Ø¸ÙØ±', 33577 morning: 'ØµØ¨Ø§ØØ§Ù', 33578 afternoon: 'بعد Ø§ÙØ¸Ùر', 33579 evening: '٠ساءاÙ', 33580 night: 'ÙÙÙØ§Ù' 33581 } 33582 }; 33583 var formattingDayPeriodValues = { 33584 narrow: { 33585 am: 'ص', 33586 pm: 'Ù ', 33587 midnight: 'Ù', 33588 noon: 'ظ', 33589 morning: 'ÙÙ Ø§ÙØµØ¨Ø§Ø', 33590 afternoon: 'بعد Ø§ÙØ¸ÙÙØ±', 33591 evening: 'Ù٠اÙ٠ساء', 33592 night: 'Ù٠اÙÙÙÙ' 33593 }, 33594 abbreviated: { 33595 am: 'ص', 33596 pm: 'Ù ', 33597 midnight: 'ÙØµÙ اÙÙÙÙ', 33598 noon: 'Ø¸ÙØ±', 33599 morning: 'ÙÙ Ø§ÙØµØ¨Ø§Ø', 33600 evening: 'Ù٠اÙ٠ساء', 33601 night: 'Ù٠اÙÙÙÙ' 33602 }, 33603 wide: { 33604 am: 'ص', 33605 pm: 'Ù ', 33606 midnight: 'ÙØµÙ اÙÙÙÙ', 33607 noon: 'Ø¸ÙØ±', 33608 afternoon: 'بعد Ø§ÙØ¸ÙÙØ±', 33609 evening: 'Ù٠اÙ٠ساء', 33610 night: 'Ù٠اÙÙÙÙ' 33611 } 33612 }; 33613 33614 function ordinalNumber(dirtyNumber) { 33615 return String(dirtyNumber); 33616 } 33617 33618 var localize = { 33619 ordinalNumber: ordinalNumber, 33620 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 33621 values: eraValues, 33622 defaultWidth: 'wide' 33623 }), 33624 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 33625 values: quarterValues, 33626 defaultWidth: 'wide', 33627 argumentCallback: function (quarter) { 33628 return Number(quarter) - 1; 33629 } 33630 }), 33631 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 33632 values: monthValues, 33633 defaultWidth: 'wide' 33634 }), 33635 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 33636 values: dayValues, 33637 defaultWidth: 'wide' 33638 }), 33639 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 33640 values: dayPeriodValues, 33641 defaultWidth: 'wide', 33642 formattingValues: formattingDayPeriodValues, 33643 defaultFormattingWidth: 'wide' 33644 }) 33645 }; 33646 /* harmony default export */ 33647 __webpack_exports__["a"] = (localize); 33648 33649 /***/ 33650 }), 33651 /* 457 */ 33652 /***/ (function (module, __webpack_exports__, __webpack_require__) { 33653 33654 "use strict"; 33655 /* harmony import */ 33656 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 33657 /* harmony import */ 33658 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 33659 33660 33661 var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; 33662 var parseOrdinalNumberPattern = /\d+/i; 33663 var matchEraPatterns = { 33664 narrow: /^(Ù|ب)/i, 33665 abbreviated: /^(Ù\.?\s?Ù \.?|Ù\.?\s?Ù \.?\s?|a\.?\s?d\.?|c\.?\s?)/i, 33666 wide: /^(ÙØ¨Ù اÙÙ ÙÙØ§Ø¯|ÙØ¨Ù اÙÙ ÙÙØ§Ø¯|بعد اÙÙ ÙÙØ§Ø¯|بعد اÙÙ ÙÙØ§Ø¯)/i 33667 }; 33668 var parseEraPatterns = { 33669 any: [/^ÙØ¨Ù/i, /^بعد/i] 33670 }; 33671 var matchQuarterPatterns = { 33672 narrow: /^[1234]/i, 33673 abbreviated: /^ر[1234]/i, 33674 wide: /^Ø§ÙØ±Ø¨Ø¹ [1234]/i 33675 }; 33676 var parseQuarterPatterns = { 33677 any: [/1/i, /2/i, /3/i, /4/i] 33678 }; 33679 var matchMonthPatterns = { 33680 narrow: /^[ÙÙÙ Ø£Ù Ø³ÙØ¯]/i, 33681 abbreviated: /^(ÙÙ|Ù|٠ار|أب|٠اÙ|ÙÙÙ|ÙÙÙ|غش|شت|Ø£Ù|Ù|د)/i, 33682 wide: /^(ÙÙ|Ù|٠ار|أب|٠اÙ|ÙÙÙ|ÙÙÙ|غش|شت|Ø£Ù|Ù|د)/i 33683 }; 33684 var parseMonthPatterns = { 33685 narrow: [/^Ù/i, /^Ù/i, /^Ù /i, /^Ø£/i, /^Ù /i, /^Ù/i, /^Ù/i, /^غ/i, /^Ø´/i, /^Ø£/i, /^Ù/i, /^د/i], 33686 any: [/^ÙÙ/i, /^ÙØ¨/i, /^٠ار/i, /^أب/i, /^٠اÙ/i, /^ÙÙÙ/i, /^ÙÙÙ/i, /^غشت/i, /^Ø´/i, /^Ø£Ù/i, /^Ù/i, /^د/i] 33687 }; 33688 var matchDayPatterns = { 33689 narrow: /^[ØÙثرخجس]/i, 33690 short: /^(Ø£ØØ¯|إثÙÙÙ|Ø«ÙØ§Ø«Ø§Ø¡|أربعاء|Ø®Ù ÙØ³|ج٠عة|سبت)/i, 33691 abbreviated: /^(Ø£ØØ¯|إثÙ|Ø«ÙØ§|أرب|خ٠Ù|ج٠عة|سبت)/i, 33692 wide: /^(Ø§ÙØ£ØØ¯|Ø§ÙØ¥Ø«ÙÙÙ|Ø§ÙØ«Ùاثاء|Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡|Ø§ÙØ®Ù ÙØ³|Ø§ÙØ¬Ù عة|Ø§ÙØ³Ø¨Øª)/i 33693 }; 33694 var parseDayPatterns = { 33695 narrow: [/^Ø/i, /^Ù/i, /^Ø«/i, /^ر/i, /^Ø®/i, /^ج/i, /^س/i], 33696 wide: [/^Ø§ÙØ£ØØ¯/i, /^Ø§ÙØ¥Ø«ÙÙÙ/i, /^Ø§ÙØ«Ùاثاء/i, /^Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡/i, /^Ø§ÙØ®Ù ÙØ³/i, /^Ø§ÙØ¬Ù عة/i, /^Ø§ÙØ³Ø¨Øª/i], 33697 any: [/^Ø£Ø/i, /^إث/i, /^Ø«/i, /^أر/i, /^Ø®/i, /^ج/i, /^س/i] 33698 }; 33699 var matchDayPeriodPatterns = { 33700 narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, 33701 any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i 33702 }; 33703 var parseDayPeriodPatterns = { 33704 any: { 33705 am: /^a/i, 33706 pm: /^p/i, 33707 midnight: /^mi/i, 33708 noon: /^no/i, 33709 morning: /morning/i, 33710 afternoon: /afternoon/i, 33711 evening: /evening/i, 33712 night: /night/i 33713 } 33714 }; 33715 var match = { 33716 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 33717 matchPattern: matchOrdinalNumberPattern, 33718 parsePattern: parseOrdinalNumberPattern, 33719 valueCallback: function (value) { 33720 return parseInt(value, 10); 33721 } 33722 }), 33723 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 33724 matchPatterns: matchEraPatterns, 33725 defaultMatchWidth: 'wide', 33726 parsePatterns: parseEraPatterns, 33727 defaultParseWidth: 'any' 33728 }), 33729 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 33730 matchPatterns: matchQuarterPatterns, 33731 defaultMatchWidth: 'wide', 33732 parsePatterns: parseQuarterPatterns, 33733 defaultParseWidth: 'any', 33734 valueCallback: function (index) { 33735 return index + 1; 33736 } 33737 }), 33738 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 33739 matchPatterns: matchMonthPatterns, 33740 defaultMatchWidth: 'wide', 33741 parsePatterns: parseMonthPatterns, 33742 defaultParseWidth: 'any' 33743 }), 33744 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 33745 matchPatterns: matchDayPatterns, 33746 defaultMatchWidth: 'wide', 33747 parsePatterns: parseDayPatterns, 33748 defaultParseWidth: 'any' 33749 }), 33750 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 33751 matchPatterns: matchDayPeriodPatterns, 33752 defaultMatchWidth: 'any', 33753 parsePatterns: parseDayPeriodPatterns, 33754 defaultParseWidth: 'any' 33755 }) 33756 }; 33757 /* harmony default export */ 33758 __webpack_exports__["a"] = (match); 33759 33760 /***/ 33761 }), 33762 /* 458 */ 33763 /***/ (function (module, __webpack_exports__, __webpack_require__) { 33764 33765 "use strict"; 33766 /* harmony import */ 33767 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(459); 33768 /* harmony import */ 33769 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(460); 33770 /* harmony import */ 33771 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(461); 33772 /* harmony import */ 33773 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(462); 33774 /* harmony import */ 33775 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(463); 33776 33777 33778 /** 33779 * @type {Locale} 33780 * @category Locales 33781 * @summary Arabic locale (Sauid Arabic). 33782 * @language Arabic 33783 * @iso-639-2 ara 33784 * @author Dhaifallah Alwadani [@dalwadani]{@link https://github.com/dalwadani} 33785 */ 33786 33787 var locale = { 33788 code: 'ar-SA', 33789 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 33790 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 33791 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 33792 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 33793 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 33794 options: { 33795 weekStartsOn: 0 33796 /* Sunday */ 33797 , 33798 firstWeekContainsDate: 1 33799 } 33800 }; 33801 /* harmony default export */ 33802 __webpack_exports__["a"] = (locale); 33803 33804 /***/ 33805 }), 33806 /* 459 */ 33807 /***/ (function (module, __webpack_exports__, __webpack_require__) { 33808 33809 "use strict"; 33810 /* harmony export (immutable) */ 33811 __webpack_exports__["a"] = formatDistance; 33812 var formatDistanceLocale = { 33813 lessThanXSeconds: { 33814 one: 'Ø£Ù٠٠٠ثاÙÙØ© ÙØ§ØØ¯Ø©', 33815 two: 'Ø£ÙÙ Ù Ù Ø«Ø§ÙØªÙÙ', 33816 threeToTen: 'Ø£ÙÙ Ù Ù {{count}} Ø«ÙØ§ÙÙ', 33817 other: 'Ø£ÙÙ Ù Ù {{count}} ثاÙÙØ©' 33818 }, 33819 xSeconds: { 33820 one: 'ثاÙÙØ© ÙØ§ØØ¯Ø©', 33821 two: 'Ø«Ø§ÙØªÙÙ', 33822 threeToTen: '{{count}} Ø«ÙØ§ÙÙ', 33823 other: '{{count}} ثاÙÙØ©' 33824 }, 33825 halfAMinute: 'ÙØµÙ دÙÙÙØ©', 33826 lessThanXMinutes: { 33827 one: 'Ø£Ù٠٠٠دÙÙÙØ©', 33828 two: 'Ø£Ù٠٠٠دÙÙÙØªÙÙ', 33829 threeToTen: 'Ø£ÙÙ Ù Ù {{count}} Ø¯ÙØ§Ø¦Ù', 33830 other: 'Ø£ÙÙ Ù Ù {{count}} دÙÙÙØ©' 33831 }, 33832 xMinutes: { 33833 one: 'دÙÙÙØ© ÙØ§ØØ¯Ø©', 33834 two: 'دÙÙÙØªÙÙ', 33835 threeToTen: '{{count}} Ø¯ÙØ§Ø¦Ù', 33836 other: '{{count}} دÙÙÙØ©' 33837 }, 33838 aboutXHours: { 33839 one: 'ساعة ÙØ§ØØ¯Ø© ØªÙØ±ÙباÙ', 33840 two: 'ساعتÙÙ ØªÙØ±ÙباÙ', 33841 threeToTen: '{{count}} ساعات ØªÙØ±ÙباÙ', 33842 other: '{{count}} ساعة ØªÙØ±ÙباÙ' 33843 }, 33844 xHours: { 33845 one: 'ساعة ÙØ§ØØ¯Ø©', 33846 two: 'ساعتÙÙ', 33847 threeToTen: '{{count}} ساعات', 33848 other: '{{count}} ساعة' 33849 }, 33850 xDays: { 33851 one: 'ÙÙÙ ÙØ§ØØ¯', 33852 two: 'ÙÙÙ ÙÙ', 33853 threeToTen: '{{count}} Ø£ÙØ§Ù ', 33854 other: '{{count}} ÙÙÙ ' 33855 }, 33856 aboutXWeeks: { 33857 one: 'Ø£Ø³Ø¨ÙØ¹ ÙØ§ØØ¯ ØªÙØ±ÙباÙ', 33858 two: 'Ø£Ø³Ø¨ÙØ¹ÙÙ ØªÙØ±ÙباÙ', 33859 threeToTen: '{{count}} Ø£Ø³Ø§Ø¨ÙØ¹ ØªÙØ±ÙباÙ', 33860 other: '{{count}} Ø£Ø³Ø¨ÙØ¹ ØªÙØ±ÙباÙ' 33861 }, 33862 xWeeks: { 33863 one: 'Ø£Ø³Ø¨ÙØ¹ ÙØ§ØØ¯', 33864 two: 'Ø£Ø³Ø¨ÙØ¹ÙÙ', 33865 threeToTen: '{{count}} Ø£Ø³Ø§Ø¨ÙØ¹', 33866 other: '{{count}} Ø£Ø³Ø¨ÙØ¹' 33867 }, 33868 aboutXMonths: { 33869 one: 'Ø´ÙØ± ÙØ§ØØ¯ ØªÙØ±ÙباÙ', 33870 two: 'Ø´ÙØ±ÙÙ ØªÙØ±ÙباÙ', 33871 threeToTen: '{{count}} Ø£Ø´ÙØ± ØªÙØ±ÙباÙ', 33872 other: '{{count}} Ø´ÙØ± ØªÙØ±ÙباÙ' 33873 }, 33874 xMonths: { 33875 one: 'Ø´ÙØ± ÙØ§ØØ¯', 33876 two: 'Ø´ÙØ±ÙÙ', 33877 threeToTen: '{{count}} Ø£Ø´ÙØ±', 33878 other: '{{count}} Ø´ÙØ±' 33879 }, 33880 aboutXYears: { 33881 one: 'Ø¹Ø§Ù ÙØ§ØØ¯ ØªÙØ±ÙباÙ', 33882 two: 'عا٠ÙÙ ØªÙØ±ÙباÙ', 33883 threeToTen: '{{count}} Ø£Ø¹ÙØ§Ù ØªÙØ±ÙباÙ', 33884 other: '{{count}} Ø¹Ø§Ù ØªÙØ±ÙباÙ' 33885 }, 33886 xYears: { 33887 one: 'Ø¹Ø§Ù ÙØ§ØØ¯', 33888 two: 'عا٠ÙÙ', 33889 threeToTen: '{{count}} Ø£Ø¹ÙØ§Ù ', 33890 other: '{{count}} عا٠' 33891 }, 33892 overXYears: { 33893 one: 'Ø£ÙØ«Ø± ٠٠عا٠', 33894 two: 'Ø£ÙØ«Ø± ٠٠عا٠ÙÙ', 33895 threeToTen: 'Ø£ÙØ«Ø± Ù Ù {{count}} Ø£Ø¹ÙØ§Ù ', 33896 other: 'Ø£ÙØ«Ø± Ù Ù {{count}} عا٠' 33897 }, 33898 almostXYears: { 33899 one: 'Ø¹Ø§Ù ÙØ§ØØ¯ ØªÙØ±ÙباÙ', 33900 two: 'عا٠ÙÙ ØªÙØ±ÙباÙ', 33901 threeToTen: '{{count}} Ø£Ø¹ÙØ§Ù ØªÙØ±ÙباÙ', 33902 other: '{{count}} Ø¹Ø§Ù ØªÙØ±ÙباÙ' 33903 } 33904 }; 33905 33906 function formatDistance(token, count, options) { 33907 options = options || {}; 33908 var result; 33909 33910 if (typeof formatDistanceLocale[token] === 'string') { 33911 result = formatDistanceLocale[token]; 33912 } else if (count === 1) { 33913 result = formatDistanceLocale[token].one; 33914 } else if (count === 2) { 33915 result = formatDistanceLocale[token].two; 33916 } else if (count <= 10) { 33917 result = formatDistanceLocale[token].threeToTen.replace('{{count}}', count); 33918 } else { 33919 result = formatDistanceLocale[token].other.replace('{{count}}', count); 33920 } 33921 33922 if (options.addSuffix) { 33923 if (options.comparison > 0) { 33924 return 'ÙÙ Ø®ÙØ§Ù ' + result; 33925 } else { 33926 return 'Ù ÙØ° ' + result; 33927 } 33928 } 33929 33930 return result; 33931 } 33932 33933 /***/ 33934 }), 33935 /* 460 */ 33936 /***/ (function (module, __webpack_exports__, __webpack_require__) { 33937 33938 "use strict"; 33939 /* harmony import */ 33940 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 33941 33942 var dateFormats = { 33943 full: 'EEEE, MMMM do, y', 33944 long: 'MMMM do, y', 33945 medium: 'MMM d, y', 33946 short: 'MM/dd/yyyy' 33947 }; 33948 var timeFormats = { 33949 full: 'h:mm:ss a zzzz', 33950 long: 'h:mm:ss a z', 33951 medium: 'h:mm:ss a', 33952 short: 'h:mm a' 33953 }; 33954 var dateTimeFormats = { 33955 full: "{{date}} 'Ø¹ÙØ¯' {{time}}", 33956 long: "{{date}} 'Ø¹ÙØ¯' {{time}}", 33957 medium: '{{date}}, {{time}}', 33958 short: '{{date}}, {{time}}' 33959 }; 33960 var formatLong = { 33961 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 33962 formats: dateFormats, 33963 defaultWidth: 'full' 33964 }), 33965 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 33966 formats: timeFormats, 33967 defaultWidth: 'full' 33968 }), 33969 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 33970 formats: dateTimeFormats, 33971 defaultWidth: 'full' 33972 }) 33973 }; 33974 /* harmony default export */ 33975 __webpack_exports__["a"] = (formatLong); 33976 33977 /***/ 33978 }), 33979 /* 461 */ 33980 /***/ (function (module, __webpack_exports__, __webpack_require__) { 33981 33982 "use strict"; 33983 /* harmony export (immutable) */ 33984 __webpack_exports__["a"] = formatRelative; 33985 var formatRelativeLocale = { 33986 lastWeek: "'أخر' eeee 'Ø¹ÙØ¯' p", 33987 yesterday: "'أ٠س Ø¹ÙØ¯' p", 33988 today: "'اÙÙÙÙ Ø¹ÙØ¯' p", 33989 tomorrow: "'ØºØ¯Ø§Ù Ø¹ÙØ¯' p", 33990 nextWeek: "eeee 'Ø¹ÙØ¯' p", 33991 other: 'P' 33992 }; 33993 33994 function formatRelative(token, _date, _baseDate, _options) { 33995 return formatRelativeLocale[token]; 33996 } 33997 33998 /***/ 33999 }), 34000 /* 462 */ 34001 /***/ (function (module, __webpack_exports__, __webpack_require__) { 34002 34003 "use strict"; 34004 /* harmony import */ 34005 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 34006 34007 var eraValues = { 34008 narrow: ['Ù', 'ب'], 34009 abbreviated: ['Ù.Ù .', 'ب.Ù .'], 34010 wide: ['ÙØ¨Ù اÙÙ ÙÙØ§Ø¯', 'بعد اÙÙ ÙÙØ§Ø¯'] 34011 }; 34012 var quarterValues = { 34013 narrow: ['1', '2', '3', '4'], 34014 abbreviated: ['ر1', 'ر2', 'ر3', 'ر4'], 34015 wide: ['Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ£ÙÙ', 'Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ«Ø§ÙÙ', 'Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ«Ø§ÙØ«', 'Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ±Ø§Ø¨Ø¹'] 34016 }; 34017 var monthValues = { 34018 narrow: ['Ù', 'Ù', 'Ù ', 'Ø£', 'Ù ', 'Ù', 'Ù', 'Ø£', 'س', 'Ø£', 'Ù', 'د'], 34019 abbreviated: ['ÙÙØ§', 'ÙØ¨Ø±', '٠ارس', 'أبرÙÙ', '٠اÙÙ', 'ÙÙÙÙ', 'ÙÙÙÙ', 'أغسÙ', 'سبتÙ', 'Ø£ÙØªÙ', 'ÙÙÙÙ', 'Ø¯ÙØ³Ù'], 34020 wide: ['ÙÙØ§Ùر', 'ÙØ¨Ø±Ø§Ùر', '٠ارس', 'أبرÙÙ', '٠اÙÙ', 'ÙÙÙÙÙ', 'ÙÙÙÙÙ', 'أغسطس', 'سبت٠بر', 'Ø£ÙØªÙبر', 'ÙÙÙ٠بر', 'Ø¯ÙØ³Ù بر'] 34021 }; 34022 var dayValues = { 34023 narrow: ['Ø', 'Ù', 'Ø«', 'ر', 'Ø®', 'ج', 'س'], 34024 short: ['Ø£ØØ¯', 'اثÙÙÙ', 'Ø«ÙØ§Ø«Ø§Ø¡', 'أربعاء', 'Ø®Ù ÙØ³', 'ج٠عة', 'سبت'], 34025 abbreviated: ['Ø£ØØ¯', 'اثÙÙ', 'Ø«ÙØ§', 'أربÙ', 'خ٠ÙÙ', 'ج٠عة', 'سبت'], 34026 wide: ['Ø§ÙØ£ØØ¯', 'Ø§ÙØ§Ø«ÙÙÙ', 'Ø§ÙØ«Ùاثاء', 'Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡', 'Ø§ÙØ®Ù ÙØ³', 'Ø§ÙØ¬Ù عة', 'Ø§ÙØ³Ø¨Øª'] 34027 }; 34028 var dayPeriodValues = { 34029 narrow: { 34030 am: 'ص', 34031 pm: 'Ù ', 34032 midnight: 'Ù', 34033 noon: 'ظ', 34034 morning: 'ØµØ¨Ø§ØØ§Ù', 34035 afternoon: 'بعد Ø§ÙØ¸Ùر', 34036 evening: '٠ساءاÙ', 34037 night: 'ÙÙÙØ§Ù' 34038 }, 34039 abbreviated: { 34040 am: 'ص', 34041 pm: 'Ù ', 34042 midnight: 'ÙØµÙ اÙÙÙÙ', 34043 noon: 'Ø¸ÙØ±', 34044 morning: 'ØµØ¨Ø§ØØ§Ù', 34045 afternoon: 'بعد Ø§ÙØ¸Ùر', 34046 evening: '٠ساءاÙ', 34047 night: 'ÙÙÙØ§Ù' 34048 }, 34049 wide: { 34050 am: 'ص', 34051 pm: 'Ù ', 34052 midnight: 'ÙØµÙ اÙÙÙÙ', 34053 noon: 'Ø¸ÙØ±', 34054 morning: 'ØµØ¨Ø§ØØ§Ù', 34055 afternoon: 'بعد Ø§ÙØ¸Ùر', 34056 evening: '٠ساءاÙ', 34057 night: 'ÙÙÙØ§Ù' 34058 } 34059 }; 34060 var formattingDayPeriodValues = { 34061 narrow: { 34062 am: 'ص', 34063 pm: 'Ù ', 34064 midnight: 'Ù', 34065 noon: 'ظ', 34066 morning: 'ÙÙ Ø§ÙØµØ¨Ø§Ø', 34067 afternoon: 'بعد Ø§ÙØ¸ÙÙØ±', 34068 evening: 'Ù٠اÙ٠ساء', 34069 night: 'Ù٠اÙÙÙÙ' 34070 }, 34071 abbreviated: { 34072 am: 'ص', 34073 pm: 'Ù ', 34074 midnight: 'ÙØµÙ اÙÙÙÙ', 34075 noon: 'Ø¸ÙØ±', 34076 morning: 'ÙÙ Ø§ÙØµØ¨Ø§Ø', 34077 evening: 'Ù٠اÙ٠ساء', 34078 night: 'Ù٠اÙÙÙÙ' 34079 }, 34080 wide: { 34081 am: 'ص', 34082 pm: 'Ù ', 34083 midnight: 'ÙØµÙ اÙÙÙÙ', 34084 noon: 'Ø¸ÙØ±', 34085 afternoon: 'بعد Ø§ÙØ¸ÙÙØ±', 34086 evening: 'Ù٠اÙ٠ساء', 34087 night: 'Ù٠اÙÙÙÙ' 34088 } 34089 }; 34090 34091 function ordinalNumber(dirtyNumber) { 34092 return String(dirtyNumber); 34093 } 34094 34095 var localize = { 34096 ordinalNumber: ordinalNumber, 34097 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 34098 values: eraValues, 34099 defaultWidth: 'wide' 34100 }), 34101 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 34102 values: quarterValues, 34103 defaultWidth: 'wide', 34104 argumentCallback: function (quarter) { 34105 return Number(quarter) - 1; 34106 } 34107 }), 34108 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 34109 values: monthValues, 34110 defaultWidth: 'wide' 34111 }), 34112 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 34113 values: dayValues, 34114 defaultWidth: 'wide' 34115 }), 34116 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 34117 values: dayPeriodValues, 34118 defaultWidth: 'wide', 34119 formattingValues: formattingDayPeriodValues, 34120 defaultFormattingWidth: 'wide' 34121 }) 34122 }; 34123 /* harmony default export */ 34124 __webpack_exports__["a"] = (localize); 34125 34126 /***/ 34127 }), 34128 /* 463 */ 34129 /***/ (function (module, __webpack_exports__, __webpack_require__) { 34130 34131 "use strict"; 34132 /* harmony import */ 34133 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 34134 /* harmony import */ 34135 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 34136 34137 34138 var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; 34139 var parseOrdinalNumberPattern = /\d+/i; 34140 var matchEraPatterns = { 34141 narrow: /^(Ù|ب)/i, 34142 abbreviated: /^(Ù\.?\s?Ù \.?|Ù\.?\s?Ù \.?\s?|a\.?\s?d\.?|c\.?\s?)/i, 34143 wide: /^(ÙØ¨Ù اÙÙ ÙÙØ§Ø¯|ÙØ¨Ù اÙÙ ÙÙØ§Ø¯|بعد اÙÙ ÙÙØ§Ø¯|بعد اÙÙ ÙÙØ§Ø¯)/i 34144 }; 34145 var parseEraPatterns = { 34146 any: [/^ÙØ¨Ù/i, /^بعد/i] 34147 }; 34148 var matchQuarterPatterns = { 34149 narrow: /^[1234]/i, 34150 abbreviated: /^ر[1234]/i, 34151 wide: /^Ø§ÙØ±Ø¨Ø¹ [1234]/i 34152 }; 34153 var parseQuarterPatterns = { 34154 any: [/1/i, /2/i, /3/i, /4/i] 34155 }; 34156 var matchMonthPatterns = { 34157 narrow: /^[ÙÙÙ Ø£Ù Ø³ÙØ¯]/i, 34158 abbreviated: /^(ÙÙ|Ù|٠ار|أب|٠اÙ|ÙÙÙ|ÙÙÙ|أغ|س|Ø£Ù|Ù|د)/i, 34159 wide: /^(ÙÙ|Ù|٠ار|أب|٠اÙ|ÙÙÙ|ÙÙÙ|أغ|س|Ø£Ù|Ù|د)/i 34160 }; 34161 var parseMonthPatterns = { 34162 narrow: [/^Ù/i, /^Ù/i, /^Ù /i, /^Ø£/i, /^Ù /i, /^Ù/i, /^Ù/i, /^Ø£/i, /^س/i, /^Ø£/i, /^Ù/i, /^د/i], 34163 any: [/^ÙÙ/i, /^Ù/i, /^٠ار/i, /^أب/i, /^٠اÙ/i, /^ÙÙÙ/i, /^ÙÙÙ/i, /^أغ/i, /^س/i, /^Ø£Ù/i, /^Ù/i, /^د/i] 34164 }; 34165 var matchDayPatterns = { 34166 narrow: /^[ØÙثرخجس]/i, 34167 short: /^(Ø£ØØ¯|اثÙÙÙ|Ø«ÙØ§Ø«Ø§Ø¡|أربعاء|Ø®Ù ÙØ³|ج٠عة|سبت)/i, 34168 abbreviated: /^(Ø£ØØ¯|اثÙ|Ø«ÙØ§|أرب|خ٠Ù|ج٠عة|سبت)/i, 34169 wide: /^(Ø§ÙØ£ØØ¯|Ø§ÙØ§Ø«ÙÙÙ|Ø§ÙØ«Ùاثاء|Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡|Ø§ÙØ®Ù ÙØ³|Ø§ÙØ¬Ù عة|Ø§ÙØ³Ø¨Øª)/i 34170 }; 34171 var parseDayPatterns = { 34172 narrow: [/^Ø/i, /^Ù/i, /^Ø«/i, /^ر/i, /^Ø®/i, /^ج/i, /^س/i], 34173 wide: [/^Ø§ÙØ£ØØ¯/i, /^Ø§ÙØ§Ø«ÙÙÙ/i, /^Ø§ÙØ«Ùاثاء/i, /^Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡/i, /^Ø§ÙØ®Ù ÙØ³/i, /^Ø§ÙØ¬Ù عة/i, /^Ø§ÙØ³Ø¨Øª/i], 34174 any: [/^Ø£Ø/i, /^اث/i, /^Ø«/i, /^أر/i, /^Ø®/i, /^ج/i, /^س/i] 34175 }; 34176 var matchDayPeriodPatterns = { 34177 narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, 34178 any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i 34179 }; 34180 var parseDayPeriodPatterns = { 34181 any: { 34182 am: /^a/i, 34183 pm: /^p/i, 34184 midnight: /^mi/i, 34185 noon: /^no/i, 34186 morning: /morning/i, 34187 afternoon: /afternoon/i, 34188 evening: /evening/i, 34189 night: /night/i 34190 } 34191 }; 34192 var match = { 34193 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 34194 matchPattern: matchOrdinalNumberPattern, 34195 parsePattern: parseOrdinalNumberPattern, 34196 valueCallback: function (value) { 34197 return parseInt(value, 10); 34198 } 34199 }), 34200 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 34201 matchPatterns: matchEraPatterns, 34202 defaultMatchWidth: 'wide', 34203 parsePatterns: parseEraPatterns, 34204 defaultParseWidth: 'any' 34205 }), 34206 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 34207 matchPatterns: matchQuarterPatterns, 34208 defaultMatchWidth: 'wide', 34209 parsePatterns: parseQuarterPatterns, 34210 defaultParseWidth: 'any', 34211 valueCallback: function (index) { 34212 return index + 1; 34213 } 34214 }), 34215 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 34216 matchPatterns: matchMonthPatterns, 34217 defaultMatchWidth: 'wide', 34218 parsePatterns: parseMonthPatterns, 34219 defaultParseWidth: 'any' 34220 }), 34221 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 34222 matchPatterns: matchDayPatterns, 34223 defaultMatchWidth: 'wide', 34224 parsePatterns: parseDayPatterns, 34225 defaultParseWidth: 'any' 34226 }), 34227 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 34228 matchPatterns: matchDayPeriodPatterns, 34229 defaultMatchWidth: 'any', 34230 parsePatterns: parseDayPeriodPatterns, 34231 defaultParseWidth: 'any' 34232 }) 34233 }; 34234 /* harmony default export */ 34235 __webpack_exports__["a"] = (match); 34236 34237 /***/ 34238 }), 34239 /* 464 */ 34240 /***/ (function (module, __webpack_exports__, __webpack_require__) { 34241 34242 "use strict"; 34243 /* harmony import */ 34244 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(465); 34245 /* harmony import */ 34246 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(466); 34247 /* harmony import */ 34248 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(467); 34249 /* harmony import */ 34250 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(468); 34251 /* harmony import */ 34252 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(469); 34253 34254 34255 /** 34256 * @type {Locale} 34257 * @category Locales 34258 * @summary Azerbaijani locale. 34259 * @language Azerbaijani 34260 * @iso-639-2 aze 34261 */ 34262 34263 var locale = { 34264 code: 'az', 34265 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 34266 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 34267 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 34268 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 34269 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 34270 options: { 34271 weekStartsOn: 1, 34272 firstWeekContainsDate: 1 34273 } 34274 }; 34275 /* harmony default export */ 34276 __webpack_exports__["a"] = (locale); 34277 34278 /***/ 34279 }), 34280 /* 465 */ 34281 /***/ (function (module, __webpack_exports__, __webpack_require__) { 34282 34283 "use strict"; 34284 /* harmony export (immutable) */ 34285 __webpack_exports__["a"] = formatDistance; 34286 var formatDistanceLocale = { 34287 lessThanXSeconds: { 34288 one: 'bir saniyÉdÉn az', 34289 other: '{{count}} bir saniyÉdÉn az' 34290 }, 34291 xSeconds: { 34292 one: '1 saniyÉ', 34293 other: '{{count}} saniyÉ' 34294 }, 34295 halfAMinute: 'yarım dÉqiqÉ', 34296 lessThanXMinutes: { 34297 one: 'bir dÉqiqÉdÉn az', 34298 other: '{{count}} bir dÉqiqÉdÉn az' 34299 }, 34300 xMinutes: { 34301 one: 'bir dÉqiqÉ', 34302 other: '{{count}} dÉqiqÉ' 34303 }, 34304 aboutXHours: { 34305 one: 'tÉxminÉn 1 saat', 34306 other: 'tÉxminÉn {{count}} saat' 34307 }, 34308 xHours: { 34309 one: '1 saat', 34310 other: '{{count}} saat' 34311 }, 34312 xDays: { 34313 one: '1 gün', 34314 other: '{{count}} gün' 34315 }, 34316 aboutXWeeks: { 34317 one: 'tÉxminÉn 1 hÉftÉ', 34318 other: 'tÉxminÉn {{count}} hÉftÉ' 34319 }, 34320 xWeeks: { 34321 one: '1 hÉftÉ', 34322 other: '{{count}} hÉftÉ' 34323 }, 34324 aboutXMonths: { 34325 one: 'tÉxminÉn 1 ay', 34326 other: 'tÉxminÉn {{count}} ay' 34327 }, 34328 xMonths: { 34329 one: '1 ay', 34330 other: '{{count}} ay' 34331 }, 34332 aboutXYears: { 34333 one: 'tÉxminÉn 1 il', 34334 other: 'tÉxminÉn {{count}} il' 34335 }, 34336 xYears: { 34337 one: '1 il', 34338 other: '{{count}} il' 34339 }, 34340 overXYears: { 34341 one: '1 ildÉn çox', 34342 other: '{{count}} ildÉn çox' 34343 }, 34344 almostXYears: { 34345 one: 'demÉk olar ki 1 il', 34346 other: 'demÉk olar ki {{count}} il' 34347 } 34348 }; 34349 34350 function formatDistance(token, count, options) { 34351 options = options || {}; 34352 var result; 34353 34354 if (typeof formatDistanceLocale[token] === 'string') { 34355 result = formatDistanceLocale[token]; 34356 } else if (count === 1) { 34357 result = formatDistanceLocale[token].one; 34358 } else { 34359 result = formatDistanceLocale[token].other.replace('{{count}}', count); 34360 } 34361 34362 if (options.addSuffix) { 34363 if (options.comparison > 0) { 34364 return result + ' ÉvvÉl'; 34365 } else { 34366 return result + ' sonra'; 34367 } 34368 } 34369 34370 return result; 34371 } 34372 34373 /***/ 34374 }), 34375 /* 466 */ 34376 /***/ (function (module, __webpack_exports__, __webpack_require__) { 34377 34378 "use strict"; 34379 /* harmony import */ 34380 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 34381 34382 var dateFormats = { 34383 full: "EEEE, do MMMM y 'il'", 34384 long: "do MMMM y 'il'", 34385 medium: "d MMM y 'il'", 34386 short: 'dd.MM.yyyy' 34387 }; 34388 var timeFormats = { 34389 full: 'H:mm:ss zzzz', 34390 long: 'H:mm:ss z', 34391 medium: 'H:mm:ss', 34392 short: 'H:mm' 34393 }; 34394 var dateTimeFormats = { 34395 full: "{{date}} {{time}} - 'dÉ'", 34396 long: "{{date}} {{time}} - 'dÉ'", 34397 medium: '{{date}}, {{time}}', 34398 short: '{{date}}, {{time}}' 34399 }; 34400 var formatLong = { 34401 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 34402 formats: dateFormats, 34403 defaultWidth: 'full' 34404 }), 34405 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 34406 formats: timeFormats, 34407 defaultWidth: 'full' 34408 }), 34409 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 34410 formats: dateTimeFormats, 34411 defaultWidth: 'full' 34412 }) 34413 }; 34414 /* harmony default export */ 34415 __webpack_exports__["a"] = (formatLong); 34416 34417 /***/ 34418 }), 34419 /* 467 */ 34420 /***/ (function (module, __webpack_exports__, __webpack_require__) { 34421 34422 "use strict"; 34423 /* harmony export (immutable) */ 34424 __webpack_exports__["a"] = formatRelative; 34425 var formatRelativeLocale = { 34426 lastWeek: "'sonuncu' eeee p -'dÉ'", 34427 yesterday: "'dünÉn' p -'dÉ'", 34428 today: "'bugün' p -'dÉ'", 34429 tomorrow: "'sabah' p -'dÉ'", 34430 nextWeek: "eeee p -'dÉ'", 34431 other: 'P' 34432 }; 34433 34434 function formatRelative(token, _date, _baseDate, _options) { 34435 return formatRelativeLocale[token]; 34436 } 34437 34438 /***/ 34439 }), 34440 /* 468 */ 34441 /***/ (function (module, __webpack_exports__, __webpack_require__) { 34442 34443 "use strict"; 34444 /* harmony import */ 34445 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 34446 34447 var eraValues = { 34448 narrow: ['B', 'A'], 34449 abbreviated: ['BC', 'AD'], 34450 wide: ["Hz. İsa'dan öncÉ", 'Anno Domini'] 34451 }; 34452 var quarterValues = { 34453 narrow: ['1', '2', '3', '4'], 34454 abbreviated: ['K1', 'K2', 'K3', 'K4'], 34455 wide: ['1ci kvartal', '2ci kvartal', '3cü kvartal', '4cü kvartal'] // Note: in English, the names of days of the week and months are capitalized. 34456 // If you are making a new locale based on this one, check if the same is true for the language you're working on. 34457 // Generally, formatted dates should look like they are in the middle of a sentence, 34458 // e.g. in Spanish language the weekdays and months should be in the lowercase. 34459 34460 }; 34461 var monthValues = { 34462 narrow: ['Y', 'F', 'M', 'A', 'M', 'I', 'I', 'A', 'S', 'O', 'N', 'D'], 34463 abbreviated: ['Yan', 'Fev', 'Mar', 'Apr', 'May', 'İyun', 'İyul', 'Avq', 'Sen', 'Okt', 'Noy', 'Dek'], 34464 wide: ['Yanvar', 'Fevral', 'Mart', 'Aprel', 'May', 'İyun', 'İyul', 'Avqust', 'Sentyabr', 'Oktyabr', 'Noyabr', 'Dekabr'] 34465 }; 34466 var dayValues = { 34467 narrow: ['B.', 'B.e', 'Ã.a', 'Ã.', 'C.a', 'C.', 'Å.'], 34468 short: ['B.', 'B.e', 'Ã.a', 'Ã.', 'C.a', 'C.', 'Å.'], 34469 abbreviated: ['Baz', 'Baz.e', 'ÃÉr.a', 'ÃÉr', 'Cüm.a', 'Cüm', 'ÅÉ'], 34470 wide: ['Bazar', 'Bazar ertÉsi', 'ÃÉrÅÉnbÉ axÅamı', 'ÃÉrÅÉnbÉ', 'CümÉ axÅamı', 'CümÉ', 'ÅÉnbÉ'] 34471 }; 34472 var dayPeriodValues = { 34473 narrow: { 34474 am: 'am', 34475 pm: 'pm', 34476 midnight: 'gecÉyarı', 34477 noon: 'gün', 34478 morning: 'sÉhÉr', 34479 afternoon: 'gündüz', 34480 evening: 'axÅam', 34481 night: 'gecÉ' 34482 }, 34483 abbreviated: { 34484 am: 'AM', 34485 pm: 'PM', 34486 midnight: 'gecÉyarı', 34487 noon: 'gün', 34488 morning: 'sÉhÉr', 34489 afternoon: 'gündüz', 34490 evening: 'axÅam', 34491 night: 'gecÉ' 34492 }, 34493 wide: { 34494 am: 'a.m.', 34495 pm: 'p.m.', 34496 midnight: 'gecÉyarı', 34497 noon: 'gün', 34498 morning: 'sÉhÉr', 34499 afternoon: 'gündüz', 34500 evening: 'axÅam', 34501 night: 'gecÉ' 34502 } 34503 }; 34504 var formattingDayPeriodValues = { 34505 narrow: { 34506 am: 'a', 34507 pm: 'p', 34508 midnight: 'gecÉyarı', 34509 noon: 'gün', 34510 morning: 'sÉhÉr', 34511 afternoon: 'gündüz', 34512 evening: 'axÅam', 34513 night: 'gecÉ' 34514 }, 34515 abbreviated: { 34516 am: 'AM', 34517 pm: 'PM', 34518 midnight: 'gecÉyarı', 34519 noon: 'gün', 34520 morning: 'sÉhÉr', 34521 afternoon: 'gündüz', 34522 evening: 'axÅam', 34523 night: 'gecÉ' 34524 }, 34525 wide: { 34526 am: 'a.m.', 34527 pm: 'p.m.', 34528 midnight: 'gecÉyarı', 34529 noon: 'gün', 34530 morning: 'sÉhÉr', 34531 afternoon: 'gündüz', 34532 evening: 'axÅam', 34533 night: 'gecÉ' 34534 } 34535 }; 34536 var suffixes = { 34537 1: '-inci', 34538 5: '-inci', 34539 8: '-inci', 34540 70: '-inci', 34541 80: '-inci', 34542 2: '-nci', 34543 7: '-nci', 34544 20: '-nci', 34545 50: '-nci', 34546 3: '-üncü', 34547 4: '-üncü', 34548 100: '-üncü', 34549 6: '-ncı', 34550 9: '-uncu', 34551 10: '-uncu', 34552 30: '-uncu', 34553 60: '-ıncı', 34554 90: '-ıncı' 34555 }; 34556 34557 function getSuffix(number) { 34558 if (number === 0) { 34559 // special case for zero 34560 return number + '-ıncı'; 34561 } 34562 34563 var a = number % 10, 34564 b = number % 100 - a, 34565 c = number >= 100 ? 100 : null; 34566 return suffixes[a] || suffixes[b] || suffixes[c]; 34567 } 34568 34569 function ordinalNumber(dirtyNumber, _dirtyOptions) { 34570 var number = Number(dirtyNumber); 34571 var suffix = getSuffix(number); 34572 return number + suffix; 34573 } 34574 34575 var localize = { 34576 ordinalNumber: ordinalNumber, 34577 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 34578 values: eraValues, 34579 defaultWidth: 'wide' 34580 }), 34581 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 34582 values: quarterValues, 34583 defaultWidth: 'wide', 34584 argumentCallback: function (quarter) { 34585 return Number(quarter) - 1; 34586 } 34587 }), 34588 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 34589 values: monthValues, 34590 defaultWidth: 'wide' 34591 }), 34592 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 34593 values: dayValues, 34594 defaultWidth: 'wide' 34595 }), 34596 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 34597 values: dayPeriodValues, 34598 defaultWidth: 'wide', 34599 formattingValues: formattingDayPeriodValues, 34600 defaultFormattingWidth: 'wide' 34601 }) 34602 }; 34603 /* harmony default export */ 34604 __webpack_exports__["a"] = (localize); 34605 34606 /***/ 34607 }), 34608 /* 469 */ 34609 /***/ (function (module, __webpack_exports__, __webpack_require__) { 34610 34611 "use strict"; 34612 /* harmony import */ 34613 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 34614 /* harmony import */ 34615 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 34616 34617 34618 var matchOrdinalNumberPattern = /^(\d+)(-?(ci|inci|nci|uncu|üncü|ncı))?/i; 34619 var parseOrdinalNumberPattern = /\d+/i; 34620 var matchEraPatterns = { 34621 narrow: /^(b|a)$/i, 34622 abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)$/i, 34623 wide: /^(Hz. İsa'dan öncÉ|ümumi eradan ÉvvÉl|anno domini|ümumi dövr)$/i 34624 }; 34625 var parseEraPatterns = { 34626 any: [/^b$/i, /^(a|c)$/i] 34627 }; 34628 var matchQuarterPatterns = { 34629 narrow: /^[1234]$/i, 34630 abbreviated: /^K[1234]$/i, 34631 wide: /^[1234](ci)? kvartal$/i 34632 }; 34633 var parseQuarterPatterns = { 34634 any: [/1/i, /2/i, /3/i, /4/i] 34635 }; 34636 var matchMonthPatterns = { 34637 narrow: /^[(?-i)yfmaisond]$/i, 34638 abbreviated: /^(Yan|Fev|Mar|Apr|May|İyun|İyul|Avq|Sen|Okt|Noy|Dek)$/i, 34639 wide: /^(Yanvar|Fevral|Mart|Aprel|May|İyun|İyul|Avgust|Sentyabr|Oktyabr|Noyabr|Dekabr)$/i 34640 }; 34641 var parseMonthPatterns = { 34642 narrow: [/^[(?-i)y]$/i, /^[(?-i)f]$/i, /^[(?-i)m]$/i, /^[(?-i)a]$/i, /^[(?-i)m]$/i, /^[(?-i)i]$/i, /^[(?-i)i]$/i, /^[(?-i)a]$/i, /^[(?-i)s]$/i, /^[(?-i)o]$/i, /^[(?-i)n]$/i, /^[(?-i)d]$/i], 34643 abbreviated: [/^Yan$/i, /^Fev$/i, /^Mar$/i, /^Apr$/i, /^May$/i, /^İyun$/i, /^İyul$/i, /^Avg$/i, /^Sen$/i, /^Okt$/i, /^Noy$/i, /^Dek$/i], 34644 wide: [/^Yanvar$/i, /^Fevral$/i, /^Mart$/i, /^Aprel$/i, /^May$/i, /^İyun$/i, /^İyul$/i, /^Avgust$/i, /^Sentyabr$/i, /^Oktyabr$/i, /^Noyabr$/i, /^Dekabr$/i] 34645 }; 34646 var matchDayPatterns = { 34647 narrow: /^(B\.|B\.e|Ã\.a|Ã\.|C\.a|C\.|Å\.)$/i, 34648 short: /^(B\.|B\.e|Ã\.a|Ã\.|C\.a|C\.|Å\.)$/i, 34649 abbreviated: /^(Baz\.e|ÃÉr|ÃÉr\.a|Cüm|Cüm\.a|ÅÉ)$/i, 34650 wide: /^(Bazar|Bazar ertÉsi|ÃÉrÅÉnbÉ axÅamı|ÃÉrÅÉnbÉ|CümÉ axÅamı|CümÉ|ÅÉnbÉ)$/i 34651 }; 34652 var parseDayPatterns = { 34653 narrow: [/^B\.$/i, /^B\.e$/i, /^Ã\.a$/i, /^Ã\.$/i, /^C\.a$/i, /^C\.$/i, /^Å\.$/i], 34654 abbreviated: [/^Baz\.e$/i, /^ÃÉr$/i, /^ÃÉr\.a$/i, /^Cüm$/i, /^Cüm\.a$/i, /^ÅÉ$/i], 34655 wide: [/^Bazar$/i, /^Bazar ertÉsi$/i, /^ÃÉrÅÉnbÉ axÅamı$/i, /^ÃÉrÅÉnbÉ$/i, /^CümÉ axÅamı$/i, /^CümÉ$/i, /^ÅÉnbÉ$/i], 34656 any: [/^B\.$/i, /^B\.e$/i, /^Ã\.a$/i, /^Ã\.$/i, /^C\.a$/i, /^C\.$/i, /^Å\.$/i] 34657 }; 34658 var matchDayPeriodPatterns = { 34659 narrow: /^(a|p|gecÉyarı|gün|sÉhÉr|gündüz|axÅam|gecÉ)$/i, 34660 any: /^(am|pm|a\.m\.|p\.m\.|AM|PM|gecÉyarı|gün|sÉhÉr|gündüz|axÅam|gecÉ)$/i 34661 }; 34662 var parseDayPeriodPatterns = { 34663 any: { 34664 am: /^a$/i, 34665 pm: /^p$/i, 34666 midnight: /^gecÉyarı$/i, 34667 noon: /^gün$/i, 34668 morning: /sÉhÉr$/i, 34669 afternoon: /gündüz$/i, 34670 evening: /axÅam$/i, 34671 night: /gecÉ$/i 34672 } 34673 }; 34674 var match = { 34675 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 34676 matchPattern: matchOrdinalNumberPattern, 34677 parsePattern: parseOrdinalNumberPattern, 34678 valueCallback: function (value) { 34679 return parseInt(value, 10); 34680 } 34681 }), 34682 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 34683 matchPatterns: matchEraPatterns, 34684 defaultMatchWidth: 'wide', 34685 parsePatterns: parseEraPatterns, 34686 defaultParseWidth: 'any' 34687 }), 34688 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 34689 matchPatterns: matchQuarterPatterns, 34690 defaultMatchWidth: 'wide', 34691 parsePatterns: parseQuarterPatterns, 34692 defaultParseWidth: 'any', 34693 valueCallback: function (index) { 34694 return index + 1; 34695 } 34696 }), 34697 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 34698 matchPatterns: matchMonthPatterns, 34699 defaultMatchWidth: 'wide', 34700 parsePatterns: parseMonthPatterns, 34701 defaultParseWidth: 'any' 34702 }), 34703 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 34704 matchPatterns: matchDayPatterns, 34705 defaultMatchWidth: 'wide', 34706 parsePatterns: parseDayPatterns, 34707 defaultParseWidth: 'any' 34708 }), 34709 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 34710 matchPatterns: matchDayPeriodPatterns, 34711 defaultMatchWidth: 'any', 34712 parsePatterns: parseDayPeriodPatterns, 34713 defaultParseWidth: 'any' 34714 }) 34715 }; 34716 /* harmony default export */ 34717 __webpack_exports__["a"] = (match); 34718 34719 /***/ 34720 }), 34721 /* 470 */ 34722 /***/ (function (module, __webpack_exports__, __webpack_require__) { 34723 34724 "use strict"; 34725 /* harmony import */ 34726 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(471); 34727 /* harmony import */ 34728 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(472); 34729 /* harmony import */ 34730 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(473); 34731 /* harmony import */ 34732 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(474); 34733 /* harmony import */ 34734 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(475); 34735 34736 34737 /** 34738 * @type {Locale} 34739 * @category Locales 34740 * @summary Belarusian locale. 34741 * @language Belarusian 34742 * @iso-639-2 bel 34743 * @author Kiryl Anokhin [@alyrik]{@link https://github.com/alyrik} 34744 * @author Martin Wind [@arvigeus]{@link https://github.com/mawi12345} 34745 */ 34746 34747 var locale = { 34748 code: 'be', 34749 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 34750 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 34751 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 34752 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 34753 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 34754 options: { 34755 weekStartsOn: 1 34756 /* Monday */ 34757 , 34758 firstWeekContainsDate: 1 34759 } 34760 }; 34761 /* harmony default export */ 34762 __webpack_exports__["a"] = (locale); 34763 34764 /***/ 34765 }), 34766 /* 471 */ 34767 /***/ (function (module, __webpack_exports__, __webpack_require__) { 34768 34769 "use strict"; 34770 /* harmony export (immutable) */ 34771 __webpack_exports__["a"] = formatDistance; 34772 34773 function declension(scheme, count) { 34774 // scheme for count=1 exists 34775 if (scheme.one !== undefined && count === 1) { 34776 return scheme.one; 34777 } 34778 34779 var rem10 = count % 10; 34780 var rem100 = count % 100; // 1, 21, 31, ... 34781 34782 if (rem10 === 1 && rem100 !== 11) { 34783 return scheme.singularNominative.replace('{{count}}', count); // 2, 3, 4, 22, 23, 24, 32 ... 34784 } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { 34785 return scheme.singularGenitive.replace('{{count}}', count); // 5, 6, 7, 8, 9, 10, 11, ... 34786 } else { 34787 return scheme.pluralGenitive.replace('{{count}}', count); 34788 } 34789 } 34790 34791 function buildLocalizeTokenFn(scheme) { 34792 return function (count, options) { 34793 if (options.addSuffix) { 34794 if (options.comparison > 0) { 34795 if (scheme.future) { 34796 return declension(scheme.future, count); 34797 } else { 34798 return 'пÑаз ' + declension(scheme.regular, count); 34799 } 34800 } else { 34801 if (scheme.past) { 34802 return declension(scheme.past, count); 34803 } else { 34804 return declension(scheme.regular, count) + ' ÑамÑ'; 34805 } 34806 } 34807 } else { 34808 return declension(scheme.regular, count); 34809 } 34810 }; 34811 } 34812 34813 var formatDistanceLocale = { 34814 lessThanXSeconds: buildLocalizeTokenFn({ 34815 regular: { 34816 one: 'Ð¼ÐµÐ½Ñ Ð·Ð° ÑекÑндÑ', 34817 singularNominative: 'Ð¼ÐµÐ½Ñ Ð·Ð° {{count}} ÑекÑндÑ', 34818 singularGenitive: 'Ð¼ÐµÐ½Ñ Ð·Ð° {{count}} ÑекÑндÑ', 34819 pluralGenitive: 'Ð¼ÐµÐ½Ñ Ð·Ð° {{count}} ÑекÑнд' 34820 }, 34821 future: { 34822 one: 'менÑ, ÑÑм пÑаз ÑекÑндÑ', 34823 singularNominative: 'менÑ, ÑÑм пÑаз {{count}} ÑекÑндÑ', 34824 singularGenitive: 'менÑ, ÑÑм пÑаз {{count}} ÑекÑндÑ', 34825 pluralGenitive: 'менÑ, ÑÑм пÑаз {{count}} ÑекÑнд' 34826 } 34827 }), 34828 xSeconds: buildLocalizeTokenFn({ 34829 regular: { 34830 singularNominative: '{{count}} ÑекÑнда', 34831 singularGenitive: '{{count}} ÑекÑндÑ', 34832 pluralGenitive: '{{count}} ÑекÑнд' 34833 }, 34834 past: { 34835 singularNominative: '{{count}} ÑекÑÐ½Ð´Ñ ÑамÑ', 34836 singularGenitive: '{{count}} ÑекÑÐ½Ð´Ñ ÑамÑ', 34837 pluralGenitive: '{{count}} ÑекÑнд ÑамÑ' 34838 }, 34839 future: { 34840 singularNominative: 'пÑаз {{count}} ÑекÑндÑ', 34841 singularGenitive: 'пÑаз {{count}} ÑекÑндÑ', 34842 pluralGenitive: 'пÑаз {{count}} ÑекÑнд' 34843 } 34844 }), 34845 halfAMinute: function (_, options) { 34846 if (options.addSuffix) { 34847 if (options.comparison > 0) { 34848 return 'пÑаз паÑÑ Ð²ÑлÑнÑ'; 34849 } else { 34850 return 'паÑÑ Ð²ÑлÑÐ½Ñ ÑамÑ'; 34851 } 34852 } 34853 34854 return 'паÑÑ Ð²ÑлÑнÑ'; 34855 }, 34856 lessThanXMinutes: buildLocalizeTokenFn({ 34857 regular: { 34858 one: 'Ð¼ÐµÐ½Ñ Ð·Ð° Ñ Ð²ÑлÑнÑ', 34859 singularNominative: 'Ð¼ÐµÐ½Ñ Ð·Ð° {{count}} Ñ Ð²ÑлÑнÑ', 34860 singularGenitive: 'Ð¼ÐµÐ½Ñ Ð·Ð° {{count}} Ñ Ð²ÑлÑнÑ', 34861 pluralGenitive: 'Ð¼ÐµÐ½Ñ Ð·Ð° {{count}} Ñ Ð²ÑлÑн' 34862 }, 34863 future: { 34864 one: 'менÑ, ÑÑм пÑаз Ñ Ð²ÑлÑнÑ', 34865 singularNominative: 'менÑ, ÑÑм пÑаз {{count}} Ñ Ð²ÑлÑнÑ', 34866 singularGenitive: 'менÑ, ÑÑм пÑаз {{count}} Ñ Ð²ÑлÑнÑ', 34867 pluralGenitive: 'менÑ, ÑÑм пÑаз {{count}} Ñ Ð²ÑлÑн' 34868 } 34869 }), 34870 xMinutes: buildLocalizeTokenFn({ 34871 regular: { 34872 singularNominative: '{{count}} Ñ Ð²ÑлÑна', 34873 singularGenitive: '{{count}} Ñ Ð²ÑлÑнÑ', 34874 pluralGenitive: '{{count}} Ñ Ð²ÑлÑн' 34875 }, 34876 past: { 34877 singularNominative: '{{count}} Ñ Ð²ÑлÑÐ½Ñ ÑамÑ', 34878 singularGenitive: '{{count}} Ñ Ð²ÑлÑÐ½Ñ ÑамÑ', 34879 pluralGenitive: '{{count}} Ñ Ð²ÑлÑн ÑамÑ' 34880 }, 34881 future: { 34882 singularNominative: 'пÑаз {{count}} Ñ Ð²ÑлÑнÑ', 34883 singularGenitive: 'пÑаз {{count}} Ñ Ð²ÑлÑнÑ', 34884 pluralGenitive: 'пÑаз {{count}} Ñ Ð²ÑлÑн' 34885 } 34886 }), 34887 aboutXHours: buildLocalizeTokenFn({ 34888 regular: { 34889 singularNominative: 'ÐºÐ°Ð»Ñ {{count}} гадзÑнÑ', 34890 singularGenitive: 'ÐºÐ°Ð»Ñ {{count}} гадзÑн', 34891 pluralGenitive: 'ÐºÐ°Ð»Ñ {{count}} гадзÑн' 34892 }, 34893 future: { 34894 singularNominative: 'пÑÑблÑзна пÑаз {{count}} гадзÑнÑ', 34895 singularGenitive: 'пÑÑблÑзна пÑаз {{count}} гадзÑнÑ', 34896 pluralGenitive: 'пÑÑблÑзна пÑаз {{count}} гадзÑн' 34897 } 34898 }), 34899 xHours: buildLocalizeTokenFn({ 34900 regular: { 34901 singularNominative: '{{count}} гадзÑна', 34902 singularGenitive: '{{count}} гадзÑнÑ', 34903 pluralGenitive: '{{count}} гадзÑн' 34904 }, 34905 past: { 34906 singularNominative: '{{count}} гадзÑÐ½Ñ ÑамÑ', 34907 singularGenitive: '{{count}} гадзÑÐ½Ñ ÑамÑ', 34908 pluralGenitive: '{{count}} гадзÑн ÑамÑ' 34909 }, 34910 future: { 34911 singularNominative: 'пÑаз {{count}} гадзÑнÑ', 34912 singularGenitive: 'пÑаз {{count}} гадзÑнÑ', 34913 pluralGenitive: 'пÑаз {{count}} гадзÑн' 34914 } 34915 }), 34916 xDays: buildLocalizeTokenFn({ 34917 regular: { 34918 singularNominative: '{{count}} дзенÑ', 34919 singularGenitive: '{{count}} днÑ', 34920 pluralGenitive: '{{count}} дзÑн' 34921 } 34922 }), 34923 aboutXWeeks: buildLocalizeTokenFn({ 34924 regular: { 34925 singularNominative: 'ÐºÐ°Ð»Ñ {{count}} меÑÑÑа', 34926 // TODO 34927 singularGenitive: 'ÐºÐ°Ð»Ñ {{count}} меÑÑÑаÑ', 34928 // TODO 34929 pluralGenitive: 'ÐºÐ°Ð»Ñ {{count}} меÑÑÑаÑ' // TODO 34930 34931 }, 34932 future: { 34933 singularNominative: 'пÑÑблÑзна пÑаз {{count}} меÑÑÑ', 34934 // TODO 34935 singularGenitive: 'пÑÑблÑзна пÑаз {{count}} меÑÑÑÑ', 34936 // TODO 34937 pluralGenitive: 'пÑÑблÑзна пÑаз {{count}} меÑÑÑаÑ' // TODO 34938 34939 } 34940 }), 34941 xWeeks: buildLocalizeTokenFn({ 34942 regular: { 34943 singularNominative: '{{count}} меÑÑÑ', 34944 singularGenitive: '{{count}} меÑÑÑÑ', 34945 pluralGenitive: '{{count}} меÑÑÑаÑ' 34946 } 34947 }), 34948 aboutXMonths: buildLocalizeTokenFn({ 34949 regular: { 34950 singularNominative: 'ÐºÐ°Ð»Ñ {{count}} меÑÑÑа', 34951 singularGenitive: 'ÐºÐ°Ð»Ñ {{count}} меÑÑÑаÑ', 34952 pluralGenitive: 'ÐºÐ°Ð»Ñ {{count}} меÑÑÑаÑ' 34953 }, 34954 future: { 34955 singularNominative: 'пÑÑблÑзна пÑаз {{count}} меÑÑÑ', 34956 singularGenitive: 'пÑÑблÑзна пÑаз {{count}} меÑÑÑÑ', 34957 pluralGenitive: 'пÑÑблÑзна пÑаз {{count}} меÑÑÑаÑ' 34958 } 34959 }), 34960 xMonths: buildLocalizeTokenFn({ 34961 regular: { 34962 singularNominative: '{{count}} меÑÑÑ', 34963 singularGenitive: '{{count}} меÑÑÑÑ', 34964 pluralGenitive: '{{count}} меÑÑÑаÑ' 34965 } 34966 }), 34967 aboutXYears: buildLocalizeTokenFn({ 34968 regular: { 34969 singularNominative: 'ÐºÐ°Ð»Ñ {{count}} года', 34970 singularGenitive: 'ÐºÐ°Ð»Ñ {{count}} гадоÑ', 34971 pluralGenitive: 'ÐºÐ°Ð»Ñ {{count}} гадоÑ' 34972 }, 34973 future: { 34974 singularNominative: 'пÑÑблÑзна пÑаз {{count}} год', 34975 singularGenitive: 'пÑÑблÑзна пÑаз {{count}} гадÑ', 34976 pluralGenitive: 'пÑÑблÑзна пÑаз {{count}} гадоÑ' 34977 } 34978 }), 34979 xYears: buildLocalizeTokenFn({ 34980 regular: { 34981 singularNominative: '{{count}} год', 34982 singularGenitive: '{{count}} гадÑ', 34983 pluralGenitive: '{{count}} гадоÑ' 34984 } 34985 }), 34986 overXYears: buildLocalizeTokenFn({ 34987 regular: { 34988 singularNominative: 'болÑÑ Ð·Ð° {{count}} год', 34989 singularGenitive: 'болÑÑ Ð·Ð° {{count}} гадÑ', 34990 pluralGenitive: 'болÑÑ Ð·Ð° {{count}} гадоÑ' 34991 }, 34992 future: { 34993 singularNominative: 'болÑÑ, ÑÑм пÑаз {{count}} год', 34994 singularGenitive: 'болÑÑ, ÑÑм пÑаз {{count}} гадÑ', 34995 pluralGenitive: 'болÑÑ, ÑÑм пÑаз {{count}} гадоÑ' 34996 } 34997 }), 34998 almostXYears: buildLocalizeTokenFn({ 34999 regular: { 35000 singularNominative: 'Ð°Ð¼Ð°Ð»Ñ {{count}} год', 35001 singularGenitive: 'Ð°Ð¼Ð°Ð»Ñ {{count}} гадÑ', 35002 pluralGenitive: 'Ð°Ð¼Ð°Ð»Ñ {{count}} гадоÑ' 35003 }, 35004 future: { 35005 singularNominative: 'Ð°Ð¼Ð°Ð»Ñ Ð¿Ñаз {{count}} год', 35006 singularGenitive: 'Ð°Ð¼Ð°Ð»Ñ Ð¿Ñаз {{count}} гадÑ', 35007 pluralGenitive: 'Ð°Ð¼Ð°Ð»Ñ Ð¿Ñаз {{count}} гадоÑ' 35008 } 35009 }) 35010 }; 35011 35012 function formatDistance(token, count, options) { 35013 options = options || {}; 35014 return formatDistanceLocale[token](count, options); 35015 } 35016 35017 /***/ 35018 }), 35019 /* 472 */ 35020 /***/ (function (module, __webpack_exports__, __webpack_require__) { 35021 35022 "use strict"; 35023 /* harmony import */ 35024 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 35025 35026 var dateFormats = { 35027 full: "EEEE, d MMMM y 'г.'", 35028 long: "d MMMM y 'г.'", 35029 medium: "d MMM y 'г.'", 35030 short: 'dd.MM.y' 35031 }; 35032 var timeFormats = { 35033 full: 'H:mm:ss zzzz', 35034 long: 'H:mm:ss z', 35035 medium: 'H:mm:ss', 35036 short: 'H:mm' 35037 }; 35038 var dateTimeFormats = { 35039 any: '{{date}}, {{time}}' 35040 }; 35041 var formatLong = { 35042 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 35043 formats: dateFormats, 35044 defaultWidth: 'full' 35045 }), 35046 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 35047 formats: timeFormats, 35048 defaultWidth: 'full' 35049 }), 35050 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 35051 formats: dateTimeFormats, 35052 defaultWidth: 'any' 35053 }) 35054 }; 35055 /* harmony default export */ 35056 __webpack_exports__["a"] = (formatLong); 35057 35058 /***/ 35059 }), 35060 /* 473 */ 35061 /***/ (function (module, __webpack_exports__, __webpack_require__) { 35062 35063 "use strict"; 35064 /* harmony export (immutable) */ 35065 __webpack_exports__["a"] = formatRelative; 35066 /* harmony import */ 35067 var __WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__ = __webpack_require__(13); 35068 35069 var accusativeWeekdays = ['нÑдзелÑ', 'панÑдзелак', 'аÑÑоÑак', 'ÑеÑадÑ', 'ÑаÑвеÑ', 'пÑÑнÑÑÑ', 'ÑÑбоÑÑ']; 35070 35071 function lastWeek(day) { 35072 var weekday = accusativeWeekdays[day]; 35073 35074 switch (day) { 35075 case 0: 35076 case 3: 35077 case 5: 35078 case 6: 35079 return "'Ñ Ð¼ÑнÑлÑÑ " + weekday + " а' p"; 35080 35081 case 1: 35082 case 2: 35083 case 4: 35084 return "'Ñ Ð¼ÑнÑÐ»Ñ " + weekday + " а' p"; 35085 } 35086 } 35087 35088 function thisWeek(day) { 35089 var weekday = accusativeWeekdays[day]; 35090 return "'Ñ " + weekday + " а' p"; 35091 } 35092 35093 function nextWeek(day) { 35094 var weekday = accusativeWeekdays[day]; 35095 35096 switch (day) { 35097 case 0: 35098 case 3: 35099 case 5: 35100 case 6: 35101 return "'Ñ Ð½Ð°ÑÑÑпнÑÑ " + weekday + " а' p"; 35102 35103 case 1: 35104 case 2: 35105 case 4: 35106 return "'Ñ Ð½Ð°ÑÑÑÐ¿Ð½Ñ " + weekday + " а' p"; 35107 } 35108 } 35109 35110 var formatRelativeLocale = { 35111 lastWeek: function (date, baseDate, options) { 35112 var day = date.getUTCDay(); 35113 35114 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](date, baseDate, options)) { 35115 return thisWeek(day); 35116 } else { 35117 return lastWeek(day); 35118 } 35119 }, 35120 yesterday: "'ÑÑоÑа а' p", 35121 today: "'ÑÑÐ½Ð½Ñ Ð°' p", 35122 tomorrow: "'заÑÑÑа а' p", 35123 nextWeek: function (date, baseDate, options) { 35124 var day = date.getUTCDay(); 35125 35126 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](date, baseDate, options)) { 35127 return thisWeek(day); 35128 } else { 35129 return nextWeek(day); 35130 } 35131 }, 35132 other: 'P' 35133 }; 35134 35135 function formatRelative(token, date, baseDate, options) { 35136 var format = formatRelativeLocale[token]; 35137 35138 if (typeof format === 'function') { 35139 return format(date, baseDate, options); 35140 } 35141 35142 return format; 35143 } 35144 35145 /***/ 35146 }), 35147 /* 474 */ 35148 /***/ (function (module, __webpack_exports__, __webpack_require__) { 35149 35150 "use strict"; 35151 /* harmony import */ 35152 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 35153 35154 var eraValues = { 35155 narrow: ['да н.Ñ.', 'н.Ñ.'], 35156 abbreviated: ['да н. Ñ.', 'н. Ñ.'], 35157 wide: ['да наÑай ÑÑÑ', 'наÑай ÑÑÑ'] 35158 }; 35159 var quarterValues = { 35160 narrow: ['1', '2', '3', '4'], 35161 abbreviated: ['1-Ñ ÐºÐ².', '2-Ñ ÐºÐ².', '3-Ñ ÐºÐ².', '4-Ñ ÐºÐ².'], 35162 wide: ['1-Ñ ÐºÐ²Ð°ÑÑал', '2-Ñ ÐºÐ²Ð°ÑÑал', '3-Ñ ÐºÐ²Ð°ÑÑал', '4-Ñ ÐºÐ²Ð°ÑÑал'] 35163 }; 35164 var monthValues = { 35165 narrow: ['С', 'Ð', 'С', 'Ð', 'Ð', 'Ч', 'Ð', 'Ð', 'Ð', 'Ð', 'Ð', 'С'], 35166 abbreviated: ['ÑÑÑдз.', 'лÑÑ.', 'Ñак.', 'кÑаÑ.', 'май', 'ÑÑÑв.', 'лÑп.', 'жн.', 'веÑ.', 'каÑÑÑ.', 'лÑÑÑ.', 'Ñнеж.'], 35167 wide: ['ÑÑÑдзенÑ', 'лÑÑÑ', 'ÑакавÑк', 'кÑаÑавÑк', 'май', 'ÑÑÑвенÑ', 'лÑпенÑ', 'жнÑвенÑ', 'веÑаÑенÑ', 'каÑÑÑÑÑнÑк', 'лÑÑÑапад', 'ÑнежанÑ'] 35168 }; 35169 var formattingMonthValues = { 35170 narrow: ['С', 'Ð', 'С', 'Ð', 'Ð', 'Ч', 'Ð', 'Ð', 'Ð', 'Ð', 'Ð', 'С'], 35171 abbreviated: ['ÑÑÑдз.', 'лÑÑ.', 'Ñак.', 'кÑаÑ.', 'маÑ', 'ÑÑÑв.', 'лÑп.', 'жн.', 'веÑ.', 'каÑÑÑ.', 'лÑÑÑ.', 'Ñнеж.'], 35172 wide: ['ÑÑÑдзенÑ', 'лÑÑага', 'ÑакавÑка', 'кÑаÑавÑка', 'маÑ', 'ÑÑÑвенÑ', 'лÑпенÑ', 'жнÑÑнÑ', 'веÑаÑнÑ', 'каÑÑÑÑÑнÑка', 'лÑÑÑапада', 'ÑнежнÑ'] 35173 }; 35174 var dayValues = { 35175 narrow: ['Ð', 'Ð', 'Ð', 'С', 'Ч', 'Ð', 'С'], 35176 short: ['нд', 'пн', 'аÑ', 'ÑÑ', 'ÑÑ', 'пÑ', 'Ñб'], 35177 abbreviated: ['нÑдз', 'пан', 'аÑÑ', 'ÑеÑ', 'ÑаÑ', 'пÑÑ', 'ÑÑб'], 35178 wide: ['нÑдзелÑ', 'панÑдзелак', 'аÑÑоÑак', 'ÑеÑада', 'ÑаÑвеÑ', 'пÑÑнÑÑа', 'ÑÑбоÑа'] 35179 }; 35180 var dayPeriodValues = { 35181 narrow: { 35182 am: 'ÐÐ', 35183 pm: 'ÐÐ', 35184 midnight: 'поÑн.', 35185 noon: 'поÑд.', 35186 morning: 'Ñан.', 35187 afternoon: 'дзенÑ', 35188 evening: 'веÑ.', 35189 night: 'ноÑ' 35190 }, 35191 abbreviated: { 35192 am: 'ÐÐ', 35193 pm: 'ÐÐ', 35194 midnight: 'поÑн.', 35195 noon: 'поÑд.', 35196 morning: 'Ñан.', 35197 afternoon: 'дзенÑ', 35198 evening: 'веÑ.', 35199 night: 'ноÑ' 35200 }, 35201 wide: { 35202 am: 'ÐÐ', 35203 pm: 'ÐÐ', 35204 midnight: 'поÑнаÑ', 35205 noon: 'поÑдзенÑ', 35206 morning: 'ÑанÑÑа', 35207 afternoon: 'дзенÑ', 35208 evening: 'веÑаÑ', 35209 night: 'ноÑ' 35210 } 35211 }; 35212 var formattingDayPeriodValues = { 35213 narrow: { 35214 am: 'ÐÐ', 35215 pm: 'ÐÐ', 35216 midnight: 'поÑн.', 35217 noon: 'поÑд.', 35218 morning: 'Ñан.', 35219 afternoon: 'днÑ', 35220 evening: 'веÑ.', 35221 night: 'ноÑÑ' 35222 }, 35223 abbreviated: { 35224 am: 'ÐÐ', 35225 pm: 'ÐÐ', 35226 midnight: 'поÑн.', 35227 noon: 'поÑд.', 35228 morning: 'Ñан.', 35229 afternoon: 'днÑ', 35230 evening: 'веÑ.', 35231 night: 'ноÑÑ' 35232 }, 35233 wide: { 35234 am: 'ÐÐ', 35235 pm: 'ÐÐ', 35236 midnight: 'поÑнаÑ', 35237 noon: 'поÑдзенÑ', 35238 morning: 'ÑанÑÑÑ', 35239 afternoon: 'днÑ', 35240 evening: 'веÑаÑа', 35241 night: 'ноÑÑ' 35242 } 35243 }; 35244 35245 function ordinalNumber(dirtyNumber, dirtyOptions) { 35246 var options = dirtyOptions || {}; 35247 var unit = String(options.unit); 35248 var number = Number(dirtyNumber); 35249 var suffix; 35250 /** Though it's an incorrect ordinal form of a date we use it here for consistency with other similar locales (ru, uk) 35251 * For date-month combinations should be used `d` formatter.
35252 * Correct: `d MMMM` (4 веÑаÑнÑ) 35253 * Incorrect: `do MMMM` (4-га веÑаÑнÑ) 35254 * 35255 * But following the consistency leads to mistakes for literal uses of `do` formatter (ordinal day of month). 35256 * So for phrase "5th day of month" (`do Ð´Ð·ÐµÐ½Ñ Ð¼ÐµÑÑÑа`) 35257 * library will produce: `5-га Ð´Ð·ÐµÐ½Ñ Ð¼ÐµÑÑÑа` 35258 * but correct spelling should be: `5-Ñ Ð´Ð·ÐµÐ½Ñ Ð¼ÐµÑÑÑа` 35259 * 35260 * So I guess there should be a stand-alone and a formatting version of "day of month" formatters 35261 */ 35262 35263 if (unit === 'date') { 35264 suffix = '-га'; 35265 } else if (unit === 'hour' || unit === 'minute' || unit === 'second') { 35266 suffix = '-Ñ'; 35267 } else { 35268 suffix = (number % 10 === 2 || number % 10 === 3) && number % 100 !== 12 && number % 100 !== 13 ? '-Ñ' : '-Ñ'; 35269 } 35270 35271 return number + suffix; 35272 } 35273 35274 var localize = { 35275 ordinalNumber: ordinalNumber, 35276 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 35277 values: eraValues, 35278 defaultWidth: 'wide' 35279 }), 35280 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 35281 values: quarterValues, 35282 defaultWidth: 'wide', 35283 argumentCallback: function (quarter) { 35284 return Number(quarter) - 1; 35285 } 35286 }), 35287 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 35288 values: monthValues, 35289 defaultWidth: 'wide', 35290 formattingValues: formattingMonthValues, 35291 defaultFormattingWidth: 'wide' 35292 }), 35293 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 35294 values: dayValues, 35295 defaultWidth: 'wide' 35296 }), 35297 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 35298 values: dayPeriodValues, 35299 defaultWidth: 'any', 35300 formattingValues: formattingDayPeriodValues, 35301 defaultFormattingWidth: 'wide' 35302 }) 35303 }; 35304 /* harmony default export */ 35305 __webpack_exports__["a"] = (localize); 35306 35307 /***/ 35308 }), 35309 /* 475 */ 35310 /***/ (function (module, __webpack_exports__, __webpack_require__) { 35311 35312 "use strict"; 35313 /* harmony import */ 35314 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 35315 /* harmony import */ 35316 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 35317 35318 35319 var matchOrdinalNumberPattern = /^(\d+)(-?(е|Ñ|га|Ñ|Ñ|ае|аÑ|ÑÑ|ÑÑ|гÑ|ÑÑ|ÑÑ|мÑ))?/i; 35320 var parseOrdinalNumberPattern = /\d+/i; 35321 var matchEraPatterns = { 35322 narrow: /^((да )?н\.?\s?Ñ\.?)/i, 35323 abbreviated: /^((да )?н\.?\s?Ñ\.?)/i, 35324 wide: /^(да наÑай ÑÑÑ|наÑай ÑÑÑ|наÑа ÑÑа)/i 35325 }; 35326 var parseEraPatterns = { 35327 any: [/^д/i, /^н/i] 35328 }; 35329 var matchQuarterPatterns = { 35330 narrow: /^[1234]/i, 35331 abbreviated: /^[1234](-?[ÑÑ]?)? кв.?/i, 35332 wide: /^[1234](-?[ÑÑ]?)? кваÑÑал/i 35333 }; 35334 var parseQuarterPatterns = { 35335 any: [/1/i, /2/i, /3/i, /4/i] 35336 }; 35337 var matchMonthPatterns = { 35338 narrow: /^[ÑлкмÑжв]/i, 35339 abbreviated: /^(ÑÑÑдз|лÑÑ|Ñак|кÑаÑ|ма[йÑ]|ÑÑÑв|лÑп|жн|веÑ|каÑÑÑ|лÑÑÑ|Ñнеж)\.?/i, 35340 wide: /^(ÑÑÑдзен[ÑÑ]|лÑÑ(Ñ|ага)|ÑакавÑка?|к
35340ÑаÑавÑка?|ма[йÑ]|ÑÑÑвен[ÑÑ]|лÑпен[ÑÑ]|жнÑ(венÑ|ÑнÑ)|веÑаÑ(енÑ|нÑ)|каÑÑÑÑÑнÑка?|лÑÑÑапада?|Ñнеж(анÑ|нÑ))/i 35341 }; 35342 var parseMonthPatterns = { 35343 narrow: [/^Ñ/i, /^л/i, /^Ñ/i, /^к/i, /^м/i, /^Ñ/i, /^л/i, /^ж/i, /^в/i, /^к/i, /^л/i, /^Ñ/i], 35344 any: [/^ÑÑ/i, /^лÑ/i, /^Ñа/i, /^кÑ/i, /^ма/i, /^Ñ/i, /^лÑп/i, /^ж/i, /^в/i, /^ка/i, /^лÑÑ/i, /^Ñн/i] 35345 }; 35346 var matchDayPatterns = { 35347 narrow: /^[нпаÑÑ]/i, 35348 short: /^(нд|нÑ|пн|па|аÑ|аÑ|ÑÑ|Ñе|ÑÑ|Ñа|пÑ|пÑ|Ñб|ÑÑ)\.?/i, 35349 abbreviated: /^(нÑдз?|ндз|пнд|пан|аÑÑ|ÑÑд|ÑеÑ|ÑÑв|ÑаÑ|пÑн|пÑÑ|ÑÑб).?/i, 35350 wide: /^(нÑдзел[ÑÑ]|панÑдзел(ак|ка)|аÑÑоÑ(ак|ка)|ÑеÑад[аÑ]|ÑаÑв(еÑ|ÑÑга)|пÑÑнÑÑ[аÑ]|ÑÑбоÑ[аÑ])/i 35351 }; 35352 var parseDayPatterns = { 35353 narrow: [/^н/i, /^п/i, /^а/i, /^Ñ/i, /^Ñ/i, /^п/i, /^Ñ/i], 35354 any: [/^н/i, /^п[ан]/i, /^а/i, /^Ñ[еÑ]/i, /^Ñ/i, /^п[ÑÑ]/i, /^Ñ[Ñб]/i] 35355 }; 35356 var matchDayPeriodPatterns = { 35357 narrow: /^([дп]п|поÑн\.?|поÑд\.?|Ñан\.?|дзенÑ|днÑ|веÑ\.?|ноÑÑ?)/i, 35358 abbreviated: /^([дп]п|поÑн\.?|поÑд\.?|Ñан\.?|дзенÑ|днÑ|веÑ\.?|ноÑÑ?)/i, 35359 wide: /^([дп]п|поÑнаÑ|поÑдзенÑ|ÑанÑÑ[аÑ]|дзенÑ|днÑ|веÑаÑа?|ноÑÑ?)/i 35360 }; 35361 var parseDayPeriodPatterns = { 35362 any: { 35363 am: /^дп/i, 35364 pm: /^пп/i, 35365 midnight: /^поÑн/i, 35366 noon: /^поÑд/i, 35367 morning: /^Ñ/i, 35368 afternoon: /^д[зн]/i, 35369 evening: /^в/i, 35370 night: /^н/i 35371 } 35372 }; 35373 var match = { 35374 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 35375 matchPattern: matchOrdinalNumberPattern, 35376 parsePattern: parseOrdinalNumberPattern, 35377 valueCallback: function (value) { 35378 return parseInt(value, 10); 35379 } 35380 }), 35381 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 35382 matchPatterns: matchEraPatterns, 35383 defaultMatchWidth: 'wide', 35384 parsePatterns: parseEraPatterns, 35385 defaultParseWidth: 'any' 35386 }), 35387 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 35388 matchPatterns: matchQuarterPatterns, 35389 defaultMatchWidth: 'wide', 35390 parsePatterns: parseQuarterPatterns, 35391 defaultParseWidth: 'any', 35392 valueCallback: function (index) { 35393 return index + 1; 35394 } 35395 }), 35396 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 35397 matchPatterns: matchMonthPatterns, 35398 defaultMatchWidth: 'wide', 35399 parsePatterns: parseMonthPatterns, 35400 defaultParseWidth: 'any' 35401 }), 35402 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 35403 matchPatterns: matchDayPatterns, 35404 defaultMatchWidth: 'wide', 35405 parsePatterns: parseDayPatterns, 35406 defaultParseWidth: 'any' 35407 }), 35408 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 35409 matchPatterns: matchDayPeriodPatterns, 35410 defaultMatchWidth: 'wide', 35411 parsePatterns: parseDayPeriodPatterns, 35412 defaultParseWidth: 'any' 35413 }) 35414 }; 35415 /* harmony default export */ 35416 __webpack_exports__["a"] = (match); 35417 35418 /***/ 35419 }), 35420 /* 476 */ 35421 /***/ (function (module, __webpack_exports__, __webpack_require__) { 35422 35423 "use strict"; 35424 /* harmony import */ 35425 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(47
vendor: 304,168 bytes, lines 35425-42037
354257); 35426 /* harmony import */ 35427 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(478); 35428 /* harmony import */ 35429 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(479); 35430 /* harmony import */ 35431 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(480); 35432 /* harmony import */ 35433 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(481); 35434 35435 35436 /** 35437 * @type {Locale} 35438 * @category Locales 35439 * @summary Bulgarian locale. 35440 * @language Bulgarian 35441 * @iso-639-2 bul 35442 * @author Nikolay Stoynov [@arvigeus]{@link https://github.com/arvigeus} 35443 * @author Tsvetan Ovedenski [@fintara]{@link https://github.com/fintara} 35444 */ 35445 35446 var locale = { 35447 code: 'bg', 35448 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 35449 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 35450 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 35451 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 35452 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 35453 options: { 35454 weekStartsOn: 1 35455 /* Monday */ 35456 , 35457 firstWeekContainsDate: 1 35458 } 35459 }; 35460 /* harmony default export */ 35461 __webpack_exports__["a"] = (locale); 35462 35463 /***/ 35464 }), 35465 /* 477 */ 35466 /***/ (function (module, __webpack_exports__, __webpack_require__) { 35467 35468 "use strict"; 35469 /* harmony export (immutable) */ 35470 __webpack_exports__["a"] = formatDistance; 35471 var formatDistanceLocale = { 35472 lessThanXSeconds: { 35473 one: 'по-малко Ð¾Ñ ÑекÑнда', 35474 other: 'по-малко Ð¾Ñ {{count}} ÑекÑнди' 35475 }, 35476 xSeconds: { 35477 one: '1 ÑекÑнда', 35478 other: '{{count}} ÑекÑнди' 35479 }, 35480 halfAMinute: 'половин минÑÑа', 35481 lessThanXMinutes: { 35482 one: 'по-малко Ð¾Ñ Ð¼Ð¸Ð½ÑÑа', 35483 other: 'по-малко Ð¾Ñ {{count}} минÑÑи' 35484 }, 35485 xMinutes: { 35486 one: '1 минÑÑа', 35487 other: '{{count}} минÑÑи' 35488 }, 35489 aboutXHours: { 35490 one: 'около ÑаÑ', 35491 other: 'около {{count}} ÑаÑа' 35492 }, 35493 xHours: { 35494 one: '1 ÑаÑ', 35495 other: '{{count}} ÑаÑа' 35496 }, 35497 xDays: { 35498 one: '1 ден', 35499 other: '{{count}} дни' 35500 }, 35501 aboutXWeeks: { 35502 one: 'около ÑедмиÑа', 35503 other: 'около {{count}} ÑедмиÑи' 35504 }, 35505 xWeeks: { 35506 one: '1 ÑедмиÑа', 35507 other: '{{count}} ÑедмиÑи' 35508 }, 35509 aboutXMonths: { 35510 one: 'около меÑеÑ', 35511 other: 'около {{count}} меÑеÑа' 35512 }, 35513 xMonths: { 35514 one: '1 меÑеÑ', 35515 other: '{{count}} меÑеÑа' 35516 }, 35517 aboutXYears: { 35518 one: 'около година', 35519 other: 'около {{count}} години' 35520 }, 35521 xYears: { 35522 one: '1 година', 35523 other: '{{count}} години' 35524 }, 35525 overXYears: { 35526 one: 'над година', 35527 other: 'над {{count}} години' 35528 }, 35529 almostXYears: { 35530 one: 'поÑÑи година', 35531 other: 'поÑÑи {{count}} години' 35532 } 35533 }; 35534 35535 function formatDistance(token, count, options) { 35536 options = options || {}; 35537 var result; 35538 35539 if (typeof formatDistanceLocale[token] === 'string') { 35540 result = formatDistanceLocale[token]; 35541 } else if (count === 1) { 35542 result = formatDistanceLocale[token].one; 35543 } else { 35544 result = formatDistanceLocale[token].other.replace('{{count}}', count); 35545 } 35546 35547 if (options.addSuffix) { 35548 if (options.comparison > 0) { 35549 return 'Ñлед ' + result; 35550 } else { 35551 return 'пÑеди ' + result; 35552 } 35553 } 35554 35555 return result; 35556 } 35557 35558 /***/ 35559 }), 35560 /* 478 */ 35561 /***/ (function (module, __webpack_exports__, __webpack_require__) { 35562 35563 "use strict"; 35564 /* harmony import */ 35565 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 35566 35567 var dateFormats = { 35568 full: 'EEEE, dd MMMM yyyy', 35569 long: 'dd MMMM yyyy', 35570 medium: 'dd MMM yyyy', 35571 short: 'dd/MM/yyyy' 35572 }; 35573 var timeFormats = { 35574 full: 'HH:mm:ss zzzz', 35575 long: 'HH:mm:ss z', 35576 medium: 'HH:mm:ss', 35577 short: 'H:mm' 35578 }; 35579 var dateTimeFormats = { 35580 any: '{{date}} {{time}}' 35581 }; 35582 var formatLong = { 35583 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 35584 formats: dateFormats, 35585 defaultWidth: 'full' 35586 }), 35587 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 35588 formats: timeFormats, 35589 defaultWidth: 'full' 35590 }), 35591 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 35592 formats: dateTimeFormats, 35593 defaultWidth: 'any' 35594 }) 35595 }; 35596 /* harmony default export */ 35597 __webpack_exports__["a"] = (formatLong); 35598 35599 /***/ 35600 }), 35601 /* 479 */ 35602 /***/ (function (module, __webpack_exports__, __webpack_require__) { 35603 35604 "use strict"; 35605 /* harmony export (immutable) */ 35606 __webpack_exports__["a"] = formatRelative; 35607 /* harmony import */ 35608 var __WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__ = __webpack_require__(13); 35609 // Adapted from the `ru` translation 35610 35611 var weekdays = ['неделÑ', 'понеделник', 'вÑоÑник', 'ÑÑÑда', 'ÑеÑвÑÑÑÑк', 'пеÑÑк', 'ÑÑбоÑа']; 35612 35613 function lastWeek(day) { 35614 var weekday = weekdays[day]; 35615 35616 switch (day) { 35617 case 0: 35618 case 3: 35619 case 6: 35620 return "'миналаÑа " + weekday + " в' p"; 35621 35622 case 1: 35623 case 2: 35624 case 4: 35625 case 5: 35626 return "'Ð¼Ð¸Ð½Ð°Ð»Ð¸Ñ " + weekday + " в' p"; 35627 } 35628 } 35629 35630 function thisWeek(day) { 35631 var weekday = weekdays[day]; 35632 35633 if (day === 2 35634 /* Tue */ 35635 ) { 35636 return "'вÑв " + weekday + " в' p"; 35637 } else { 35638 return "'в " + weekday + " в' p"; 35639 } 35640 } 35641 35642 function nextWeek(day) { 35643 var weekday = weekdays[day]; 35644 35645 switch (day) { 35646 case 0: 35647 case 3: 35648 case 6: 35649 return "'ÑледваÑаÑа " + weekday + " в' p"; 35650 35651 case 1: 35652 case 2: 35653 case 4: 35654 case 5: 35655 return "'ÑледваÑÐ¸Ñ " + weekday + " в' p"; 35656 } 35657 } 35658 35659 var formatRelativeLocale = { 35660 lastWeek: function (date, baseDate, options) { 35661 var day = date.getUTCDay(); 35662 35663 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](date, baseDate, options)) { 35664 return thisWeek(day); 35665 } else { 35666 return lastWeek(day); 35667 } 35668 }, 35669 yesterday: "'вÑеÑа в' p", 35670 today: "'Ð´Ð½ÐµÑ Ð²' p", 35671 tomorrow: "'ÑÑÑе в' p", 35672 nextWeek: function (date, baseDate, options) { 35673 var day = date.getUTCDay(); 35674 35675 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](date, baseDate, options)) { 35676 return thisWeek(day); 35677 } else { 35678 return nextWeek(day); 35679 } 35680 }, 35681 other: 'P' 35682 }; 35683 35684 function formatRelative(token, date, baseDate, options) { 35685 var format = formatRelativeLocale[token]; 35686 35687 if (typeof format === 'function') { 35688 return format(date, baseDate, options); 35689 } 35690 35691 return format; 35692 } 35693 35694 /***/ 35695 }), 35696 /* 480 */ 35697 /***/ (function (module, __webpack_exports__, __webpack_require__) { 35698 35699 "use strict"; 35700 /* harmony import */ 35701 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 35702 35703 var eraValues = { 35704 narrow: ['пÑ.н.е.', 'н.е.'], 35705 abbreviated: ['пÑеди н. е.', 'н. е.'], 35706 wide: ['пÑеди новаÑа еÑа', 'новаÑа еÑа'] 35707 }; 35708 var quarterValues = { 35709 narrow: ['1', '2', '3', '4'], 35710 abbreviated: ['1-во ÑÑимеÑ.', '2-Ñо ÑÑимеÑ.', '3-Ñо ÑÑимеÑ.', '4-Ñо ÑÑимеÑ.'], 35711 wide: ['1-во ÑÑимеÑеÑие', '2-Ñо ÑÑимеÑеÑие', '3-Ñо ÑÑимеÑеÑие', '4-Ñо ÑÑимеÑеÑие'] 35712 }; 35713 var monthValues = { 35714 abbreviated: ['ÑнÑ', 'Ñев', 'маÑ', 'апÑ', 'май', 'Ñни', 'Ñли', 'авг', 'Ñеп', 'окÑ', 'ное', 'дек'], 35715 wide: ['ÑнÑаÑи', 'ÑевÑÑаÑи', 'маÑÑ', 'апÑил', 'май', 'Ñни', 'Ñли', 'авгÑÑÑ', 'ÑепÑемвÑи', 'окÑомвÑи', 'ноемвÑи', 'декемвÑи'] 35716 }; 35717 var dayValues = { 35718 narrow: ['Ð', 'Ð', 'Ð', 'С', 'Ч', 'Ð', 'С'], 35719 short: ['нд', 'пн', 'вÑ', 'ÑÑ', 'ÑÑ', 'пÑ', 'Ñб'], 35720 abbreviated: ['нед', 'пон', 'вÑо', 'ÑÑÑ', 'ÑеÑ', 'пеÑ', 'ÑÑб'], 35721 wide: ['неделÑ', 'понеделник', 'вÑоÑник', 'ÑÑÑда', 'ÑеÑвÑÑÑÑк', 'пеÑÑк', 'ÑÑбоÑа'] 35722 }; 35723 var dayPeriodValues = { 35724 wide: { 35725 am: 'пÑеди обÑд', 35726 pm: 'Ñлед обÑд', 35727 midnight: 'в полÑноÑ', 35728 noon: 'на обÑд', 35729 morning: 'ÑÑÑÑинÑа', 35730 afternoon: 'Ñледобед', 35731 evening: 'веÑеÑÑа', 35732 night: 'пÑез ноÑÑа' 35733 } 35734 }; 35735 35736 function isFeminine(unit) { 35737 return unit === 'year' || unit === 'week' || unit === 'minute' || unit === 'second'; 35738 } 35739 35740 function isNeuter(unit) { 35741 return unit === 'quarter'; 35742 } 35743 35744 function numberWithSuffix(number, unit, masculine, feminine, neuter) { 35745 var suffix = isNeuter(unit) ? neuter : isFeminine(unit) ? feminine : masculine; 35746 return number + '-' + suffix; 35747 } 35748 35749 function ordinalNumber(dirtyNumber, dirtyOptions) { 35750 var options = dirtyOptions || {}; 35751 var unit = String(options.unit); 35752 var number = Number(dirtyNumber); 35753 35754 if (number === 0) { 35755 return numberWithSuffix(0, unit, 'ев', 'ева', 'ево'); 35756 } else if (number % 1000 === 0) { 35757 return numberWithSuffix(number, unit, 'ен', 'на', 'но'); 35758 } else if (number % 100 === 0) { 35759 return numberWithSuffix(number, unit, 'Ñен', 'Ñна', 'Ñно'); 35760 } 35761 35762 var rem100 = number % 100; 35763 35764 if (rem100 > 20 || rem100 < 10) { 35765 switch (rem100 % 10) { 35766 case 1: 35767 return numberWithSuffix(number, unit, 'ви', 'ва', 'во'); 35768 35769 case 2: 35770 return numberWithSuffix(number, unit, 'Ñи', 'Ñа', 'Ñо'); 35771 35772 case 7: 35773 case 8: 35774 return numberWithSuffix(number, unit, 'ми', 'ма', 'мо'); 35775 } 35776 } 35777 35778 return numberWithSuffix(number, unit, 'Ñи', 'Ñа', 'Ñо'); 35779 } 35780 35781 var localize = { 35782 ordinalNumber: ordinalNumber, 35783 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 35784 values: eraValues, 35785 defaultWidth: 'wide' 35786 }), 35787 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 35788 values: quarterValues, 35789 defaultWidth: 'wide', 35790 argumentCallback: function (quarter) { 35791 return Number(quarter) - 1; 35792 } 35793 }), 35794 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 35795 values: monthValues, 35796 defaultWidth: 'wide' 35797 }), 35798 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 35799 values: dayValues, 35800 defaultWidth: 'wide' 35801 }), 35802 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 35803 values: dayPeriodValues, 35804 defaultWidth: 'wide' 35805 }) 35806 }; 35807 /* harmony default export */ 35808 __webpack_exports__["a"] = (localize); 35809 35810 /***/ 35811 }), 35812 /* 481 */ 35813 /***/ (function (module, __webpack_exports__, __webpack_require__) { 35814 35815 "use strict"; 35816 /* harmony import */ 35817 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__ = __webpack_require__(5); 35818 /* harmony import */ 35819 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 35820 35821 35822 var matchOrdinalNumberPattern = /^(\d+)(-?[вÑмÑ][аи]|-?Ñ?(ен|на)|-?(ев|ева))?/i; 35823 var parseOrdinalNumberPattern = /\d+/i; 35824 var matchEraPatterns = { 35825 narrow: /^((пÑ)?н\.?\s?е\.?)/i, 35826 abbreviated: /^((пÑ)?н\.?\s?е\.?)/i, 35827 wide: /^(пÑеди новаÑа еÑа|новаÑа еÑа|нова еÑа)/i 35828 }; 35829 var parseEraPatterns = { 35830 any: [/^п/i, /^н/i] 35831 }; 35832 var matchQuarterPatterns = { 35833 narrow: /^[1234]/i, 35834 abbreviated: /^[1234](-?[вÑÑ]?o?)? ÑÑимеÑ.?/i, 35835 wide: /^[1234](-?[вÑÑ]?о?)? ÑÑимеÑеÑие/i 35836 }; 35837 var parseQuarterPatterns = { 35838 any: [/1/i, /2/i, /3/i, /4/i] 35839 }; 35840 var matchDayPatterns = { 35841 narrow: /^[нпвÑÑ]/i, 35842 short: /^(нд|пн|вÑ|ÑÑ|ÑÑ|пÑ|Ñб)/i, 35843 abbreviated: /^(нед|пон|вÑо|ÑÑÑ|ÑеÑ|пеÑ|ÑÑб)/i, 35844 wide: /^(неделÑ|понеделник|вÑоÑник|ÑÑÑда|ÑеÑвÑÑÑÑк|пеÑÑк|ÑÑбоÑа)/i 35845 }; 35846 var parseDayPatterns = { 35847 narrow: [/^н/i, /^п/i, /^в/i, /^Ñ/i, /^Ñ/i, /^п/i, /^Ñ/i], 35848 any: [/^н[ед]/i, /^п[он]/i, /^вÑ/i, /^ÑÑ/i, /^Ñ[еÑ]/i, /^п[еÑ]/i, /^Ñ[Ñб]/i] 35849 }; 35850 var matchMonthPatterns = { 35851 abbreviated: /^(ÑнÑ|Ñев|маÑ|апÑ|май|Ñни|Ñли|авг|Ñеп|окÑ|ное|дек)/i, 35852 wide: /^(ÑнÑаÑи|ÑевÑÑаÑи|маÑÑ|апÑил|май|Ñни|Ñли|авгÑÑÑ|ÑепÑемвÑи|окÑомвÑи|ноемвÑи|декемвÑи)/i 35853 }; 35854 var parseMonthPatterns = { 35855 any: [/^Ñ/i, /^Ñ/i, /^маÑ/i, /^ап/i, /^май/i, /^Ñн/i, /^Ñл/i, /^ав/i, /^Ñе/i, /^окÑ/i, /^но/i, /^де/i] 35856 }; 35857 var matchDayPeriodPatterns = { 35858 any: /^(пÑеди о|Ñлед о|в по|на о|пÑез|веÑ|ÑÑÑ|Ñледо)/i 35859 }; 35860 var parseDayPeriodPatterns = { 35861 any: { 35862 am: /^пÑеди о/i, 35863 pm: /^Ñлед о/i, 35864 midnight: /^в пол/i, 35865 noon: /^на об/i, 35866 morning: /^ÑÑÑ/i, 35867 afternoon: /^Ñледо/i, 35868 evening: /^веÑ/i, 35869 night: /^пÑез н/i 35870 } 35871 }; 35872 var match = { 35873 ordinalNumber: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 35874 matchPattern: matchOrdinalNumberPattern, 35875 parsePattern: parseOrdinalNumberPattern, 35876 valueCallback: function (value) { 35877 return parseInt(value, 10); 35878 } 35879 }), 35880 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 35881 matchPatterns: matchEraPatterns, 35882 defaultMatchWidth: 'wide', 35883 parsePatterns: parseEraPatterns, 35884 defaultParseWidth: 'any' 35885 }), 35886 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 35887 matchPatterns: matchQuarterPatterns, 35888 defaultMatchWidth: 'wide', 35889 parsePatterns: parseQuarterPatterns, 35890 defaultParseWidth: 'any', 35891 valueCallback: function (index) { 35892 return index + 1; 35893 } 35894 }), 35895 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 35896 matchPatterns: matchMonthPatterns, 35897 defaultMatchWidth: 'wide', 35898 parsePatterns: parseMonthPatterns, 35899 defaultParseWidth: 'any' 35900 }), 35901 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 35902 matchPatterns: matchDayPatterns, 35903 defaultMatchWidth: 'wide', 35904 parsePatterns: parseDayPatterns, 35905 defaultParseWidth: 'any' 35906 }), 35907 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 35908 matchPatterns: matchDayPeriodPatterns, 35909 defaultMatchWidth: 'any', 35910 parsePatterns: parseDayPeriodPatterns, 35911 defaultParseWidth: 'any' 35912 }) 35913 }; 35914 /* harmony default export */ 35915 __webpack_exports__["a"] = (match); 35916 35917 /***/ 35918 }), 35919 /* 482 */ 35920 /***/ (function (module, __webpack_exports__, __webpack_require__) { 35921 35922 "use strict"; 35923 /* harmony import */ 35924 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(483); 35925 /* harmony import */ 35926 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(484); 35927 /* harmony import */ 35928 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(485); 35929 /* harmony import */ 35930 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(186); 35931 /* harmony import */ 35932 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(486); 35933 35934 35935 /** 35936 * @type {Locale} 35937 * @category Locales 35938 * @summary Bengali locale. 35939 * @language Bengali 35940 * @iso-639-2 ben 35941 * @author Touhidur Rahman [@touhidrahman]{@link https://github.com/touhidrahman} 35942 * @author Farhad Yasir [@nutboltu]{@link https://github.com/nutboltu} 35943 */ 35944 35945 var locale = { 35946 code: 'bn', 35947 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 35948 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 35949 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 35950 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 35951 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 35952 options: { 35953 weekStartsOn: 0 35954 /* Sunday */ 35955 , 35956 firstWeekContainsDate: 1 35957 } 35958 }; 35959 /* harmony default export */ 35960 __webpack_exports__["a"] = (locale); 35961 35962 /***/ 35963 }), 35964 /* 483 */ 35965 /***/ (function (module, __webpack_exports__, __webpack_require__) { 35966 35967 "use strict"; 35968 /* harmony export (immutable) */ 35969 __webpack_exports__["a"] = formatDistance; 35970 /* harmony import */ 35971 var __WEBPACK_IMPORTED_MODULE_0__localize_index_js__ = __webpack_require__(186); 35972 35973 var formatDistanceLocale = { 35974 lessThanXSeconds: { 35975 one: 'পà§à¦°à¦¾à§ à§§ সà§à¦à§à¦¨à§à¦¡', 35976 other: 'পà§à¦°à¦¾à§ {{count}} সà§à¦à§à¦¨à§à¦¡' 35977 }, 35978 xSeconds: { 35979 one: 'à§§ সà§à¦à§à¦¨à§à¦¡', 35980 other: '{{count}} সà§à¦à§à¦¨à§à¦¡' 35981 }, 35982 halfAMinute: 'à¦à¦§ মিনিà¦', 35983 lessThanXMinutes: { 35984 one: 'পà§à¦°à¦¾à§ à§§ মিনিà¦', 35985 other: 'পà§à¦°à¦¾à§ {{count}} মিনিà¦' 35986 }, 35987 xMinutes: { 35988 one: 'à§§ মিনিà¦', 35989 other: '{{count}} মিনিà¦' 35990 }, 35991 aboutXHours: { 35992 one: 'পà§à¦°à¦¾à§ à§§ à¦à¦¨à§à¦à¦¾', 35993 other: 'পà§à¦°à¦¾à§ {{count}} à¦à¦¨à§à¦à¦¾' 35994 }, 35995 xHours: { 35996 one: 'à§§ à¦à¦¨à§à¦à¦¾', 35997 other: '{{count}} à¦à¦¨à§à¦à¦¾' 35998 }, 35999 xDays: { 36000 one: 'à§§ দিন', 36001 other: '{{count}} দিন' 36002 }, 36003 aboutXWeeks: { 36004 one: 'পà§à¦°à¦¾à§ à§§ সপà§à¦¤à¦¾à¦¹', 36005 other: 'পà§à¦°à¦¾à§ {{count}} সপà§à¦¤à¦¾à¦¹' 36006 }, 36007 xWeeks: { 36008 one: 'à§§ সপà§à¦¤à¦¾à¦¹', 36009 other: '{{count}} সপà§à¦¤à¦¾à¦¹' 36010 }, 36011 aboutXMonths: { 36012 one: 'পà§à¦°à¦¾à§ à§§ মাস', 36013 other: 'পà§à¦°à¦¾à§ {{count}} মাস' 36014 }, 36015 xMonths: { 36016 one: 'à§§ মাস', 36017 other: '{{count}} মাস' 36018 }, 36019 aboutXYears: { 36020 one: 'পà§à¦°à¦¾à§ à§§ বà¦à¦°', 36021 other: 'পà§à¦°à¦¾à§ {{count}} বà¦à¦°' 36022 }, 36023 xYears: { 36024 one: 'à§§ বà¦à¦°', 36025 other: '{{count}} বà¦à¦°' 36026 }, 36027 overXYears: { 36028 one: 'à§§ বà¦à¦°à§à¦° বà§à¦¶à¦¿', 36029 other: '{{count}} বà¦à¦°à§à¦° বà§à¦¶à¦¿' 36030 }, 36031 almostXYears: { 36032 one: 'পà§à¦°à¦¾à§ à§§ বà¦à¦°', 36033 other: 'পà§à¦°à¦¾à§ {{count}} বà¦à¦°' 36034 } 36035 }; 36036 36037 function formatDistance(token, count, options) { 36038 options = options || {}; 36039 var result; 36040 36041 if (typeof formatDistanceLocale[token] === 'string') { 36042 result = formatDistanceLocale[token]; 36043 } else if (count === 1) { 36044 result = formatDistanceLocale[token].one; 36045 } else { 36046 result = formatDistanceLocale[token].other.replace('{{count}}', __WEBPACK_IMPORTED_MODULE_0__localize_index_js__["a" /* default */].numberToLocale(count)); 36047 } 36048 36049 if (options.addSuffix) { 36050 if (options.comparison > 0) { 36051 return result + ' à¦à¦° মধà§à¦¯à§'; 36052 } else { 36053 return result + ' à¦à¦à§'; 36054 } 36055 } 36056 36057 return result; 36058 } 36059 36060 /***/ 36061 }), 36062 /* 484 */ 36063 /***/ (function (module, __webpack_exports__, __webpack_require__) { 36064 36065 "use strict"; 36066 /* harmony import */ 36067 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 36068 36069 var dateFormats = { 36070 full: 'EEEE, MMMM do, y', 36071 long: 'MMMM do, y', 36072 medium: 'MMM d, y', 36073 short: 'MM/dd/yyyy' 36074 }; 36075 var timeFormats = { 36076 full: 'h:mm:ss a zzzz', 36077 long: 'h:mm:ss a z', 36078 medium: 'h:mm:ss a', 36079 short: 'h:mm a' 36080 }; 36081 var dateTimeFormats = { 36082 full: "{{date}} {{time}} 'সমà§'", 36083 long: "{{date}} {{time}} 'সমà§'", 36084 medium: '{{date}}, {{time}}', 36085 short: '{{date}}, {{time}}' 36086 }; 36087 var formatLong = { 36088 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 36089 formats: dateFormats, 36090 defaultWidth: 'full' 36091 }), 36092 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 36093 formats: timeFormats, 36094 defaultWidth: 'full' 36095 }), 36096 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 36097 formats: dateTimeFormats, 36098 defaultWidth: 'full' 36099 }) 36100 }; 36101 /* harmony default export */ 36102 __webpack_exports__["a"] = (formatLong); 36103 36104 /***/ 36105 }), 36106 /* 485 */ 36107 /***/ (function (module, __webpack_exports__, __webpack_require__) { 36108 36109 "use strict"; 36110 /* harmony export (immutable) */ 36111 __webpack_exports__["a"] = formatRelative; 36112 var formatRelativeLocale = { 36113 lastWeek: "'à¦à¦¤' eeee 'সমà§' p", 36114 yesterday: "'à¦à¦¤à¦à¦¾à¦²' 'সমà§' p", 36115 today: "'à¦à¦' 'সমà§' p", 36116 tomorrow: "'à¦à¦à¦¾à¦®à§à¦à¦¾à¦²' 'সমà§' p", 36117 nextWeek: "eeee 'সমà§' p", 36118 other: 'P' 36119 }; 36120 36121 function formatRelative(token, _date, _baseDate, _options) { 36122 return formatRelativeLocale[token]; 36123 } 36124 36125 /***/ 36126 }), 36127 /* 486 */ 36128 /***/ (function (module, __webpack_exports__, __webpack_require__) { 36129 36130 "use strict"; 36131 /* harmony import */ 36132 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 36133 /* harmony import */ 36134 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 36135 36136 36137 var matchOrdinalNumberPattern = /^(\d+)(ম|à§|রà§à¦¥|ষà§à¦ |শà§|à¦|তম)?/i; 36138 var parseOrdinalNumberPattern = /\d+/i; 36139 var matchEraPatterns = { 36140 narrow: /^(à¦à§à¦°à¦¿à¦à¦ªà§à¦|à¦à§à¦°à¦¿à¦)/i, 36141 abbreviated: /^(à¦à§à¦°à¦¿à¦à¦ªà§à¦°à§à¦¬|à¦à§à¦°à¦¿à¦)/i, 36142 wide: /^(à¦à§à¦°à¦¿à¦¸à§à¦à¦ªà§à¦°à§à¦¬|à¦à§à¦°à¦¿à¦¸à§à¦à¦¾à¦¬à§à¦¦)/i 36143 }; 36144 var parseEraPatterns = { 36145 narrow: [/^à¦à§à¦°à¦¿à¦à¦ªà§à¦/i, /^à¦à§à¦°à¦¿à¦/i], 36146 abbreviated: [/^à¦à§à¦°à¦¿à¦à¦ªà§à¦°à§à¦¬/i, /^à¦à§à¦°à¦¿à¦/i], 36147 wide: [/^à¦à§à¦°à¦¿à¦¸à§à¦à¦ªà§à¦°à§à¦¬/i, /^à¦à§à¦°à¦¿à¦¸à§à¦à¦¾à¦¬à§à¦¦/i] 36148 }; 36149 var matchQuarterPatterns = { 36150 narrow: /^[১২৩৪]/i, 36151 abbreviated: /^[১২৩৪]তà§à¦°à§/i, 36152 wide: /^[১২৩৪](ম|à§|রà§à¦¥)? তà§à¦°à§à¦®à¦¾à¦¸à¦¿à¦/i 36153 }; 36154 var parseQuarterPatterns = { 36155 any: [/à§§/i, /২/i, /à§©/i, /৪/i] 36156 }; 36157 var matchMonthPatterns = { 36158 narrow: /^(à¦à¦¾à¦¨à§|ফà§à¦¬à§à¦°à§|মারà§à¦|à¦à¦ªà§à¦°à¦¿à¦²|মà§|à¦à§à¦¨|à¦à§à¦²à¦¾à¦|à¦à¦à¦¸à§à¦|সà§à¦ªà§à¦|ঠà¦à§à¦à§|নà¦à§|ডিসà§)/i, 36159 abbreviated: /^(à¦à¦¾à¦¨à§|ফà§à¦¬à§à¦°à§|মারà§à¦|à¦à¦ªà§à¦°à¦¿à¦²|মà§|à¦à§à¦¨|à¦à§à¦²à¦¾à¦|à¦à¦à¦¸à§à¦|সà§à¦ªà§à¦|ঠà¦à§à¦à§|নà¦à§|ডিসà§)/i, 36160 wide: /^(à¦à¦¾à¦¨à§à§à¦¾à¦°à¦¿|ফà§à¦¬à§à¦°à§à§à¦¾à¦°à¦¿|মারà§à¦|à¦à¦ªà§à¦°à¦¿à¦²|মà§|à¦à§à¦¨|à¦à§à¦²à¦¾à¦|à¦à¦à¦¸à§à¦|সà§à¦ªà§à¦à§à¦®à§à¦¬à¦°|ঠà¦à§à¦à§à¦¬à¦°|নà¦à§à¦®à§à¦¬à¦°|ডিসà§à¦®à§à¦¬à¦°)/i 36161 }; 36162 var parseMonthPatterns = { 36163 any: [/^à¦à¦¾à¦¨à§/i, /^ফà§à¦¬à§à¦°à§/i, /^মারà§à¦/i, /^à¦à¦ªà§à¦°à¦¿à¦²/i, /^মà§/i, /^à¦à§à¦¨/i, /^à¦à§à¦²à¦¾à¦/i, /^à¦à¦à¦¸à§à¦/i, /^সà§à¦ªà§à¦/i, /^ঠà¦à§à¦à§/i, /^নà¦à§/i, /^ডিসà§/i] 36164 }; 36165 var matchDayPatterns = { 36166 narrow: /^(র|সà§|ম|বà§|বà§|শà§|শ)+/i, 36167 short: /^(রবি|সà§à¦®|মà¦à§à¦à¦²|বà§à¦§|বà§à¦¹|শà§à¦à§à¦°|শনি)+/i, 36168 abbreviated: /^(রবি|সà§à¦®|মà¦à§à¦à¦²|বà§à¦§|বà§à¦¹|শà§à¦à§à¦°|শনি)+/i, 36169 wide: /^(রবিবার|সà§à¦®à¦¬à¦¾à¦°|মà¦à§à¦à¦²à¦¬à¦¾à¦°|বà§à¦§à¦¬à¦¾à¦°|বà§à¦¹à¦¸à§à¦ªà¦¤à¦¿à¦¬à¦¾à¦° |শà§à¦à§à¦°à¦¬à¦¾à¦°|শনিবার)+/i 36170 }; 36171 var parseDayPatterns = { 36172 narrow: [/^র/i, /^সà§/i, /^ম/i, /^বà§/i, /^বà§/i, /^শà§/i, /^শ/i], 36173 short: [/^রবি/i, /^সà§à¦®/i, /^মà¦à§à¦à¦²/i, /^বà§à¦§/i, /^বà§à¦¹/i, /^শà§à¦à§à¦°/i, /^শনি/i], 36174 abbreviated: [/^রবি/i, /^সà§à¦®/i, /^মà¦à§à¦à¦²/i, /^বà§à¦§/i, /^বà§à¦¹/i, /^শà§à¦à§à¦°/i, /^শনি/i], 36175 wide: [/^রবিবার/i, /^সà§à¦®à¦¬à¦¾à¦°/i, /^মà¦à§à¦à¦²à¦¬à¦¾à¦°/i, /^বà§à¦§à¦¬à¦¾à¦°/i, /^বà§à¦¹à¦¸à§à¦ªà¦¤à¦¿à¦¬à¦¾à¦° /i, /^শà§à¦à§à¦°à¦¬à¦¾à¦°/i, /^শনিবার/i] 36176 }; 36177 var matchDayPeriodPatterns = { 36178 narrow: /^(পà§|ঠপ|মধà§à¦¯à¦°à¦¾à¦¤|মধà§à¦¯à¦¾à¦¹à§à¦¨|সà¦à¦¾à¦²|বিà¦à¦¾à¦²|সনà§à¦§à§à¦¯à¦¾|রাত)/i, 36179 abbreviated: /^(পà§à¦°à§à¦¬à¦¾à¦¹à§à¦¨|ঠপরাহà§à¦¨|মধà§à¦¯à¦°à¦¾à¦¤|মধà§à¦¯à¦¾à¦¹à§à¦¨|সà¦à¦¾à¦²|বিà¦à¦¾à¦²|সনà§à¦§à§à¦¯à¦¾|রাত)/i, 36180 wide: /^(পà§à¦°à§à¦¬à¦¾à¦¹à§à¦¨|ঠপরাহà§à¦¨|মধà§à¦¯à¦°à¦¾à¦¤|মধà§à¦¯à¦¾à¦¹à§à¦¨|সà¦à¦¾à¦²|বিà¦à¦¾à¦²|সনà§à¦§à§à¦¯à¦¾|রাত)/i 36181 }; 36182 var parseDayPeriodPatterns = { 36183 any: { 36184 am: /^পà§/i, 36185 pm: /^ঠপ/i, 36186 midnight: /^মধà§à¦¯à¦°à¦¾à¦¤/i, 36187 noon: /^মধà§à¦¯à¦¾à¦¹à§à¦¨/i, 36188 morning: /সà¦à¦¾à¦²/i, 36189 afternoon: /বিà¦à¦¾à¦²/i, 36190 evening: /সনà§à¦§à§à¦¯à¦¾/i, 36191 night: /রাত/i 36192 } 36193 }; 36194 var match = { 36195 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 36196 matchPattern: matchOrdinalNumberPattern, 36197 parsePattern: parseOrdinalNumberPattern, 36198 valueCallback: function (value) { 36199 return parseInt(value, 10); 36200 } 36201 }), 36202 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 36203 matchPatterns: matchEraPatterns, 36204 defaultMatchWidth: 'wide', 36205 parsePatterns: parseEraPatterns, 36206 defaultParseWidth: 'any' 36207 }), 36208 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 36209 matchPatterns: matchQuarterPatterns, 36210 defaultMatchWidth: 'wide', 36211 parsePatterns: parseQuarterPatterns, 36212 defaultParseWidth: 'any', 36213 valueCallback: function (index) { 36214 return index + 1; 36215 } 36216 }), 36217 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 36218 matchPatterns: matchMonthPatterns, 36219 defaultMatchWidth: 'wide', 36220 parsePatterns: parseMonthPatterns, 36221 defaultParseWidth: 'any' 36222 }), 36223 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 36224 matchPatterns: matchDayPatterns, 36225 defaultMatchWidth: 'wide', 36226 parsePatterns: parseDayPatterns, 36227 defaultParseWidth: 'any' 36228 }), 36229 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 36230 matchPatterns: matchDayPeriodPatterns, 36231 defaultMatchWidth: 'any', 36232 parsePatterns: parseDayPeriodPatterns, 36233 defaultParseWidth: 'any' 36234 }) 36235 }; 36236 /* harmony default export */ 36237 __webpack_exports__["a"] = (match); 36238 36239 /***/ 36240 }), 36241 /* 487 */ 36242 /***/ (function (module, __webpack_exports__, __webpack_require__) { 36243 36244 "use strict"; 36245 /* harmony import */ 36246 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(488); 36247 /* harmony import */ 36248 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(489); 36249 /* harmony import */ 36250 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(490); 36251 /* harmony import */ 36252 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(491); 36253 /* harmony import */ 36254 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(492); 36255 36256 36257 /** 36258 * @type {Locale} 36259 * @category Locales 36260 * @summary Catalan locale. 36261 * @language Catalan 36262 * @iso-639-2 cat 36263 * @author Guillermo Grau [@guigrpa]{@link https://github.com/guigrpa} 36264 * @author Alex Vizcaino [@avizcaino]{@link https://github.com/avizcaino} 36265 */ 36266 36267 var locale = { 36268 code: 'ca', 36269 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 36270 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 36271 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 36272 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 36273 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 36274 options: { 36275 weekStartsOn: 1 36276 /* Monday */ 36277 , 36278 firstWeekContainsDate: 4 36279 } 36280 }; 36281 /* harmony default export */ 36282 __webpack_exports__["a"] = (locale); // throw new Error('ca locale is currently unavailable. Please check the progress of converting this locale to v2.0.0 in this issue on Github: TBA') 36283 36284 /***/ 36285 }), 36286 /* 488 */ 36287 /***/ (function (module, __webpack_exports__, __webpack_require__) { 36288 36289 "use strict"; 36290 /* harmony export (immutable) */ 36291 __webpack_exports__["a"] = formatDistance; 36292 /** 36293 * Davant de les xifres que es diuen amb vocal inicial, 1 i 11, s'apostrofen els articles el i la i la preposició de igual que si estiguessin escrits amb lletres. 36294 * l'1 de juliol ('l'u') 36295 * l'11 de novembre ('l'onze') 36296 * l'11a clà usula del contracte ('l'onzena') 36297 * la contractació d'11 jugadors ('d'onze') 36298 * l'aval d'11.000 socis ('d'onze mil') 36299 * 36300 * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=apostrofaci%25F3+davant+xifres&action=Principal&method=detall_completa&numPagina=1&idHit=11236&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=11236&titol=apostrofaci%F3%20davant%20de%20xifres%20%2F%20apostrofaci%F3%20davant%20de%201%20i%2011&numeroResultat=1&clickLink=detall&tipusCerca=cerca.normes 36301 */ 36302 var formatDistanceLocale = { 36303 lessThanXSeconds: { 36304 one: "menys d'un segon", 36305 eleven: "menys d'onze segons", 36306 other: 'menys de {{count}} segons' 36307 }, 36308 xSeconds: { 36309 one: '1 segon', 36310 other: '{{count}} segons' 36311 }, 36312 halfAMinute: 'mig minut', 36313 lessThanXMinutes: { 36314 one: "menys d'un minut", 36315 eleven: "menys d'onze minuts", 36316 other: 'menys de {{count}} minuts' 36317 }, 36318 xMinutes: { 36319 one: '1 minut', 36320 other: '{{count}} minuts' 36321 }, 36322 aboutXHours: { 36323 one: 'aproximadament una hora', 36324 other: 'aproximadament {{count}} hores' 36325 }, 36326 xHours: { 36327 one: '1 hora', 36328 other: '{{count}} hores' 36329 }, 36330 xDays: { 36331 one: '1 dia', 36332 other: '{{count}} dies' 36333 }, 36334 aboutXWeeks: { 36335 one: 'aproximadament una setmana', 36336 other: 'aproximadament {{count}} setmanes' 36337 }, 36338 xWeeks: { 36339 one: '1 setmana', 36340 other: '{{count}} setmanes' 36341 }, 36342 aboutXMonths: { 36343 one: 'aproximadament un mes', 36344 other: 'aproximadament {{count}} mesos' 36345 }, 36346 xMonths: { 36347 one: '1 mes', 36348 other: '{{count}} mesos' 36349 }, 36350 aboutXYears: { 36351 one: 'aproximadament un any', 36352 other: 'aproximadament {{count}} anys' 36353 }, 36354 xYears: { 36355 one: '1 any', 36356 other: '{{count}} anys' 36357 }, 36358 overXYears: { 36359 one: "més d'un any", 36360 eleven: "més d'onze anys", 36361 other: 'més de {{count}} anys' 36362 }, 36363 almostXYears: { 36364 one: 'gairebé un any', 36365 other: 'gairebé {{count}} anys' 36366 } 36367 }; 36368 36369 function formatDistance(token, count, options) { 36370 options = options || {}; 36371 var result; 36372 36373 if (typeof formatDistanceLocale[token] === 'string') { 36374 result = formatDistanceLocale[token]; 36375 } else if (count === 1) { 36376 result = formatDistanceLocale[token].one; 36377 } else if (count === 11 && formatDistanceLocale[token].eleven) { 36378 result = formatDistanceLocale[token].eleven; 36379 } else { 36380 result = formatDistanceLocale[token].other.replace('{{count}}', count); 36381 } 36382 36383 if (options.addSuffix) { 36384 if (options.comparison > 0) { 36385 return 'en ' + result; 36386 } else { 36387 return 'fa ' + result; 36388 } 36389 } 36390 36391 return result; 36392 } 36393 36394 /***/ 36395 }), 36396 /* 489 */ 36397 /***/ (function (module, __webpack_exports__, __webpack_require__) { 36398 36399 "use strict"; 36400 /* harmony import */ 36401 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 36402 36403 var dateFormats = { 36404 full: "EEEE, d 'de' MMMM y", 36405 long: "d 'de' MMMM y", 36406 medium: 'd MMM y', 36407 short: 'dd/MM/y' 36408 }; 36409 var timeFormats = { 36410 full: 'HH:mm:ss zzzz', 36411 long: 'HH:mm:ss z', 36412 medium: 'HH:mm:ss', 36413 short: 'HH:mm' 36414 }; 36415 var dateTimeFormats = { 36416 full: "{{date}} 'a les' {{time}}", 36417 long: "{{date}} 'a les' {{time}}", 36418 medium: '{{date}}, {{time}}', 36419 short: '{{date}}, {{time}}' 36420 }; 36421 var formatLong = { 36422 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 36423 formats: dateFormats, 36424 defaultWidth: 'full' 36425 }), 36426 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 36427 formats: timeFormats, 36428 defaultWidth: 'full' 36429 }), 36430 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 36431 formats: dateTimeFormats, 36432 defaultWidth: 'full' 36433 }) 36434 }; 36435 /* harmony default export */ 36436 __webpack_exports__["a"] = (formatLong); 36437 36438 /***/ 36439 }), 36440 /* 490 */ 36441 /***/ (function (module, __webpack_exports__, __webpack_require__) { 36442 36443 "use strict"; 36444 /* harmony export (immutable) */ 36445 __webpack_exports__["a"] = formatRelative; 36446 var formatRelativeLocale = { 36447 lastWeek: "'el' eeee 'passat a la' LT", 36448 yesterday: "'ahir a la' p", 36449 today: "'avui a la' p", 36450 tomorrow: "'demà a la' p", 36451 nextWeek: "eeee 'a la' p", 36452 other: 'P' 36453 }; 36454 var formatRelativeLocalePlural = { 36455 lastWeek: "'el' eeee 'passat a les' p", 36456 yesterday: "'ahir a les' p", 36457 today: "'avui a les' p", 36458 tomorrow: "'demà a les' p", 36459 nextWeek: "eeee 'a les' p", 36460 other: 'P' 36461 }; 36462 36463 function formatRelative(token, date, _baseDate, _options) { 36464 if (date.getUTCHours() !== 1) { 36465 return formatRelativeLocalePlural[token]; 36466 } 36467 36468 return formatRelativeLocale[token]; 36469 } 36470 36471 /***/ 36472 }), 36473 /* 491 */ 36474 /***/ (function (module, __webpack_exports__, __webpack_require__) { 36475 36476 "use strict"; 36477 /* harmony import */ 36478 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 36479 36480 /** 36481 * General information 36482 * Reference: https://aplicacions.llengua.gencat.cat 36483 * Reference: https://www.uoc.edu/portal/ca/servei-linguistic/convencions/abreviacions/simbols/simbols-habituals.html 36484 */ 36485 36486 /** 36487 * Abans de Crist: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abans+de+crist&action=Principal&method=detall_completa&numPagina=1&idHit=6876&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=6876&titol=abans%20de%20Crist%20(abreviatura)%20/%20abans%20de%20Crist%20(sigla)&numeroResultat=1&clickLink=detall&tipusCerca=cerca.fitxes 36488 * Desprest de Crist: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=despr%E9s+de+crist&action=Principal&method=detall_completa&numPagina=1&idHit=6879&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=6879&titol=despr%E9s%20de%20Crist%20(sigla)%20/%20despr%E9s%20de%20Crist%20(abreviatura)&numeroResultat=1&clickLink=detall&tipusCerca=cerca.fitxes 36489 */ 36490 36491 var eraValues = { 36492 narrow: ['aC', 'dC'], 36493 abbreviated: ['a. de C.', 'd. de C.'], 36494 wide: ['abans de Crist', 'després de Crist'] 36495 }; 36496 var quarterValues = { 36497 narrow: ['1', '2', '3', '4'], 36498 abbreviated: ['T1', 'T2', 'T3', 'T4'], 36499 wide: ['1r trimestre', '2n trimestre', '3r trimestre', '4t trimestre'] 36500 /** 36501 * Dins d'un text convé fer servir la forma sencera dels mesos, ja que sempre és més clar el mot sencer que l'abreviatura, encara que aquesta sigui força coneguda. 36502 * Cal reservar, doncs, les abreviatures per a les llistes o classificacions, els grà fics, les taules o quadres estadÃstics, els textos publicitaris, etc. 36503 * 36504 * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abreviacions+mesos&action=Principal&method=detall_completa&numPagina=1&idHit=8402&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=8402&titol=abreviatures%20dels%20mesos%20de%20l%27any&numeroResultat=5&clickLink=detall&tipusCerca=cerca.fitxes 36505 */ 36506 36507 }; 36508 var monthValues = { 36509 narrow: ['GN', 'FB', 'MÃ', 'AB', 'MG', 'JN', 'JL', 'AG', 'ST', 'OC', 'NV', 'DS'], 36510 36511 /** 36512 * Les abreviatures dels mesos de l'any es formen seguint una de les normes generals de formació d'abreviatures. 36513 * S'escriu la primera sÃl·laba i les consonants de la sÃl·laba següent anteriors a la primera vocal. 36514 * Els mesos de març, maig i juny no s'abreugen perquè són paraules d'una sola sÃl·laba. 36515 */ 36516 abbreviated: ['gen.', 'febr.', 'març', 'abr.', 'maig', 'juny', 'jul.', 'ag.', 'set.', 'oct.', 'nov.', 'des.'], 36517 wide: ['gener', 'febrer', 'març', 'abril', 'maig', 'juny', 'juliol', 'agost', 'setembre', 'octubre', 'novembre', 'desembre'] 36518 /** 36519 * Les abreviatures dels dies de la setmana comencen totes amb la lletra d. 36520 * Tot seguit porten la consonant següent a la i, excepte en el cas de dimarts, dimecres i diumenge, en què aquesta consonant és la m i, per tant, hi podria haver confusió. 36521 * Per evitar-ho, s'ha substituït la m per una t (en el cas de dimarts), una c (en el cas de dimecres) i una g (en el cas de diumenge), respectivament. 36522 * 36523 * Seguint la norma general d'ús de les abreviatures, les dels dies de la setmana sempre porten punt final. 36524 * Igualment, van amb la primera lletra en majúscula quan la paraula sencera també hi aniria. 36525 * En canvi, van amb la primera lletra en minúscula quan la inicial de la paraula sencera també hi aniria. 36526 * 36527 * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abreviatures+dies&action=Principal&method=detall_completa&numPagina=1&idHit=8387&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=8387&titol=abreviatures%20dels%20dies%20de%20la%20setmana&numeroResultat=1&clickLink=detall&tipusCerca=cerca.tot 36528 */ 36529 36530 }; 36531 var dayValues = { 36532 narrow: ['dg.', 'dl.', 'dt.', 'dm.', 'dj.', 'dv.', 'ds.'], 36533 short: ['dg.', 'dl.', 'dt.', 'dm.', 'dj.', 'dv.', 'ds.'], 36534 abbreviated: ['dg.', 'dl.', 'dt.', 'dm.', 'dj.', 'dv.', 'ds.'], 36535 wide: ['diumenge', 'dilluns', 'dimarts', 'dimecres', 'dijous', 'divendres', 'dissabte'] 36536 /** 36537 * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?action=Principal&method=detall&input_cercar=parts+del+dia&numPagina=1&database=FITXES_PUB&idFont=12801&idHit=12801&tipusFont=Fitxes+de+l%27Optimot&numeroResultat=1&databases_avansada=&categories_avansada=&clickLink=detall&titol=Nom+de+les+parts+del+dia&tematica=&tipusCerca=cerca.fitxes 36538 */ 36539 36540 }; 36541 var dayPeriodValues = { 36542 narrow: { 36543 am: 'am', 36544 pm: 'pm', 36545 midnight: 'mitjanit', 36546 noon: 'migdia', 36547 morning: 'matÃ', 36548 afternoon: 'tarda', 36549 evening: 'vespre', 36550 night: 'nit' 36551 }, 36552 abbreviated: { 36553 am: 'a.m.', 36554 pm: 'p.m.', 36555 midnight: 'mitjanit', 36556 noon: 'migdia', 36557 morning: 'matÃ', 36558 afternoon: 'tarda', 36559 evening: 'vespre', 36560 night: 'nit' 36561 }, 36562 wide: { 36563 am: 'ante meridiem', 36564 pm: 'post meridiem', 36565 midnight: 'mitjanit', 36566 noon: 'migdia', 36567 morning: 'matÃ', 36568 afternoon: 'tarda', 36569 evening: 'vespre', 36570 night: 'nit' 36571 } 36572 }; 36573 var formattingDayPeriodValues = { 36574 narrow: { 36575 am: 'am', 36576 pm: 'pm', 36577 midnight: 'de la mitjanit', 36578 noon: 'del migdia', 36579 morning: 'del matÃ', 36580 afternoon: 'de la tarda', 36581 evening: 'del vespre', 36582 night: 'de la nit' 36583 }, 36584 abbreviated: { 36585 am: 'AM', 36586 pm: 'PM', 36587 midnight: 'de la mitjanit', 36588 noon: 'del migdia', 36589 morning: 'del matÃ', 36590 afternoon: 'de la tarda', 36591 evening: 'del vespre', 36592 night: 'de la nit' 36593 }, 36594 wide: { 36595 am: 'ante meridiem', 36596 pm: 'post meridiem', 36597 midnight: 'de la mitjanit', 36598 noon: 'del migdia', 36599 morning: 'del matÃ', 36600 afternoon: 'de la tarda', 36601 evening: 'del vespre', 36602 night: 'de la nit' 36603 } 36604 /** 36605 * Quan van en singular, els nombres ordinals es representen, en forma dâabreviatura, amb la xifra seguida de lâúltima lletra del mot desplegat. 36606 * Ãs optatiu posar punt després de la lletra. 36607 * 36608 * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/pdf/abrevia.pdf#page=18 36609 * 36610 * @param {Number} dirtyNumber 36611 * @param {Object} [_dirtyOptions] 36612 */ 36613 36614 }; 36615 36616 function ordinalNumber(dirtyNumber, _dirtyOptions) { 36617 var number = Number(dirtyNumber); 36618 var rem100 = number % 100; 36619 36620 if (rem100 > 20 || rem100 < 10) { 36621 switch (rem100 % 10) { 36622 case 1: 36623 return number + 'r'; 36624 36625 case 2: 36626 return number + 'n'; 36627 36628 case 3: 36629 return number + 'r'; 36630 36631 case 4: 36632 return number + 't'; 36633 } 36634 } 36635 36636 return number + 'è'; 36637 } 36638 36639 var localize = { 36640 ordinalNumber: ordinalNumber, 36641 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 36642 values: eraValues, 36643 defaultWidth: 'wide' 36644 }), 36645 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 36646 values: quarterValues, 36647 defaultWidth: 'wide', 36648 argumentCallback: function (quarter) { 36649 return Number(quarter) - 1; 36650 } 36651 }), 36652 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 36653 values: monthValues, 36654 defaultWidth: 'wide' 36655 }), 36656 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 36657 values: dayValues, 36658 defaultWidth: 'wide' 36659 }), 36660 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 36661 values: dayPeriodValues, 36662 defaultWidth: 'wide', 36663 formattingValues: formattingDayPeriodValues, 36664 defaultFormattingWidth: 'wide' 36665 }) 36666 }; 36667 /* harmony default export */ 36668 __webpack_exports__["a"] = (localize); 36669 36670 /***/ 36671 }), 36672 /* 492 */ 36673 /***/ (function (module, __webpack_exports__, __webpack_require__) { 36674 36675 "use strict"; 36676 /* harmony import */ 36677 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__ = __webpack_require__(5); 36678 /* harmony import */ 36679 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 36680 36681 36682 var matchOrdinalNumberPattern = /^(\d+)(è|r|n|r|t)?/i; 36683 var parseOrdinalNumberPattern = /\d+/i; 36684 var matchEraPatterns = { 36685 narrow: /^(aC|dC)/i, 36686 abbreviated: /^(a. de C.|d. de C.)/i, 36687 wide: /^(abans de Crist|despr[eé]s de Crist)/i 36688 }; 36689 var parseEraPatterns = { 36690 narrow: [/^aC/i, /^dC/i], 36691 abbreviated: [/^(a. de C.)/i, /^(d. de C.)/i], 36692 wide: [/^(abans de Crist)/i, /^(despr[eé]s de Crist)/i] 36693 }; 36694 var matchQuarterPatterns = { 36695 narrow: /^[1234]/i, 36696 abbreviated: /^T[1234]/i, 36697 wide: /^[1234](è|r|n|r|t)? trimestre/i 36698 }; 36699 var parseQuarterPatterns = { 36700 any: [/1/i, /2/i, /3/i, /4/i] 36701 }; 36702 var matchMonthPatterns = { 36703 narrow: /^(GN|FB|MÃ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i, 36704 abbreviated: /^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i, 36705 wide: /^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i 36706 }; 36707 var parseMonthPatterns = { 36708 narrow: [/^GN/i, /^FB/i, /^MÃ/i, /^AB/i, /^MG/i, /^JN/i, /^JL/i, /^AG/i, /^ST/i, /^OC/i, /^NV/i, /^DS/i], 36709 abbreviated: [/^gen./i, /^febr./i, /^març/i, /^abr./i, /^maig/i, /^juny/i, /^jul./i, /^ag./i, /^set./i, /^oct./i, /^nov./i, /^des./i], 36710 wide: [/^gener/i, /^febrer/i, /^març/i, /^abril/i, /^maig/i, /^juny/i, /^juliol/i, /^agost/i, /^setembre/i, /^octubre/i, /^novembre/i, /^desembre/i] 36711 }; 36712 var matchDayPatterns = { 36713 narrow: /^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, 36714 short: /^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, 36715 abbreviated: /^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, 36716 wide: /^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i 36717 }; 36718 var parseDayPatterns = { 36719 narrow: [/^dg./i, /^dl./i, /^dt./i, /^dm./i, /^dj./i, /^dv./i, /^ds./i], 36720 abbreviated: [/^dg./i, /^dl./i, /^dt./i, /^dm./i, /^dj./i, /^dv./i, /^ds./i], 36721 wide: [/^diumenge/i, /^dilluns/i, /^dimarts/i, /^dimecres/i, /^dijous/i, /^divendres/i, /^disssabte/i] 36722 }; 36723 var matchDayPeriodPatterns = { 36724 narrow: /^(a|p|mn|md|(del|de la) (matÃ|tarda|vespre|nit))/i, 36725 abbreviated: /^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (matÃ|tarda|vespre|nit))/i, 36726 wide: /^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matÃ|tarda|vespre|nit))/i 36727 }; 36728 var parseDayPeriodPatterns = { 36729 any: { 36730 am: /^a/i, 36731 pm: /^p/i, 36732 midnight: /^mitjanit/i, 36733 noon: /^migdia/i, 36734 morning: /matÃ/i, 36735 afternoon: /tarda/i, 36736 evening: /vespre/i, 36737 night: /nit/i 36738 } 36739 }; 36740 var match = { 36741 ordinalNumber: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 36742 matchPattern: matchOrdinalNumberPattern, 36743 parsePattern: parseOrdinalNumberPattern, 36744 valueCallback: function (value) { 36745 return parseInt(value, 10); 36746 } 36747 }), 36748 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 36749 matchPatterns: matchEraPatterns, 36750 defaultMatchWidth: 'wide', 36751 parsePatterns: parseEraPatterns, 36752 defaultParseWidth: 'any' 36753 }), 36754 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 36755 matchPatterns: matchQuarterPatterns, 36756 defaultMatchWidth: 'wide', 36757 parsePatterns: parseQuarterPatterns, 36758 defaultParseWidth: 'any', 36759 valueCallback: function (index) { 36760 return index + 1; 36761 } 36762 }), 36763 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 36764 matchPatterns: matchMonthPatterns, 36765 defaultMatchWidth: 'wide', 36766 parsePatterns: parseMonthPatterns, 36767 defaultParseWidth: 'any' 36768 }), 36769 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 36770 matchPatterns: matchDayPatterns, 36771 defaultMatchWidth: 'wide', 36772 parsePatterns: parseDayPatterns, 36773 defaultParseWidth: 'any' 36774 }), 36775 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 36776 matchPatterns: matchDayPeriodPatterns, 36777 defaultMatchWidth: 'any', 36778 parsePatterns: parseDayPeriodPatterns, 36779 defaultParseWidth: 'any' 36780 }) 36781 }; 36782 /* harmony default export */ 36783 __webpack_exports__["a"] = (match); 36784 36785 /***/ 36786 }), 36787 /* 493 */ 36788 /***/ (function (module, __webpack_exports__, __webpack_require__) { 36789 36790 "use strict"; 36791 /* harmony import */ 36792 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(494); 36793 /* harmony import */ 36794 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(495); 36795 /* harmony import */ 36796 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(496); 36797 /* harmony import */ 36798 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(497); 36799 /* harmony import */ 36800 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(498); 36801 36802 36803 /** 36804 * @type {Locale} 36805 * @category Locales 36806 * @summary Czech locale. 36807 * @language Czech 36808 * @iso-639-2 ces 36809 * @author David Rus [@davidrus]{@link https://github.com/davidrus} 36810 * @author Pavel Hrách [@SilenY]{@link https://github.com/SilenY} 36811 * @author Jozef BÃroÅ¡ [@JozefBiros]{@link https://github.com/JozefBiros} 36812 */ 36813 36814 var locale = { 36815 code: 'cs', 36816 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 36817 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 36818 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 36819 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 36820 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 36821 options: { 36822 weekStartsOn: 1 36823 /* Monday */ 36824 , 36825 firstWeekContainsDate: 4 36826 } 36827 }; 36828 /* harmony default export */ 36829 __webpack_exports__["a"] = (locale); 36830 36831 /***/ 36832 }), 36833 /* 494 */ 36834 /***/ (function (module, __webpack_exports__, __webpack_require__) { 36835 36836 "use strict"; 36837 /* harmony export (immutable) */ 36838 __webpack_exports__["a"] = formatDistance; 36839 var formatDistanceLocale = { 36840 lessThanXSeconds: { 36841 one: { 36842 regular: 'ménÄ než vteÅina', 36843 past: 'pÅed ménÄ než vteÅinou', 36844 future: 'za ménÄ než vteÅinu' 36845 }, 36846 few: { 36847 regular: 'ménÄ než {{count}} vteÅiny', 36848 past: 'pÅed ménÄ než {{count}} vteÅinami', 36849 future: 'za ménÄ než {{count}} vteÅiny' 36850 }, 36851 many: { 36852 regular: 'ménÄ než {{count}} vteÅin', 36853 past: 'pÅed ménÄ než {{count}} vteÅinami', 36854 future: 'za ménÄ než {{count}} vteÅin' 36855 } 36856 }, 36857 xSeconds: { 36858 one: { 36859 regular: 'vteÅina', 36860 past: 'pÅed vteÅinou', 36861 future: 'za vteÅinu' 36862 }, 36863 few: { 36864 regular: '{{count}} vteÅiny', 36865 past: 'pÅed {{count}} vteÅinami', 36866 future: 'za {{count}} vteÅiny' 36867 }, 36868 many: { 36869 regular: '{{count}} vteÅin', 36870 past: 'pÅed {{count}} vteÅinami', 36871 future: 'za {{count}} vteÅin' 36872 } 36873 }, 36874 halfAMinute: { 36875 other: { 36876 regular: 'půl minuty', 36877 past: 'pÅed půl minutou', 36878 future: 'za půl minuty' 36879 } 36880 }, 36881 lessThanXMinutes: { 36882 one: { 36883 regular: 'ménÄ než minuta', 36884 past: 'pÅed ménÄ než minutou', 36885 future: 'za ménÄ než minutu' 36886 }, 36887 few: { 36888 regular: 'ménÄ než {{count}} minuty', 36889 past: 'pÅed ménÄ než {{count}} minutami', 36890 future: 'za ménÄ než {{count}} minuty' 36891 }, 36892 many: { 36893 regular: 'ménÄ než {{count}} minut', 36894 past: 'pÅed ménÄ než {{count}} minutami', 36895 future: 'za ménÄ než {{count}} minut' 36896 } 36897 }, 36898 xMinutes: { 36899 one: { 36900 regular: 'minuta', 36901 past: 'pÅed minutou', 36902 future: 'za minutu' 36903 }, 36904 few: { 36905 regular: '{{count}} minuty', 36906 past: 'pÅed {{count}} minutami', 36907 future: 'za {{count}} minuty' 36908 }, 36909 many: { 36910 regular: '{{count}} minut', 36911 past: 'pÅed {{count}} minutami', 36912 future: 'za {{count}} minut' 36913 } 36914 }, 36915 aboutXHours: { 36916 one: { 36917 regular: 'pÅibližnÄ hodina', 36918 past: 'pÅibližnÄ pÅed hodinou', 36919 future: 'pÅibližnÄ za hodinu' 36920 }, 36921 few: { 36922 regular: 'pÅibližnÄ {{count}} hodiny', 36923 past: 'pÅibližnÄ pÅed {{count}} hodinami', 36924 future: 'pÅibližnÄ za {{count}} hodiny' 36925 }, 36926 many: { 36927 regular: 'pÅibližnÄ {{count}} hodin', 36928 past: 'pÅibližnÄ pÅed {{count}} hodinami', 36929 future: 'pÅibližnÄ za {{count}} hodin' 36930 } 36931 }, 36932 xHours: { 36933 one: { 36934 regular: 'hodina', 36935 past: 'pÅed hodinou', 36936 future: 'za hodinu' 36937 }, 36938 few: { 36939 regular: '{{count}} hodiny', 36940 past: 'pÅed {{count}} hodinami', 36941 future: 'za {{count}} hodiny' 36942 }, 36943 many: { 36944 regular: '{{count}} hodin', 36945 past: 'pÅed {{count}} hodinami', 36946 future: 'za {{count}} hodin' 36947 } 36948 }, 36949 xDays: { 36950 one: { 36951 regular: 'den', 36952 past: 'pÅed dnem', 36953 future: 'za den' 36954 }, 36955 few: { 36956 regular: '{{count}} dny', 36957 past: 'pÅed {{count}} dny', 36958 future: 'za {{count}} dny' 36959 }, 36960 many: { 36961 regular: '{{count}} dnÃ', 36962 past: 'pÅed {{count}} dny', 36963 future: 'za {{count}} dnÃ' 36964 } 36965 }, 36966 aboutXWeeks: { 36967 one: { 36968 regular: 'pÅibližnÄ týden', 36969 past: 'pÅibližnÄ pÅed týdnem', 36970 future: 'pÅibližnÄ za týden' 36971 }, 36972 few: { 36973 regular: 'pÅibližnÄ {{count}} týdny', 36974 past: 'pÅibližnÄ pÅed {{count}} týdny', 36975 future: 'pÅibližnÄ za {{count}} týdny' 36976 }, 36977 many: { 36978 regular: 'pÅibližnÄ {{count}} týdnů', 36979 past: 'pÅibližnÄ pÅed {{count}} týdny', 36980 future: 'pÅibližnÄ za {{count}} týdnů' 36981 } 36982 }, 36983 xWeeks: { 36984 one: { 36985 regular: 'týden', 36986 past: 'pÅed týdnem', 36987 future: 'za týden' 36988 }, 36989 few: { 36990 regular: '{{count}} týdny', 36991 past: 'pÅed {{count}} týdny', 36992 future: 'za {{count}} týdny' 36993 }, 36994 many: { 36995 regular: '{{count}} týdnů', 36996 past: 'pÅed {{count}} týdny', 36997 future: 'za {{count}} týdnů' 36998 } 36999 }, 37000 aboutXMonths: { 37001 one: { 37002 regular: 'pÅibližnÄ mÄsÃc', 37003 past: 'pÅibližnÄ pÅed mÄsÃcem', 37004 future: 'pÅibližnÄ za mÄsÃc' 37005 }, 37006 few: { 37007 regular: 'pÅibližnÄ {{count}} mÄsÃce', 37008 past: 'pÅibližnÄ pÅed {{count}} mÄsÃci', 37009 future: 'pÅibližnÄ za {{count}} mÄsÃce' 37010 }, 37011 many: { 37012 regular: 'pÅibližnÄ {{count}} mÄsÃců', 37013 past: 'pÅibližnÄ pÅed {{count}} mÄsÃci', 37014 future: 'pÅibližnÄ za {{count}} mÄsÃců' 37015 } 37016 }, 37017 xMonths: { 37018 one: { 37019 regular: 'mÄsÃc', 37020 past: 'pÅed mÄsÃcem', 37021 future: 'za mÄsÃc' 37022 }, 37023 few: { 37024 regular: '{{count}} mÄsÃce', 37025 past: 'pÅed {{count}} mÄsÃci', 37026 future: 'za {{count}} mÄsÃce' 37027 }, 37028 many: { 37029 regular: '{{count}} mÄsÃců', 37030 past: 'pÅed {{count}} mÄsÃci', 37031 future: 'za {{count}} mÄsÃců' 37032 } 37033 }, 37034 aboutXYears: { 37035 one: { 37036 regular: 'pÅibližnÄ rok', 37037 past: 'pÅibližnÄ pÅed rokem', 37038 future: 'pÅibližnÄ za rok' 37039 }, 37040 few: { 37041 regular: 'pÅibližnÄ {{count}} roky', 37042 past: 'pÅibližnÄ pÅed {{count}} roky', 37043 future: 'pÅibližnÄ za {{count}} roky' 37044 }, 37045 many: { 37046 regular: 'pÅibližnÄ {{count}} roků', 37047 past: 'pÅibližnÄ pÅed {{count}} roky', 37048 future: 'pÅibližnÄ za {{count}} roků' 37049 } 37050 }, 37051 xYears: { 37052 one: { 37053 regular: 'rok', 37054 past: 'pÅed rokem', 37055 future: 'za rok' 37056 }, 37057 few: { 37058 regular: '{{count}} roky', 37059 past: 'pÅed {{count}} roky', 37060 future: 'za {{count}} roky' 37061 }, 37062 many: { 37063 regular: '{{count}} roků', 37064 past: 'pÅed {{count}} roky', 37065 future: 'za {{count}} roků' 37066 } 37067 }, 37068 overXYears: { 37069 one: { 37070 regular: 'vÃce než rok', 37071 past: 'pÅed vÃce než rokem', 37072 future: 'za vÃce než rok' 37073 }, 37074 few: { 37075 regular: 'vÃce než {{count}} roky', 37076 past: 'pÅed vÃce než {{count}} roky', 37077 future: 'za vÃce než {{count}} roky' 37078 }, 37079 many: { 37080 regular: 'vÃce než {{count}} roků', 37081 past: 'pÅed vÃce než {{count}} roky', 37082 future: 'za vÃce než {{count}} roků' 37083 } 37084 }, 37085 almostXYears: { 37086 one: { 37087 regular: 'skoro rok', 37088 past: 'skoro pÅed rokem', 37089 future: 'skoro za rok' 37090 }, 37091 few: { 37092 regular: 'skoro {{count}} roky', 37093 past: 'skoro pÅed {{count}} roky', 37094 future: 'skoro za {{count}} roky' 37095 }, 37096 many: { 37097 regular: 'skoro {{count}} roků', 37098 past: 'skoro pÅed {{count}} roky', 37099 future: 'skoro za {{count}} roků' 37100 } 37101 } 37102 }; 37103 37104 function formatDistance(token, count, options) { 37105 options = options || {}; 37106 var scheme = formatDistanceLocale[token]; // cs pluralization 37107 37108 var pluralToken; 37109 37110 if (typeof scheme.other === 'object') { 37111 pluralToken = 'other'; 37112 } else if (count === 1) { 37113 pluralToken = 'one'; 37114 } else if (count > 1 && count < 5 || count === 0) { 37115 pluralToken = 'few'; 37116 } else { 37117 pluralToken = 'many'; 37118 } // times 37119 37120 37121 var suffixExist = options.addSuffix === true; 37122 var comparison = options.comparison; 37123 var timeToken; 37124 37125 if (suffixExist && comparison === -1) { 37126 timeToken = 'past'; 37127 } else if (suffixExist && comparison === 1) { 37128 timeToken = 'future'; 37129 } else { 37130 timeToken = 'regular'; 37131 } 37132 37133 return scheme[pluralToken][timeToken].replace('{{count}}', count); 37134 } 37135 37136 /***/ 37137 }), 37138 /* 495 */ 37139 /***/ (function (module, __webpack_exports__, __webpack_require__) { 37140 37141 "use strict"; 37142 /* harmony import */ 37143 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 37144 37145 var dateFormats = { 37146 full: 'EEEE, d. MMMM yyyy', 37147 long: 'd. MMMM yyyy', 37148 medium: 'd.M.yyyy', 37149 short: 'd.M.yy' 37150 }; 37151 var timeFormats = { 37152 full: 'H:mm:ss zzzz', 37153 long: 'H:mm:ss z', 37154 medium: 'H:mm:ss', 37155 short: 'H:mm' 37156 }; 37157 var dateTimeFormats = { 37158 full: "{{date}} 'v' {{time}}", 37159 long: "{{date}} 'v' {{time}}", 37160 medium: '{{date}}, {{time}}', 37161 short: '{{date}}, {{time}}' 37162 }; 37163 var formatLong = { 37164 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 37165 formats: dateFormats, 37166 defaultWidth: 'full' 37167 }), 37168 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 37169 formats: timeFormats, 37170 defaultWidth: 'full' 37171 }), 37172 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 37173 formats: dateTimeFormats, 37174 defaultWidth: 'full' 37175 }) 37176 }; 37177 /* harmony default export */ 37178 __webpack_exports__["a"] = (formatLong); 37179 37180 /***/ 37181 }), 37182 /* 496 */ 37183 /***/ (function (module, __webpack_exports__, __webpack_require__) { 37184 37185 "use strict"; 37186 /* harmony export (immutable) */ 37187 __webpack_exports__["a"] = formatRelative; 37188 var accusativeWeekdays = ['nedÄli', 'pondÄlÃ', 'úterý', 'stÅedu', 'Ätvrtek', 'pátek', 'sobotu']; 37189 var formatRelativeLocale = { 37190 lastWeek: "'poslednÃ' eeee 've' p", 37191 yesterday: "'vÄera v' p", 37192 today: "'dnes v' p", 37193 tomorrow: "'zÃtra v' p", 37194 nextWeek: function (date, _baseDate, _options) { 37195 var day = date.getUTCDay(); 37196 return "'v " + accusativeWeekdays[day] + " o' p"; 37197 }, 37198 other: 'P' 37199 }; 37200 37201 function formatRelative(token, date, baseDate, options) { 37202 var format = formatRelativeLocale[token]; 37203 37204 if (typeof format === 'function') { 37205 return format(date, baseDate, options); 37206 } 37207 37208 return format; 37209 } 37210 37211 /***/ 37212 }), 37213 /* 497 */ 37214 /***/ (function (module, __webpack_exports__, __webpack_require__) { 37215 37216 "use strict"; 37217 /* harmony import */ 37218 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 37219 37220 var eraValues = { 37221 narrow: ['pÅ. n. l.', 'n. l.'], 37222 abbreviated: ['pÅ. n. l.', 'n. l.'], 37223 wide: ['pÅed naÅ¡Ãm letopoÄtem', 'naÅ¡eho letopoÄtu'] 37224 }; 37225 var quarterValues = { 37226 narrow: ['1', '2', '3', '4'], 37227 abbreviated: ['1. ÄtvrtletÃ', '2. ÄtvrtletÃ', '3. ÄtvrtletÃ', '4. ÄtvrtletÃ'], 37228 wide: ['1. ÄtvrtletÃ', '2. ÄtvrtletÃ', '3. ÄtvrtletÃ', '4. ÄtvrtletÃ'] 37229 }; 37230 var monthValues = { 37231 narrow: ['L', 'Ã', 'B', 'D', 'K', 'Ä', 'Ä', 'S', 'Z', 'Å', 'L', 'P'], 37232 abbreviated: ['led', 'úno', 'bÅe', 'dub', 'kvÄ', 'Ävn', 'Ävc', 'srp', 'záÅ', 'ÅÃj', 'lis', 'pro'], 37233 wide: ['leden', 'únor', 'bÅezen', 'duben', 'kvÄten', 'Äerven', 'Äervenec', 'srpen', 'záÅÃ', 'ÅÃjen', 'listopad', 'prosinec'] 37234 }; 37235 var formattingMonthValues = { 37236 narrow: ['L', 'Ã', 'B', 'D', 'K', 'Ä', 'Ä', 'S', 'Z', 'Å', 'L', 'P'], 37237 abbreviated: ['led', 'úno', 'bÅe', 'dub', 'kvÄ', 'Ävn', 'Ävc', 'srp', 'záÅ', 'ÅÃj', 'lis', 'pro'], 37238 wide: ['ledna', 'února', 'bÅezna', 'dubna', 'kvÄtna', 'Äervna', 'Äervence', 'srpna', 'záÅÃ', 'ÅÃjna', 'listopadu', 'prosince'] 37239 }; 37240 var dayValues = { 37241 narrow: ['ne', 'po', 'út', 'st', 'Ät', 'pá', 'so'], 37242 short: ['ne', 'po', 'út', 'st', 'Ät', 'pá', 'so'], 37243 abbreviated: ['ned', 'pon', 'úte', 'stÅ', 'Ätv', 'pát', 'sob'], 37244 wide: ['nedÄle', 'pondÄlÃ', 'úterý', 'stÅeda', 'Ätvrtek', 'pátek', 'sobota'] 37245 }; 37246 var dayPeriodValues = { 37247 narrow: { 37248 am: 'dop.', 37249 pm: 'odp.', 37250 midnight: 'půlnoc', 37251 noon: 'poledne', 37252 morning: 'ráno', 37253 afternoon: 'odpoledne', 37254 evening: 'veÄer', 37255 night: 'noc' 37256 }, 37257 abbreviated: { 37258 am: 'dop.', 37259 pm: 'odp.', 37260 midnight: 'půlnoc', 37261 noon: 'poledne', 37262 morning: 'ráno', 37263 afternoon: 'odpoledne', 37264 evening: 'veÄer', 37265 night: 'noc' 37266 }, 37267 wide: { 37268 am: 'dopoledne', 37269 pm: 'odpoledne', 37270 midnight: 'půlnoc', 37271 noon: 'poledne', 37272 morning: 'ráno', 37273 afternoon: 'odpoledne', 37274 evening: 'veÄer', 37275 night: 'noc' 37276 } 37277 }; 37278 var formattingDayPeriodValues = { 37279 narrow: { 37280 am: 'dop.', 37281 pm: 'odp.', 37282 midnight: 'půlnoc', 37283 noon: 'poledne', 37284 morning: 'ráno', 37285 afternoon: 'odpoledne', 37286 evening: 'veÄer', 37287 night: 'noc' 37288 }, 37289 abbreviated: { 37290 am: 'dop.', 37291 pm: 'odp.', 37292 midnight: 'půlnoc', 37293 noon: 'poledne', 37294 morning: 'ráno', 37295 afternoon: 'odpoledne', 37296 evening: 'veÄer', 37297 night: 'noc' 37298 }, 37299 wide: { 37300 am: 'dopoledne', 37301 pm: 'odpoledne', 37302 midnight: 'půlnoc', 37303 noon: 'poledne', 37304 morning: 'ráno', 37305 afternoon: 'odpoledne', 37306 evening: 'veÄer', 37307 night: 'noc' 37308 } 37309 }; 37310 37311 function ordinalNumber(dirtyNumber) { 37312 var number = Number(dirtyNumber); 37313 return number + '.'; 37314 } 37315 37316 var localize = { 37317 ordinalNumber: ordinalNumber, 37318 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 37319 values: eraValues, 37320 defaultWidth: 'wide' 37321 }), 37322 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 37323 values: quarterValues, 37324 defaultWidth: 'wide', 37325 argumentCallback: function (quarter) { 37326 return Number(quarter) - 1; 37327 } 37328 }), 37329 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 37330 values: monthValues, 37331 defaultWidth: 'wide', 37332 formattingValues: formattingMonthValues, 37333 defaultFormattingWidth: 'wide' 37334 }), 37335 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 37336 values: dayValues, 37337 defaultWidth: 'wide' 37338 }), 37339 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 37340 values: dayPeriodValues, 37341 defaultWidth: 'wide', 37342 formattingValues: formattingDayPeriodValues, 37343 defaultFormattingWidth: 'wide' 37344 }) 37345 }; 37346 /* harmony default export */ 37347 __webpack_exports__["a"] = (localize); 37348 37349 /***/ 37350 }), 37351 /* 498 */ 37352 /***/ (function (module, __webpack_exports__, __webpack_require__) { 37353 37354 "use strict"; 37355 /* harmony import */ 37356 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__ = __webpack_require__(5); 37357 /* harmony import */ 37358 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 37359 37360 37361 var matchOrdinalNumberPattern = /^(\d+)\.?/i; 37362 var parseOrdinalNumberPattern = /\d+/i; 37363 var matchEraPatterns = { 37364 narrow: /^(p[År]ed Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, 37365 abbreviated: /^(pe[År]ed Kr\.|pe[År]ed n\. l\.|po Kr\.|n\. l\.)/i, 37366 wide: /^(p[År]ed Kristem|pred na[Å¡s][Ãi]m letopo[Äc]tem|po Kristu|na[Å¡s]eho letopo[Äc]tu)/i 37367 }; 37368 var parseEraPatterns = { 37369 any: [/^p[År]/i, /^(po|n)/i] 37370 }; 37371 var matchQuarterPatterns = { 37372 narrow: /^[1234]/i, 37373 abbreviated: /^[1234]\. [Äc]tvrtlet[Ãi]/i, 37374 wide: /^[1234]\. [Äc]tvrtlet[Ãi]/i 37375 }; 37376 var parseQuarterPatterns = { 37377 any: [/1/i, /2/i, /3/i, /4/i] 37378 }; 37379 var matchMonthPatterns = { 37380 narrow: /^[lúubdkÄcszÅrlp]/i, 37381 abbreviated: /^(led|[úu]no|b[År]e|dub|kv[Äe]|[Äc]vn|[Äc]vc|srp|z[áa][År]|[År][Ãi]j|lis|pro)/i, 37382 wide: /^(leden|ledna|[úu]nora?|b[År]ezen|b[År]ezna|duben|dubna|kv[Äe]ten|kv[Äe]tna|[Äc]erven(ec|ce)?|[Äc]ervna|srpen|srpna|z[áa][År][Ãi]|[År][Ãi]jen|[År][Ãi]jna|listopad(a|u)?|prosinec|prosince)/i 37383 }; 37384 var parseMonthPatterns = { 37385 narrow: [/^l/i, /^[úu]/i, /^b/i, /^d/i, /^k/i, /^[Äc]/i, /^[Äc]/i, /^s/i, /^z/i, /^[År]/i, /^l/i, /^p/i], 37386 any: [/^led/i, /^[úu]n/i, /^b[År]e/i, /^dub/i, /^kv[Äe]/i, /^[Äc]vn|[Äc]erven(?!\w)|[Äc]ervna/i, /^[Äc]vc|[Äc]erven(ec|ce)/i, /^srp/i, /^z[áa][År]/i, /^[År][Ãi]j/i, /^lis/i, /^pro/i] 37387 }; 37388 var matchDayPatterns = { 37389 narrow: /^[npuúsÄps]/i, 37390 short: /^(ne|po|[úu]t|st|[Äc]t|p[áa]|so)/i, 37391 abbreviated: /^(ne|po|[úu]t|st|[Äc]t|p[áa]|so)/i, 37392 wide: /^(ned[Äe]le|pond[Äe]l[Ãi]|[úu]ter[ýy]|st[År]eda|[Äc]tvrtek|p[áa]tek|sobota)/i 37393 }; 37394 var parseDayPatterns = { 37395 narrow: [/^n/i, /^p/i, /^[úu]/i, /^s/i, /^[Äc]/i, /^p/i, /^s/i], 37396 any: [/^ne/i, /^po/i, /^ut/i, /^st/i, /^[Äc]t/i, /^p/i, /^so/i] 37397 }; 37398 var matchDayPeriodPatterns = { 37399 any: /^dopoledne|dop\.?|odpoledne|odp\.?|půlnoc|poledne|r[áa]no|odpoledne|ve[Äc]er|(v )?noci/i 37400 }; 37401 var parseDayPeriodPatterns = { 37402 any: { 37403 am: /^dop/i, 37404 pm: /^odp/i, 37405 midnight: /^p[ůu]lnoc/i, 37406 noon: /^poledne/i, 37407 morning: /r[áa]no/i, 37408 afternoon: /odpoledne/i, 37409 evening: /ve[Äc]er/i, 37410 night: /noc/i 37411 } 37412 }; 37413 var match = { 37414 ordinalNumber: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 37415 matchPattern: matchOrdinalNumberPattern, 37416 parsePattern: parseOrdinalNumberPattern, 37417 valueCallback: function (value) { 37418 return parseInt(value, 10); 37419 } 37420 }), 37421 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 37422 matchPatterns: matchEraPatterns, 37423 defaultMatchWidth: 'wide', 37424 parsePatterns: parseEraPatterns, 37425 defaultParseWidth: 'any' 37426 }), 37427 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 37428 matchPatterns: matchQuarterPatterns, 37429 defaultMatchWidth: 'wide', 37430 parsePatterns: parseQuarterPatterns, 37431 defaultParseWidth: 'any', 37432 valueCallback: function (index) { 37433 return index + 1; 37434 } 37435 }), 37436 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 37437 matchPatterns: matchMonthPatterns, 37438 defaultMatchWidth: 'wide', 37439 parsePatterns: parseMonthPatterns, 37440 defaultParseWidth: 'any' 37441 }), 37442 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 37443 matchPatterns: matchDayPatterns, 37444 defaultMatchWidth: 'wide', 37445 parsePatterns: parseDayPatterns, 37446 defaultParseWidth: 'any' 37447 }), 37448 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 37449 matchPatterns: matchDayPeriodPatterns, 37450 defaultMatchWidth: 'any', 37451 parsePatterns: parseDayPeriodPatterns, 37452 defaultParseWidth: 'any' 37453 }) 37454 }; 37455 /* harmony default export */ 37456 __webpack_exports__["a"] = (match); 37457 37458 /***/ 37459 }), 37460 /* 499 */ 37461 /***/ (function (module, __webpack_exports__, __webpack_require__) { 37462 37463 "use strict"; 37464 /* harmony import */ 37465 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(500); 37466 /* harmony import */ 37467 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(501); 37468 /* harmony import */ 37469 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(502); 37470 /* harmony import */ 37471 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(503); 37472 /* harmony import */ 37473 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(504); 37474 37475 37476 /** 37477 * @type {Locale} 37478 * @category Locales 37479 * @summary Welsh locale. 37480 * @language Welsh 37481 * @iso-639-2 cym 37482 * @author Elwyn Malethan [@elmomalmo]{@link https://github.com/elmomalmo} 37483 */ 37484 37485 var locale = { 37486 code: 'cy', 37487 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 37488 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 37489 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 37490 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 37491 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 37492 options: { 37493 weekStartsOn: 0 37494 /* Sunday */ 37495 , 37496 firstWeekContainsDate: 1 37497 } 37498 }; 37499 /* harmony default export */ 37500 __webpack_exports__["a"] = (locale); 37501 37502 /***/ 37503 }), 37504 /* 500 */ 37505 /***/ (function (module, __webpack_exports__, __webpack_require__) { 37506 37507 "use strict"; 37508 /* harmony export (immutable) */ 37509 __webpack_exports__["a"] = formatDistance; 37510 var formatDistanceLocale = { 37511 lessThanXSeconds: { 37512 one: 'llai na eiliad', 37513 other: 'llai na {{count}} eiliad' 37514 }, 37515 xSeconds: { 37516 one: '1 eiliad', 37517 other: '{{count}} eiliad' 37518 }, 37519 halfAMinute: 'hanner munud', 37520 lessThanXMinutes: { 37521 one: 'llai na munud', 37522 two: 'llai na 2 funud', 37523 other: 'llai na {{count}} munud' 37524 }, 37525 xMinutes: { 37526 one: '1 munud', 37527 two: '2 funud', 37528 other: '{{count}} munud' 37529 }, 37530 aboutXHours: { 37531 one: 'tua 1 awr', 37532 other: 'tua {{count}} awr' 37533 }, 37534 xHours: { 37535 one: '1 awr', 37536 other: '{{count}} awr' 37537 }, 37538 xDays: { 37539 one: '1 diwrnod', 37540 two: '2 ddiwrnod', 37541 other: '{{count}} diwrnod' 37542 }, 37543 aboutXWeeks: { 37544 one: 'tua 1 wythnos', 37545 two: 'tua pythefnos', 37546 other: 'tua {{count}} wythnos' 37547 }, 37548 xWeeks: { 37549 one: '1 wythnos', 37550 two: 'pythefnos', 37551 other: '{{count}} wythnos' 37552 }, 37553 aboutXMonths: { 37554 one: 'tua 1 mis', 37555 two: 'tua 2 fis', 37556 other: 'tua {{count}} mis' 37557 }, 37558 xMonths: { 37559 one: '1 mis', 37560 two: '2 fis', 37561 other: '{{count}} mis' 37562 }, 37563 aboutXYears: { 37564 one: 'tua 1 flwyddyn', 37565 two: 'tua 2 flynedd', 37566 other: 'tua {{count}} mlynedd' 37567 }, 37568 xYears: { 37569 one: '1 flwyddyn', 37570 two: '2 flynedd', 37571 other: '{{count}} mlynedd' 37572 }, 37573 overXYears: { 37574 one: 'dros 1 flwyddyn', 37575 two: 'dros 2 flynedd', 37576 other: 'dros {{count}} mlynedd' 37577 }, 37578 almostXYears: { 37579 one: 'bron 1 flwyddyn', 37580 two: 'bron 2 flynedd', 37581 other: 'bron {{count}} mlynedd' 37582 } 37583 }; 37584 37585 function formatDistance(token, count, options) { 37586 options = options || {}; 37587 var result; 37588 37589 if (typeof formatDistanceLocale[token] === 'string') { 37590 result = formatDistanceLocale[token]; 37591 } else if (count === 1) { 37592 result = formatDistanceLocale[token].one; 37593 } else if (count === 2 && !!formatDistanceLocale[token].two) { 37594 result = formatDistanceLocale[token].two; 37595 } else { 37596 result = formatDistanceLocale[token].other.replace('{{count}}', count); 37597 } 37598 37599 if (options.addSuffix) { 37600 if (options.comparison > 0) { 37601 return 'mewn ' + result; 37602 } else { 37603 return result + ' yn ôl'; 37604 } 37605 } 37606 37607 return result; 37608 } 37609 37610 /***/ 37611 }), 37612 /* 501 */ 37613 /***/ (function (module, __webpack_exports__, __webpack_require__) { 37614 37615 "use strict"; 37616 /* harmony import */ 37617 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 37618 37619 var dateFormats = { 37620 full: 'EEEE, d MMMM yyyy', 37621 long: 'd MMMM yyyy', 37622 medium: 'd MMM yyyy', 37623 short: 'dd/MM/yyyy' 37624 }; 37625 var timeFormats = { 37626 full: 'h:mm:ss a zzzz', 37627 long: 'h:mm:ss a z', 37628 medium: 'h:mm:ss a', 37629 short: 'h:mm a' 37630 }; 37631 var dateTimeFormats = { 37632 full: "{{date}} 'am' {{time}}", 37633 long: "{{date}} 'am' {{time}}", 37634 medium: '{{date}}, {{time}}', 37635 short: '{{date}}, {{time}}' 37636 }; 37637 var formatLong = { 37638 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 37639 formats: dateFormats, 37640 defaultWidth: 'full' 37641 }), 37642 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 37643 formats: timeFormats, 37644 defaultWidth: 'full' 37645 }), 37646 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 37647 formats: dateTimeFormats, 37648 defaultWidth: 'full' 37649 }) 37650 }; 37651 /* harmony default export */ 37652 __webpack_exports__["a"] = (formatLong); 37653 37654 /***/ 37655 }), 37656 /* 502 */ 37657 /***/ (function (module, __webpack_exports__, __webpack_require__) { 37658 37659 "use strict"; 37660 /* harmony export (immutable) */ 37661 __webpack_exports__["a"] = formatRelative; 37662 var formatRelativeLocale = { 37663 lastWeek: "eeee 'diwethaf am' p", 37664 yesterday: "'ddoe am' p", 37665 today: "'heddiw am' p", 37666 tomorrow: "'yfory am' p", 37667 nextWeek: "eeee 'am' p", 37668 other: 'P' 37669 }; 37670 37671 function formatRelative(token, _date, _baseDate, _options) { 37672 return formatRelativeLocale[token]; 37673 } 37674 37675 /***/ 37676 }), 37677 /* 503 */ 37678 /***/ (function (module, __webpack_exports__, __webpack_require__) { 37679 37680 "use strict"; 37681 /* harmony import */ 37682 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 37683 37684 var eraValues = { 37685 narrow: ['C', 'O'], 37686 abbreviated: ['CC', 'OC'], 37687 wide: ['Cyn Crist', 'Ar ôl Crist'] 37688 }; 37689 var quarterValues = { 37690 narrow: ['1', '2', '3', '4'], 37691 abbreviated: ['Ch1', 'Ch2', 'Ch3', 'Ch4'], 37692 wide: ['Chwarter 1af', '2ail chwarter', '3ydd chwarter', '4ydd chwarter'] // Note: in English, the names of days of the week and months are capitalized. 37693 // If you are making a new locale based on this one, check if the same is true for the language you're working on. 37694 // Generally, formatted dates should look like they are in the middle of a sentence, 37695 // e.g. in Spanish language the weekdays and months should be in the lowercase. 37696 37697 }; 37698 var monthValues = { 37699 narrow: ['I', 'Ch', 'Ma', 'E', 'Mi', 'Me', 'G', 'A', 'Md', 'H', 'T', 'Rh'], 37700 abbreviated: ['Ion', 'Chwe', 'Maw', 'Ebr', 'Mai', 'Meh', 'Gor', 'Aws', 'Med', 'Hyd', 'Tach', 'Rhag'], 37701 wide: ['Ionawr', 'Chwefror', 'Mawrth', 'Ebrill', 'Mai', 'Mehefin', 'Gorffennaf', 'Awst', 'Medi', 'Hydref', 'Tachwedd', 'Rhagfyr'] 37702 }; 37703 var dayValues = { 37704 narrow: ['S', 'Ll', 'M', 'M', 'I', 'G', 'S'], 37705 short: ['Su', 'Ll', 'Ma', 'Me', 'Ia', 'Gw', 'Sa'], 37706 abbreviated: ['Sul', 'Llun', 'Maw', 'Mer', 'Iau', 'Gwe', 'Sad'], 37707 wide: ['dydd Sul', 'dydd Llun', 'dydd Mawrth', 'dydd Mercher', 'dydd Iau', 'dydd Gwener', 'dydd Sadwrn'] 37708 }; 37709 var dayPeriodValues = { 37710 narrow: { 37711 am: 'b', 37712 pm: 'h', 37713 midnight: 'hn', 37714 noon: 'hd', 37715 morning: 'bore', 37716 afternoon: 'prynhawn', 37717 evening: "gyda'r nos", 37718 night: 'nos' 37719 }, 37720 abbreviated: { 37721 am: 'yb', 37722 pm: 'yh', 37723 midnight: 'hanner nos', 37724 noon: 'hanner dydd', 37725 morning: 'bore', 37726 afternoon: 'prynhawn', 37727 evening: "gyda'r nos", 37728 night: 'nos' 37729 }, 37730 wide: { 37731 am: 'y.b.', 37732 pm: 'y.h.', 37733 midnight: 'hanner nos', 37734 noon: 'hanner dydd', 37735 morning: 'bore', 37736 afternoon: 'prynhawn', 37737 evening: "gyda'r nos", 37738 night: 'nos' 37739 } 37740 }; 37741 var formattingDayPeriodValues = { 37742 narrow: { 37743 am: 'b', 37744 pm: 'h', 37745 midnight: 'hn', 37746 noon: 'hd', 37747 morning: 'yn y bore', 37748 afternoon: 'yn y prynhawn', 37749 evening: "gyda'r nos", 37750 night: 'yn y nos' 37751 }, 37752 abbreviated: { 37753 am: 'yb', 37754 pm: 'yh', 37755 midnight: 'hanner nos', 37756 noon: 'hanner dydd', 37757 morning: 'yn y bore', 37758 afternoon: 'yn y prynhawn', 37759 evening: "gyda'r nos", 37760 night: 'yn y nos' 37761 }, 37762 wide: { 37763 am: 'y.b.', 37764 pm: 'y.h.', 37765 midnight: 'hanner nos', 37766 noon: 'hanner dydd', 37767 morning: 'yn y bore', 37768 afternoon: 'yn y prynhawn', 37769 evening: "gyda'r nos", 37770 night: 'yn y nos' 37771 } 37772 }; 37773 37774 function ordinalNumber(dirtyNumber, _dirtyOptions) { 37775 var number = Number(dirtyNumber); 37776 37777 if (number < 20) { 37778 switch (number) { 37779 case 0: 37780 return number + 'fed'; 37781 37782 case 1: 37783 return number + 'af'; 37784 37785 case 2: 37786 return number + 'ail'; 37787 37788 case 3: 37789 case 4: 37790 return number + 'ydd'; 37791 37792 case 5: 37793 case 6: 37794 return number + 'ed'; 37795 37796 case 7: 37797 case 8: 37798 case 9: 37799 case 10: 37800 case 12: 37801 case 15: 37802 case 18: 37803 return number + 'fed'; 37804 37805 case 11: 37806 case 13: 37807 case 14: 37808 case 16: 37809 case 17: 37810 case 19: 37811 return number + 'eg'; 37812 } 37813 } else if (number >= 50 && number <= 60 || number === 80 || number >= 100) { 37814 return number + 'fed'; 37815 } 37816 37817 return number + 'ain'; 37818 } 37819 37820 var localize = { 37821 ordinalNumber: ordinalNumber, 37822 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 37823 values: eraValues, 37824 defaultWidth: 'wide' 37825 }), 37826 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 37827 values: quarterValues, 37828 defaultWidth: 'wide', 37829 argumentCallback: function (quarter) { 37830 return Number(quarter) - 1; 37831 } 37832 }), 37833 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 37834 values: monthValues, 37835 defaultWidth: 'wide' 37836 }), 37837 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 37838 values: dayValues, 37839 defaultWidth: 'wide' 37840 }), 37841 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 37842 values: dayPeriodValues, 37843 defaultWidth: 'wide', 37844 formattingValues: formattingDayPeriodValues, 37845 defaultFormattingWidth: 'wide' 37846 }) 37847 }; 37848 /* harmony default export */ 37849 __webpack_exports__["a"] = (localize); 37850 37851 /***/ 37852 }), 37853 /* 504 */ 37854 /***/ (function (module, __webpack_exports__, __webpack_require__) { 37855 37856 "use strict"; 37857 /* harmony import */ 37858 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 37859 /* harmony import */ 37860 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 37861 37862 37863 var matchOrdinalNumberPattern = /^(\d+)(af|ail|ydd|ed|fed|eg|ain)?/i; 37864 var parseOrdinalNumberPattern = /\d+/i; 37865 var matchEraPatterns = { 37866 narrow: /^(c|o)/i, 37867 abbreviated: /^(c\.?\s?c\.?|o\.?\s?c\.?)/i, 37868 wide: /^(cyn christ|ar ôl crist|ar ol crist)/i 37869 }; 37870 var parseEraPatterns = { 37871 wide: [/^c/i, /^(ar ôl crist|ar ol crist)/i], 37872 any: [/^c/i, /^o/i] 37873 }; 37874 var matchQuarterPatterns = { 37875 narrow: /^[1234]/i, 37876 abbreviated: /^ch[1234]/i, 37877 wide: /^(chwarter 1af)|([234](ail|ydd)? chwarter)/i 37878 }; 37879 var parseQuarterPatterns = { 37880 any: [/1/i, /2/i, /3/i, /4/i] 37881 }; 37882 var matchMonthPatterns = { 37883 narrow: /^(i|ch|m|e|g|a|h|t|rh)/i, 37884 abbreviated: /^(ion|chwe|maw|ebr|mai|meh|gor|aws|med|hyd|tach|rhag)/i, 37885 wide: /^(ionawr|chwefror|mawrth|ebrill|mai|mehefin|gorffennaf|awst|medi|hydref|tachwedd|rhagfyr)/i 37886 }; 37887 var parseMonthPatterns = { 37888 narrow: [/^i/i, /^ch/i, /^m/i, /^e/i, /^m/i, /^m/i, /^g/i, /^a/i, /^m/i, /^h/i, /^t/i, /^rh/i], 37889 any: [/^io/i, /^ch/i, /^maw/i, /^e/i, /^mai/i, /^meh/i, /^g/i, /^a/i, /^med/i, /^h/i, /^t/i, /^rh/i] 37890 }; 37891 var matchDayPatterns = { 37892 narrow: /^(s|ll|m|i|g)/i, 37893 short: /^(su|ll|ma|me|ia|gw|sa)/i, 37894 abbreviated: /^(sul|llun|maw|mer|iau|gwe|sad)/i, 37895 wide: /^dydd (sul|llun|mawrth|mercher|iau|gwener|sadwrn)/i 37896 }; 37897 var parseDayPatterns = { 37898 narrow: [/^s/i, /^ll/i, /^m/i, /^m/i, /^i/i, /^g/i, /^s/i], 37899 wide: [/^dydd su/i, /^dydd ll/i, /^dydd ma/i, /^dydd me/i, /^dydd i/i, /^dydd g/i, /^dydd sa/i], 37900 any: [/^su/i, /^ll/i, /^ma/i, /^me/i, /^i/i, /^g/i, /^sa/i] 37901 }; 37902 var matchDayPeriodPatterns = { 37903 narrow: /^(b|h|hn|hd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i, 37904 any: /^(y\.?\s?[bh]\.?|hanner nos|hanner dydd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i 37905 }; 37906 var parseDayPeriodPatterns = { 37907 any: { 37908 am: /^b|(y\.?\s?b\.?)/i, 37909 pm: /^h|(y\.?\s?h\.?)|(yr hwyr)/i, 37910 midnight: /^hn|hanner nos/i, 37911 noon: /^hd|hanner dydd/i, 37912 morning: /bore/i, 37913 afternoon: /prynhawn/i, 37914 evening: /^gyda'r nos$/i, 37915 night: /blah/i 37916 } 37917 }; 37918 var match = { 37919 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 37920 matchPattern: matchOrdinalNumberPattern, 37921 parsePattern: parseOrdinalNumberPattern, 37922 valueCallback: function (value) { 37923 return parseInt(value, 10); 37924 } 37925 }), 37926 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 37927 matchPatterns: matchEraPatterns, 37928 defaultMatchWidth: 'wide', 37929 parsePatterns: parseEraPatterns, 37930 defaultParseWidth: 'any' 37931 }), 37932 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 37933 matchPatterns: matchQuarterPatterns, 37934 defaultMatchWidth: 'wide', 37935 parsePatterns: parseQuarterPatterns, 37936 defaultParseWidth: 'any', 37937 valueCallback: function (index) { 37938 return index + 1; 37939 } 37940 }), 37941 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 37942 matchPatterns: matchMonthPatterns, 37943 defaultMatchWidth: 'wide', 37944 parsePatterns: parseMonthPatterns, 37945 defaultParseWidth: 'any' 37946 }), 37947 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 37948 matchPatterns: matchDayPatterns, 37949 defaultMatchWidth: 'wide', 37950 parsePatterns: parseDayPatterns, 37951 defaultParseWidth: 'any' 37952 }), 37953 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 37954 matchPatterns: matchDayPeriodPatterns, 37955 defaultMatchWidth: 'any', 37956 parsePatterns: parseDayPeriodPatterns, 37957 defaultParseWidth: 'any' 37958 }) 37959 }; 37960 /* harmony default export */ 37961 __webpack_exports__["a"] = (match); 37962 37963 /***/ 37964 }), 37965 /* 505 */ 37966 /***/ (function (module, __webpack_exports__, __webpack_require__) { 37967 37968 "use strict"; 37969 /* harmony import */ 37970 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(506); 37971 /* harmony import */ 37972 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(507); 37973 /* harmony import */ 37974 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(508); 37975 /* harmony import */ 37976 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(509); 37977 /* harmony import */ 37978 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(510); 37979 37980 37981 /** 37982 * @type {Locale} 37983 * @category Locales 37984 * @summary Danish locale. 37985 * @language Danish 37986 * @iso-639-2 dan 37987 * @author Mathias Wøbbe [@MathiasKandelborg]{@link https://github.com/MathiasKandelborg} 37988 * @author Anders B. Hansen [@Andersbiha]{@link https://github.com/Andersbiha} 37989 * @author [@kgram]{@link https://github.com/kgram} 37990 * @author [@stefanbugge]{@link https://github.com/stefanbugge} 37991 */ 37992 37993 var locale = { 37994 code: 'da', 37995 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 37996 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 37997 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 37998 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 37999 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 38000 options: { 38001 weekStartsOn: 1 38002 /* Monday */ 38003 , 38004 firstWeekContainsDate: 4 38005 } 38006 }; 38007 /* harmony default export */ 38008 __webpack_exports__["a"] = (locale); 38009 38010 /***/ 38011 }), 38012 /* 506 */ 38013 /***/ (function (module, __webpack_exports__, __webpack_require__) { 38014 38015 "use strict"; 38016 /* harmony export (immutable) */ 38017 __webpack_exports__["a"] = formatDistance; 38018 var formatDistanceLocale = { 38019 lessThanXSeconds: { 38020 one: 'mindre end ét sekund', 38021 other: 'mindre end {{count}} sekunder' 38022 }, 38023 xSeconds: { 38024 one: '1 sekund', 38025 other: '{{count}} sekunder' 38026 }, 38027 halfAMinute: 'ét halvt minut', 38028 lessThanXMinutes: { 38029 one: 'mindre end ét minut', 38030 other: 'mindre end {{count}} minutter' 38031 }, 38032 xMinutes: { 38033 one: '1 minut', 38034 other: '{{count}} minutter' 38035 }, 38036 aboutXHours: { 38037 one: 'cirka 1 time', 38038 other: 'cirka {{count}} timer' 38039 }, 38040 xHours: { 38041 one: '1 time', 38042 other: '{{count}} timer' 38043 }, 38044 xDays: { 38045 one: '1 dag', 38046 other: '{{count}} dage' 38047 }, 38048 aboutXWeeks: { 38049 one: 'cirka 1 uge', 38050 other: 'cirka {{count}} uger' 38051 }, 38052 xWeeks: { 38053 one: '1 uge', 38054 other: '{{count}} uger' 38055 }, 38056 aboutXMonths: { 38057 one: 'cirka 1 mÃ¥ned', 38058 other: 'cirka {{count}} mÃ¥neder' 38059 }, 38060 xMonths: { 38061 one: '1 mÃ¥ned', 38062 other: '{{count}} mÃ¥neder' 38063 }, 38064 aboutXYears: { 38065 one: 'cirka 1 Ã¥r', 38066 other: 'cirka {{count}} Ã¥r' 38067 }, 38068 xYears: { 38069 one: '1 Ã¥r', 38070 other: '{{count}} Ã¥r' 38071 }, 38072 overXYears: { 38073 one: 'over 1 Ã¥r', 38074 other: 'over {{count}} Ã¥r' 38075 }, 38076 almostXYears: { 38077 one: 'næsten 1 Ã¥r', 38078 other: 'næsten {{count}} Ã¥r' 38079 } 38080 }; 38081 38082 function formatDistance(token, count, options) { 38083 options = options || {}; 38084 var result; 38085 38086 if (typeof formatDistanceLocale[token] === 'string') { 38087 result = formatDistanceLocale[token]; 38088 } else if (count === 1) { 38089 result = formatDistanceLocale[token].one; 38090 } else { 38091 result = formatDistanceLocale[token].other.replace('{{count}}', count); 38092 } 38093 38094 if (options.addSuffix) { 38095 if (options.comparison > 0) { 38096 return 'om ' + result; 38097 } else { 38098 return result + ' siden'; 38099 } 38100 } 38101 38102 return result; 38103 } 38104 38105 /***/ 38106 }), 38107 /* 507 */ 38108 /***/ (function (module, __webpack_exports__, __webpack_require__) { 38109 38110 "use strict"; 38111 /* harmony import */ 38112 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 38113 38114 var dateFormats = { 38115 full: "EEEE 'den' d. MMMM y", 38116 long: 'd. MMMM y', 38117 medium: 'd. MMM y', 38118 short: 'dd/MM/y' 38119 }; 38120 var timeFormats = { 38121 full: 'HH:mm:ss zzzz', 38122 long: 'HH:mm:ss z', 38123 medium: 'HH:mm:ss', 38124 short: 'HH:mm' 38125 }; 38126 var dateTimeFormats = { 38127 full: "{{date}} 'kl'. {{time}}", 38128 long: "{{date}} 'kl'. {{time}}", 38129 medium: '{{date}} {{time}}', 38130 short: '{{date}} {{time}}' 38131 }; 38132 var formatLong = { 38133 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 38134 formats: dateFormats, 38135 defaultWidth: 'full' 38136 }), 38137 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 38138 formats: timeFormats, 38139 defaultWidth: 'full' 38140 }), 38141 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 38142 formats: dateTimeFormats, 38143 defaultWidth: 'full' 38144 }) 38145 }; 38146 /* harmony default export */ 38147 __webpack_exports__["a"] = (formatLong); 38148 38149 /***/ 38150 }), 38151 /* 508 */ 38152 /***/ (function (module, __webpack_exports__, __webpack_require__) { 38153 38154 "use strict"; 38155 /* harmony export (immutable) */ 38156 __webpack_exports__["a"] = formatRelative; 38157 var formatRelativeLocale = { 38158 lastWeek: "'sidste' eeee 'kl.' p", 38159 yesterday: "'i gÃ¥r kl.' p", 38160 today: "'i dag kl.' p", 38161 tomorrow: "'i morgen kl.' p", 38162 nextWeek: "'pÃ¥' eeee 'kl.' p", 38163 other: 'P' 38164 }; 38165 38166 function formatRelative(token, _date, _baseDate, _options) { 38167 return formatRelativeLocale[token]; 38168 } 38169 38170 /***/ 38171 }), 38172 /* 509 */ 38173 /***/ (function (module, __webpack_exports__, __webpack_require__) { 38174 38175 "use strict"; 38176 /* harmony import */ 38177 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 38178 38179 var eraValues = { 38180 narrow: ['fvt', 'vt'], 38181 abbreviated: ['f.v.t.', 'v.t.'], 38182 wide: ['før vesterlandsk tidsregning', 'vesterlandsk tidsregning'] 38183 }; 38184 var quarterValues = { 38185 narrow: ['1', '2', '3', '4'], 38186 abbreviated: ['1. kvt.', '2. kvt.', '3. kvt.', '4. kvt.'], 38187 wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] 38188 }; 38189 var monthValues = { 38190 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], 38191 abbreviated: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'], 38192 wide: ['januar', 'februar', 'marts', 'april', 'maj', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'december'] // Note that 'Days - abbreviated - Formatting' has periods at the end. 38193 // https://www.unicode.org/cldr/charts/32/summary/da.html#1760 38194 // This makes grammatical sense in danish, as most abbreviations have periods. 38195 38196 }; 38197 var dayValues = { 38198 narrow: ['S', 'M', 'T', 'O', 'T', 'F', 'L'], 38199 short: ['sø', 'ma', 'ti', 'on', 'to', 'fr', 'lø'], 38200 abbreviated: ['søn.', 'man.', 'tir.', 'ons.', 'tor.', 'fre.', 'lør.'], 38201 wide: ['søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag'] 38202 }; 38203 var dayPeriodValues = { 38204 narrow: { 38205 am: 'a', 38206 pm: 'p', 38207 midnight: 'midnat', 38208 noon: 'middag', 38209 morning: 'morgen', 38210 afternoon: 'eftermiddag', 38211 evening: 'aften', 38212 night: 'nat' 38213 }, 38214 abbreviated: { 38215 am: 'AM', 38216 pm: 'PM', 38217 midnight: 'midnat', 38218 noon: 'middag', 38219 morning: 'morgen', 38220 afternoon: 'eftermiddag', 38221 evening: 'aften', 38222 night: 'nat' 38223 }, 38224 wide: { 38225 am: 'a.m.', 38226 pm: 'p.m.', 38227 midnight: 'midnat', 38228 noon: 'middag', 38229 morning: 'morgen', 38230 afternoon: 'eftermiddag', 38231 evening: 'aften', 38232 night: 'nat' 38233 } 38234 }; 38235 var formattingDayPeriodValues = { 38236 narrow: { 38237 am: 'a', 38238 pm: 'p', 38239 midnight: 'midnat', 38240 noon: 'middag', 38241 morning: 'om morgenen', 38242 afternoon: 'om eftermiddagen', 38243 evening: 'om aftenen', 38244 night: 'om natten' 38245 }, 38246 abbreviated: { 38247 am: 'AM', 38248 pm: 'PM', 38249 midnight: 'midnat', 38250 noon: 'middag', 38251 morning: 'om morgenen', 38252 afternoon: 'om eftermiddagen', 38253 evening: 'om aftenen', 38254 night: 'om natten' 38255 }, 38256 wide: { 38257 am: 'a.m.', 38258 pm: 'p.m.', 38259 midnight: 'midnat', 38260 noon: 'middag', 38261 morning: 'om morgenen', 38262 afternoon: 'om eftermiddagen', 38263 evening: 'om aftenen', 38264 night: 'om natten' 38265 } 38266 }; 38267 38268 function ordinalNumber(dirtyNumber) { 38269 var number = Number(dirtyNumber); 38270 return number + '.'; 38271 } 38272 38273 var localize = { 38274 ordinalNumber: ordinalNumber, 38275 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 38276 values: eraValues, 38277 defaultWidth: 'wide' 38278 }), 38279 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 38280 values: quarterValues, 38281 defaultWidth: 'wide', 38282 argumentCallback: function (quarter) { 38283 return Number(quarter) - 1; 38284 } 38285 }), 38286 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 38287 values: monthValues, 38288 defaultWidth: 'wide' 38289 }), 38290 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 38291 values: dayValues, 38292 defaultWidth: 'wide' 38293 }), 38294 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 38295 values: dayPeriodValues, 38296 defaultWidth: 'wide', 38297 formattingValues: formattingDayPeriodValues, 38298 defaultFormattingWidth: 'wide' 38299 }) 38300 }; 38301 /* harmony default export */ 38302 __webpack_exports__["a"] = (localize); 38303 38304 /***/ 38305 }), 38306 /* 510 */ 38307 /***/ (function (module, __webpack_exports__, __webpack_require__) { 38308 38309 "use strict"; 38310 /* harmony import */ 38311 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__ = __webpack_require__(5); 38312 /* harmony import */ 38313 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 38314 38315 38316 var matchOrdinalNumberPattern = /^(\d+)(\.)?/i; 38317 var parseOrdinalNumberPattern = /\d+/i; 38318 var matchEraPatterns = { 38319 narrow: /^(fKr|fvt|eKr|vt)/i, 38320 abbreviated: /^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i, 38321 wide: /^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i 38322 }; 38323 var parseEraPatterns = { 38324 any: [/^f/i, /^(v|e)/i] 38325 }; 38326 var matchQuarterPatterns = { 38327 narrow: /^[1234]/i, 38328 abbreviated: /^[1234]. kvt\./i, 38329 wide: /^[1234]\.? kvartal/i 38330 }; 38331 var parseQuarterPatterns = { 38332 any: [/1/i, /2/i, /3/i, /4/i] 38333 }; 38334 var matchMonthPatterns = { 38335 narrow: /^[jfmasond]/i, 38336 abbreviated: /^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, 38337 wide: /^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i 38338 }; 38339 var parseMonthPatterns = { 38340 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 38341 any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] 38342 }; 38343 var matchDayPatterns = { 38344 narrow: /^[smtofl]/i, 38345 short: /^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i, 38346 abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i, 38347 wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i 38348 }; 38349 var parseDayPatterns = { 38350 narrow: [/^s/i, /^m/i, /^t/i, /^o/i, /^t/i, /^f/i, /^l/i], 38351 any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i] 38352 }; 38353 var matchDayPeriodPatterns = { 38354 narrow: /^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i, 38355 any: /^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i 38356 }; 38357 var parseDayPeriodPatterns = { 38358 any: { 38359 am: /^a/i, 38360 pm: /^p/i, 38361 midnight: /midnat/i, 38362 noon: /middag/i, 38363 morning: /morgen/i, 38364 afternoon: /eftermiddag/i, 38365 evening: /aften/i, 38366 night: /nat/i 38367 } 38368 }; 38369 var match = { 38370 ordinalNumber: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 38371 matchPattern: matchOrdinalNumberPattern, 38372 parsePattern: parseOrdinalNumberPattern, 38373 valueCallback: function (value) { 38374 return parseInt(value, 10); 38375 } 38376 }), 38377 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 38378 matchPatterns: matchEraPatterns, 38379 defaultMatchWidth: 'wide', 38380 parsePatterns: parseEraPatterns, 38381 defaultParseWidth: 'any' 38382 }), 38383 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 38384 matchPatterns: matchQuarterPatterns, 38385 defaultMatchWidth: 'wide', 38386 parsePatterns: parseQuarterPatterns, 38387 defaultParseWidth: 'any', 38388 valueCallback: function (index) { 38389 return index + 1; 38390 } 38391 }), 38392 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 38393 matchPatterns: matchMonthPatterns, 38394 defaultMatchWidth: 'wide', 38395 parsePatterns: parseMonthPatterns, 38396 defaultParseWidth: 'any' 38397 }), 38398 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 38399 matchPatterns: matchDayPatterns, 38400 defaultMatchWidth: 'wide', 38401 parsePatterns: parseDayPatterns, 38402 defaultParseWidth: 'any' 38403 }), 38404 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 38405 matchPatterns: matchDayPeriodPatterns, 38406 defaultMatchWidth: 'any', 38407 parsePatterns: parseDayPeriodPatterns, 38408 defaultParseWidth: 'any' 38409 }) 38410 }; 38411 /* harmony default export */ 38412 __webpack_exports__["a"] = (match); 38413 38414 /***/ 38415 }), 38416 /* 511 */ 38417 /***/ (function (module, __webpack_exports__, __webpack_require__) { 38418 38419 "use strict"; 38420 /* harmony import */ 38421 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(512); 38422 /* harmony import */ 38423 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(513); 38424 /* harmony import */ 38425 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(514); 38426 /* harmony import */ 38427 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(515); 38428 /* harmony import */ 38429 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(516); 38430 38431 38432 /** 38433 * @type {Locale} 38434 * @category Locales 38435 * @summary German locale. 38436 * @language German 38437 * @iso-639-2 deu 38438 * @author Thomas Eilmsteiner [@DeMuu]{@link https://github.com/DeMuu} 38439 * @author Asia [@asia-t]{@link https://github.com/asia-t} 38440 * @author Van Vuong Ngo [@vanvuongngo]{@link https://github.com/vanvuongngo} 38441 * @author RomanErnst [@pex]{@link https://github.com/pex} 38442 * @author Philipp Keck [@Philipp91]{@link https://github.com/Philipp91} 38443 */ 38444 38445 var locale = { 38446 code: 'de', 38447 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 38448 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 38449 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 38450 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 38451 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 38452 options: { 38453 weekStartsOn: 1 38454 /* Monday */ 38455 , 38456 firstWeekContainsDate: 4 38457 } 38458 }; 38459 /* harmony default export */ 38460 __webpack_exports__["a"] = (locale); 38461 38462 /***/ 38463 }), 38464 /* 512 */ 38465 /***/ (function (module, __webpack_exports__, __webpack_require__) { 38466 38467 "use strict"; 38468 /* harmony export (immutable) */ 38469 __webpack_exports__["a"] = formatDistance; 38470 var formatDistanceLocale = { 38471 lessThanXSeconds: { 38472 standalone: { 38473 one: 'weniger als eine Sekunde', 38474 other: 'weniger als {{count}} Sekunden' 38475 }, 38476 withPreposition: { 38477 one: 'weniger als einer Sekunde', 38478 other: 'weniger als {{count}} Sekunden' 38479 } 38480 }, 38481 xSeconds: { 38482 standalone: { 38483 one: 'eine Sekunde', 38484 other: '{{count}} Sekunden' 38485 }, 38486 withPreposition: { 38487 one: 'einer Sekunde', 38488 other: '{{count}} Sekunden' 38489 } 38490 }, 38491 halfAMinute: { 38492 standalone: 'eine halbe Minute', 38493 withPreposition: 'einer halben Minute' 38494 }, 38495 lessThanXMinutes: { 38496 standalone: { 38497 one: 'weniger als eine Minute', 38498 other: 'weniger als {{count}} Minuten' 38499 }, 38500 withPreposition: { 38501 one: 'weniger als einer Minute', 38502 other: 'weniger als {{count}} Minuten' 38503 } 38504 }, 38505 xMinutes: { 38506 standalone: { 38507 one: 'eine Minute', 38508 other: '{{count}} Minuten' 38509 }, 38510 withPreposition: { 38511 one: 'einer Minute', 38512 other: '{{count}} Minuten' 38513 } 38514 }, 38515 aboutXHours: { 38516 standalone: { 38517 one: 'etwa eine Stunde', 38518 other: 'etwa {{count}} Stunden' 38519 }, 38520 withPreposition: { 38521 one: 'etwa einer Stunde', 38522 other: 'etwa {{count}} Stunden' 38523 } 38524 }, 38525 xHours: { 38526 standalone: { 38527 one: 'eine Stunde', 38528 other: '{{count}} Stunden' 38529 }, 38530 withPreposition: { 38531 one: 'einer Stunde', 38532 other: '{{count}} Stunden' 38533 } 38534 }, 38535 xDays: { 38536 standalone: { 38537 one: 'ein Tag', 38538 other: '{{count}} Tage' 38539 }, 38540 withPreposition: { 38541 one: 'einem Tag', 38542 other: '{{count}} Tagen' 38543 } 38544 }, 38545 aboutXWeeks: { 38546 standalone: { 38547 one: 'etwa ein Woche', 38548 other: 'etwa {{count}} Wochen' 38549 }, 38550 withPreposition: { 38551 one: 'etwa einem Woche', 38552 other: 'etwa {{count}} Wochen' 38553 } 38554 }, 38555 xWeeks: { 38556 standalone: { 38557 one: 'ein Woche', 38558 other: '{{count}} Wochen' 38559 }, 38560 withPreposition: { 38561 one: 'einem Woche', 38562 other: '{{count}} Wochen' 38563 } 38564 }, 38565 aboutXMonths: { 38566 standalone: { 38567 one: 'etwa ein Monat', 38568 other: 'etwa {{count}} Monate' 38569 }, 38570 withPreposition: { 38571 one: 'etwa einem Monat', 38572 other: 'etwa {{count}} Monaten' 38573 } 38574 }, 38575 xMonths: { 38576 standalone: { 38577 one: 'ein Monat', 38578 other: '{{count}} Monate' 38579 }, 38580 withPreposition: { 38581 one: 'einem Monat', 38582 other: '{{count}} Monaten' 38583 } 38584 }, 38585 aboutXYears: { 38586 standalone: { 38587 one: 'etwa ein Jahr', 38588 other: 'etwa {{count}} Jahre' 38589 }, 38590 withPreposition: { 38591 one: 'etwa einem Jahr', 38592 other: 'etwa {{count}} Jahren' 38593 } 38594 }, 38595 xYears: { 38596 standalone: { 38597 one: 'ein Jahr', 38598 other: '{{count}} Jahre' 38599 }, 38600 withPreposition: { 38601 one: 'einem Jahr', 38602 other: '{{count}} Jahren' 38603 } 38604 }, 38605 overXYears: { 38606 standalone: { 38607 one: 'mehr als ein Jahr', 38608 other: 'mehr als {{count}} Jahre' 38609 }, 38610 withPreposition: { 38611 one: 'mehr als einem Jahr', 38612 other: 'mehr als {{count}} Jahren' 38613 } 38614 }, 38615 almostXYears: { 38616 standalone: { 38617 one: 'fast ein Jahr', 38618 other: 'fast {{count}} Jahre' 38619 }, 38620 withPreposition: { 38621 one: 'fast einem Jahr', 38622 other: 'fast {{count}} Jahren' 38623 } 38624 } 38625 }; 38626 38627 function formatDistance(token, count, options) { 38628 options = options || {}; 38629 var usageGroup = options.addSuffix ? formatDistanceLocale[token].withPreposition : formatDistanceLocale[token].standalone; 38630 var result; 38631 38632 if (typeof usageGroup === 'string') { 38633 result = usageGroup; 38634 } else if (count === 1) { 38635 result = usageGroup.one; 38636 } else { 38637 result = usageGroup.other.replace('{{count}}', count); 38638 } 38639 38640 if (options.addSuffix) { 38641 if (options.comparison > 0) { 38642 return 'in ' + result; 38643 } else { 38644 return 'vor ' + result; 38645 } 38646 } 38647 38648 return result; 38649 } 38650 38651 /***/ 38652 }), 38653 /* 513 */ 38654 /***/ (function (module, __webpack_exports__, __webpack_require__) { 38655 38656 "use strict"; 38657 /* harmony import */ 38658 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 38659 // DIN 5008: https://de.wikipedia.org/wiki/Datumsformat#DIN_5008 38660 38661 var dateFormats = { 38662 full: 'EEEE, do MMMM y', 38663 // Montag, 7. Januar 2018 38664 long: 'do MMMM y', 38665 // 7. Januar 2018 38666 medium: 'do MMM. y', 38667 // 7. Jan. 2018 38668 short: 'dd.MM.y' // 07.01.2018 38669 38670 }; 38671 var timeFormats = { 38672 full: 'HH:mm:ss zzzz', 38673 long: 'HH:mm:ss z', 38674 medium: 'HH:mm:ss', 38675 short: 'HH:mm' 38676 }; 38677 var dateTimeFormats = { 38678 full: "{{date}} 'um' {{time}}", 38679 long: "{{date}} 'um' {{time}}", 38680 medium: '{{date}} {{time}}', 38681 short: '{{date}} {{time}}' 38682 }; 38683 var formatLong = { 38684 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 38685 formats: dateFormats, 38686 defaultWidth: 'full' 38687 }), 38688 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 38689 formats: timeFormats, 38690 defaultWidth: 'full' 38691 }), 38692 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 38693 formats: dateTimeFormats, 38694 defaultWidth: 'full' 38695 }) 38696 }; 38697 /* harmony default export */ 38698 __webpack_exports__["a"] = (formatLong); 38699 38700 /***/ 38701 }), 38702 /* 514 */ 38703 /***/ (function (module, __webpack_exports__, __webpack_require__) { 38704 38705 "use strict"; 38706 /* harmony export (immutable) */ 38707 __webpack_exports__["a"] = formatRelative; 38708 var formatRelativeLocale = { 38709 lastWeek: "'letzten' eeee 'um' p", 38710 yesterday: "'gestern um' p", 38711 today: "'heute um' p", 38712 tomorrow: "'morgen um' p", 38713 nextWeek: "eeee 'um' p", 38714 other: 'P' 38715 }; 38716 38717 function formatRelative(token, _date, _baseDate, _options) { 38718 return formatRelativeLocale[token]; 38719 } 38720 38721 /***/ 38722 }), 38723 /* 515 */ 38724 /***/ (function (module, __webpack_exports__, __webpack_require__) { 38725 38726 "use strict"; 38727 /* harmony import */ 38728 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 38729 38730 var eraValues = { 38731 narrow: ['v.Chr.', 'n.Chr.'], 38732 abbreviated: ['v.Chr.', 'n.Chr.'], 38733 wide: ['vor Christus', 'nach Christus'] 38734 }; 38735 var quarterValues = { 38736 narrow: ['1', '2', '3', '4'], 38737 abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], 38738 wide: ['1. Quartal', '2. Quartal', '3. Quartal', '4. Quartal'] // Note: in German, the names of days of the week and months are capitalized. 38739 // If you are making a new locale based on this one, check if the same is true for the language you're working on. 38740 // Generally, formatted dates should look like they are in the middle of a sentence, 38741 // e.g. in Spanish language the weekdays and months should be in the lowercase. 38742 38743 }; 38744 var monthValues = { 38745 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], 38746 abbreviated: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], 38747 wide: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'] 38748 }; 38749 var dayValues = { 38750 narrow: ['S', 'M', 'D', 'M', 'D', 'F', 'S'], 38751 short: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'], 38752 abbreviated: ['So.', 'Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.'], 38753 wide: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'] // https://www.unicode.org/cldr/charts/32/summary/de.html#1881 38754 38755 }; 38756 var dayPeriodValues = { 38757 narrow: { 38758 am: 'vm.', 38759 pm: 'nm.', 38760 midnight: 'Mitternacht', 38761 noon: 'Mittag', 38762 morning: 'Morgen', 38763 afternoon: 'Nachm.', 38764 evening: 'Abend', 38765 night: 'Nacht' 38766 }, 38767 abbreviated: { 38768 am: 'vorm.', 38769 pm: 'nachm.', 38770 midnight: 'Mitternacht', 38771 noon: 'Mittag', 38772 morning: 'Morgen', 38773 afternoon: 'Nachmittag', 38774 evening: 'Abend', 38775 night: 'Nacht' 38776 }, 38777 wide: { 38778 am: 'vormittags', 38779 pm: 'nachmittags', 38780 midnight: 'Mitternacht', 38781 noon: 'Mittag', 38782 morning: 'Morgen', 38783 afternoon: 'Nachmittag', 38784 evening: 'Abend', 38785 night: 'Nacht' 38786 } 38787 }; 38788 var formattingDayPeriodValues = { 38789 narrow: { 38790 am: 'vm.', 38791 pm: 'nm.', 38792 midnight: 'Mitternacht', 38793 noon: 'Mittag', 38794 morning: 'morgens', 38795 afternoon: 'nachm.', 38796 evening: 'abends', 38797 night: 'nachts' 38798 }, 38799 abbreviated: { 38800 am: 'vorm.', 38801 pm: 'nachm.', 38802 midnight: 'Mitternacht', 38803 noon: 'Mittag', 38804 morning: 'morgens', 38805 afternoon: 'nachmittags', 38806 evening: 'abends', 38807 night: 'nachts' 38808 }, 38809 wide: { 38810 am: 'vormittags', 38811 pm: 'nachmittags', 38812 midnight: 'Mitternacht', 38813 noon: 'Mittag', 38814 morning: 'morgens', 38815 afternoon: 'nachmittags', 38816 evening: 'abends', 38817 night: 'nachts' 38818 } 38819 }; 38820 38821 function ordinalNumber(dirtyNumber, _dirtyOptions) { 38822 var number = Number(dirtyNumber); 38823 return number + '.'; 38824 } 38825 38826 var localize = { 38827 ordinalNumber: ordinalNumber, 38828 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 38829 values: eraValues, 38830 defaultWidth: 'wide' 38831 }), 38832 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 38833 values: quarterValues, 38834 defaultWidth: 'wide', 38835 argumentCallback: function (quarter) { 38836 return Number(quarter) - 1; 38837 } 38838 }), 38839 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 38840 values: monthValues, 38841 defaultWidth: 'wide' 38842 }), 38843 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 38844 values: dayValues, 38845 defaultWidth: 'wide' 38846 }), 38847 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 38848 values: dayPeriodValues, 38849 defaultWidth: 'wide', 38850 formattingValues: formattingDayPeriodValues, 38851 defaultFormattingWidth: 'wide' 38852 }) 38853 }; 38854 /* harmony default export */ 38855 __webpack_exports__["a"] = (localize); 38856 38857 /***/ 38858 }), 38859 /* 516 */ 38860 /***/ (function (module, __webpack_exports__, __webpack_require__) { 38861 38862 "use strict"; 38863 /* harmony import */ 38864 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 38865 /* harmony import */ 38866 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 38867 38868 38869 var matchOrdinalNumberPattern = /^(\d+)(\.)?/i; 38870 var parseOrdinalNumberPattern = /\d+/i; 38871 var matchEraPatterns = { 38872 narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, 38873 abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, 38874 wide: /^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i 38875 }; 38876 var parseEraPatterns = { 38877 any: [/^v/i, /^n/i] 38878 }; 38879 var matchQuarterPatterns = { 38880 narrow: /^[1234]/i, 38881 abbreviated: /^q[1234]/i, 38882 wide: /^[1234](\.)? Quartal/i 38883 }; 38884 var parseQuarterPatterns = { 38885 any: [/1/i, /2/i, /3/i, /4/i] 38886 }; 38887 var matchMonthPatterns = { 38888 narrow: /^[jfmasond]/i, 38889 abbreviated: /^(jan|feb|mär|apr|mai|jun|jul|aug|sep|okt|nov|dez)/i, 38890 wide: /^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i 38891 }; 38892 var parseMonthPatterns = { 38893 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 38894 any: [/^ja/i, /^f/i, /^mär/i, /^ap/i, /^mai/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] 38895 }; 38896 var matchDayPatterns = { 38897 narrow: /^[smdmf]/i, 38898 short: /^(so|mo|di|mi|do|fr|sa)/i, 38899 abbreviated: /^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i, 38900 wide: /^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i 38901 }; 38902 var parseDayPatterns = { 38903 any: [/^so/i, /^mo/i, /^di/i, /^mi/i, /^do/i, /^f/i, /^sa/i] 38904 }; 38905 var matchDayPeriodPatterns = { 38906 narrow: /^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i, 38907 abbreviated: /^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i, 38908 wide: /^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i 38909 }; 38910 var parseDayPeriodPatterns = { 38911 any: { 38912 am: /^v/i, 38913 pm: /^n/i, 38914 midnight: /^Mitte/i, 38915 noon: /^Mitta/i, 38916 morning: /morgens/i, 38917 afternoon: /nachmittags/i, 38918 // will never be matched. Afternoon is matched by `pm` 38919 evening: /abends/i, 38920 night: /nachts/i // will never be matched. Night is matched by `pm` 38921 38922 } 38923 }; 38924 var match = { 38925 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 38926 matchPattern: matchOrdinalNumberPattern, 38927 parsePattern: parseOrdinalNumberPattern, 38928 valueCallback: function (value) { 38929 return parseInt(value, 10); 38930 } 38931 }), 38932 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 38933 matchPatterns: matchEraPatterns, 38934 defaultMatchWidth: 'wide', 38935 parsePatterns: parseEraPatterns, 38936 defaultParseWidth: 'any' 38937 }), 38938 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 38939 matchPatterns: matchQuarterPatterns, 38940 defaultMatchWidth: 'wide', 38941 parsePatterns: parseQuarterPatterns, 38942 defaultParseWidth: 'any', 38943 valueCallback: function (index) { 38944 return index + 1; 38945 } 38946 }), 38947 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 38948 matchPatterns: matchMonthPatterns, 38949 defaultMatchWidth: 'wide', 38950 parsePatterns: parseMonthPatterns, 38951 defaultParseWidth: 'any' 38952 }), 38953 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 38954 matchPatterns: matchDayPatterns, 38955 defaultMatchWidth: 'wide', 38956 parsePatterns: parseDayPatterns, 38957 defaultParseWidth: 'any' 38958 }), 38959 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 38960 matchPatterns: matchDayPeriodPatterns, 38961 defaultMatchWidth: 'wide', 38962 parsePatterns: parseDayPeriodPatterns, 38963 defaultParseWidth: 'any' 38964 }) 38965 }; 38966 /* harmony default export */ 38967 __webpack_exports__["a"] = (match); 38968 38969 /***/ 38970 }), 38971 /* 517 */ 38972 /***/ (function (module, __webpack_exports__, __webpack_require__) { 38973 38974 "use strict"; 38975 /* harmony import */ 38976 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(518); 38977 /* harmony import */ 38978 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(519); 38979 /* harmony import */ 38980 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(520); 38981 /* harmony import */ 38982 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(521); 38983 /* harmony import */ 38984 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(522); 38985 38986 38987 /** 38988 * @type {Locale} 38989 * @category Locales 38990 * @summary Greek locale. 38991 * @language Greek 38992 * @iso-639-2 ell 38993 * @author Fanis Katsimpas [@fanixk]{@link https://github.com/fanixk} 38994 * @author Theodoros Orfanidis [@teoulas]{@link https://github.com/teoulas} 38995 */ 38996 38997 var locale = { 38998 code: 'el', 38999 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 39000 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 39001 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 39002 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 39003 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 39004 options: { 39005 weekStartsOn: 1 39006 /* Monday */ 39007 , 39008 firstWeekContainsDate: 4 39009 } 39010 }; 39011 /* harmony default export */ 39012 __webpack_exports__["a"] = (locale); 39013 39014 /***/ 39015 }), 39016 /* 518 */ 39017 /***/ (function (module, __webpack_exports__, __webpack_require__) { 39018 39019 "use strict"; 39020 /* harmony export (immutable) */ 39021 __webpack_exports__["a"] = formatDistance; 39022 var formatDistanceLocale = { 39023 lessThanXSeconds: { 39024 one: 'λιγÏÏεÏο αÏÏ Îνα Î´ÎµÏ ÏεÏÏλεÏÏο', 39025 other: 'λιγÏÏεÏο αÏÏ {{count}} Î´ÎµÏ ÏεÏÏλεÏÏα' 39026 }, 39027 xSeconds: { 39028 one: '1 Î´ÎµÏ ÏεÏÏλεÏÏο', 39029 other: '{{count}} Î´ÎµÏ ÏεÏÏλεÏÏα' 39030 }, 39031 halfAMinute: 'μιÏÏ Î»ÎµÏÏÏ', 39032 lessThanXMinutes: { 39033 one: 'λιγÏÏεÏο αÏÏ Îνα λεÏÏÏ', 39034 other: 'λιγÏÏεÏο αÏÏ {{count}} λεÏÏά' 39035 }, 39036 xMinutes: { 39037 one: '1 λεÏÏÏ', 39038 other: '{{count}} λεÏÏά' 39039 }, 39040 aboutXHours: { 39041 one: 'ÏεÏίÏÎ¿Ï 1 ÏÏα', 39042 other: 'ÏεÏίÏÎ¿Ï {{count}} ÏÏεÏ' 39043 }, 39044 xHours: { 39045 one: '1 ÏÏα', 39046 other: '{{count}} ÏÏεÏ' 39047 }, 39048 xDays: { 39049 one: '1 ημÎÏα', 39050 other: '{{count}} ημÎÏεÏ' 39051 }, 39052 aboutXWeeks: { 39053 one: 'ÏεÏίÏÎ¿Ï 1 εβδομάδα', 39054 other: 'ÏεÏίÏÎ¿Ï {{count}} εβδομάδεÏ' 39055 }, 39056 xWeeks: { 39057 one: '1 εβδομάδα', 39058 other: '{{count}} εβδομάδεÏ' 39059 }, 39060 aboutXMonths: { 39061 one: 'ÏεÏίÏÎ¿Ï 1 μήναÏ', 39062 other: 'ÏεÏίÏÎ¿Ï {{count}} μήνεÏ' 39063 }, 39064 xMonths: { 39065 one: '1 μήναÏ', 39066 other: '{{count}} μήνεÏ' 39067 }, 39068 aboutXYears: { 39069 one: 'ÏεÏίÏÎ¿Ï 1 ÏÏÏνο', 39070 other: 'ÏεÏίÏÎ¿Ï {{count}} ÏÏÏνια' 39071 }, 39072 xYears: { 39073 one: '1 ÏÏÏνο', 39074 other: '{{count}} ÏÏÏνια' 39075 }, 39076 overXYears: { 39077 one: 'ÏÎ¬Î½Ï Î±ÏÏ 1 ÏÏÏνο', 39078 other: 'ÏÎ¬Î½Ï Î±ÏÏ {{count}} ÏÏÏνια' 39079 }, 39080 almostXYears: { 39081 one: 'ÏεÏίÏÎ¿Ï 1 ÏÏÏνο', 39082 other: 'ÏεÏίÏÎ¿Ï {{count}} ÏÏÏνια' 39083 } 39084 }; 39085 39086 function formatDistance(token, count, options) { 39087 options = options || {}; 39088 var result; 39089 39090 if (typeof formatDistanceLocale[token] === 'string') { 39091 result = formatDistanceLocale[token]; 39092 } else if (count === 1) { 39093 result = formatDistanceLocale[token].one; 39094 } else { 39095 result = formatDistanceLocale[token].other.replace('{{count}}', count); 39096 } 39097 39098 if (options.addSuffix) { 39099 if (options.comparison > 0) { 39100 return 'Ïε ' + result; 39101 } else { 39102 return result + ' ÏÏιν'; 39103 } 39104 } 39105 39106 return result; 39107 } 39108 39109 /***/ 39110 }), 39111 /* 519 */ 39112 /***/ (function (module, __webpack_exports__, __webpack_require__) { 39113 39114 "use strict"; 39115 /* harmony import */ 39116 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 39117 39118 var dateFormats = { 39119 full: 'EEEE, d MMMM y', 39120 long: 'd MMMM y', 39121 medium: 'd MMM y', 39122 short: 'd/M/yy' 39123 }; 39124 var timeFormats = { 39125 full: 'h:mm:ss a zzzz', 39126 long: 'h:mm:ss a z', 39127 medium: 'h:mm:ss a', 39128 short: 'h:mm a' 39129 }; 39130 var dateTimeFormats = { 39131 full: '{{date}} - {{time}}', 39132 long: '{{date}} - {{time}}', 39133 medium: '{{date}}, {{time}}', 39134 short: '{{date}}, {{time}}' 39135 }; 39136 var formatLong = { 39137 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 39138 formats: dateFormats, 39139 defaultWidth: 'full' 39140 }), 39141 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 39142 formats: timeFormats, 39143 defaultWidth: 'full' 39144 }), 39145 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 39146 formats: dateTimeFormats, 39147 defaultWidth: 'full' 39148 }) 39149 }; 39150 /* harmony default export */ 39151 __webpack_exports__["a"] = (formatLong); 39152 39153 /***/ 39154 }), 39155 /* 520 */ 39156 /***/ (function (module, __webpack_exports__, __webpack_require__) { 39157 39158 "use strict"; 39159 /* harmony export (immutable) */ 39160 __webpack_exports__["a"] = formatRelative; 39161 var formatRelativeLocale = { 39162 lastWeek: function (date) { 39163 switch (date.getUTCDay()) { 39164 case 6: 39165 //ΣάββαÏο 39166 return "'Ïο ÏÏοηγοÏμενο' eeee 'ÏÏιÏ' p"; 39167 39168 default: 39169 return "'Ïην ÏÏοηγοÏμενη' eeee 'ÏÏιÏ' p"; 39170 } 39171 }, 39172 yesterday: "'ÏÎ¸ÎµÏ ÏÏιÏ' p", 39173 today: "'ÏήμεÏα ÏÏιÏ' p", 39174 tomorrow: "'αÏÏιο ÏÏιÏ' p", 39175 nextWeek: "eeee 'ÏÏιÏ' p", 39176 other: 'P' 39177 }; 39178 39179 function formatRelative(token, date, baseDate, options) { 39180 var format = formatRelativeLocale[token]; 39181 if (typeof format === 'function') return format(date, baseDate, options); 39182 return format; 39183 } 39184 39185 /***/ 39186 }), 39187 /* 521 */ 39188 /***/ (function (module, __webpack_exports__, __webpack_require__) { 39189 39190 "use strict"; 39191 /* harmony import */ 39192 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 39193 39194 var eraValues = { 39195 narrow: ['ÏΧ', 'μΧ'], 39196 abbreviated: ['Ï.Χ.', 'μ.Χ.'], 39197 wide: ['ÏÏο ΧÏιÏÏοÏ', 'μεÏά ΧÏιÏÏÏν'] 39198 }; 39199 var quarterValues = { 39200 narrow: ['1', '2', '3', '4'], 39201 abbreviated: ['Τ1', 'Τ2', 'Τ3', 'Τ4'], 39202 wide: ['1ο ÏÏίμηνο', '2ο ÏÏίμηνο', '3ο ÏÏίμηνο', '4ο ÏÏίμηνο'] 39203 }; 39204 var monthValues = { 39205 narrow: ['Î', 'Φ', 'Î', 'Î', 'Î', 'Î', 'Î', 'Î', 'Σ', 'Î', 'Î', 'Î'], 39206 abbreviated: ['Îαν', 'Φεβ', 'ÎάÏ', 'ÎÏÏ', 'Îάι', 'ÎοÏν', 'ÎοÏλ', 'ÎÏγ', 'ΣεÏ', 'ÎκÏ', 'ÎοÎ', 'Îεκ'], 39207 wide: ['ÎÎ±Î½Î¿Ï Î¬ÏιοÏ', 'ΦεβÏÎ¿Ï Î¬ÏιοÏ', 'ÎάÏÏιοÏ', 'ÎÏÏίλιοÏ', 'ÎάιοÏ', 'ÎοÏνιοÏ', 'ÎοÏλιοÏ', 'ÎÏÎ³Î¿Ï ÏÏοÏ', 'ΣεÏÏÎμβÏιοÏ', 'ÎκÏÏβÏιοÏ', 'ÎοÎμβÏιοÏ', 'ÎεκÎμβÏιοÏ'] 39208 }; 39209 var formattingMonthValues = { 39210 narrow: ['Î', 'Φ', 'Î', 'Î', 'Î', 'Î', 'Î', 'Î', 'Σ', 'Î', 'Î', 'Î'], 39211 abbreviated: ['Îαν', 'Φεβ', 'ÎαÏ', 'ÎÏÏ', 'ÎαÎ', 'ÎÎ¿Ï Î½', 'ÎÎ¿Ï Î»', 'ÎÏ Î³', 'ΣεÏ', 'ÎκÏ', 'Îοε', 'Îεκ'], 39212 wide: ['ÎÎ±Î½Î¿Ï Î±ÏÎ¯Î¿Ï ', 'ΦεβÏÎ¿Ï Î±ÏÎ¯Î¿Ï ', 'ÎαÏÏÎ¯Î¿Ï ', 'ÎÏÏÎ¹Î»Î¯Î¿Ï ', 'ÎαÎÎ¿Ï ', 'ÎÎ¿Ï Î½Î¯Î¿Ï ', 'ÎÎ¿Ï Î»Î¯Î¿Ï ', 'ÎÏ Î³Î¿ÏÏÏÎ¿Ï ', 'ΣεÏÏεμβÏÎ¯Î¿Ï ', 'ÎκÏÏβÏÎ¯Î¿Ï ', 'ÎοεμβÏÎ¯Î¿Ï ', 'ÎεκεμβÏÎ¯Î¿Ï '] 39213 }; 39214 var dayValues = { 39215 narrow: ['Î', 'Î', 'T', 'Τ', 'Î ', 'Î ', 'Σ'], 39216 short: ['ÎÏ ', 'Îε', 'ΤÏ', 'Τε', 'Î Î', 'Πα', 'Σά'], 39217 abbreviated: ['ÎÏ Ï', 'ÎÎµÏ ', 'ΤÏί', 'ΤεÏ', 'Î Îμ', 'ΠαÏ', 'Σάβ'], 39218 wide: ['ÎÏ Ïιακή', 'ÎÎµÏ ÏÎÏα', 'ΤÏίÏη', 'ΤεÏάÏÏη', 'Î ÎμÏÏη', 'ΠαÏαÏÎºÎµÏ Î®', 'ΣάββαÏο'] 39219 }; 39220 var dayPeriodValues = { 39221 narrow: { 39222 am: 'Ïμ', 39223 pm: 'μμ', 39224 midnight: 'μεÏÎ¬Î½Ï ÏÏα', 39225 noon: 'μεÏημÎÏι', 39226 morning: 'ÏÏÏί', 39227 afternoon: 'αÏÏÎ³ÎµÏ Î¼Î±', 39228 evening: 'βÏÎ¬Î´Ï ', 39229 night: 'νÏÏÏα' 39230 }, 39231 abbreviated: { 39232 am: 'Ï.μ.', 39233 pm: 'μ.μ.', 39234 midnight: 'μεÏÎ¬Î½Ï ÏÏα', 39235 noon: 'μεÏημÎÏι', 39236 morning: 'ÏÏÏί', 39237 afternoon: 'αÏÏÎ³ÎµÏ Î¼Î±', 39238 evening: 'βÏÎ¬Î´Ï ', 39239 night: 'νÏÏÏα' 39240 }, 39241 wide: { 39242 am: 'Ï.μ.', 39243 pm: 'μ.μ.', 39244 midnight: 'μεÏÎ¬Î½Ï ÏÏα', 39245 noon: 'μεÏημÎÏι', 39246 morning: 'ÏÏÏί', 39247 afternoon: 'αÏÏÎ³ÎµÏ Î¼Î±', 39248 evening: 'βÏÎ¬Î´Ï ', 39249 night: 'νÏÏÏα' 39250 } 39251 }; 39252 39253 function ordinalNumber(dirtyNumber, dirtyOptions) { 39254 var options = dirtyOptions || {}; 39255 var unit = String(options.unit); 39256 var suffix; 39257 39258 if (unit === 'year' || unit === 'month') { 39259 suffix = 'οÏ'; 39260 } else if (unit === 'week' || unit === 'dayOfYear' || unit === 'day' || unit === 'hour' || unit === 'date') { 39261 suffix = 'η'; 39262 } else { 39263 suffix = 'ο'; 39264 } 39265 39266 return dirtyNumber + suffix; 39267 } 39268 39269 var localize = { 39270 ordinalNumber: ordinalNumber, 39271 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 39272 values: eraValues, 39273 defaultWidth: 'wide' 39274 }), 39275 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 39276 values: quarterValues, 39277 defaultWidth: 'wide', 39278 argumentCallback: function (quarter) { 39279 return Number(quarter) - 1; 39280 } 39281 }), 39282 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 39283 values: monthValues, 39284 defaultWidth: 'wide', 39285 formattingValues: formattingMonthValues, 39286 defaultFormattingWidth: 'wide' 39287 }), 39288 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 39289 values: dayValues, 39290 defaultWidth: 'wide' 39291 }), 39292 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 39293 values: dayPeriodValues, 39294 defaultWidth: 'wide' 39295 }) 39296 }; 39297 /* harmony default export */ 39298 __webpack_exports__["a"] = (localize); 39299 39300 /***/ 39301 }), 39302 /* 522 */ 39303 /***/ (function (module, __webpack_exports__, __webpack_require__) { 39304 39305 "use strict"; 39306 /* harmony import */ 39307 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 39308 /* harmony import */ 39309 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 39310 39311 39312 var matchOrdinalNumberPattern = /^(\d+)(οÏ|η|ο)?/i; 39313 var parseOrdinalNumberPattern = /\d+/i; 39314 var matchEraPatterns = { 39315 narrow: /^(ÏΧ|μΧ)/i, 39316 abbreviated: /^(Ï\.?\s?Ï\.?|Ï\.?\s?κ\.?\s?Ï\.?|μ\.?\s?Ï\.?|κ\.?\s?Ï\.?)/i, 39317 wide: /^(ÏÏο ΧÏιÏÏο(Ï|Ï )|ÏÏιν αÏ(Ï|ο) Ïην Îοιν(ή|η) ΧÏονολογ(ί|ι)α|μεÏ(ά|α) ΧÏιÏÏ(Ï|ο)ν|Îοιν(ή|η) ΧÏονολογ(ί|ι)α)/i 39318 }; 39319 var parseEraPatterns = { 39320 any: [/^Ï/i, /^(μ|κ)/i] 39321 }; 39322 var matchQuarterPatterns = { 39323 narrow: /^[1234]/i, 39324 abbreviated: /^Ï[1234]/i, 39325 wide: /^[1234]ο? ÏÏ(ί|ι)μηνο/i 39326 }; 39327 var parseQuarterPatterns = { 39328 any: [/1/i, /2/i, /3/i, /4/i] 39329 }; 39330 var matchMonthPatterns = { 39331 narrow: /^[ιÏμαμιιαÏονδ]/i, 39332 abbreviated: /^(ιαν|Ïεβ|μ[άα]Ï|αÏÏ|μ[άα][ιÎ]|ιο[ÏÏ ]ν|ιο[ÏÏ ]λ|α[ÏÏ ]γ|ÏεÏ|οκÏ|νο[Îε]|δεκ)/i, 39333 wide: /^(μ[άα][ιÎ]|α[ÏÏ ]γο[Ï Ï]ÏÏ)(οÏ|Î¿Ï )|(Î¹Î±Î½Î¿Ï [άα]Ï|ÏεβÏÎ¿Ï [άα]Ï|μ[άα]ÏÏ|αÏÏ[ίι]λ|ιο[ÏÏ ]ν|ιο[ÏÏ ]λ|ÏεÏÏ[Îε]μβÏ|οκÏ[ÏÏ]βÏ|νο[Îε]μβÏ|δεκ[Îε]μβÏ)(ιοÏ|Î¯Î¿Ï )/i 39334 }; 39335 var parseMonthPatterns = { 39336 narrow: [/^ι/i, /^Ï/i, /^μ/i, /^α/i, /^μ/i, /^ι/i, /^ι/i, /^α/i, /^Ï/i, /^ο/i, /^ν/i, /^δ/i], 39337 any: [/^ια/i, /^Ï/i, /^μ[άα]Ï/i, /^αÏ/i, /^μ[άα][ιÎ]/i, /^ιο[ÏÏ ]ν/i, /^ιο[ÏÏ ]λ/i, /^α[ÏÏ ]/i, /^Ï/i, /^ο/i, /^ν/i, /^δ/i] 39338 }; 39339 var matchDayPatterns = { 39340 narrow: /^[κδÏÏÏ]/i, 39341 short: /^(ÎºÏ |δε|ÏÏ|Ïε|Ï[εÎ]|Ï[αά]|Ï[αά])/i, 39342 abbreviated: /^(ÎºÏ Ï|Î´ÎµÏ |ÏÏι|ÏεÏ|Ïεμ|ÏαÏ|Ïαβ)/i, 39343 wide: /^(ÎºÏ Ïιακ(ή|η)|Î´ÎµÏ Ï(Î|ε)Ïα|ÏÏ(ί|ι)Ïη|ÏεÏ(ά|α)ÏÏη|Ï(Î|ε)μÏÏη|ÏαÏαÏÎºÎµÏ (ή|η)|Ï(ά|α)ββαÏο)/i 39344 }; 39345 var parseDayPatterns = { 39346 narrow: [/^κ/i, /^δ/i, /^Ï/i, /^Ï/i, /^Ï/i, /^Ï/i, /^Ï/i], 39347 any: [/^κ/i, /^δ/i, /^ÏÏ/i, /^Ïε/i, /^Ï[εÎ]/i, /^Ï[αά]/i, /^Ï/i] 39348 }; 39349 var matchDayPeriodPatterns = { 39350 narrow: /^(Ïμ|μμ|μεÏ(ά|α)Î½Ï ÏÏα|μεÏημ(Î|ε)Ïι|ÏÏÏ(ί|ι)|αÏ(Ï|ο)Î³ÎµÏ Î¼Î±|βÏ(ά|α)Î´Ï |ν(Ï|Ï )ÏÏα)/i, 39351 any: /^([Ïμ]\.?\s?μ\.?|μεÏ(ά|α)Î½Ï ÏÏα|μεÏημ(Î|ε)Ïι|ÏÏÏ(ί|ι)|αÏ(Ï|ο)Î³ÎµÏ Î¼Î±|βÏ(ά|α)Î´Ï |ν(Ï|Ï )ÏÏα)/i 39352 }; 39353 var parseDayPeriodPatterns = { 39354 any: { 39355 am: /^Ïμ|Ï\.\s?μ\./i, 39356 pm: /^μμ|μ\.\s?μ\./i, 39357 midnight: /^μεÏάν/i, 39358 noon: /^μεÏημ(Î|ε)/i, 39359 morning: /ÏÏÏ(ί|ι)/i, 39360 afternoon: /αÏ(Ï|ο)Î³ÎµÏ Î¼Î±/i, 39361 evening: /βÏ(ά|α)Î´Ï /i, 39362 night: /ν(Ï|Ï )ÏÏα/i 39363 } 39364 }; 39365 var match = { 39366 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 39367 matchPattern: matchOrdinalNumberPattern, 39368 parsePattern: parseOrdinalNumberPattern, 39369 valueCallback: function (value) { 39370 return parseInt(value, 10); 39371 } 39372 }), 39373 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 39374 matchPatterns: matchEraPatterns, 39375 defaultMatchWidth: 'wide', 39376 parsePatterns: parseEraPatterns, 39377 defaultParseWidth: 'any' 39378 }), 39379 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 39380 matchPatterns: matchQuarterPatterns, 39381 defaultMatchWidth: 'wide', 39382 parsePatterns: parseQuarterPatterns, 39383 defaultParseWidth: 'any', 39384 valueCallback: function (index) { 39385 return index + 1; 39386 } 39387 }), 39388 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 39389 matchPatterns: matchMonthPatterns, 39390 defaultMatchWidth: 'wide', 39391 parsePatterns: parseMonthPatterns, 39392 defaultParseWidth: 'any' 39393 }), 39394 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 39395 matchPatterns: matchDayPatterns, 39396 defaultMatchWidth: 'wide', 39397 parsePatterns: parseDayPatterns, 39398 defaultParseWidth: 'any' 39399 }), 39400 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 39401 matchPatterns: matchDayPeriodPatterns, 39402 defaultMatchWidth: 'any', 39403 parsePatterns: parseDayPeriodPatterns, 39404 defaultParseWidth: 'any' 39405 }) 39406 }; 39407 /* harmony default export */ 39408 __webpack_exports__["a"] = (match); 39409 39410 /***/ 39411 }), 39412 /* 523 */ 39413 /***/ (function (module, __webpack_exports__, __webpack_require__) { 39414 39415 "use strict"; 39416 /* harmony import */ 39417 var __WEBPACK_IMPORTED_MODULE_0__en_US_lib_formatDistance_index_js__ = __webpack_require__(48); 39418 /* harmony import */ 39419 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(524); 39420 /* harmony import */ 39421 var __WEBPACK_IMPORTED_MODULE_2__en_US_lib_formatRelative_index_js__ = __webpack_require__(35); 39422 /* harmony import */ 39423 var __WEBPACK_IMPORTED_MODULE_3__en_US_lib_localize_index_js__ = __webpack_require__(36); 39424 /* harmony import */ 39425 var __WEBPACK_IMPORTED_MODULE_4__en_US_lib_match_index_js__ = __webpack_require__(37); 39426 39427 39428 /** 39429 * @type {Locale} 39430 * @category Locales 39431 * @summary English locale (Australia). 39432 * @language English 39433 * @iso-639-2 eng 39434 * @author Julien Malige [@JulienMalige]{@link https://github.com/JulienMalige} 39435 */ 39436 39437 var locale = { 39438 code: 'en-AU', 39439 formatDistance: __WEBPACK_IMPORTED_MODULE_0__en_US_lib_formatDistance_index_js__["a" /* default */], 39440 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 39441 formatRelative: __WEBPACK_IMPORTED_MODULE_2__en_US_lib_formatRelative_index_js__["a" /* default */], 39442 localize: __WEBPACK_IMPORTED_MODULE_3__en_US_lib_localize_index_js__["a" /* default */], 39443 match: __WEBPACK_IMPORTED_MODULE_4__en_US_lib_match_index_js__["a" /* default */], 39444 options: { 39445 weekStartsOn: 1 39446 /* Monday */ 39447 , 39448 firstWeekContainsDate: 4 39449 } 39450 }; 39451 /* harmony default export */ 39452 __webpack_exports__["a"] = (locale); 39453 39454 /***/ 39455 }), 39456 /* 524 */ 39457 /***/ (function (module, __webpack_exports__, __webpack_require__) { 39458 39459 "use strict"; 39460 /* harmony import */ 39461 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 39462 39463 var dateFormats = { 39464 full: 'EEEE, d MMMM yyyy', 39465 long: 'd MMMM yyyy', 39466 medium: 'd MMM yyyy', 39467 short: 'dd/MM/yyyy' 39468 }; 39469 var timeFormats = { 39470 full: 'h:mm:ss a zzzz', 39471 long: 'h:mm:ss a z', 39472 medium: 'h:mm:ss a', 39473 short: 'h:mm a' 39474 }; 39475 var dateTimeFormats = { 39476 full: "{{date}} 'at' {{time}}", 39477 long: "{{date}} 'at' {{time}}", 39478 medium: '{{date}}, {{time}}', 39479 short: '{{date}}, {{time}}' 39480 }; 39481 var formatLong = { 39482 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 39483 formats: dateFormats, 39484 defaultWidth: 'full' 39485 }), 39486 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 39487 formats: timeFormats, 39488 defaultWidth: 'full' 39489 }), 39490 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 39491 formats: dateTimeFormats, 39492 defaultWidth: 'full' 39493 }) 39494 }; 39495 /* harmony default export */ 39496 __webpack_exports__["a"] = (formatLong); 39497 39498 /***/ 39499 }), 39500 /* 525 */ 39501 /***/ (function (module, __webpack_exports__, __webpack_require__) { 39502 39503 "use strict"; 39504 /* harmony import */ 39505 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(526); 39506 /* harmony import */ 39507 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(527); 39508 /* harmony import */ 39509 var __WEBPACK_IMPORTED_MODULE_2__en_US_lib_formatRelative_index_js__ = __webpack_require__(35); 39510 /* harmony import */ 39511 var __WEBPACK_IMPORTED_MODULE_3__en_US_lib_localize_index_js__ = __webpack_require__(36); 39512 /* harmony import */ 39513 var __WEBPACK_IMPORTED_MODULE_4__en_US_lib_match_index_js__ = __webpack_require__(37); 39514 39515 39516 /** 39517 * @type {Locale} 39518 * @category Locales 39519 * @summary English locale (Canada). 39520 * @language English 39521 * @iso-639-2 eng 39522 * @author Mark Owsiak [@markowsiak]{@link https://github.com/markowsiak} 39523 * @author Marco Imperatore [@mimperatore]{@link https://github.com/mimperatore} 39524 */ 39525 39526 var locale = { 39527 code: 'en-CA', 39528 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 39529 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 39530 formatRelative: __WEBPACK_IMPORTED_MODULE_2__en_US_lib_formatRelative_index_js__["a" /* default */], 39531 localize: __WEBPACK_IMPORTED_MODULE_3__en_US_lib_localize_index_js__["a" /* default */], 39532 match: __WEBPACK_IMPORTED_MODULE_4__en_US_lib_match_index_js__["a" /* default */], 39533 options: { 39534 weekStartsOn: 0 39535 /* Sunday */ 39536 , 39537 firstWeekContainsDate: 1 39538 } 39539 }; 39540 /* harmony default export */ 39541 __webpack_exports__["a"] = (locale); 39542 39543 /***/ 39544 }), 39545 /* 526 */ 39546 /***/ (function (module, __webpack_exports__, __webpack_require__) { 39547 39548 "use strict"; 39549 /* harmony export (immutable) */ 39550 __webpack_exports__["a"] = formatDistance; 39551 var formatDistanceLocale = { 39552 lessThanXSeconds: { 39553 one: 'less than a second', 39554 other: 'less than {{count}} seconds' 39555 }, 39556 xSeconds: { 39557 one: 'a second', 39558 other: '{{count}} seconds' 39559 }, 39560 halfAMinute: 'half a minute', 39561 lessThanXMinutes: { 39562 one: 'less than a minute', 39563 other: 'less than {{count}} minutes' 39564 }, 39565 xMinutes: { 39566 one: 'a minute', 39567 other: '{{count}} minutes' 39568 }, 39569 aboutXHours: { 39570 one: 'about an hour', 39571 other: 'about {{count}} hours' 39572 }, 39573 xHours: { 39574 one: 'an hour', 39575 other: '{{count}} hours' 39576 }, 39577 xDays: { 39578 one: 'a day', 39579 other: '{{count}} days' 39580 }, 39581 aboutXWeeks: { 39582 one: 'about a week', 39583 other: 'about {{count}} weeks' 39584 }, 39585 xWeeks: { 39586 one: 'a week', 39587 other: '{{count}} weeks' 39588 }, 39589 aboutXMonths: { 39590 one: 'about a month', 39591 other: 'about {{count}} months' 39592 }, 39593 xMonths: { 39594 one: 'a month', 39595 other: '{{count}} months' 39596 }, 39597 aboutXYears: { 39598 one: 'about a year', 39599 other: 'about {{count}} years' 39600 }, 39601 xYears: { 39602 one: 'a year', 39603 other: '{{count}} years' 39604 }, 39605 overXYears: { 39606 one: 'over a year', 39607 other: 'over {{count}} years' 39608 }, 39609 almostXYears: { 39610 one: 'almost a year', 39611 other: 'almost {{count}} years' 39612 } 39613 }; 39614 39615 function formatDistance(token, count, options) { 39616 options = options || {}; 39617 var result; 39618 39619 if (typeof formatDistanceLocale[token] === 'string') { 39620 result = formatDistanceLocale[token]; 39621 } else if (count === 1) { 39622 result = formatDistanceLocale[token].one; 39623 } else { 39624 result = formatDistanceLocale[token].other.replace('{{count}}', count); 39625 } 39626 39627 if (options.addSuffix) { 39628 if (options.comparison > 0) { 39629 return 'in ' + result; 39630 } else { 39631 return result + ' ago'; 39632 } 39633 } 39634 39635 return result; 39636 } 39637 39638 /***/ 39639 }), 39640 /* 527 */ 39641 /***/ (function (module, __webpack_exports__, __webpack_require__) { 39642 39643 "use strict"; 39644 /* harmony import */ 39645 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 39646 39647 var dateFormats = { 39648 full: 'EEEE, MMMM do, yyyy', 39649 long: 'MMMM do, yyyy', 39650 medium: 'MMM d, yyyy', 39651 short: 'yyyy-MM-dd' 39652 }; 39653 var timeFormats = { 39654 full: 'h:mm:ss a zzzz', 39655 long: 'h:mm:ss a z', 39656 medium: 'h:mm:ss a', 39657 short: 'h:mm a' 39658 }; 39659 var dateTimeFormats = { 39660 full: "{{date}} 'at' {{time}}", 39661 long: "{{date}} 'at' {{time}}", 39662 medium: '{{date}}, {{time}}', 39663 short: '{{date}}, {{time}}' 39664 }; 39665 var formatLong = { 39666 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 39667 formats: dateFormats, 39668 defaultWidth: 'full' 39669 }), 39670 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 39671 formats: timeFormats, 39672 defaultWidth: 'full' 39673 }), 39674 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 39675 formats: dateTimeFormats, 39676 defaultWidth: 'full' 39677 }) 39678 }; 39679 /* harmony default export */ 39680 __webpack_exports__["a"] = (formatLong); 39681 39682 /***/ 39683 }), 39684 /* 528 */ 39685 /***/ (function (module, __webpack_exports__, __webpack_require__) { 39686 39687 "use strict"; 39688 /* harmony import */ 39689 var __WEBPACK_IMPORTED_MODULE_0__en_US_lib_formatDistance_index_js__ = __webpack_require__(48); 39690 /* harmony import */ 39691 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(529); 39692 /* harmony import */ 39693 var __WEBPACK_IMPORTED_MODULE_2__en_US_lib_formatRelative_index_js__ = __webpack_require__(35); 39694 /* harmony import */ 39695 var __WEBPACK_IMPORTED_MODULE_3__en_US_lib_localize_index_js__ = __webpack_require__(36); 39696 /* harmony import */ 39697 var __WEBPACK_IMPORTED_MODULE_4__en_US_lib_match_index_js__ = __webpack_require__(37); 39698 39699 39700 /** 39701 * @type {Locale} 39702 * @category Locales 39703 * @summary English locale (United Kingdom). 39704 * @language English 39705 * @iso-639-2 eng 39706 * @author Alex [@glintik]{@link https://github.com/glintik} 39707 */ 39708 39709 var locale = { 39710 code: 'en-GB', 39711 formatDistance: __WEBPACK_IMPORTED_MODULE_0__en_US_lib_formatDistance_index_js__["a" /* default */], 39712 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 39713 formatRelative: __WEBPACK_IMPORTED_MODULE_2__en_US_lib_formatRelative_index_js__["a" /* default */], 39714 localize: __WEBPACK_IMPORTED_MODULE_3__en_US_lib_localize_index_js__["a" /* default */], 39715 match: __WEBPACK_IMPORTED_MODULE_4__en_US_lib_match_index_js__["a" /* default */], 39716 options: { 39717 weekStartsOn: 1 39718 /* Monday */ 39719 , 39720 firstWeekContainsDate: 4 39721 } 39722 }; 39723 /* harmony default export */ 39724 __webpack_exports__["a"] = (locale); 39725 39726 /***/ 39727 }), 39728 /* 529 */ 39729 /***/ (function (module, __webpack_exports__, __webpack_require__) { 39730 39731 "use strict"; 39732 /* harmony import */ 39733 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 39734 39735 var dateFormats = { 39736 full: 'EEEE, d MMMM yyyy', 39737 long: 'd MMMM yyyy', 39738 medium: 'd MMM yyyy', 39739 short: 'dd/MM/yyyy' 39740 }; 39741 var timeFormats = { 39742 full: 'HH:mm:ss zzzz', 39743 long: 'HH:mm:ss z', 39744 medium: 'HH:mm:ss', 39745 short: 'HH:mm' 39746 }; 39747 var dateTimeFormats = { 39748 full: "{{date}} 'at' {{time}}", 39749 long: "{{date}} 'at' {{time}}", 39750 medium: '{{date}}, {{time}}', 39751 short: '{{date}}, {{time}}' 39752 }; 39753 var formatLong = { 39754 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 39755 formats: dateFormats, 39756 defaultWidth: 'full' 39757 }), 39758 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 39759 formats: timeFormats, 39760 defaultWidth: 'full' 39761 }), 39762 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 39763 formats: dateTimeFormats, 39764 defaultWidth: 'full' 39765 }) 39766 }; 39767 /* harmony default export */ 39768 __webpack_exports__["a"] = (formatLong); 39769 39770 /***/ 39771 }), 39772 /* 530 */ 39773 /***/ (function (module, __webpack_exports__, __webpack_require__) { 39774 39775 "use strict"; 39776 /* harmony import */ 39777 var __WEBPACK_IMPORTED_MODULE_0__en_US_lib_formatDistance_index_js__ = __webpack_require__(48); 39778 /* harmony import */ 39779 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(531); 39780 /* harmony import */ 39781 var __WEBPACK_IMPORTED_MODULE_2__en_US_lib_formatRelative_index_js__ = __webpack_require__(35); 39782 /* harmony import */ 39783 var __WEBPACK_IMPORTED_MODULE_3__en_US_lib_localize_index_js__ = __webpack_require__(36); 39784 /* harmony import */ 39785 var __WEBPACK_IMPORTED_MODULE_4__en_US_lib_match_index_js__ = __webpack_require__(37); 39786 39787 39788 /** 39789 * @type {Locale} 39790 * @category Locales 39791 * @summary English locale (India). 39792 * @language English 39793 * @iso-639-2 eng 39794 * @author Galeel Bhasha Satthar [@gbhasha]{@link https://github.com/gbhasha} 39795 */ 39796 39797 var locale = { 39798 code: 'en-IN', 39799 formatDistance: __WEBPACK_IMPORTED_MODULE_0__en_US_lib_formatDistance_index_js__["a" /* default */], 39800 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 39801 formatRelative: __WEBPACK_IMPORTED_MODULE_2__en_US_lib_formatRelative_index_js__["a" /* default */], 39802 localize: __WEBPACK_IMPORTED_MODULE_3__en_US_lib_localize_index_js__["a" /* default */], 39803 match: __WEBPACK_IMPORTED_MODULE_4__en_US_lib_match_index_js__["a" /* default */], 39804 options: { 39805 weekStartsOn: 1, 39806 // Monday is the first day of the week. 39807 firstWeekContainsDate: 4 // The week that contains Jan 4th is the first week of the year. 39808 39809 } 39810 }; 39811 /* harmony default export */ 39812 __webpack_exports__["a"] = (locale); 39813 39814 /***/ 39815 }), 39816 /* 531 */ 39817 /***/ (function (module, __webpack_exports__, __webpack_require__) { 39818 39819 "use strict"; 39820 /* harmony import */ 39821 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 39822 39823 var dateFormats = { 39824 full: 'EEEE, d MMMM yyyy', 39825 long: 'd MMMM, yyyy', 39826 medium: 'd MMM, yyyy', 39827 short: 'dd/MM/yyyy' 39828 }; 39829 var timeFormats = { 39830 full: 'h:mm:ss a zzzz', 39831 long: 'h:mm:ss a z', 39832 medium: 'h:mm:ss a', 39833 short: 'h:mm a' 39834 }; 39835 var dateTimeFormats = { 39836 full: "{{date}} 'at' {{time}}", 39837 long: "{{date}} 'at' {{time}}", 39838 medium: '{{date}}, {{time}}', 39839 short: '{{date}}, {{time}}' 39840 }; 39841 var formatLong = { 39842 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 39843 formats: dateFormats, 39844 defaultWidth: 'full' 39845 }), 39846 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 39847 formats: timeFormats, 39848 defaultWidth: 'full' 39849 }), 39850 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 39851 formats: dateTimeFormats, 39852 defaultWidth: 'full' 39853 }) 39854 }; 39855 /* harmony default export */ 39856 __webpack_exports__["a"] = (formatLong); 39857 39858 /***/ 39859 }), 39860 /* 532 */ 39861 /***/ (function (module, __webpack_exports__, __webpack_require__) { 39862 39863 "use strict"; 39864 /* harmony import */ 39865 var __WEBPACK_IMPORTED_MODULE_0__en_US_lib_formatDistance_index_js__ = __webpack_require__(48); 39866 /* harmony import */ 39867 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(533); 39868 /* harmony import */ 39869 var __WEBPACK_IMPORTED_MODULE_2__en_US_lib_formatRelative_index_js__ = __webpack_require__(35); 39870 /* harmony import */ 39871 var __WEBPACK_IMPORTED_MODULE_3__en_US_lib_localize_index_js__ = __webpack_require__(36); 39872 /* harmony import */ 39873 var __WEBPACK_IMPORTED_MODULE_4__en_US_lib_match_index_js__ = __webpack_require__(37); 39874 39875 39876 /** 39877 * @type {Locale} 39878 * @category Locales 39879 * @summary English locale (New Zealand). 39880 * @language English 39881 * @iso-639-2 eng 39882 * @author Murray Lucas [@muntact]{@link https://github.com/muntact} 39883 */ 39884 39885 var locale = { 39886 code: 'en-NZ', 39887 formatDistance: __WEBPACK_IMPORTED_MODULE_0__en_US_lib_formatDistance_index_js__["a" /* default */], 39888 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 39889 formatRelative: __WEBPACK_IMPORTED_MODULE_2__en_US_lib_formatRelative_index_js__["a" /* default */], 39890 localize: __WEBPACK_IMPORTED_MODULE_3__en_US_lib_localize_index_js__["a" /* default */], 39891 match: __WEBPACK_IMPORTED_MODULE_4__en_US_lib_match_index_js__["a" /* default */], 39892 options: { 39893 weekStartsOn: 1 39894 /* Monday */ 39895 , 39896 firstWeekContainsDate: 4 39897 } 39898 }; 39899 /* harmony default export */ 39900 __webpack_exports__["a"] = (locale); 39901 39902 /***/ 39903 }), 39904 /* 533 */ 39905 /***/ (function (module, __webpack_exports__, __webpack_require__) { 39906 39907 "use strict"; 39908 /* harmony import */ 39909 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 39910 39911 var dateFormats = { 39912 full: 'EEEE, d MMMM yyyy', 39913 long: 'd MMMM yyyy', 39914 medium: 'd MMM yyyy', 39915 short: 'dd/MM/yyyy' 39916 }; 39917 var timeFormats = { 39918 full: 'h:mm:ss a zzzz', 39919 long: 'h:mm:ss a z', 39920 medium: 'h:mm:ss a', 39921 short: 'h:mm a' 39922 }; 39923 var dateTimeFormats = { 39924 full: "{{date}} 'at' {{time}}", 39925 long: "{{date}} 'at' {{time}}", 39926 medium: '{{date}}, {{time}}', 39927 short: '{{date}}, {{time}}' 39928 }; 39929 var formatLong = { 39930 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 39931 formats: dateFormats, 39932 defaultWidth: 'full' 39933 }), 39934 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 39935 formats: timeFormats, 39936 defaultWidth: 'full' 39937 }), 39938 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 39939 formats: dateTimeFormats, 39940 defaultWidth: 'full' 39941 }) 39942 }; 39943 /* harmony default export */ 39944 __webpack_exports__["a"] = (formatLong); 39945 39946 /***/ 39947 }), 39948 /* 534 */ 39949 /***/ (function (module, __webpack_exports__, __webpack_require__) { 39950 39951 "use strict"; 39952 /* harmony import */ 39953 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(535); 39954 /* harmony import */ 39955 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(536); 39956 /* harmony import */ 39957 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(537); 39958 /* harmony import */ 39959 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(538); 39960 /* harmony import */ 39961 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(539); 39962 39963 39964 /** 39965 * @type {Locale} 39966 * @category Locales 39967 * @summary Esperanto locale. 39968 * @language Esperanto 39969 * @iso-639-2 epo 39970 * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss} 39971 */ 39972 39973 var locale = { 39974 code: 'eo', 39975 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 39976 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 39977 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 39978 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 39979 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 39980 options: { 39981 weekStartsOn: 1 39982 /* Monday */ 39983 , 39984 firstWeekContainsDate: 4 39985 } 39986 }; 39987 /* harmony default export */ 39988 __webpack_exports__["a"] = (locale); 39989 39990 /***/ 39991 }), 39992 /* 535 */ 39993 /***/ (function (module, __webpack_exports__, __webpack_require__) { 39994 39995 "use strict"; 39996 /* harmony export (immutable) */ 39997 __webpack_exports__["a"] = formatDistance; 39998 var formatDistanceLocale = { 39999 lessThanXSeconds: { 40000 one: 'malpli ol sekundo', 40001 other: 'malpli ol {{count}} sekundoj' 40002 }, 40003 xSeconds: { 40004 one: '1 sekundo', 40005 other: '{{count}} sekundoj' 40006 }, 40007 halfAMinute: 'duonminuto', 40008 lessThanXMinutes: { 40009 one: 'malpli ol minuto', 40010 other: 'malpli ol {{count}} minutoj' 40011 }, 40012 xMinutes: { 40013 one: '1 minuto', 40014 other: '{{count}} minutoj' 40015 }, 40016 aboutXHours: { 40017 one: 'proksimume 1 horo', 40018 other: 'proksimume {{count}} horoj' 40019 }, 40020 xHours: { 40021 one: '1 horo', 40022 other: '{{count}} horoj' 40023 }, 40024 xDays: { 40025 one: '1 tago', 40026 other: '{{count}} tagoj' 40027 }, 40028 aboutXMonths: { 40029 one: 'proksimume 1 monato', 40030 other: 'proksimume {{count}} monatoj' 40031 }, 40032 xWeeks: { 40033 one: '1 semajno', 40034 other: '{{count}} semajnoj' 40035 }, 40036 aboutXWeeks: { 40037 one: 'proksimume 1 semajno', 40038 other: 'proksimume {{count}} semajnoj' 40039 }, 40040 xMonths: { 40041 one: '1 monato', 40042 other: '{{count}} monatoj' 40043 }, 40044 aboutXYears: { 40045 one: 'proksimume 1 jaro', 40046 other: 'proksimume {{count}} jaroj' 40047 }, 40048 xYears: { 40049 one: '1 jaro', 40050 other: '{{count}} jaroj' 40051 }, 40052 overXYears: { 40053 one: 'pli ol 1 jaro', 40054 other: 'pli ol {{count}} jaroj' 40055 }, 40056 almostXYears: { 40057 one: 'preskaÅ 1 jaro', 40058 other: 'preskaÅ {{count}} jaroj' 40059 } 40060 }; 40061 40062 function formatDistance(token, count, options) { 40063 options = options || {}; 40064 var result; 40065 40066 if (typeof formatDistanceLocale[token] === 'string') { 40067 result = formatDistanceLocale[token]; 40068 } else if (count === 1) { 40069 result = formatDistanceLocale[token].one; 40070 } else { 40071 result = formatDistanceLocale[token].other.replace('{{count}}', count); 40072 } 40073 40074 if (options.addSuffix) { 40075 if (options.comparison > 0) { 40076 return 'post ' + result; 40077 } else { 40078 return 'antaÅ ' + result; 40079 } 40080 } 40081 40082 return result; 40083 } 40084 40085 /***/ 40086 }), 40087 /* 536 */ 40088 /***/ (function (module, __webpack_exports__, __webpack_require__) { 40089 40090 "use strict"; 40091 /* harmony import */ 40092 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 40093 40094 var dateFormats = { 40095 full: "EEEE, do 'de' MMMM y", 40096 long: 'y-MMMM-dd', 40097 medium: 'y-MMM-dd', 40098 short: 'yyyy-MM-dd' 40099 }; 40100 var timeFormats = { 40101 full: "Ho 'horo kaj' m:ss zzzz", 40102 long: 'HH:mm:ss z', 40103 medium: 'HH:mm:ss', 40104 short: 'HH:mm' 40105 }; 40106 var dateTimeFormats = { 40107 any: '{{date}} {{time}}' 40108 }; 40109 var formatLong = { 40110 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 40111 formats: dateFormats, 40112 defaultWidth: 'full' 40113 }), 40114 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 40115 formats: timeFormats, 40116 defaultWidth: 'full' 40117 }), 40118 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 40119 formats: dateTimeFormats, 40120 defaultWidth: 'any' 40121 }) 40122 }; 40123 /* harmony default export */ 40124 __webpack_exports__["a"] = (formatLong); 40125 40126 /***/ 40127 }), 40128 /* 537 */ 40129 /***/ (function (module, __webpack_exports__, __webpack_require__) { 40130 40131 "use strict"; 40132 /* harmony export (immutable) */ 40133 __webpack_exports__["a"] = formatRelative; 40134 var formatRelativeLocale = { 40135 lastWeek: "'pasinta' eeee 'je' p", 40136 yesterday: "'hieraÅ je' p", 40137 today: "'hodiaÅ je' p", 40138 tomorrow: "'morgaÅ je' p", 40139 nextWeek: "eeee 'je' p", 40140 other: 'P' 40141 }; 40142 40143 function formatRelative(token, _date, _baseDate, _options) { 40144 return formatRelativeLocale[token]; 40145 } 40146 40147 /***/ 40148 }), 40149 /* 538 */ 40150 /***/ (function (module, __webpack_exports__, __webpack_require__) { 40151 40152 "use strict"; 40153 /* harmony import */ 40154 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 40155 40156 var eraValues = { 40157 narrow: ['aK', 'pK'], 40158 abbreviated: ['a.K.E.', 'p.K.E.'], 40159 wide: ['antaÅ Komuna Erao', 'Komuna Erao'] 40160 }; 40161 var quarterValues = { 40162 narrow: ['1', '2', '3', '4'], 40163 abbreviated: ['K1', 'K2', 'K3', 'K4'], 40164 wide: ['1-a kvaronjaro', '2-a kvaronjaro', '3-a kvaronjaro', '4-a kvaronjaro'] 40165 }; 40166 var monthValues = { 40167 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], 40168 abbreviated: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'aÅg', 'sep', 'okt', 'nov', 'dec'], 40169 wide: ['januaro', 'februaro', 'marto', 'aprilo', 'majo', 'junio', 'julio', 'aÅgusto', 'septembro', 'oktobro', 'novembro', 'decembro'] 40170 }; 40171 var dayValues = { 40172 narrow: ['D', 'L', 'M', 'M', 'Ä´', 'V', 'S'], 40173 short: ['di', 'lu', 'ma', 'me', 'ĵa', 've', 'sa'], 40174 abbreviated: ['dim', 'lun', 'mar', 'mer', 'ĵaÅ', 'ven', 'sab'], 40175 wide: ['dimanÄo', 'lundo', 'mardo', 'merkredo', 'ĵaÅdo', 'vendredo', 'sabato'] 40176 }; 40177 var dayPeriodValues = { 40178 narrow: { 40179 am: 'a', 40180 pm: 'p', 40181 midnight: 'noktomezo', 40182 noon: 'tagmezo', 40183 morning: 'matene', 40184 afternoon: 'posttagmeze', 40185 evening: 'vespere', 40186 night: 'nokte' 40187 }, 40188 abbreviated: { 40189 am: 'a.t.m.', 40190 pm: 'p.t.m.', 40191 midnight: 'noktomezo', 40192 noon: 'tagmezo', 40193 morning: 'matene', 40194 afternoon: 'posttagmeze', 40195 evening: 'vespere', 40196 night: 'nokte' 40197 }, 40198 wide: { 40199 am: 'antaÅtagmeze', 40200 pm: 'posttagmeze', 40201 midnight: 'noktomezo', 40202 noon: 'tagmezo', 40203 morning: 'matene', 40204 afternoon: 'posttagmeze', 40205 evening: 'vespere', 40206 night: 'nokte' 40207 } 40208 }; 40209 40210 function ordinalNumber(dirtyNumber) { 40211 var number = Number(dirtyNumber); 40212 return number + '-a'; 40213 } 40214 40215 var localize = { 40216 ordinalNumber: ordinalNumber, 40217 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 40218 values: eraValues, 40219 defaultWidth: 'wide' 40220 }), 40221 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 40222 values: quarterValues, 40223 defaultWidth: 'wide', 40224 argumentCallback: function (quarter) { 40225 return Number(quarter) - 1; 40226 } 40227 }), 40228 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 40229 values: monthValues, 40230 defaultWidth: 'wide' 40231 }), 40232 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 40233 values: dayValues, 40234 defaultWidth: 'wide' 40235 }), 40236 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 40237 values: dayPeriodValues, 40238 defaultWidth: 'wide' 40239 }) 40240 }; 40241 /* harmony default export */ 40242 __webpack_exports__["a"] = (localize); 40243 40244 /***/ 40245 }), 40246 /* 539 */ 40247 /***/ (function (module, __webpack_exports__, __webpack_require__) { 40248 40249 "use strict"; 40250 /* harmony import */ 40251 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 40252 /* harmony import */ 40253 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 40254 40255 40256 var matchOrdinalNumberPattern = /^(\d+)(-?a)?/i; 40257 var parseOrdinalNumberPattern = /\d+/i; 40258 var matchEraPatterns = { 40259 narrow: /^([ap]k)/i, 40260 abbreviated: /^([ap]\.?\s?k\.?\s?e\.?)/i, 40261 wide: /^((antaÇ |post )?komuna erao)/i 40262 }; 40263 var parseEraPatterns = { 40264 any: [/^a/i, /^[kp]/i] 40265 }; 40266 var matchQuarterPatterns = { 40267 narrow: /^[1234]/i, 40268 abbreviated: /^k[1234]/i, 40269 wide: /^[1234](-?a)? kvaronjaro/i 40270 }; 40271 var parseQuarterPatterns = { 40272 any: [/1/i, /2/i, /3/i, /4/i] 40273 }; 40274 var matchMonthPatterns = { 40275 narrow: /^[jfmasond]/i, 40276 abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|a(Å|ux|uh|u)g|sep|okt|nov|dec)/i, 40277 wide: /^(januaro|februaro|marto|aprilo|majo|junio|julio|a(Å|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i 40278 }; 40279 var parseMonthPatterns = { 40280 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 40281 any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^a(u|Å)/i, /^s/i, /^o/i, /^n/i, /^d/i] 40282 }; 40283 var matchDayPatterns = { 40284 narrow: /^[dlmĵjvs]/i, 40285 short: /^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i, 40286 abbreviated: /^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(Å|ux|uh|u)|ven|sab)/i, 40287 wide: /^(diman(Ä|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(Å|ux|uh|u)do|vendredo|sabato)/i 40288 }; 40289 var parseDayPatterns = { 40290 narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^(j|ĵ)/i, /^v/i, /^s/i], 40291 any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^(j|ĵ)/i, /^v/i, /^s/i] 40292 }; 40293 var matchDayPeriodPatterns = { 40294 narrow: /^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, 40295 abbreviated: /^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, 40296 wide: /^(anta(Å|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i 40297 }; 40298 var parseDayPeriodPatterns = { 40299 any: { 40300 am: /^a/i, 40301 pm: /^p/i, 40302 midnight: /^noktom/i, 40303 noon: /^t/i, 40304 morning: /^m/i, 40305 afternoon: /^posttagmeze/i, 40306 evening: /^v/i, 40307 night: /^n/i 40308 } 40309 }; 40310 var match = { 40311 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 40312 matchPattern: matchOrdinalNumberPattern, 40313 parsePattern: parseOrdinalNumberPattern, 40314 valueCallback: function (value) { 40315 return parseInt(value, 10); 40316 } 40317 }), 40318 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 40319 matchPatterns: matchEraPatterns, 40320 defaultMatchWidth: 'wide', 40321 parsePatterns: parseEraPatterns, 40322 defaultParseWidth: 'any' 40323 }), 40324 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 40325 matchPatterns: matchQuarterPatterns, 40326 defaultMatchWidth: 'wide', 40327 parsePatterns: parseQuarterPatterns, 40328 defaultParseWidth: 'any', 40329 valueCallback: function (index) { 40330 return index + 1; 40331 } 40332 }), 40333 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 40334 matchPatterns: matchMonthPatterns, 40335 defaultMatchWidth: 'wide', 40336 parsePatterns: parseMonthPatterns, 40337 defaultParseWidth: 'any' 40338 }), 40339 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 40340 matchPatterns: matchDayPatterns, 40341 defaultMatchWidth: 'wide', 40342 parsePatterns: parseDayPatterns, 40343 defaultParseWidth: 'any' 40344 }), 40345 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 40346 matchPatterns: matchDayPeriodPatterns, 40347 defaultMatchWidth: 'wide', 40348 parsePatterns: parseDayPeriodPatterns, 40349 defaultParseWidth: 'any' 40350 }) 40351 }; 40352 /* harmony default export */ 40353 __webpack_exports__["a"] = (match); 40354 40355 /***/ 40356 }), 40357 /* 540 */ 40358 /***/ (function (module, __webpack_exports__, __webpack_require__) { 40359 40360 "use strict"; 40361 /* harmony import */ 40362 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(541); 40363 /* harmony import */ 40364 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(542); 40365 /* harmony import */ 40366 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(543); 40367 /* harmony import */ 40368 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(544); 40369 /* harmony import */ 40370 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(545); 40371 40372 40373 /** 40374 * @type {Locale} 40375 * @category Locales 40376 * @summary Spanish locale. 40377 * @language Spanish 40378 * @iso-639-2 spa 40379 * @author Juan Angosto [@juanangosto]{@link https://github.com/juanangosto} 40380 * @author Guillermo Grau [@guigrpa]{@link https://github.com/guigrpa} 40381 * @author Fernando Agüero [@fjaguero]{@link https://github.com/fjaguero} 40382 * @author Gastón Haro [@harogaston]{@link https://github.com/harogaston} 40383 * @author Yago Carballo [@YagoCarballo]{@link https://github.com/YagoCarballo} 40384 */ 40385 40386 var locale = { 40387 code: 'es', 40388 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 40389 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 40390 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 40391 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 40392 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 40393 options: { 40394 weekStartsOn: 1 40395 /* Monday */ 40396 , 40397 firstWeekContainsDate: 1 40398 } 40399 }; 40400 /* harmony default export */ 40401 __webpack_exports__["a"] = (locale); 40402 40403 /***/ 40404 }), 40405 /* 541 */ 40406 /***/ (function (module, __webpack_exports__, __webpack_require__) { 40407 40408 "use strict"; 40409 /* harmony export (immutable) */ 40410 __webpack_exports__["a"] = formatDistance; 40411 var formatDistanceLocale = { 40412 lessThanXSeconds: { 40413 one: 'menos de un segundo', 40414 other: 'menos de {{count}} segundos' 40415 }, 40416 xSeconds: { 40417 one: '1 segundo', 40418 other: '{{count}} segundos' 40419 }, 40420 halfAMinute: 'medio minuto', 40421 lessThanXMinutes: { 40422 one: 'menos de un minuto', 40423 other: 'menos de {{count}} minutos' 40424 }, 40425 xMinutes: { 40426 one: '1 minuto', 40427 other: '{{count}} minutos' 40428 }, 40429 aboutXHours: { 40430 one: 'alrededor de 1 hora', 40431 other: 'alrededor de {{count}} horas' 40432 }, 40433 xHours: { 40434 one: '1 hora', 40435 other: '{{count}} horas' 40436 }, 40437 xDays: { 40438 one: '1 dÃa', 40439 other: '{{count}} dÃas' 40440 }, 40441 aboutXWeeks: { 40442 one: 'alrededor de 1 semana', 40443 other: 'alrededor de {{count}} semanas' 40444 }, 40445 xWeeks: { 40446 one: '1 semana', 40447 other: '{{count}} semanas' 40448 }, 40449 aboutXMonths: { 40450 one: 'alrededor de 1 mes', 40451 other: 'alrededor de {{count}} meses' 40452 }, 40453 xMonths: { 40454 one: '1 mes', 40455 other: '{{count}} meses' 40456 }, 40457 aboutXYears: { 40458 one: 'alrededor de 1 año', 40459 other: 'alrededor de {{count}} años' 40460 }, 40461 xYears: { 40462 one: '1 año', 40463 other: '{{count}} años' 40464 }, 40465 overXYears: { 40466 one: 'más de 1 año', 40467 other: 'más de {{count}} años' 40468 }, 40469 almostXYears: { 40470 one: 'casi 1 año', 40471 other: 'casi {{count}} años' 40472 } 40473 }; 40474 40475 function formatDistance(token, count, options) { 40476 options = options || {}; 40477 var result; 40478 40479 if (typeof formatDistanceLocale[token] === 'string') { 40480 result = formatDistanceLocale[token]; 40481 } else if (count === 1) { 40482 result = formatDistanceLocale[token].one; 40483 } else { 40484 result = formatDistanceLocale[token].other.replace('{{count}}', count); 40485 } 40486 40487 if (options.addSuffix) { 40488 if (options.comparison > 0) { 40489 return 'en ' + result; 40490 } else { 40491 return 'hace ' + result; 40492 } 40493 } 40494 40495 return result; 40496 } 40497 40498 /***/ 40499 }), 40500 /* 542 */ 40501 /***/ (function (module, __webpack_exports__, __webpack_require__) { 40502 40503 "use strict"; 40504 /* harmony import */ 40505 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 40506 40507 var dateFormats = { 40508 full: "EEEE, d 'de' MMMM 'de' y", 40509 long: "d 'de' MMMM 'de' y", 40510 medium: 'd MMM y', 40511 short: 'dd/MM/y' 40512 }; 40513 var timeFormats = { 40514 full: 'HH:mm:ss zzzz', 40515 long: 'HH:mm:ss z', 40516 medium: 'HH:mm:ss', 40517 short: 'HH:mm' 40518 }; 40519 var dateTimeFormats = { 40520 full: "{{date}} 'a las' {{time}}", 40521 long: "{{date}} 'a las' {{time}}", 40522 medium: '{{date}}, {{time}}', 40523 short: '{{date}}, {{time}}' 40524 }; 40525 var formatLong = { 40526 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 40527 formats: dateFormats, 40528 defaultWidth: 'full' 40529 }), 40530 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 40531 formats: timeFormats, 40532 defaultWidth: 'full' 40533 }), 40534 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 40535 formats: dateTimeFormats, 40536 defaultWidth: 'full' 40537 }) 40538 }; 40539 /* harmony default export */ 40540 __webpack_exports__["a"] = (formatLong); 40541 40542 /***/ 40543 }), 40544 /* 543 */ 40545 /***/ (function (module, __webpack_exports__, __webpack_require__) { 40546 40547 "use strict"; 40548 /* harmony export (immutable) */ 40549 __webpack_exports__["a"] = formatRelative; 40550 var formatRelativeLocale = { 40551 lastWeek: "'el' eeee 'pasado a la' LT", 40552 yesterday: "'ayer a la' p", 40553 today: "'hoy a la' p", 40554 tomorrow: "'mañana a la' p", 40555 nextWeek: "eeee 'a la' p", 40556 other: 'P' 40557 }; 40558 var formatRelativeLocalePlural = { 40559 lastWeek: "'el' eeee 'pasado a las' p", 40560 yesterday: "'ayer a las' p", 40561 today: "'hoy a las' p", 40562 tomorrow: "'mañana a las' p", 40563 nextWeek: "eeee 'a las' p", 40564 other: 'P' 40565 }; 40566 40567 function formatRelative(token, date, _baseDate, _options) { 40568 if (date.getUTCHours() !== 1) { 40569 return formatRelativeLocalePlural[token]; 40570 } 40571 40572 return formatRelativeLocale[token]; 40573 } 40574 40575 /***/ 40576 }), 40577 /* 544 */ 40578 /***/ (function (module, __webpack_exports__, __webpack_require__) { 40579 40580 "use strict"; 40581 /* harmony import */ 40582 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 40583 40584 var eraValues = { 40585 narrow: ['AC', 'DC'], 40586 abbreviated: ['AC', 'DC'], 40587 wide: ['antes de cristo', 'después de cristo'] 40588 }; 40589 var quarterValues = { 40590 narrow: ['1', '2', '3', '4'], 40591 abbreviated: ['T1', 'T2', 'T3', 'T4'], 40592 wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre'] 40593 }; 40594 var monthValues = { 40595 narrow: ['e', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], 40596 abbreviated: ['ene', 'feb', 'mar', 'abr', 'may', 'jun', 'jul', 'ago', 'sep', 'oct', 'nov', 'dic'], 40597 wide: ['enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre'] 40598 }; 40599 var dayValues = { 40600 narrow: ['d', 'l', 'm', 'm', 'j', 'v', 's'], 40601 short: ['do', 'lu', 'ma', 'mi', 'ju', 'vi', 'sa'], 40602 abbreviated: ['dom', 'lun', 'mar', 'mié', 'jue', 'vie', 'sáb'], 40603 wide: ['domingo', 'lunes', 'martes', 'miércoles', 'jueves', 'viernes', 'sábado'] 40604 }; 40605 var dayPeriodValues = { 40606 narrow: { 40607 am: 'a', 40608 pm: 'p', 40609 midnight: 'mn', 40610 noon: 'md', 40611 morning: 'mañana', 40612 afternoon: 'tarde', 40613 evening: 'tarde', 40614 night: 'noche' 40615 }, 40616 abbreviated: { 40617 am: 'AM', 40618 pm: 'PM', 40619 midnight: 'medianoche', 40620 noon: 'mediodia', 40621 morning: 'mañana', 40622 afternoon: 'tarde', 40623 evening: 'tarde', 40624 night: 'noche' 40625 }, 40626 wide: { 40627 am: 'a.m.', 40628 pm: 'p.m.', 40629 midnight: 'medianoche', 40630 noon: 'mediodia', 40631 morning: 'mañana', 40632 afternoon: 'tarde', 40633 evening: 'tarde', 40634 night: 'noche' 40635 } 40636 }; 40637 var formattingDayPeriodValues = { 40638 narrow: { 40639 am: 'a', 40640 pm: 'p', 40641 midnight: 'mn', 40642 noon: 'md', 40643 morning: 'de la mañana', 40644 afternoon: 'de la tarde', 40645 evening: 'de la tarde', 40646 night: 'de la noche' 40647 }, 40648 abbreviated: { 40649 am: 'AM', 40650 pm: 'PM', 40651 midnight: 'medianoche', 40652 noon: 'mediodia', 40653 morning: 'de la mañana', 40654 afternoon: 'de la tarde', 40655 evening: 'de la tarde', 40656 night: 'de la noche' 40657 }, 40658 wide: { 40659 am: 'a.m.', 40660 pm: 'p.m.', 40661 midnight: 'medianoche', 40662 noon: 'mediodia', 40663 morning: 'de la mañana', 40664 afternoon: 'de la tarde', 40665 evening: 'de la tarde', 40666 night: 'de la noche' 40667 } 40668 }; 40669 40670 function ordinalNumber(dirtyNumber) { 40671 var number = Number(dirtyNumber); 40672 return number + 'º'; 40673 } 40674 40675 var localize = { 40676 ordinalNumber: ordinalNumber, 40677 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 40678 values: eraValues, 40679 defaultWidth: 'wide' 40680 }), 40681 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 40682 values: quarterValues, 40683 defaultWidth: 'wide', 40684 argumentCallback: function (quarter) { 40685 return Number(quarter) - 1; 40686 } 40687 }), 40688 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 40689 values: monthValues, 40690 defaultWidth: 'wide' 40691 }), 40692 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 40693 values: dayValues, 40694 defaultWidth: 'wide' 40695 }), 40696 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 40697 values: dayPeriodValues, 40698 defaultWidth: 'wide', 40699 formattingValues: formattingDayPeriodValues, 40700 defaultFormattingWidth: 'wide' 40701 }) 40702 }; 40703 /* harmony default export */ 40704 __webpack_exports__["a"] = (localize); 40705 40706 /***/ 40707 }), 40708 /* 545 */ 40709 /***/ (function (module, __webpack_exports__, __webpack_require__) { 40710 40711 "use strict"; 40712 /* harmony import */ 40713 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 40714 /* harmony import */ 40715 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 40716 40717 40718 var matchOrdinalNumberPattern = /^(\d+)(º)?/i; 40719 var parseOrdinalNumberPattern = /\d+/i; 40720 var matchEraPatterns = { 40721 narrow: /^(ac|dc|a|d)/i, 40722 abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, 40723 wide: /^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i 40724 }; 40725 var parseEraPatterns = { 40726 any: [/^ac/i, /^dc/i], 40727 wide: [/^(antes de cristo|antes de la era com[uú]n)/i, /^(despu[eé]s de cristo|era com[uú]n)/i] 40728 }; 40729 var matchQuarterPatterns = { 40730 narrow: /^[1234]/i, 40731 abbreviated: /^T[1234]/i, 40732 wide: /^[1234](º)? trimestre/i 40733 }; 40734 var parseQuarterPatterns = { 40735 any: [/1/i, /2/i, /3/i, /4/i] 40736 }; 40737 var matchMonthPatterns = { 40738 narrow: /^[efmajsond]/i, 40739 abbreviated: /^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i, 40740 wide: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i 40741 }; 40742 var parseMonthPatterns = { 40743 narrow: [/^e/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 40744 any: [/^en/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i] 40745 }; 40746 var matchDayPatterns = { 40747 narrow: /^[dlmjvs]/i, 40748 short: /^(do|lu|ma|mi|ju|vi|sa)/i, 40749 abbreviated: /^(dom|lun|mar|mie|jue|vie|sab)/i, 40750 wide: /^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i 40751 }; 40752 var parseDayPatterns = { 40753 narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], 40754 any: [/^do/i, /^lu/i, /^ma/i, /^mi/i, /^ju/i, /^vi/i, /^sa/i] 40755 }; 40756 var matchDayPeriodPatterns = { 40757 narrow: /^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i, 40758 any: /^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i 40759 }; 40760 var parseDayPeriodPatterns = { 40761 any: { 40762 am: /^a/i, 40763 pm: /^p/i, 40764 midnight: /^mn/i, 40765 noon: /^md/i, 40766 morning: /mañana/i, 40767 afternoon: /tarde/i, 40768 evening: /tarde/i, 40769 night: /noche/i 40770 } 40771 }; 40772 var match = { 40773 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 40774 matchPattern: matchOrdinalNumberPattern, 40775 parsePattern: parseOrdinalNumberPattern, 40776 valueCallback: function (value) { 40777 return parseInt(value, 10); 40778 } 40779 }), 40780 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 40781 matchPatterns: matchEraPatterns, 40782 defaultMatchWidth: 'wide', 40783 parsePatterns: parseEraPatterns, 40784 defaultParseWidth: 'any' 40785 }), 40786 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 40787 matchPatterns: matchQuarterPatterns, 40788 defaultMatchWidth: 'wide', 40789 parsePatterns: parseQuarterPatterns, 40790 defaultParseWidth: 'any', 40791 valueCallback: function (index) { 40792 return index + 1; 40793 } 40794 }), 40795 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 40796 matchPatterns: matchMonthPatterns, 40797 defaultMatchWidth: 'wide', 40798 parsePatterns: parseMonthPatterns, 40799 defaultParseWidth: 'any' 40800 }), 40801 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 40802 matchPatterns: matchDayPatterns, 40803 defaultMatchWidth: 'wide', 40804 parsePatterns: parseDayPatterns, 40805 defaultParseWidth: 'any' 40806 }), 40807 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 40808 matchPatterns: matchDayPeriodPatterns, 40809 defaultMatchWidth: 'any', 40810 parsePatterns: parseDayPeriodPatterns, 40811 defaultParseWidth: 'any' 40812 }) 40813 }; 40814 /* harmony default export */ 40815 __webpack_exports__["a"] = (match); 40816 40817 /***/ 40818 }), 40819 /* 546 */ 40820 /***/ (function (module, __webpack_exports__, __webpack_require__) { 40821 40822 "use strict"; 40823 /* harmony import */ 40824 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(547); 40825 /* harmony import */ 40826 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(548); 40827 /* harmony import */ 40828 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(549); 40829 /* harmony import */ 40830 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(550); 40831 /* harmony import */ 40832 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(551); 40833 40834 40835 /** 40836 * @type {Locale} 40837 * @category Locales 40838 * @summary Estonian locale. 40839 * @language Estonian 40840 * @iso-639-2 est 40841 * @author Priit Hansen [@HansenPriit]{@link https://github.com/priithansen} 40842 */ 40843 40844 var locale = { 40845 code: 'et', 40846 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 40847 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 40848 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 40849 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 40850 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 40851 options: { 40852 weekStartsOn: 1 40853 /* Monday */ 40854 , 40855 firstWeekContainsDate: 4 40856 } 40857 }; 40858 /* harmony default export */ 40859 __webpack_exports__["a"] = (locale); 40860 40861 /***/ 40862 }), 40863 /* 547 */ 40864 /***/ (function (module, __webpack_exports__, __webpack_require__) { 40865 40866 "use strict"; 40867 /* harmony export (immutable) */ 40868 __webpack_exports__["a"] = formatDistance; 40869 var formatDistanceLocale = { 40870 lessThanXSeconds: { 40871 standalone: { 40872 one: 'vähem kui üks sekund', 40873 other: 'vähem kui {{count}} sekundit' 40874 }, 40875 withPreposition: { 40876 one: 'vähem kui ühe sekundi', 40877 other: 'vähem kui {{count}} sekundi' 40878 } 40879 }, 40880 xSeconds: { 40881 standalone: { 40882 one: 'üks sekund', 40883 other: '{{count}} sekundit' 40884 }, 40885 withPreposition: { 40886 one: 'ühe sekundi', 40887 other: '{{count}} sekundi' 40888 } 40889 }, 40890 halfAMinute: { 40891 standalone: 'pool minutit', 40892 withPreposition: 'poole minuti' 40893 }, 40894 lessThanXMinutes: { 40895 standalone: { 40896 one: 'vähem kui üks minut', 40897 other: 'vähem kui {{count}} minutit' 40898 }, 40899 withPreposition: { 40900 one: 'vähem kui ühe minuti', 40901 other: 'vähem kui {{count}} minuti' 40902 } 40903 }, 40904 xMinutes: { 40905 standalone: { 40906 one: 'üks minut', 40907 other: '{{count}} minutit' 40908 }, 40909 withPreposition: { 40910 one: 'ühe minuti', 40911 other: '{{count}} minuti' 40912 } 40913 }, 40914 aboutXHours: { 40915 standalone: { 40916 one: 'umbes üks tund', 40917 other: 'umbes {{count}} tundi' 40918 }, 40919 withPreposition: { 40920 one: 'umbes ühe tunni', 40921 other: 'umbes {{count}} tunni' 40922 } 40923 }, 40924 xHours: { 40925 standalone: { 40926 one: 'üks tund', 40927 other: '{{count}} tundi' 40928 }, 40929 withPreposition: { 40930 one: 'ühe tunni', 40931 other: '{{count}} tunni' 40932 } 40933 }, 40934 xDays: { 40935 standalone: { 40936 one: 'üks päev', 40937 other: '{{count}} päeva' 40938 }, 40939 withPreposition: { 40940 one: 'ühe päeva', 40941 other: '{{count}} päeva' 40942 } 40943 }, 40944 aboutXWeeks: { 40945 standalone: { 40946 one: 'umbes üks nädal', 40947 other: 'umbes {{count}} nädalat' 40948 }, 40949 withPreposition: { 40950 one: 'umbes ühe nädala', 40951 other: 'umbes {{count}} nädala' 40952 } 40953 }, 40954 xWeeks: { 40955 standalone: { 40956 one: 'üks nädal', 40957 other: '{{count}} nädalat' 40958 }, 40959 withPreposition: { 40960 one: 'ühe nädala', 40961 other: '{{count}} nädala' 40962 } 40963 }, 40964 aboutXMonths: { 40965 standalone: { 40966 one: 'umbes üks kuu', 40967 other: 'umbes {{count}} kuud' 40968 }, 40969 withPreposition: { 40970 one: 'umbes ühe kuu', 40971 other: 'umbes {{count}} kuu' 40972 } 40973 }, 40974 xMonths: { 40975 standalone: { 40976 one: 'üks kuu', 40977 other: '{{count}} kuud' 40978 }, 40979 withPreposition: { 40980 one: 'ühe kuu', 40981 other: '{{count}} kuu' 40982 } 40983 }, 40984 aboutXYears: { 40985 standalone: { 40986 one: 'umbes üks aasta', 40987 other: 'umbes {{count}} aastat' 40988 }, 40989 withPreposition: { 40990 one: 'umbes ühe aasta', 40991 other: 'umbes {{count}} aasta' 40992 } 40993 }, 40994 xYears: { 40995 standalone: { 40996 one: 'üks aasta', 40997 other: '{{count}} aastat' 40998 }, 40999 withPreposition: { 41000 one: 'ühe aasta', 41001 other: '{{count}} aasta' 41002 } 41003 }, 41004 overXYears: { 41005 standalone: { 41006 one: 'rohkem kui üks aasta', 41007 other: 'rohkem kui {{count}} aastat' 41008 }, 41009 withPreposition: { 41010 one: 'rohkem kui ühe aasta', 41011 other: 'rohkem kui {{count}} aasta' 41012 } 41013 }, 41014 almostXYears: { 41015 standalone: { 41016 one: 'peaaegu üks aasta', 41017 other: 'peaaegu {{count}} aastat' 41018 }, 41019 withPreposition: { 41020 one: 'peaaegu ühe aasta', 41021 other: 'peaaegu {{count}} aasta' 41022 } 41023 } 41024 }; 41025 41026 function formatDistance(token, count, options) { 41027 options = options || {}; 41028 var usageGroup = options.addSuffix ? formatDistanceLocale[token].withPreposition : formatDistanceLocale[token].standalone; 41029 var result; 41030 41031 if (typeof usageGroup === 'string') { 41032 result = usageGroup; 41033 } else if (count === 1) { 41034 result = usageGroup.one; 41035 } else { 41036 result = usageGroup.other.replace('{{count}}', count); 41037 } 41038 41039 if (options.addSuffix) { 41040 if (options.comparison > 0) { 41041 return result + ' pärast'; 41042 } else { 41043 return result + ' eest'; 41044 } 41045 } 41046 41047 return result; 41048 } 41049 41050 /***/ 41051 }), 41052 /* 548 */ 41053 /***/ (function (module, __webpack_exports__, __webpack_require__) { 41054 41055 "use strict"; 41056 /* harmony import */ 41057 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 41058 41059 var dateFormats = { 41060 full: 'eeee, d. MMMM y', 41061 long: 'd. MMMM y', 41062 medium: 'd. MMM y', 41063 short: 'dd.MM.y' 41064 }; 41065 var timeFormats = { 41066 full: 'HH:mm:ss zzzz', 41067 long: 'HH:mm:ss z', 41068 medium: 'HH:mm:ss', 41069 short: 'HH:mm' 41070 }; 41071 var dateTimeFormats = { 41072 full: "{{date}} 'kell' {{time}}", 41073 long: "{{date}} 'kell' {{time}}", 41074 medium: '{{date}}. {{time}}', 41075 short: '{{date}}. {{time}}' 41076 }; 41077 var formatLong = { 41078 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 41079 formats: dateFormats, 41080 defaultWidth: 'full' 41081 }), 41082 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 41083 formats: timeFormats, 41084 defaultWidth: 'full' 41085 }), 41086 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 41087 formats: dateTimeFormats, 41088 defaultWidth: 'full' 41089 }) 41090 }; 41091 /* harmony default export */ 41092 __webpack_exports__["a"] = (formatLong); 41093 41094 /***/ 41095 }), 41096 /* 549 */ 41097 /***/ (function (module, __webpack_exports__, __webpack_require__) { 41098 41099 "use strict"; 41100 /* harmony export (immutable) */ 41101 __webpack_exports__["a"] = formatRelative; 41102 var formatRelativeLocale = { 41103 lastWeek: "'eelmine' eeee 'kell' p", 41104 yesterday: "'eile kell' p", 41105 today: "'täna kell' p", 41106 tomorrow: "'homme kell' p", 41107 nextWeek: "'järgmine' eeee 'kell' p", 41108 other: 'P' 41109 }; 41110 41111 function formatRelative(token, _date, _baseDate, _options) { 41112 return formatRelativeLocale[token]; 41113 } 41114 41115 /***/ 41116 }), 41117 /* 550 */ 41118 /***/ (function (module, __webpack_exports__, __webpack_require__) { 41119 41120 "use strict"; 41121 /* harmony import */ 41122 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 41123 41124 var eraValues = { 41125 narrow: ['e.m.a', 'm.a.j'], 41126 abbreviated: ['e.m.a', 'm.a.j'], 41127 wide: ['enne meie ajaarvamist', 'meie ajaarvamise järgi'] 41128 }; 41129 var quarterValues = { 41130 narrow: ['1', '2', '3', '4'], 41131 abbreviated: ['K1', 'K2', 'K3', 'K4'], 41132 wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] 41133 }; 41134 var monthValues = { 41135 narrow: ['J', 'V', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], 41136 abbreviated: ['jaan', 'veebr', 'märts', 'apr', 'mai', 'juuni', 'juuli', 'aug', 'sept', 'okt', 'nov', 'dets'], 41137 wide: ['jaanuar', 'veebruar', 'märts', 'aprill', 'mai', 'juuni', 'juuli', 'august', 'september', 'oktoober', 'november', 'detsember'] 41138 }; 41139 var dayValues = { 41140 narrow: ['P', 'E', 'T', 'K', 'N', 'R', 'L'], 41141 short: ['P', 'E', 'T', 'K', 'N', 'R', 'L'], 41142 abbreviated: ['pühap.', 'esmasp.', 'teisip.', 'kolmap.', 'neljap.', 'reede.', 'laup.'], 41143 wide: ['pühapäev', 'esmaspäev', 'teisipäev', 'kolmapäev', 'neljapäev', 'reede', 'laupäev'] 41144 }; 41145 var dayPeriodValues = { 41146 narrow: { 41147 am: 'AM', 41148 pm: 'PM', 41149 midnight: 'kesköö', 41150 noon: 'keskpäev', 41151 morning: 'hommik', 41152 afternoon: 'pärastlõuna', 41153 evening: 'õhtu', 41154 night: 'öö' 41155 }, 41156 abbreviated: { 41157 am: 'AM', 41158 pm: 'PM', 41159 midnight: 'kesköö', 41160 noon: 'keskpäev', 41161 morning: 'hommik', 41162 afternoon: 'pärastlõuna', 41163 evening: 'õhtu', 41164 night: 'öö' 41165 }, 41166 wide: { 41167 am: 'AM', 41168 pm: 'PM', 41169 midnight: 'kesköö', 41170 noon: 'keskpäev', 41171 morning: 'hommik', 41172 afternoon: 'pärastlõuna', 41173 evening: 'õhtu', 41174 night: 'öö' 41175 } 41176 }; 41177 var formattingDayPeriodValues = { 41178 narrow: { 41179 am: 'AM', 41180 pm: 'PM', 41181 midnight: 'keskööl', 41182 noon: 'keskpäeval', 41183 morning: 'hommikul', 41184 afternoon: 'pärastlõunal', 41185 evening: 'õhtul', 41186 night: 'öösel' 41187 }, 41188 abbreviated: { 41189 am: 'AM', 41190 pm: 'PM', 41191 midnight: 'keskööl', 41192 noon: 'keskpäeval', 41193 morning: 'hommikul', 41194 afternoon: 'pärastlõunal', 41195 evening: 'õhtul', 41196 night: 'öösel' 41197 }, 41198 wide: { 41199 am: 'AM', 41200 pm: 'PM', 41201 midnight: 'keskööl', 41202 noon: 'keskpäeval', 41203 morning: 'hommikul', 41204 afternoon: 'pärastlõunal', 41205 evening: 'õhtul', 41206 night: 'öösel' 41207 } 41208 }; 41209 41210 function ordinalNumber(dirtyNumber) { 41211 var number = Number(dirtyNumber); 41212 return number + '.'; 41213 } 41214 41215 var localize = { 41216 ordinalNumber: ordinalNumber, 41217 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 41218 values: eraValues, 41219 defaultWidth: 'wide' 41220 }), 41221 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 41222 values: quarterValues, 41223 defaultWidth: 'wide', 41224 argumentCallback: function (quarter) { 41225 return Number(quarter) - 1; 41226 } 41227 }), 41228 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 41229 values: monthValues, 41230 formattingValues: monthValues, 41231 defaultWidth: 'wide' 41232 }), 41233 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 41234 values: dayValues, 41235 formattingValues: dayValues, 41236 defaultWidth: 'wide' 41237 }), 41238 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 41239 values: dayPeriodValues, 41240 formattingValues: formattingDayPeriodValues, 41241 defaultWidth: 'wide' 41242 }) 41243 }; 41244 /* harmony default export */ 41245 __webpack_exports__["a"] = (localize); 41246 41247 /***/ 41248 }), 41249 /* 551 */ 41250 /***/ (function (module, __webpack_exports__, __webpack_require__) { 41251 41252 "use strict"; 41253 /* harmony import */ 41254 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 41255 /* harmony import */ 41256 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 41257 41258 41259 var matchOrdinalNumberPattern = /^\d+\./i; 41260 var parseOrdinalNumberPattern = /\d+/i; 41261 var matchEraPatterns = { 41262 narrow: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i, 41263 abbreviated: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i, 41264 wide: /^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i 41265 }; 41266 var parseEraPatterns = { 41267 any: [/^e/i, /^(m|p)/i] 41268 }; 41269 var matchQuarterPatterns = { 41270 narrow: /^[1234]/i, 41271 abbreviated: /^K[1234]/i, 41272 wide: /^[1234](\.)? kvartal/i 41273 }; 41274 var parseQuarterPatterns = { 41275 any: [/1/i, /2/i, /3/i, /4/i] 41276 }; 41277 var matchMonthPatterns = { 41278 narrow: /^[jvmasond]/i, 41279 abbreviated: /^('jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets')/i, 41280 wide: /^('jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember')/i 41281 }; 41282 var parseMonthPatterns = { 41283 narrow: [/^j/i, /^v/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 41284 any: [/^ja/i, /^v/i, /^mär/i, /^ap/i, /^mai/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] 41285 }; 41286 var matchDayPatterns = { 41287 narrow: /^[petknrl]/i, 41288 short: /^[petknrl]/i, 41289 abbreviated: /^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i, 41290 wide: /^('pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev')/i 41291 }; 41292 var parseDayPatterns = { 41293 any: [/^p/i, /^e/i, /^t/i, /^k/i, /^n/i, /^r/i, /^l/i] 41294 }; 41295 var matchDayPeriodPatterns = { 41296 any: /^(am|pm|kesköö|keskpäev|hommik|pärastlõuna|õhtu|öö)/i 41297 }; 41298 var parseDayPeriodPatterns = { 41299 any: { 41300 am: /^a/i, 41301 pm: /^p/i, 41302 midnight: /^keskö/i, 41303 noon: /^keskp/i, 41304 morning: /hommik/i, 41305 afternoon: /pärastlõuna/i, 41306 evening: /õhtu/i, 41307 night: /öö/i 41308 } 41309 }; 41310 var match = { 41311 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 41312 matchPattern: matchOrdinalNumberPattern, 41313 parsePattern: parseOrdinalNumberPattern, 41314 valueCallback: function (value) { 41315 return parseInt(value, 10); 41316 } 41317 }), 41318 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 41319 matchPatterns: matchEraPatterns, 41320 defaultMatchWidth: 'wide', 41321 parsePatterns: parseEraPatterns, 41322 defaultParseWidth: 'any' 41323 }), 41324 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 41325 matchPatterns: matchQuarterPatterns, 41326 defaultMatchWidth: 'wide', 41327 parsePatterns: parseQuarterPatterns, 41328 defaultParseWidth: 'any', 41329 valueCallback: function (index) { 41330 return index + 1; 41331 } 41332 }), 41333 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 41334 matchPatterns: matchMonthPatterns, 41335 defaultMatchWidth: 'wide', 41336 parsePatterns: parseMonthPatterns, 41337 defaultParseWidth: 'any' 41338 }), 41339 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 41340 matchPatterns: matchDayPatterns, 41341 defaultMatchWidth: 'wide', 41342 parsePatterns: parseDayPatterns, 41343 defaultParseWidth: 'any' 41344 }), 41345 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 41346 matchPatterns: matchDayPeriodPatterns, 41347 defaultMatchWidth: 'any', 41348 parsePatterns: parseDayPeriodPatterns, 41349 defaultParseWidth: 'any' 41350 }) 41351 }; 41352 /* harmony default export */ 41353 __webpack_exports__["a"] = (match); 41354 41355 /***/ 41356 }), 41357 /* 552 */ 41358 /***/ (function (module, __webpack_exports__, __webpack_require__) { 41359 41360 "use strict"; 41361 /* harmony import */ 41362 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(553); 41363 /* harmony import */ 41364 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(554); 41365 /* harmony import */ 41366 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(555); 41367 /* harmony import */ 41368 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(556); 41369 /* harmony import */ 41370 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(557); 41371 41372 41373 /** 41374 * @type {Locale} 41375 * @category Locales 41376 * @summary Basque locale. 41377 * @language Basque 41378 * @iso-639-2 eus 41379 * @author Jacob Söderblom [@JacobSoderblom]{@link https://github.com/JacobSoderblom} 41380 */ 41381 41382 var locale = { 41383 code: 'eu', 41384 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 41385 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 41386 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 41387 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 41388 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 41389 options: { 41390 weekStartsOn: 1 41391 /* Monday */ 41392 , 41393 firstWeekContainsDate: 1 41394 } 41395 }; 41396 /* harmony default export */ 41397 __webpack_exports__["a"] = (locale); 41398 41399 /***/ 41400 }), 41401 /* 553 */ 41402 /***/ (function (module, __webpack_exports__, __webpack_require__) { 41403 41404 "use strict"; 41405 /* harmony export (immutable) */ 41406 __webpack_exports__["a"] = formatDistance; 41407 var formatDistanceLocale = { 41408 lessThanXSeconds: { 41409 one: 'segundo bat baino gutxiago', 41410 other: '{{count}} segundo baino gutxiago' 41411 }, 41412 xSeconds: { 41413 one: '1 segundo', 41414 other: '{{count}} segundo' 41415 }, 41416 halfAMinute: 'minutu erdi', 41417 lessThanXMinutes: { 41418 one: 'minutu bat baino gutxiago', 41419 other: '{{count}} minutu baino gutxiago' 41420 }, 41421 xMinutes: { 41422 one: '1 minutu', 41423 other: '{{count}} minutu' 41424 }, 41425 aboutXHours: { 41426 one: '1 ordu gutxi gorabehera', 41427 other: '{{count}} ordu gutxi gorabehera' 41428 }, 41429 xHours: { 41430 one: '1 ordu', 41431 other: '{{count}} ordu' 41432 }, 41433 xDays: { 41434 one: '1 egun', 41435 other: '{{count}} egun' 41436 }, 41437 aboutXWeeks: { 41438 one: 'aste 1 inguru', 41439 other: '{{count}} aste inguru' 41440 }, 41441 xWeeks: { 41442 one: '1 aste', 41443 other: '{{count}} astean' 41444 }, 41445 aboutXMonths: { 41446 one: '1 hilabete gutxi gorabehera', 41447 other: '{{count}} hilabete gutxi gorabehera' 41448 }, 41449 xMonths: { 41450 one: '1 hilabete', 41451 other: '{{count}} hilabete' 41452 }, 41453 aboutXYears: { 41454 one: '1 urte gutxi gorabehera', 41455 other: '{{count}} urte gutxi gorabehera' 41456 }, 41457 xYears: { 41458 one: '1 urte', 41459 other: '{{count}} urte' 41460 }, 41461 overXYears: { 41462 one: '1 urte baino gehiago', 41463 other: '{{count}} urte baino gehiago' 41464 }, 41465 almostXYears: { 41466 one: 'ia 1 urte', 41467 other: 'ia {{count}} urte' 41468 } 41469 }; 41470 41471 function formatDistance(token, count, options) { 41472 options = options || {}; 41473 var result; 41474 41475 if (typeof formatDistanceLocale[token] === 'string') { 41476 result = formatDistanceLocale[token]; 41477 } else if (count === 1) { 41478 result = formatDistanceLocale[token].one; 41479 } else { 41480 result = formatDistanceLocale[token].other.replace('{{count}}', count); 41481 } 41482 41483 if (options.addSuffix) { 41484 if (options.comparison > 0) { 41485 return 'en ' + result; 41486 } else { 41487 return 'duela ' + result; 41488 } 41489 } 41490 41491 return result; 41492 } 41493 41494 /***/ 41495 }), 41496 /* 554 */ 41497 /***/ (function (module, __webpack_exports__, __webpack_require__) { 41498 41499 "use strict"; 41500 /* harmony import */ 41501 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 41502 41503 var dateFormats = { 41504 full: "EEEE, d 'de' MMMM y", 41505 long: "d 'de' MMMM y", 41506 medium: 'd MMM y', 41507 short: 'dd/MM/y' 41508 }; 41509 var timeFormats = { 41510 full: 'HH:mm:ss zzzz', 41511 long: 'HH:mm:ss z', 41512 medium: 'HH:mm:ss', 41513 short: 'HH:mm' 41514 }; 41515 var dateTimeFormats = { 41516 full: "{{date}} 'tan' {{time}}", 41517 long: "{{date}} 'tan' {{time}}", 41518 medium: '{{date}}, {{time}}', 41519 short: '{{date}}, {{time}}' 41520 }; 41521 var formatLong = { 41522 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 41523 formats: dateFormats, 41524 defaultWidth: 'full' 41525 }), 41526 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 41527 formats: timeFormats, 41528 defaultWidth: 'full' 41529 }), 41530 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 41531 formats: dateTimeFormats, 41532 defaultWidth: 'full' 41533 }) 41534 }; 41535 /* harmony default export */ 41536 __webpack_exports__["a"] = (formatLong); 41537 41538 /***/ 41539 }), 41540 /* 555 */ 41541 /***/ (function (module, __webpack_exports__, __webpack_require__) { 41542 41543 "use strict"; 41544 /* harmony export (immutable) */ 41545 __webpack_exports__["a"] = formatRelative; 41546 var formatRelativeLocale = { 41547 lastWeek: "'joan den' eeee, LT", 41548 yesterday: "'atzo,' p", 41549 today: "'gaur,' p", 41550 tomorrow: "'bihar,' p", 41551 nextWeek: 'eeee, p', 41552 other: 'P' 41553 }; 41554 var formatRelativeLocalePlural = { 41555 lastWeek: "'joan den' eeee, p", 41556 yesterday: "'atzo,' p", 41557 today: "'gaur,' p", 41558 tomorrow: "'bihar,' p", 41559 nextWeek: 'eeee, p', 41560 other: 'P' 41561 }; 41562 41563 function formatRelative(token, date, _baseDate, _options) { 41564 if (date.getUTCHours() !== 1) { 41565 return formatRelativeLocalePlural[token]; 41566 } 41567 41568 return formatRelativeLocale[token]; 41569 } 41570 41571 /***/ 41572 }), 41573 /* 556 */ 41574 /***/ (function (module, __webpack_exports__, __webpack_require__) { 41575 41576 "use strict"; 41577 /* harmony import */ 41578 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 41579 41580 var eraValues = { 41581 narrow: ['k.a.', 'k.o.'], 41582 abbreviated: ['k.a.', 'k.o.'], 41583 wide: ['kristo aurretik', 'kristo ondoren'] 41584 }; 41585 var quarterValues = { 41586 narrow: ['1', '2', '3', '4'], 41587 abbreviated: ['1H', '2H', '3H', '4H'], 41588 wide: ['1. hiruhilekoa', '2. hiruhilekoa', '3. hiruhilekoa', '4. hiruhilekoa'] 41589 }; 41590 var monthValues = { 41591 narrow: ['u', 'o', 'm', 'a', 'm', 'e', 'u', 'a', 'i', 'u', 'a', 'a'], 41592 abbreviated: ['urt', 'ots', 'mar', 'api', 'mai', 'eka', 'uzt', 'abu', 'ira', 'urr', 'aza', 'abe'], 41593 wide: ['urtarrila', 'otsaila', 'martxoa', 'apirila', 'maiatza', 'ekaina', 'uztaila', 'abuztua', 'iraila', 'urria', 'azaroa', 'abendua'] 41594 }; 41595 var dayValues = { 41596 narrow: ['i', 'a', 'a', 'a', 'o', 'o', 'l'], 41597 short: ['ig', 'al', 'as', 'az', 'og', 'or', 'lr'], 41598 abbreviated: ['iga', 'ast', 'ast', 'ast', 'ost', 'ost', 'lar'], 41599 wide: ['igandea', 'astelehena', 'asteartea', 'asteazkena', 'osteguna', 'ostirala', 'larunbata'] 41600 }; 41601 var dayPeriodValues = { 41602 narrow: { 41603 am: 'a', 41604 pm: 'p', 41605 midnight: 'ge', 41606 noon: 'eg', 41607 morning: 'goiza', 41608 afternoon: 'arratsaldea', 41609 evening: 'arratsaldea', 41610 night: 'gaua' 41611 }, 41612 abbreviated: { 41613 am: 'AM', 41614 pm: 'PM', 41615 midnight: 'gauerdia', 41616 noon: 'eguerdia', 41617 morning: 'goiza', 41618 afternoon: 'arratsaldea', 41619 evening: 'arratsaldea', 41620 night: 'gaua' 41621 }, 41622 wide: { 41623 am: 'a.m.', 41624 pm: 'p.m.', 41625 midnight: 'gauerdia', 41626 noon: 'eguerdia', 41627 morning: 'goiza', 41628 afternoon: 'arratsaldea', 41629 evening: 'arratsaldea', 41630 night: 'gaua' 41631 } 41632 }; 41633 var formattingDayPeriodValues = { 41634 narrow: { 41635 am: 'a', 41636 pm: 'p', 41637 midnight: 'ge', 41638 noon: 'eg', 41639 morning: 'goizean', 41640 afternoon: 'arratsaldean', 41641 evening: 'arratsaldean', 41642 night: 'gauean' 41643 }, 41644 abbreviated: { 41645 am: 'AM', 41646 pm: 'PM', 41647 midnight: 'gauerdia', 41648 noon: 'eguerdia', 41649 morning: 'goizean', 41650 afternoon: 'arratsaldean', 41651 evening: 'arratsaldean', 41652 night: 'gauean' 41653 }, 41654 wide: { 41655 am: 'a.m.', 41656 pm: 'p.m.', 41657 midnight: 'gauerdia', 41658 noon: 'eguerdia', 41659 morning: 'goizean', 41660 afternoon: 'arratsaldean', 41661 evening: 'arratsaldean', 41662 night: 'gauean' 41663 } 41664 }; 41665 41666 function ordinalNumber(dirtyNumber) { 41667 var number = Number(dirtyNumber); 41668 return number + '.'; 41669 } 41670 41671 var localize = { 41672 ordinalNumber: ordinalNumber, 41673 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 41674 values: eraValues, 41675 defaultWidth: 'wide' 41676 }), 41677 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 41678 values: quarterValues, 41679 defaultWidth: 'wide', 41680 argumentCallback: function (quarter) { 41681 return Number(quarter) - 1; 41682 } 41683 }), 41684 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 41685 values: monthValues, 41686 defaultWidth: 'wide' 41687 }), 41688 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 41689 values: dayValues, 41690 defaultWidth: 'wide' 41691 }), 41692 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 41693 values: dayPeriodValues, 41694 defaultWidth: 'wide', 41695 formattingValues: formattingDayPeriodValues, 41696 defaultFormattingWidth: 'wide' 41697 }) 41698 }; 41699 /* harmony default export */ 41700 __webpack_exports__["a"] = (localize); 41701 41702 /***/ 41703 }), 41704 /* 557 */ 41705 /***/ (function (module, __webpack_exports__, __webpack_require__) { 41706 41707 "use strict"; 41708 /* harmony import */ 41709 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 41710 /* harmony import */ 41711 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 41712 41713 41714 var matchOrdinalNumberPattern = /^(\d+)(.)?/i; 41715 var parseOrdinalNumberPattern = /\d+/i; 41716 var matchEraPatterns = { 41717 narrow: /^(k.a.|k.o.)/i, 41718 abbreviated: /^(k.a.|k.o.)/i, 41719 wide: /^(kristo aurretik|kristo ondoren)/i 41720 }; 41721 var parseEraPatterns = { 41722 narrow: [/^k.a./i, /^k.o./i], 41723 abbreviated: [/^(k.a.)/i, /^(k.o.)/i], 41724 wide: [/^(kristo aurretik)/i, /^(kristo ondoren)/i] 41725 }; 41726 var matchQuarterPatterns = { 41727 narrow: /^[1234]/i, 41728 abbreviated: /^[1234]H/i, 41729 wide: /^[1234](.)? hiruhilekoa/i 41730 }; 41731 var parseQuarterPatterns = { 41732 any: [/1/i, /2/i, /3/i, /4/i] 41733 }; 41734 var matchMonthPatterns = { 41735 narrow: /^[uomaei]/i, 41736 abbreviated: /^(urt|ots|mar|api|mai|eka|uzt|abu|ira|urr|aza|abe)/i, 41737 wide: /^(urtarrila|otsaila|martxoa|apirila|maiatza|ekaina|uztaila|abuztua|iraila|urria|azaroa|abendua)/i 41738 }; 41739 var parseMonthPatterns = { 41740 narrow: [/^u/i, /^o/i, /^m/i, /^a/i, /^m/i, /^e/i, /^u/i, /^a/i, /^i/i, /^u/i, /^a/i, /^a/i], 41741 any: [/^urt/i, /^ots/i, /^mar/i, /^api/i, /^mai/i, /^eka/i, /^uzt/i, /^abu/i, /^ira/i, /^urr/i, /^aza/i, /^abe/i] 41742 }; 41743 var matchDayPatterns = { 41744 narrow: /^[iaol]/i, 41745 short: /^(ig|al|as|az|og|or|lr)/i, 41746 abbreviated: /^(iga|ast|ast|ast|ost|ost|lar)/i, 41747 wide: /^(igandea|astelehena|asteartea|asteazkena|osteguna|ostirala|larunbata)/i 41748 }; 41749 var parseDayPatterns = { 41750 narrow: [/^i/i, /^a/i, /^a/i, /^a/i, /^o/i, /^o/i, /^l/i], 41751 short: [/^ig/i, /^al/i, /^as/i, /^az/i, /^og/i, /^or/i, /^lr/i], 41752 abbreviated: [/^iga/i, /^ast/i, /^ast/i, /^ast/i, /^ost/i, /^ost/i, /^lar/i], 41753 wide: [/^igandea/i, /^astelehena/i, /^asteartea/i, /^asteazkena/i, /^osteguna/i, /^ostirala/i, /^larunbata/i] 41754 }; 41755 var matchDayPeriodPatterns = { 41756 narrow: /^(a|p|ge|eg|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i, 41757 any: /^([ap]\.?\s?m\.?|gauerdia|eguerdia|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i 41758 }; 41759 var parseDayPeriodPatterns = { 41760 narrow: { 41761 am: /^a/i, 41762 pm: /^p/i, 41763 midnight: /^ge/i, 41764 noon: /^eg/i, 41765 morning: /goiz/i, 41766 afternoon: /arratsaldea/i, 41767 evening: /arratsaldea/i, 41768 night: /gau/i 41769 }, 41770 any: { 41771 am: /^a/i, 41772 pm: /^p/i, 41773 midnight: /^gauerdia/i, 41774 noon: /^eguerdia/i, 41775 morning: /goiz/i, 41776 afternoon: /arratsaldea/i, 41777 evening: /arratsaldea/i, 41778 night: /gau/i 41779 } 41780 }; 41781 var match = { 41782 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 41783 matchPattern: matchOrdinalNumberPattern, 41784 parsePattern: parseOrdinalNumberPattern, 41785 valueCallback: function (value) { 41786 return parseInt(value, 10); 41787 } 41788 }), 41789 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 41790 matchPatterns: matchEraPatterns, 41791 defaultMatchWidth: 'wide', 41792 parsePatterns: parseEraPatterns, 41793 defaultParseWidth: 'any' 41794 }), 41795 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 41796 matchPatterns: matchQuarterPatterns, 41797 defaultMatchWidth: 'wide', 41798 parsePatterns: parseQuarterPatterns, 41799 defaultParseWidth: 'any', 41800 valueCallback: function (index) { 41801 return index + 1; 41802 } 41803 }), 41804 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 41805 matchPatterns: matchMonthPatterns, 41806 defaultMatchWidth: 'wide', 41807 parsePatterns: parseMonthPatterns, 41808 defaultParseWidth: 'any' 41809 }), 41810 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 41811 matchPatterns: matchDayPatterns, 41812 defaultMatchWidth: 'wide', 41813 parsePatterns: parseDayPatterns, 41814 defaultParseWidth: 'any' 41815 }), 41816 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 41817 matchPatterns: matchDayPeriodPatterns, 41818 defaultMatchWidth: 'any', 41819 parsePatterns: parseDayPeriodPatterns, 41820 defaultParseWidth: 'any' 41821 }) 41822 }; 41823 /* harmony default export */ 41824 __webpack_exports__["a"] = (match); 41825 41826 /***/ 41827 }), 41828 /* 558 */ 41829 /***/ (function (module, __webpack_exports__, __webpack_require__) { 41830 41831 "use strict"; 41832 /* harmony import */ 41833 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(559); 41834 /* harmony import */ 41835 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(560); 41836 /* harmony import */ 41837 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(561); 41838 /* harmony import */ 41839 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(562); 41840 /* harmony import */ 41841 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(563); 41842 41843 41844 /** 41845 * @type {Locale} 41846 * @category Locales 41847 * @summary Persian/Farsi locale (Iran). 41848 * @language Persian 41849 * @iso-639-2 ira 41850 * @author Morteza Ziyae [@mort3za]{@link https://github.com/mort3za} 41851 */ 41852 41853 var locale = { 41854 code: 'fa-IR', 41855 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 41856 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 41857 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 41858 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 41859 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 41860 options: { 41861 weekStartsOn: 0 41862 /* Sunday */ 41863 , 41864 firstWeekContainsDate: 1 41865 } 41866 }; 41867 /* harmony default export */ 41868 __webpack_exports__["a"] = (locale); 41869 41870 /***/ 41871 }), 41872 /* 559 */ 41873 /***/ (function (module, __webpack_exports__, __webpack_require__) { 41874 41875 "use strict"; 41876 /* harmony export (immutable) */ 41877 __webpack_exports__["a"] = formatDistance; 41878 var formatDistanceLocale = { 41879 lessThanXSeconds: { 41880 one: 'ک٠تر از ÛÚ© ثاÙÛÙ', 41881 other: 'ک٠تر از {{count}} ثاÙÛÙ' 41882 }, 41883 xSeconds: { 41884 one: '1 ثاÙÛÙ', 41885 other: '{{count}} ثاÙÛÙ' 41886 }, 41887 halfAMinute: 'ÙÛ٠دÙÛÙÙ', 41888 lessThanXMinutes: { 41889 one: 'ک٠تر از ÛÚ© دÙÛÙÙ', 41890 other: 'ک٠تر از {{count}} دÙÛÙÙ' 41891 }, 41892 xMinutes: { 41893 one: '1 دÙÛÙÙ', 41894 other: '{{count}} دÙÛÙÙ' 41895 }, 41896 aboutXHours: { 41897 one: 'ØØ¯Ùد 1 ساعت', 41898 other: 'ØØ¯Ùد {{count}} ساعت' 41899 }, 41900 xHours: { 41901 one: '1 ساعت', 41902 other: '{{count}} ساعت' 41903 }, 41904 xDays: { 41905 one: '1 Ø±ÙØ²', 41906 other: '{{count}} Ø±ÙØ²' 41907 }, 41908 aboutXWeeks: { 41909 one: 'ØØ¯Ùد 1 ÙÙØªÙ', 41910 other: 'ØØ¯Ùد {{count}} ÙÙØªÙ' 41911 }, 41912 xWeeks: { 41913 one: '1 ÙÙØªÙ', 41914 other: '{{count}} ÙÙØªÙ' 41915 }, 41916 aboutXMonths: { 41917 one: 'ØØ¯Ùد 1 ٠اÙ', 41918 other: 'ØØ¯Ùد {{count}} ٠اÙ' 41919 }, 41920 xMonths: { 41921 one: '1 ٠اÙ', 41922 other: '{{count}} ٠اÙ' 41923 }, 41924 aboutXYears: { 41925 one: 'ØØ¯Ùد 1 ساÙ', 41926 other: 'ØØ¯Ùد {{count}} ساÙ' 41927 }, 41928 xYears: { 41929 one: '1 ساÙ', 41930 other: '{{count}} ساÙ' 41931 }, 41932 overXYears: { 41933 one: 'Ø¨ÛØ´ØªØ± از 1 ساÙ', 41934 other: 'Ø¨ÛØ´ØªØ± از {{count}} ساÙ' 41935 }, 41936 almostXYears: { 41937 one: 'ÙØ²Ø¯ÛÚ© 1 ساÙ', 41938 other: 'ÙØ²Ø¯ÛÚ© {{count}} ساÙ' 41939 } 41940 }; 41941 41942 function formatDistance(token, count, options) { 41943 options = options || {}; 41944 var result; 41945 41946 if (typeof formatDistanceLocale[token] === 'string') { 41947 result = formatDistanceLocale[token]; 41948 } else if (count === 1) { 41949 result = formatDistanceLocale[token].one; 41950 } else { 41951 result = formatDistanceLocale[token].other.replace('{{count}}', count); 41952 } 41953 41954 if (options.addSuffix) { 41955 if (options.comparison > 0) { 41956 return 'در ' + result; 41957 } else { 41958 return result + ' ÙØ¨Ù'; 41959 } 41960 } 41961 41962 return result; 41963 } 41964 41965 /***/ 41966 }), 41967 /* 560 */ 41968 /***/ (function (module, __webpack_exports__, __webpack_require__) { 41969 41970 "use strict"; 41971 /* harmony import */ 41972 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 41973 41974 var dateFormats = { 41975 full: 'EEEE do MMMM y', 41976 long: 'do MMMM y', 41977 medium: 'd MMM y', 41978 short: 'yyyy/MM/dd' 41979 }; 41980 var timeFormats = { 41981 full: 'h:mm:ss a zzzz', 41982 long: 'h:mm:ss a z', 41983 medium: 'h:mm:ss a', 41984 short: 'h:mm a' 41985 }; 41986 var dateTimeFormats = { 41987 full: "{{date}} 'در' {{time}}", 41988 long: "{{date}} 'در' {{time}}", 41989 medium: '{{date}}, {{time}}', 41990 short: '{{date}}, {{time}}' 41991 }; 41992 var formatLong = { 41993 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 41994 formats: dateFormats, 41995 defaultWidth: 'full' 41996 }), 41997 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 41998 formats: timeFormats, 41999 defaultWidth: 'full' 42000 }), 42001 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 42002 formats: dateTimeFormats, 42003 defaultWidth: 'full' 42004 }) 42005 }; 42006 /* harmony default export */ 42007 __webpack_exports__["a"] = (formatLong); 42008 42009 /***/ 42010 }), 42011 /* 561 */ 42012 /***/ (function (module, __webpack_exports__, __webpack_require__) { 42013 42014 "use strict"; 42015 /* harmony export (immutable) */ 42016 __webpack_exports__["a"] = formatRelative; 42017 var formatRelativeLocale = { 42018 lastWeek: "eeee 'گذشت٠در' p", 42019 yesterday: "'Ø¯ÛØ±Ùز در' p", 42020 today: "'Ø§Ù Ø±ÙØ² در' p", 42021 tomorrow: "'ÙØ±Ø¯Ø§ در' p", 42022 nextWeek: "eeee 'در' p", 42023 other: 'P' 42024 }; 42025 42026 function formatRelative(token, _date, _baseDate, _options) { 42027 return formatRelativeLocale[token]; 42028 } 42029 42030 /***/ 42031 }), 42032 /* 562 */ 42033 /***/ (function (module, __webpack_exports__, __webpack_require__) { 42034 42035 "use strict"; 42036 /* harmony import */ 42037 var __WEBPAC
42037K_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 42038 42039 var eraValues = { 42040 narrow: ['Ù', 'ب'], 42041 abbreviated: ['Ù.Ù .', 'ب.Ù .'], 42042 wide: ['ÙØ¨Ù از Ù ÛÙØ§Ø¯', 'بعد از Ù ÛÙØ§Ø¯'] 42043 }; 42044 var quarterValues = { 42045 narrow: ['1', '2', '3', '4'], 42046 abbreviated: ['سâÙ 1', 'سâÙ 2', 'سâÙ 3', 'سâÙ 4'], 42047 wide: ['سÙâ٠اÙÙ 1', 'سÙâ٠اÙÙ 2', 'سÙâ٠اÙÙ 3', 'سÙâ٠اÙÙ 4'] // Note: in English, the names of days of the week and months are capitalized. 42048 // If you are making a new locale based on this one, check if the same is true for the language you're working on. 42049 // Generally, formatted dates should look like they are in the middle of a sentence, 42050 // e.g. in Spanish language the weekdays and months should be in the lowercase. 42051 42052 }; 42053 var monthValues = { 42054 narrow: ['Ú', 'Ù', 'Ù ', 'Ø¢', 'Ù ', 'ج', 'ج', 'Ø¢', 'س', 'ا', 'Ù', 'د'], 42055 abbreviated: ['ÚØ§ÙÙ', 'ÙÙØ±', '٠ارس', 'آپر', 'Ù Û', 'جÙÙ', 'جÙÙÙ', 'Ø¢Ú¯Ù', 'سپتÙ', 'اکتÙ', 'ÙÙØ§Ù Ù', 'دسا٠Ù'], 42056 wide: ['ÚØ§ÙÙÛÙ', 'ÙÙØ±ÛÙ', '٠ارس', 'آپرÛÙ', 'Ù Û', 'جÙÙ', 'جÙÙØ§Û', 'Ø¢Ú¯ÙØ³Øª', 'سپتا٠بر', 'اکتبر', 'ÙÙØ§Ù بر', 'دسا٠بر'] 42057 }; 42058 var dayValues = { 42059 narrow: ['Û', 'د', 'س', 'Ú', 'Ù¾', 'ج', 'Ø´'], 42060 short: ['1Ø´', '2Ø´', '3Ø´', '4Ø´', '5Ø´', 'ج', 'Ø´'], 42061 abbreviated: ['ÛÚ©Ø´ÙØ¨Ù', 'Ø¯ÙØ´ÙبÙ', 'سÙâØ´ÙØ¨Ù', 'ÚÙØ§Ø±Ø´ÙبÙ', 'Ù¾ÙØ¬Ø´ÙبÙ', 'ج٠عÙ', 'Ø´ÙØ¨Ù'], 42062 wide: ['ÛÚ©Ø´ÙØ¨Ù', 'Ø¯ÙØ´ÙبÙ', 'سÙâØ´ÙØ¨Ù', 'ÚÙØ§Ø±Ø´ÙبÙ', 'Ù¾ÙØ¬Ø´ÙبÙ', 'ج٠عÙ', 'Ø´ÙØ¨Ù'] 42063 }; 42064 var dayPeriodValues = { 42065 narrow: { 42066 am: 'Ù', 42067 pm: 'ب', 42068 midnight: 'Ù', 42069 noon: 'ظ', 42070 morning: 'ص', 42071 afternoon: 'ب.ظ.', 42072 evening: 'ع', 42073 night: 'Ø´' 42074 }, 42075 abbreviated: { 42076 am: 'Ù.ظ.', 42077 pm: 'ب.ظ.', 42078 midnight: 'ÙÛÙ ÙâØ´Ø¨', 42079 noon: 'Ø¸ÙØ±', 42080 morning: 'صبØ', 42081 afternoon: 'Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±', 42082 evening: 'عصر', 42083 night: 'شب' 42084 }, 42085 wide: { 42086 am: 'ÙØ¨ÙâØ§Ø²Ø¸ÙØ±', 42087 pm: 'Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±', 42088 midnight: 'ÙÛÙ ÙâØ´Ø¨', 42089 noon: 'Ø¸ÙØ±', 42090 morning: 'صبØ', 42091 afternoon: 'Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±', 42092 evening: 'عصر', 42093 night: 'شب' 42094 } 42095 }; 42096 var formattingDayPeriodValues = { 42097 narrow: { 42098 am: 'Ù', 42099 pm: 'ب', 42100 midnight: 'Ù', 42101 noon: 'ظ', 42102 morning: 'ص', 42103 afternoon: 'ب.ظ.', 42104 evening: 'ع', 42105 night: 'Ø´' 42106 }, 42107 abbreviated: { 42108 am: 'Ù.ظ.', 42109 pm: 'ب.ظ.', 42110 midnight: 'ÙÛÙ ÙâØ´Ø¨', 42111 noon: 'Ø¸ÙØ±', 42112 morning: 'صبØ', 42113 afternoon: 'Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±', 42114 evening: 'عصر', 42115 night: 'شب' 42116 }, 42117 wide: { 42118 am: 'ÙØ¨ÙâØ§Ø²Ø¸ÙØ±', 42119 pm: 'Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±', 42120 midnight: 'ÙÛÙ ÙâØ´Ø¨', 42121 noon: 'Ø¸ÙØ±', 42122 morning: 'صبØ', 42123 afternoon: 'Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±', 42124 evening: 'عصر', 42125 night: 'شب' 42126 } 42127 }; 42128 42129 function ordinalNumber(dirtyNumber) {
vendor: 697,830 bytes, lines 42130-57211
42130 return String(dirtyNumber); 42131 } 42132 42133 var localize = { 42134 ordinalNumber: ordinalNumber, 42135 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 42136 values: eraValues, 42137 defaultWidth: 'wide' 42138 }), 42139 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 42140 values: quarterValues, 42141 defaultWidth: 'wide', 42142 argumentCallback: function (quarter) { 42143 return Number(quarter) - 1; 42144 } 42145 }), 42146 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 42147 values: monthValues, 42148 defaultWidth: 'wide' 42149 }), 42150 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 42151 values: dayValues, 42152 defaultWidth: 'wide' 42153 }), 42154 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 42155 values: dayPeriodValues, 42156 defaultWidth: 'wide', 42157 formattingValues: formattingDayPeriodValues, 42158 defaultFormattingWidth: 'wide' 42159 }) 42160 }; 42161 /* harmony default export */ 42162 __webpack_exports__["a"] = (localize); 42163 42164 /***/ 42165 }), 42166 /* 563 */ 42167 /***/ (function (module, __webpack_exports__, __webpack_require__) { 42168 42169 "use strict"; 42170 /* harmony import */ 42171 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 42172 /* harmony import */ 42173 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 42174 42175 42176 var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; 42177 var parseOrdinalNumberPattern = /\d+/i; 42178 var matchEraPatterns = { 42179 narrow: /^(Ù|ب)/i, 42180 abbreviated: /^(Ù\.?\s?Ù \.?|Ù\.?\s?د\.?\s?Ù \.?|Ù \.?\s?|د\.?\s?Ù \.?)/i, 42181 wide: /^(ÙØ¨Ù از Ù ÛÙØ§Ø¯|ÙØ¨Ù از Ø¯ÙØ±Ø§Ù ٠شترک|Ù ÛÙØ§Ø¯Û|Ø¯ÙØ±Ø§Ù ٠شترک|بعد از Ù ÛÙØ§Ø¯)/i 42182 }; 42183 var parseEraPatterns = { 42184 any: [/^ÙØ¨Ù/i, /^بعد/i] 42185 }; 42186 var matchQuarterPatterns = { 42187 narrow: /^[1234]/i, 42188 abbreviated: /^سâÙ [1234]/i, 42189 wide: /^سÙâ٠اÙÙ [1234]/i 42190 }; 42191 var parseQuarterPatterns = { 42192 any: [/1/i, /2/i, /3/i, /4/i] 42193 }; 42194 var matchMonthPatterns = { 42195 narrow: /^[جÚÙÙ Ø¢Ø§Ù Ø§Ø³ÙØ¯]/i, 42196 abbreviated: /^(جÙÙ|ÚØ§ÙÙ|ÚØ§ÙÙÛÙ|ÙÙØ±ÛÙ|ÙÙØ±|٠ارس|Ø¢ÙØ±ÛÙ|آپر|Ù Ù|Ù Û|ÚÙØ¦Ù|جÙÙ|جÙÙ|جÙÙÙ|ÚÙØ¦ÛÙ|Ø§ÙØª|Ø¢Ú¯Ù|سپت٠بر|سپتا٠بر|اکتبر|Ø§Ú©ØªÙØ¨Ø±|ÙÙØ§Ù بر|ÙÙØ§Ù Ù|دسا٠بر|دسا٠Ù|دس٠)/i, 42197 wide: /^(ÚØ§ÙÙÛÙ|جÙÙØ±Û|ÙØ¨Ø±ÙرÛ|ÙÙØ±ÛÙ|٠ارÚ|٠ارس|آپرÛÙ|اپرÛÙ|اÛپرÛÙ|Ø¢ÙØ±ÛÙ|Ù Ù|Ù Û|ÚÙØ¦Ù|جÙÙ|جÙÙØ§Û|ÚÙØ¦ÛÙ|آگست|اگست|Ø¢Ú¯ÙØ³Øª|Ø§ÙØª|سپت٠بر|سپتا٠بر|اکتبر|Ø§Ú©ØªÙØ¨Ø±|ÙÙØ§Ù بر|ÙÙ٠بر|دسا٠بر|دس٠بر)/i 42198 }; 42199 var parseMonthPatterns = { 42200 narrow: [/^(Ú|ج)/i, /^Ù/i, /^Ù /i, /^(Ø¢|ا)/i, /^Ù /i, /^(Ú|ج)/i, /^(ج|Ú)/i, /^(Ø¢|ا)/i, /^س/i, /^ا/i, /^Ù/i, /^د/i], 42201 any: [/^ÚØ§/i, /^Ù/i, /^٠ا/i, /^آپ/i, /^(Ù Û|Ù Ù)/i, /^(ÚÙØ¦Ù|جÙÙ)/i, /^(ÚÙØ¦Û|جÙÙ)/i, /^(Ø§ÙØª|Ø¢Ú¯)/i, /^س/i, /^(اÙÚ©|اک)/i, /^Ù/i, /^د/i] 42202 }; 42203 var matchDayPatterns = { 42204 narrow: /^[Ø´ÛØ¯Ø³Úپج]/i, 42205 short: /^(Ø´|ج|1Ø´|2Ø´|3Ø´|4Ø´|5Ø´)/i, 42206 abbreviated: /^(ÛÚ©Ø´ÙØ¨Ù|Ø¯ÙØ´ÙبÙ|سÙâØ´ÙØ¨Ù|ÚÙØ§Ø±Ø´ÙبÙ|Ù¾ÙØ¬âØ´ÙØ¨Ù|ج٠عÙ|Ø´ÙØ¨Ù)/i, 42207 wide: /^(ÛÚ©Ø´ÙØ¨Ù|Ø¯ÙØ´ÙبÙ|سÙâØ´ÙØ¨Ù|ÚÙØ§Ø±Ø´ÙبÙ|Ù¾ÙØ¬âØ´ÙØ¨Ù|ج٠عÙ|Ø´ÙØ¨Ù)/i 42208 }; 42209 var parseDayPatterns = { 42210 narrow: [/^Û/i, /^دÙ/i, /^س/i, /^Ú/i, /^Ù¾/i, /^ج/i, /^Ø´/i], 42211 any: [/^(Û|1Ø´|ÛÚ©Ø´ÙØ¨Ù)/i, /^(د|2Ø´|Ø¯ÙØ´ÙبÙ)/i, /^(س|3Ø´|سÙâØ´ÙØ¨Ù)/i, /^(Ú|4Ø´|ÚÙØ§Ø±Ø´ÙبÙ)/i, /^(Ù¾|5Ø´|Ù¾ÙØ¬Ø´ÙبÙ)/i, /^(ج|ج٠عÙ)/i, /^(Ø´|Ø´ÙØ¨Ù)/i] 42212 }; 42213 var matchDayPeriodPatterns = { 42214 narrow: /^(ب|Ù|Ù|ظ|ص|ب.ظ.|ع|Ø´)/i, 42215 abbreviated: /^(Ù.ظ.|ب.ظ.|ÙÛÙ ÙâØ´Ø¨|Ø¸ÙØ±|صبØ|Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±|عصر|شب)/i, 42216 wide: /^(ÙØ¨ÙâØ§Ø²Ø¸ÙØ±|ÙÛÙ ÙâØ´Ø¨|Ø¸ÙØ±|صبØ|Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±|عصر|شب)/i 42217 }; 42218 var parseDayPeriodPatterns = { 42219 any: { 42220 am: /^(Ù|Ù.ظ.|ÙØ¨ÙâØ§Ø²Ø¸ÙØ±)/i, 42221 pm: /^(ب|ب.ظ.|Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±)/i, 42222 midnight: /^(âÙÛÙ ÙâØ´Ø¨|Ù)/i, 42223 noon: /^(ظ|Ø¸ÙØ±)/i, 42224 morning: /(ص|صبØ)/i, 42225 afternoon: /(ب|ب.ظ.|Ø¨Ø¹Ø¯Ø§Ø²Ø¸ÙØ±)/i, 42226 evening: /(ع|عصر)/i, 42227 night: /(Ø´|شب)/i 42228 } 42229 }; 42230 var match = { 42231 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 42232 matchPattern: matchOrdinalNumberPattern, 42233 parsePattern: parseOrdinalNumberPattern, 42234 valueCallback: function (value) { 42235 return parseInt(value, 10); 42236 } 42237 }), 42238 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 42239 matchPatterns: matchEraPatterns, 42240 defaultMatchWidth: 'wide', 42241 parsePatterns: parseEraPatterns, 42242 defaultParseWidth: 'any' 42243 }), 42244 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 42245 matchPatterns: matchQuarterPatterns, 42246 defaultMatchWidth: 'wide', 42247 parsePatterns: parseQuarterPatterns, 42248 defaultParseWidth: 'any', 42249 valueCallback: function (index) { 42250 return index + 1; 42251 } 42252 }), 42253 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 42254 matchPatterns: matchMonthPatterns, 42255 defaultMatchWidth: 'wide', 42256 parsePatterns: parseMonthPatterns, 42257 defaultParseWidth: 'any' 42258 }), 42259 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 42260 matchPatterns: matchDayPatterns, 42261 defaultMatchWidth: 'wide', 42262 parsePatterns: parseDayPatterns, 42263 defaultParseWidth: 'any' 42264 }), 42265 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 42266 matchPatterns: matchDayPeriodPatterns, 42267 defaultMatchWidth: 'any', 42268 parsePatterns: parseDayPeriodPatterns, 42269 defaultParseWidth: 'any' 42270 }) 42271 }; 42272 /* harmony default export */ 42273 __webpack_exports__["a"] = (match); 42274 42275 /***/ 42276 }), 42277 /* 564 */ 42278 /***/ (function (module, __webpack_exports__, __webpack_require__) { 42279 42280 "use strict"; 42281 /* harmony import */ 42282 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(565); 42283 /* harmony import */ 42284 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(566); 42285 /* harmony import */ 42286 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(567); 42287 /* harmony import */ 42288 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(568); 42289 /* harmony import */ 42290 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(569); 42291 42292 42293 /** 42294 * @type {Locale} 42295 * @category Locales 42296 * @summary Finnish locale. 42297 * @language Finnish 42298 * @iso-639-2 fin 42299 * @author Pyry-Samuli Lahti [@Pyppe]{@link https://github.com/Pyppe} 42300 * @author Edo Rivai [@mikolajgrzyb]{@link https://github.com/mikolajgrzyb} 42301 * @author Samu Juvonen [@sjuvonen]{@link https://github.com/sjuvonen} 42302 */ 42303 42304 var locale = { 42305 code: 'fi', 42306 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 42307 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 42308 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 42309 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 42310 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 42311 options: { 42312 weekStartsOn: 1 42313 /* Monday */ 42314 , 42315 firstWeekContainsDate: 4 42316 } 42317 }; 42318 /* harmony default export */ 42319 __webpack_exports__["a"] = (locale); 42320 42321 /***/ 42322 }), 42323 /* 565 */ 42324 /***/ (function (module, __webpack_exports__, __webpack_require__) { 42325 42326 "use strict"; 42327 /* harmony export (immutable) */ 42328 __webpack_exports__["a"] = formatDistance; 42329 42330 function futureSeconds(text) { 42331 return text.replace(/sekuntia?/, 'sekunnin'); 42332 } 42333 42334 function futureMinutes(text) { 42335 return text.replace(/minuuttia?/, 'minuutin'); 42336 } 42337 42338 function futureHours(text) { 42339 return text.replace(/tuntia?/, 'tunnin'); 42340 } 42341 42342 function futureDays(text) { 42343 return text.replace(/päivää?/, 'päivän'); 42344 } 42345 42346 function futureWeeks(text) { 42347 return text.replace(/(viikko|viikkoa)/, 'viikon'); 42348 } 42349 42350 function futureMonths(text) { 42351 return text.replace(/(kuukausi|kuukautta)/, 'kuukauden'); 42352 } 42353 42354 function futureYears(text) { 42355 return text.replace(/(vuosi|vuotta)/, 'vuoden'); 42356 } 42357 42358 var formatDistanceLocale = { 42359 lessThanXSeconds: { 42360 one: 'alle sekunti', 42361 other: 'alle {{count}} sekuntia', 42362 futureTense: futureSeconds 42363 }, 42364 xSeconds: { 42365 one: 'sekunti', 42366 other: '{{count}} sekuntia', 42367 futureTense: futureSeconds 42368 }, 42369 halfAMinute: { 42370 one: 'puoli minuuttia', 42371 other: 'puoli minuuttia', 42372 futureTense: function (_text) { 42373 return 'puolen minuutin'; 42374 } 42375 }, 42376 lessThanXMinutes: { 42377 one: 'alle minuutti', 42378 other: 'alle {{count}} minuuttia', 42379 futureTense: futureMinutes 42380 }, 42381 xMinutes: { 42382 one: 'minuutti', 42383 other: '{{count}} minuuttia', 42384 futureTense: futureMinutes 42385 }, 42386 aboutXHours: { 42387 one: 'noin tunti', 42388 other: 'noin {{count}} tuntia', 42389 futureTense: futureHours 42390 }, 42391 xHours: { 42392 one: 'tunti', 42393 other: '{{count}} tuntia', 42394 futureTense: futureHours 42395 }, 42396 xDays: { 42397 one: 'päivä', 42398 other: '{{count}} päivää', 42399 futureTense: futureDays 42400 }, 42401 aboutXWeeks: { 42402 one: 'noin viikko', 42403 other: 'noin {{count}} viikkoa', 42404 futureTense: futureWeeks 42405 }, 42406 xWeeks: { 42407 one: 'viikko', 42408 other: '{{count}} viikkoa', 42409 futureTense: futureWeeks 42410 }, 42411 aboutXMonths: { 42412 one: 'noin kuukausi', 42413 other: 'noin {{count}} kuukautta', 42414 futureTense: futureMonths 42415 }, 42416 xMonths: { 42417 one: 'kuukausi', 42418 other: '{{count}} kuukautta', 42419 futureTense: futureMonths 42420 }, 42421 aboutXYears: { 42422 one: 'noin vuosi', 42423 other: 'noin {{count}} vuotta', 42424 futureTense: futureYears 42425 }, 42426 xYears: { 42427 one: 'vuosi', 42428 other: '{{count}} vuotta', 42429 futureTense: futureYears 42430 }, 42431 overXYears: { 42432 one: 'yli vuosi', 42433 other: 'yli {{count}} vuotta', 42434 futureTense: futureYears 42435 }, 42436 almostXYears: { 42437 one: 'lähes vuosi', 42438 other: 'lähes {{count}} vuotta', 42439 futureTense: futureYears 42440 } 42441 }; 42442 42443 function formatDistance(token, count, options) { 42444 options = options || {}; 42445 var distance = formatDistanceLocale[token]; 42446 var result = count === 1 ? distance.one : distance.other.replace('{{count}}', count); 42447 42448 if (options.addSuffix) { 42449 if (options.comparison > 0) { 42450 return distance.futureTense(result) + ' kuluttua'; 42451 } else { 42452 return result + ' sitten'; 42453 } 42454 } 42455 42456 return result; 42457 } 42458 42459 /***/ 42460 }), 42461 /* 566 */ 42462 /***/ (function (module, __webpack_exports__, __webpack_require__) { 42463 42464 "use strict"; 42465 /* harmony import */ 42466 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 42467 42468 var dateFormats = { 42469 full: 'eeee d. MMMM y', 42470 long: 'd. MMMM y', 42471 medium: 'd. MMM y', 42472 short: 'd.M.y' 42473 }; 42474 var timeFormats = { 42475 full: 'HH.mm.ss zzzz', 42476 long: 'HH.mm.ss z', 42477 medium: 'HH.mm.ss', 42478 short: 'HH.mm' 42479 }; 42480 var dateTimeFormats = { 42481 full: "{{date}} 'klo' {{time}}", 42482 long: "{{date}} 'klo' {{time}}", 42483 medium: '{{date}} {{time}}', 42484 short: '{{date}} {{time}}' 42485 }; 42486 var formatLong = { 42487 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 42488 formats: dateFormats, 42489 defaultWidth: 'full' 42490 }), 42491 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 42492 formats: timeFormats, 42493 defaultWidth: 'full' 42494 }), 42495 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 42496 formats: dateTimeFormats, 42497 defaultWidth: 'full' 42498 }) 42499 }; 42500 /* harmony default export */ 42501 __webpack_exports__["a"] = (formatLong); 42502 42503 /***/ 42504 }), 42505 /* 567 */ 42506 /***/ (function (module, __webpack_exports__, __webpack_require__) { 42507 42508 "use strict"; 42509 /* harmony export (immutable) */ 42510 __webpack_exports__["a"] = formatRelative; 42511 var formatRelativeLocale = { 42512 lastWeek: "'viime' eeee 'klo' p", 42513 yesterday: "'eilen klo' p", 42514 today: "'tänään klo' p", 42515 tomorrow: "'huomenna klo' p", 42516 nextWeek: "'ensi' eeee 'klo' p", 42517 other: 'P' 42518 }; 42519 42520 function formatRelative(token, _date, _baseDate, _options) { 42521 return formatRelativeLocale[token]; 42522 } 42523 42524 /***/ 42525 }), 42526 /* 568 */ 42527 /***/ (function (module, __webpack_exports__, __webpack_require__) { 42528 42529 "use strict"; 42530 /* harmony import */ 42531 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 42532 42533 var eraValues = { 42534 narrow: ['eaa.', 'jaa.'], 42535 abbreviated: ['eaa.', 'jaa.'], 42536 wide: ['ennen ajanlaskun alkua', 'jälkeen ajanlaskun alun'] 42537 }; 42538 var quarterValues = { 42539 narrow: ['1', '2', '3', '4'], 42540 abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], 42541 wide: ['1. kvartaali', '2. kvartaali', '3. kvartaali', '4. kvartaali'] 42542 }; 42543 var monthValues = { 42544 narrow: ['T', 'H', 'M', 'H', 'T', 'K', 'H', 'E', 'S', 'L', 'M', 'J'], 42545 abbreviated: ['tammi', 'helmi', 'maalis', 'huhti', 'touko', 'kesä', 'heinä', 'elo', 'syys', 'loka', 'marras', 'joulu'], 42546 wide: ['tammikuu', 'helmikuu', 'maaliskuu', 'huhtikuu', 'toukokuu', 'kesäkuu', 'heinäkuu', 'elokuu', 'syyskuu', 'lokakuu', 'marraskuu', 'joulukuu'] 42547 }; 42548 var formattingMonthValues = { 42549 narrow: monthValues.narrow, 42550 abbreviated: monthValues.abbreviated, 42551 wide: monthValues.wide.map(function (name) { 42552 return name + 'ta'; 42553 }) 42554 }; 42555 var dayValues = { 42556 narrow: ['S', 'M', 'T', 'K', 'T', 'P', 'L'], 42557 short: ['su', 'ma', 'ti', 'ke', 'to', 'pe', 'la'], 42558 abbreviated: ['sunn.', 'maan.', 'tiis.', 'kesk.', 'torst.', 'perj.', 'la'], 42559 wide: ['sunnuntai', 'maanantai', 'tiistai', 'keskiviikko', 'torstai', 'perjantai', 'lauantai'] 42560 }; 42561 var formattingDayValues = { 42562 narrow: dayValues.narrow, 42563 short: dayValues.short, 42564 abbreviated: dayValues.abbreviated, 42565 wide: dayValues.wide.map(function (name) { 42566 return name + 'na'; 42567 }) 42568 }; 42569 var dayPeriodValues = { 42570 narrow: { 42571 am: 'ap', 42572 pm: 'ip', 42573 midnight: 'keskiyö', 42574 noon: 'keskipäivä', 42575 morning: 'ap', 42576 afternoon: 'ip', 42577 evening: 'illalla', 42578 night: 'yöllä' 42579 }, 42580 abbreviated: { 42581 am: 'ap', 42582 pm: 'ip', 42583 midnight: 'keskiyö', 42584 noon: 'keskipäivä', 42585 morning: 'ap', 42586 afternoon: 'ip', 42587 evening: 'illalla', 42588 night: 'yöllä' 42589 }, 42590 wide: { 42591 am: 'ap', 42592 pm: 'ip', 42593 midnight: 'keskiyöllä', 42594 noon: 'keskipäivällä', 42595 morning: 'aamupäivällä', 42596 afternoon: 'iltapäivällä', 42597 evening: 'illalla', 42598 night: 'yöllä' 42599 } 42600 }; 42601 42602 function ordinalNumber(dirtyNumber) { 42603 var number = Number(dirtyNumber); 42604 return number + '.'; 42605 } 42606 42607 var localize = { 42608 ordinalNumber: ordinalNumber, 42609 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 42610 values: eraValues, 42611 defaultWidth: 'wide' 42612 }), 42613 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 42614 values: quarterValues, 42615 defaultWidth: 'wide', 42616 argumentCallback: function (quarter) { 42617 return Number(quarter) - 1; 42618 } 42619 }), 42620 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 42621 values: monthValues, 42622 formattingValues: formattingMonthValues, 42623 defaultWidth: 'wide' 42624 }), 42625 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 42626 values: dayValues, 42627 formattingValues: formattingDayValues, 42628 defaultWidth: 'wide' 42629 }), 42630 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 42631 values: dayPeriodValues, 42632 defaultWidth: 'wide' 42633 }) 42634 }; 42635 /* harmony default export */ 42636 __webpack_exports__["a"] = (localize); 42637 42638 /***/ 42639 }), 42640 /* 569 */ 42641 /***/ (function (module, __webpack_exports__, __webpack_require__) { 42642 42643 "use strict"; 42644 /* harmony import */ 42645 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 42646 /* harmony import */ 42647 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 42648 42649 42650 var matchOrdinalNumberPattern = /^(\d+)(\.)/i; 42651 var parseOrdinalNumberPattern = /\d+/i; 42652 var matchEraPatterns = { 42653 narrow: /^(e|j)/i, 42654 abbreviated: /^(eaa.|jaa.)/i, 42655 wide: /^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i 42656 }; 42657 var parseEraPatterns = { 42658 any: [/^e/i, /^j/i] 42659 }; 42660 var matchQuarterPatterns = { 42661 narrow: /^[1234]/i, 42662 abbreviated: /^q[1234]/i, 42663 wide: /^[1234]\.? kvartaali/i 42664 }; 42665 var parseQuarterPatterns = { 42666 any: [/1/i, /2/i, /3/i, /4/i] 42667 }; 42668 var matchMonthPatterns = { 42669 narrow: /^[thmkeslj]/i, 42670 abbreviated: /^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i, 42671 wide: /^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i 42672 }; 42673 var parseMonthPatterns = { 42674 narrow: [/^t/i, /^h/i, /^m/i, /^h/i, /^t/i, /^k/i, /^h/i, /^e/i, /^s/i, /^l/i, /^m/i, /^j/i], 42675 any: [/^ta/i, /^hel/i, /^maa/i, /^hu/i, /^to/i, /^k/i, /^hei/i, /^e/i, /^s/i, /^l/i, /^mar/i, /^j/i] 42676 }; 42677 var matchDayPatterns = { 42678 narrow: /^[smtkpl]/i, 42679 short: /^(su|ma|ti|ke|to|pe|la)/i, 42680 abbreviated: /^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i, 42681 wide: /^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i 42682 }; 42683 var parseDayPatterns = { 42684 narrow: [/^s/i, /^m/i, /^t/i, /^k/i, /^t/i, /^p/i, /^l/i], 42685 any: [/^s/i, /^m/i, /^ti/i, /^k/i, /^to/i, /^p/i, /^l/i] 42686 }; 42687 var matchDayPeriodPatterns = { 42688 narrow: /^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i, 42689 any: /^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i 42690 }; 42691 var parseDayPeriodPatterns = { 42692 any: { 42693 am: /^ap/i, 42694 pm: /^ip/i, 42695 midnight: /^keskiyö/i, 42696 noon: /^keskipäivä/i, 42697 morning: /aamupäivällä/i, 42698 afternoon: /iltapäivällä/i, 42699 evening: /illalla/i, 42700 night: /yöllä/i 42701 } 42702 }; 42703 var match = { 42704 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 42705 matchPattern: matchOrdinalNumberPattern, 42706 parsePattern: parseOrdinalNumberPattern, 42707 valueCallback: function (value) { 42708 return parseInt(value, 10); 42709 } 42710 }), 42711 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 42712 matchPatterns: matchEraPatterns, 42713 defaultMatchWidth: 'wide', 42714 parsePatterns: parseEraPatterns, 42715 defaultParseWidth: 'any' 42716 }), 42717 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 42718 matchPatterns: matchQuarterPatterns, 42719 defaultMatchWidth: 'wide', 42720 parsePatterns: parseQuarterPatterns, 42721 defaultParseWidth: 'any', 42722 valueCallback: function (index) { 42723 return index + 1; 42724 } 42725 }), 42726 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 42727 matchPatterns: matchMonthPatterns, 42728 defaultMatchWidth: 'wide', 42729 parsePatterns: parseMonthPatterns, 42730 defaultParseWidth: 'any' 42731 }), 42732 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 42733 matchPatterns: matchDayPatterns, 42734 defaultMatchWidth: 'wide', 42735 parsePatterns: parseDayPatterns, 42736 defaultParseWidth: 'any' 42737 }), 42738 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 42739 matchPatterns: matchDayPeriodPatterns, 42740 defaultMatchWidth: 'any', 42741 parsePatterns: parseDayPeriodPatterns, 42742 defaultParseWidth: 'any' 42743 }) 42744 }; 42745 /* harmony default export */ 42746 __webpack_exports__["a"] = (match); 42747 42748 /***/ 42749 }), 42750 /* 570 */ 42751 /***/ (function (module, __webpack_exports__, __webpack_require__) { 42752 42753 "use strict"; 42754 /* harmony import */ 42755 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(187); 42756 /* harmony import */ 42757 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(571); 42758 /* harmony import */ 42759 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(188); 42760 /* harmony import */ 42761 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(189); 42762 /* harmony import */ 42763 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(190); 42764 42765 42766 /** 42767 * @type {Locale} 42768 * @category Locales 42769 * @summary French locale. 42770 * @language French 42771 * @iso-639-2 fra 42772 * @author Jean Dupouy [@izeau]{@link https://github.com/izeau} 42773 * @author François B [@fbonzon]{@link https://github.com/fbonzon} 42774 */ 42775 42776 var locale = { 42777 code: 'fr', 42778 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 42779 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 42780 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 42781 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 42782 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 42783 options: { 42784 weekStartsOn: 1 42785 /* Monday */ 42786 , 42787 firstWeekContainsDate: 1 42788 } 42789 }; 42790 /* harmony default export */ 42791 __webpack_exports__["a"] = (locale); 42792 42793 /***/ 42794 }), 42795 /* 571 */ 42796 /***/ (function (module, __webpack_exports__, __webpack_require__) { 42797 42798 "use strict"; 42799 /* harmony import */ 42800 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 42801 42802 var dateFormats = { 42803 full: 'EEEE d MMMM y', 42804 long: 'd MMMM y', 42805 medium: 'd MMM y', 42806 short: 'dd/MM/y' 42807 }; 42808 var timeFormats = { 42809 full: 'HH:mm:ss zzzz', 42810 long: 'HH:mm:ss z', 42811 medium: 'HH:mm:ss', 42812 short: 'HH:mm' 42813 }; 42814 var dateTimeFormats = { 42815 full: "{{date}} 'à ' {{time}}", 42816 long: "{{date}} 'à ' {{time}}", 42817 medium: '{{date}}, {{time}}', 42818 short: '{{date}}, {{time}}' 42819 }; 42820 var formatLong = { 42821 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 42822 formats: dateFormats, 42823 defaultWidth: 'full' 42824 }), 42825 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 42826 formats: timeFormats, 42827 defaultWidth: 'full' 42828 }), 42829 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 42830 formats: dateTimeFormats, 42831 defaultWidth: 'full' 42832 }) 42833 }; 42834 /* harmony default export */ 42835 __webpack_exports__["a"] = (formatLong); 42836 42837 /***/ 42838 }), 42839 /* 572 */ 42840 /***/ (function (module, __webpack_exports__, __webpack_require__) { 42841 42842 "use strict"; 42843 /* harmony import */ 42844 var __WEBPACK_IMPORTED_MODULE_0__fr_lib_formatDistance_index_js__ = __webpack_require__(187); 42845 /* harmony import */ 42846 var __WEBPACK_IMPORTED_MODULE_1__fr_lib_formatRelative_index_js__ = __webpack_require__(188); 42847 /* harmony import */ 42848 var __WEBPACK_IMPORTED_MODULE_2__fr_lib_localize_index_js__ = __webpack_require__(189); 42849 /* harmony import */ 42850 var __WEBPACK_IMPORTED_MODULE_3__fr_lib_match_index_js__ = __webpack_require__(190); 42851 /* harmony import */ 42852 var __WEBPACK_IMPORTED_MODULE_4__lib_formatLong_index_js__ = __webpack_require__(573); 42853// Same as fr 42854 42855 42856 // Unique for fr-CA 42857 42858 42859 /** 42860 * @type {Locale} 42861 * @category Locales 42862 * @summary French locale (Canada). 42863 * @language French 42864 * @iso-639-2 fra 42865 * @author Jean Dupouy [@izeau]{@link https://github.com/izeau} 42866 * @author François B [@fbonzon]{@link https://github.com/fbonzon} 42867 * @author Gabriele Petrioli [@gpetrioli]{@link https://github.com/gpetrioli} 42868 */ 42869 42870 var locale = { 42871 code: 'fr-CA', 42872 formatDistance: __WEBPACK_IMPORTED_MODULE_0__fr_lib_formatDistance_index_js__["a" /* default */], 42873 formatLong: __WEBPACK_IMPORTED_MODULE_4__lib_formatLong_index_js__["a" /* default */], 42874 formatRelative: __WEBPACK_IMPORTED_MODULE_1__fr_lib_formatRelative_index_js__["a" /* default */], 42875 localize: __WEBPACK_IMPORTED_MODULE_2__fr_lib_localize_index_js__["a" /* default */], 42876 match: __WEBPACK_IMPORTED_MODULE_3__fr_lib_match_index_js__["a" /* default */], 42877 // Unique for fr-CA 42878 options: { 42879 weekStartsOn: 0 42880 /* Sunday */ 42881 , 42882 firstWeekContainsDate: 1 42883 } 42884 }; 42885 /* harmony default export */ 42886 __webpack_exports__["a"] = (locale); 42887 42888 /***/ 42889 }), 42890 /* 573 */ 42891 /***/ (function (module, __webpack_exports__, __webpack_require__) { 42892 42893 "use strict"; 42894 /* harmony import */ 42895 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 42896 42897 var dateFormats = { 42898 full: 'EEEE d MMMM y', 42899 long: 'd MMMM y', 42900 medium: 'd MMM y', 42901 short: 'yy-MM-dd' 42902 }; 42903 var timeFormats = { 42904 full: 'HH:mm:ss zzzz', 42905 long: 'HH:mm:ss z', 42906 medium: 'HH:mm:ss', 42907 short: 'HH:mm' 42908 }; 42909 var dateTimeFormats = { 42910 full: "{{date}} 'à ' {{time}}", 42911 long: "{{date}} 'à ' {{time}}", 42912 medium: '{{date}}, {{time}}', 42913 short: '{{date}}, {{time}}' 42914 }; 42915 var formatLong = { 42916 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 42917 formats: dateFormats, 42918 defaultWidth: 'full' 42919 }), 42920 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 42921 formats: timeFormats, 42922 defaultWidth: 'full' 42923 }), 42924 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 42925 formats: dateTimeFormats, 42926 defaultWidth: 'full' 42927 }) 42928 }; 42929 /* harmony default export */ 42930 __webpack_exports__["a"] = (formatLong); 42931 42932 /***/ 42933 }), 42934 /* 574 */ 42935 /***/ (function (module, __webpack_exports__, __webpack_require__) { 42936 42937 "use strict"; 42938 /* harmony import */ 42939 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(575); 42940 /* harmony import */ 42941 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(576); 42942 /* harmony import */ 42943 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(577); 42944 /* harmony import */ 42945 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(578); 42946 /* harmony import */ 42947 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(579); 42948 42949 42950 /** 42951 * @type {Locale} 42952 * @category Locales 42953 * @summary French locale. 42954 * @language French 42955 * @iso-639-2 fra 42956 * @author Jean Dupouy [@izeau]{@link https://github.com/izeau} 42957 * @author François B [@fbonzon]{@link https://github.com/fbonzon} 42958 * @author Van Vuong Ngo [@vanvuongngo]{@link https://github.com/vanvuongngo} 42959 * @author Alex Hoeing [@dcbn]{@link https://github.com/dcbn} 42960 */ 42961 42962 var locale = { 42963 code: 'fr-CH', 42964 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 42965 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 42966 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 42967 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 42968 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 42969 options: { 42970 weekStartsOn: 1 42971 /* Monday */ 42972 , 42973 firstWeekContainsDate: 4 42974 } 42975 }; 42976 /* harmony default export */ 42977 __webpack_exports__["a"] = (locale); 42978 42979 /***/ 42980 }), 42981 /* 575 */ 42982 /***/ (function (module, __webpack_exports__, __webpack_require__) { 42983 42984 "use strict"; 42985 /* harmony export (immutable) */ 42986 __webpack_exports__["a"] = formatDistance; 42987 var formatDistanceLocale = { 42988 lessThanXSeconds: { 42989 one: 'moins dâune seconde', 42990 other: 'moins de {{count}} secondes' 42991 }, 42992 xSeconds: { 42993 one: '1 seconde', 42994 other: '{{count}} secondes' 42995 }, 42996 halfAMinute: '30 secondes', 42997 lessThanXMinutes: { 42998 one: 'moins dâune minute', 42999 other: 'moins de {{count}} minutes' 43000 }, 43001 xMinutes: { 43002 one: '1 minute', 43003 other: '{{count}} minutes' 43004 }, 43005 aboutXHours: { 43006 one: 'environ 1 heure', 43007 other: 'environ {{count}} heures' 43008 }, 43009 xHours: { 43010 one: '1 heure', 43011 other: '{{count}} heures' 43012 }, 43013 xDays: { 43014 one: '1 jour', 43015 other: '{{count}} jours' 43016 }, 43017 aboutXWeeks: { 43018 one: 'environ 1 semaine', 43019 other: 'environ {{count}} semaines' 43020 }, 43021 xWeeks: { 43022 one: '1 semaine', 43023 other: '{{count}} semaines' 43024 }, 43025 aboutXMonths: { 43026 one: 'environ 1 mois', 43027 other: 'environ {{count}} mois' 43028 }, 43029 xMonths: { 43030 one: '1 mois', 43031 other: '{{count}} mois' 43032 }, 43033 aboutXYears: { 43034 one: 'environ 1 an', 43035 other: 'environ {{count}} ans' 43036 }, 43037 xYears: { 43038 one: '1 an', 43039 other: '{{count}} ans' 43040 }, 43041 overXYears: { 43042 one: 'plus dâun an', 43043 other: 'plus de {{count}} ans' 43044 }, 43045 almostXYears: { 43046 one: 'presquâun an', 43047 other: 'presque {{count}} ans' 43048 } 43049 }; 43050 43051 function formatDistance(token, count, options) { 43052 options = options || {}; 43053 var result; 43054 43055 if (typeof formatDistanceLocale[token] === 'string') { 43056 result = formatDistanceLocale[token]; 43057 } else if (count === 1) { 43058 result = formatDistanceLocale[token].one; 43059 } else { 43060 result = formatDistanceLocale[token].other.replace('{{count}}', count); 43061 } 43062 43063 if (options.addSuffix) { 43064 if (options.comparison > 0) { 43065 return 'dans ' + result; 43066 } else { 43067 return 'il y a ' + result; 43068 } 43069 } 43070 43071 return result; 43072 } 43073 43074 /***/ 43075 }), 43076 /* 576 */ 43077 /***/ (function (module, __webpack_exports__, __webpack_require__) { 43078 43079 "use strict"; 43080 /* harmony import */ 43081 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 43082 43083 var dateFormats = { 43084 full: 'EEEE d MMMM y', 43085 long: 'd MMMM y', 43086 medium: 'd MMM y', 43087 short: 'dd.MM.y' 43088 }; 43089 var timeFormats = { 43090 full: 'HH:mm:ss zzzz', 43091 long: 'HH:mm:ss z', 43092 medium: 'HH:mm:ss', 43093 short: 'HH:mm' 43094 }; 43095 var dateTimeFormats = { 43096 full: "{{date}} 'à ' {{time}}", 43097 long: "{{date}} 'à ' {{time}}", 43098 medium: '{{date}}, {{time}}', 43099 short: '{{date}}, {{time}}' 43100 }; 43101 var formatLong = { 43102 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 43103 formats: dateFormats, 43104 defaultWidth: 'full' 43105 }), 43106 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 43107 formats: timeFormats, 43108 defaultWidth: 'full' 43109 }), 43110 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 43111 formats: dateTimeFormats, 43112 defaultWidth: 'full' 43113 }) 43114 }; 43115 /* harmony default export */ 43116 __webpack_exports__["a"] = (formatLong); 43117 43118 /***/ 43119 }), 43120 /* 577 */ 43121 /***/ (function (module, __webpack_exports__, __webpack_require__) { 43122 43123 "use strict"; 43124 /* harmony export (immutable) */ 43125 __webpack_exports__["a"] = formatRelative; 43126 var formatRelativeLocale = { 43127 lastWeek: "eeee 'la semaine dernière à ' p", 43128 yesterday: "'hier à ' p", 43129 today: "'aujourdâhui à ' p", 43130 tomorrow: "'demain à ' p'", 43131 nextWeek: "eeee 'la semaine prochaine à ' p", 43132 other: 'P' 43133 }; 43134 43135 function formatRelative(token, _date, _baseDate, _options) { 43136 return formatRelativeLocale[token]; 43137 } 43138 43139 /***/ 43140 }), 43141 /* 578 */ 43142 /***/ (function (module, __webpack_exports__, __webpack_require__) { 43143 43144 "use strict"; 43145 /* harmony import */ 43146 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 43147 43148 var eraValues = { 43149 narrow: ['av. J.-C', 'ap. J.-C'], 43150 abbreviated: ['av. J.-C', 'ap. J.-C'], 43151 wide: ['avant Jésus-Christ', 'après Jésus-Christ'] 43152 }; 43153 var quarterValues = { 43154 narrow: ['T1', 'T2', 'T3', 'T4'], 43155 abbreviated: ['1er trim.', '2ème trim.', '3ème trim.', '4ème trim.'], 43156 wide: ['1er trimestre', '2ème trimestre', '3ème trimestre', '4ème trimestre'] 43157 }; 43158 var monthValues = { 43159 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], 43160 abbreviated: ['janv.', 'févr.', 'mars', 'avr.', 'mai', 'juin', 'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'], 43161 wide: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'] 43162 }; 43163 var dayValues = { 43164 narrow: ['D', 'L', 'M', 'M', 'J', 'V', 'S'], 43165 short: ['di', 'lu', 'ma', 'me', 'je', 've', 'sa'], 43166 abbreviated: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'], 43167 wide: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'] 43168 }; 43169 var dayPeriodValues = { 43170 narrow: { 43171 am: 'AM', 43172 pm: 'PM', 43173 midnight: 'minuit', 43174 noon: 'midi', 43175 morning: 'mat.', 43176 afternoon: 'ap.m.', 43177 evening: 'soir', 43178 night: 'mat.' 43179 }, 43180 abbreviated: { 43181 am: 'AM', 43182 pm: 'PM', 43183 midnight: 'minuit', 43184 noon: 'midi', 43185 morning: 'matin', 43186 afternoon: 'après-midi', 43187 evening: 'soir', 43188 night: 'matin' 43189 }, 43190 wide: { 43191 am: 'AM', 43192 pm: 'PM', 43193 midnight: 'minuit', 43194 noon: 'midi', 43195 morning: 'du matin', 43196 afternoon: 'de lâaprès-midi', 43197 evening: 'du soir', 43198 night: 'du matin' 43199 } 43200 }; 43201 43202 function ordinalNumber(dirtyNumber, dirtyOptions) { 43203 var number = Number(dirtyNumber); 43204 var options = dirtyOptions || {}; 43205 var unit = String(options.unit); 43206 var suffix; 43207 43208 if (number === 0) { 43209 return number; 43210 } 43211 43212 if (unit === 'year' || unit === 'hour' || unit === 'week') { 43213 if (number === 1) { 43214 suffix = 'ère'; 43215 } else { 43216 suffix = 'ème'; 43217 } 43218 } else { 43219 if (number === 1) { 43220 suffix = 'er'; 43221 } else { 43222 suffix = 'ème'; 43223 } 43224 } 43225 43226 return number + suffix; 43227 } 43228 43229 var localize = { 43230 ordinalNumber: ordinalNumber, 43231 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 43232 values: eraValues, 43233 defaultWidth: 'wide' 43234 }), 43235 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 43236 values: quarterValues, 43237 defaultWidth: 'wide', 43238 argumentCallback: function (quarter) { 43239 return Number(quarter) - 1; 43240 } 43241 }), 43242 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 43243 values: monthValues, 43244 defaultWidth: 'wide' 43245 }), 43246 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 43247 values: dayValues, 43248 defaultWidth: 'wide' 43249 }), 43250 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 43251 values: dayPeriodValues, 43252 defaultWidth: 'wide' 43253 }) 43254 }; 43255 /* harmony default export */ 43256 __webpack_exports__["a"] = (localize); 43257 43258 /***/ 43259 }), 43260 /* 579 */ 43261 /***/ (function (module, __webpack_exports__, __webpack_require__) { 43262 43263 "use strict"; 43264 /* harmony import */ 43265 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 43266 /* harmony import */ 43267 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 43268 43269 43270 var matchOrdinalNumberPattern = /^(\d+)(ième|ère|ème|er|e)?/i; 43271 var parseOrdinalNumberPattern = /\d+/i; 43272 var matchEraPatterns = { 43273 narrow: /^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i, 43274 abbreviated: /^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, 43275 wide: /^(avant Jésus-Christ|après Jésus-Christ)/i 43276 }; 43277 var parseEraPatterns = { 43278 any: [/^av/i, /^ap/i] 43279 }; 43280 var matchQuarterPatterns = { 43281 narrow: /^[1234]/i, 43282 abbreviated: /^t[1234]/i, 43283 wide: /^[1234](er|ème|e)? trimestre/i 43284 }; 43285 var parseQuarterPatterns = { 43286 any: [/1/i, /2/i, /3/i, /4/i] 43287 }; 43288 var matchMonthPatterns = { 43289 narrow: /^[jfmasond]/i, 43290 abbreviated: /^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i, 43291 wide: /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i 43292 }; 43293 var parseMonthPatterns = { 43294 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 43295 any: [/^ja/i, /^f/i, /^mar/i, /^av/i, /^ma/i, /^juin/i, /^juil/i, /^ao/i, /^s/i, /^o/i, /^n/i, /^d/i] 43296 }; 43297 var matchDayPatterns = { 43298 narrow: /^[lmjvsd]/i, 43299 short: /^(di|lu|ma|me|je|ve|sa)/i, 43300 abbreviated: /^(dim|lun|mar|mer|jeu|ven|sam)\.?/i, 43301 wide: /^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i 43302 }; 43303 var parseDayPatterns = { 43304 narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], 43305 any: [/^di/i, /^lu/i, /^ma/i, /^me/i, /^je/i, /^ve/i, /^sa/i] 43306 }; 43307 var matchDayPeriodPatterns = { 43308 narrow: /^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i, 43309 any: /^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i 43310 }; 43311 var parseDayPeriodPatterns = { 43312 any: { 43313 am: /^a/i, 43314 pm: /^p/i, 43315 midnight: /^min/i, 43316 noon: /^mid/i, 43317 morning: /mat/i, 43318 afternoon: /ap/i, 43319 evening: /soir/i, 43320 night: /nuit/i 43321 } 43322 }; 43323 var match = { 43324 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 43325 matchPattern: matchOrdinalNumberPattern, 43326 parsePattern: parseOrdinalNumberPattern, 43327 valueCallback: function (value) { 43328 return parseInt(value, 10); 43329 } 43330 }), 43331 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 43332 matchPatterns: matchEraPatterns, 43333 defaultMatchWidth: 'wide', 43334 parsePatterns: parseEraPatterns, 43335 defaultParseWidth: 'any' 43336 }), 43337 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 43338 matchPatterns: matchQuarterPatterns, 43339 defaultMatchWidth: 'wide', 43340 parsePatterns: parseQuarterPatterns, 43341 defaultParseWidth: 'any', 43342 valueCallback: function (index) { 43343 return index + 1; 43344 } 43345 }), 43346 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 43347 matchPatterns: matchMonthPatterns, 43348 defaultMatchWidth: 'wide', 43349 parsePatterns: parseMonthPatterns, 43350 defaultParseWidth: 'any' 43351 }), 43352 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 43353 matchPatterns: matchDayPatterns, 43354 defaultMatchWidth: 'wide', 43355 parsePatterns: parseDayPatterns, 43356 defaultParseWidth: 'any' 43357 }), 43358 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 43359 matchPatterns: matchDayPeriodPatterns, 43360 defaultMatchWidth: 'any', 43361 parsePatterns: parseDayPeriodPatterns, 43362 defaultParseWidth: 'any' 43363 }) 43364 }; 43365 /* harmony default export */ 43366 __webpack_exports__["a"] = (match); 43367 43368 /***/ 43369 }), 43370 /* 580 */ 43371 /***/ (function (module, __webpack_exports__, __webpack_require__) { 43372 43373 "use strict"; 43374 /* harmony import */ 43375 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(581); 43376 /* harmony import */ 43377 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(582); 43378 /* harmony import */ 43379 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(583); 43380 /* harmony import */ 43381 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(584); 43382 /* harmony import */ 43383 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(585); 43384 43385 43386 /** 43387 * @type {Locale} 43388 * @category Locales 43389 * @summary Scottish Gaelic. 43390 * @language Scottish Gaelic 43391 * @iso-639-2 gla 43392 * @author Lee Driscoll [@leedriscoll]{@link https://github.com/leedriscoll} 43393 */ 43394 43395 var locale = { 43396 code: 'gd', 43397 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 43398 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 43399 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 43400 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 43401 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 43402 options: { 43403 weekStartsOn: 0 43404 /* Sunday */ 43405 , 43406 firstWeekContainsDate: 1 43407 } 43408 }; 43409 /* harmony default export */ 43410 __webpack_exports__["a"] = (locale); 43411 43412 /***/ 43413 }), 43414 /* 581 */ 43415 /***/ (function (module, __webpack_exports__, __webpack_require__) { 43416 43417 "use strict"; 43418 /* harmony export (immutable) */ 43419 __webpack_exports__["a"] = formatDistance; 43420 var formatDistanceLocale = { 43421 lessThanXSeconds: { 43422 one: 'nas lugha na diog', 43423 other: 'nas lugha na {{count}} diogan' 43424 }, 43425 xSeconds: { 43426 one: '1 diog', 43427 two: '2 dhiog', 43428 twenty: '20 diog', 43429 other: '{{count}} diogan' 43430 }, 43431 halfAMinute: 'leth mhionaid', 43432 lessThanXMinutes: { 43433 one: 'nas lugha na mionaid', 43434 other: 'nas lugha na {{count}} mionaidean' 43435 }, 43436 xMinutes: { 43437 one: '1 mionaid', 43438 two: '2 mhionaid', 43439 twenty: '20 mionaid', 43440 other: '{{count}} mionaidean' 43441 }, 43442 aboutXHours: { 43443 one: 'mu uair de thìde', 43444 other: 'mu {{count}} uairean de thìde' 43445 }, 43446 xHours: { 43447 one: '1 uair de thìde', 43448 two: '2 uair de thìde', 43449 twenty: '20 uair de thìde', 43450 other: '{{count}} uairean de thìde' 43451 }, 43452 xDays: { 43453 one: '1 là ', 43454 other: '{{count}} là ' 43455 }, 43456 aboutXWeeks: { 43457 one: 'mu 1 seachdain', 43458 other: 'mu {{count}} seachdainean' 43459 }, 43460 xWeeks: { 43461 one: '1 seachdain', 43462 other: '{{count}} seachdainean' 43463 }, 43464 aboutXMonths: { 43465 one: 'mu mhìos', 43466 other: 'mu {{count}} mìosan' 43467 }, 43468 xMonths: { 43469 one: '1 mìos', 43470 other: '{{count}} mìosan' 43471 }, 43472 aboutXYears: { 43473 one: 'mu bhliadhna', 43474 other: 'mu {{count}} bliadhnaichean' 43475 }, 43476 xYears: { 43477 one: '1 bhliadhna', 43478 other: '{{count}} bliadhna' 43479 }, 43480 overXYears: { 43481 one: 'còrr is bliadhna', 43482 other: 'còrr is {{count}} bliadhnaichean' 43483 }, 43484 almostXYears: { 43485 one: 'cha mhòr bliadhna', 43486 other: 'cha mhòr {{count}} bliadhnaichean' 43487 } 43488 }; 43489 43490 function formatDistance(token, count, options) { 43491 options = options || {}; 43492 var result; 43493 43494 if (typeof formatDistanceLocale[token] === 'string') { 43495 result = formatDistanceLocale[token]; 43496 } else if (count === 1) { 43497 result = formatDistanceLocale[token].one; 43498 } else if (count === 2 && !!formatDistanceLocale[token].two) { 43499 result = formatDistanceLocale[token].two; 43500 } else if (count === 9 && !!formatDistanceLocale[token].nine) { 43501 result = formatDistanceLocale[token].nine; 43502 } else if (count === 20 && !!formatDistanceLocale[token].twenty) { 43503 result = formatDistanceLocale[token].twenty; 43504 } else if (count === 30 && !!formatDistanceLocale[token].thirty) { 43505 result = formatDistanceLocale[token].thirty; 43506 } else { 43507 result = formatDistanceLocale[token].other.replace('{{count}}', count); 43508 } 43509 43510 if (options.addSuffix) { 43511 if (options.comparison > 0) { 43512 return 'ann an ' + result; 43513 } else { 43514 return 'o chionn ' + result; 43515 } 43516 } 43517 43518 return result; 43519 } 43520 43521 /***/ 43522 }), 43523 /* 582 */ 43524 /***/ (function (module, __webpack_exports__, __webpack_require__) { 43525 43526 "use strict"; 43527 /* harmony import */ 43528 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 43529 43530 var dateFormats = { 43531 full: 'EEEE, MMMM do, y', 43532 long: 'MMMM do, y', 43533 medium: 'MMM d, y', 43534 short: 'MM/dd/yyyy' 43535 }; 43536 var timeFormats = { 43537 full: 'h:mm:ss a zzzz', 43538 long: 'h:mm:ss a z', 43539 medium: 'h:mm:ss a', 43540 short: 'h:mm a' 43541 }; 43542 var dateTimeFormats = { 43543 full: "{{date}} 'aig' {{time}}", 43544 long: "{{date}} 'aig' {{time}}", 43545 medium: '{{date}}, {{time}}', 43546 short: '{{date}}, {{time}}' 43547 }; 43548 var formatLong = { 43549 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 43550 formats: dateFormats, 43551 defaultWidth: 'full' 43552 }), 43553 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 43554 formats: timeFormats, 43555 defaultWidth: 'full' 43556 }), 43557 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 43558 formats: dateTimeFormats, 43559 defaultWidth: 'full' 43560 }) 43561 }; 43562 /* harmony default export */ 43563 __webpack_exports__["a"] = (formatLong); 43564 43565 /***/ 43566 }), 43567 /* 583 */ 43568 /***/ (function (module, __webpack_exports__, __webpack_require__) { 43569 43570 "use strict"; 43571 /* harmony export (immutable) */ 43572 __webpack_exports__["a"] = formatRelative; 43573 var formatRelativeLocale = { 43574 lastWeek: "'mu dheireadh' eeee 'aig' p", 43575 //FIX 43576 yesterday: "'an-dè aig' p", 43577 today: "'an-diugh aig' p", 43578 tomorrow: "'a-mà ireach aig' p", 43579 nextWeek: "eeee 'aig' p", 43580 other: 'P' 43581 }; 43582 43583 function formatRelative(token, _date, _baseDate, _options) { 43584 return formatRelativeLocale[token]; 43585 } 43586 43587 /***/ 43588 }), 43589 /* 584 */ 43590 /***/ (function (module, __webpack_exports__, __webpack_require__) { 43591 43592 "use strict"; 43593 /* harmony import */ 43594 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 43595 43596 var eraValues = { 43597 narrow: ['R', 'A'], 43598 abbreviated: ['RC', 'AD'], 43599 wide: ['ro Chrìosta', 'anno domini'] 43600 }; 43601 var quarterValues = { 43602 narrow: ['1', '2', '3', '4'], 43603 abbreviated: ['C1', 'C2', 'C3', 'C4'], 43604 wide: ["a' chiad chairteal", 'an dà rna cairteal', 'an treas cairteal', 'an ceathramh cairteal'] // Note: in English, the names of days of the week and months are capitalized. 43605 // If you are making a new locale based on this one, check if the same is true for the language you're working on. 43606 // Generally, formatted dates should look like they are in the middle of a sentence, 43607 // e.g. in Spanish language the weekdays and months should be in the lowercase. 43608 43609 }; 43610 var monthValues = { 43611 narrow: ['F', 'G', 'M', 'G', 'C', 'Ã', 'I', 'L', 'S', 'D', 'S', 'D'], 43612 abbreviated: ['Faoi', 'Gear', 'Mà rt', 'Gibl', 'Cèit', 'Ãgmh', 'Iuch', 'Lùn', 'Sult', 'Dà mh', 'Samh', 'Dùbh'], 43613 wide: ['Am Faoilleach', 'An Gearran', 'Am Mà rt', 'An Giblean', 'An Cèitean', 'An t-Ãgmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dà mhair', 'An t-Samhain', 'An Dùbhlachd'] 43614 }; 43615 var dayValues = { 43616 narrow: ['D', 'L', 'M', 'C', 'A', 'H', 'S'], 43617 short: ['Dò', 'Lu', 'Mà ', 'Ci', 'Ar', 'Ha', 'Sa'], 43618 abbreviated: ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'], 43619 wide: ['Didòmhnaich', 'Diluain', 'Dimà irt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'] 43620 }; 43621 var dayPeriodValues = { 43622 narrow: { 43623 am: 'm', 43624 pm: 'f', 43625 midnight: 'm.o.', 43626 noon: 'm.l.', 43627 morning: 'madainn', 43628 afternoon: 'feasgar', 43629 evening: 'feasgar', 43630 night: 'oidhche' 43631 }, 43632 abbreviated: { 43633 am: 'M.', 43634 pm: 'F.', 43635 midnight: 'meadhan oidhche', 43636 noon: 'meadhan là ', 43637 morning: 'madainn', 43638 afternoon: 'feasgar', 43639 evening: 'feasgar', 43640 night: 'oidhche' 43641 }, 43642 wide: { 43643 am: 'm.', 43644 pm: 'f.', 43645 midnight: 'meadhan oidhche', 43646 noon: 'meadhan là ', 43647 morning: 'madainn', 43648 afternoon: 'feasgar', 43649 evening: 'feasgar', 43650 night: 'oidhche' 43651 } 43652 }; 43653 var formattingDayPeriodValues = { 43654 narrow: { 43655 am: 'm', 43656 pm: 'f', 43657 midnight: 'm.o.', 43658 noon: 'm.l.', 43659 morning: 'sa mhadainn', 43660 afternoon: 'feasgar', 43661 evening: 'feasgar', 43662 night: 'air an oidhche' 43663 }, 43664 abbreviated: { 43665 am: 'M.', 43666 pm: 'F.', 43667 midnight: 'meadhan oidhche', 43668 noon: 'meadhan là ', 43669 morning: 'sa mhadainn', 43670 afternoon: 'feasgar', 43671 evening: 'feasgar', 43672 night: 'air an oidhche' 43673 }, 43674 wide: { 43675 am: 'm.', 43676 pm: 'f.', 43677 midnight: 'meadhan oidhche', 43678 noon: 'meadhan là ', 43679 morning: 'sa mhadainn', 43680 afternoon: 'feasgar', 43681 evening: 'feasgar', 43682 night: 'air an oidhche' 43683 } 43684 }; 43685 43686 function ordinalNumber(dirtyNumber, _dirtyOptions) { 43687 var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, 43688 // if they are different for different grammatical genders, 43689 // use `options.unit`: 43690 // 43691 // var options = dirtyOptions || {} 43692 // var unit = String(options.unit) 43693 // 43694 // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', 43695 // 'day', 'hour', 'minute', 'second' 43696 43697 var rem100 = number % 100; 43698 43699 if (rem100 > 20 || rem100 < 10) { 43700 switch (rem100 % 10) { 43701 case 1: 43702 return number + 'd'; 43703 43704 case 2: 43705 return number + 'na'; 43706 } 43707 } 43708 43709 if (rem100 === 12) { 43710 return number + 'na'; 43711 } 43712 43713 return number + 'mh'; 43714 } 43715 43716 var localize = { 43717 ordinalNumber: ordinalNumber, 43718 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 43719 values: eraValues, 43720 defaultWidth: 'wide' 43721 }), 43722 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 43723 values: quarterValues, 43724 defaultWidth: 'wide', 43725 argumentCallback: function (quarter) { 43726 return Number(quarter) - 1; 43727 } 43728 }), 43729 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 43730 values: monthValues, 43731 defaultWidth: 'wide' 43732 }), 43733 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 43734 values: dayValues, 43735 defaultWidth: 'wide' 43736 }), 43737 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 43738 values: dayPeriodValues, 43739 defaultWidth: 'wide', 43740 formattingValues: formattingDayPeriodValues, 43741 defaultFormattingWidth: 'wide' 43742 }) 43743 }; 43744 /* harmony default export */ 43745 __webpack_exports__["a"] = (localize); 43746 43747 /***/ 43748 }), 43749 /* 585 */ 43750 /***/ (function (module, __webpack_exports__, __webpack_require__) { 43751 43752 "use strict"; 43753 /* harmony import */ 43754 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 43755 /* harmony import */ 43756 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 43757 43758 43759 var matchOrdinalNumberPattern = /^(\d+)(d|na|tr|mh)?/i; 43760 var parseOrdinalNumberPattern = /\d+/i; 43761 var matchEraPatterns = { 43762 narrow: /^(r|a)/i, 43763 abbreviated: /^(r\.?\s?c\.?|r\.?\s?a\.?\s?c\.?|a\.?\s?d\.?|a\.?\s?c\.?)/i, 43764 wide: /^(ro Chrìosta|ron aois choitchinn|anno domini|aois choitcheann)/i 43765 }; 43766 var parseEraPatterns = { 43767 any: [/^b/i, /^(a|c)/i] 43768 }; 43769 var matchQuarterPatterns = { 43770 narrow: /^[1234]/i, 43771 abbreviated: /^c[1234]/i, 43772 wide: /^[1234](cd|na|tr|mh)? cairteal/i 43773 }; 43774 var parseQuarterPatterns = { 43775 any: [/1/i, /2/i, /3/i, /4/i] 43776 }; 43777 var matchMonthPatterns = { 43778 narrow: /^[fgmcòilsd]/i, 43779 abbreviated: /^(faoi|gear|mà rt|gibl|cèit|ògmh|iuch|lùn|sult|dà mh|samh|dùbh)/i, 43780 wide: /^(am faoilleach|an gearran|am mà rt|an giblean|an cèitean|an t-Ãgmhios|an t-Iuchar|an lùnastal|an t-Sultain|an dà mhair|an t-Samhain|an dùbhlachd)/i 43781 }; 43782 var parseMonthPatterns = { 43783 narrow: [/^f/i, /^g/i, /^m/i, /^g/i, /^c/i, /^ò/i, /^i/i, /^l/i, /^s/i, /^d/i, /^s/i, /^d/i], 43784 any: [/^fa/i, /^ge/i, /^mà /i, /^gi/i, /^c/i, /^ò/i, /^i/i, /^l/i, /^su/i, /^d/i, /^sa/i, /^d/i] 43785 }; 43786 var matchDayPatterns = { 43787 narrow: /^[dlmcahs]/i, 43788 short: /^(dò|lu|mà |ci|ar|ha|sa)/i, 43789 abbreviated: /^(did|dil|dim|dic|dia|dih|dis)/i, 43790 wide: /^(didòmhnaich|diluain|dimà irt|diciadain|diardaoin|dihaoine|disathairne)/i 43791 }; 43792 var parseDayPatterns = { 43793 narrow: [/^d/i, /^l/i, /^m/i, /^c/i, /^a/i, /^h/i, /^s/i], 43794 any: [/^d/i, /^l/i, /^m/i, /^c/i, /^a/i, /^h/i, /^s/i] 43795 }; 43796 var matchDayPeriodPatterns = { 43797 narrow: /^(a|p|mi|n|(san|aig) (madainn|feasgar|feasgar|oidhche))/i, 43798 any: /^([ap]\.?\s?m\.?|meadhan oidhche|meadhan là |(san|aig) (madainn|feasgar|feasgar|oidhche))/i 43799 }; 43800 var parseDayPeriodPatterns = { 43801 any: { 43802 am: /^m/i, 43803 pm: /^f/i, 43804 midnight: /^meadhan oidhche/i, 43805 noon: /^meadhan là /i, 43806 morning: /sa mhadainn/i, 43807 afternoon: /feasgar/i, 43808 evening: /feasgar/i, 43809 night: /air an oidhche/i 43810 } 43811 }; 43812 var match = { 43813 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 43814 matchPattern: matchOrdinalNumberPattern, 43815 parsePattern: parseOrdinalNumberPattern, 43816 valueCallback: function (value) { 43817 return parseInt(value, 10); 43818 } 43819 }), 43820 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 43821 matchPatterns: matchEraPatterns, 43822 defaultMatchWidth: 'wide', 43823 parsePatterns: parseEraPatterns, 43824 defaultParseWidth: 'any' 43825 }), 43826 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 43827 matchPatterns: matchQuarterPatterns, 43828 defaultMatchWidth: 'wide', 43829 parsePatterns: parseQuarterPatterns, 43830 defaultParseWidth: 'any', 43831 valueCallback: function (index) { 43832 return index + 1; 43833 } 43834 }), 43835 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 43836 matchPatterns: matchMonthPatterns, 43837 defaultMatchWidth: 'wide', 43838 parsePatterns: parseMonthPatterns, 43839 defaultParseWidth: 'any' 43840 }), 43841 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 43842 matchPatterns: matchDayPatterns, 43843 defaultMatchWidth: 'wide', 43844 parsePatterns: parseDayPatterns, 43845 defaultParseWidth: 'any' 43846 }), 43847 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 43848 matchPatterns: matchDayPeriodPatterns, 43849 defaultMatchWidth: 'any', 43850 parsePatterns: parseDayPeriodPatterns, 43851 defaultParseWidth: 'any' 43852 }) 43853 }; 43854 /* harmony default export */ 43855 __webpack_exports__["a"] = (match); 43856 43857 /***/ 43858 }), 43859 /* 586 */ 43860 /***/ (function (module, __webpack_exports__, __webpack_require__) { 43861 43862 "use strict"; 43863 /* harmony import */ 43864 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(587); 43865 /* harmony import */ 43866 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(588); 43867 /* harmony import */ 43868 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(589); 43869 /* harmony import */ 43870 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(590); 43871 /* harmony import */ 43872 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(591); 43873 43874 43875 /** 43876 * @type {Locale} 43877 * @category Locales 43878 * @summary Galician locale. 43879 * @language Galician 43880 * @iso-639-2 glg 43881 * @author Alberto Doval - Cocodin Technology[@cocodinTech]{@link https://github.com/cocodinTech} 43882 * @author Fidel Pita [@fidelpita]{@link https://github.com/fidelpita} 43883 */ 43884 43885 var locale = { 43886 code: 'gl', 43887 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 43888 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 43889 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 43890 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 43891 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 43892 options: { 43893 weekStartsOn: 1 43894 /* Monday */ 43895 , 43896 firstWeekContainsDate: 1 43897 } 43898 }; 43899 /* harmony default export */ 43900 __webpack_exports__["a"] = (locale); 43901 43902 /***/ 43903 }), 43904 /* 587 */ 43905 /***/ (function (module, __webpack_exports__, __webpack_require__) { 43906 43907 "use strict"; 43908 /* harmony export (immutable) */ 43909 __webpack_exports__["a"] = formatDistance; 43910 var formatDistanceLocale = { 43911 lessThanXSeconds: { 43912 one: 'menos dun segundo', 43913 other: 'menos de {{count}} segundos' 43914 }, 43915 xSeconds: { 43916 one: '1 segundo', 43917 other: '{{count}} segundos' 43918 }, 43919 halfAMinute: 'medio minuto', 43920 lessThanXMinutes: { 43921 one: 'menos dun minuto', 43922 other: 'menos de {{count}} minutos' 43923 }, 43924 xMinutes: { 43925 one: '1 minuto', 43926 other: '{{count}} minutos' 43927 }, 43928 aboutXHours: { 43929 one: 'arredor dunha hora', 43930 other: 'arredor de {{count}} horas' 43931 }, 43932 xHours: { 43933 one: '1 hora', 43934 other: '{{count}} horas' 43935 }, 43936 xDays: { 43937 one: '1 dÃa', 43938 other: '{{count}} dÃas' 43939 }, 43940 aboutXWeeks: { 43941 one: 'arredor dunha semana', 43942 other: 'arredor de {{count}} semanas' 43943 }, 43944 xWeeks: { 43945 one: '1 semana', 43946 other: '{{count}} semanas' 43947 }, 43948 aboutXMonths: { 43949 one: 'arredor de 1 mes', 43950 other: 'arredor de {{count}} meses' 43951 }, 43952 xMonths: { 43953 one: '1 mes', 43954 other: '{{count}} meses' 43955 }, 43956 aboutXYears: { 43957 one: 'arredor dun ano', 43958 other: 'arredor de {{count}} anos' 43959 }, 43960 xYears: { 43961 one: '1 ano', 43962 other: '{{count}} anos' 43963 }, 43964 overXYears: { 43965 one: 'máis dun ano', 43966 other: 'máis de {{count}} anos' 43967 }, 43968 almostXYears: { 43969 one: 'case un ano', 43970 other: 'case {{count}} anos' 43971 } 43972 }; 43973 43974 function formatDistance(token, count, options) { 43975 options = options || {}; 43976 var result; 43977 43978 if (typeof formatDistanceLocale[token] === 'string') { 43979 result = formatDistanceLocale[token]; 43980 } else if (count === 1) { 43981 result = formatDistanceLocale[token].one; 43982 } else { 43983 result = formatDistanceLocale[token].other.replace('{{count}}', count); 43984 } 43985 43986 if (options.addSuffix) { 43987 if (options.comparison > 0) { 43988 return 'en ' + result; 43989 } else { 43990 return 'hai ' + result; 43991 } 43992 } 43993 43994 return result; 43995 } 43996 43997 /***/ 43998 }), 43999 /* 588 */ 44000 /***/ (function (module, __webpack_exports__, __webpack_require__) { 44001 44002 "use strict"; 44003 /* harmony import */ 44004 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 44005 44006 var dateFormats = { 44007 full: "EEEE, d 'de' MMMM y", 44008 long: "d 'de' MMMM y", 44009 medium: 'd MMM y', 44010 short: 'dd/MM/y' 44011 }; 44012 var timeFormats = { 44013 full: 'HH:mm:ss zzzz', 44014 long: 'HH:mm:ss z', 44015 medium: 'HH:mm:ss', 44016 short: 'HH:mm' 44017 }; 44018 var dateTimeFormats = { 44019 full: "{{date}} 'ás' {{time}}", 44020 long: "{{date}} 'ás' {{time}}", 44021 medium: '{{date}}, {{time}}', 44022 short: '{{date}}, {{time}}' 44023 }; 44024 var formatLong = { 44025 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 44026 formats: dateFormats, 44027 defaultWidth: 'full' 44028 }), 44029 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 44030 formats: timeFormats, 44031 defaultWidth: 'full' 44032 }), 44033 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 44034 formats: dateTimeFormats, 44035 defaultWidth: 'full' 44036 }) 44037 }; 44038 /* harmony default export */ 44039 __webpack_exports__["a"] = (formatLong); 44040 44041 /***/ 44042 }), 44043 /* 589 */ 44044 /***/ (function (module, __webpack_exports__, __webpack_require__) { 44045 44046 "use strict"; 44047 /* harmony export (immutable) */ 44048 __webpack_exports__["a"] = formatRelative; 44049 var formatRelativeLocale = { 44050 lastWeek: "'o' eeee 'pasado á' LT", 44051 yesterday: "'onte á' p", 44052 today: "'hoxe á' p", 44053 tomorrow: "'mañá á' p", 44054 nextWeek: "eeee 'á' p", 44055 other: 'P' 44056 }; 44057 var formatRelativeLocalePlural = { 44058 lastWeek: "'o' eeee 'pasado ás' p", 44059 yesterday: "'onte ás' p", 44060 today: "'hoxe ás' p", 44061 tomorrow: "'mañá ás' p", 44062 nextWeek: "eeee 'ás' p", 44063 other: 'P' 44064 }; 44065 44066 function formatRelative(token, date, _baseDate, _options) { 44067 if (date.getUTCHours() !== 1) { 44068 return formatRelativeLocalePlural[token]; 44069 } 44070 44071 return formatRelativeLocale[token]; 44072 } 44073 44074 /***/ 44075 }), 44076 /* 590 */ 44077 /***/ (function (module, __webpack_exports__, __webpack_require__) { 44078 44079 "use strict"; 44080 /* harmony import */ 44081 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 44082 44083 var eraValues = { 44084 narrow: ['AC', 'DC'], 44085 abbreviated: ['AC', 'DC'], 44086 wide: ['antes de cristo', 'despois de cristo'] 44087 }; 44088 var quarterValues = { 44089 narrow: ['1', '2', '3', '4'], 44090 abbreviated: ['T1', 'T2', 'T3', 'T4'], 44091 wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre'] 44092 }; 44093 var monthValues = { 44094 narrow: ['e', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], 44095 abbreviated: ['xan', 'feb', 'mar', 'abr', 'mai', 'xun', 'xul', 'ago', 'set', 'out', 'nov', 'dec'], 44096 wide: ['xaneiro', 'febreiro', 'marzo', 'abril', 'maio', 'xuño', 'xullo', 'agosto', 'setembro', 'outubro', 'novembro', 'decembro'] 44097 }; 44098 var dayValues = { 44099 narrow: ['d', 'l', 'm', 'm', 'j', 'v', 's'], 44100 short: ['do', 'lu', 'ma', 'me', 'xo', 've', 'sa'], 44101 abbreviated: ['dom', 'lun', 'mar', 'mer', 'xov', 'ven', 'sab'], 44102 wide: ['domingo', 'luns', 'martes', 'mércores', 'xoves', 'venres', 'sábado'] 44103 }; 44104 var dayPeriodValues = { 44105 narrow: { 44106 am: 'a', 44107 pm: 'p', 44108 midnight: 'mn', 44109 noon: 'md', 44110 morning: 'mañá', 44111 afternoon: 'tarde', 44112 evening: 'tarde', 44113 night: 'noite' 44114 }, 44115 abbreviated: { 44116 am: 'AM', 44117 pm: 'PM', 44118 midnight: 'medianoite', 44119 noon: 'mediodÃa', 44120 morning: 'mañá', 44121 afternoon: 'tarde', 44122 evening: 'tardiña', 44123 night: 'noite' 44124 }, 44125 wide: { 44126 am: 'a.m.', 44127 pm: 'p.m.', 44128 midnight: 'medianoite', 44129 noon: 'mediodÃa', 44130 morning: 'mañá', 44131 afternoon: 'tarde', 44132 evening: 'tardiña', 44133 night: 'noite' 44134 } 44135 }; 44136 var formattingDayPeriodValues = { 44137 narrow: { 44138 am: 'a', 44139 pm: 'p', 44140 midnight: 'mn', 44141 noon: 'md', 44142 morning: 'da mañá', 44143 afternoon: 'da tarde', 44144 evening: 'da tardiña', 44145 night: 'da noite' 44146 }, 44147 abbreviated: { 44148 am: 'AM', 44149 pm: 'PM', 44150 midnight: 'medianoite', 44151 noon: 'mediodÃa', 44152 morning: 'da mañá', 44153 afternoon: 'da tarde', 44154 evening: 'da tardiña', 44155 night: 'da noite' 44156 }, 44157 wide: { 44158 am: 'a.m.', 44159 pm: 'p.m.', 44160 midnight: 'medianoite', 44161 noon: 'mediodÃa', 44162 morning: 'da mañá', 44163 afternoon: 'da tarde', 44164 evening: 'da tardiña', 44165 night: 'da noite' 44166 } 44167 }; 44168 44169 function ordinalNumber(dirtyNumber) { 44170 var number = Number(dirtyNumber); 44171 return number + 'º'; 44172 } 44173 44174 var localize = { 44175 ordinalNumber: ordinalNumber, 44176 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 44177 values: eraValues, 44178 defaultWidth: 'wide' 44179 }), 44180 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 44181 values: quarterValues, 44182 defaultWidth: 'wide', 44183 argumentCallback: function (quarter) { 44184 return Number(quarter) - 1; 44185 } 44186 }), 44187 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 44188 values: monthValues, 44189 defaultWidth: 'wide' 44190 }), 44191 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 44192 values: dayValues, 44193 defaultWidth: 'wide' 44194 }), 44195 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 44196 values: dayPeriodValues, 44197 defaultWidth: 'wide', 44198 formattingValues: formattingDayPeriodValues, 44199 defaultFormattingWidth: 'wide' 44200 }) 44201 }; 44202 /* harmony default export */ 44203 __webpack_exports__["a"] = (localize); 44204 44205 /***/ 44206 }), 44207 /* 591 */ 44208 /***/ (function (module, __webpack_exports__, __webpack_require__) { 44209 44210 "use strict"; 44211 /* harmony import */ 44212 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 44213 /* harmony import */ 44214 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 44215 44216 44217 var matchOrdinalNumberPattern = /^(\d+)(º)?/i; 44218 var parseOrdinalNumberPattern = /\d+/i; 44219 var matchEraPatterns = { 44220 narrow: /^(ac|dc|a|d)/i, 44221 abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, 44222 wide: /^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i 44223 }; 44224 var parseEraPatterns = { 44225 any: [/^ac/i, /^dc/i], 44226 wide: [/^(antes de cristo|antes da era com[uú]n)/i, /^(despois de cristo|era com[uú]n)/i] 44227 }; 44228 var matchQuarterPatterns = { 44229 narrow: /^[1234]/i, 44230 abbreviated: /^T[1234]/i, 44231 wide: /^[1234](º)? trimestre/i 44232 }; 44233 var parseQuarterPatterns = { 44234 any: [/1/i, /2/i, /3/i, /4/i] 44235 }; 44236 var matchMonthPatterns = { 44237 narrow: /^[xfmasond]/i, 44238 abbreviated: /^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i, 44239 wide: /^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i 44240 }; 44241 var parseMonthPatterns = { 44242 narrow: [/^x/i, /^f/i, /^m/i, /^a/i, /^m/i, /^x/i, /^x/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 44243 any: [/^xan/i, /^feb/i, /^mar/i, /^abr/i, /^mai/i, /^xun/i, /^xul/i, /^ago/i, /^set/i, /^out/i, /^nov/i, /^dec/i] 44244 }; 44245 var matchDayPatterns = { 44246 narrow: /^[dlmxvs]/i, 44247 short: /^(do|lu|ma|me|xo|ve|sa)/i, 44248 abbreviated: /^(dom|lun|mar|mer|xov|ven|sab)/i, 44249 wide: /^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i 44250 }; 44251 var parseDayPatterns = { 44252 narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^x/i, /^v/i, /^s/i], 44253 any: [/^do/i, /^lu/i, /^ma/i, /^me/i, /^xo/i, /^ve/i, /^sa/i] 44254 }; 44255 var matchDayPeriodPatterns = { 44256 narrow: /^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i, 44257 any: /^([ap]\.?\s?m\.?|medianoite|mediod[iÃ]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i 44258 }; 44259 var parseDayPeriodPatterns = { 44260 any: { 44261 am: /^a/i, 44262 pm: /^p/i, 44263 midnight: /^mn/i, 44264 noon: /^md/i, 44265 morning: /mañ[aá]/i, 44266 afternoon: /tarde/i, 44267 evening: /tardiña/i, 44268 night: /noite/i 44269 } 44270 }; 44271 var match = { 44272 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 44273 matchPattern: matchOrdinalNumberPattern, 44274 parsePattern: parseOrdinalNumberPattern, 44275 valueCallback: function (value) { 44276 return parseInt(value, 10); 44277 } 44278 }), 44279 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 44280 matchPatterns: matchEraPatterns, 44281 defaultMatchWidth: 'wide', 44282 parsePatterns: parseEraPatterns, 44283 defaultParseWidth: 'any' 44284 }), 44285 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 44286 matchPatterns: matchQuarterPatterns, 44287 defaultMatchWidth: 'wide', 44288 parsePatterns: parseQuarterPatterns, 44289 defaultParseWidth: 'any', 44290 valueCallback: function (index) { 44291 return index + 1; 44292 } 44293 }), 44294 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 44295 matchPatterns: matchMonthPatterns, 44296 defaultMatchWidth: 'wide', 44297 parsePatterns: parseMonthPatterns, 44298 defaultParseWidth: 'any' 44299 }), 44300 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 44301 matchPatterns: matchDayPatterns, 44302 defaultMatchWidth: 'wide', 44303 parsePatterns: parseDayPatterns, 44304 defaultParseWidth: 'any' 44305 }), 44306 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 44307 matchPatterns: matchDayPeriodPatterns, 44308 defaultMatchWidth: 'any', 44309 parsePatterns: parseDayPeriodPatterns, 44310 defaultParseWidth: 'any' 44311 }) 44312 }; 44313 /* harmony default export */ 44314 __webpack_exports__["a"] = (match); 44315 44316 /***/ 44317 }), 44318 /* 592 */ 44319 /***/ (function (module, __webpack_exports__, __webpack_require__) { 44320 44321 "use strict"; 44322 /* harmony import */ 44323 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(593); 44324 /* harmony import */ 44325 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(594); 44326 /* harmony import */ 44327 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(595); 44328 /* harmony import */ 44329 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(596); 44330 /* harmony import */ 44331 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(597); 44332 44333 44334 /** 44335 * @type {Locale} 44336 * @category Locales 44337 * @summary Gujarati locale (India). 44338 * @language Gujarati 44339 * @iso-639-2 guj 44340 * @author Manaday Mavani [@ManadayM]{@link https://github.com/manadaym} 44341 */ 44342 44343 var locale = { 44344 code: 'gu', 44345 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 44346 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 44347 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 44348 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 44349 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 44350 options: { 44351 weekStartsOn: 1 44352 /* Monday */ 44353 , 44354 firstWeekContainsDate: 4 44355 } 44356 }; 44357 /* harmony default export */ 44358 __webpack_exports__["a"] = (locale); 44359 44360 /***/ 44361 }), 44362 /* 593 */ 44363 /***/ (function (module, __webpack_exports__, __webpack_require__) { 44364 44365 "use strict"; 44366 /* harmony export (immutable) */ 44367 __webpack_exports__["a"] = formatDistance; 44368// Source: https://www.unicode.org/cldr/charts/32/summary/gu.html 44369 var formatDistanceLocale = { 44370 lessThanXSeconds: { 44371 one: 'હમણાàª', 44372 // CLDR #1461 44373 other: 'âàªàª¶àª°à« {{count}} સà«àªàªàª¡' 44374 }, 44375 xSeconds: { 44376 one: '1 સà«àªàªàª¡', 44377 other: '{{count}} સà«àªàªàª¡' 44378 }, 44379 halfAMinute: 'ઠડધૠમિનિàª', 44380 lessThanXMinutes: { 44381 one: 'ઠમિનિàª', 44382 // CLDR #1448 44383 other: 'âàªàª¶àª°à« {{count}} મિનિàª' 44384 }, 44385 xMinutes: { 44386 one: '1 મિનિàª', 44387 other: '{{count}} મિનિàª' 44388 }, 44389 aboutXHours: { 44390 one: 'âàªàª¶àª°à« 1 àªàª²àª¾àª', 44391 other: 'âàªàª¶àª°à« {{count}} àªàª²àª¾àª' 44392 }, 44393 xHours: { 44394 one: '1 àªàª²àª¾àª', 44395 other: '{{count}} àªàª²àª¾àª' 44396 }, 44397 xDays: { 44398 one: '1 દિવસ', 44399 other: '{{count}} દિવસ' 44400 }, 44401 aboutXWeeks: { 44402 one: 'àªàª¶àª°à« 1 ઠઠવાડિયà«àª', 44403 other: 'àªàª¶àª°à« {{count}} ઠઠવાડિયા' 44404 }, 44405 xWeeks: { 44406 one: '1 ઠઠવાડિયà«àª', 44407 other: '{{count}} ઠઠવાડિયા' 44408 }, 44409 aboutXMonths: { 44410 one: 'àªàª¶àª°à« 1 મહિનà«', 44411 other: 'àªàª¶àª°à« {{count}} મહિના' 44412 }, 44413 xMonths: { 44414 one: '1 મહિનà«', 44415 other: '{{count}} મહિના' 44416 }, 44417 aboutXYears: { 44418 one: 'àªàª¶àª°à« 1 વરà«àª·', 44419 other: 'àªàª¶àª°à« {{count}} વરà«àª·' 44420 }, 44421 xYears: { 44422 one: '1 વરà«àª·', 44423 other: '{{count}} વરà«àª·' 44424 }, 44425 overXYears: { 44426 one: '1 વરà«àª·àª¥à« વધà«', 44427 other: '{{count}} વરà«àª·àª¥à« વધà«' 44428 }, 44429 almostXYears: { 44430 one: 'લàªàªàª 1 વરà«àª·', 44431 other: 'લàªàªàª {{count}} વરà«àª·' 44432 } 44433 }; 44434 44435 function formatDistance(token, count, options) { 44436 options = options || {}; 44437 var result; 44438 44439 if (typeof formatDistanceLocale[token] === 'string') { 44440 result = formatDistanceLocale[token]; 44441 } else if (count === 1) { 44442 result = formatDistanceLocale[token].one; 44443 } else { 44444 result = formatDistanceLocale[token].other.replace('{{count}}', count); 44445 } 44446 44447 if (options.addSuffix) { 44448 if (options.comparison > 0) { 44449 return result + 'માàª'; 44450 } else { 44451 return result + ' પહà«àª²àª¾àª'; 44452 } 44453 } 44454 44455 return result; 44456 } 44457 44458 /***/ 44459 }), 44460 /* 594 */ 44461 /***/ (function (module, __webpack_exports__, __webpack_require__) { 44462 44463 "use strict"; 44464 /* harmony import */ 44465 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 44466 //Source: https://www.unicode.org/cldr/charts/32/summary/gu.html 44467 44468 var dateFormats = { 44469 full: 'EEEE, d MMMM, y', 44470 // CLDR #1825 44471 long: 'd MMMM, y', 44472 // CLDR #1826 44473 medium: 'd MMM, y', 44474 // CLDR #1827 44475 short: 'd/M/yy' // CLDR #1828 44476 44477 }; 44478 var timeFormats = { 44479 full: 'hh:mm:ss a zzzz', 44480 // CLDR #1829 44481 long: 'hh:mm:ss a z', 44482 // CLDR #1830 44483 medium: 'hh:mm:ss a', 44484 // CLDR #1831 44485 short: 'hh:mm a' // CLDR #1832 44486 44487 }; 44488 var dateTimeFormats = { 44489 full: '{{date}} {{time}}', 44490 // CLDR #1833 44491 long: '{{date}} {{time}}', 44492 // CLDR #1834 44493 medium: '{{date}} {{time}}', 44494 // CLDR #1835 44495 short: '{{date}} {{time}}' // CLDR #1836 44496 44497 }; 44498 var formatLong = { 44499 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 44500 formats: dateFormats, 44501 defaultWidth: 'full' 44502 }), 44503 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 44504 formats: timeFormats, 44505 defaultWidth: 'full' 44506 }), 44507 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 44508 formats: dateTimeFormats, 44509 defaultWidth: 'full' 44510 }) 44511 }; 44512 /* harmony default export */ 44513 __webpack_exports__["a"] = (formatLong); 44514 44515 /***/ 44516 }), 44517 /* 595 */ 44518 /***/ (function (module, __webpack_exports__, __webpack_require__) { 44519 44520 "use strict"; 44521 /* harmony export (immutable) */ 44522 __webpack_exports__["a"] = formatRelative; 44523// Source: https://www.unicode.org/cldr/charts/32/summary/gu.html 44524 var formatRelativeLocale = { 44525 lastWeek: "'પાàªàª²àª¾' eeee p", 44526 // CLDR #1384 44527 yesterday: "'àªàªàªàª¾àª²à«' p", 44528 // CLDR #1409 44529 today: "'àªàªà«' p", 44530 // CLDR #1410 44531 tomorrow: "'àªàªµàª¤à«àªàª¾àª²à«' p", 44532 // CLDR #1411 44533 nextWeek: 'eeee p', 44534 // CLDR #1386 44535 other: 'P' 44536 }; 44537 44538 function formatRelative(token, _date, _baseDate, _options) { 44539 return formatRelativeLocale[token]; 44540 } 44541 44542 /***/ 44543 }), 44544 /* 596 */ 44545 /***/ (function (module, __webpack_exports__, __webpack_require__) { 44546 44547 "use strict"; 44548 /* harmony import */ 44549 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 44550 // https://www.unicode.org/cldr/charts/32/summary/gu.html 44551// #1621 - #1630 44552 44553 var eraValues = { 44554 narrow: ['àªàª¸àªªà«', 'àªàª¸'], 44555 abbreviated: ['àª.સ.પà«àª°à«àªµà«', 'àª.સ.'], 44556 wide: ['àªàª¸àªµà«àª¸àª¨ પà«àª°à«àªµà«', 'àªàª¸àªµà«àª¸àª¨'] // https://www.unicode.org/cldr/charts/32/summary/gu.html 44557 // #1631 - #1654 44558 44559 }; 44560 var quarterValues = { 44561 narrow: ['1', '2', '3', '4'], 44562 abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], 44563 wide: ['1લૠતà«àª°àª¿àª®àª¾àª¸', '2àªà« તà«àª°àª¿àª®àª¾àª¸', '3àªà« તà«àª°àª¿àª®àª¾àª¸', '4થૠતà«àª°àª¿àª®àª¾àª¸'] // Note: in English, the names of days of the week and months are capitalized. 44564 // If you are making a new locale based on this one, check if the same is true for the language you're working on. 44565 // Generally, formatted dates should look like they are in the middle of a sentence, 44566 // e.g. in Spanish language the weekdays and months should be in the lowercase. 44567 // https://www.unicode.org/cldr/charts/32/summary/gu.html 44568 // #1655 - #1726 44569 44570 }; 44571 var monthValues = { 44572 narrow: ['àªàª¾', 'ફà«', 'મા', 'àª', 'મà«', 'àªà«', 'àªà«', 'àª', 'સ', 'àª', 'ન', 'ડિ'], 44573 abbreviated: ['àªàª¾àª¨à«àª¯à«', 'ફà«àª¬à«àª°à«', 'મારà«àª', 'àªàªªà«àª°àª¿àª²', 'મà«', 'àªà«àª¨', 'àªà«àª²àª¾àª', 'àªàªàª¸à«àª', 'સપà«àªà«', 'àªàªà«àªà«', 'નવà«', 'ડિસà«'], 44574 wide: ['àªàª¾àª¨à«àª¯à«àªàª°à«', 'ફà«àª¬à«àª°à«àªàª°à«', 'મારà«àª', 'àªàªªà«àª°àª¿àª²', 'મà«', 'àªà«àª¨', 'àªà«àª²àª¾àª', 'àªàªàª¸à«àª', 'સપà«àªà«àª®à«àª¬àª°', 'àªàªà«àªà«àª¬àª°', 'નવà«àª®à«àª¬àª°', 'ડિસà«àª®à«àª¬àª°'] // https://www.unicode.org/cldr/charts/32/summary/gu.html 44575 // #1727 - #1768 44576 44577 }; 44578 var dayValues = { 44579 narrow: ['ર', 'સà«', 'મàª', 'બà«', 'àªà«', 'શà«', 'શ'], 44580 short: ['ર', 'સà«', 'મàª', 'બà«', 'àªà«', 'શà«', 'શ'], 44581 abbreviated: ['રવિ', 'સà«àª®', 'મàªàªàª³', 'બà«àª§', 'àªà«àª°à«', 'શà«àªà«àª°', 'શનિ'], 44582 wide: ['રવિવાર' 44583 /* Sunday */ 44584 , 'સà«àª®àªµàª¾àª°' 44585 /* Monday */ 44586 , 'મàªàªàª³àªµàª¾àª°' 44587 /* Tuesday */ 44588 , 'બà«àª§àªµàª¾àª°' 44589 /* Wednesday */ 44590 , 'àªà«àª°à«àªµàª¾àª°' 44591 /* Thursday */ 44592 , 'શà«àªà«àª°àªµàª¾àª°' 44593 /* Friday */ 44594 , 'શનિવાર' 44595 /* Saturday */ 44596 ] // https://www.unicode.org/cldr/charts/32/summary/gu.html 44597 // #1783 - #1824 44598 44599 }; 44600 var dayPeriodValues = { 44601 narrow: { 44602 am: 'AM', 44603 pm: 'PM', 44604 midnight: 'મ.રાતà«àª°àª¿', 44605 noon: 'બ.', 44606 morning: 'સવારà«', 44607 afternoon: 'બપà«àª°à«', 44608 evening: 'સાàªàªà«', 44609 night: 'રાતà«àª°à«' 44610 }, 44611 abbreviated: { 44612 am: 'AM', 44613 pm: 'PM', 44614 midnight: 'âમધà«àª¯àª°àª¾àª¤à«àª°àª¿', 44615 noon: 'બપà«àª°à«', 44616 morning: 'સવારà«', 44617 afternoon: 'બપà«àª°à«', 44618 evening: 'સાàªàªà«', 44619 night: 'રાતà«àª°à«' 44620 }, 44621 wide: { 44622 am: 'AM', 44623 pm: 'PM', 44624 midnight: 'âમધà«àª¯àª°àª¾àª¤à«àª°àª¿', 44625 noon: 'બપà«àª°à«', 44626 morning: 'સવારà«', 44627 afternoon: 'બપà«àª°à«', 44628 evening: 'સાàªàªà«', 44629 night: 'રાતà«àª°à«' 44630 } 44631 }; 44632 var formattingDayPeriodValues = { 44633 narrow: { 44634 am: 'AM', 44635 pm: 'PM', 44636 midnight: 'મ.રાતà«àª°àª¿', 44637 noon: 'બપà«àª°à«', 44638 morning: 'સવારà«', 44639 afternoon: 'બપà«àª°à«', 44640 evening: 'સાàªàªà«', 44641 night: 'રાતà«àª°à«' 44642 }, 44643 abbreviated: { 44644 am: 'AM', 44645 pm: 'PM', 44646 midnight: 'મધà«àª¯àª°àª¾àª¤à«àª°àª¿', 44647 noon: 'બપà«àª°à«', 44648 morning: 'સવારà«', 44649 afternoon: 'બપà«àª°à«', 44650 evening: 'સાàªàªà«', 44651 night: 'રાતà«àª°à«' 44652 }, 44653 wide: { 44654 am: 'AM', 44655 pm: 'PM', 44656 midnight: 'âમધà«àª¯àª°àª¾àª¤à«àª°àª¿', 44657 noon: 'બપà«àª°à«', 44658 morning: 'સવારà«', 44659 afternoon: 'બપà«àª°à«', 44660 evening: 'સાàªàªà«', 44661 night: 'રાતà«àª°à«' 44662 } 44663 }; 44664 44665 function ordinalNumber(dirtyNumber, _dirtyOptions) { 44666 var number = Number(dirtyNumber); 44667 return number; 44668 } 44669 44670 var localize = { 44671 ordinalNumber: ordinalNumber, 44672 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 44673 values: eraValues, 44674 defaultWidth: 'wide' 44675 }), 44676 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 44677 values: quarterValues, 44678 defaultWidth: 'wide', 44679 argumentCallback: function (quarter) { 44680 return Number(quarter) - 1; 44681 } 44682 }), 44683 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 44684 values: monthValues, 44685 defaultWidth: 'wide' 44686 }), 44687 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 44688 values: dayValues, 44689 defaultWidth: 'wide' 44690 }), 44691 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 44692 values: dayPeriodValues, 44693 defaultWidth: 'wide', 44694 formattingValues: formattingDayPeriodValues, 44695 defaultFormattingWidth: 'wide' 44696 }) 44697 }; 44698 /* harmony default export */ 44699 __webpack_exports__["a"] = (localize); 44700 44701 /***/ 44702 }), 44703 /* 597 */ 44704 /***/ (function (module, __webpack_exports__, __webpack_require__) { 44705 44706 "use strict"; 44707 /* harmony import */ 44708 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 44709 /* harmony import */ 44710 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 44711 44712 44713 var matchOrdinalNumberPattern = /^(\d+)(લ|àª|થ|ઠà«àª |મ)?/i; 44714 var parseOrdinalNumberPattern = /\d+/i; 44715 var matchEraPatterns = { 44716 narrow: /^(àªàª¸àªªà«|àªàª¸)/i, 44717 abbreviated: /^(àª\.સ\.પà«àª°à«àªµà«|àª\.સ\.)/i, 44718 wide: /^(àªàª¸àªµà«àª¸àª¨\sપà«àª°à«àªµà«|àªàª¸àªµà«àª¸àª¨)/i 44719 }; 44720 var parseEraPatterns = { 44721 any: [/^(àªàª¸àªªà«|àªàª¸)/i, /^(àª\.સ\.પà«àª°à«àªµà«|àª\.સ\.)/i, /^(àªàª¸àªµà«àª¸àª¨\sપà«àª°à«àªµà«|àªàª¸àªµà«àª¸àª¨)/i] 44722 }; 44723 var matchQuarterPatterns = { 44724 narrow: /^[1234]/i, 44725 abbreviated: /^q[1234]/i, 44726 wide: /^[1234](લà«|àªà«|થà«)? તà«àª°àª¿àª®àª¾àª¸/i 44727 }; 44728 var parseQuarterPatterns = { 44729 any: [/1/i, /2/i, /3/i, /4/i] 44730 }; 44731 var matchMonthPatterns = { 44732 narrow: /^[àªàª¾àª«à«àª®àª¾àªàª®à«àªà«àªà«àªàª¸àªàª¨àª¡àª¿]/i, 44733 abbreviated: /^(àªàª¾àª¨à«àª¯à«|ફà«àª¬à«àª°à«|મારà«àª|àªàªªà«àª°àª¿àª²|મà«|àªà«àª¨|àªà«àª²àª¾àª|àªàªàª¸à«àª|સપà«àªà«|àªàªà«àªà«|નવà«|ડિસà«)/i, 44734 wide: /^(àªàª¾àª¨à«àª¯à«àªàª°à«|ફà«àª¬à«àª°à«àªàª°à«|મારà«àª|àªàªªà«àª°àª¿àª²|મà«|àªà«àª¨|àªà«àª²àª¾àª|àªàªàª¸à«àª|સપà«àªà«àª®à«àª¬àª°|àªàªà«àªà«àª¬àª°|નવà«àª®à«àª¬àª°|ડિસà«àª®à«àª¬àª°)/i 44735 }; 44736 var parseMonthPatterns = { 44737 narrow: [/^àªàª¾/i, /^ફà«/i, /^મા/i, /^àª/i, /^મà«/i, /^àªà«/i, /^àªà«/i, /^àªàª/i, /^સ/i, /^àªàªà«àªà«/i, /^ન/i, /^ડિ/i], 44738 any: [/^àªàª¾/i, /^ફà«/i, /^મા/i, /^àª/i, /^મà«/i, /^àªà«/i, /^àªà«/i, /^àªàª/i, /^સ/i, /^àªàªà«àªà«/i, /^ન/i, /^ડિ/i] 44739 }; 44740 var matchDayPatterns = { 44741 narrow: /^(ર|સà«|મàª|બà«|àªà«|શà«|શ)/i, 44742 short: /^(ર|સà«|મàª|બà«|àªà«|શà«|શ)/i, 44743 abbreviated: /^(રવિ|સà«àª®|મàªàªàª³|બà«àª§|àªà«àª°à«|શà«àªà«àª°|શનિ)/i, 44744 wide: /^(રવિવાર|સà«àª®àªµàª¾àª°|મàªàªàª³àªµàª¾àª°|બà«àª§àªµàª¾àª°|àªà«àª°à«àªµàª¾àª°|શà«àªà«àª°àªµàª¾àª°|શનિવાર)/i 44745 }; 44746 var parseDayPatterns = { 44747 narrow: [/^ર/i, /^સà«/i, /^મàª/i, /^બà«/i, /^àªà«/i, /^શà«/i, /^શ/i], 44748 any: [/^ર/i, /^સà«/i, /^મàª/i, /^બà«/i, /^àªà«/i, /^શà«/i, /^શ/i] 44749 }; 44750 var matchDayPeriodPatterns = { 44751 narrow: /^(a|p|મ\.?|સ|બ|સાàª|રા)/i, 44752 any: /^(a|p|મ\.?|સ|બ|સાàª|રા)/i 44753 }; 44754 var parseDayPeriodPatterns = { 44755 any: { 44756 am: /^a/i, 44757 pm: /^p/i, 44758 midnight: /^મ\.?/i, 44759 noon: /^બ/i, 44760 morning: /સ/i, 44761 afternoon: /બ/i, 44762 evening: /સાàª/i, 44763 night: /રા/i 44764 } 44765 }; 44766 var match = { 44767 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 44768 matchPattern: matchOrdinalNumberPattern, 44769 parsePattern: parseOrdinalNumberPattern, 44770 valueCallback: function (value) { 44771 return parseInt(value, 10); 44772 } 44773 }), 44774 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 44775 matchPatterns: matchEraPatterns, 44776 defaultMatchWidth: 'wide', 44777 parsePatterns: parseEraPatterns, 44778 defaultParseWidth: 'any' 44779 }), 44780 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 44781 matchPatterns: matchQuarterPatterns, 44782 defaultMatchWidth: 'wide', 44783 parsePatterns: parseQuarterPatterns, 44784 defaultParseWidth: 'any', 44785 valueCallback: function (index) { 44786 return index + 1; 44787 } 44788 }), 44789 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 44790 matchPatterns: matchMonthPatterns, 44791 defaultMatchWidth: 'wide', 44792 parsePatterns: parseMonthPatterns, 44793 defaultParseWidth: 'any' 44794 }), 44795 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 44796 matchPatterns: matchDayPatterns, 44797 defaultMatchWidth: 'wide', 44798 parsePatterns: parseDayPatterns, 44799 defaultParseWidth: 'any' 44800 }), 44801 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 44802 matchPatterns: matchDayPeriodPatterns, 44803 defaultMatchWidth: 'any', 44804 parsePatterns: parseDayPeriodPatterns, 44805 defaultParseWidth: 'any' 44806 }) 44807 }; 44808 /* harmony default export */ 44809 __webpack_exports__["a"] = (match); 44810 44811 /***/ 44812 }), 44813 /* 598 */ 44814 /***/ (function (module, __webpack_exports__, __webpack_require__) { 44815 44816 "use strict"; 44817 /* harmony import */ 44818 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(599); 44819 /* harmony import */ 44820 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(600); 44821 /* harmony import */ 44822 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(601); 44823 /* harmony import */ 44824 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(602); 44825 /* harmony import */ 44826 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(603); 44827 44828 44829 /** 44830 * @type {Locale} 44831 * @category Locales 44832 * @summary Hebrew locale. 44833 * @language Hebrew 44834 * @iso-639-2 heb 44835 * @author Nir Lahad [@nirlah]{@link https://github.com/nirlah} 44836 */ 44837 44838 var locale = { 44839 code: 'he', 44840 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 44841 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 44842 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 44843 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 44844 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 44845 options: { 44846 weekStartsOn: 0 44847 /* Sunday */ 44848 , 44849 firstWeekContainsDate: 1 44850 } 44851 }; 44852 /* harmony default export */ 44853 __webpack_exports__["a"] = (locale); 44854 44855 /***/ 44856 }), 44857 /* 599 */ 44858 /***/ (function (module, __webpack_exports__, __webpack_require__) { 44859 44860 "use strict"; 44861 /* harmony export (immutable) */ 44862 __webpack_exports__["a"] = formatDistance; 44863 var formatDistanceLocale = { 44864 lessThanXSeconds: { 44865 one: 'פ××ת ××©× ×××', 44866 two: 'פ××ת ××©×ª× ×©× ××ת', 44867 other: 'פ××ת ×Ö¾{{count}} ×©× ××ת' 44868 }, 44869 xSeconds: { 44870 one: '×©× ×××', 44871 two: '×©×ª× ×©× ××ת', 44872 other: '{{count}} ×©× ××ת' 44873 }, 44874 halfAMinute: '××¦× ××§×', 44875 lessThanXMinutes: { 44876 one: 'פ××ת ×××§×', 44877 two: 'פ××ת ××©×ª× ××§×ת', 44878 other: 'פ××ת ×Ö¾{{count}} ××§×ת' 44879 }, 44880 xMinutes: { 44881 one: '××§×', 44882 two: '×©×ª× ××§×ת', 44883 other: '{{count}} ××§×ת' 44884 }, 44885 aboutXHours: { 44886 one: '×שע×', 44887 two: '×שעת×××', 44888 other: '×Ö¾{{count}} שע×ת' 44889 }, 44890 xHours: { 44891 one: 'שע×', 44892 two: 'שעת×××', 44893 other: '{{count}} שע×ת' 44894 }, 44895 xDays: { 44896 one: '×××', 44897 two: '××××××', 44898 other: '{{count}} ××××' 44899 }, 44900 aboutXWeeks: { 44901 one: '×ש×××¢', 44902 two: '×ש×××¢×××', 44903 other: '×Ö¾{{count}} ש×××¢×ת' 44904 }, 44905 xWeeks: { 44906 one: 'ש×××¢', 44907 two: 'ש×××¢×××', 44908 other: '{{count}} ש×××¢×ת' 44909 }, 44910 aboutXMonths: { 44911 one: '××××ש', 44912 two: '××××ש×××', 44913 other: '×Ö¾{{count}} ×××ש××' 44914 }, 44915 xMonths: { 44916 one: '×××ש', 44917 two: '×××ש×××', 44918 other: '{{count}} ×××ש××' 44919 }, 44920 aboutXYears: { 44921 one: '××©× ×', 44922 two: '××©× ×ª×××', 44923 other: '×Ö¾{{count}} ×©× ××' 44924 }, 44925 xYears: { 44926 one: '×©× ×', 44927 two: '×©× ×ª×××', 44928 other: '{{count}} ×©× ××' 44929 }, 44930 overXYears: { 44931 one: '××תר ××©× ×', 44932 two: '××תר ××©× ×ª×××', 44933 other: '××תר ×Ö¾{{count}} ×©× ××' 44934 }, 44935 almostXYears: { 44936 one: '×××¢× ×©× ×', 44937 two: '×××¢× ×©× ×ª×××', 44938 other: '×××¢× {{count}} ×©× ××' 44939 } 44940 }; 44941 44942 function formatDistance(token, count, options) { 44943 options = options || {}; // Return word instead of `in one day` or `one day ago` 44944 44945 if (token === 'xDays' && options.addSuffix && count <= 2) { 44946 var past = { 44947 1: '×ת×××', 44948 2: 'ש×ש××' 44949 }; 44950 var future = { 44951 1: '××ר', 44952 2: '××רת×××' 44953 }; 44954 return options.comparison > 0 ? future[count] : past[count]; 44955 } 44956 44957 var result; 44958 44959 if (typeof formatDistanceLocale[token] === 'string') { 44960 result = formatDistanceLocale[token]; 44961 } else if (count === 1) { 44962 result = formatDistanceLocale[token].one; 44963 } else if (count === 2) { 44964 result = formatDistanceLocale[token].two; 44965 } else { 44966 result = formatDistanceLocale[token].other.replace('{{count}}', count); 44967 } 44968 44969 if (options.addSuffix) { 44970 if (options.comparison > 0) { 44971 return '××¢×× ' + result; 44972 } else { 44973 return '××¤× × ' + result; 44974 } 44975 } 44976 44977 return result; 44978 } 44979 44980 /***/ 44981 }), 44982 /* 600 */ 44983 /***/ (function (module, __webpack_exports__, __webpack_require__) { 44984 44985 "use strict"; 44986 /* harmony import */ 44987 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 44988 44989 var dateFormats = { 44990 full: 'EEEE, d ×MMMM y', 44991 long: 'd ×MMMM y', 44992 medium: 'd ×MMM y', 44993 short: 'd.M.y' 44994 }; 44995 var timeFormats = { 44996 full: 'H:mm:ss zzzz', 44997 long: 'H:mm:ss z', 44998 medium: 'H:mm:ss', 44999 short: 'H:mm' 45000 }; 45001 var dateTimeFormats = { 45002 full: "{{date}} '×שע×' {{time}}", 45003 long: "{{date}} '×שע×' {{time}}", 45004 medium: '{{date}}, {{time}}', 45005 short: '{{date}}, {{time}}' 45006 }; 45007 var formatLong = { 45008 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 45009 formats: dateFormats, 45010 defaultWidth: 'full' 45011 }), 45012 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 45013 formats: timeFormats, 45014 defaultWidth: 'full' 45015 }), 45016 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 45017 formats: dateTimeFormats, 45018 defaultWidth: 'full' 45019 }) 45020 }; 45021 /* harmony default export */ 45022 __webpack_exports__["a"] = (formatLong); 45023 45024 /***/ 45025 }), 45026 /* 601 */ 45027 /***/ (function (module, __webpack_exports__, __webpack_require__) { 45028 45029 "use strict"; 45030 /* harmony export (immutable) */ 45031 __webpack_exports__["a"] = formatRelative; 45032 var formatRelativeLocale = { 45033 lastWeek: "eeee 'שע×ר ×שע×' p", 45034 yesterday: "'×ת××× ×שע×' p", 45035 today: "'×××× ×שע×' p", 45036 tomorrow: "'××ר ×שע×' p", 45037 nextWeek: "eeee '×שע×' p", 45038 other: 'P' 45039 }; 45040 45041 function formatRelative(token, _date, _baseDate, _options) { 45042 return formatRelativeLocale[token]; 45043 } 45044 45045 /***/ 45046 }), 45047 /* 602 */ 45048 /***/ (function (module, __webpack_exports__, __webpack_require__) { 45049 45050 "use strict"; 45051 /* harmony import */ 45052 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 45053 45054 var eraValues = { 45055 narrow: ['××¤× ×״ס', '×ספ×ר×'], 45056 abbreviated: ['××¤× ×״ס', '×ספ×ר×'], 45057 wide: ['××¤× × ×ספ×ר×', '×ספ×ר×'] 45058 }; 45059 var quarterValues = { 45060 narrow: ['1', '2', '3', '4'], 45061 abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], 45062 wide: ['ר××¢×× 1', 'ר××¢×× 2', 'ר××¢×× 3', 'ר××¢×× 4'] 45063 }; 45064 var monthValues = { 45065 narrow: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], 45066 abbreviated: ['×× ×׳', 'פ×ר׳', '×רץ', '×פר׳', '×××', '××× ×', '××××', '×××׳', 'ספ×׳', '××ק׳', '× ××׳', '×צ×׳'], 45067 wide: ['×× ××ר', 'פ×ר××ר', '×רץ', '×פר××', '×××', '××× ×', '××××', '××××ס×', 'ספ×××ר', '×××§×××ר', '× ××××ר', '×צ××ר'] 45068 }; 45069 var dayValues = { 45070 narrow: ['×׳', '×׳', '×׳', '×׳', '×׳', '×׳', 'ש׳'], 45071 short: ['×׳', '×׳', '×׳', '×׳', '×׳', '×׳', 'ש׳'], 45072 abbreviated: ['××× ×׳', '××× ×׳', '××× ×׳', '××× ×׳', '××× ×׳', '××× ×׳', 'ש×ת'], 45073 wide: ['××× ×¨×ש××', '××× ×©× ×', '××× ×©××ש×', '××× ×¨×××¢×', '××× ×××ש×', '××× ×©×ש×', '××× ×©×ת'] 45074 }; 45075 var dayPeriodValues = { 45076 narrow: { 45077 am: '××¤× ×״צ', 45078 pm: '×××״צ', 45079 midnight: '×צ×ת', 45080 noon: 'צ×ר×××', 45081 morning: '××קר', 45082 afternoon: '××ר ×צ×ר×××', 45083 evening: 'ער×', 45084 night: '××××' 45085 }, 45086 abbreviated: { 45087 am: '××¤× ×״צ', 45088 pm: '×××״צ', 45089 midnight: '×צ×ת', 45090 noon: 'צ×ר×××', 45091 morning: '××קר', 45092 afternoon: '××ר ×צ×ר×××', 45093 evening: 'ער×', 45094 night: '××××' 45095 }, 45096 wide: { 45097 am: '××¤× ×״צ', 45098 pm: '×××״צ', 45099 midnight: '×צ×ת', 45100 noon: 'צ×ר×××', 45101 morning: '××קר', 45102 afternoon: '××ר ×צ×ר×××', 45103 evening: 'ער×', 45104 night: '××××' 45105 } 45106 }; 45107 var formattingDayPeriodValues = { 45108 narrow: { 45109 am: '××¤× ×״צ', 45110 pm: '×××״צ', 45111 midnight: '×צ×ת', 45112 noon: 'צ×ר×××', 45113 morning: '×××קר', 45114 afternoon: '×צ×ר×××', 45115 evening: '×ער×', 45116 night: '×××××' 45117 }, 45118 abbreviated: { 45119 am: '××¤× ×״צ', 45120 pm: '×××״צ', 45121 midnight: '×צ×ת', 45122 noon: 'צ×ר×××', 45123 morning: '×××קר', 45124 afternoon: '××ר ×צ×ר×××', 45125 evening: '×ער×', 45126 night: '×××××' 45127 }, 45128 wide: { 45129 am: '××¤× ×״צ', 45130 pm: '×××״צ', 45131 midnight: '×צ×ת', 45132 noon: 'צ×ר×××', 45133 morning: '×××קר', 45134 afternoon: '××ר ×צ×ר×××', 45135 evening: '×ער×', 45136 night: '×××××' 45137 } 45138 }; 45139 45140 function ordinalNumber(dirtyNumber, dirtyOptions) { 45141 var number = Number(dirtyNumber); // We only show words till 10 45142 45143 if (number <= 0 || number > 10) return number; 45144 var options = dirtyOptions || {}; 45145 var unit = String(options.unit); 45146 var isFemale = ['year', 'hour', 'minute', 'second'].indexOf(unit) >= 0; 45147 var male = ['ר×ש××', '×©× ×', 'ש××ש×', 'ר×××¢×', '×××ש×', 'ש×ש×', 'ש×××¢×', 'ש××× ×', 'תש××¢×', 'עש×ר×']; 45148 var female = ['ר×ש×× ×', '×©× ×××', 'ש××ש×ת', 'ר×××¢×ת', '×××ש×ת', 'ש×ש×ת', 'ש×××¢×ת', 'ש××× ×ת', 'תש××¢×ת', 'עש×ר×ת']; 45149 var index = number - 1; 45150 return isFemale ? female[index] : male[index]; 45151 } 45152 45153 var localize = { 45154 ordinalNumber: ordinalNumber, 45155 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 45156 values: eraValues, 45157 defaultWidth: 'wide' 45158 }), 45159 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 45160 values: quarterValues, 45161 defaultWidth: 'wide', 45162 argumentCallback: function (quarter) { 45163 return Number(quarter) - 1; 45164 } 45165 }), 45166 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 45167 values: monthValues, 45168 defaultWidth: 'wide' 45169 }), 45170 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 45171 values: dayValues, 45172 defaultWidth: 'wide' 45173 }), 45174 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 45175 values: dayPeriodValues, 45176 defaultWidth: 'wide', 45177 formattingValues: formattingDayPeriodValues, 45178 defaultFormattingWidth: 'wide' 45179 }) 45180 }; 45181 /* harmony default export */ 45182 __webpack_exports__["a"] = (localize); 45183 45184 /***/ 45185 }), 45186 /* 603 */ 45187 /***/ (function (module, __webpack_exports__, __webpack_require__) { 45188 45189 "use strict"; 45190 /* harmony import */ 45191 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 45192 /* harmony import */ 45193 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 45194 45195 45196 var matchOrdinalNumberPattern = /^(\d+|(ר×ש××|×©× ×|ש××ש×|ר×××¢×|×××ש×|ש×ש×|ש×××¢×|ש××× ×|תש××¢×|עש×ר×|ר×ש×× ×|×©× ×××|ש××ש×ת|ר×××¢×ת|×××ש×ת|ש×ש×ת|ש×××¢×ת|ש××× ×ת|תש××¢×ת|עש×ר×ת))/i; 45197 var parseOrdinalNumberPattern = /^(\d+|ר×|×©× |ש×|ר×|×|ש×|ש×|ש×|ת|×¢)/i; 45198 var matchEraPatterns = { 45199 narrow: /^×(ספ×ר×|×¤× ×״ס)/i, 45200 abbreviated: /^×(ספ×ר×|×¤× ×״ס)/i, 45201 wide: /^×(×¤× × ×)?ספ×ר×/i 45202 }; 45203 var parseEraPatterns = { 45204 any: [/^×פ/i, /^×ס/i] 45205 }; 45206 var matchQuarterPatterns = { 45207 narrow: /^[1234]/i, 45208 abbreviated: /^q[1234]/i, 45209 wide: /^ר××¢×× [1234]/i 45210 }; 45211 var parseQuarterPatterns = { 45212 any: [/1/i, /2/i, /3/i, /4/i] 45213 }; 45214 var matchMonthPatterns = { 45215 narrow: /^\d+/i, 45216 abbreviated: /^(×× ×|פ×ר|×רץ|×פר|×××|××× ×|××××|×××|ספ×|×××§|× ××|×צ×)׳?/i, 45217 wide: /^(×× ××ר|פ×ר××ר|×רץ|×פר××|×××|××× ×|××××|××××ס×|ספ×××ר|×××§×××ר|× ××××ר|×צ××ר)/i 45218 }; 45219 var parseMonthPatterns = { 45220 narrow: [/^1$/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^7/i, /^8/i, /^9/i, /^10/i, /^11/i, /^12/i], 45221 any: [/^×× /i, /^פ/i, /^×ר/i, /^×פ/i, /^××/i, /^××× /i, /^×××/i, /^×××/i, /^ס/i, /^×××§/i, /^× /i, /^×/i] 45222 }; 45223 var matchDayPatterns = { 45224 narrow: /^[××××××ש]׳/i, 45225 short: /^[××××××ש]׳/i, 45226 abbreviated: /^(ש×ת|××× (×|×|×|×|×|×)׳)/i, 45227 wide: /^××× (ר×ש××|×©× ×|ש××ש×|ר×××¢×|×××ש×|ש×ש×|ש×ת)/i 45228 }; 45229 var parseDayPatterns = { 45230 abbreviated: [/×׳$/i, /×׳$/i, /×׳$/i, /×׳$/i, /×׳$/i, /×׳$/i, /^ש/i], 45231 wide: [/×$/i, /× ×$/i, /××ש×$/i, /×¢×$/i, /××ש×$/i, /ש×ש×$/i, /ת$/i], 45232 any: [/^×/i, /^×/i, /^×/i, /^×/i, /^×/i, /^×/i, /^ש/i] 45233 }; 45234 var matchDayPeriodPatterns = { 45235 any: /^(××ר ×|×)?(×צ×ת|צ×ר×××|××קר|ער×|××××|×××״צ|××¤× ×״צ)/i 45236 }; 45237 var parseDayPeriodPatterns = { 45238 any: { 45239 am: /^×פ/i, 45240 pm: /^×××/i, 45241 midnight: /^×/i, 45242 noon: /^צ/i, 45243 morning: /××קר/i, 45244 afternoon: /×צ|××ר/i, 45245 evening: /ער×/i, 45246 night: /××××/i 45247 } 45248 }; 45249 var ordinalName = ['ר×', '×©× ', 'ש×', 'ר×', '×', 'ש×', 'ש×', 'ש×', 'ת', '×¢']; 45250 var match = { 45251 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 45252 matchPattern: matchOrdinalNumberPattern, 45253 parsePattern: parseOrdinalNumberPattern, 45254 valueCallback: function (value) { 45255 var number = parseInt(value, 10); 45256 return isNaN(number) ? ordinalName.indexOf(value) + 1 : number; 45257 } 45258 }), 45259 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 45260 matchPatterns: matchEraPatterns, 45261 defaultMatchWidth: 'wide', 45262 parsePatterns: parseEraPatterns, 45263 defaultParseWidth: 'any' 45264 }), 45265 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 45266 matchPatterns: matchQuarterPatterns, 45267 defaultMatchWidth: 'wide', 45268 parsePatterns: parseQuarterPatterns, 45269 defaultParseWidth: 'any', 45270 valueCallback: function (index) { 45271 return index + 1; 45272 } 45273 }), 45274 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 45275 matchPatterns: matchMonthPatterns, 45276 defaultMatchWidth: 'wide', 45277 parsePatterns: parseMonthPatterns, 45278 defaultParseWidth: 'any' 45279 }), 45280 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 45281 matchPatterns: matchDayPatterns, 45282 defaultMatchWidth: 'wide', 45283 parsePatterns: parseDayPatterns, 45284 defaultParseWidth: 'any' 45285 }), 45286 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 45287 matchPatterns: matchDayPeriodPatterns, 45288 defaultMatchWidth: 'any', 45289 parsePatterns: parseDayPeriodPatterns, 45290 defaultParseWidth: 'any' 45291 }) 45292 }; 45293 /* harmony default export */ 45294 __webpack_exports__["a"] = (match); 45295 45296 /***/ 45297 }), 45298 /* 604 */ 45299 /***/ (function (module, __webpack_exports__, __webpack_require__) { 45300 45301 "use strict"; 45302 /* harmony import */ 45303 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(605); 45304 /* harmony import */ 45305 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(606); 45306 /* harmony import */ 45307 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(607); 45308 /* harmony import */ 45309 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(97); 45310 /* harmony import */ 45311 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(608); 45312 45313 45314 /** 45315 * @type {Locale} 45316 * @category Locales 45317 * @summary Hindi locale (India). 45318 * @language Hindi 45319 * @iso-639-2 hin 45320 * @author Mukesh Mandiwal [@mukeshmandiwal]{@link https://github.com/mukeshmandiwal} 45321 */ 45322 45323 var locale = { 45324 code: 'hi', 45325 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 45326 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 45327 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 45328 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 45329 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 45330 options: { 45331 weekStartsOn: 0 45332 /* Monday */ 45333 , 45334 firstWeekContainsDate: 4 45335 } 45336 }; 45337 /* harmony default export */ 45338 __webpack_exports__["a"] = (locale); 45339 45340 /***/ 45341 }), 45342 /* 605 */ 45343 /***/ (function (module, __webpack_exports__, __webpack_require__) { 45344 45345 "use strict"; 45346 /* harmony export (immutable) */ 45347 __webpack_exports__["a"] = formatDistance; 45348 /* harmony import */ 45349 var __WEBPACK_IMPORTED_MODULE_0__localize_index_js__ = __webpack_require__(97); 45350 // Source: https://www.unicode.org/cldr/charts/32/summary/hi.html 45351 45352 var formatDistanceLocale = { 45353 lessThanXSeconds: { 45354 one: '१ सà¥à¤à¤à¤¡ सॠà¤à¤®', 45355 // CLDR #1310 45356 other: '{{count}} सà¥à¤à¤à¤¡ सॠà¤à¤®' 45357 }, 45358 xSeconds: { 45359 one: '१ सà¥à¤à¤à¤¡', 45360 other: '{{count}} सà¥à¤à¤à¤¡' 45361 }, 45362 halfAMinute: 'à¤à¤§à¤¾ मिनà¤', 45363 lessThanXMinutes: { 45364 one: '१ मिनठसॠà¤à¤®', 45365 other: '{{count}} मिनठसॠà¤à¤®' 45366 }, 45367 xMinutes: { 45368 one: '१ मिनà¤', 45369 // CLDR #1307 45370 other: '{{count}} मिनà¤' 45371 }, 45372 aboutXHours: { 45373 one: 'लà¤à¤à¤ १ à¤à¤à¤à¤¾', 45374 other: 'लà¤à¤à¤ {{count}} à¤à¤à¤à¥' 45375 }, 45376 xHours: { 45377 one: '१ à¤à¤à¤à¤¾', 45378 // CLDR #1304 45379 other: '{{count}} à¤à¤à¤à¥' // CLDR #4467 45380 45381 }, 45382 xDays: { 45383 one: '१ दिन', 45384 // CLDR #1286 45385 other: '{{count}} दिन' 45386 }, 45387 aboutXWeeks: { 45388 one: 'लà¤à¤à¤ १ सपà¥à¤¤à¤¾à¤¹', 45389 other: 'लà¤à¤à¤ {{count}} सपà¥à¤¤à¤¾à¤¹' 45390 }, 45391 xWeeks: { 45392 one: '१ सपà¥à¤¤à¤¾à¤¹', 45393 other: '{{count}} सपà¥à¤¤à¤¾à¤¹' 45394 }, 45395 aboutXMonths: { 45396 one: 'लà¤à¤à¤ १ महà¥à¤¨à¤¾', 45397 other: 'लà¤à¤à¤ {{count}} महà¥à¤¨à¥' 45398 }, 45399 xMonths: { 45400 one: '१ महà¥à¤¨à¤¾', 45401 other: '{{count}} महà¥à¤¨à¥' 45402 }, 45403 aboutXYears: { 45404 one: 'लà¤à¤à¤ १ वरà¥à¤·', 45405 other: 'लà¤à¤à¤ {{count}} वरà¥à¤·' // CLDR #4823 45406 45407 }, 45408 xYears: { 45409 one: '१ वरà¥à¤·', 45410 other: '{{count}} वरà¥à¤·' 45411 }, 45412 overXYears: { 45413 one: '१ वरà¥à¤· सॠठधिà¤', 45414 other: '{{count}} वरà¥à¤· सॠठधिà¤' 45415 }, 45416 almostXYears: { 45417 one: 'लà¤à¤à¤ १ वरà¥à¤·', 45418 other: 'लà¤à¤à¤ {{count}} वरà¥à¤·' 45419 } 45420 }; 45421 45422 function formatDistance(token, count, options) { 45423 options = options || {}; 45424 var result; 45425 45426 if (typeof formatDistanceLocale[token] === 'string') { 45427 result = formatDistanceLocale[token]; 45428 } else if (count === 1) { 45429 result = formatDistanceLocale[token].one; 45430 } else { 45431 result = formatDistanceLocale[token].other.replace('{{count}}', __WEBPACK_IMPORTED_MODULE_0__localize_index_js__["a" /* default */].numberToLocale(count)); 45432 } 45433 45434 if (options.addSuffix) { 45435 if (options.comparison > 0) { 45436 return result + 'मॠ'; 45437 } else { 45438 return result + ' पहलà¥'; 45439 } 45440 } 45441 45442 return result; 45443 } 45444 45445 /***/ 45446 }), 45447 /* 606 */ 45448 /***/ (function (module, __webpack_exports__, __webpack_require__) { 45449 45450 "use strict"; 45451 /* harmony import */ 45452 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 45453 45454 var dateFormats = { 45455 full: 'EEEE, do MMMM, y', 45456 // CLDR #1787 45457 long: 'do MMMM, y', 45458 // CLDR #1788 45459 medium: 'd MMM, y', 45460 // CLDR #1789 45461 short: 'dd/MM/yyyy' // CLDR #1790 45462 45463 }; 45464 var timeFormats = { 45465 full: 'h:mm:ss a zzzz', 45466 // CLDR #1791 45467 long: 'h:mm:ss a z', 45468 // CLDR #1792 45469 medium: 'h:mm:ss a', 45470 // CLDR #1793 45471 short: 'h:mm a' // CLDR #1794 45472 45473 }; 45474 var dateTimeFormats = { 45475 full: "{{date}} 'à¤à¥' {{time}}", 45476 // CLDR #1795 45477 long: "{{date}} 'à¤à¥' {{time}}", 45478 // CLDR #1796 45479 medium: '{{date}}, {{time}}', 45480 // CLDR #1797 45481 short: '{{date}}, {{time}}' // CLDR #1798 45482 45483 }; 45484 var formatLong = { 45485 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 45486 formats: dateFormats, 45487 defaultWidth: 'full' 45488 }), 45489 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 45490 formats: timeFormats, 45491 defaultWidth: 'full' 45492 }), 45493 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 45494 formats: dateTimeFormats, 45495 defaultWidth: 'full' 45496 }) 45497 }; 45498 /* harmony default export */ 45499 __webpack_exports__["a"] = (formatLong); 45500 45501 /***/ 45502 }), 45503 /* 607 */ 45504 /***/ (function (module, __webpack_exports__, __webpack_require__) { 45505 45506 "use strict"; 45507 /* harmony export (immutable) */ 45508 __webpack_exports__["a"] = formatRelative; 45509 var formatRelativeLocale = { 45510 lastWeek: "'पिà¤à¤²à¥' eeee p", 45511 yesterday: "'à¤à¤²' p", 45512 today: "'à¤à¤' p", 45513 tomorrow: "'à¤à¤²' p", 45514 nextWeek: "eeee 'à¤à¥' p", 45515 other: 'P' 45516 }; 45517 45518 function formatRelative(token, _date, _baseDate, _options) { 45519 return formatRelativeLocale[token]; 45520 } 45521 45522 /***/ 45523 }), 45524 /* 608 */ 45525 /***/ (function (module, __webpack_exports__, __webpack_require__) { 45526 45527 "use strict"; 45528 /* harmony import */ 45529 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 45530 /* harmony import */ 45531 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 45532 /* harmony import */ 45533 var __WEBPACK_IMPORTED_MODULE_2__localize_index_js__ = __webpack_require__(97); 45534 45535 45536 var matchOrdinalNumberPattern = /^[०१२३४५६à¥à¥®à¥¯]+/i; 45537 var parseOrdinalNumberPattern = /^[०१२३४५६à¥à¥®à¥¯]+/i; 45538 var matchEraPatterns = { 45539 narrow: /^(à¤à¤¸à¤¾-पà¥à¤°à¥à¤µ|à¤à¤¸à¥à¤µà¥)/i, 45540 abbreviated: /^(à¤à¤¸à¤¾\.?\s?पà¥à¤°à¥à¤µ\.?|à¤à¤¸à¤¾\.?)/i, 45541 wide: /^(à¤à¤¸à¤¾-पà¥à¤°à¥à¤µ|à¤à¤¸à¤µà¥ पà¥à¤°à¥à¤µ|à¤à¤¸à¤µà¥ सन|à¤à¤¸à¤µà¥)/i 45542 }; 45543 var parseEraPatterns = { 45544 any: [/^b/i, /^(a|c)/i] 45545 }; 45546 var matchQuarterPatterns = { 45547 narrow: /^[1234]/i, 45548 abbreviated: /^ति[1234]/i, 45549 wide: /^[1234](पहलà¥|दà¥à¤¸à¤°à¥|तà¥à¤¸à¤°à¥|à¤à¥à¤¥à¥)? तिमाहà¥/i 45550 }; 45551 var parseQuarterPatterns = { 45552 any: [/1/i, /2/i, /3/i, /4/i] 45553 }; 45554 var matchMonthPatterns = { 45555 narrow: /^[à¤à¤«à¤¼à¤®à¤¾à¤ पà¥à¤®à¤à¤à¥à¤¨à¤à¥à¤ à¤à¤¸à¤¿à¤ à¤à¥à¤¤à¤¨à¤¦à¤¿]/i, 45556 abbreviated: /^(à¤à¤¨|फ़र|मारà¥à¤|ठपà¥|मà¤|à¤à¥à¤¨|à¤à¥à¤²|ठà¤|सित|ठà¤à¥à¤¤à¥|नव|दिस)/i, 45557 wide: /^(à¤à¤¨à¤µà¤°à¥|फ़रवरà¥|मारà¥à¤|ठपà¥à¤°à¥à¤²|मà¤|à¤à¥à¤¨|à¤à¥à¤²à¤¾à¤|ठà¤à¤¸à¥à¤¤|सितà¤à¤¬à¤°|ठà¤à¥à¤¤à¥à¤¬à¤°|नवà¤à¤¬à¤°|दिसà¤à¤¬à¤°)/i 45558 }; 45559 var parseMonthPatterns = { 45560 narrow: [/^à¤/i, /^फ़/i, /^मा/i, /^ठपà¥/i, /^मà¤/i, /^à¤à¥/i, /^à¤à¥/i, /^ठà¤/i, /^सि/i, /^ठà¤à¥à¤¤à¥/i, /^न/i, /^दि/i], 45561 any: [/^à¤à¤¨/i, /^फ़/i, /^मा/i, /^ठपà¥/i, /^मà¤/i, /^à¤à¥/i, /^à¤à¥/i, /^ठà¤/i, /^सि/i, /^ठà¤à¥à¤¤à¥/i, /^नव/i, /^दिस/i] 45562 }; 45563 var matchDayPatterns = { 45564 narrow: /^[रविसà¥à¤®à¤®à¤à¤à¤²à¤¬à¥à¤§à¤à¥à¤°à¥à¤¶à¥à¤à¥à¤°à¤¶à¤¨à¤¿]/i, 45565 short: /^(रवि|सà¥à¤®|मà¤à¤à¤²|बà¥à¤§|à¤à¥à¤°à¥|शà¥à¤à¥à¤°|शनि)/i, 45566 abbreviated: /^(रवि|सà¥à¤®|मà¤à¤à¤²|बà¥à¤§|à¤à¥à¤°à¥|शà¥à¤à¥à¤°|शनि)/i, 45567 wide: /^(रविवार|सà¥à¤®à¤µà¤¾à¤°|मà¤à¤à¤²à¤µà¤¾à¤°|बà¥à¤§à¤µà¤¾à¤°|à¤à¥à¤°à¥à¤µà¤¾à¤°|शà¥à¤à¥à¤°à¤µà¤¾à¤°|शनिवार)/i 45568 }; 45569 var parseDayPatterns = { 45570 narrow: [/^रवि/i, /^सà¥à¤®/i, /^मà¤à¤à¤²/i, /^बà¥à¤§/i, /^à¤à¥à¤°à¥/i, /^शà¥à¤à¥à¤°/i, /^शनि/i], 45571 any: [/^रवि/i, /^सà¥à¤®/i, /^मà¤à¤à¤²/i, /^बà¥à¤§/i, /^à¤à¥à¤°à¥/i, /^शà¥à¤à¥à¤°/i, /^शनि/i] 45572 }; 45573 var matchDayPeriodPatterns = { 45574 narrow: /^(पà¥|ठ|म|द.\?|सà¥|दà¥|शा|रा)/i, 45575 any: /^(पà¥à¤°à¥à¤µà¤¾à¤¹à¥à¤¨|ठपराहà¥à¤¨|म|द.\?|सà¥|दà¥|शा|रा)/i 45576 }; 45577 var parseDayPeriodPatterns = { 45578 any: { 45579 am: /^पà¥à¤°à¥à¤µà¤¾à¤¹à¥à¤¨/i, 45580 pm: /^ठपराहà¥à¤¨/i, 45581 midnight: /^मधà¥à¤¯/i, 45582 noon: /^दà¥/i, 45583 morning: /सà¥/i, 45584 afternoon: /दà¥/i, 45585 evening: /शा/i, 45586 night: /रा/i 45587 } 45588 }; 45589 var match = { 45590 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 45591 matchPattern: matchOrdinalNumberPattern, 45592 parsePattern: parseOrdinalNumberPattern, 45593 valueCallback: __WEBPACK_IMPORTED_MODULE_2__localize_index_js__["a" /* default */].localeToNumber 45594 }), 45595 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 45596 matchPatterns: matchEraPatterns, 45597 defaultMatchWidth: 'wide', 45598 parsePatterns: parseEraPatterns, 45599 defaultParseWidth: 'any' 45600 }), 45601 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 45602 matchPatterns: matchQuarterPatterns, 45603 defaultMatchWidth: 'wide', 45604 parsePatterns: parseQuarterPatterns, 45605 defaultParseWidth: 'any', 45606 valueCallback: function (index) { 45607 return index + 1; 45608 } 45609 }), 45610 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 45611 matchPatterns: matchMonthPatterns, 45612 defaultMatchWidth: 'wide', 45613 parsePatterns: parseMonthPatterns, 45614 defaultParseWidth: 'any' 45615 }), 45616 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 45617 matchPatterns: matchDayPatterns, 45618 defaultMatchWidth: 'wide', 45619 parsePatterns: parseDayPatterns, 45620 defaultParseWidth: 'any' 45621 }), 45622 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 45623 matchPatterns: matchDayPeriodPatterns, 45624 defaultMatchWidth: 'any', 45625 parsePatterns: parseDayPeriodPatterns, 45626 defaultParseWidth: 'any' 45627 }) 45628 }; 45629 /* harmony default export */ 45630 __webpack_exports__["a"] = (match); 45631 45632 /***/ 45633 }), 45634 /* 609 */ 45635 /***/ (function (module, __webpack_exports__, __webpack_require__) { 45636 45637 "use strict"; 45638 /* harmony import */ 45639 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(610); 45640 /* harmony import */ 45641 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(611); 45642 /* harmony import */ 45643 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(612); 45644 /* harmony import */ 45645 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(613); 45646 /* harmony import */ 45647 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(614); 45648 45649 45650 /** 45651 * @type {Locale} 45652 * @category Locales 45653 * @summary Croatian locale. 45654 * @language Croatian 45655 * @iso-639-2 hrv 45656 * @author Matija MarohniÄ [@silvenon]{@link https://github.com/silvenon} 45657 * @author Manico [@manico]{@link https://github.com/manico} 45658 * @author Ivan Jeržabek [@jerzabek]{@link https://github.com/jerzabek} 45659 */ 45660 45661 var locale = { 45662 code: 'hr', 45663 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 45664 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 45665 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 45666 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 45667 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 45668 options: { 45669 weekStartsOn: 1 45670 /* Monday */ 45671 , 45672 firstWeekContainsDate: 1 45673 } 45674 }; 45675 /* harmony default export */ 45676 __webpack_exports__["a"] = (locale); 45677 45678 /***/ 45679 }), 45680 /* 610 */ 45681 /***/ (function (module, __webpack_exports__, __webpack_require__) { 45682 45683 "use strict"; 45684 /* harmony export (immutable) */ 45685 __webpack_exports__["a"] = formatDistance; 45686 var formatDistanceLocale = { 45687 lessThanXSeconds: { 45688 one: { 45689 standalone: 'manje od 1 sekunde', 45690 withPrepositionAgo: 'manje od 1 sekunde', 45691 withPrepositionIn: 'manje od 1 sekundu' 45692 }, 45693 dual: 'manje od {{count}} sekunde', 45694 other: 'manje od {{count}} sekundi' 45695 }, 45696 xSeconds: { 45697 one: { 45698 standalone: '1 sekunda', 45699 withPrepositionAgo: '1 sekunde', 45700 withPrepositionIn: '1 sekundu' 45701 }, 45702 dual: '{{count}} sekunde', 45703 other: '{{count}} sekundi' 45704 }, 45705 halfAMinute: 'pola minute', 45706 lessThanXMinutes: { 45707 one: { 45708 standalone: 'manje od 1 minute', 45709 withPrepositionAgo: 'manje od 1 minute', 45710 withPrepositionIn: 'manje od 1 minutu' 45711 }, 45712 dual: 'manje od {{count}} minute', 45713 other: 'manje od {{count}} minuta' 45714 }, 45715 xMinutes: { 45716 one: { 45717 standalone: '1 minuta', 45718 withPrepositionAgo: '1 minute', 45719 withPrepositionIn: '1 minutu' 45720 }, 45721 dual: '{{count}} minute', 45722 other: '{{count}} minuta' 45723 }, 45724 aboutXHours: { 45725 one: { 45726 standalone: 'oko 1 sat', 45727 withPrepositionAgo: 'oko 1 sat', 45728 withPrepositionIn: 'oko 1 sat' 45729 }, 45730 dual: 'oko {{count}} sata', 45731 other: 'oko {{count}} sati' 45732 }, 45733 xHours: { 45734 one: { 45735 standalone: '1 sat', 45736 withPrepositionAgo: '1 sat', 45737 withPrepositionIn: '1 sat' 45738 }, 45739 dual: '{{count}} sata', 45740 other: '{{count}} sati' 45741 }, 45742 xDays: { 45743 one: { 45744 standalone: '1 dan', 45745 withPrepositionAgo: '1 dan', 45746 withPrepositionIn: '1 dan' 45747 }, 45748 dual: '{{count}} dana', 45749 other: '{{count}} dana' 45750 }, 45751 aboutXWeeks: { 45752 one: { 45753 standalone: 'oko 1 tjedan', 45754 withPrepositionAgo: 'oko 1 tjedan', 45755 withPrepositionIn: 'oko 1 tjedan' 45756 }, 45757 dual: 'oko {{count}} tjedna', 45758 other: 'oko {{count}} tjedana' 45759 }, 45760 xWeeks: { 45761 one: { 45762 standalone: '1 tjedan', 45763 withPrepositionAgo: '1 tjedan', 45764 withPrepositionIn: '1 tjedan' 45765 }, 45766 dual: '{{count}} tjedna', 45767 other: '{{count}} tjedana' 45768 }, 45769 aboutXMonths: { 45770 one: { 45771 standalone: 'oko 1 mjesec', 45772 withPrepositionAgo: 'oko 1 mjesec', 45773 withPrepositionIn: 'oko 1 mjesec' 45774 }, 45775 dual: 'oko {{count}} mjeseca', 45776 other: 'oko {{count}} mjeseci' 45777 }, 45778 xMonths: { 45779 one: { 45780 standalone: '1 mjesec', 45781 withPrepositionAgo: '1 mjesec', 45782 withPrepositionIn: '1 mjesec' 45783 }, 45784 dual: '{{count}} mjeseca', 45785 other: '{{count}} mjeseci' 45786 }, 45787 aboutXYears: { 45788 one: { 45789 standalone: 'oko 1 godinu', 45790 withPrepositionAgo: 'oko 1 godinu', 45791 withPrepositionIn: 'oko 1 godinu' 45792 }, 45793 dual: 'oko {{count}} godine', 45794 other: 'oko {{count}} godina' 45795 }, 45796 xYears: { 45797 one: { 45798 standalone: '1 godina', 45799 withPrepositionAgo: '1 godine', 45800 withPrepositionIn: '1 godinu' 45801 }, 45802 dual: '{{count}} godine', 45803 other: '{{count}} godina' 45804 }, 45805 overXYears: { 45806 one: { 45807 standalone: 'preko 1 godinu', 45808 withPrepositionAgo: 'preko 1 godinu', 45809 withPrepositionIn: 'preko 1 godinu' 45810 }, 45811 dual: 'preko {{count}} godine', 45812 other: 'preko {{count}} godina' 45813 }, 45814 almostXYears: { 45815 one: { 45816 standalone: 'gotovo 1 godinu', 45817 withPrepositionAgo: 'gotovo 1 godinu', 45818 withPrepositionIn: 'gotovo 1 godinu' 45819 }, 45820 dual: 'gotovo {{count}} godine', 45821 other: 'gotovo {{count}} godina' 45822 } 45823 }; 45824 45825 function formatDistance(token, count, options) { 45826 options = options || {}; 45827 var result; 45828 45829 if (typeof formatDistanceLocale[token] === 'string') { 45830 result = formatDistanceLocale[token]; 45831 } else if (count === 1) { 45832 if (options.addSuffix) { 45833 if (options.comparison > 0) { 45834 result = formatDistanceLocale[token].one.withPrepositionIn; 45835 } else { 45836 result = formatDistanceLocale[token].one.withPrepositionAgo; 45837 } 45838 } else { 45839 result = formatDistanceLocale[token].one.standalone; 45840 } 45841 } else if (count % 10 > 1 && count % 10 < 5 && // if last digit is between 2 and 4 45842 String(count).substr(-2, 1) !== '1' // unless the 2nd to last digit is "1" 45843 ) { 45844 result = formatDistanceLocale[token].dual.replace('{{count}}', count); 45845 } else { 45846 result = formatDistanceLocale[token].other.replace('{{count}}', count); 45847 } 45848 45849 if (options.addSuffix) { 45850 if (options.comparison > 0) { 45851 return 'za ' + result; 45852 } else { 45853 return 'prije ' + result; 45854 } 45855 } 45856 45857 return result; 45858 } 45859 45860 /***/ 45861 }), 45862 /* 611 */ 45863 /***/ (function (module, __webpack_exports__, __webpack_require__) { 45864 45865 "use strict"; 45866 /* harmony import */ 45867 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 45868 45869 var dateFormats = { 45870 full: 'EEEE, d. MMMM y.', 45871 long: 'd. MMMM y.', 45872 medium: 'd. MMM y.', 45873 short: 'dd. MM. y.' 45874 }; 45875 var timeFormats = { 45876 full: 'HH:mm:ss (zzzz)', 45877 long: 'HH:mm:ss z', 45878 medium: 'HH:mm:ss', 45879 short: 'HH:mm' 45880 }; 45881 var dateTimeFormats = { 45882 full: "{{date}} 'u' {{time}}", 45883 long: "{{date}} 'u' {{time}}", 45884 medium: '{{date}} {{time}}', 45885 short: '{{date}} {{time}}' 45886 }; 45887 var formatLong = { 45888 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 45889 formats: dateFormats, 45890 defaultWidth: 'full' 45891 }), 45892 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 45893 formats: timeFormats, 45894 defaultWidth: 'full' 45895 }), 45896 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 45897 formats: dateTimeFormats, 45898 defaultWidth: 'full' 45899 }) 45900 }; 45901 /* harmony default export */ 45902 __webpack_exports__["a"] = (formatLong); 45903 45904 /***/ 45905 }), 45906 /* 612 */ 45907 /***/ (function (module, __webpack_exports__, __webpack_require__) { 45908 45909 "use strict"; 45910 /* harmony export (immutable) */ 45911 __webpack_exports__["a"] = formatRelative; 45912 var formatRelativeLocale = { 45913 lastWeek: function (date) { 45914 var day = date.getUTCDay(); 45915 45916 switch (day) { 45917 case 0: 45918 return "'proÅ¡lu nedjelju u' p"; 45919 45920 case 3: 45921 return "'proÅ¡lu srijedu u' p"; 45922 45923 case 6: 45924 return "'proÅ¡lu subotu u' p"; 45925 45926 default: 45927 return "'proÅ¡li' EEEE 'u' p"; 45928 } 45929 }, 45930 yesterday: "'juÄer u' p", 45931 today: "'danas u' p", 45932 tomorrow: "'sutra u' p", 45933 nextWeek: function (date) { 45934 var day = date.getUTCDay(); 45935 45936 switch (day) { 45937 case 0: 45938 return "'iduÄu nedjelju u' p"; 45939 45940 case 3: 45941 return "'iduÄu srijedu u' p"; 45942 45943 case 6: 45944 return "'iduÄu subotu u' p"; 45945 45946 default: 45947 return "'proÅ¡li' EEEE 'u' p"; 45948 } 45949 }, 45950 other: 'P' 45951 }; 45952 45953 function formatRelative(token, date, _baseDate, _options) { 45954 var format = formatRelativeLocale[token]; 45955 45956 if (typeof format === 'function') { 45957 return format(date); 45958 } 45959 45960 return format; 45961 } 45962 45963 /***/ 45964 }), 45965 /* 613 */ 45966 /***/ (function (module, __webpack_exports__, __webpack_require__) { 45967 45968 "use strict"; 45969 /* harmony import */ 45970 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 45971 45972 45973 function ordinalNumber(dirtyNumber) { 45974 var number = Number(dirtyNumber); 45975 return String(number).concat('.'); 45976 } 45977 45978 var eraValues = { 45979 narrow: ['pr.n.e.', 'AD'], 45980 abbreviated: ['pr. Kr.', 'po. Kr.'], 45981 wide: ['Prije Krista', 'Poslije Krista'] 45982 }; 45983 var monthValues = { 45984 narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], 45985 abbreviated: ['sij', 'velj', 'ožu', 'tra', 'svi', 'lip', 'srp', 'kol', 'ruj', 'lis', 'stu', 'pro'], 45986 wide: ['sijeÄanj', 'veljaÄa', 'ožujak', 'travanj', 'svibanj', 'lipanj', 'srpanj', 'kolovoz', 'rujan', 'listopad', 'studeni', 'prosinac'] 45987 }; 45988 var formattingMonthValues = { 45989 narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], 45990 abbreviated: ['sij', 'velj', 'ožu', 'tra', 'svi', 'lip', 'srp', 'kol', 'ruj', 'lis', 'stu', 'pro'], 45991 wide: ['sijeÄnja', 'veljaÄe', 'ožujka', 'travnja', 'svibnja', 'lipnja', 'srpnja', 'kolovoza', 'rujna', 'listopada', 'studenog', 'prosinca'] 45992 }; 45993 var quarterValues = { 45994 narrow: ['1.', '2.', '3.', '4.'], 45995 abbreviated: ['1. kv.', '2. kv.', '3. kv.', '4. kv.'], 45996 wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] 45997 }; 45998 var dayValues = { 45999 narrow: ['N', 'P', 'U', 'S', 'Ä', 'P', 'S'], 46000 short: ['ned', 'pon', 'uto', 'sri', 'Äet', 'pet', 'sub'], 46001 abbreviated: ['ned', 'pon', 'uto', 'sri', 'Äet', 'pet', 'sub'], 46002 wide: ['nedjelja', 'ponedjeljak', 'utorak', 'srijeda', 'Äetvrtak', 'petak', 'subota'] 46003 }; 46004 var formattingDayPeriodValues = { 46005 narrow: { 46006 am: 'AM', 46007 pm: 'PM', 46008 midnight: 'ponoÄ', 46009 noon: 'podne', 46010 morning: 'ujutro', 46011 afternoon: 'popodne', 46012 evening: 'naveÄer', 46013 night: 'noÄu' 46014 }, 46015 abbreviated: { 46016 am: 'AM', 46017 pm: 'PM', 46018 midnight: 'ponoÄ', 46019 noon: 'podne', 46020 morning: 'ujutro', 46021 afternoon: 'popodne', 46022 evening: 'naveÄer', 46023 night: 'noÄu' 46024 }, 46025 wide: { 46026 am: 'AM', 46027 pm: 'PM', 46028 midnight: 'ponoÄ', 46029 noon: 'podne', 46030 morning: 'ujutro', 46031 afternoon: 'poslije podne', 46032 evening: 'naveÄer', 46033 night: 'noÄu' 46034 } 46035 }; 46036 var dayPeriodValues = { 46037 narrow: { 46038 am: 'AM', 46039 pm: 'PM', 46040 midnight: 'ponoÄ', 46041 noon: 'podne', 46042 morning: 'ujutro', 46043 afternoon: 'popodne', 46044 evening: 'naveÄer', 46045 night: 'noÄu' 46046 }, 46047 abbreviated: { 46048 am: 'AM', 46049 pm: 'PM', 46050 midnight: 'ponoÄ', 46051 noon: 'podne', 46052 morning: 'ujutro', 46053 afternoon: 'popodne', 46054 evening: 'naveÄer', 46055 night: 'noÄu' 46056 }, 46057 wide: { 46058 am: 'AM', 46059 pm: 'PM', 46060 midnight: 'ponoÄ', 46061 noon: 'podne', 46062 morning: 'ujutro', 46063 afternoon: 'poslije podne', 46064 evening: 'naveÄer', 46065 night: 'noÄu' 46066 } 46067 }; 46068 var localize = { 46069 ordinalNumber: ordinalNumber, 46070 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 46071 values: eraValues, 46072 defaultWidth: 'wide' 46073 }), 46074 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 46075 values: quarterValues, 46076 defaultWidth: 'wide', 46077 argumentCallback: function (quarter) { 46078 return Number(quarter) - 1; 46079 } 46080 }), 46081 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 46082 values: monthValues, 46083 defaultWidth: 'wide', 46084 formattingValues: formattingMonthValues, 46085 defaultFormattingWidth: 'wide' 46086 }), 46087 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 46088 values: dayValues, 46089 defaultWidth: 'wide' 46090 }), 46091 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 46092 values: dayPeriodValues, 46093 defaultWidth: 'wide', 46094 formattingValues: formattingDayPeriodValues, 46095 defaultFormattingWidth: 'wide' 46096 }) 46097 }; 46098 /* harmony default export */ 46099 __webpack_exports__["a"] = (localize); 46100 46101 /***/ 46102 }), 46103 /* 614 */ 46104 /***/ (function (module, __webpack_exports__, __webpack_require__) { 46105 46106 "use strict"; 46107 /* harmony import */ 46108 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__ = __webpack_require__(5); 46109 /* harmony import */ 46110 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 46111 46112 46113 var matchOrdinalNumberPattern = /^(\d+)\./i; 46114 var parseOrdinalNumberPattern = /\d+/i; 46115 var matchEraPatterns = { 46116 narrow: /^(pr\.n\.e\.|AD)/i, 46117 abbreviated: /^(pr\.\s?Kr\.|po\.\s?Kr\.)/i, 46118 wide: /^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i 46119 }; 46120 var parseEraPatterns = { 46121 any: [/^pr/i, /^(po|nova)/i] 46122 }; 46123 var matchQuarterPatterns = { 46124 narrow: /^[1234]/i, 46125 abbreviated: /^[1234]\.\s?kv\.?/i, 46126 wide: /^[1234]\. kvartal/i 46127 }; 46128 var parseQuarterPatterns = { 46129 any: [/1/i, /2/i, /3/i, /4/i] 46130 }; 46131 var matchMonthPatterns = { 46132 narrow: /^(10|11|12|[123456789])\./i, 46133 abbreviated: /^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i, 46134 wide: /^((sijeÄanj|sijeÄnja|sijecanj|sijecnja)|(veljaÄa|veljaÄe|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i 46135 }; 46136 var parseMonthPatterns = { 46137 narrow: [/(10|11|12|[123456789])/i], 46138 abbreviated: [/^sij/i, /^velj/i, /^(ožu|ozu)/i, /^tra/i, /^svi/i, /^lip/i, /^srp/i, /^kol/i, /^ruj/i, /^lis/i, /^stu/i, /^pro/i], 46139 wide: [/^sij/i, /^velj/i, /^(ožu|ozu)/i, /^tra/i, /^svi/i, /^lip/i, /^srp/i, /^kol/i, /^ruj/i, /^lis/i, /^stu/i, /^pro/i] 46140 }; 46141 var matchDayPatterns = { 46142 narrow: /^[npusÄc]/i, 46143 short: /^(ned|pon|uto|sri|(Äet|cet)|pet|sub)/i, 46144 abbreviated: /^(ned|pon|uto|sri|(Äet|cet)|pet|sub)/i, 46145 wide: /^(nedjelja|ponedjeljak|utorak|srijeda|(Äetvrtak|cetvrtak)|petak|subota)/i 46146 }; 46147 var parseDayPatterns = { 46148 narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], 46149 any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] 46150 }; 46151 var matchDayPeriodPatterns = { 46152 any: /^(am|pm|ponoc|ponoÄ|(po)?podne|navecer|naveÄer|noÄu|poslije podne|ujutro)/i 46153 }; 46154 var parseDayPeriodPatterns = { 46155 any: { 46156 am: /^a/i, 46157 pm: /^p/i, 46158 midnight: /^pono/i, 46159 noon: /^pod/i, 46160 morning: /jutro/i, 46161 afternoon: /(poslije\s|po)+podne/i, 46162 evening: /(navece|naveÄe)/i, 46163 night: /(nocu|noÄu)/i 46164 } 46165 }; 46166 var match = { 46167 ordinalNumber: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 46168 matchPattern: matchOrdinalNumberPattern, 46169 parsePattern: parseOrdinalNumberPattern, 46170 valueCallback: function (value) { 46171 return parseInt(value, 10); 46172 } 46173 }), 46174 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 46175 matchPatterns: matchEraPatterns, 46176 defaultMatchWidth: 'wide', 46177 parsePatterns: parseEraPatterns, 46178 defaultParseWidth: 'any' 46179 }), 46180 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 46181 matchPatterns: matchQuarterPatterns, 46182 defaultMatchWidth: 'wide', 46183 parsePatterns: parseQuarterPatterns, 46184 defaultParseWidth: 'any', 46185 valueCallback: function (index) { 46186 return index + 1; 46187 } 46188 }), 46189 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 46190 matchPatterns: matchMonthPatterns, 46191 defaultMatchWidth: 'wide', 46192 parsePatterns: parseMonthPatterns, 46193 defaultParseWidth: 'wide' 46194 }), 46195 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 46196 matchPatterns: matchDayPatterns, 46197 defaultMatchWidth: 'wide', 46198 parsePatterns: parseDayPatterns, 46199 defaultParseWidth: 'any' 46200 }), 46201 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 46202 matchPatterns: matchDayPeriodPatterns, 46203 defaultMatchWidth: 'any', 46204 parsePatterns: parseDayPeriodPatterns, 46205 defaultParseWidth: 'any' 46206 }) 46207 }; 46208 /* harmony default export */ 46209 __webpack_exports__["a"] = (match); 46210 46211 /***/ 46212 }), 46213 /* 615 */ 46214 /***/ (function (module, __webpack_exports__, __webpack_require__) { 46215 46216 "use strict"; 46217 /* harmony import */ 46218 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(616); 46219 /* harmony import */ 46220 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(617); 46221 /* harmony import */ 46222 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(618); 46223 /* harmony import */ 46224 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(619); 46225 /* harmony import */ 46226 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(620); 46227 46228 46229 /** 46230 * @type {Locale} 46231 * @category Locales 46232 * 46233 * @summary Hungarian locale. 46234 * @language Hungarian 46235 * 46236 * @iso-639-2 hun 46237 * 46238 * @author Pavlo Shpak [@pshpak]{@link https://github.com/pshpak} 46239 * @author Eduardo Pardo [@eduardopsll]{@link https://github.com/eduardopsll} 46240 * @author Zoltan Szepesi [@twodcube]{@link https://github.com/twodcube} 46241 */ 46242 46243 var locale = { 46244 code: 'hu', 46245 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 46246 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 46247 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 46248 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 46249 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 46250 options: { 46251 weekStartsOn: 1 46252 /* Monday */ 46253 , 46254 firstWeekContainsDate: 4 46255 } 46256 }; 46257 /* harmony default export */ 46258 __webpack_exports__["a"] = (locale); 46259 46260 /***/ 46261 }), 46262 /* 616 */ 46263 /***/ (function (module, __webpack_exports__, __webpack_require__) { 46264 46265 "use strict"; 46266 /* harmony export (immutable) */ 46267 __webpack_exports__["a"] = formatDistance; 46268 var translations = { 46269 about: 'körülbelül', 46270 over: 'több mint', 46271 almost: 'majdnem', 46272 lessthan: 'kevesebb mint' 46273 }; 46274 var withoutSuffixes = { 46275 xseconds: ' másodperc', 46276 halfaminute: 'fél perc', 46277 xminutes: ' perc', 46278 xhours: ' óra', 46279 xdays: ' nap', 46280 xweeks: ' hét', 46281 xmonths: ' hónap', 46282 xyears: ' év' 46283 }; 46284 var withSuffixes = { 46285 xseconds: { 46286 '-1': ' másodperccel ezelÅtt', 46287 '1': ' másodperc múlva', 46288 '0': ' másodperce' 46289 }, 46290 halfaminute: { 46291 '-1': 'fél perccel ezelÅtt', 46292 '1': 'fél perc múlva', 46293 '0': 'fél perce' 46294 }, 46295 xminutes: { 46296 '-1': ' perccel ezelÅtt', 46297 '1': ' perc múlva', 46298 '0': ' perce' 46299 }, 46300 xhours: { 46301 '-1': ' órával ezelÅtt', 46302 '1': ' óra múlva', 46303 '0': ' órája' 46304 }, 46305 xdays: { 46306 '-1': ' nappal ezelÅtt', 46307 '1': ' nap múlva', 46308 '0': ' napja' 46309 }, 46310 xweeks: { 46311 '-1': ' héttel ezelÅtt', 46312 '1': ' hét múlva', 46313 '0': ' hete' 46314 }, 46315 xmonths: { 46316 '-1': ' hónappal ezelÅtt', 46317 '1': ' hónap múlva', 46318 '0': ' hónapja' 46319 }, 46320 xyears: { 46321 '-1': ' évvel ezelÅtt', 46322 '1': ' év múlva', 46323 '0': ' éve' 46324 } 46325 }; 46326 46327 function translate(number, addSuffix, key, comparison) { 46328 var translated = addSuffix ? withSuffixes[key][comparison] : withoutSuffixes[key]; 46329 46330 if (key === 'halfaminute') { 46331 return translated; 46332 } 46333 46334 return number + translated; 46335 } 46336 46337 function formatDistance(token, count, options) { 46338 options = options || {}; 46339 var adverb = token.match(/about|over|almost|lessthan/i); 46340 var unit = token.replace(adverb, ''); 46341 var result; 46342 result = translate(count, options.addSuffix, unit.toLowerCase(), options.comparison); 46343 46344 if (adverb) { 46345 result = translations[adverb[0].toLowerCase()] + ' ' + result; 46346 } 46347 46348 return result; 46349 } 46350 46351 /***/ 46352 }), 46353 /* 617 */ 46354 /***/ (function (module, __webpack_exports__, __webpack_require__) { 46355 46356 "use strict"; 46357 /* harmony import */ 46358 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 46359 46360 var dateFormats = { 46361 full: 'y. MMMM d., EEEE', 46362 long: 'y. MMMM d.', 46363 medium: 'y. MMM d.', 46364 short: 'y. MM. dd.' 46365 }; 46366 var timeFormats = { 46367 full: 'H:mm:ss zzzz', 46368 long: 'H:mm:ss z', 46369 medium: 'H:mm:ss', 46370 short: 'H:mm' 46371 }; 46372 var dateTimeFormats = { 46373 full: '{{date}} {{time}}', 46374 long: '{{date}} {{time}}', 46375 medium: '{{date}} {{time}}', 46376 short: '{{date}} {{time}}' 46377 }; 46378 var formatLong = { 46379 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 46380 formats: dateFormats, 46381 defaultWidth: 'full' 46382 }), 46383 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 46384 formats: timeFormats, 46385 defaultWidth: 'full' 46386 }), 46387 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 46388 formats: dateTimeFormats, 46389 defaultWidth: 'full' 46390 }) 46391 }; 46392 /* harmony default export */ 46393 __webpack_exports__["a"] = (formatLong); 46394 46395 /***/ 46396 }), 46397 /* 618 */ 46398 /***/ (function (module, __webpack_exports__, __webpack_require__) { 46399 46400 "use strict"; 46401 /* harmony export (immutable) */ 46402 __webpack_exports__["a"] = formatRelative; 46403 var accusativeWeekdays = ['vasárnap', 'hétfÅn', 'kedden', 'szerdán', 'csütörtökön', 'pénteken', 'szombaton']; 46404 46405 function week(isFuture) { 46406 return function (date, _baseDate, _options) { 46407 var day = date.getUTCDay(); 46408 return (isFuture ? '' : "'múlt' ") + "'" + accusativeWeekdays[day] + "'" + " p'-kor'"; 46409 }; 46410 } 46411 46412 var formatRelativeLocale = { 46413 lastWeek: week(false), 46414 yesterday: "'tegnap' p'-kor'", 46415 today: "'ma' p'-kor'", 46416 tomorrow: "'holnap' p'-kor'", 46417 nextWeek: week(true), 46418 other: 'P' 46419 }; 46420 46421 function formatRelative(token, date, baseDate, options) { 46422 var format = formatRelativeLocale[token]; 46423 46424 if (typeof format === 'function') { 46425 return format(date, baseDate, options); 46426 } 46427 46428 return format; 46429 } 46430 46431 /***/ 46432 }), 46433 /* 619 */ 46434 /***/ (function (module, __webpack_exports__, __webpack_require__) { 46435 46436 "use strict"; 46437 /* harmony import */ 46438 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 46439 46440 var eraValues = { 46441 narrow: ['ie.', 'isz.'], 46442 abbreviated: ['i. e.', 'i. sz.'], 46443 wide: ['Krisztus elÅtt', 'idÅszámÃtásunk szerint'] 46444 }; 46445 var quarterValues = { 46446 narrow: ['1.', '2.', '3.', '4.'], 46447 abbreviated: ['1. n.év', '2. n.év', '3. n.év', '4. n.év'], 46448 wide: ['1. negyedév', '2. negyedév', '3. negyedév', '4. negyedév'] 46449 }; 46450 var formattingQuarterValues = { 46451 narrow: ['I.', 'II.', 'III.', 'IV.'], 46452 abbreviated: ['I. n.év', 'II. n.év', 'III. n.év', 'IV. n.év'], 46453 wide: ['I. negyedév', 'II. negyedév', 'III. negyedév', 'IV. negyedév'] 46454 }; 46455 var monthValues = { 46456 narrow: ['J', 'F', 'M', 'Ã', 'M', 'J', 'J', 'A', 'Sz', 'O', 'N', 'D'], 46457 abbreviated: ['jan.', 'febr.', 'márc.', 'ápr.', 'máj.', 'jún.', 'júl.', 'aug.', 'szept.', 'okt.', 'nov.', 'dec.'], 46458 wide: ['január', 'február', 'március', 'április', 'május', 'június', 'július', 'augusztus', 'szeptember', 'október', 'november', 'december'] 46459 }; 46460 var dayValues = { 46461 narrow: ['V', 'H', 'K', 'Sz', 'Cs', 'P', 'Sz'], 46462 short: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'], 46463 abbreviated: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'], 46464 wide: ['vasárnap', 'hétfÅ', 'kedd', 'szerda', 'csütörtök', 'péntek', 'szombat'] 46465 }; 46466 var dayPeriodValues = { 46467 narrow: { 46468 am: 'de.', 46469 pm: 'du.', 46470 midnight: 'éjfél', 46471 noon: 'dél', 46472 morning: 'reggel', 46473 afternoon: 'du.', 46474 evening: 'este', 46475 night: 'éjjel' 46476 }, 46477 abbreviated: { 46478 am: 'de.', 46479 pm: 'du.', 46480 midnight: 'éjfél', 46481 noon: 'dél', 46482 morning: 'reggel', 46483 afternoon: 'du.', 46484 evening: 'este', 46485 night: 'éjjel' 46486 }, 46487 wide: { 46488 am: 'de.', 46489 pm: 'du.', 46490 midnight: 'éjfél', 46491 noon: 'dél', 46492 morning: 'reggel', 46493 afternoon: 'délután', 46494 evening: 'este', 46495 night: 'éjjel' 46496 } 46497 }; 46498 46499 function ordinalNumber(dirtyNumber, _dirtyOptions) { 46500 var number = Number(dirtyNumber); 46501 return number + '.'; 46502 } 46503 46504 var localize = { 46505 ordinalNumber: ordinalNumber, 46506 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 46507 values: eraValues, 46508 defaultWidth: 'wide' 46509 }), 46510 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 46511 values: quarterValues, 46512 defaultWidth: 'wide', 46513 formattingValues: formattingQuarterValues, 46514 argumentCallback: function (quarter) { 46515 return Number(quarter) - 1; 46516 } 46517 }), 46518 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 46519 values: monthValues, 46520 defaultWidth: 'wide' 46521 }), 46522 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 46523 values: dayValues, 46524 defaultWidth: 'wide' 46525 }), 46526 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 46527 values: dayPeriodValues, 46528 defaultWidth: 'wide', 46529 defaultFormattingWidth: 'wide' 46530 }) 46531 }; 46532 /* harmony default export */ 46533 __webpack_exports__["a"] = (localize); 46534 46535 /***/ 46536 }), 46537 /* 620 */ 46538 /***/ (function (module, __webpack_exports__, __webpack_require__) { 46539 46540 "use strict"; 46541 /* harmony import */ 46542 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 46543 /* harmony import */ 46544 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 46545 46546 46547 var matchOrdinalNumberPattern = /^(\d+)\.?/i; 46548 var parseOrdinalNumberPattern = /\d+/i; 46549 var matchEraPatterns = { 46550 narrow: /^(ie\.|isz\.)/i, 46551 abbreviated: /^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i, 46552 wide: /^(Krisztus elÅtt|idÅszámÃtásunk elÅtt|idÅszámÃtásunk szerint|i\. sz\.)/i 46553 }; 46554 var parseEraPatterns = { 46555 narrow: [/ie/i, /isz/i], 46556 abbreviated: [/^(i\.?\s?e\.?|b\s?ce)/i, /^(i\.?\s?sz\.?|c\s?e)/i], 46557 any: [/elÅtt/i, /(szerint|i. sz.)/i] 46558 }; 46559 var matchQuarterPatterns = { 46560 narrow: /^[1234]\.?/i, 46561 abbreviated: /^[1234]?\.?\s?n\.év/i, 46562 wide: /^([1234]|I|II|III|IV)?\.?\s?negyedév/i 46563 }; 46564 var parseQuarterPatterns = { 46565 any: [/1|I$/i, /2|II$/i, /3|III/i, /4|IV/i] 46566 }; 46567 var matchMonthPatterns = { 46568 narrow: /^[jfmaásond]|sz/i, 46569 abbreviated: /^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i, 46570 wide: /^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i 46571 }; 46572 var parseMonthPatterns = { 46573 narrow: [/^j/i, /^f/i, /^m/i, /^a|á/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s|sz/i, /^o/i, /^n/i, /^d/i], 46574 any: [/^ja/i, /^f/i, /^már/i, /^áp/i, /^máj/i, /^jún/i, /^júl/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] 46575 }; 46576 var matchDayPatterns = { 46577 narrow: /^([vhkpc]|sz|cs|sz)/i, 46578 short: /^([vhkp]|sze|cs|szo)/i, 46579 abbreviated: /^([vhkp]|sze|cs|szo)/i, 46580 wide: /^(vasárnap|hétfÅ|kedd|szerda|csütörtök|péntek|szombat)/i 46581 }; 46582 var parseDayPatterns = { 46583 narrow: [/^v/i, /^h/i, /^k/i, /^sz/i, /^c/i, /^p/i, /^sz/i], 46584 any: [/^v/i, /^h/i, /^k/i, /^sze/i, /^c/i, /^p/i, /^szo/i] 46585 }; 46586 var matchDayPeriodPatterns = { 46587 any: /^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i 46588 }; 46589 var parseDayPeriodPatterns = { 46590 any: { 46591 am: /^de\.?/i, 46592 pm: /^du\.?/i, 46593 midnight: /^éjf/i, 46594 noon: /^dé/i, 46595 morning: /reg/i, 46596 afternoon: /^délu\.?/i, 46597 evening: /es/i, 46598 night: /éjj/i 46599 } 46600 }; 46601 var match = { 46602 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 46603 matchPattern: matchOrdinalNumberPattern, 46604 parsePattern: parseOrdinalNumberPattern, 46605 valueCallback: function (value) { 46606 return parseInt(value, 10); 46607 } 46608 }), 46609 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 46610 matchPatterns: matchEraPatterns, 46611 defaultMatchWidth: 'wide', 46612 parsePatterns: parseEraPatterns, 46613 defaultParseWidth: 'any' 46614 }), 46615 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 46616 matchPatterns: matchQuarterPatterns, 46617 defaultMatchWidth: 'wide', 46618 parsePatterns: parseQuarterPatterns, 46619 defaultParseWidth: 'any', 46620 valueCallback: function (index) { 46621 return index + 1; 46622 } 46623 }), 46624 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 46625 matchPatterns: matchMonthPatterns, 46626 defaultMatchWidth: 'wide', 46627 parsePatterns: parseMonthPatterns, 46628 defaultParseWidth: 'any' 46629 }), 46630 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 46631 matchPatterns: matchDayPatterns, 46632 defaultMatchWidth: 'wide', 46633 parsePatterns: parseDayPatterns, 46634 defaultParseWidth: 'any' 46635 }), 46636 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 46637 matchPatterns: matchDayPeriodPatterns, 46638 defaultMatchWidth: 'any', 46639 parsePatterns: parseDayPeriodPatterns, 46640 defaultParseWidth: 'any' 46641 }) 46642 }; 46643 /* harmony default export */ 46644 __webpack_exports__["a"] = (match); 46645 46646 /***/ 46647 }), 46648 /* 621 */ 46649 /***/ (function (module, __webpack_exports__, __webpack_require__) { 46650 46651 "use strict"; 46652 /* harmony import */ 46653 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(622); 46654 /* harmony import */ 46655 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(623); 46656 /* harmony import */ 46657 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(624); 46658 /* harmony import */ 46659 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(625); 46660 /* harmony import */ 46661 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(626); 46662 46663 46664 /** 46665 * @type {Locale} 46666 * @category Locales 46667 * @summary Armenian locale 46668 * @language Armenian 46669 * @iso-639-2 arm 46670 * @author Alex Igityan [@alexigityan]{@link https://github.com/alexigityan} 46671 */ 46672 46673 var locale = { 46674 code: 'hy', 46675 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 46676 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 46677 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 46678 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 46679 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 46680 options: { 46681 weekStartsOn: 1 46682 /* Monday */ 46683 , 46684 firstWeekContainsDate: 1 46685 } 46686 }; 46687 /* harmony default export */ 46688 __webpack_exports__["a"] = (locale); 46689 46690 /***/ 46691 }), 46692 /* 622 */ 46693 /***/ (function (module, __webpack_exports__, __webpack_require__) { 46694 46695 "use strict"; 46696 /* harmony export (immutable) */ 46697 __webpack_exports__["a"] = formatDistance; 46698 var formatDistanceLocale = { 46699 lessThanXSeconds: { 46700 one: 'Õ¡Õ¾Õ¥Õ¬Õ« ÖÕ«Õ¹ ÖÕ¡Õ¶ 1 Õ¾Õ¡ÕµÖÕ¯ÕµÕ¡Õ¶', 46701 other: 'Õ¡Õ¾Õ¥Õ¬Õ« ÖÕ«Õ¹ ÖÕ¡Õ¶ {{count}} Õ¾Õ¡ÕµÖÕ¯ÕµÕ¡Õ¶' 46702 }, 46703 xSeconds: { 46704 one: '1 Õ¾Õ¡ÕµÖÕ¯ÕµÕ¡Õ¶', 46705 other: '{{count}} Õ¾Õ¡ÕµÖÕ¯ÕµÕ¡Õ¶' 46706 }, 46707 halfAMinute: 'Õ¯Õ¥Õ½ ÖÕ¸ÕºÕ¥', 46708 lessThanXMinutes: { 46709 one: 'Õ¡Õ¾Õ¥Õ¬Õ« ÖÕ«Õ¹ ÖÕ¡Õ¶ 1 ÖÕ¸ÕºÕ¥', 46710 other: 'Õ¡Õ¾Õ¥Õ¬Õ« ÖÕ«Õ¹ ÖÕ¡Õ¶ {{count}} ÖÕ¸ÕºÕ¥' 46711 }, 46712 xMinutes: { 46713 one: '1 ÖÕ¸ÕºÕ¥', 46714 other: '{{count}} ÖÕ¸ÕºÕ¥' 46715 }, 46716 aboutXHours: { 46717 one: 'Õ´Õ¸Õ¿ 1 ÕªÕ¡Õ´', 46718 other: 'Õ´Õ¸Õ¿ {{count}} ÕªÕ¡Õ´' 46719 }, 46720 xHours: { 46721 one: '1 ÕªÕ¡Õ´', 46722 other: '{{count}} ÕªÕ¡Õ´' 46723 }, 46724 xDays: { 46725 one: '1 Ö Ö', 46726 other: '{{count}} Ö Ö' 46727 }, 46728 aboutXWeeks: { 46729 one: 'Õ´Õ¸Õ¿ 1 Õ·Õ¡Õ¢Õ¡Õ©', 46730 other: 'Õ´Õ¸Õ¿ {{count}} Õ·Õ¡Õ¢Õ¡Õ©' 46731 }, 46732 xWeeks: { 46733 one: '1 Õ·Õ¡Õ¢Õ¡Õ©', 46734 other: '{{count}} Õ·Õ¡Õ¢Õ¡Õ©' 46735 }, 46736 aboutXMonths: { 46737 one: 'Õ´Õ¸Õ¿ 1 Õ¡Õ´Õ«Õ½', 46738 other: 'Õ´Õ¸Õ¿ {{count}} Õ¡Õ´Õ«Õ½' 46739 }, 46740 xMonths: { 46741 one: '1 Õ¡Õ´Õ«Õ½', 46742 other: '{{count}} Õ¡Õ´Õ«Õ½' 46743 }, 46744 aboutXYears: { 46745 one: 'Õ´Õ¸Õ¿ 1 Õ¿Õ¡ÖÕ«', 46746 other: 'Õ´Õ¸Õ¿ {{count}} Õ¿Õ¡ÖÕ«' 46747 }, 46748 xYears: { 46749 one: '1 Õ¿Õ¡ÖÕ«', 46750 other: '{{count}} Õ¿Õ¡ÖÕ«' 46751 }, 46752 overXYears: { 46753 one: 'Õ¡Õ¾Õ¥Õ¬Õ« ÖÕ¡Õ¶ 1 Õ¿Õ¡ÖÕ«', 46754 other: 'Õ¡Õ¾Õ¥Õ¬Õ« ÖÕ¡Õ¶ {{count}} Õ¿Õ¡ÖÕ«' 46755 }, 46756 almostXYears: { 46757 one: 'Õ°Õ¡Õ´Õ¡ÖÕµÕ¡ 1 Õ¿Õ¡ÖÕ«', 46758 other: 'Õ°Õ¡Õ´Õ¡ÖÕµÕ¡ {{count}} Õ¿Õ¡ÖÕ«' 46759 } 46760 }; 46761 46762 function formatDistance(token, count, options) { 46763 options = options || {}; 46764 var result; 46765 46766 if (typeof formatDistanceLocale[token] === 'string') { 46767 result = formatDistanceLocale[token]; 46768 } else if (count === 1) { 46769 result = formatDistanceLocale[token].one; 46770 } else { 46771 result = formatDistanceLocale[token].other.replace('{{count}}', count); 46772 } 46773 46774 if (options.addSuffix) { 46775 if (options.comparison > 0) { 46776 return result + ' Õ°Õ¥Õ¿Õ¸'; 46777 } else { 46778 return result + ' Õ¡Õ¼Õ¡Õ»'; 46779 } 46780 } 46781 46782 return result; 46783 } 46784 46785 /***/ 46786 }), 46787 /* 623 */ 46788 /***/ (function (module, __webpack_exports__, __webpack_require__) { 46789 46790 "use strict"; 46791 /* harmony import */ 46792 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 46793 46794 var dateFormats = { 46795 full: 'd MMMM, y, EEEE', 46796 long: 'd MMMM, y', 46797 medium: 'd MMM, y', 46798 short: 'dd.MM.yyyy' 46799 }; 46800 var timeFormats = { 46801 full: 'HH:mm:ss zzzz', 46802 long: 'HH:mm:ss z', 46803 medium: 'HH:mm:ss', 46804 short: 'HH:mm' 46805 }; 46806 var dateTimeFormats = { 46807 full: "{{date}} 'Õªâ¤'{{time}}", 46808 long: "{{date}} 'Õªâ¤'{{time}}", 46809 medium: '{{date}}, {{time}}', 46810 short: '{{date}}, {{time}}' 46811 }; 46812 var formatLong = { 46813 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 46814 formats: dateFormats, 46815 defaultWidth: 'full' 46816 }), 46817 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 46818 formats: timeFormats, 46819 defaultWidth: 'full' 46820 }), 46821 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 46822 formats: dateTimeFormats, 46823 defaultWidth: 'full' 46824 }) 46825 }; 46826 /* harmony default export */ 46827 __webpack_exports__["a"] = (formatLong); 46828 46829 /***/ 46830 }), 46831 /* 624 */ 46832 /***/ (function (module, __webpack_exports__, __webpack_require__) { 46833 46834 "use strict"; 46835 /* harmony export (immutable) */ 46836 __webpack_exports__["a"] = formatRelative; 46837 var formatRelativeLocale = { 46838 lastWeek: "'Õ¶Õ¡ÕÕ¸ÖÕ¤' eeee p'ÖÕ«Õ¶'", 46839 yesterday: "'Õ¥ÖÕ¥Õ¯' p'ÖÕ«Õ¶'", 46840 today: "'Õ¡ÕµÕ½Ö Ö' p'ÖÕ«Õ¶'", 46841 tomorrow: "'Õ¾Õ¡Õ²Õ¨' p'ÖÕ«Õ¶'", 46842 nextWeek: "'Õ°Õ¡Õ»Õ¸ÖÕ¤' eeee p'ÖÕ«Õ¶'", 46843 other: 'P' 46844 }; 46845 46846 function formatRelative(token, _date, _baseDate, _options) { 46847 return formatRelativeLocale[token]; 46848 } 46849 46850 /***/ 46851 }), 46852 /* 625 */ 46853 /***/ (function (module, __webpack_exports__, __webpack_require__) { 46854 46855 "use strict"; 46856 /* harmony import */ 46857 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 46858 46859 var eraValues = { 46860 narrow: ['Õ', 'Õ'], 46861 abbreviated: ['ÕÔ±', 'ÕÔ¹'], 46862 wide: ['ÕÖÕ«Õ½Õ¿Õ¸Õ½Õ«Ö Õ¡Õ¼Õ¡Õ»', 'ÕÕ¥Ö Õ©Õ¾Õ¡ÖÕ¯Õ¸ÖÕ©ÕµÕ¡Õ¶'] 46863 }; 46864 var quarterValues = { 46865 narrow: ['1', '2', '3', '4'], 46866 abbreviated: ['Õ1', 'Õ2', 'Õ3', 'Õ4'], 46867 wide: ['1ÖÕ«Õ¶ ÖÕ¡Õ¼Õ¸ÖÕ¤', '2ÖÖÕ¤ ÖÕ¡Õ¼Õ¸ÖÕ¤', '3ÖÖÕ¤ ÖÕ¡Õ¼Õ¸ÖÕ¤', '4ÖÖÕ¤ ÖÕ¡Õ¼Õ¸ÖÕ¤'] 46868 }; 46869 var monthValues = { 46870 narrow: ['Õ', 'Õ', 'Õ', 'Ô±', 'Õ', 'Õ', 'Õ', 'Õ', 'Õ', 'Õ', 'Õ', 'Ô´'], 46871 abbreviated: ['Õ°Õ¸ÖÕ¶', 'ÖÕ¥Õ¿', 'Õ´Õ¡Ö', 'Õ¡ÕºÖ', 'Õ´Õ¡Õµ', 'Õ°Õ¸ÖÕ¶', 'Õ°Õ¸ÖÕ¬', 'Ö Õ£Õ½', 'Õ½Õ¥Õº', 'Õ°Õ¸Õ¯', 'Õ¶Õ¸Õµ', 'Õ¤Õ¥Õ¯'], 46872 wide: ['Õ°Õ¸ÖÕ¶Õ¾Õ¡Ö', 'ÖÕ¥Õ¿ÖÕ¾Õ¡Ö', 'Õ´Õ¡ÖÕ¿', 'Õ¡ÕºÖÕ«Õ¬', 'Õ´Õ¡ÕµÕ«Õ½', 'Õ°Õ¸ÖÕ¶Õ«Õ½', 'Õ°Õ¸ÖÕ¬Õ«Õ½', 'Ö Õ£Õ¸Õ½Õ¿Õ¸Õ½', 'Õ½Õ¥ÕºÕ¿Õ¥Õ´Õ¢Õ¥Ö', 'Õ°Õ¸Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö', 'Õ¶Õ¸ÕµÕ¥Õ´Õ¢Õ¥Ö', 'Õ¤Õ¥Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö'] 46873 }; 46874 var dayValues = { 46875 narrow: ['Ô¿', 'Ôµ', 'Ôµ', 'Õ', 'Õ', 'Õ', 'Õ'], 46876 short: ['Õ¯Ö', 'Õ¥Ö', 'Õ¥Ö', 'Õ¹Ö', 'Õ°Õ£', 'Õ¸ÖÖ', 'Õ·Õ¢'], 46877 abbreviated: ['Õ¯Õ«Ö', 'Õ¥ÖÕ¯', 'Õ¥ÖÖ', 'Õ¹Õ¸Ö', 'Õ°Õ¶Õ£', 'Õ¸ÖÖÕ¢', 'Õ·Õ¡Õ¢'], 46878 wide: ['Õ¯Õ«ÖÕ¡Õ¯Õ«', 'Õ¥ÖÕ¯Õ¸ÖÕ·Õ¡Õ¢Õ©Õ«', 'Õ¥ÖÕ¥ÖÕ·Õ¡Õ¢Õ©Õ«', 'Õ¹Õ¸ÖÕ¥ÖÕ·Õ¡Õ¢Õ©Õ«', 'Õ°Õ«Õ¶Õ£Õ·Õ¡Õ¢Õ©Õ«', 'Õ¸ÖÖÕ¢Õ¡Õ©', 'Õ·Õ¡Õ¢Õ¡Õ©'] 46879 }; 46880 var dayPeriodValues = { 46881 narrow: { 46882 am: 'a', 46883 pm: 'p', 46884 midnight: 'Õ¯Õ¥Õ½Õ£Õ·', 46885 noon: 'Õ¯Õ¥Õ½Ö Ö', 46886 morning: 'Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿', 46887 afternoon: 'ÖÕ¥ÖÕ¥Õ¯', 46888 evening: 'Õ¥ÖÕ¥Õ¯Õ¸', 46889 night: 'Õ£Õ«Õ·Õ¥Ö' 46890 }, 46891 abbreviated: { 46892 am: 'AM', 46893 pm: 'PM', 46894 midnight: 'Õ¯Õ¥Õ½Õ£Õ«Õ·Õ¥Ö', 46895 noon: 'Õ¯Õ¥Õ½Ö Ö', 46896 morning: 'Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿', 46897 afternoon: 'ÖÕ¥ÖÕ¥Õ¯', 46898 evening: 'Õ¥ÖÕ¥Õ¯Õ¸', 46899 night: 'Õ£Õ«Õ·Õ¥Ö' 46900 }, 46901 wide: { 46902 am: 'a.m.', 46903 pm: 'p.m.', 46904 midnight: 'Õ¯Õ¥Õ½Õ£Õ«Õ·Õ¥Ö', 46905 noon: 'Õ¯Õ¥Õ½Ö Ö', 46906 morning: 'Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿', 46907 afternoon: 'ÖÕ¥ÖÕ¥Õ¯', 46908 evening: 'Õ¥ÖÕ¥Õ¯Õ¸', 46909 night: 'Õ£Õ«Õ·Õ¥Ö' 46910 } 46911 }; 46912 var formattingDayPeriodValues = { 46913 narrow: { 46914 am: 'a', 46915 pm: 'p', 46916 midnight: 'Õ¯Õ¥Õ½Õ£Õ·', 46917 noon: 'Õ¯Õ¥Õ½Ö Ö', 46918 morning: 'Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¨', 46919 afternoon: 'ÖÕ¥ÖÕ¥Õ¯Õ¨', 46920 evening: 'Õ¥ÖÕ¥Õ¯Õ¸ÕµÕ¡Õ¶', 46921 night: 'Õ£Õ«Õ·Õ¥ÖÕ¨' 46922 }, 46923 abbreviated: { 46924 am: 'AM', 46925 pm: 'PM', 46926 midnight: 'Õ¯Õ¥Õ½Õ£Õ«Õ·Õ¥ÖÕ«Õ¶', 46927 noon: 'Õ¯Õ¥Õ½Ö ÖÕ«Õ¶', 46928 morning: 'Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¨', 46929 afternoon: 'ÖÕ¥ÖÕ¥Õ¯Õ¨', 46930 evening: 'Õ¥ÖÕ¥Õ¯Õ¸ÕµÕ¡Õ¶', 46931 night: 'Õ£Õ«Õ·Õ¥ÖÕ¨' 46932 }, 46933 wide: { 46934 am: 'a.m.', 46935 pm: 'p.m.', 46936 midnight: 'Õ¯Õ¥Õ½Õ£Õ«Õ·Õ¥ÖÕ«Õ¶', 46937 noon: 'Õ¯Õ¥Õ½Ö ÖÕ«Õ¶', 46938 morning: 'Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¨', 46939 afternoon: 'ÖÕ¥ÖÕ¥Õ¯Õ¨', 46940 evening: 'Õ¥ÖÕ¥Õ¯Õ¸ÕµÕ¡Õ¶', 46941 night: 'Õ£Õ«Õ·Õ¥ÖÕ¨' 46942 } 46943 }; 46944 46945 function ordinalNumber(dirtyNumber, _dirtyOptions) { 46946 var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, 46947 // if they are different for different grammatical genders, 46948 // use `options.unit`: 46949 // 46950 // var options = dirtyOptions || {} 46951 // var unit = String(options.unit) 46952 // 46953 // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', 46954 // 'day', 'hour', 'minute', 'second' 46955 46956 var rem100 = number % 100; 46957 46958 if (rem100 < 10) { 46959 if (rem100 % 10 === 1) { 46960 return number + 'ÖÕ«Õ¶'; 46961 } 46962 } 46963 46964 return number + 'ÖÖÕ¤'; 46965 } 46966 46967 var localize = { 46968 ordinalNumber: ordinalNumber, 46969 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 46970 values: eraValues, 46971 defaultWidth: 'wide' 46972 }), 46973 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 46974 values: quarterValues, 46975 defaultWidth: 'wide', 46976 argumentCallback: function (quarter) { 46977 return Number(quarter) - 1; 46978 } 46979 }), 46980 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 46981 values: monthValues, 46982 defaultWidth: 'wide' 46983 }), 46984 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 46985 values: dayValues, 46986 defaultWidth: 'wide' 46987 }), 46988 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 46989 values: dayPeriodValues, 46990 defaultWidth: 'wide', 46991 formattingValues: formattingDayPeriodValues, 46992 defaultFormattingWidth: 'wide' 46993 }) 46994 }; 46995 /* harmony default export */ 46996 __webpack_exports__["a"] = (localize); 46997 46998 /***/ 46999 }), 47000 /* 626 */ 47001 /***/ (function (module, __webpack_exports__, __webpack_require__) { 47002 47003 "use strict"; 47004 /* harmony import */ 47005 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 47006 /* harmony import */ 47007 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 47008 47009 47010 var matchOrdinalNumberPattern = /^(\d+)((-|Ö)?(Õ«Õ¶|ÖÕ¤))?/i; 47011 var parseOrdinalNumberPattern = /\d+/i; 47012 var matchEraPatterns = { 47013 narrow: /^(Õ|Õ)/i, 47014 abbreviated: /^(Õ\.?\s?Ô±\.?|Õ\.?\s?Ô¹\.?\s?Ô±\.?|Õ\.?\s?Ô¹\.?|Õ\.?\s?Õ\.?)/i, 47015 wide: /^(ÖÖÕ«Õ½Õ¿Õ¸Õ½Õ«Ö Õ¡Õ¼Õ¡Õ»|Õ´Õ¥Ö Õ©Õ¾Õ¡ÖÕ¯Õ¸ÖÕ©ÕµÕ¸ÖÕ¶Õ«Ö Õ¡Õ¼Õ¡Õ»|Õ´Õ¥Ö Õ©Õ¾Õ¡ÖÕ¯Õ¸ÖÕ©ÕµÕ¡Õ¶|ÖÖÕ«Õ½Õ¿Õ¸Õ½Õ«Ö Õ°Õ¥Õ¿Õ¸)/i 47016 }; 47017 var parseEraPatterns = { 47018 any: [/^(Ö|Õ´)/i] 47019 }; 47020 var matchQuarterPatterns = { 47021 narrow: /^[1234]/i, 47022 abbreviated: /^Ö[1234]/i, 47023 wide: /^[1234]((-|Ö)?(Õ«Õ¶|ÖÕ¤)) ÖÕ¡Õ¼Õ¸ÖÕ¤/i 47024 }; 47025 var parseQuarterPatterns = { 47026 any: [/1/i, /2/i, /3/i, /4/i] 47027 }; 47028 var matchMonthPatterns = { 47029 narrow: /^[Õ°ÖÕ´Õ¡Ö Õ½Õ¶Õ¤]/i, 47030 abbreviated: /^(Õ°Õ¸ÖÕ¶|ÖÕ¥Õ¿|Õ´Õ¡Ö|Õ¡ÕºÖ|Õ´Õ¡Õµ|Õ°Õ¸ÖÕ¶|Õ°Õ¸ÖÕ¬|Ö Õ£Õ½|Õ½Õ¥Õº|Õ°Õ¸Õ¯|Õ¶Õ¸Õµ|Õ¤Õ¥Õ¯)/i, 47031 wide: /^(Õ°Õ¸ÖÕ¶Õ¾Õ¡Ö|ÖÕ¥Õ¿ÖÕ¾Õ¡Ö|Õ´Õ¡ÖÕ¿|Õ¡ÕºÖÕ«Õ¬|Õ´Õ¡ÕµÕ«Õ½|Õ°Õ¸ÖÕ¶Õ«Õ½|Õ°Õ¸ÖÕ¬Õ«Õ½|Ö Õ£Õ¸Õ½Õ¿Õ¸Õ½|Õ½Õ¥ÕºÕ¿Õ¥Õ´Õ¢Õ¥Ö|Õ°Õ¸Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö|Õ¶Õ¸ÕµÕ¥Õ´Õ¢Õ¥Ö|Õ¤Õ¥Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö)/i 47032 }; 47033 var parseMonthPatterns = { 47034 narrow: [/^Õ°/i, /^Ö/i, /^Õ´/i, /^Õ¡/i, /^Õ´/i, /^Õ°/i, /^Õ°/i, /^Ö /i, /^Õ½/i, /^Õ°/i, /^Õ¶/i, /^Õ¤/i], 47035 any: [/^Õ°Õ¸Ö/i, /^Ö/i, /^Õ´Õ¡Ö/i, /^Õ¡/i, /^Õ´Õ¡Õµ/i, /^Õ°Õ¸ÖÕ¶/i, /^Õ°Õ¸ÖÕ¬/i, /^Ö /i, /^Õ½/i, /^Õ°Õ¸Õ¯/i, /^Õ¶/i, /^Õ¤/i] 47036 }; 47037 var matchDayPatterns = { 47038 narrow: /^[Õ¥Õ¹Õ°Õ¸Õ·Õ¯]/i, 47039 short: /^(Õ¯Ö|Õ¥Ö|Õ¥Ö|Õ¹Ö|Õ°Õ£|Õ¸ÖÖ|Õ·Õ¢)/i, 47040 abbreviated: /^(Õ¯Õ«Ö|Õ¥ÖÕ¯|Õ¥ÖÖ|Õ¹Õ¸Ö|Õ°Õ¶Õ£|Õ¸ÖÖÕ¢|Õ·Õ¡Õ¢)/i, 47041 wide: /^(Õ¯Õ«ÖÕ¡Õ¯Õ«|Õ¥ÖÕ¯Õ¸ÖÕ·Õ¡Õ¢Õ©Õ«|Õ¥ÖÕ¥ÖÕ·Õ¡Õ¢Õ©Õ«|Õ¹Õ¸ÖÕ¥ÖÕ·Õ¡Õ¢Õ©Õ«|Õ°Õ«Õ¶Õ£Õ·Õ¡Õ¢Õ©Õ«|Õ¸ÖÖÕ¢Õ¡Õ©|Õ·Õ¡Õ¢Õ¡Õ©)/i 47042 }; 47043 var parseDayPatterns = { 47044 narrow: [/^Õ¯/i, /^Õ¥/i, /^Õ¥/i, /^Õ¹/i, /^Õ°/i, /^(Õ¸|Õ)/, /^Õ·/i], 47045 short: [/^Õ¯/i, /^Õ¥Ö/i, /^Õ¥Ö/i, /^Õ¹/i, /^Õ°/i, /^(Õ¸|Õ)/, /^Õ·/i], 47046 abbreviated: [/^Õ¯/i, /^Õ¥ÖÕ¯/i, /^Õ¥ÖÖ/i, /^Õ¹/i, /^Õ°/i, /^(Õ¸|Õ)/, /^Õ·/i], 47047 wide: [/^Õ¯/i, /^Õ¥ÖÕ¯/i, /^Õ¥ÖÕ¥/i, /^Õ¹/i, /^Õ°/i, /^(Õ¸|Õ)/, /^Õ·/i] 47048 }; 47049 var matchDayPeriodPatterns = { 47050 narrow: /^([ap]|Õ¯Õ¥Õ½Õ£Õ·|Õ¯Õ¥Õ½Ö Ö|(Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¨?|ÖÕ¥ÖÕ¥Õ¯Õ¨?|Õ¥ÖÕ¥Õ¯Õ¸(ÕµÕ¡Õ¶)?|Õ£Õ«Õ·Õ¥ÖÕ¨?))/i, 47051 any: /^([ap]\.?\s?m\.?|Õ¯Õ¥Õ½Õ£Õ«Õ·Õ¥Ö(Õ«Õ¶)?|Õ¯Õ¥Õ½Ö Ö(Õ«Õ¶)?|(Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¨?|ÖÕ¥ÖÕ¥Õ¯Õ¨?|Õ¥ÖÕ¥Õ¯Õ¸(ÕµÕ¡Õ¶)?|Õ£Õ«Õ·Õ¥ÖÕ¨?))/i 47052 }; 47053 var parseDayPeriodPatterns = { 47054 any: { 47055 am: /^a/i, 47056 pm: /^p/i, 47057 midnight: /Õ¯Õ¥Õ½Õ£Õ«Õ·Õ¥Ö/i, 47058 noon: /Õ¯Õ¥Õ½Ö Ö/i, 47059 morning: /Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿/i, 47060 afternoon: /ÖÕ¥ÖÕ¥Õ¯/i, 47061 evening: /Õ¥ÖÕ¥Õ¯Õ¸/i, 47062 night: /Õ£Õ«Õ·Õ¥Ö/i 47063 } 47064 }; 47065 var match = { 47066 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 47067 matchPattern: matchOrdinalNumberPattern, 47068 parsePattern: parseOrdinalNumberPattern, 47069 valueCallback: function (value) { 47070 return parseInt(value, 10); 47071 } 47072 }), 47073 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 47074 matchPatterns: matchEraPatterns, 47075 defaultMatchWidth: 'wide', 47076 parsePatterns: parseEraPatterns, 47077 defaultParseWidth: 'any' 47078 }), 47079 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 47080 matchPatterns: matchQuarterPatterns, 47081 defaultMatchWidth: 'wide', 47082 parsePatterns: parseQuarterPatterns, 47083 defaultParseWidth: 'any', 47084 valueCallback: function (index) { 47085 return index + 1; 47086 } 47087 }), 47088 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 47089 matchPatterns: matchMonthPatterns, 47090 defaultMatchWidth: 'wide', 47091 parsePatterns: parseMonthPatterns, 47092 defaultParseWidth: 'any' 47093 }), 47094 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 47095 matchPatterns: matchDayPatterns, 47096 defaultMatchWidth: 'wide', 47097 parsePatterns: parseDayPatterns, 47098 defaultParseWidth: 'any' 47099 }), 47100 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 47101 matchPatterns: matchDayPeriodPatterns, 47102 defaultMatchWidth: 'any', 47103 parsePatterns: parseDayPeriodPatterns, 47104 defaultParseWidth: 'any' 47105 }) 47106 }; 47107 /* harmony default export */ 47108 __webpack_exports__["a"] = (match); 47109 47110 /***/ 47111 }), 47112 /* 627 */ 47113 /***/ (function (module, __webpack_exports__, __webpack_require__) { 47114 47115 "use strict"; 47116 /* harmony import */ 47117 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(628); 47118 /* harmony import */ 47119 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(629); 47120 /* harmony import */ 47121 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(630); 47122 /* harmony import */ 47123 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(631); 47124 /* harmony import */ 47125 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(632); 47126 47127 47128 /** 47129 * @type {Locale} 47130 * @category Locales 47131 * @summary Indonesian locale. 47132 * @language Indonesian 47133 * @iso-639-2 ind 47134 * @author Rahmat Budiharso [@rbudiharso]{@link https://github.com/rbudiharso} 47135 * @author Benget Nata [@bentinata]{@link https://github.com/bentinata} 47136 * @author Budi Irawan [@deerawan]{@link https://github.com/deerawan} 47137 * @author Try Ajitiono [@imballinst]{@link https://github.com/imballinst} 47138 */ 47139 47140 var locale = { 47141 code: 'id', 47142 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 47143 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 47144 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 47145 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 47146 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 47147 options: { 47148 weekStartsOn: 1 47149 /* Monday */ 47150 , 47151 firstWeekContainsDate: 1 47152 } 47153 }; 47154 /* harmony default export */ 47155 __webpack_exports__["a"] = (locale); 47156 47157 /***/ 47158 }), 47159 /* 628 */ 47160 /***/ (function (module, __webpack_exports__, __webpack_require__) { 47161 47162 "use strict"; 47163 /* harmony export (immutable) */ 47164 __webpack_exports__["a"] = formatDistance; 47165 var formatDistanceLocale = { 47166 lessThanXSeconds: { 47167 one: 'kurang dari 1 detik', 47168 other: 'kurang dari {{count}} detik' 47169 }, 47170 xSeconds: { 47171 one: '1 detik', 47172 other: '{{count}} detik' 47173 }, 47174 halfAMinute: 'setengah menit', 47175 lessThanXMinutes: { 47176 one: 'kurang dari 1 menit', 47177 other: 'kurang dari {{count}} menit' 47178 }, 47179 xMinutes: { 47180 one: '1 menit', 47181 other: '{{count}} menit' 47182 }, 47183 aboutXHours: { 47184 one: 'sekitar 1 jam', 47185 other: 'sekitar {{count}} jam' 47186 }, 47187 xHours: { 47188 one: '1 jam', 47189 other: '{{count}} jam' 47190 }, 47191 xDays: { 47192 one: '1 hari', 47193 other: '{{count}} hari' 47194 }, 47195 aboutXWeeks: { 47196 one: 'sekitar 1 minggu', 47197 other: 'sekitar {{count}} minggu' 47198 }, 47199 xWeeks: { 47200 one: '1 minggu', 47201 other: '{{count}} minggu' 47202 }, 47203 aboutXMonths: { 47204 one: 'sekitar 1 bulan', 47205 other: 'sekitar {{count}} bulan' 47206 }, 47207 xMonths: { 47208 one: '1 bulan', 47209 other: '{{count}} bulan' 47210 }, 47211 aboutXYears: { 47212 one: 'sekitar 1 tahun', 47213 other: 'sekitar {{count}} tahun' 47214 }, 47215 xYears: { 47216 one: '1 tahun', 47217 other: '{{count}} tahun' 47218 }, 47219 overXYears: { 47220 one: 'lebih dari 1 tahun', 47221 other: 'lebih dari {{count}} tahun' 47222 }, 47223 almostXYears: { 47224 one: 'hampir 1 tahun', 47225 other: 'hampir {{count}} tahun' 47226 } 47227 }; 47228 47229 function formatDistance(token, count, options) { 47230 options = options || {}; 47231 var result; 47232 47233 if (typeof formatDistanceLocale[token] === 'string') { 47234 result = formatDistanceLocale[token]; 47235 } else if (count === 1) { 47236 result = formatDistanceLocale[token].one; 47237 } else { 47238 result = formatDistanceLocale[token].other.replace('{{count}}', count); 47239 } 47240 47241 if (options.addSuffix) { 47242 if (options.comparison > 0) { 47243 return 'dalam waktu ' + result; 47244 } else { 47245 return result + ' yang lalu'; 47246 } 47247 } 47248 47249 return result; 47250 } 47251 47252 /***/ 47253 }), 47254 /* 629 */ 47255 /***/ (function (module, __webpack_exports__, __webpack_require__) { 47256 47257 "use strict"; 47258 /* harmony import */ 47259 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 47260 47261 var dateFormats = { 47262 full: 'EEEE, d MMMM yyyy', 47263 long: 'd MMMM yyyy', 47264 medium: 'd MMM yyyy', 47265 short: 'd/M/yyyy' 47266 }; 47267 var timeFormats = { 47268 full: 'HH.mm.ss', 47269 long: 'HH.mm.ss', 47270 medium: 'HH.mm', 47271 short: 'HH.mm' 47272 }; 47273 var dateTimeFormats = { 47274 full: "{{date}} 'pukul' {{time}}", 47275 long: "{{date}} 'pukul' {{time}}", 47276 medium: '{{date}}, {{time}}', 47277 short: '{{date}}, {{time}}' 47278 }; 47279 var formatLong = { 47280 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 47281 formats: dateFormats, 47282 defaultWidth: 'full' 47283 }), 47284 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 47285 formats: timeFormats, 47286 defaultWidth: 'full' 47287 }), 47288 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 47289 formats: dateTimeFormats, 47290 defaultWidth: 'full' 47291 }) 47292 }; 47293 /* harmony default export */ 47294 __webpack_exports__["a"] = (formatLong); 47295 47296 /***/ 47297 }), 47298 /* 630 */ 47299 /***/ (function (module, __webpack_exports__, __webpack_require__) { 47300 47301 "use strict"; 47302 /* harmony export (immutable) */ 47303 __webpack_exports__["a"] = formatRelative; 47304 var formatRelativeLocale = { 47305 lastWeek: "eeee 'lalu pukul' p", 47306 yesterday: "'Kemarin pukul' p", 47307 today: "'Hari ini pukul' p", 47308 tomorrow: "'Besok pukul' p", 47309 nextWeek: "eeee 'pukul' p", 47310 other: 'P' 47311 }; 47312 47313 function formatRelative(token, _date, _baseDate, _options) { 47314 return formatRelativeLocale[token]; 47315 } 47316 47317 /***/ 47318 }), 47319 /* 631 */ 47320 /***/ (function (module, __webpack_exports__, __webpack_require__) { 47321 47322 "use strict"; 47323 /* harmony import */ 47324 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 47325 // All data for localization are taken from this page 47326// https://www.unicode.org/cldr/charts/32/summary/id.html 47327 47328 var eraValues = { 47329 narrow: ['SM', 'M'], 47330 abbreviated: ['SM', 'M'], 47331 wide: ['Sebelum Masehi', 'Masehi'] 47332 }; 47333 var quarterValues = { 47334 narrow: ['1', '2', '3', '4'], 47335 abbreviated: ['K1', 'K2', 'K3', 'K4'], 47336 wide: ['Kuartal ke-1', 'Kuartal ke-2', 'Kuartal ke-3', 'Kuartal ke-4'] // Note: in Indonesian, the names of days of the week and months are capitalized. 47337 // If you are making a new locale based on this one, check if the same is true for the language you're working on. 47338 // Generally, formatted dates should look like they are in the middle of a sentence, 47339 // e.g. in Spanish language the weekdays and months should be in the lowercase. 47340 47341 }; 47342 var monthValues = { 47343 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], 47344 abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Ags', 'Sep', 'Okt', 'Nov', 'Des'], 47345 wide: ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember'] 47346 }; 47347 var dayValues = { 47348 narrow: ['M', 'S', 'S', 'R', 'K', 'J', 'S'], 47349 short: ['Min', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'], 47350 abbreviated: ['Min', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'], 47351 wide: ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu'] 47352 }; 47353 var dayPeriodValues = { 47354 narrow: { 47355 am: 'AM', 47356 pm: 'PM', 47357 midnight: 'tengah malam', 47358 noon: 'tengah hari', 47359 morning: 'pagi', 47360 afternoon: 'siang', 47361 evening: 'sore', 47362 night: 'malam' 47363 }, 47364 abbreviated: { 47365 am: 'AM', 47366 pm: 'PM', 47367 midnight: 'tengah malam', 47368 noon: 'tengah hari', 47369 morning: 'pagi', 47370 afternoon: 'siang', 47371 evening: 'sore', 47372 night: 'malam' 47373 }, 47374 wide: { 47375 am: 'AM', 47376 pm: 'PM', 47377 midnight: 'tengah malam', 47378 noon: 'tengah hari', 47379 morning: 'pagi', 47380 afternoon: 'siang', 47381 evening: 'sore', 47382 night: 'malam' 47383 } 47384 }; 47385 var formattingDayPeriodValues = { 47386 narrow: { 47387 am: 'AM', 47388 pm: 'PM', 47389 midnight: 'tengah malam', 47390 noon: 'tengah hari', 47391 morning: 'pagi', 47392 afternoon: 'siang', 47393 evening: 'sore', 47394 night: 'malam' 47395 }, 47396 abbreviated: { 47397 am: 'AM', 47398 pm: 'PM', 47399 midnight: 'tengah malam', 47400 noon: 'tengah hari', 47401 morning: 'pagi', 47402 afternoon: 'siang', 47403 evening: 'sore', 47404 night: 'malam' 47405 }, 47406 wide: { 47407 am: 'AM', 47408 pm: 'PM', 47409 midnight: 'tengah malam', 47410 noon: 'tengah hari', 47411 morning: 'pagi', 47412 afternoon: 'siang', 47413 evening: 'sore', 47414 night: 'malam' 47415 } 47416 }; 47417 47418 function ordinalNumber(dirtyNumber, _dirtyOptions) { 47419 var number = Number(dirtyNumber); // Can't use "pertama", "kedua" because can't be parsed 47420 47421 switch (number) { 47422 default: 47423 return 'ke-' + number; 47424 } 47425 } 47426 47427 var localize = { 47428 ordinalNumber: ordinalNumber, 47429 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 47430 values: eraValues, 47431 defaultWidth: 'wide' 47432 }), 47433 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 47434 values: quarterValues, 47435 defaultWidth: 'wide', 47436 argumentCallback: function (quarter) { 47437 return Number(quarter) - 1; 47438 } 47439 }), 47440 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 47441 values: monthValues, 47442 defaultWidth: 'wide' 47443 }), 47444 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 47445 values: dayValues, 47446 defaultWidth: 'wide' 47447 }), 47448 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 47449 values: dayPeriodValues, 47450 defaultWidth: 'wide', 47451 formattingValues: formattingDayPeriodValues, 47452 defaultFormattingWidth: 'wide' 47453 }) 47454 }; 47455 /* harmony default export */ 47456 __webpack_exports__["a"] = (localize); 47457 47458 /***/ 47459 }), 47460 /* 632 */ 47461 /***/ (function (module, __webpack_exports__, __webpack_require__) { 47462 47463 "use strict"; 47464 /* harmony import */ 47465 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__ = __webpack_require__(5); 47466 /* harmony import */ 47467 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 47468 47469 47470 var matchOrdinalNumberPattern = /^ke-(\d+)?/i; 47471 var parseOrdinalNumberPattern = /\d+/i; 47472 var matchEraPatterns = { 47473 narrow: /^(sm|m)/i, 47474 abbreviated: /^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i, 47475 wide: /^(sebelum masehi|sebelum era umum|masehi|era umum)/i 47476 }; 47477 var parseEraPatterns = { 47478 any: [/^s/i, /^(m|e)/i] 47479 }; 47480 var matchQuarterPatterns = { 47481 narrow: /^[1234]/i, 47482 abbreviated: /^K-?\s[1234]/i, 47483 wide: /^Kuartal ke-?\s?[1234]/i 47484 }; 47485 var parseQuarterPatterns = { 47486 any: [/1/i, /2/i, /3/i, /4/i] 47487 }; 47488 var matchMonthPatterns = { 47489 narrow: /^[jfmasond]/i, 47490 abbreviated: /^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i, 47491 wide: /^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i 47492 }; 47493 var parseMonthPatterns = { 47494 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 47495 any: [/^ja/i, /^f/i, /^ma/i, /^ap/i, /^me/i, /^jun/i, /^jul/i, /^ag/i, /^s/i, /^o/i, /^n/i, /^d/i] 47496 }; 47497 var matchDayPatterns = { 47498 narrow: /^[srkjm]/i, 47499 short: /^(min|sen|sel|rab|kam|jum|sab)/i, 47500 abbreviated: /^(min|sen|sel|rab|kam|jum|sab)/i, 47501 wide: /^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i 47502 }; 47503 var parseDayPatterns = { 47504 narrow: [/^m/i, /^s/i, /^s/i, /^r/i, /^k/i, /^j/i, /^s/i], 47505 any: [/^m/i, /^sen/i, /^sel/i, /^r/i, /^k/i, /^j/i, /^sa/i] 47506 }; 47507 var matchDayPeriodPatterns = { 47508 narrow: /^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i, 47509 any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i 47510 }; 47511 var parseDayPeriodPatterns = { 47512 any: { 47513 am: /^a/i, 47514 pm: /^pm/i, 47515 midnight: /^tengah m/i, 47516 noon: /^tengah h/i, 47517 morning: /pagi/i, 47518 afternoon: /siang/i, 47519 evening: /sore/i, 47520 night: /malam/i 47521 } 47522 }; 47523 var match = { 47524 ordinalNumber: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 47525 matchPattern: matchOrdinalNumberPattern, 47526 parsePattern: parseOrdinalNumberPattern, 47527 valueCallback: function (value) { 47528 return parseInt(value, 10); 47529 } 47530 }), 47531 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 47532 matchPatterns: matchEraPatterns, 47533 defaultMatchWidth: 'wide', 47534 parsePatterns: parseEraPatterns, 47535 defaultParseWidth: 'any' 47536 }), 47537 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 47538 matchPatterns: matchQuarterPatterns, 47539 defaultMatchWidth: 'wide', 47540 parsePatterns: parseQuarterPatterns, 47541 defaultParseWidth: 'any', 47542 valueCallback: function (index) { 47543 return index + 1; 47544 } 47545 }), 47546 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 47547 matchPatterns: matchMonthPatterns, 47548 defaultMatchWidth: 'wide', 47549 parsePatterns: parseMonthPatterns, 47550 defaultParseWidth: 'any' 47551 }), 47552 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 47553 matchPatterns: matchDayPatterns, 47554 defaultMatchWidth: 'wide', 47555 parsePatterns: parseDayPatterns, 47556 defaultParseWidth: 'any' 47557 }), 47558 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 47559 matchPatterns: matchDayPeriodPatterns, 47560 defaultMatchWidth: 'any', 47561 parsePatterns: parseDayPeriodPatterns, 47562 defaultParseWidth: 'any' 47563 }) 47564 }; 47565 /* harmony default export */ 47566 __webpack_exports__["a"] = (match); 47567 47568 /***/ 47569 }), 47570 /* 633 */ 47571 /***/ (function (module, __webpack_exports__, __webpack_require__) { 47572 47573 "use strict"; 47574 /* harmony import */ 47575 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(634); 47576 /* harmony import */ 47577 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(635); 47578 /* harmony import */ 47579 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(636); 47580 /* harmony import */ 47581 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(637); 47582 /* harmony import */ 47583 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(638); 47584 47585 47586 /** 47587 * @type {Locale} 47588 * @category Locales 47589 * @summary Icelandic locale. 47590 * @language Icelandic 47591 * @iso-639-2 isl 47592 * @author Derek Blank [@derekblank]{@link https://github.com/derekblank} 47593 * @author Arnór Ãmir [@lamayg]{@link https://github.com/lamayg} 47594 */ 47595 47596 var locale = { 47597 code: 'is', 47598 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 47599 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 47600 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 47601 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 47602 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 47603 options: { 47604 weekStartsOn: 1 47605 /* Monday */ 47606 , 47607 firstWeekContainsDate: 4 47608 } 47609 }; 47610 /* harmony default export */ 47611 __webpack_exports__["a"] = (locale); 47612 47613 /***/ 47614 }), 47615 /* 634 */ 47616 /***/ (function (module, __webpack_exports__, __webpack_require__) { 47617 47618 "use strict"; 47619 /* harmony export (immutable) */ 47620 __webpack_exports__["a"] = formatDistance; 47621 var formatDistanceLocale = { 47622 lessThanXSeconds: { 47623 one: 'minna en 1 sekúnda', 47624 other: 'minna en {{count}} sekúndur' 47625 }, 47626 xSeconds: { 47627 one: '1 sekúnda', 47628 other: '{{count}} sekúndur' 47629 }, 47630 halfAMinute: 'hálf mÃnúta', 47631 lessThanXMinutes: { 47632 one: 'minna en 1 mÃnúta', 47633 other: 'minna en {{count}} mÃnútur' 47634 }, 47635 xMinutes: { 47636 one: '1 mÃnúta', 47637 other: '{{count}} mÃnútur' 47638 }, 47639 aboutXHours: { 47640 one: 'u.þ.b. 1 klukkustund', 47641 other: 'u.þ.b. {{count}} klukkustundir' 47642 }, 47643 xHours: { 47644 one: '1 klukkustund', 47645 other: '{{count}} klukkustundir' 47646 }, 47647 xDays: { 47648 one: '1 dagur', 47649 other: '{{count}} dagar' 47650 }, 47651 aboutXWeeks: { 47652 one: 'um viku', 47653 other: 'um {{count}} vikur' 47654 }, 47655 xWeeks: { 47656 one: '1 viku', 47657 other: '{{count}} vikur' 47658 }, 47659 aboutXMonths: { 47660 one: 'u.þ.b. 1 mánuður', 47661 other: 'u.þ.b. {{count}} mánuðir' 47662 }, 47663 xMonths: { 47664 one: '1 mánuður', 47665 other: '{{count}} mánuðir' 47666 }, 47667 aboutXYears: { 47668 one: 'u.þ.b. 1 ár', 47669 other: 'u.þ.b. {{count}} ár' 47670 }, 47671 xYears: { 47672 one: '1 ár', 47673 other: '{{count}} ár' 47674 }, 47675 overXYears: { 47676 one: 'meira en 1 ár', 47677 other: 'meira en {{count}} ár' 47678 }, 47679 almostXYears: { 47680 one: 'næstum 1 ár', 47681 other: 'næstum {{count}} ár' 47682 } 47683 }; 47684 47685 function formatDistance(token, count, options) { 47686 options = options || {}; 47687 var result; 47688 47689 if (typeof formatDistanceLocale[token] === 'string') { 47690 result = formatDistanceLocale[token]; 47691 } else if (count === 1) { 47692 result = formatDistanceLocale[token].one; 47693 } else { 47694 result = formatDistanceLocale[token].other.replace('{{count}}', count); 47695 } 47696 47697 if (options.addSuffix) { 47698 if (options.comparison > 0) { 47699 return 'à ' + result; 47700 } else { 47701 return result + ' sÃðan'; 47702 } 47703 } 47704 47705 return result; 47706 } 47707 47708 /***/ 47709 }), 47710 /* 635 */ 47711 /***/ (function (module, __webpack_exports__, __webpack_require__) { 47712 47713 "use strict"; 47714 /* harmony import */ 47715 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 47716 47717 var dateFormats = { 47718 full: 'EEEE, do MMMM y', 47719 long: 'do MMMM y', 47720 medium: 'do MMM y', 47721 short: 'd.MM.y' 47722 }; 47723 var timeFormats = { 47724 full: "'kl'. HH:mm:ss zzzz", 47725 long: 'HH:mm:ss z', 47726 medium: 'HH:mm:ss', 47727 short: 'HH:mm' 47728 }; 47729 var dateTimeFormats = { 47730 full: "{{date}} 'kl.' {{time}}", 47731 long: "{{date}} 'kl.' {{time}}", 47732 medium: '{{date}} {{time}}', 47733 short: '{{date}} {{time}}' 47734 }; 47735 var formatLong = { 47736 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 47737 formats: dateFormats, 47738 defaultWidth: 'full' 47739 }), 47740 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 47741 formats: timeFormats, 47742 defaultWidth: 'full' 47743 }), 47744 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 47745 formats: dateTimeFormats, 47746 defaultWidth: 'full' 47747 }) 47748 }; 47749 /* harmony default export */ 47750 __webpack_exports__["a"] = (formatLong); 47751 47752 /***/ 47753 }), 47754 /* 636 */ 47755 /***/ (function (module, __webpack_exports__, __webpack_require__) { 47756 47757 "use strict"; 47758 /* harmony export (immutable) */ 47759 __webpack_exports__["a"] = formatRelative; 47760 var formatRelativeLocale = { 47761 lastWeek: "'sÃðasta' dddd 'kl.' p", 47762 yesterday: "'à gær kl.' p", 47763 today: "'à dag kl.' p", 47764 tomorrow: "'á morgun kl.' p", 47765 nextWeek: "dddd 'kl.' p", 47766 other: 'L' 47767 }; 47768 47769 function formatRelative(token, _date, _baseDate, _options) { 47770 return formatRelativeLocale[token]; 47771 } 47772 47773 /***/ 47774 }), 47775 /* 637 */ 47776 /***/ (function (module, __webpack_exports__, __webpack_require__) { 47777 47778 "use strict"; 47779 /* harmony import */ 47780 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 47781 47782 var eraValues = { 47783 narrow: ['f.Kr.', 'e.Kr.'], 47784 abbreviated: ['f.Kr.', 'e.Kr.'], 47785 wide: ['fyrir Krist', 'eftir Krist'] 47786 }; 47787 var quarterValues = { 47788 narrow: ['1', '2', '3', '4'], 47789 abbreviated: ['1F', '2F', '3F', '4F'], 47790 wide: ['1. fjórðungur', '2. fjórðungur', '3. fjórðungur', '4. fjórðungur'] 47791 }; 47792 var monthValues = { 47793 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'Ã', 'S', 'Ã', 'N', 'D'], 47794 abbreviated: ['jan.', 'feb.', 'mars', 'aprÃl', 'maÃ', 'júnÃ', 'júlÃ', 'ágúst', 'sept.', 'okt.', 'nóv.', 'des.'], 47795 wide: ['janúar', 'febrúar', 'mars', 'aprÃl', 'maÃ', 'júnÃ', 'júlÃ', 'ágúst', 'september', 'október', 'nóvember', 'desember'] 47796 }; 47797 var dayValues = { 47798 narrow: ['S', 'M', 'Ã', 'M', 'F', 'F', 'L'], 47799 short: ['Su', 'Má', 'Ãr', 'Mi', 'Fi', 'Fö', 'La'], 47800 abbreviated: ['sun.', 'mán.', 'þri.', 'mið.', 'fim.', 'fös.', 'lau'], 47801 wide: ['sunnudagur', 'mánudagur', 'þriðjudagur', 'miðvikudagur', 'fimmtudagur', 'föstudagur', 'laugardagur'] 47802 }; 47803 var dayPeriodValues = { 47804 narrow: { 47805 am: 'f', 47806 pm: 'e', 47807 midnight: 'miðnætti', 47808 noon: 'hádegi', 47809 morning: 'morgunn', 47810 afternoon: 'sÃðdegi', 47811 evening: 'kvöld', 47812 night: 'nótt' 47813 }, 47814 abbreviated: { 47815 am: 'f.h.', 47816 pm: 'e.h.', 47817 midnight: 'miðnætti', 47818 noon: 'hádegi', 47819 morning: 'morgunn', 47820 afternoon: 'sÃðdegi', 47821 evening: 'kvöld', 47822 night: 'nótt' 47823 }, 47824 wide: { 47825 am: 'fyrir hádegi', 47826 pm: 'eftir hádegi', 47827 midnight: 'miðnætti', 47828 noon: 'hádegi', 47829 morning: 'morgunn', 47830 afternoon: 'sÃðdegi', 47831 evening: 'kvöld', 47832 night: 'nótt' 47833 } 47834 }; 47835 var formattingDayPeriodValues = { 47836 narrow: { 47837 am: 'f', 47838 pm: 'e', 47839 midnight: 'á miðnætti', 47840 noon: 'á hádegi', 47841 morning: 'að morgni', 47842 afternoon: 'sÃðdegis', 47843 evening: 'um kvöld', 47844 night: 'um nótt' 47845 }, 47846 abbreviated: { 47847 am: 'f.h.', 47848 pm: 'e.h.', 47849 midnight: 'á miðnætti', 47850 noon: 'á hádegi', 47851 morning: 'að morgni', 47852 afternoon: 'sÃðdegis', 47853 evening: 'um kvöld', 47854 night: 'um nótt' 47855 }, 47856 wide: { 47857 am: 'fyrir hádegi', 47858 pm: 'eftir hádegi', 47859 midnight: 'á miðnætti', 47860 noon: 'á hádegi', 47861 morning: 'að morgni', 47862 afternoon: 'sÃðdegis', 47863 evening: 'um kvöld', 47864 night: 'um nótt' 47865 } 47866 }; 47867 47868 function ordinalNumber(dirtyNumber, _dirtyOptions) { 47869 var number = Number(dirtyNumber); 47870 return number + '.'; 47871 } 47872 47873 var localize = { 47874 ordinalNumber: ordinalNumber, 47875 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 47876 values: eraValues, 47877 defaultWidth: 'wide' 47878 }), 47879 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 47880 values: quarterValues, 47881 defaultWidth: 'wide', 47882 argumentCallback: function (quarter) { 47883 return Number(quarter) - 1; 47884 } 47885 }), 47886 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 47887 values: monthValues, 47888 defaultWidth: 'wide' 47889 }), 47890 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 47891 values: dayValues, 47892 defaultWidth: 'wide' 47893 }), 47894 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 47895 values: dayPeriodValues, 47896 defaultWidth: 'wide', 47897 formattingValues: formattingDayPeriodValues, 47898 defaultFormattingWidth: 'wide' 47899 }) 47900 }; 47901 /* harmony default export */ 47902 __webpack_exports__["a"] = (localize); 47903 47904 /***/ 47905 }), 47906 /* 638 */ 47907 /***/ (function (module, __webpack_exports__, __webpack_require__) { 47908 47909 "use strict"; 47910 /* harmony import */ 47911 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 47912 /* harmony import */ 47913 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 47914 47915 47916 var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; 47917 var parseOrdinalNumberPattern = /\d+/i; 47918 var matchEraPatterns = { 47919 narrow: /^(f\.Kr\.|e\.Kr\.)/i, 47920 abbreviated: /^(f\.Kr\.|e\.Kr\.)/i, 47921 wide: /^(fyrir Krist|eftir Krist)/i 47922 }; 47923 var parseEraPatterns = { 47924 any: [/^(f\.Kr\.|e\.Kr\.)/i] 47925 }; 47926 var matchQuarterPatterns = { 47927 narrow: /^[1234]/i, 47928 abbreviated: /^q[1234]/i, 47929 wide: /^[1234] fjórðungur/i 47930 }; 47931 var parseQuarterPatterns = { 47932 any: [/1/i, /2/i, /3/i, /4/i] 47933 }; 47934 var matchMonthPatterns = { 47935 narrow: /^[jfmásónd]/i, 47936 abbreviated: /^(jan\.|feb\.|mars\.|aprÃl\.|maÃ|júnÃ|júlÃ|águst|sep\.|oct\.|nov\.|dec\.)/i, 47937 wide: /^(januar|februar|mars|aprÃl|maÃ|júnÃ|júlÃ|águst|september|október|nóvember|desember)/i 47938 }; 47939 var parseMonthPatterns = { 47940 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^á/i, /^s/i, /^ó/i, /^n/i, /^d/i], 47941 any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maÃ/i, /^jún/i, /^júl/i, /^áu/i, /^s/i, /^ó/i, /^n/i, /^d/i] 47942 }; 47943 var matchDayPatterns = { 47944 narrow: /^[smtwf]/i, 47945 short: /^(su|má|þr|mi|fi|fö|la)/i, 47946 abbreviated: /^(sun|mán|þri|mið|fim|fös|lau)\.?/i, 47947 wide: /^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i 47948 }; 47949 var parseDayPatterns = { 47950 narrow: [/^s/i, /^m/i, /^þ/i, /^m/i, /^f/i, /^f/i, /^l/i], 47951 any: [/^su/i, /^má/i, /^þr/i, /^mi/i, /^fi/i, /^fö/i, /^la/i] 47952 }; 47953 var matchDayPeriodPatterns = { 47954 narrow: /^(f|e|sÃðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i, 47955 any: /^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|sÃðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i 47956 }; 47957 var parseDayPeriodPatterns = { 47958 any: { 47959 am: /^f/i, 47960 pm: /^e/i, 47961 midnight: /^mi/i, 47962 noon: /^há/i, 47963 morning: /morgunn/i, 47964 afternoon: /sÃðdegi/i, 47965 evening: /kvöld/i, 47966 night: /nótt/i 47967 } 47968 }; 47969 var match = { 47970 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 47971 matchPattern: matchOrdinalNumberPattern, 47972 parsePattern: parseOrdinalNumberPattern, 47973 valueCallback: function (value) { 47974 return parseInt(value, 10); 47975 } 47976 }), 47977 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 47978 matchPatterns: matchEraPatterns, 47979 defaultMatchWidth: 'wide', 47980 parsePatterns: parseEraPatterns, 47981 defaultParseWidth: 'any' 47982 }), 47983 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 47984 matchPatterns: matchQuarterPatterns, 47985 defaultMatchWidth: 'wide', 47986 parsePatterns: parseQuarterPatterns, 47987 defaultParseWidth: 'any', 47988 valueCallback: function (index) { 47989 return index + 1; 47990 } 47991 }), 47992 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 47993 matchPatterns: matchMonthPatterns, 47994 defaultMatchWidth: 'wide', 47995 parsePatterns: parseMonthPatterns, 47996 defaultParseWidth: 'any' 47997 }), 47998 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 47999 matchPatterns: matchDayPatterns, 48000 defaultMatchWidth: 'wide', 48001 parsePatterns: parseDayPatterns, 48002 defaultParseWidth: 'any' 48003 }), 48004 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 48005 matchPatterns: matchDayPeriodPatterns, 48006 defaultMatchWidth: 'any', 48007 parsePatterns: parseDayPeriodPatterns, 48008 defaultParseWidth: 'any' 48009 }) 48010 }; 48011 /* harmony default export */ 48012 __webpack_exports__["a"] = (match); 48013 48014 /***/ 48015 }), 48016 /* 639 */ 48017 /***/ (function (module, __webpack_exports__, __webpack_require__) { 48018 48019 "use strict"; 48020 /* harmony import */ 48021 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(640); 48022 /* harmony import */ 48023 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(641); 48024 /* harmony import */ 48025 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(642); 48026 /* harmony import */ 48027 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(643); 48028 /* harmony import */ 48029 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(644); 48030 48031 48032 /** 48033 * @type {Locale} 48034 * @category Locales 48035 * @summary Italian locale. 48036 * @language Italian 48037 * @iso-639-2 ita 48038 * @author Alberto Restifo [@albertorestifo]{@link https://github.com/albertorestifo} 48039 * @author Giovanni Polimeni [@giofilo]{@link https://github.com/giofilo} 48040 * @author Vincenzo Carrese [@vin-car]{@link https://github.com/vin-car} 48041 */ 48042 48043 var locale = { 48044 code: 'it', 48045 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 48046 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 48047 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 48048 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 48049 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 48050 options: { 48051 weekStartsOn: 1 48052 /* Monday */ 48053 , 48054 firstWeekContainsDate: 4 48055 } 48056 }; 48057 /* harmony default export */ 48058 __webpack_exports__["a"] = (locale); 48059 48060 /***/ 48061 }), 48062 /* 640 */ 48063 /***/ (function (module, __webpack_exports__, __webpack_require__) { 48064 48065 "use strict"; 48066 /* harmony export (immutable) */ 48067 __webpack_exports__["a"] = formatDistance; 48068 var formatDistanceLocale = { 48069 lessThanXSeconds: { 48070 one: 'meno di un secondo', 48071 other: 'meno di {{count}} secondi' 48072 }, 48073 xSeconds: { 48074 one: 'un secondo', 48075 other: '{{count}} secondi' 48076 }, 48077 halfAMinute: 'alcuni secondi', 48078 lessThanXMinutes: { 48079 one: 'meno di un minuto', 48080 other: 'meno di {{count}} minuti' 48081 }, 48082 xMinutes: { 48083 one: 'un minuto', 48084 other: '{{count}} minuti' 48085 }, 48086 aboutXHours: { 48087 one: "circa un'ora", 48088 other: 'circa {{count}} ore' 48089 }, 48090 xHours: { 48091 one: "un'ora", 48092 other: '{{count}} ore' 48093 }, 48094 xDays: { 48095 one: 'un giorno', 48096 other: '{{count}} giorni' 48097 }, 48098 aboutXWeeks: { 48099 one: 'circa una settimana', 48100 other: 'circa {{count}} settimane' 48101 }, 48102 xWeeks: { 48103 one: 'una settimana', 48104 other: '{{count}} settimane' 48105 }, 48106 aboutXMonths: { 48107 one: 'circa un mese', 48108 other: 'circa {{count}} mesi' 48109 }, 48110 xMonths: { 48111 one: 'un mese', 48112 other: '{{count}} mesi' 48113 }, 48114 aboutXYears: { 48115 one: 'circa un anno', 48116 other: 'circa {{count}} anni' 48117 }, 48118 xYears: { 48119 one: 'un anno', 48120 other: '{{count}} anni' 48121 }, 48122 overXYears: { 48123 one: 'più di un anno', 48124 other: 'più di {{count}} anni' 48125 }, 48126 almostXYears: { 48127 one: 'quasi un anno', 48128 other: 'quasi {{count}} anni' 48129 } 48130 }; 48131 48132 function formatDistance(token, count, options) { 48133 options = options || {}; 48134 var result; 48135 48136 if (typeof formatDistanceLocale[token] === 'string') { 48137 result = formatDistanceLocale[token]; 48138 } else if (count === 1) { 48139 result = formatDistanceLocale[token].one; 48140 } else { 48141 result = formatDistanceLocale[token].other.replace('{{count}}', count); 48142 } 48143 48144 if (options.addSuffix) { 48145 if (options.comparison > 0) { 48146 return 'tra ' + result; 48147 } else { 48148 return result + ' fa'; 48149 } 48150 } 48151 48152 return result; 48153 } 48154 48155 /***/ 48156 }), 48157 /* 641 */ 48158 /***/ (function (module, __webpack_exports__, __webpack_require__) { 48159 48160 "use strict"; 48161 /* harmony import */ 48162 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 48163 48164 var dateFormats = { 48165 full: 'EEEE d MMMM y', 48166 long: 'd MMMM y', 48167 medium: 'd MMM y', 48168 short: 'dd/MM/y' 48169 }; 48170 var timeFormats = { 48171 full: 'HH:mm:ss zzzz', 48172 long: 'HH:mm:ss z', 48173 medium: 'HH:mm:ss', 48174 short: 'HH:mm' 48175 }; 48176 var dateTimeFormats = { 48177 full: '{{date}} {{time}}', 48178 long: '{{date}} {{time}}', 48179 medium: '{{date}} {{time}}', 48180 short: '{{date}} {{time}}' 48181 }; 48182 var formatLong = { 48183 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 48184 formats: dateFormats, 48185 defaultWidth: 'full' 48186 }), 48187 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 48188 formats: timeFormats, 48189 defaultWidth: 'full' 48190 }), 48191 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 48192 formats: dateTimeFormats, 48193 defaultWidth: 'full' 48194 }) 48195 }; 48196 /* harmony default export */ 48197 __webpack_exports__["a"] = (formatLong); 48198 48199 /***/ 48200 }), 48201 /* 642 */ 48202 /***/ (function (module, __webpack_exports__, __webpack_require__) { 48203 48204 "use strict"; 48205 /* harmony export (immutable) */ 48206 __webpack_exports__["a"] = formatRelative; 48207 /* harmony import */ 48208 var __WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__ = __webpack_require__(13); 48209 48210 var weekdays = ['domenica', 'lunedì', 'martedì', 'mercoledì', 'giovedì', 'venerdì', 'sabato']; 48211 48212 function lastWeek(day) { 48213 switch (day) { 48214 case 0: 48215 return "'domenica scorsa alle' p"; 48216 48217 default: 48218 return "'" + weekdays[day] + " scorso alle' p"; 48219 } 48220 } 48221 48222 function thisWeek(day) { 48223 return "'" + weekdays[day] + " alle' p"; 48224 } 48225 48226 function nextWeek(day) { 48227 switch (day) { 48228 case 0: 48229 return "'domenica prossima alle' p"; 48230 48231 default: 48232 return "'" + weekdays[day] + " prossimo alle' p"; 48233 } 48234 } 48235 48236 var formatRelativeLocale = { 48237 lastWeek: function (date, baseDate, options) { 48238 var day = date.getUTCDay(); 48239 48240 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](date, baseDate, options)) { 48241 return thisWeek(day); 48242 } else { 48243 return lastWeek(day); 48244 } 48245 }, 48246 yesterday: "'ieri alle' p", 48247 today: "'oggi alle' p", 48248 tomorrow: "'domani alle' p", 48249 nextWeek: function (date, baseDate, options) { 48250 var day = date.getUTCDay(); 48251 48252 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](date, baseDate, options)) { 48253 return thisWeek(day); 48254 } else { 48255 return nextWeek(day); 48256 } 48257 }, 48258 other: 'P' 48259 }; 48260 48261 function formatRelative(token, date, baseDate, options) { 48262 var format = formatRelativeLocale[token]; 48263 48264 if (typeof format === 'function') { 48265 return format(date, baseDate, options); 48266 } 48267 48268 return format; 48269 } 48270 48271 /***/ 48272 }), 48273 /* 643 */ 48274 /***/ (function (module, __webpack_exports__, __webpack_require__) { 48275 48276 "use strict"; 48277 /* harmony import */ 48278 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 48279 48280 var eraValues = { 48281 narrow: ['aC', 'dC'], 48282 abbreviated: ['a.C.', 'd.C.'], 48283 wide: ['avanti Cristo', 'dopo Cristo'] 48284 }; 48285 var quarterValues = { 48286 narrow: ['1', '2', '3', '4'], 48287 abbreviated: ['T1', 'T2', 'T3', 'T4'], 48288 wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre'] 48289 }; 48290 var monthValues = { 48291 narrow: ['G', 'F', 'M', 'A', 'M', 'G', 'L', 'A', 'S', 'O', 'N', 'D'], 48292 abbreviated: ['gen', 'feb', 'mar', 'apr', 'mag', 'giu', 'lug', 'ago', 'set', 'ott', 'nov', 'dic'], 48293 wide: ['gennaio', 'febbraio', 'marzo', 'aprile', 'maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dicembre'] 48294 }; 48295 var dayValues = { 48296 narrow: ['D', 'L', 'M', 'M', 'G', 'V', 'S'], 48297 short: ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'], 48298 abbreviated: ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'], 48299 wide: ['domenica', 'lunedì', 'martedì', 'mercoledì', 'giovedì', 'venerdì', 'sabato'] 48300 }; 48301 var dayPeriodValues = { 48302 narrow: { 48303 am: 'm.', 48304 pm: 'p.', 48305 midnight: 'mezzanotte', 48306 noon: 'mezzogiorno', 48307 morning: 'mattina', 48308 afternoon: 'pomeriggio', 48309 evening: 'sera', 48310 night: 'notte' 48311 }, 48312 abbreviated: { 48313 am: 'AM', 48314 pm: 'PM', 48315 midnight: 'mezzanotte', 48316 noon: 'mezzogiorno', 48317 morning: 'mattina', 48318 afternoon: 'pomeriggio', 48319 evening: 'sera', 48320 night: 'notte' 48321 }, 48322 wide: { 48323 am: 'AM', 48324 pm: 'PM', 48325 midnight: 'mezzanotte', 48326 noon: 'mezzogiorno', 48327 morning: 'mattina', 48328 afternoon: 'pomeriggio', 48329 evening: 'sera', 48330 night: 'notte' 48331 } 48332 }; 48333 var formattingDayPeriodValues = { 48334 narrow: { 48335 am: 'm.', 48336 pm: 'p.', 48337 midnight: 'mezzanotte', 48338 noon: 'mezzogiorno', 48339 morning: 'di mattina', 48340 afternoon: 'del pomeriggio', 48341 evening: 'di sera', 48342 night: 'di notte' 48343 }, 48344 abbreviated: { 48345 am: 'AM', 48346 pm: 'PM', 48347 midnight: 'mezzanotte', 48348 noon: 'mezzogiorno', 48349 morning: 'di mattina', 48350 afternoon: 'del pomeriggio', 48351 evening: 'di sera', 48352 night: 'di notte' 48353 }, 48354 wide: { 48355 am: 'AM', 48356 pm: 'PM', 48357 midnight: 'mezzanotte', 48358 noon: 'mezzogiorno', 48359 morning: 'di mattina', 48360 afternoon: 'del pomeriggio', 48361 evening: 'di sera', 48362 night: 'di notte' 48363 } 48364 }; 48365 48366 function ordinalNumber(dirtyNumber) { 48367 var number = Number(dirtyNumber); 48368 return number + 'º'; 48369 } 48370 48371 var localize = { 48372 ordinalNumber: ordinalNumber, 48373 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 48374 values: eraValues, 48375 defaultWidth: 'wide' 48376 }), 48377 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 48378 values: quarterValues, 48379 defaultWidth: 'wide', 48380 argumentCallback: function (quarter) { 48381 return Number(quarter) - 1; 48382 } 48383 }), 48384 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 48385 values: monthValues, 48386 defaultWidth: 'wide' 48387 }), 48388 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 48389 values: dayValues, 48390 defaultWidth: 'wide' 48391 }), 48392 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 48393 values: dayPeriodValues, 48394 defaultWidth: 'wide', 48395 formattingValues: formattingDayPeriodValues, 48396 defaultFormattingWidth: 'wide' 48397 }) 48398 }; 48399 /* harmony default export */ 48400 __webpack_exports__["a"] = (localize); 48401 48402 /***/ 48403 }), 48404 /* 644 */ 48405 /***/ (function (module, __webpack_exports__, __webpack_require__) { 48406 48407 "use strict"; 48408 /* harmony import */ 48409 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 48410 /* harmony import */ 48411 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 48412 48413 48414 var matchOrdinalNumberPattern = /^(\d+)(º)?/i; 48415 var parseOrdinalNumberPattern = /\d+/i; 48416 var matchEraPatterns = { 48417 narrow: /^(aC|dC)/i, 48418 abbreviated: /^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i, 48419 wide: /^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i 48420 }; 48421 var parseEraPatterns = { 48422 any: [/^a/i, /^(d|e)/i] 48423 }; 48424 var matchQuarterPatterns = { 48425 narrow: /^[1234]/i, 48426 abbreviated: /^t[1234]/i, 48427 wide: /^[1234](º)? trimestre/i 48428 }; 48429 var parseQuarterPatterns = { 48430 any: [/1/i, /2/i, /3/i, /4/i] 48431 }; 48432 var matchMonthPatterns = { 48433 narrow: /^[gfmalsond]/i, 48434 abbreviated: /^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i, 48435 wide: /^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i 48436 }; 48437 var parseMonthPatterns = { 48438 narrow: [/^g/i, /^f/i, /^m/i, /^a/i, /^m/i, /^g/i, /^l/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 48439 any: [/^ge/i, /^f/i, /^mar/i, /^ap/i, /^mag/i, /^gi/i, /^l/i, /^ag/i, /^s/i, /^o/i, /^n/i, /^d/i] 48440 }; 48441 var matchDayPatterns = { 48442 narrow: /^[dlmgvs]/i, 48443 short: /^(do|lu|ma|me|gi|ve|sa)/i, 48444 abbreviated: /^(dom|lun|mar|mer|gio|ven|sab)/i, 48445 wide: /^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i 48446 }; 48447 var parseDayPatterns = { 48448 narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^g/i, /^v/i, /^s/i], 48449 any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^g/i, /^v/i, /^s/i] 48450 }; 48451 var matchDayPeriodPatterns = { 48452 narrow: /^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i, 48453 any: /^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i 48454 }; 48455 var parseDayPeriodPatterns = { 48456 any: { 48457 am: /^a/i, 48458 pm: /^p/i, 48459 midnight: /^mezza/i, 48460 noon: /^mezzo/i, 48461 morning: /mattina/i, 48462 afternoon: /pomeriggio/i, 48463 evening: /sera/i, 48464 night: /notte/i 48465 } 48466 }; 48467 var match = { 48468 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 48469 matchPattern: matchOrdinalNumberPattern, 48470 parsePattern: parseOrdinalNumberPattern, 48471 valueCallback: function (value) { 48472 return parseInt(value, 10); 48473 } 48474 }), 48475 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 48476 matchPatterns: matchEraPatterns, 48477 defaultMatchWidth: 'wide', 48478 parsePatterns: parseEraPatterns, 48479 defaultParseWidth: 'any' 48480 }), 48481 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 48482 matchPatterns: matchQuarterPatterns, 48483 defaultMatchWidth: 'wide', 48484 parsePatterns: parseQuarterPatterns, 48485 defaultParseWidth: 'any', 48486 valueCallback: function (index) { 48487 return index + 1; 48488 } 48489 }), 48490 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 48491 matchPatterns: matchMonthPatterns, 48492 defaultMatchWidth: 'wide', 48493 parsePatterns: parseMonthPatterns, 48494 defaultParseWidth: 'any' 48495 }), 48496 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 48497 matchPatterns: matchDayPatterns, 48498 defaultMatchWidth: 'wide', 48499 parsePatterns: parseDayPatterns, 48500 defaultParseWidth: 'any' 48501 }), 48502 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 48503 matchPatterns: matchDayPeriodPatterns, 48504 defaultMatchWidth: 'any', 48505 parsePatterns: parseDayPeriodPatterns, 48506 defaultParseWidth: 'any' 48507 }) 48508 }; 48509 /* harmony default export */ 48510 __webpack_exports__["a"] = (match); 48511 48512 /***/ 48513 }), 48514 /* 645 */ 48515 /***/ (function (module, __webpack_exports__, __webpack_require__) { 48516 48517 "use strict"; 48518 /* harmony import */ 48519 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(646); 48520 /* harmony import */ 48521 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(647); 48522 /* harmony import */ 48523 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(648); 48524 /* harmony import */ 48525 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(649); 48526 /* harmony import */ 48527 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(650); 48528 48529 48530 /** 48531 * @type {Locale} 48532 * @category Locales 48533 * @summary Japanese locale. 48534 * @language Japanese 48535 * @iso-639-2 jpn 48536 * @author Thomas Eilmsteiner [@DeMuu]{@link https://github.com/DeMuu} 48537 * @author Yamagishi Kazutoshi [@ykzts]{@link https://github.com/ykzts} 48538 * @author Luca Ban [@mesqueeb]{@link https://github.com/mesqueeb} 48539 * @author Terrence Lam [@skyuplam]{@link https://github.com/skyuplam} 48540 * @author Taiki IKeda [@so99ynoodles]{@link https://github.com/so99ynoodles} 48541 */ 48542 48543 var locale = { 48544 code: 'ja', 48545 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 48546 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 48547 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 48548 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 48549 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 48550 options: { 48551 weekStartsOn: 1 48552 /* Monday */ 48553 , 48554 firstWeekContainsDate: 1 48555 } 48556 }; 48557 /* harmony default export */ 48558 __webpack_exports__["a"] = (locale); 48559 48560 /***/ 48561 }), 48562 /* 646 */ 48563 /***/ (function (module, __webpack_exports__, __webpack_require__) { 48564 48565 "use strict"; 48566 /* harmony export (immutable) */ 48567 __webpack_exports__["a"] = formatDistance; 48568 var formatDistanceLocale = { 48569 lessThanXSeconds: { 48570 one: '1ç§æªæº', 48571 other: '{{count}}ç§æªæº', 48572 oneWithSuffix: 'ç´1ç§', 48573 otherWithSuffix: 'ç´{{count}}ç§' 48574 }, 48575 xSeconds: { 48576 one: '1ç§', 48577 other: '{{count}}ç§' 48578 }, 48579 halfAMinute: '30ç§', 48580 lessThanXMinutes: { 48581 one: '1åæªæº', 48582 other: '{{count}}åæªæº', 48583 oneWithSuffix: 'ç´1å', 48584 otherWithSuffix: 'ç´{{count}}å' 48585 }, 48586 xMinutes: { 48587 one: '1å', 48588 other: '{{count}}å' 48589 }, 48590 aboutXHours: { 48591 one: 'ç´1æé', 48592 other: 'ç´{{count}}æé' 48593 }, 48594 xHours: { 48595 one: '1æé', 48596 other: '{{count}}æé' 48597 }, 48598 xDays: { 48599 one: '1æ¥', 48600 other: '{{count}}æ¥' 48601 }, 48602 aboutXWeeks: { 48603 one: 'ç´1é±é', 48604 other: 'ç´{{count}}é±é' 48605 }, 48606 xWeeks: { 48607 one: '1é±é', 48608 other: '{{count}}é±é' 48609 }, 48610 aboutXMonths: { 48611 one: 'ç´1ãæ', 48612 other: 'ç´{{count}}ãæ' 48613 }, 48614 xMonths: { 48615 one: '1ãæ', 48616 other: '{{count}}ãæ' 48617 }, 48618 aboutXYears: { 48619 one: 'ç´1å¹´', 48620 other: 'ç´{{count}}å¹´' 48621 }, 48622 xYears: { 48623 one: '1å¹´', 48624 other: '{{count}}å¹´' 48625 }, 48626 overXYears: { 48627 one: '1年以ä¸', 48628 other: '{{count}}年以ä¸' 48629 }, 48630 almostXYears: { 48631 one: '1å¹´è¿ã', 48632 other: '{{count}}å¹´è¿ã' 48633 } 48634 }; 48635 48636 function formatDistance(token, count, options) { 48637 options = options || {}; 48638 var result; 48639 48640 if (typeof formatDistanceLocale[token] === 'string') { 48641 result = formatDistanceLocale[token]; 48642 } else if (count === 1) { 48643 if (options.addSuffix && formatDistanceLocale[token].oneWithSuffix) { 48644 result = formatDistanceLocale[token].oneWithSuffix; 48645 } else { 48646 result = formatDistanceLocale[token].one; 48647 } 48648 } else { 48649 if (options.addSuffix && formatDistanceLocale[token].otherWithSuffix) { 48650 result = formatDistanceLocale[token].otherWithSuffix.replace('{{count}}', count); 48651 } else { 48652 result = formatDistanceLocale[token].other.replace('{{count}}', count); 48653 } 48654 } 48655 48656 if (options.addSuffix) { 48657 if (options.comparison > 0) { 48658 return result + 'å¾'; 48659 } else { 48660 return result + 'å'; 48661 } 48662 } 48663 48664 return result; 48665 } 48666 48667 /***/ 48668 }), 48669 /* 647 */ 48670 /***/ (function (module, __webpack_exports__, __webpack_require__) { 48671 48672 "use strict"; 48673 /* harmony import */ 48674 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 48675 48676 var dateFormats = { 48677 full: 'yå¹´Mædæ¥EEEE', 48678 long: 'yå¹´Mædæ¥', 48679 medium: 'y/MM/dd', 48680 short: 'y/MM/dd' 48681 }; 48682 var timeFormats = { 48683 full: 'Hæmmåssç§ zzzz', 48684 long: 'H:mm:ss z', 48685 medium: 'H:mm:ss', 48686 short: 'H:mm' 48687 }; 48688 var dateTimeFormats = { 48689 full: '{{date}} {{time}}', 48690 long: '{{date}} {{time}}', 48691 medium: '{{date}} {{time}}', 48692 short: '{{date}} {{time}}' 48693 }; 48694 var formatLong = { 48695 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 48696 formats: dateFormats, 48697 defaultWidth: 'full' 48698 }), 48699 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 48700 formats: timeFormats, 48701 defaultWidth: 'full' 48702 }), 48703 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 48704 formats: dateTimeFormats, 48705 defaultWidth: 'full' 48706 }) 48707 }; 48708 /* harmony default export */ 48709 __webpack_exports__["a"] = (formatLong); 48710 48711 /***/ 48712 }), 48713 /* 648 */ 48714 /***/ (function (module, __webpack_exports__, __webpack_require__) { 48715 48716 "use strict"; 48717 /* harmony export (immutable) */ 48718 __webpack_exports__["a"] = formatRelative; 48719 var formatRelativeLocale = { 48720 lastWeek: 'å é±ã®eeeeã®p', 48721 yesterday: 'æ¨æ¥ã®p', 48722 today: '仿¥ã®p', 48723 tomorrow: 'ææ¥ã®p', 48724 nextWeek: 'ç¿é±ã®eeeeã®p', 48725 other: 'P' 48726 }; 48727 48728 function formatRelative(token, _date, _baseDate, _options) { 48729 return formatRelativeLocale[token]; 48730 } 48731 48732 /***/ 48733 }), 48734 /* 649 */ 48735 /***/ (function (module, __webpack_exports__, __webpack_require__) { 48736 48737 "use strict"; 48738 /* harmony import */ 48739 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 48740 48741 var eraValues = { 48742 narrow: ['BC', 'AC'], 48743 abbreviated: ['ç´å å', '西æ¦'], 48744 wide: ['ç´å å', '西æ¦'] 48745 }; 48746 var quarterValues = { 48747 narrow: ['1', '2', '3', '4'], 48748 abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], 48749 wide: ['第1ååæ', '第2ååæ', '第3ååæ', '第4ååæ'] 48750 }; 48751 var monthValues = { 48752 narrow: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], 48753 abbreviated: ['1æ', '2æ', '3æ', '4æ', '5æ', '6æ', '7æ', '8æ', '9æ', '10æ', '11æ', '12æ'], 48754 wide: ['1æ', '2æ', '3æ', '4æ', '5æ', '6æ', '7æ', '8æ', '9æ', '10æ', '11æ', '12æ'] 48755 }; 48756 var dayValues = { 48757 narrow: ['æ¥', 'æ', 'ç«', 'æ°´', 'æ¨', 'é', 'å'], 48758 short: ['æ¥', 'æ', 'ç«', 'æ°´', 'æ¨', 'é', 'å'], 48759 abbreviated: ['æ¥', 'æ', 'ç«', 'æ°´', 'æ¨', 'é', 'å'], 48760 wide: ['æ¥ææ¥', 'æææ¥', 'ç«ææ¥', 'æ°´ææ¥', 'æ¨ææ¥', 'éææ¥', 'åææ¥'] 48761 }; 48762 var dayPeriodValues = { 48763 narrow: { 48764 am: 'åå', 48765 pm: 'åå¾', 48766 midnight: 'æ·±å¤', 48767 noon: 'æ£å', 48768 morning: 'æ', 48769 afternoon: 'åå¾', 48770 evening: 'å¤', 48771 night: 'æ·±å¤' 48772 }, 48773 abbreviated: { 48774 am: 'åå', 48775 pm: 'åå¾', 48776 midnight: 'æ·±å¤', 48777 noon: 'æ£å', 48778 morning: 'æ', 48779 afternoon: 'åå¾', 48780 evening: 'å¤', 48781 night: 'æ·±å¤' 48782 }, 48783 wide: { 48784 am: 'åå', 48785 pm: 'åå¾', 48786 midnight: 'æ·±å¤', 48787 noon: 'æ£å', 48788 morning: 'æ', 48789 afternoon: 'åå¾', 48790 evening: 'å¤', 48791 night: 'æ·±å¤' 48792 } 48793 }; 48794 var formattingDayPeriodValues = { 48795 narrow: { 48796 am: 'åå', 48797 pm: 'åå¾', 48798 midnight: 'æ·±å¤', 48799 noon: 'æ£å', 48800 morning: 'æ', 48801 afternoon: 'åå¾', 48802 evening: 'å¤', 48803 night: 'æ·±å¤' 48804 }, 48805 abbreviated: { 48806 am: 'åå', 48807 pm: 'åå¾', 48808 midnight: 'æ·±å¤', 48809 noon: 'æ£å', 48810 morning: 'æ', 48811 afternoon: 'åå¾', 48812 evening: 'å¤', 48813 night: 'æ·±å¤' 48814 }, 48815 wide: { 48816 am: 'åå', 48817 pm: 'åå¾', 48818 midnight: 'æ·±å¤', 48819 noon: 'æ£å', 48820 morning: 'æ', 48821 afternoon: 'åå¾', 48822 evening: 'å¤', 48823 night: 'æ·±å¤' 48824 } 48825 }; 48826 48827 function ordinalNumber(dirtyNumber, dirtyOptions) { 48828 var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, 48829 // if they are different for different grammatical genders, 48830 // use `options.unit`: 48831 // 48832 // var options = dirtyOptions || {} 48833 // var unit = String(options.unit) 48834 // 48835 // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', 48836 // 'day', 'hour', 'minute', 'second' 48837 48838 var options = dirtyOptions || {}; 48839 var unit = String(options.unit); 48840 48841 if (unit === 'date') { 48842 return number + 'æ¥'; 48843 } 48844 48845 return number; 48846 } 48847 48848 var localize = { 48849 ordinalNumber: ordinalNumber, 48850 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 48851 values: eraValues, 48852 defaultWidth: 'wide' 48853 }), 48854 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 48855 values: quarterValues, 48856 defaultWidth: 'wide', 48857 argumentCallback: function (quarter) { 48858 return Number(quarter) - 1; 48859 } 48860 }), 48861 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 48862 values: monthValues, 48863 defaultWidth: 'wide' 48864 }), 48865 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 48866 values: dayValues, 48867 defaultWidth: 'wide' 48868 }), 48869 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 48870 values: dayPeriodValues, 48871 defaultWidth: 'wide', 48872 formattingValues: formattingDayPeriodValues, 48873 defaultFormattingWidth: 'wide' 48874 }) 48875 }; 48876 /* harmony default export */ 48877 __webpack_exports__["a"] = (localize); 48878 48879 /***/ 48880 }), 48881 /* 650 */ 48882 /***/ (function (module, __webpack_exports__, __webpack_require__) { 48883 48884 "use strict"; 48885 /* harmony import */ 48886 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 48887 /* harmony import */ 48888 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 48889 48890 48891 var matchOrdinalNumberPattern = /^第?\d+(æ¥)?/i; 48892 var parseOrdinalNumberPattern = /\d+/i; 48893 var matchEraPatterns = { 48894 narrow: /^(B\.?C\.?|A\.?D\.?)/i, 48895 abbreviated: /^(ç´å [åå¾]|西æ¦)/i, 48896 wide: /^(ç´å [åå¾]|西æ¦)/i 48897 }; 48898 var parseEraPatterns = { 48899 narrow: [/^B/i, /^A/i], 48900 any: [/^(ç´å å)/i, /^(西æ¦|ç´å å¾)/i] 48901 }; 48902 var matchQuarterPatterns = { 48903 narrow: /^[1234]/i, 48904 abbreviated: /^Q[1234]/i, 48905 wide: /^第[1234ä¸äºä¸åï¼ï¼ï¼ï¼]ååæ/i 48906 }; 48907 var parseQuarterPatterns = { 48908 any: [/(1|ä¸|ï¼)/i, /(2|äº|ï¼)/i, /(3|ä¸|ï¼)/i, /(4|å|ï¼)/i] 48909 }; 48910 var matchMonthPatterns = { 48911 narrow: /^([123456789]|1[012])/, 48912 abbreviated: /^([123456789]|1[012])æ/i, 48913 wide: /^([123456789]|1[012])æ/i 48914 }; 48915 var parseMonthPatterns = { 48916 any: [/^1\D/, /^2/, /^3/, /^4/, /^5/, /^6/, /^7/, /^8/, /^9/, /^10/, /^11/, /^12/] 48917 }; 48918 var matchDayPatterns = { 48919 narrow: /^[æ¥æç«æ°´æ¨éå]/, 48920 short: /^[æ¥æç«æ°´æ¨éå]/, 48921 abbreviated: /^[æ¥æç«æ°´æ¨éå]/, 48922 wide: /^[æ¥æç«æ°´æ¨éå]ææ¥/ 48923 }; 48924 var parseDayPatterns = { 48925 any: [/^æ¥/, /^æ/, /^ç«/, /^æ°´/, /^æ¨/, /^é/, /^å/] 48926 }; 48927 var matchDayPeriodPatterns = { 48928 any: /^(AM|PM|åå|åå¾|æ£å|æ·±å¤|çå¤ä¸|å¤|æ)/i 48929 }; 48930 var parseDayPeriodPatterns = { 48931 any: { 48932 am: /^(A|åå)/i, 48933 pm: /^(P|åå¾)/i, 48934 midnight: /^æ·±å¤|çå¤ä¸/i, 48935 noon: /^æ£å/i, 48936 morning: /^æ/i, 48937 afternoon: /^åå¾/i, 48938 evening: /^å¤/i, 48939 night: /^æ·±å¤/i 48940 } 48941 }; 48942 var match = { 48943 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 48944 matchPattern: matchOrdinalNumberPattern, 48945 parsePattern: parseOrdinalNumberPattern, 48946 valueCallback: function (value) { 48947 return parseInt(value, 10); 48948 } 48949 }), 48950 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 48951 matchPatterns: matchEraPatterns, 48952 defaultMatchWidth: 'wide', 48953 parsePatterns: parseEraPatterns, 48954 defaultParseWidth: 'any' 48955 }), 48956 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 48957 matchPatterns: matchQuarterPatterns, 48958 defaultMatchWidth: 'wide', 48959 parsePatterns: parseQuarterPatterns, 48960 defaultParseWidth: 'any', 48961 valueCallback: function (index) { 48962 return index + 1; 48963 } 48964 }), 48965 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 48966 matchPatterns: matchMonthPatterns, 48967 defaultMatchWidth: 'wide', 48968 parsePatterns: parseMonthPatterns, 48969 defaultParseWidth: 'any' 48970 }), 48971 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 48972 matchPatterns: matchDayPatterns, 48973 defaultMatchWidth: 'wide', 48974 parsePatterns: parseDayPatterns, 48975 defaultParseWidth: 'any' 48976 }), 48977 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 48978 matchPatterns: matchDayPeriodPatterns, 48979 defaultMatchWidth: 'any', 48980 parsePatterns: parseDayPeriodPatterns, 48981 defaultParseWidth: 'any' 48982 }) 48983 }; 48984 /* harmony default export */ 48985 __webpack_exports__["a"] = (match); 48986 48987 /***/ 48988 }), 48989 /* 651 */ 48990 /***/ (function (module, __webpack_exports__, __webpack_require__) { 48991 48992 "use strict"; 48993 /* harmony import */ 48994 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(652); 48995 /* harmony import */ 48996 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(653); 48997 /* harmony import */ 48998 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(654); 48999 /* harmony import */ 49000 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(655); 49001 /* harmony import */ 49002 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(656); 49003 49004 49005 /** 49006 * @type {Locale} 49007 * @category Locales 49008 * @summary Georgian locale. 49009 * @language Georgian 49010 * @iso-639-2 geo 49011 * @author Lado Lomidze [@Landish]{@link https://github.com/Landish} 49012 * @author Nick Shvelidze [@shvelo]{@link https://github.com/shvelo} 49013 */ 49014 49015 var locale = { 49016 code: 'ka', 49017 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 49018 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 49019 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 49020 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 49021 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 49022 options: { 49023 weekStartsOn: 1 49024 /* Monday */ 49025 , 49026 firstWeekContainsDate: 1 49027 } 49028 }; 49029 /* harmony default export */ 49030 __webpack_exports__["a"] = (locale); 49031 49032 /***/ 49033 }), 49034 /* 652 */ 49035 /***/ (function (module, __webpack_exports__, __webpack_require__) { 49036 49037 "use strict"; 49038 /* harmony export (immutable) */ 49039 __webpack_exports__["a"] = formatDistance; 49040 var formatDistanceLocale = { 49041 lessThanXSeconds: { 49042 past: '{{count}} á¬áááá ááááááá á®ááá¡ á¬áá', 49043 present: '{{count}} á¬áááá ááááááá', 49044 future: '{{count}} á¬áááá ááááááá¨á' 49045 }, 49046 xSeconds: { 49047 past: '{{count}} á¬áááá¡ á¬áá', 49048 present: '{{count}} á¬ááá', 49049 future: '{{count}} á¬ááá¨á' 49050 }, 49051 halfAMinute: { 49052 past: 'ááá®áááá á á¬á£ááá¡ á¬áá', 49053 present: 'ááá®áááá á á¬á£áá', 49054 future: 'ááá®áááá á á¬á£áá¨á' 49055 }, 49056 lessThanXMinutes: { 49057 past: '{{count}} á¬á£ááá ááááááá á®ááá¡ á¬áá', 49058 present: '{{count}} á¬á£ááá ááááááá', 49059 future: '{{count}} á¬á£ááá ááááááá¨á' 49060 }, 49061 xMinutes: { 49062 past: '{{count}} á¬á£ááá¡ á¬áá', 49063 present: '{{count}} á¬á£áá', 49064 future: '{{count}} á¬á£áá¨á' 49065 }, 49066 aboutXHours: { 49067 past: 'áááá®áááááá {{count}} á¡ááááá¡ á¬áá', 49068 present: 'áááá®áááááá {{count}} á¡áááá', 49069 future: 'áááá®áááááá {{count}} á¡áááá¨á' 49070 }, 49071 xHours: { 49072 past: '{{count}} á¡ááááá¡ á¬áá', 49073 present: '{{count}} á¡áááá', 49074 future: '{{count}} á¡áááá¨á' 49075 }, 49076 xDays: { 49077 past: '{{count}} áá¦áá¡ á¬áá', 49078 present: '{{count}} áá¦á', 49079 future: '{{count}} áá¦áá¨á' 49080 }, 49081 aboutXWeeks: { 49082 past: 'áááá®áááááá {{count}} áááá áá¡ á¬áá', 49083 present: 'áááá®áááááá {{count}} áááá á', 49084 future: 'áááá®áááááá {{count}} áááá áá¨á' 49085 }, 49086 xWeeks: { 49087 past: '{{count}} áááá áá¡ áááá á', 49088 present: '{{count}} áááá á', 49089 future: '{{count}} áááá áá¨á' 49090 }, 49091 aboutXMonths: { 49092 past: 'áááá®áááááá {{count}} áááá¡ á¬áá', 49093 present: 'áááá®áááááá {{count}} ááá', 49094 future: 'áááá®áááááá {{count}} áááá¨á' 49095 }, 49096 xMonths: { 49097 past: '{{count}} áááá¡ á¬áá', 49098 present: '{{count}} ááá', 49099 future: '{{count}} áááá¨á' 49100 }, 49101 aboutXYears: { 49102 past: 'áááá®áááááá {{count}} á¬ááá¡ á¬áá', 49103 present: 'áááá®áááááá {{count}} á¬ááá', 49104 future: 'áááá®áááááá {{count}} á¬ááá¨á' 49105 }, 49106 xYears: { 49107 past: '{{count}} á¬ááá¡ á¬áá', 49108 present: '{{count}} á¬ááá', 49109 future: '{{count}} á¬ááá¨á' 49110 }, 49111 overXYears: { 49112 past: '{{count}} á¬áááá ááá¢á á®ááá¡ á¬áá', 49113 present: '{{count}} á¬áááá ááá¢á', 49114 future: '{{count}} á¬áááá ááá¢á á®ááá¡ á¨ááááá' 49115 }, 49116 almostXYears: { 49117 past: 'áááá¥ááá¡ {{count}} á¬ááá¡ á¬áá', 49118 present: 'áááá¥ááá¡ {{count}} á¬ááá', 49119 future: 'áááá¥ááá¡ {{count}} á¬ááá¨á' 49120 } 49121 }; 49122 49123 function formatDistance(token, count, options) { 49124 options = options || {}; 49125 var result; 49126 49127 if (typeof formatDistanceLocale[token] === 'string') { 49128 result = formatDistanceLocale[token]; 49129 } else if (options.addSuffix && options.comparison > 0) { 49130 result = formatDistanceLocale[token].future.replace('{{count}}', count); 49131 } else if (options.addSuffix && options.comparison <= 0) { 49132 result = formatDistanceLocale[token].past.replace('{{count}}', count); 49133 } else { 49134 result = formatDistanceLocale[token].present.replace('{{count}}', count); 49135 } 49136 49137 return result; 49138 } 49139 49140 /***/ 49141 }), 49142 /* 653 */ 49143 /***/ (function (module, __webpack_exports__, __webpack_require__) { 49144 49145 "use strict"; 49146 /* harmony import */ 49147 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 49148 49149 var dateFormats = { 49150 full: 'EEEE, do MMMM, y', 49151 long: 'do, MMMM, y', 49152 medium: 'd, MMM, y', 49153 short: 'dd/MM/yyyy' 49154 }; 49155 var timeFormats = { 49156 full: 'h:mm:ss a zzzz', 49157 long: 'h:mm:ss a z', 49158 medium: 'h:mm:ss a', 49159 short: 'h:mm a' 49160 }; 49161 var dateTimeFormats = { 49162 full: "{{date}} {{time}}'-áá'", 49163 long: "{{date}} {{time}}'-áá'", 49164 medium: '{{date}}, {{time}}', 49165 short: '{{date}}, {{time}}' 49166 }; 49167 var formatLong = { 49168 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 49169 formats: dateFormats, 49170 defaultWidth: 'full' 49171 }), 49172 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 49173 formats: timeFormats, 49174 defaultWidth: 'full' 49175 }), 49176 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 49177 formats: dateTimeFormats, 49178 defaultWidth: 'full' 49179 }) 49180 }; 49181 /* harmony default export */ 49182 __webpack_exports__["a"] = (formatLong); 49183 49184 /***/ 49185 }), 49186 /* 654 */ 49187 /***/ (function (module, __webpack_exports__, __webpack_require__) { 49188 49189 "use strict"; 49190 /* harmony export (immutable) */ 49191 __webpack_exports__["a"] = formatRelative; 49192 var formatRelativeLocale = { 49193 lastWeek: "'á¬ááá' eeee LT'-áá'", 49194 yesterday: "'áá£á¨áá' LT'-áá'", 49195 today: "'áá¦áá¡' LT'-áá'", 49196 tomorrow: "'á®ááá' LT'-áá'", 49197 nextWeek: "'á¨áááááá' eeee LT'-áá'", 49198 other: 'L' 49199 }; 49200 49201 function formatRelative(token, _date, _baseDate, _options) { 49202 return formatRelativeLocale[token]; 49203 } 49204 49205 /***/ 49206 }), 49207 /* 655 */ 49208 /***/ (function (module, __webpack_exports__, __webpack_require__) { 49209 49210 "use strict"; 49211 /* harmony import */ 49212 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 49213 49214 var eraValues = { 49215 narrow: ['á©.á¬-ááá', 'á©.á¬'], 49216 abbreviated: ['á©á.á¬-ááá', 'á©á.á¬'], 49217 wide: ['á©áááá¡ á¬ááááá¦á ááªá®ááááá', 'á©áááá á¬ááááá¦á ááªá®ááá'] 49218 }; 49219 var quarterValues = { 49220 narrow: ['1', '2', '3', '4'], 49221 abbreviated: ['1-áá áá', '2-á áá', '3-á áá', '4-á áá'], 49222 wide: ['1-áá áááá á¢ááá', '2-á áááá á¢ááá', '3-á áááá á¢ááá', '4-á áááá á¢ááá'] // Note: in English, the names of days of the week and months are capitalized. 49223 // If you are making a new locale based on this one, check if the same is true for the language you're working on. 49224 // Generally, formatted dates should look like they are in the middle of a sentence, 49225 // e.g. in Spanish language the weekdays and months should be in the lowercase. 49226 49227 }; 49228 var monthValues = { 49229 narrow: ['áá', 'áá', 'áá', 'áá', 'áá¡', 'áá', 'áá', 'áá', 'á¡á', 'áá¥', 'áá', 'áá'], 49230 abbreviated: ['ááá', 'ááá', 'ááá ', 'ááá ', 'ááá', 'ááá', 'ááá', 'ááá', 'á¡áá¥', 'áá¥á¢', 'ááá', 'ááá'], 49231 wide: ['áááááá á', 'ááááá áááá', 'ááá á¢á', 'ááá ááá', 'áááá¡á', 'ááááá¡á', 'ááááá¡á', 'ááááá¡á¢á', 'á¡áá¥á¢ááááá á', 'áá¥á¢ááááá á', 'ááááááá á', 'áááááááá á'] 49232 }; 49233 var dayValues = { 49234 narrow: ['áá', 'áá ', 'á¡á', 'áá', 'á®á£', 'áá', 'á¨á'], 49235 short: ['ááá', 'áá á¨', 'á¡áá', 'ááá®', 'á®á£á', 'ááá ', 'á¨áá'], 49236 abbreviated: ['ááá', 'áá á¨', 'á¡áá', 'ááá®', 'á®á£á', 'ááá ', 'á¨áá'], 49237 wide: ['áááá á', 'áá á¨ááááá', 'á¡ááá¨ááááá', 'ááá®á¨ááááá', 'á®á£áá¨ááááá', 'ááá áá¡áááá', 'á¨ááááá'] 49238 }; 49239 var dayPeriodValues = { 49240 narrow: { 49241 am: 'a', 49242 pm: 'p', 49243 midnight: 'á¨á£áá¦ááá', 49244 noon: 'á¨á£ááá¦á', 49245 morning: 'áááá', 49246 afternoon: 'á¡áá¦ááá', 49247 evening: 'á¡áá¦ááá', 49248 night: 'á¦ááá' 49249 }, 49250 abbreviated: { 49251 am: 'AM', 49252 pm: 'PM', 49253 midnight: 'á¨á£áá¦ááá', 49254 noon: 'á¨á£ááá¦á', 49255 morning: 'áááá', 49256 afternoon: 'á¡áá¦ááá', 49257 evening: 'á¡áá¦ááá', 49258 night: 'á¦ááá' 49259 }, 49260 wide: { 49261 am: 'a.m.', 49262 pm: 'p.m.', 49263 midnight: 'á¨á£áá¦ááá', 49264 noon: 'á¨á£ááá¦á', 49265 morning: 'áááá', 49266 afternoon: 'á¡áá¦ááá', 49267 evening: 'á¡áá¦ááá', 49268 night: 'á¦ááá' 49269 } 49270 }; 49271 var formattingDayPeriodValues = { 49272 narrow: { 49273 am: 'a', 49274 pm: 'p', 49275 midnight: 'á¨á£áá¦áááá', 49276 noon: 'á¨á£ááá¦áá¡áá¡', 49277 morning: 'ááááá', 49278 afternoon: 'ááá¨á£ááá¦ááá¡', 49279 evening: 'á¡áá¦áááá¡', 49280 night: 'á¦áááá' 49281 }, 49282 abbreviated: { 49283 am: 'AM', 49284 pm: 'PM', 49285 midnight: 'á¨á£áá¦áááá', 49286 noon: 'á¨á£ááá¦áá¡áá¡', 49287 morning: 'ááááá', 49288 afternoon: 'ááá¨á£ááá¦ááá¡', 49289 evening: 'á¡áá¦áááá¡', 49290 night: 'á¦áááá' 49291 }, 49292 wide: { 49293 am: 'a.m.', 49294 pm: 'p.m.', 49295 midnight: 'á¨á£áá¦áááá', 49296 noon: 'á¨á£ááá¦áá¡áá¡', 49297 morning: 'ááááá', 49298 afternoon: 'ááá¨á£ááá¦ááá¡', 49299 evening: 'á¡áá¦áááá¡', 49300 night: 'á¦áááá' 49301 } 49302 }; 49303 49304 function ordinalNumber(dirtyNumber, _dirtyOptions) { 49305 var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, 49306 // if they are different for different grammatical genders, 49307 // use `options.unit`: 49308 // 49309 // var options = dirtyOptions || {} 49310 // var unit = String(options.unit) 49311 // 49312 // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', 49313 // 'day', 'hour', 'minute', 'second' 49314 49315 if (number === 1) { 49316 return number + '-áá'; 49317 } 49318 49319 return number + '-á'; 49320 } 49321 49322 var localize = { 49323 ordinalNumber: ordinalNumber, 49324 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 49325 values: eraValues, 49326 defaultWidth: 'wide' 49327 }), 49328 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 49329 values: quarterValues, 49330 defaultWidth: 'wide', 49331 argumentCallback: function (quarter) { 49332 return Number(quarter) - 1; 49333 } 49334 }), 49335 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 49336 values: monthValues, 49337 defaultWidth: 'wide' 49338 }), 49339 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 49340 values: dayValues, 49341 defaultWidth: 'wide' 49342 }), 49343 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 49344 values: dayPeriodValues, 49345 defaultWidth: 'wide', 49346 formattingValues: formattingDayPeriodValues, 49347 defaultFormattingWidth: 'wide' 49348 }) 49349 }; 49350 /* harmony default export */ 49351 __webpack_exports__["a"] = (localize); 49352 49353 /***/ 49354 }), 49355 /* 656 */ 49356 /***/ (function (module, __webpack_exports__, __webpack_require__) { 49357 49358 "use strict"; 49359 /* harmony import */ 49360 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 49361 /* harmony import */ 49362 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 49363 49364 49365 var matchOrdinalNumberPattern = /^(\d+)(-áá|-á)?/i; 49366 var parseOrdinalNumberPattern = /\d+/i; 49367 var matchEraPatterns = { 49368 narrow: /^(á©á?\.á¬)/i, 49369 abbreviated: /^(á©á?\.á¬)/i, 49370 wide: /^(á©áááá¡ á¬ááááá¦á ááªá®ááááá|á¥á áá¡á¢áá¨áááááá|á©áááá á¬ááááá¦á ááªá®ááá|á¥á áá¡á¢áá¨áááááá)/i 49371 }; 49372 var parseEraPatterns = { 49373 any: [/^(á©áááá¡ á¬ááááá¦á ááªá®ááááá|á¥á áá¡á¢áá¨áááááá)/i, /^(á©áááá á¬ááááá¦á ááªá®ááá|á¥á áá¡á¢áá¨áááááá)/i] 49374 }; 49375 var matchQuarterPatterns = { 49376 narrow: /^[1234]/i, 49377 abbreviated: /^[1234]-(áá|á)? áá/i, 49378 wide: /^[1234]-(áá|á)? áááá á¢ááá/i 49379 }; 49380 var parseQuarterPatterns = { 49381 any: [/1/i, /2/i, /3/i, /4/i] 49382 }; 49383 var matchMonthPatterns = { 49384 any: /^(áá|áá|áá|áá|áá¡|áá|áá|áá|á¡á|áá¥|áá|áá)/i 49385 }; 49386 var parseMonthPatterns = { 49387 any: [/^áá/i, /^á/i, /^ááá /i, /^áá/i, /^ááá/i, /^á?áá/i, /^á?áá/i, /^áá/i, /^á¡/i, /^á/i, /^á/i, /^á/i] 49388 }; 49389 var matchDayPatterns = { 49390 narrow: /^(áá|áá |á¡á|áá|á®á£|áá|á¨á)/i, 49391 short: /^(ááá|áá á¨|á¡áá|ááá®|á®á£á|ááá |á¨áá)/i, 49392 long: /^(áááá á|áá á¨ááááá|á¡ááá¨ááááá|ááá®á¨ááááá|á®á£áá¨ááááá|ááá áá¡áááá|á¨ááááá)/i 49393 }; 49394 var parseDayPatterns = { 49395 any: [/^áá/i, /^áá /i, /^á¡á/i, /^áá/i, /^á®á£/i, /^áá/i, /^á¨á/i] 49396 }; 49397 var matchDayPeriodPatterns = { 49398 any: /^([ap]\.?\s?m\.?|á¨á£áá¦|ááá)/i 49399 }; 49400 var parseDayPeriodPatterns = { 49401 any: { 49402 am: /^a/i, 49403 pm: /^p/i, 49404 midnight: /^á¨á£áá¦/i, 49405 noon: /^á¨á£ááá¦/i, 49406 morning: /^ááá/i, 49407 afternoon: /ááá¨á£ááá¦ááá¡/i, 49408 evening: /á¡áá¦ááá/i, 49409 night: /á¦áá/i 49410 } 49411 }; 49412 var match = { 49413 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 49414 matchPattern: matchOrdinalNumberPattern, 49415 parsePattern: parseOrdinalNumberPattern, 49416 valueCallback: function (value) { 49417 return parseInt(value, 10); 49418 } 49419 }), 49420 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 49421 matchPatterns: matchEraPatterns, 49422 defaultMatchWidth: 'wide', 49423 parsePatterns: parseEraPatterns, 49424 defaultParseWidth: 'any' 49425 }), 49426 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 49427 matchPatterns: matchQuarterPatterns, 49428 defaultMatchWidth: 'wide', 49429 parsePatterns: parseQuarterPatterns, 49430 defaultParseWidth: 'any', 49431 valueCallback: function (index) { 49432 return index + 1; 49433 } 49434 }), 49435 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 49436 matchPatterns: matchMonthPatterns, 49437 defaultMatchWidth: 'wide', 49438 parsePatterns: parseMonthPatterns, 49439 defaultParseWidth: 'any' 49440 }), 49441 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 49442 matchPatterns: matchDayPatterns, 49443 defaultMatchWidth: 'wide', 49444 parsePatterns: parseDayPatterns, 49445 defaultParseWidth: 'any' 49446 }), 49447 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 49448 matchPatterns: matchDayPeriodPatterns, 49449 defaultMatchWidth: 'any', 49450 parsePatterns: parseDayPeriodPatterns, 49451 defaultParseWidth: 'any' 49452 }) 49453 }; 49454 /* harmony default export */ 49455 __webpack_exports__["a"] = (match); 49456 49457 /***/ 49458 }), 49459 /* 657 */ 49460 /***/ (function (module, __webpack_exports__, __webpack_require__) { 49461 49462 "use strict"; 49463 /* harmony import */ 49464 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(658); 49465 /* harmony import */ 49466 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(659); 49467 /* harmony import */ 49468 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(660); 49469 /* harmony import */ 49470 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(661); 49471 /* harmony import */ 49472 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(662); 49473 49474 49475 /** 49476 * @type {Locale} 49477 * @category Locales 49478 * @summary Kazakh locale. 49479 * @language Kazakh 49480 * @iso-639-2 kaz 49481 * @author Nikita Bayev [@drugoi]{@link https://github.com/drugoi} 49482 */ 49483 49484 var locale = { 49485 code: 'kk', 49486 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 49487 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 49488 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 49489 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 49490 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 49491 options: { 49492 weekStartsOn: 1 49493 /* Monday */ 49494 , 49495 firstWeekContainsDate: 1 49496 } 49497 }; 49498 /* harmony default export */ 49499 __webpack_exports__["a"] = (locale); 49500 49501 /***/ 49502 }), 49503 /* 658 */ 49504 /***/ (function (module, __webpack_exports__, __webpack_require__) { 49505 49506 "use strict"; 49507 /* harmony export (immutable) */ 49508 __webpack_exports__["a"] = formatDistance; 49509 49510 function declension(scheme, count) { 49511 // scheme for count=1 exists 49512 if (scheme.one !== undefined && count === 1) { 49513 return scheme.one; 49514 } 49515 49516 var rem10 = count % 10; 49517 var rem100 = count % 100; // 1, 21, 31, ... 49518 49519 if (rem10 === 1 && rem100 !== 11) { 49520 return scheme.singularNominative.replace('{{count}}', count); // 2, 3, 4, 22, 23, 24, 32 ... 49521 } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { 49522 return scheme.singularGenitive.replace('{{count}}', count); // 5, 6, 7, 8, 9, 10, 11, ... 49523 } else { 49524 return scheme.pluralGenitive.replace('{{count}}', count); 49525 } 49526 } 49527 49528 function buildLocalizeTokenFn(scheme) { 49529 return function (count, options) { 49530 if (options.addSuffix) { 49531 if (options.comparison > 0) { 49532 if (scheme.future) { 49533 return declension(scheme.future, count); 49534 } else { 49535 return declension(scheme.regular, count) + ' кейÑн'; 49536 } 49537 } else { 49538 if (scheme.past) { 49539 return declension(scheme.past, count); 49540 } else { 49541 return declension(scheme.regular, count) + ' бұÑÑн'; 49542 } 49543 } 49544 } else { 49545 return declension(scheme.regular, count); 49546 } 49547 }; 49548 } 49549 49550 var formatDistanceLocale = { 49551 lessThanXSeconds: buildLocalizeTokenFn({ 49552 regular: { 49553 one: '1 ÑекÑндÑан аз', 49554 singularNominative: '{{count}} ÑекÑндÑан аз', 49555 singularGenitive: '{{count}} ÑекÑндÑан аз', 49556 pluralGenitive: '{{count}} ÑекÑндÑан аз' 49557 }, 49558 future: { 49559 one: 'бÑÑ ÑекÑндÑан кейÑн', 49560 singularNominative: '{{count}} ÑекÑндÑан кейÑн', 49561 singularGenitive: '{{count}} ÑекÑндÑан кейÑн', 49562 pluralGenitive: '{{count}} ÑекÑндÑан кейÑн' 49563 } 49564 }), 49565 xSeconds: buildLocalizeTokenFn({ 49566 regular: { 49567 singularNominative: '{{count}} ÑекÑнд', 49568 singularGenitive: '{{count}} ÑекÑнд', 49569 pluralGenitive: '{{count}} ÑекÑнд' 49570 }, 49571 past: { 49572 singularNominative: '{{count}} ÑекÑнд бұÑÑн', 49573 singularGenitive: '{{count}} ÑекÑнд бұÑÑн', 49574 pluralGenitive: '{{count}} ÑекÑнд бұÑÑн' 49575 }, 49576 future: { 49577 singularNominative: '{{count}} ÑекÑндÑан кейÑн', 49578 singularGenitive: '{{count}} ÑекÑндÑан кейÑн', 49579 pluralGenitive: '{{count}} ÑекÑндÑан кейÑн' 49580 } 49581 }), 49582 halfAMinute: function (_, options) { 49583 if (options.addSuffix) { 49584 if (options.comparison > 0) { 49585 return 'жаÑÑÑ Ð¼Ð¸Ð½ÑÑ ÑÑÑнде'; 49586 } else { 49587 return 'жаÑÑÑ Ð¼Ð¸Ð½ÑÑ Ð±Ò±ÑÑн'; 49588 } 49589 } 49590 49591 return 'жаÑÑÑ Ð¼Ð¸Ð½ÑÑ'; 49592 }, 49593 lessThanXMinutes: buildLocalizeTokenFn({ 49594 regular: { 49595 one: '1 минÑÑÑан аз', 49596 singularNominative: '{{count}} минÑÑÑан аз', 49597 singularGenitive: '{{count}} минÑÑÑан аз', 49598 pluralGenitive: '{{count}} минÑÑÑан аз' 49599 }, 49600 future: { 49601 one: 'минÑÑÑан кем ', 49602 singularNominative: '{{count}} минÑÑÑан кем', 49603 singularGenitive: '{{count}} минÑÑÑан кем', 49604 pluralGenitive: '{{count}} минÑÑÑан кем' 49605 } 49606 }), 49607 xMinutes: buildLocalizeTokenFn({ 49608 regular: { 49609 singularNominative: '{{count}} минÑÑ', 49610 singularGenitive: '{{count}} минÑÑ', 49611 pluralGenitive: '{{count}} минÑÑ' 49612 }, 49613 past: { 49614 singularNominative: '{{count}} минÑÑ Ð±Ò±ÑÑн', 49615 singularGenitive: '{{count}} минÑÑ Ð±Ò±ÑÑн', 49616 pluralGenitive: '{{count}} минÑÑ Ð±Ò±ÑÑн' 49617 }, 49618 future: { 49619 singularNominative: '{{count}} минÑÑÑан кейÑн', 49620 singularGenitive: '{{count}} минÑÑÑан кейÑн', 49621 pluralGenitive: '{{count}} минÑÑÑан кейÑн' 49622 } 49623 }), 49624 aboutXHours: buildLocalizeTokenFn({ 49625 regular: { 49626 singularNominative: 'Ñамамен {{count}} ÑаÒаÑ', 49627 singularGenitive: 'Ñамамен {{count}} ÑаÒаÑ', 49628 pluralGenitive: 'Ñамамен {{count}} ÑаÒаÑ' 49629 }, 49630 future: { 49631 singularNominative: 'Ñамамен {{count}} ÑаÒаÑÑан кейÑн', 49632 singularGenitive: 'Ñамамен {{count}} ÑаÒаÑÑан кейÑн', 49633 pluralGenitive: 'Ñамамен {{count}} ÑаÒаÑÑан кейÑн' 49634 } 49635 }), 49636 xHours: buildLocalizeTokenFn({ 49637 regular: { 49638 singularNominative: '{{count}} ÑаÒаÑ', 49639 singularGenitive: '{{count}} ÑаÒаÑ', 49640 pluralGenitive: '{{count}} ÑаÒаÑ' 49641 } 49642 }), 49643 xDays: buildLocalizeTokenFn({ 49644 regular: { 49645 singularNominative: '{{count}} күн', 49646 singularGenitive: '{{count}} күн', 49647 pluralGenitive: '{{count}} күн' 49648 }, 49649 future: { 49650 singularNominative: '{{count}} күннен кейÑн', 49651 singularGenitive: '{{count}} күннен кейÑн', 49652 pluralGenitive: '{{count}} күннен кейÑн' 49653 } 49654 }), 49655 aboutXWeeks: { 49656 one: 'Ñамамен 1 апÑа', 49657 other: 'Ñамамен {{count}} апÑа' 49658 }, 49659 xWeeks: { 49660 one: '1 апÑа', 49661 other: '{{count}} апÑа' 49662 }, 49663 aboutXMonths: buildLocalizeTokenFn({ 49664 regular: { 49665 singularNominative: 'Ñамамен {{count}} ай', 49666 singularGenitive: 'Ñамамен {{count}} ай', 49667 pluralGenitive: 'Ñамамен {{count}} ай' 49668 }, 49669 future: { 49670 singularNominative: 'Ñамамен {{count}} айдан кейÑн', 49671 singularGenitive: 'Ñамамен {{count}} айдан кейÑн', 49672 pluralGenitive: 'Ñамамен {{count}} айдан кейÑн' 49673 } 49674 }), 49675 xMonths: buildLocalizeTokenFn({ 49676 regular: { 49677 singularNominative: '{{count}} ай', 49678 singularGenitive: '{{count}} ай', 49679 pluralGenitive: '{{count}} ай' 49680 } 49681 }), 49682 aboutXYears: buildLocalizeTokenFn({ 49683 regular: { 49684 singularNominative: 'Ñамамен {{count}} жÑл', 49685 singularGenitive: 'Ñамамен {{count}} жÑл', 49686 pluralGenitive: 'Ñамамен {{count}} жÑл' 49687 }, 49688 future: { 49689 singularNominative: 'Ñамамен {{count}} жÑлдан кейÑн', 49690 singularGenitive: 'Ñамамен {{count}} жÑлдан кейÑн', 49691 pluralGenitive: 'Ñамамен {{count}} жÑлдан кейÑн' 49692 } 49693 }), 49694 xYears: buildLocalizeTokenFn({ 49695 regular: { 49696 singularNominative: '{{count}} жÑл', 49697 singularGenitive: '{{count}} жÑл', 49698 pluralGenitive: '{{count}} жÑл' 49699 }, 49700 future: { 49701 singularNominative: '{{count}} жÑлдан кейÑн', 49702 singularGenitive: '{{count}} жÑлдан кейÑн', 49703 pluralGenitive: '{{count}} жÑлдан кейÑн' 49704 } 49705 }), 49706 overXYears: buildLocalizeTokenFn({ 49707 regular: { 49708 singularNominative: '{{count}} жÑлдан аÑÑам', 49709 singularGenitive: '{{count}} жÑлдан аÑÑам', 49710 pluralGenitive: '{{count}} жÑлдан аÑÑам' 49711 }, 49712 future: { 49713 singularNominative: '{{count}} жÑлдан аÑÑам', 49714 singularGenitive: '{{count}} жÑлдан аÑÑам', 49715 pluralGenitive: '{{count}} жÑлдан аÑÑам' 49716 } 49717 }), 49718 almostXYears: buildLocalizeTokenFn({ 49719 regular: { 49720 singularNominative: '{{count}} жÑлÒа жаÒÑн', 49721 singularGenitive: '{{count}} жÑлÒа жаÒÑн', 49722 pluralGenitive: '{{count}} жÑлÒа жаÒÑн' 49723 }, 49724 future: { 49725 singularNominative: '{{count}} жÑлдан кейÑн', 49726 singularGenitive: '{{count}} жÑлдан кейÑн', 49727 pluralGenitive: '{{count}} жÑлдан кейÑн' 49728 } 49729 }) 49730 }; 49731 49732 function formatDistance(token, count, options) { 49733 options = options || {}; 49734 return formatDistanceLocale[token](count, options); 49735 } 49736 49737 /***/ 49738 }), 49739 /* 659 */ 49740 /***/ (function (module, __webpack_exports__, __webpack_require__) { 49741 49742 "use strict"; 49743 /* harmony import */ 49744 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 49745 49746 var dateFormats = { 49747 full: "EEEE, do MMMM y 'ж.'", 49748 long: "do MMMM y 'ж.'", 49749 medium: "d MMM y 'ж.'", 49750 short: 'dd.MM.yyyy' 49751 }; 49752 var timeFormats = { 49753 full: 'H:mm:ss zzzz', 49754 long: 'H:mm:ss z', 49755 medium: 'H:mm:ss', 49756 short: 'H:mm' 49757 }; 49758 var dateTimeFormats = { 49759 any: '{{date}}, {{time}}' 49760 }; 49761 var formatLong = { 49762 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 49763 formats: dateFormats, 49764 defaultWidth: 'full' 49765 }), 49766 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 49767 formats: timeFormats, 49768 defaultWidth: 'full' 49769 }), 49770 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 49771 formats: dateTimeFormats, 49772 defaultWidth: 'any' 49773 }) 49774 }; 49775 /* harmony default export */ 49776 __webpack_exports__["a"] = (formatLong); 49777 49778 /***/ 49779 }), 49780 /* 660 */ 49781 /***/ (function (module, __webpack_exports__, __webpack_require__) { 49782 49783 "use strict"; 49784 /* harmony export (immutable) */ 49785 __webpack_exports__["a"] = formatRelative; 49786 /* harmony import */ 49787 var __WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__ = __webpack_require__(13); 49788 49789 var accusativeWeekdays = ['жекÑенбÑде', 'дүйÑенбÑде', 'ÑейÑенбÑде', 'ÑÓÑÑенбÑде', 'бейÑенбÑде', 'жұмада', 'ÑенбÑде']; 49790 49791 function lastWeek(day) { 49792 var weekday = accusativeWeekdays[day]; 49793 return "'Ó©Ñкен " + weekday + " ÑаÒаÑ' p'-де'"; 49794 } 49795 49796 function thisWeek(day) { 49797 var weekday = accusativeWeekdays[day]; 49798 return "'" + weekday + " ÑаÒаÑ' p'-де'"; 49799 } 49800 49801 function nextWeek(day) { 49802 var weekday = accusativeWeekdays[day]; 49803 return "'келеÑÑ " + weekday + " ÑаÒаÑ' p'-де'"; 49804 } 49805 49806 var formatRelativeLocale = { 49807 lastWeek: function (date, baseDate, options) { 49808 var day = date.getUTCDay(); 49809 49810 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](date, baseDate, options)) { 49811 return thisWeek(day); 49812 } else { 49813 return lastWeek(day); 49814 } 49815 }, 49816 yesterday: "'кеÑе ÑаÒаÑ' p'-де'", 49817 today: "'бүгÑн ÑаÒаÑ' p'-де'", 49818 tomorrow: "'еÑÑең ÑаÒаÑ' p'-де'", 49819 nextWeek: function (date, baseDate, options) { 49820 var day = date.getUTCDay(); 49821 49822 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](date, baseDate, options)) { 49823 return thisWeek(day); 49824 } else { 49825 return nextWeek(day); 49826 } 49827 }, 49828 other: 'P' 49829 }; 49830 49831 function formatRelative(token, date, baseDate, options) { 49832 var format = formatRelativeLocale[token]; 49833 49834 if (typeof format === 'function') { 49835 return format(date, baseDate, options); 49836 } 49837 49838 return format; 49839 } 49840 49841 /***/ 49842 }), 49843 /* 661 */ 49844 /***/ (function (module, __webpack_exports__, __webpack_require__) { 49845 49846 "use strict"; 49847 /* harmony import */ 49848 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 49849 49850 var eraValues = { 49851 narrow: ['б.з.д.', 'б.з.'], 49852 abbreviated: ['б.з.д.', 'б.з.'], 49853 wide: ['бÑздÑÒ£ заманÑмÑзÒа дейÑн', 'бÑздÑÒ£ заманÑмÑз'] 49854 }; 49855 var quarterValues = { 49856 narrow: ['1', '2', '3', '4'], 49857 abbreviated: ['1-ÑÑ ÑоÒ.', '2-ÑÑ ÑоÒ.', '3-ÑÑ ÑоÒ.', '4-ÑÑ ÑоÒ.'], 49858 wide: ['1-ÑÑ ÑоÒÑан', '2-ÑÑ ÑоÒÑан', '3-ÑÑ ÑоÒÑан', '4-ÑÑ ÑоÒÑан'] 49859 }; 49860 var monthValues = { 49861 narrow: ['Ò', 'Ð', 'Ð', 'С', 'Ð', 'Ð', 'Ш', 'Т', 'Ò', 'Ò', 'Ò', 'Ð'], 49862 abbreviated: ['Òаң', 'аÒп', 'наÑ', 'ÑÓÑ', 'мам', 'маÑ', 'ÑÑл', 'Ñам', 'ÒÑÑ', 'Òаз', 'ÒаÑ', 'жел'], 49863 wide: ['ÒаңÑаÑ', 'аÒпан', 'наÑÑÑз', 'ÑÓÑÑÑ', 'мамÑÑ', 'маÑÑÑм', 'ÑÑлде', 'ÑамÑз', 'ÒÑÑкүйек', 'Òазан', 'ÒаÑаÑа', 'желÑоÒÑан'] 49864 }; 49865 var formattingMonthValues = { 49866 narrow: ['Ò', 'Ð', 'Ð', 'С', 'Ð', 'Ð', 'Ш', 'Т', 'Ò', 'Ò', 'Ò', 'Ð'], 49867 abbreviated: ['Òаң', 'аÒп', 'наÑ', 'ÑÓÑ', 'мам', 'маÑ', 'ÑÑл', 'Ñам', 'ÒÑÑ', 'Òаз', 'ÒаÑ', 'жел'], 49868 wide: ['ÒаңÑаÑ', 'аÒпан', 'наÑÑÑз', 'ÑÓÑÑÑ', 'мамÑÑ', 'маÑÑÑм', 'ÑÑлде', 'ÑамÑз', 'ÒÑÑкүйек', 'Òазан', 'ÒаÑаÑа', 'желÑоÒÑан'] 49869 }; 49870 var dayValues = { 49871 narrow: ['Ð', 'Ð', 'С', 'С', 'Ð', 'Ð', 'С'], 49872 short: ['жÑ', 'дÑ', 'ÑÑ', 'ÑÑ', 'бÑ', 'жм', 'Ñб'], 49873 abbreviated: ['жÑ', 'дÑ', 'ÑÑ', 'ÑÑ', 'бÑ', 'жм', 'Ñб'], 49874 wide: ['жекÑенбÑ', 'дүйÑенбÑ', 'ÑейÑенбÑ', 'ÑÓÑÑенбÑ', 'бейÑенбÑ', 'жұма', 'ÑенбÑ'] 49875 }; 49876 var dayPeriodValues = { 49877 narrow: { 49878 am: 'ТÐ', 49879 pm: 'ТÐ', 49880 midnight: 'Ñүн оÑÑаÑÑ', 49881 noon: 'ÑÒ¯Ñ', 49882 morning: 'Ñаң', 49883 afternoon: 'күндÑз', 49884 evening: 'кеÑ', 49885 night: 'Ñүн' 49886 }, 49887 wide: { 49888 am: 'ТÐ', 49889 pm: 'ТÐ', 49890 midnight: 'Ñүн оÑÑаÑÑ', 49891 noon: 'ÑÒ¯Ñ', 49892 morning: 'Ñаң', 49893 afternoon: 'күндÑз', 49894 evening: 'кеÑ', 49895 night: 'Ñүн' 49896 } 49897 }; 49898 var formattingDayPeriodValues = { 49899 narrow: { 49900 am: 'ТÐ', 49901 pm: 'ТÐ', 49902 midnight: 'Ñүн оÑÑаÑÑнда', 49903 noon: 'ÑÒ¯Ñ', 49904 morning: 'Ñаң', 49905 afternoon: 'күн', 49906 evening: 'кеÑ', 49907 night: 'Ñүн' 49908 }, 49909 wide: { 49910 am: 'ТÐ', 49911 pm: 'ТÐ', 49912 midnight: 'Ñүн оÑÑаÑÑнда', 49913 noon: 'ÑÒ¯ÑÑе', 49914 morning: 'ÑаңеÑÑең', 49915 afternoon: 'күндÑз', 49916 evening: 'кеÑÑе', 49917 night: 'Ñүнде' 49918 } 49919 }; 49920 49921 function ordinalNumber(dirtyNumber, dirtyOptions) { 49922 var options = dirtyOptions || {}; 49923 var unit = String(options.unit); 49924 var suffix; 49925 49926 if (unit === 'date') { 49927 suffix = '-ÑÑ'; 49928 } else if (unit === 'week' || unit === 'minute' || unit === 'second') { 49929 suffix = '-ÑÑ'; 49930 } else { 49931 suffix = '-ÑÑ'; 49932 } 49933 49934 return dirtyNumber + suffix; 49935 } 49936 49937 var localize = { 49938 ordinalNumber: ordinalNumber, 49939 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 49940 values: eraValues, 49941 defaultWidth: 'wide' 49942 }), 49943 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 49944 values: quarterValues, 49945 defaultWidth: 'wide', 49946 argumentCallback: function (quarter) { 49947 return Number(quarter) - 1; 49948 } 49949 }), 49950 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 49951 values: monthValues, 49952 defaultWidth: 'wide', 49953 formattingValues: formattingMonthValues, 49954 defaultFormattingWidth: 'wide' 49955 }), 49956 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 49957 values: dayValues, 49958 defaultWidth: 'wide' 49959 }), 49960 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 49961 values: dayPeriodValues, 49962 defaultWidth: 'any', 49963 formattingValues: formattingDayPeriodValues, 49964 defaultFormattingWidth: 'wide' 49965 }) 49966 }; 49967 /* harmony default export */ 49968 __webpack_exports__["a"] = (localize); 49969 49970 /***/ 49971 }), 49972 /* 662 */ 49973 /***/ (function (module, __webpack_exports__, __webpack_require__) { 49974 49975 "use strict"; 49976 /* harmony import */ 49977 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 49978 /* harmony import */ 49979 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 49980 49981 49982 var matchOrdinalNumberPattern = /^(\d+)(-?(ÑÑ|ÑÑ))?/i; 49983 var parseOrdinalNumberPattern = /\d+/i; 49984 var matchEraPatterns = { 49985 narrow: /^((б )?з\.?\s?д\.?)/i, 49986 abbreviated: /^((б )?з\.?\s?д\.?)/i, 49987 wide: /^(бÑздÑÒ£ заманÑмÑзÒа дейÑн|бÑздÑÒ£ заманÑмÑз|бÑздÑÒ£ заманÑмÑздан)/i 49988 }; 49989 var parseEraPatterns = { 49990 any: [/^б/i, /^з/i] 49991 }; 49992 var matchQuarterPatterns = { 49993 narrow: /^[1234]/i, 49994 abbreviated: /^[1234](-?ÑÑ)? ÑоÒ.?/i, 49995 wide: /^[1234](-?ÑÑ)? ÑоÒÑан/i 49996 }; 49997 var parseQuarterPatterns = { 49998 any: [/1/i, /2/i, /3/i, /4/i] 49999 }; 50000 var matchMonthPatterns = { 50001 narrow: /^(Ò|а|н|Ñ|м|маÑ|Ñ|Ñ|ÒÑÑ|Òаз|ÒаÑ|ж)/i, 50002 abbreviated: /^(Òаң|аÒп|наÑ|ÑÓÑ|мам|маÑ|ÑÑл|Ñам|ÒÑÑ|Òаз|ÒаÑ|жел)/i, 50003 wide: /^(ÒаңÑаÑ|аÒпан|наÑÑÑз|ÑÓÑÑÑ|мамÑÑ|маÑÑÑм|ÑÑлде|ÑамÑз|ÒÑÑкүйек|Òазан|ÒаÑаÑа|желÑоÒÑан)/i 50004 }; 50005 var parseMonthPatterns = { 50006 narrow: [/^Ò/i, /^а/i, /^н/i, /^Ñ/i, /^м/i, /^м/i, /^Ñ/i, /^Ñ/i, /^Ò/i, /^Ò/i, /^Ò/i, /^ж/i], 50007 abbreviated: [/^Òаң/i, /^аÒп/i, /^наÑ/i, /^ÑÓÑ/i, /^мам/i, /^маÑ/i, /^ÑÑл/i, /^Ñам/i, /^ÒÑÑ/i, /^Òаз/i, /^ÒаÑ/i, /^жел/i], 50008 any: [/^Ò/i, /^а/i, /^н/i, /^Ñ/i, /^м/i, /^м/i, /^Ñ/i, /^Ñ/i, /^Ò/i, /^Ò/i, /^Ò/i, /^ж/i] 50009 }; 50010 var matchDayPatterns = { 50011 narrow: /^(ж|д|Ñ|Ñ|б|ж|Ñ)/i, 50012 short: /^(жÑ|дÑ|ÑÑ|ÑÑ|бÑ|жм|Ñб)/i, 50013 wide: /^(жекÑенбÑ|дүйÑенбÑ|ÑейÑенбÑ|ÑÓÑÑенбÑ|бейÑенбÑ|жұма|ÑенбÑ)/i 50014 }; 50015 var parseDayPatterns = { 50016 narrow: [/^ж/i, /^д/i, /^Ñ/i, /^Ñ/i, /^б/i, /^ж/i, /^Ñ/i], 50017 short: [/^жÑ/i, /^дÑ/i, /^ÑÑ/i, /^ÑÑ/i, /^бÑ/i, /^жм/i, /^Ñб/i], 50018 any: [/^ж[ек]/i, /^д[үй]/i, /^Ñe[й]/i, /^ÑÓ[Ñ]/i, /^б[ей]/i, /^ж[ұм]/i, /^Ñе[н]/i] 50019 }; 50020 var matchDayPeriodPatterns = { 50021 narrow: /^Т\.?\s?[ÐÐ]\.?|Ñүн оÑÑаÑÑнда|((ÑÒ¯ÑÑе|ÑаңеÑÑең|Ñаңда|ÑаңеÑÑең|Ñаңмен|Ñаң|күндÑз|күн|кеÑÑе|кеÑ|Ñүнде|Ñүн)\.?)/i, 50022 wide: /^Т\.?\s?[ÐÐ]\.?|Ñүн оÑÑаÑÑнда|((ÑÒ¯ÑÑе|ÑаңеÑÑең|Ñаңда|ÑаңеÑÑең|Ñаңмен|Ñаң|күндÑз|күн|кеÑÑе|кеÑ|Ñүнде|Ñүн)\.?)/i, 50023 any: /^Т\.?\s?[ÐÐ]\.?|Ñүн оÑÑаÑÑнда|((ÑÒ¯ÑÑе|ÑаңеÑÑең|Ñаңда|ÑаңеÑÑең|Ñаңмен|Ñаң|күндÑз|күн|кеÑÑе|кеÑ|Ñүнде|Ñүн)\.?)/i 50024 }; 50025 var parseDayPeriodPatterns = { 50026 any: { 50027 am: /^ТÐ/i, 50028 pm: /^ТÐ/i, 50029 midnight: /^Ñүн оÑÑа/i, 50030 noon: /^күндÑз/i, 50031 morning: /Ñаң/i, 50032 afternoon: /ÑÒ¯Ñ/i, 50033 evening: /кеÑ/i, 50034 night: /Ñүн/i 50035 } 50036 }; 50037 var match = { 50038 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 50039 matchPattern: matchOrdinalNumberPattern, 50040 parsePattern: parseOrdinalNumberPattern, 50041 valueCallback: function (value) { 50042 return parseInt(value, 10); 50043 } 50044 }), 50045 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 50046 matchPatterns: matchEraPatterns, 50047 defaultMatchWidth: 'wide', 50048 parsePatterns: parseEraPatterns, 50049 defaultParseWidth: 'any' 50050 }), 50051 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 50052 matchPatterns: matchQuarterPatterns, 50053 defaultMatchWidth: 'wide', 50054 parsePatterns: parseQuarterPatterns, 50055 defaultParseWidth: 'any', 50056 valueCallback: function (index) { 50057 return index + 1; 50058 } 50059 }), 50060 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 50061 matchPatterns: matchMonthPatterns, 50062 defaultMatchWidth: 'wide', 50063 parsePatterns: parseMonthPatterns, 50064 defaultParseWidth: 'any' 50065 }), 50066 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 50067 matchPatterns: matchDayPatterns, 50068 defaultMatchWidth: 'wide', 50069 parsePatterns: parseDayPatterns, 50070 defaultParseWidth: 'any' 50071 }), 50072 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 50073 matchPatterns: matchDayPeriodPatterns, 50074 defaultMatchWidth: 'wide', 50075 parsePatterns: parseDayPeriodPatterns, 50076 defaultParseWidth: 'any' 50077 }) 50078 }; 50079 /* harmony default export */ 50080 __webpack_exports__["a"] = (match); 50081 50082 /***/ 50083 }), 50084 /* 663 */ 50085 /***/ (function (module, __webpack_exports__, __webpack_require__) { 50086 50087 "use strict"; 50088 /* harmony import */ 50089 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(664); 50090 /* harmony import */ 50091 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(665); 50092 /* harmony import */ 50093 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(666); 50094 /* harmony import */ 50095 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(667); 50096 /* harmony import */ 50097 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(668); 50098 50099 50100 /** 50101 * @type {Locale} 50102 * @category Locales 50103 * @summary Kannada locale (India). 50104 * @language Kannada 50105 * @iso-639-2 kan 50106 * @author Manjunatha Gouli [@developergouli]{@link https://github.com/developergouli} 50107 */ 50108 50109 var locale = { 50110 code: 'kn', 50111 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 50112 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 50113 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 50114 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 50115 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 50116 options: { 50117 weekStartsOn: 1 50118 /* Monday */ 50119 , 50120 firstWeekContainsDate: 1 50121 } 50122 }; 50123 /* harmony default export */ 50124 __webpack_exports__["a"] = (locale); 50125 50126 /***/ 50127 }), 50128 /* 664 */ 50129 /***/ (function (module, __webpack_exports__, __webpack_require__) { 50130 50131 "use strict"; 50132 /* harmony export (immutable) */ 50133 __webpack_exports__["a"] = formatDistance; 50134 var formatDistanceLocale = { 50135 lessThanXSeconds: { 50136 one: { 50137 default: '1 ಸà³à²à³à²à²¡à³âà²à²¿à²à²¤ à²à²¡à²¿à²®à³', 50138 future: '1 ಸà³à²à³à²à²¡à³âà²à²¿à²à²¤ à²à²¡à²¿à²®à³', 50139 past: '1 ಸà³à²à³à²à²¡à³âà²à²¿à²à²¤ à²à²¡à²¿à²®à³' 50140 }, 50141 other: { 50142 default: '{{count}} ಸà³à²à³à²à²¡à³âà²à²¿à²à²¤ à²à²¡à²¿à²®à³', 50143 future: '{{count}} ಸà³à²à³à²à²¡à³âà²à²¿à²à²¤ à²à²¡à²¿à²®à³', 50144 past: '{{count}} ಸà³à²à³à²à²¡à³âà²à²¿à²à²¤ à²à²¡à²¿à²®à³' 50145 } 50146 }, 50147 xSeconds: { 50148 one: { 50149 default: '1 ಸà³à²à³à²à²¡à³', 50150 future: '1 ಸà³à²à³à²à²¡à³âನಲà³à²²à²¿', 50151 past: '1 ಸà³à²à³à²à²¡à³ ಹಿà²à²¦à³' 50152 }, 50153 other: { 50154 default: '{{count}} ಸà³à²à³à²à²¡à³à²à²³à³', 50155 future: '{{count}} ಸà³à²à³à²à²¡à³âà²à²³à²²à³à²²à²¿', 50156 past: '{{count}} ಸà³à²à³à²à²¡à³ ಹಿà²à²¦à³' 50157 } 50158 }, 50159 halfAMinute: { 50160 other: { 50161 default: 'ಠರà³à²§ ನಿಮಿಷ', 50162 future: 'ಠರà³à²§ ನಿಮಿಷದಲà³à²²à²¿', 50163 past: 'ಠರà³à²§ ನಿಮಿಷದ ಹಿà²à²¦à³' 50164 } 50165 }, 50166 lessThanXMinutes: { 50167 one: { 50168 default: '1 ನಿಮಿಷà²à³à²à²¿à²à²¤ à²à²¡à²¿à²®à³', 50169 future: '1 ನಿಮಿಷà²à³à²à²¿à²à²¤ à²à²¡à²¿à²®à³', 50170 past: '1 ನಿಮಿಷà²à³à²à²¿à²à²¤ à²à²¡à²¿à²®à³' 50171 }, 50172 other: { 50173 default: '{{count}} ನಿಮಿಷà²à³à²à²¿à²à²¤ à²à²¡à²¿à²®à³', 50174 future: '{{count}} ನಿಮಿಷà²à³à²à²¿à²à²¤ à²à²¡à²¿à²®à³', 50175 past: '{{count}} ನಿಮಿಷà²à³à²à²¿à²à²¤ à²à²¡à²¿à²®à³' 50176 } 50177 }, 50178 xMinutes: { 50179 one: { 50180 default: '1 ನಿಮಿಷ', 50181 future: '1 ನಿಮಿಷದಲà³à²²à²¿', 50182 past: '1 ನಿಮಿಷದ ಹಿà²à²¦à³' 50183 }, 50184 other: { 50185 default: '{{count}} ನಿಮಿಷà²à²³à³', 50186 future: '{{count}} ನಿಮಿಷà²à²³à²²à³à²²à²¿', 50187 past: '{{count}} ನಿಮಿಷà²à²³ ಹಿà²à²¦à³' 50188 } 50189 }, 50190 aboutXHours: { 50191 one: { 50192 default: 'ಸà³à²®à²¾à²°à³ 1 à²à²à²à³', 50193 future: 'ಸà³à²®à²¾à²°à³ 1 à²à²à²à³à²¯à²²à³à²²à²¿', 50194 past: 'ಸà³à²®à²¾à²°à³ 1 à²à²à²à³ ಹಿà²à²¦à³' 50195 }, 50196 other: { 50197 default: 'ಸà³à²®à²¾à²°à³ {{count}} à²à²à²à³à²à²³à³', 50198 future: 'ಸà³à²®à²¾à²°à³ {{count}} à²à²à²à³à²à²³à²²à³à²²à²¿', 50199 past: 'ಸà³à²®à²¾à²°à³ {{count}} à²à²à²à³à²à²³ ಹಿà²à²¦à³' 50200 } 50201 }, 50202 xHours: { 50203 one: { 50204 default: '1 à²à²à²à³', 50205 future: '1 à²à²à²à³à²¯à²²à³à²²à²¿', 50206 past: '1 à²à²à²à³ ಹಿà²à²¦à³' 50207 }, 50208 other: { 50209 default: '{{count}} à²à²à²à³à²à²³à³', 50210 future: '{{count}} à²à²à²à³à²à²³à²²à³à²²à²¿', 50211 past: '{{count}} à²à²à²à³à²à²³ ಹಿà²à²¦à³' 50212 } 50213 }, 50214 xDays: { 50215 one: { 50216 default: '1 ದಿನ', 50217 future: '1 ದಿನದಲà³à²²à²¿', 50218 past: '1 ದಿನದ ಹಿà²à²¦à³' 50219 }, 50220 other: { 50221 default: '{{count}} ದಿನà²à²³à³', 50222 future: '{{count}} ದಿನà²à²³à²²à³à²²à²¿', 50223 past: '{{count}} ದಿನà²à²³ ಹಿà²à²¦à³' 50224 } 50225 }, 50226 aboutXMonths: { 50227 one: { 50228 default: 'ಸà³à²®à²¾à²°à³ 1 ತಿà²à²à²³à³', 50229 future: 'ಸà³à²®à²¾à²°à³ 1 ತಿà²à²à²³à²²à³à²²à²¿', 50230 past: 'ಸà³à²®à²¾à²°à³ 1 ತಿà²à²à²³ ಹಿà²à²¦à³' 50231 }, 50232 other: { 50233 default: 'ಸà³à²®à²¾à²°à³ {{count}} ತಿà²à²à²³à³', 50234 future: 'ಸà³à²®à²¾à²°à³ {{count}} ತಿà²à²à²³à³à²à²³à²²à³à²²à²¿', 50235 past: 'ಸà³à²®à²¾à²°à³ {{count}} ತಿà²à²à²³à³à²à²³ ಹಿà²à²¦à³' 50236 } 50237 }, 50238 xMonths: { 50239 one: { 50240 default: '1 ತಿà²à²à²³à³', 50241 future: '1 ತಿà²à²à²³à²²à³à²²à²¿', 50242 past: '1 ತಿà²à²à²³ ಹಿà²à²¦à³' 50243 }, 50244 other: { 50245 default: '{{count}} ತಿà²à²à²³à³', 50246 future: '{{count}} ತಿà²à²à²³à³à²à²³à²²à³à²²à²¿', 50247 past: '{{count}} ತಿà²à²à²³à³à²à²³ ಹಿà²à²¦à³' 50248 } 50249 }, 50250 aboutXYears: { 50251 one: { 50252 default: 'ಸà³à²®à²¾à²°à³ 1 ವರà³à²·', 50253 future: 'ಸà³à²®à²¾à²°à³ 1 ವರà³à²·à²¦à²²à³à²²à²¿', 50254 past: 'ಸà³à²®à²¾à²°à³ 1 ವರà³à²·à²¦ ಹಿà²à²¦à³' 50255 }, 50256 other: { 50257 default: 'ಸà³à²®à²¾à²°à³ {{count}} ವರà³à²·à²à²³à³', 50258 future: 'ಸà³à²®à²¾à²°à³ {{count}} ವರà³à²·à²à²³à²²à³à²²à²¿', 50259 past: 'ಸà³à²®à²¾à²°à³ {{count}} ವರà³à²·à²à²³ ಹಿà²à²¦à³' 50260 } 50261 }, 50262 xYears: { 50263 one: { 50264 default: '1 ವರà³à²·', 50265 future: '1 ವರà³à²·à²¦à²²à³à²²à²¿', 50266 past: '1 ವರà³à²·à²¦ ಹಿà²à²¦à³' 50267 }, 50268 other: { 50269 default: '{{count}} ವರà³à²·à²à²³à³', 50270 future: '{{count}} ವರà³à²·à²à²³à²²à³à²²à²¿', 50271 past: '{{count}} ವರà³à²·à²à²³ ಹಿà²à²¦à³' 50272 } 50273 }, 50274 overXYears: { 50275 one: { 50276 default: '1 ವರà³à²·à²¦ ಮà³à²²à³', 50277 future: '1 ವರà³à²·à²¦ ಮà³à²²à³', 50278 past: '1 ವರà³à²·à²¦ ಮà³à²²à³' 50279 }, 50280 other: { 50281 default: '{{count}} ವರà³à²·à²à²³ ಮà³à²²à³', 50282 future: '{{count}} ವರà³à²·à²à²³ ಮà³à²²à³', 50283 past: '{{count}} ವರà³à²·à²à²³ ಮà³à²²à³' 50284 } 50285 }, 50286 almostXYears: { 50287 one: { 50288 default: 'ಬಹà³à²¤à³à² 1 ವರà³à²·à²¦à²²à³à²²à²¿', 50289 future: 'ಬಹà³à²¤à³à² 1 ವರà³à²·à²¦à²²à³à²²à²¿', 50290 past: 'ಬಹà³à²¤à³à² 1 ವರà³à²·à²¦à²²à³à²²à²¿' 50291 }, 50292 other: { 50293 default: 'ಬಹà³à²¤à³à² {{count}} ವರà³à²·à²à²³à²²à³à²²à²¿', 50294 future: 'ಬಹà³à²¤à³à² {{count}} ವರà³à²·à²à²³à²²à³à²²à²¿', 50295 past: 'ಬಹà³à²¤à³à² {{count}} ವರà³à²·à²à²³à²²à³à²²à²¿' 50296 } 50297 } 50298 }; 50299 50300 function getResultByTense(parentToken, options) { 50301 if (options.addSuffix) { 50302 if (options.comparison > 0) { 50303 return parentToken.future; 50304 } else { 50305 return parentToken.past; 50306 } 50307 } 50308 50309 return parentToken.default; 50310 } 50311 50312 function formatDistance(token, count, options) { 50313 options = options || {}; 50314 var result; 50315 50316 if (typeof formatDistanceLocale[token] === 'string') { 50317 result = formatDistanceLocale[token]; 50318 } else if (count === 1) { 50319 result = getResultByTense(formatDistanceLocale[token].one, options); 50320 } else { 50321 result = getResultByTense(formatDistanceLocale[token].other, options); 50322 } 50323 50324 return result.replace('{{count}}', count); 50325 } 50326 50327 /***/ 50328 }), 50329 /* 665 */ 50330 /***/ (function (module, __webpack_exports__, __webpack_require__) { 50331 50332 "use strict"; 50333 /* harmony import */ 50334 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 50335// Reference: https://www.unicode.org/cldr/charts/32/summary/kn.html 50336 50337 var dateFormats = { 50338 full: 'EEEE, MMMM d, y', 50339 // CLDR 1816 50340 long: 'MMMM d, y', 50341 // CLDR 1817 50342 medium: 'MMM d, y', 50343 // CLDR 1818 50344 short: 'd/M/yy' // CLDR 1819 50345 50346 }; 50347 var timeFormats = { 50348 full: 'hh:mm:ss a zzzz', 50349 // CLDR 1820 50350 long: 'hh:mm:ss a z', 50351 // CLDR 1821 50352 medium: 'hh:mm:ss a', 50353 // CLDR 1822 50354 short: 'hh:mm a' // CLDR 1823 50355 50356 }; 50357 var dateTimeFormats = { 50358 full: '{{date}} {{time}}', 50359 // CLDR 1824 50360 long: '{{date}} {{time}}', 50361 // CLDR 1825 50362 medium: '{{date}} {{time}}', 50363 // CLDR 1826 50364 short: '{{date}} {{time}}' // CLDR 1827 50365 50366 }; 50367 var formatLong = { 50368 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 50369 formats: dateFormats, 50370 defaultWidth: 'full' 50371 }), 50372 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 50373 formats: timeFormats, 50374 defaultWidth: 'full' 50375 }), 50376 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 50377 formats: dateTimeFormats, 50378 defaultWidth: 'full' 50379 }) 50380 }; 50381 /* harmony default export */ 50382 __webpack_exports__["a"] = (formatLong); 50383 50384 /***/ 50385 }), 50386 /* 666 */ 50387 /***/ (function (module, __webpack_exports__, __webpack_require__) { 50388 50389 "use strict"; 50390 /* harmony export (immutable) */ 50391 __webpack_exports__["a"] = formatRelative; 50392 var formatRelativeLocale = { 50393 lastWeek: "'à²à²³à³à²¦' eeee p 'à²à³à²à³'", 50394 yesterday: "'ನಿನà³à²¨à³' p 'à²à³à²à³'", 50395 today: "'à²à²à²¦à³' p 'à²à³à²à³'", 50396 tomorrow: "'ನಾಳà³' p 'à²à³à²à³'", 50397 nextWeek: "eeee p 'à²à³à²à³'", 50398 other: 'P' 50399 }; 50400 50401 function formatRelative(token, _date, _baseDate, _options) { 50402 return formatRelativeLocale[token]; 50403 } 50404 50405 /***/ 50406 }), 50407 /* 667 */ 50408 /***/ (function (module, __webpack_exports__, __webpack_require__) { 50409 50410 "use strict"; 50411 /* harmony import */ 50412 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 50413// Reference: https://www.unicode.org/cldr/charts/32/summary/kn.html 50414 50415 var eraValues = { 50416 narrow: ['à²à³à²°à²¿.ಪà³', 'à²à³à²°à²¿.ಶ'], 50417 abbreviated: ['à²à³à²°à²¿.ಪà³', 'à²à³à²°à²¿.ಶ'], 50418 // CLDR #1618, #1620 50419 wide: ['à²à³à²°à²¿à²¸à³à²¤ ಪà³à²°à³à²µ', 'à²à³à²°à²¿à²¸à³à²¤ ಶà²'] // CLDR #1614, #1616 50420 50421 }; 50422 var quarterValues = { 50423 narrow: ['1', '2', '3', '4'], 50424 abbreviated: ['ತà³à²°à³ 1', 'ತà³à²°à³ 2', 'ತà³à²°à³ 3', 'ತà³à²°à³ 4'], 50425 // CLDR #1630 - #1638 50426 wide: ['1ನೠತà³à²°à³à²®à²¾à²¸à²¿à²', '2ನೠತà³à²°à³à²®à²¾à²¸à²¿à²', '3ನೠತà³à²°à³à²®à²¾à²¸à²¿à²', '4ನೠತà³à²°à³à²®à²¾à²¸à²¿à²'] // CLDR #1622 - #1629 50427 // CLDR #1646 - #1717 50428 50429 }; 50430 var monthValues = { 50431 narrow: ['à²', 'ಫà³', 'ಮಾ', 'à²', 'ಮà³', 'à²à³', 'à²à³', 'à²', 'ಸà³', 'ಠ', 'ನ', 'ಡಿ'], 50432 abbreviated: ['à²à²¨', 'ಫà³à²¬à³à²°', 'ಮಾರà³à²à³', 'à²à²ªà³à²°à²¿', 'ಮà³', 'à²à³à²¨à³', 'à²à³à²²à³', 'à²à²', 'ಸà³à²ªà³à²à³à²', 'ಠà²à³à²à³', 'ನವà³à²', 'ಡಿಸà³à²'], 50433 wide: ['à²à²¨à²µà²°à²¿', 'ಫà³à²¬à³à²°à²µà²°à²¿', 'ಮಾರà³à²à³', 'à²à²ªà³à²°à²¿à²²à³', 'ಮà³', 'à²à³à²¨à³', 'à²à³à²²à³', 'à²à²à²¸à³à²à³', 'ಸà³à²ªà³à²à³à²à²¬à²°à³', 'ಠà²à³à²à³à²¬à²°à³', 'ನವà³à²à²¬à²°à³', 'ಡಿಸà³à²à²¬à²°à³'] // CLDR #1718 - #1773 50434 50435 }; 50436 var dayValues = { 50437 narrow: ['à²à²¾', 'ಸà³', 'ಮà²', 'ಬà³', 'à²à³', 'ಶà³', 'ಶ'], 50438 short: ['à²à²¾à²¨à³', 'ಸà³à²®', 'ಮà²à²à²³', 'ಬà³à²§', 'à²à³à²°à³', 'ಶà³à²à³à²°', 'ಶನಿ'], 50439 abbreviated: ['à²à²¾à²¨à³', 'ಸà³à²®', 'ಮà²à²à²³', 'ಬà³à²§', 'à²à³à²°à³', 'ಶà³à²à³à²°', 'ಶನಿ'], 50440 wide: ['à²à²¾à²¨à³à²µà²¾à²°', 'ಸà³à²®à²µà²¾à²°', 'ಮà²à²à²³à²µà²¾à²°', 'ಬà³à²§à²µà²¾à²°', 'à²à³à²°à³à²µà²¾à²°', 'ಶà³à²à³à²°à²µà²¾à²°', 'ಶನಿವಾರ'] // CLDR #1774 - #1815 50441 50442 }; 50443 var dayPeriodValues = { 50444 narrow: { 50445 am: 'ಪà³à²°à³à²µà²¾à²¹à³à²¨', 50446 pm: 'ಠಪರಾಹà³à²¨', 50447 midnight: 'ಮಧà³à²¯à²°à²¾à²¤à³à²°à²¿', 50448 noon: 'ಮಧà³à²¯à²¾à²¹à³à²¨', 50449 morning: 'ಬà³à²³à²à³à²à³', 50450 afternoon: 'ಮಧà³à²¯à²¾à²¹à³à²¨', 50451 evening: 'ಸà²à²à³', 50452 night: 'ರಾತà³à²°à²¿' 50453 }, 50454 abbreviated: { 50455 am: 'ಪà³à²°à³à²µà²¾à²¹à³à²¨', 50456 pm: 'ಠಪರಾಹà³à²¨', 50457 midnight: 'ಮಧà³à²¯à²°à²¾à²¤à³à²°à²¿', 50458 noon: 'ಮಧà³à²¯à²¾à²¨à³à²¹', 50459 morning: 'ಬà³à²³à²à³à²à³', 50460 afternoon: 'ಮಧà³à²¯à²¾à²¨à³à²¹', 50461 evening: 'ಸà²à²à³', 50462 night: 'ರಾತà³à²°à²¿' 50463 }, 50464 wide: { 50465 am: 'ಪà³à²°à³à²µà²¾à²¹à³à²¨', 50466 pm: 'ಠಪರಾಹà³à²¨', 50467 midnight: 'ಮಧà³à²¯à²°à²¾à²¤à³à²°à²¿', 50468 noon: 'ಮಧà³à²¯à²¾à²¨à³à²¹', 50469 morning: 'ಬà³à²³à²à³à²à³', 50470 afternoon: 'ಮಧà³à²¯à²¾à²¨à³à²¹', 50471 evening: 'ಸà²à²à³', 50472 night: 'ರಾತà³à²°à²¿' 50473 } 50474 }; 50475 var formattingDayPeriodValues = { 50476 narrow: { 50477 am: 'ಪà³', 50478 pm: 'ಠ', 50479 midnight: 'ಮಧà³à²¯à²°à²¾à²¤à³à²°à²¿', 50480 noon: 'ಮಧà³à²¯à²¾à²¨à³à²¹', 50481 morning: 'ಬà³à²³à²à³à²à³', 50482 afternoon: 'ಮಧà³à²¯à²¾à²¨à³à²¹', 50483 evening: 'ಸà²à²à³', 50484 night: 'ರಾತà³à²°à²¿' 50485 }, 50486 abbreviated: { 50487 am: 'ಪà³à²°à³à²µà²¾à²¹à³à²¨', 50488 pm: 'ಠಪರಾಹà³à²¨', 50489 midnight: 'ಮಧà³à²¯ ರಾತà³à²°à²¿', 50490 noon: 'ಮಧà³à²¯à²¾à²¨à³à²¹', 50491 morning: 'ಬà³à²³à²à³à²à³', 50492 afternoon: 'ಮಧà³à²¯à²¾à²¨à³à²¹', 50493 evening: 'ಸà²à²à³', 50494 night: 'ರಾತà³à²°à²¿' 50495 }, 50496 wide: { 50497 am: 'ಪà³à²°à³à²µà²¾à²¹à³à²¨', 50498 pm: 'ಠಪರಾಹà³à²¨', 50499 midnight: 'ಮಧà³à²¯ ರಾತà³à²°à²¿', 50500 noon: 'ಮಧà³à²¯à²¾à²¨à³à²¹', 50501 morning: 'ಬà³à²³à²à³à²à³', 50502 afternoon: 'ಮಧà³à²¯à²¾à²¨à³à²¹', 50503 evening: 'ಸà²à²à³', 50504 night: 'ರಾತà³à²°à²¿' 50505 } 50506 }; 50507 50508 function ordinalNumber(dirtyNumber, _dirtyOptions) { 50509 var number = Number(dirtyNumber); 50510 return number + 'ನà³'; 50511 } 50512 50513 var localize = { 50514 ordinalNumber: ordinalNumber, 50515 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 50516 values: eraValues, 50517 defaultWidth: 'wide' 50518 }), 50519 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 50520 values: quarterValues, 50521 defaultWidth: 'wide', 50522 argumentCallback: function (quarter) { 50523 return Number(quarter) - 1; 50524 } 50525 }), 50526 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 50527 values: monthValues, 50528 defaultWidth: 'wide' 50529 }), 50530 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 50531 values: dayValues, 50532 defaultWidth: 'wide' 50533 }), 50534 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 50535 values: dayPeriodValues, 50536 defaultWidth: 'wide', 50537 formattingValues: formattingDayPeriodValues, 50538 defaultFormattingWidth: 'wide' 50539 }) 50540 }; 50541 /* harmony default export */ 50542 __webpack_exports__["a"] = (localize); 50543 50544 /***/ 50545 }), 50546 /* 668 */ 50547 /***/ (function (module, __webpack_exports__, __webpack_require__) { 50548 50549 "use strict"; 50550 /* harmony import */ 50551 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 50552 /* harmony import */ 50553 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 50554 50555 50556 var matchOrdinalNumberPattern = /^(\d+)(ನà³|ನà³)?/i; 50557 var parseOrdinalNumberPattern = /\d+/i; 50558 var matchEraPatterns = { 50559 narrow: /^(à²à³à²°à²¿.ಪà³|à²à³à²°à²¿.ಶ)/i, 50560 abbreviated: /^(à²à³à²°à²¿\.?\s?ಪà³\.?|à²à³à²°à²¿\.?\s?ಶ\.?|ಪà³à²°\.?\s?ಶ\.?)/i, 50561 wide: /^(à²à³à²°à²¿à²¸à³à²¤ ಪà³à²°à³à²µ|à²à³à²°à²¿à²¸à³à²¤ ಶà²|ಪà³à²°à²¸à²à³à²¤ ಶà²)/i 50562 }; 50563 var parseEraPatterns = { 50564 any: [/^ಪà³/i, /^(ಶ|ಪà³à²°)/i] 50565 }; 50566 var matchQuarterPatterns = { 50567 narrow: /^[1234]/i, 50568 abbreviated: /^ತà³à²°à³[1234]|ತà³à²°à³ [1234]| [1234]ತà³à²°à³/i, 50569 wide: /^[1234](ನà³)? ತà³à²°à³à²®à²¾à²¸à²¿à²/i 50570 }; 50571 var parseQuarterPatterns = { 50572 any: [/1/i, /2/i, /3/i, /4/i] 50573 }; 50574 var matchMonthPatterns = { 50575 narrow: /^(à²à³|à²à³|à²|ಫà³|ಮಾ|à²|ಮà³|à²|ಸà³|ಠ|ನ|ಡಿ)/i, 50576 abbreviated: /^(à²à²¨|ಫà³à²¬à³à²°|ಮಾರà³à²à³|à²à²ªà³à²°à²¿|ಮà³|à²à³à²¨à³|à²à³à²²à³|à²à²|ಸà³à²ªà³à²à³à²|ಠà²à³à²à³|ನವà³à²|ಡಿಸà³à²)/i, 50577 wide: /^(à²à²¨à²µà²°à²¿|ಫà³à²¬à³à²°à²µà²°à²¿|ಮಾರà³à²à³|à²à²ªà³à²°à²¿à²²à³|ಮà³|à²à³à²¨à³|à²à³à²²à³|à²à²à²¸à³à²à³|ಸà³à²ªà³à²à³à²à²¬à²°à³|ಠà²à³à²à³à²¬à²°à³|ನವà³à²à²¬à²°à³|ಡಿಸà³à²à²¬à²°à³)/i 50578 }; 50579 var parseMonthPatterns = { 50580 narrow: [/^à²$/i, /^ಫà³/i, /^ಮಾ/i, /^à²/i, /^ಮà³/i, /^à²à³/i, /^à²à³$/i, /^à²/i, /^ಸà³/i, /^ಠ/i, /^ನ/i, /^ಡಿ/i], 50581 any: [/^à²à²¨/i, /^ಫà³/i, /^ಮಾ/i, /^à²/i, /^ಮà³/i, /^à²à³à²¨à³/i, /^à²à³à²²à³/i, /^à²/i, /^ಸà³/i, /^ಠ/i, /^ನ/i, /^ಡಿ/i] 50582 }; 50583 var matchDayPatterns = { 50584 narrow: /^(à²à²¾|ಸà³|ಮ|ಬà³|à²à³|ಶà³|ಶ)/i, 50585 short: /^(à²à²¾à²¨à³|ಸà³à²®|ಮà²à²à²³|ಬà³à²§|à²à³à²°à³|ಶà³à²à³à²°|ಶನಿ)/i, 50586 abbreviated: /^(à²à²¾à²¨à³|ಸà³à²®|ಮà²à²à²³|ಬà³à²§|à²à³à²°à³|ಶà³à²à³à²°|ಶನಿ)/i, 50587 wide: /^(à²à²¾à²¨à³à²µà²¾à²°|ಸà³à²®à²µà²¾à²°|ಮà²à²à²³à²µà²¾à²°|ಬà³à²§à²µà²¾à²°|à²à³à²°à³à²µà²¾à²°|ಶà³à²à³à²°à²µà²¾à²°|ಶನಿವಾರ)/i 50588 }; 50589 var parseDayPatterns = { 50590 narrow: [/^à²à²¾/i, /^ಸà³/i, /^ಮ/i, /^ಬà³/i, /^à²à³/i, /^ಶà³/i, /^ಶ/i], 50591 any: [/^à²à²¾/i, /^ಸà³/i, /^ಮ/i, /^ಬà³/i, /^à²à³/i, /^ಶà³/i, /^ಶ/i] 50592 }; 50593 var matchDayPeriodPatterns = { 50594 narrow: /^(ಪà³|ಠ|ಮಧà³à²¯à²°à²¾à²¤à³à²°à²¿|ಮಧà³à²¯à²¾à²¨à³à²¹|ಬà³à²³à²à³à²à³|ಸà²à²à³|ರಾತà³à²°à²¿)/i, 50595 any: /^(ಪà³à²°à³à²µà²¾à²¹à³à²¨|ಠಪರಾಹà³à²¨|ಮಧà³à²¯à²°à²¾à²¤à³à²°à²¿|ಮಧà³à²¯à²¾à²¨à³à²¹|ಬà³à²³à²à³à²à³|ಸà²à²à³|ರಾತà³à²°à²¿)/i 50596 }; 50597 var parseDayPeriodPatterns = { 50598 any: { 50599 am: /^ಪà³/i, 50600 pm: /^ಠ/i, 50601 midnight: /ಮಧà³à²¯à²°à²¾à²¤à³à²°à²¿/i, 50602 noon: /ಮಧà³à²¯à²¾à²¨à³à²¹/i, 50603 morning: /ಬà³à²³à²à³à²à³/i, 50604 afternoon: /ಮಧà³à²¯à²¾à²¨à³à²¹/i, 50605 evening: /ಸà²à²à³/i, 50606 night: /ರಾತà³à²°à²¿/i 50607 } 50608 }; 50609 var match = { 50610 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 50611 matchPattern: matchOrdinalNumberPattern, 50612 parsePattern: parseOrdinalNumberPattern, 50613 valueCallback: function (value) { 50614 return parseInt(value, 10); 50615 } 50616 }), 50617 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 50618 matchPatterns: matchEraPatterns, 50619 defaultMatchWidth: 'wide', 50620 parsePatterns: parseEraPatterns, 50621 defaultParseWidth: 'any' 50622 }), 50623 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 50624 matchPatterns: matchQuarterPatterns, 50625 defaultMatchWidth: 'wide', 50626 parsePatterns: parseQuarterPatterns, 50627 defaultParseWidth: 'any', 50628 valueCallback: function (index) { 50629 return index + 1; 50630 } 50631 }), 50632 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 50633 matchPatterns: matchMonthPatterns, 50634 defaultMatchWidth: 'wide', 50635 parsePatterns: parseMonthPatterns, 50636 defaultParseWidth: 'any' 50637 }), 50638 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 50639 matchPatterns: matchDayPatterns, 50640 defaultMatchWidth: 'wide', 50641 parsePatterns: parseDayPatterns, 50642 defaultParseWidth: 'any' 50643 }), 50644 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 50645 matchPatterns: matchDayPeriodPatterns, 50646 defaultMatchWidth: 'any', 50647 parsePatterns: parseDayPeriodPatterns, 50648 defaultParseWidth: 'any' 50649 }) 50650 }; 50651 /* harmony default export */ 50652 __webpack_exports__["a"] = (match); 50653 50654 /***/ 50655 }), 50656 /* 669 */ 50657 /***/ (function (module, __webpack_exports__, __webpack_require__) { 50658 50659 "use strict"; 50660 /* harmony import */ 50661 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(670); 50662 /* harmony import */ 50663 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(671); 50664 /* harmony import */ 50665 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(672); 50666 /* harmony import */ 50667 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(673); 50668 /* harmony import */ 50669 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(674); 50670 50671 50672 /** 50673 * @type {Locale} 50674 * @category Locales 50675 * @summary Korean locale. 50676 * @language Korean 50677 * @iso-639-2 kor 50678 * @author Hong Chulju [@angdev]{@link https://github.com/angdev} 50679 * @author Lee Seoyoen [@iamssen]{@link https://github.com/iamssen} 50680 * @author Taiki IKeda [@so99ynoodles]{@link https://github.com/so99ynoodles} 50681 */ 50682 50683 var locale = { 50684 code: 'ko', 50685 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 50686 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 50687 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 50688 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 50689 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 50690 options: { 50691 weekStartsOn: 0 50692 /* Sunday */ 50693 , 50694 firstWeekContainsDate: 1 50695 } 50696 }; 50697 /* harmony default export */ 50698 __webpack_exports__["a"] = (locale); 50699 50700 /***/ 50701 }), 50702 /* 670 */ 50703 /***/ (function (module, __webpack_exports__, __webpack_require__) { 50704 50705 "use strict"; 50706 /* harmony export (immutable) */ 50707 __webpack_exports__["a"] = formatDistance; 50708 var formatDistanceLocale = { 50709 lessThanXSeconds: { 50710 one: '1ì´ ë¯¸ë§', 50711 other: '{{count}}ì´ ë¯¸ë§' 50712 }, 50713 xSeconds: { 50714 one: '1ì´', 50715 other: '{{count}}ì´' 50716 }, 50717 halfAMinute: '30ì´', 50718 lessThanXMinutes: { 50719 one: '1ë¶ ë¯¸ë§', 50720 other: '{{count}}ë¶ ë¯¸ë§' 50721 }, 50722 xMinutes: { 50723 one: '1ë¶', 50724 other: '{{count}}ë¶' 50725 }, 50726 aboutXHours: { 50727 one: 'ì½ 1ìê°', 50728 other: 'ì½ {{count}}ìê°' 50729 }, 50730 xHours: { 50731 one: '1ìê°', 50732 other: '{{count}}ìê°' 50733 }, 50734 xDays: { 50735 one: '1ì¼', 50736 other: '{{count}}ì¼' 50737 }, 50738 aboutXWeeks: { 50739 one: 'ì½ 1주', 50740 other: 'ì½ {{count}}주' 50741 }, 50742 xWeeks: { 50743 one: '1주', 50744 other: '{{count}}주' 50745 }, 50746 aboutXMonths: { 50747 one: 'ì½ 1ê°ì', 50748 other: 'ì½ {{count}}ê°ì' 50749 }, 50750 xMonths: { 50751 one: '1ê°ì', 50752 other: '{{count}}ê°ì' 50753 }, 50754 aboutXYears: { 50755 one: 'ì½ 1ë ', 50756 other: 'ì½ {{count}}ë ' 50757 }, 50758 xYears: { 50759 one: '1ë ', 50760 other: '{{count}}ë ' 50761 }, 50762 overXYears: { 50763 one: '1ë ì´ì', 50764 other: '{{count}}ë ì´ì' 50765 }, 50766 almostXYears: { 50767 one: 'ê±°ì 1ë ', 50768 other: 'ê±°ì {{count}}ë ' 50769 } 50770 }; 50771 50772 function formatDistance(token, count, options) { 50773 options = options || {}; 50774 var result; 50775 50776 if (typeof formatDistanceLocale[token] === 'string') { 50777 result = formatDistanceLocale[token]; 50778 } else if (count === 1) { 50779 result = formatDistanceLocale[token].one; 50780 } else { 50781 result = formatDistanceLocale[token].other.replace('{{count}}', count); 50782 } 50783 50784 if (options.addSuffix) { 50785 if (options.comparison > 0) { 50786 return result + ' í'; 50787 } else { 50788 return result + ' ì '; 50789 } 50790 } 50791 50792 return result; 50793 } 50794 50795 /***/ 50796 }), 50797 /* 671 */ 50798 /***/ (function (module, __webpack_exports__, __webpack_require__) { 50799 50800 "use strict"; 50801 /* harmony import */ 50802 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 50803 50804 var dateFormats = { 50805 full: 'yë Mì dì¼ EEEE', 50806 long: 'yë Mì dì¼', 50807 medium: 'y.MM.dd', 50808 short: 'y.MM.dd' 50809 }; 50810 var timeFormats = { 50811 full: 'a Hì mmë¶ ssì´ zzzz', 50812 long: 'a H:mm:ss z', 50813 medium: 'HH:mm:ss', 50814 short: 'HH:mm' 50815 }; 50816 var dateTimeFormats = { 50817 full: '{{date}} {{time}}', 50818 long: '{{date}} {{time}}', 50819 medium: '{{date}} {{time}}', 50820 short: '{{date}} {{time}}' 50821 }; 50822 var formatLong = { 50823 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 50824 formats: dateFormats, 50825 defaultWidth: 'full' 50826 }), 50827 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 50828 formats: timeFormats, 50829 defaultWidth: 'full' 50830 }), 50831 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 50832 formats: dateTimeFormats, 50833 defaultWidth: 'full' 50834 }) 50835 }; 50836 /* harmony default export */ 50837 __webpack_exports__["a"] = (formatLong); 50838 50839 /***/ 50840 }), 50841 /* 672 */ 50842 /***/ (function (module, __webpack_exports__, __webpack_require__) { 50843 50844 "use strict"; 50845 /* harmony export (immutable) */ 50846 __webpack_exports__["a"] = formatRelative; 50847 var formatRelativeLocale = { 50848 lastWeek: "'ì§ë' eeee p", 50849 yesterday: "'ì´ì ' p", 50850 today: "'ì¤ë' p", 50851 tomorrow: "'ë´ì¼' p", 50852 nextWeek: "'ë¤ì' eeee p", 50853 other: 'P' 50854 }; 50855 50856 function formatRelative(token, _date, _baseDate, _options) { 50857 return formatRelativeLocale[token]; 50858 } 50859 50860 /***/ 50861 }), 50862 /* 673 */ 50863 /***/ (function (module, __webpack_exports__, __webpack_require__) { 50864 50865 "use strict"; 50866 /* harmony import */ 50867 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 50868 50869 var eraValues = { 50870 narrow: ['BC', 'AD'], 50871 abbreviated: ['BC', 'AD'], 50872 wide: ['기ìì ', 'ì기'] 50873 }; 50874 var quarterValues = { 50875 narrow: ['1', '2', '3', '4'], 50876 abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], 50877 wide: ['1ë¶ê¸°', '2ë¶ê¸°', '3ë¶ê¸°', '4ë¶ê¸°'] 50878 }; 50879 var monthValues = { 50880 narrow: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], 50881 abbreviated: ['1ì', '2ì', '3ì', '4ì', '5ì', '6ì', '7ì', '8ì', '9ì', '10ì', '11ì', '12ì'], 50882 wide: ['1ì', '2ì', '3ì', '4ì', '5ì', '6ì', '7ì', '8ì', '9ì', '10ì', '11ì', '12ì'] 50883 }; 50884 var dayValues = { 50885 narrow: ['ì¼', 'ì', 'í', 'ì', '목', 'ê¸', 'í '], 50886 short: ['ì¼', 'ì', 'í', 'ì', '목', 'ê¸', 'í '], 50887 abbreviated: ['ì¼', 'ì', 'í', 'ì', '목', 'ê¸', 'í '], 50888 wide: ['ì¼ìì¼', 'ììì¼', 'íìì¼', 'ììì¼', '목ìì¼', 'ê¸ìì¼', 'í ìì¼'] 50889 }; 50890 var dayPeriodValues = { 50891 narrow: { 50892 am: 'ì¤ì ', 50893 pm: 'ì¤í', 50894 midnight: 'ìì ', 50895 noon: 'ì ì¤', 50896 morning: 'ì침', 50897 afternoon: 'ì¤í', 50898 evening: 'ì ë ', 50899 night: 'ë°¤' 50900 }, 50901 abbreviated: { 50902 am: 'ì¤ì ', 50903 pm: 'ì¤í', 50904 midnight: 'ìì ', 50905 noon: 'ì ì¤', 50906 morning: 'ì침', 50907 afternoon: 'ì¤í', 50908 evening: 'ì ë ', 50909 night: 'ë°¤' 50910 }, 50911 wide: { 50912 am: 'ì¤ì ', 50913 pm: 'ì¤í', 50914 midnight: 'ìì ', 50915 noon: 'ì ì¤', 50916 morning: 'ì침', 50917 afternoon: 'ì¤í', 50918 evening: 'ì ë ', 50919 night: 'ë°¤' 50920 } 50921 }; 50922 var formattingDayPeriodValues = { 50923 narrow: { 50924 am: 'ì¤ì ', 50925 pm: 'ì¤í', 50926 midnight: 'ìì ', 50927 noon: 'ì ì¤', 50928 morning: 'ì침', 50929 afternoon: 'ì¤í', 50930 evening: 'ì ë ', 50931 night: 'ë°¤' 50932 }, 50933 abbreviated: { 50934 am: 'ì¤ì ', 50935 pm: 'ì¤í', 50936 midnight: 'ìì ', 50937 noon: 'ì ì¤', 50938 morning: 'ì침', 50939 afternoon: 'ì¤í', 50940 evening: 'ì ë ', 50941 night: 'ë°¤' 50942 }, 50943 wide: { 50944 am: 'ì¤ì ', 50945 pm: 'ì¤í', 50946 midnight: 'ìì ', 50947 noon: 'ì ì¤', 50948 morning: 'ì침', 50949 afternoon: 'ì¤í', 50950 evening: 'ì ë ', 50951 night: 'ë°¤' 50952 } 50953 }; 50954 50955 function ordinalNumber(dirtyNumber, dirtyOptions) { 50956 var number = Number(dirtyNumber); 50957 var options = dirtyOptions || {}; 50958 var unit = String(options.unit); 50959 50960 switch (unit) { 50961 case 'minute': 50962 case 'second': 50963 return number; 50964 50965 case 'date': 50966 return number + 'ì¼'; 50967 50968 default: 50969 return number + 'ë²ì§¸'; 50970 } 50971 } 50972 50973 var localize = { 50974 ordinalNumber: ordinalNumber, 50975 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 50976 values: eraValues, 50977 defaultWidth: 'wide' 50978 }), 50979 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 50980 values: quarterValues, 50981 defaultWidth: 'wide', 50982 argumentCallback: function (quarter) { 50983 return Number(quarter) - 1; 50984 } 50985 }), 50986 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 50987 values: monthValues, 50988 defaultWidth: 'wide' 50989 }), 50990 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 50991 values: dayValues, 50992 defaultWidth: 'wide' 50993 }), 50994 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 50995 values: dayPeriodValues, 50996 defaultWidth: 'wide', 50997 formattingValues: formattingDayPeriodValues, 50998 defaultFormattingWidth: 'wide' 50999 }) 51000 }; 51001 /* harmony default export */ 51002 __webpack_exports__["a"] = (localize); 51003 51004 /***/ 51005 }), 51006 /* 674 */ 51007 /***/ (function (module, __webpack_exports__, __webpack_require__) { 51008 51009 "use strict"; 51010 /* harmony import */ 51011 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 51012 /* harmony import */ 51013 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 51014 51015 51016 var matchOrdinalNumberPattern = /^(\d+)(ì¼|ë²ì§¸)?/i; 51017 var parseOrdinalNumberPattern = /\d+/i; 51018 var matchEraPatterns = { 51019 narrow: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, 51020 abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, 51021 wide: /^(기ìì |ì기)/i 51022 }; 51023 var parseEraPatterns = { 51024 any: [/^(bc|기ìì )/i, /^(ad|ì기)/i] 51025 }; 51026 var matchQuarterPatterns = { 51027 narrow: /^[1234]/i, 51028 abbreviated: /^q[1234]/i, 51029 wide: /^[1234]ì¬?ë¶ê¸°/i 51030 }; 51031 var parseQuarterPatterns = { 51032 any: [/1/i, /2/i, /3/i, /4/i] 51033 }; 51034 var matchMonthPatterns = { 51035 narrow: /^(1[012]|[123456789])/, 51036 abbreviated: /^(1[012]|[123456789])ì/i, 51037 wide: /^(1[012]|[123456789])ì/i 51038 }; 51039 var parseMonthPatterns = { 51040 any: [/^1ì?$/, /^2/, /^3/, /^4/, /^5/, /^6/, /^7/, /^8/, /^9/, /^10/, /^11/, /^12/] 51041 }; 51042 var matchDayPatterns = { 51043 narrow: /^[ì¼ìíì목ê¸í ]/, 51044 short: /^[ì¼ìíì목ê¸í ]/, 51045 abbreviated: /^[ì¼ìíì목ê¸í ]/, 51046 wide: /^[ì¼ìíì목ê¸í ]ìì¼/ 51047 }; 51048 var parseDayPatterns = { 51049 any: [/^ì¼/, /^ì/, /^í/, /^ì/, /^목/, /^ê¸/, /^í /] 51050 }; 51051 var matchDayPeriodPatterns = { 51052 any: /^(am|pm|ì¤ì |ì¤í|ìì |ì ì¤|ì침|ì ë |ë°¤)/i 51053 }; 51054 var parseDayPeriodPatterns = { 51055 any: { 51056 am: /^(am|ì¤ì )/i, 51057 pm: /^(pm|ì¤í)/i, 51058 midnight: /^ìì /i, 51059 noon: /^ì ì¤/i, 51060 morning: /^ì침/i, 51061 afternoon: /^ì¤í/i, 51062 evening: /^ì ë /i, 51063 night: /^ë°¤/i 51064 } 51065 }; 51066 var match = { 51067 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 51068 matchPattern: matchOrdinalNumberPattern, 51069 parsePattern: parseOrdinalNumberPattern, 51070 valueCallback: function (value) { 51071 return parseInt(value, 10); 51072 } 51073 }), 51074 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 51075 matchPatterns: matchEraPatterns, 51076 defaultMatchWidth: 'wide', 51077 parsePatterns: parseEraPatterns, 51078 defaultParseWidth: 'any' 51079 }), 51080 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 51081 matchPatterns: matchQuarterPatterns, 51082 defaultMatchWidth: 'wide', 51083 parsePatterns: parseQuarterPatterns, 51084 defaultParseWidth: 'any', 51085 valueCallback: function (index) { 51086 return index + 1; 51087 } 51088 }), 51089 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 51090 matchPatterns: matchMonthPatterns, 51091 defaultMatchWidth: 'wide', 51092 parsePatterns: parseMonthPatterns, 51093 defaultParseWidth: 'any' 51094 }), 51095 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 51096 matchPatterns: matchDayPatterns, 51097 defaultMatchWidth: 'wide', 51098 parsePatterns: parseDayPatterns, 51099 defaultParseWidth: 'any' 51100 }), 51101 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 51102 matchPatterns: matchDayPeriodPatterns, 51103 defaultMatchWidth: 'any', 51104 parsePatterns: parseDayPeriodPatterns, 51105 defaultParseWidth: 'any' 51106 }) 51107 }; 51108 /* harmony default export */ 51109 __webpack_exports__["a"] = (match); 51110 51111 /***/ 51112 }), 51113 /* 675 */ 51114 /***/ (function (module, __webpack_exports__, __webpack_require__) { 51115 51116 "use strict"; 51117 /* harmony import */ 51118 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(676); 51119 /* harmony import */ 51120 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(677); 51121 /* harmony import */ 51122 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(678); 51123 /* harmony import */ 51124 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(679); 51125 /* harmony import */ 51126 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(680); 51127 51128 51129 /** 51130 * @type {Locale} 51131 * @category Locales 51132 * @summary Luxembourgish locale. 51133 * @language Luxembourgish 51134 * @iso-639-2 ltz 51135 * @author Daniel Waxweiler [@dwaxweiler]{@link https://github.com/dwaxweiler} 51136 */ 51137 51138 var locale = { 51139 code: 'lb', 51140 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 51141 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 51142 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 51143 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 51144 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 51145 options: { 51146 weekStartsOn: 1 51147 /* Monday */ 51148 , 51149 firstWeekContainsDate: 4 51150 } 51151 }; 51152 /* harmony default export */ 51153 __webpack_exports__["a"] = (locale); 51154 51155 /***/ 51156 }), 51157 /* 676 */ 51158 /***/ (function (module, __webpack_exports__, __webpack_require__) { 51159 51160 "use strict"; 51161 /* harmony export (immutable) */ 51162 __webpack_exports__["a"] = formatDistance; 51163 var formatDistanceLocale = { 51164 lessThanXSeconds: { 51165 standalone: { 51166 one: 'manner wéi eng Sekonn', 51167 other: 'manner wéi {{count}} Sekonnen' 51168 }, 51169 withPreposition: { 51170 one: 'manner wéi enger Sekonn', 51171 other: 'manner wéi {{count}} Sekonnen' 51172 } 51173 }, 51174 xSeconds: { 51175 standalone: { 51176 one: 'eng Sekonn', 51177 other: '{{count}} Sekonnen' 51178 }, 51179 withPreposition: { 51180 one: 'enger Sekonn', 51181 other: '{{count}} Sekonnen' 51182 } 51183 }, 51184 halfAMinute: { 51185 standalone: 'eng hallef Minutt', 51186 withPreposition: 'enger hallwer Minutt' 51187 }, 51188 lessThanXMinutes: { 51189 standalone: { 51190 one: 'manner wéi eng Minutt', 51191 other: 'manner wéi {{count}} Minutten' 51192 }, 51193 withPreposition: { 51194 one: 'manner wéi enger Minutt', 51195 other: 'manner wéi {{count}} Minutten' 51196 } 51197 }, 51198 xMinutes: { 51199 standalone: { 51200 one: 'eng Minutt', 51201 other: '{{count}} Minutten' 51202 }, 51203 withPreposition: { 51204 one: 'enger Minutt', 51205 other: '{{count}} Minutten' 51206 } 51207 }, 51208 aboutXHours: { 51209 standalone: { 51210 one: 'ongeféier eng Stonn', 51211 other: 'ongeféier {{count}} Stonnen' 51212 }, 51213 withPreposition: { 51214 one: 'ongeféier enger Stonn', 51215 other: 'ongeféier {{count}} Stonnen' 51216 } 51217 }, 51218 xHours: { 51219 standalone: { 51220 one: 'eng Stonn', 51221 other: '{{count}} Stonnen' 51222 }, 51223 withPreposition: { 51224 one: 'enger Stonn', 51225 other: '{{count}} Stonnen' 51226 } 51227 }, 51228 xDays: { 51229 standalone: { 51230 one: 'een Dag', 51231 other: '{{count}} Deeg' 51232 }, 51233 withPreposition: { 51234 one: 'engem Dag', 51235 other: '{{count}} Deeg' 51236 } 51237 }, 51238 aboutXWeeks: { 51239 standalone: { 51240 one: 'ongeféier eng Woch', 51241 other: 'ongeféier {{count}} Wochen' 51242 }, 51243 withPreposition: { 51244 one: 'ongeféier enger Woche', 51245 other: 'ongeféier {{count}} Wochen' 51246 } 51247 }, 51248 xWeeks: { 51249 standalone: { 51250 one: 'eng Woch', 51251 other: '{{count}} Wochen' 51252 }, 51253 withPreposition: { 51254 one: 'enger Woch', 51255 other: '{{count}} Wochen' 51256 } 51257 }, 51258 aboutXMonths: { 51259 standalone: { 51260 one: 'ongeféier ee Mount', 51261 other: 'ongeféier {{count}} Méint' 51262 }, 51263 withPreposition: { 51264 one: 'ongeféier engem Mount', 51265 other: 'ongeféier {{count}} Méint' 51266 } 51267 }, 51268 xMonths: { 51269 standalone: { 51270 one: 'ee Mount', 51271 other: '{{count}} Méint' 51272 }, 51273 withPreposition: { 51274 one: 'engem Mount', 51275 other: '{{count}} Méint' 51276 } 51277 }, 51278 aboutXYears: { 51279 standalone: { 51280 one: 'ongeféier ee Joer', 51281 other: 'ongeféier {{count}} Joer' 51282 }, 51283 withPreposition: { 51284 one: 'ongeféier engem Joer', 51285 other: 'ongeféier {{count}} Joer' 51286 } 51287 }, 51288 xYears: { 51289 standalone: { 51290 one: 'ee Joer', 51291 other: '{{count}} Joer' 51292 }, 51293 withPreposition: { 51294 one: 'engem Joer', 51295 other: '{{count}} Joer' 51296 } 51297 }, 51298 overXYears: { 51299 standalone: { 51300 one: 'méi wéi ee Joer', 51301 other: 'méi wéi {{count}} Joer' 51302 }, 51303 withPreposition: { 51304 one: 'méi wéi engem Joer', 51305 other: 'méi wéi {{count}} Joer' 51306 } 51307 }, 51308 almostXYears: { 51309 standalone: { 51310 one: 'bal ee Joer', 51311 other: 'bal {{count}} Joer' 51312 }, 51313 withPreposition: { 51314 one: 'bal engem Joer', 51315 other: 'bal {{count}} Joer' 51316 } 51317 } 51318 }; 51319 var EXCEPTION_CONSONANTS = ['d', 'h', 'n', 't', 'z']; 51320 var VOWELS = ['a,', 'e', 'i', 'o', 'u']; 51321 var DIGITS_SPOKEN_N_NEEDED = [0, 1, 2, 3, 8, 9]; 51322 var FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED = [40, 50, 60, 70]; // Eifeler Regel 51323 51324 function isFinalNNeeded(nextWords) { 51325 var firstLetter = nextWords.charAt(0).toLowerCase(); 51326 51327 if (VOWELS.indexOf(firstLetter) != -1 || EXCEPTION_CONSONANTS.indexOf(firstLetter) != -1) { 51328 return true; 51329 } // Numbers would need to converted into words for checking. 51330 // Therefore, I have listed the digits that require a preceeding n with a few exceptions. 51331 51332 51333 var firstWord = nextWords.split(' ')[0]; 51334 var number = parseInt(firstWord); 51335 51336 if (!isNaN(number) && DIGITS_SPOKEN_N_NEEDED.indexOf(number % 10) != -1 && FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED.indexOf(parseInt(firstWord.substring(0, 2))) == -1) { 51337 return true; 51338 } // Omit other checks as they are not expected here. 51339 51340 51341 return false; 51342 } 51343 51344 function formatDistance(token, count, options) { 51345 options = options || {}; 51346 var usageGroup = options.addSuffix ? formatDistanceLocale[token].withPreposition : formatDistanceLocale[token].standalone; 51347 var result; 51348 51349 if (typeof usageGroup === 'string') { 51350 result = usageGroup; 51351 } else if (count === 1) { 51352 result = usageGroup.one; 51353 } else { 51354 result = usageGroup.other.replace('{{count}}', count); 51355 } 51356 51357 if (options.addSuffix) { 51358 if (options.comparison > 0) { 51359 return 'a' + (isFinalNNeeded(result) ? 'n' : '') + ' ' + result; 51360 } else { 51361 return 'viru' + (isFinalNNeeded(result) ? 'n' : '') + ' ' + result; 51362 } 51363 } 51364 51365 return result; 51366 } 51367 51368 /***/ 51369 }), 51370 /* 677 */ 51371 /***/ (function (module, __webpack_exports__, __webpack_require__) { 51372 51373 "use strict"; 51374 /* harmony import */ 51375 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 51376 // DIN 5008: https://de.wikipedia.org/wiki/Datumsformat#DIN_5008 51377 51378 var dateFormats = { 51379 full: 'EEEE, do MMMM y', 51380 // Méindeg, 7. Januar 2018 51381 long: 'do MMMM y', 51382 // 7. Januar 2018 51383 medium: 'do MMM y', 51384 // 7. Jan 2018 51385 short: 'dd.MM.yy' // 07.01.18 51386 51387 }; 51388 var timeFormats = { 51389 full: 'HH:mm:ss zzzz', 51390 long: 'HH:mm:ss z', 51391 medium: 'HH:mm:ss', 51392 short: 'HH:mm' 51393 }; 51394 var dateTimeFormats = { 51395 full: "{{date}} 'um' {{time}}", 51396 long: "{{date}} 'um' {{time}}", 51397 medium: '{{date}} {{time}}', 51398 short: '{{date}} {{time}}' 51399 }; 51400 var formatLong = { 51401 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 51402 formats: dateFormats, 51403 defaultWidth: 'full' 51404 }), 51405 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 51406 formats: timeFormats, 51407 defaultWidth: 'full' 51408 }), 51409 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 51410 formats: dateTimeFormats, 51411 defaultWidth: 'full' 51412 }) 51413 }; 51414 /* harmony default export */ 51415 __webpack_exports__["a"] = (formatLong); 51416 51417 /***/ 51418 }), 51419 /* 678 */ 51420 /***/ (function (module, __webpack_exports__, __webpack_require__) { 51421 51422 "use strict"; 51423 /* harmony export (immutable) */ 51424 __webpack_exports__["a"] = formatRelative; 51425 var formatRelativeLocale = { 51426 lastWeek: function (date) { 51427 var day = date.getUTCDay(); 51428 var result = "'läschte"; 51429 51430 if (day === 2 || day === 4) { 51431 // Eifeler Regel: Add an n before the consonant d; Here "Dënschdeg" "and Donneschde". 51432 result += 'n'; 51433 } 51434 51435 result += "' eeee 'um' p"; 51436 return result; 51437 }, 51438 yesterday: "'gëschter um' p", 51439 today: "'haut um' p", 51440 tomorrow: "'moien um' p", 51441 nextWeek: "eeee 'um' p", 51442 other: 'P' 51443 }; 51444 51445 function formatRelative(token, date, _baseDate, _options) { 51446 var format = formatRelativeLocale[token]; 51447 51448 if (typeof format === 'function') { 51449 return format(date); 51450 } 51451 51452 return format; 51453 } 51454 51455 /***/ 51456 }), 51457 /* 679 */ 51458 /***/ (function (module, __webpack_exports__, __webpack_require__) { 51459 51460 "use strict"; 51461 /* harmony import */ 51462 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 51463 51464 var eraValues = { 51465 narrow: ['v.Chr.', 'n.Chr.'], 51466 abbreviated: ['v.Chr.', 'n.Chr.'], 51467 wide: ['viru Christus', 'no Christus'] 51468 }; 51469 var quarterValues = { 51470 narrow: ['1', '2', '3', '4'], 51471 abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], 51472 wide: ['1. Quartal', '2. Quartal', '3. Quartal', '4. Quartal'] 51473 }; 51474 var monthValues = { 51475 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], 51476 abbreviated: ['Jan', 'Feb', 'Mäe', 'Abr', 'Mee', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], 51477 wide: ['Januar', 'Februar', 'Mäerz', 'Abrëll', 'Mee', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'] 51478 }; 51479 var dayValues = { 51480 narrow: ['S', 'M', 'D', 'M', 'D', 'F', 'S'], 51481 short: ['So', 'Mé', 'Dë', 'Më', 'Do', 'Fr', 'Sa'], 51482 abbreviated: ['So.', 'Mé.', 'Dë.', 'Më.', 'Do.', 'Fr.', 'Sa.'], 51483 wide: ['Sonndeg', 'Méindeg', 'Dënschdeg', 'Mëttwoch', 'Donneschdeg', 'Freideg', 'Samschdeg'] 51484 }; 51485 var dayPeriodValues = { 51486 narrow: { 51487 am: 'mo.', 51488 pm: 'nomë.', 51489 midnight: 'Mëtternuecht', 51490 noon: 'Mëtteg', 51491 morning: 'Moien', 51492 afternoon: 'Nomëtteg', 51493 evening: 'Owend', 51494 night: 'Nuecht' 51495 }, 51496 abbreviated: { 51497 am: 'moies', 51498 pm: 'nomëttes', 51499 midnight: 'Mëtternuecht', 51500 noon: 'Mëtteg', 51501 morning: 'Moien', 51502 afternoon: 'Nomëtteg', 51503 evening: 'Owend', 51504 night: 'Nuecht' 51505 }, 51506 wide: { 51507 am: 'moies', 51508 pm: 'nomëttes', 51509 midnight: 'Mëtternuecht', 51510 noon: 'Mëtteg', 51511 morning: 'Moien', 51512 afternoon: 'Nomëtteg', 51513 evening: 'Owend', 51514 night: 'Nuecht' 51515 } 51516 }; 51517 var formattingDayPeriodValues = { 51518 narrow: { 51519 am: 'mo.', 51520 pm: 'nom.', 51521 midnight: 'Mëtternuecht', 51522 noon: 'mëttes', 51523 morning: 'moies', 51524 afternoon: 'nomëttes', 51525 evening: 'owes', 51526 night: 'nuets' 51527 }, 51528 abbreviated: { 51529 am: 'moies', 51530 pm: 'nomëttes', 51531 midnight: 'Mëtternuecht', 51532 noon: 'mëttes', 51533 morning: 'moies', 51534 afternoon: 'nomëttes', 51535 evening: 'owes', 51536 night: 'nuets' 51537 }, 51538 wide: { 51539 am: 'moies', 51540 pm: 'nomëttes', 51541 midnight: 'Mëtternuecht', 51542 noon: 'mëttes', 51543 morning: 'moies', 51544 afternoon: 'nomëttes', 51545 evening: 'owes', 51546 night: 'nuets' 51547 } 51548 }; 51549 51550 function ordinalNumber(dirtyNumber, _dirtyOptions) { 51551 var number = Number(dirtyNumber); 51552 return number + '.'; 51553 } 51554 51555 var localize = { 51556 ordinalNumber: ordinalNumber, 51557 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 51558 values: eraValues, 51559 defaultWidth: 'wide' 51560 }), 51561 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 51562 values: quarterValues, 51563 defaultWidth: 'wide', 51564 argumentCallback: function (quarter) { 51565 return Number(quarter) - 1; 51566 } 51567 }), 51568 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 51569 values: monthValues, 51570 defaultWidth: 'wide' 51571 }), 51572 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 51573 values: dayValues, 51574 defaultWidth: 'wide' 51575 }), 51576 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 51577 values: dayPeriodValues, 51578 defaultWidth: 'wide', 51579 formattingValues: formattingDayPeriodValues, 51580 defaultFormattingWidth: 'wide' 51581 }) 51582 }; 51583 /* harmony default export */ 51584 __webpack_exports__["a"] = (localize); 51585 51586 /***/ 51587 }), 51588 /* 680 */ 51589 /***/ (function (module, __webpack_exports__, __webpack_require__) { 51590 51591 "use strict"; 51592 /* harmony import */ 51593 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 51594 /* harmony import */ 51595 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 51596 51597 51598 var matchOrdinalNumberPattern = /^(\d+)(\.)?/i; 51599 var parseOrdinalNumberPattern = /\d+/i; 51600 var matchEraPatterns = { 51601 narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, 51602 abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, 51603 wide: /^(viru Christus|virun eiser Zäitrechnung|no Christus|eiser Zäitrechnung)/i 51604 }; 51605 var parseEraPatterns = { 51606 any: [/^v/i, /^n/i] 51607 }; 51608 var matchQuarterPatterns = { 51609 narrow: /^[1234]/i, 51610 abbreviated: /^q[1234]/i, 51611 wide: /^[1234](\.)? Quartal/i 51612 }; 51613 var parseQuarterPatterns = { 51614 any: [/1/i, /2/i, /3/i, /4/i] 51615 }; 51616 var matchMonthPatterns = { 51617 narrow: /^[jfmasond]/i, 51618 abbreviated: /^(jan|feb|mäe|abr|mee|jun|jul|aug|sep|okt|nov|dez)/i, 51619 wide: /^(januar|februar|mäerz|abrëll|mee|juni|juli|august|september|oktober|november|dezember)/i 51620 }; 51621 var parseMonthPatterns = { 51622 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 51623 any: [/^ja/i, /^f/i, /^mä/i, /^ab/i, /^me/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] 51624 }; 51625 var matchDayPatterns = { 51626 narrow: /^[smdf]/i, 51627 short: /^(so|mé|dë|më|do|fr|sa)/i, 51628 abbreviated: /^(son?|méi?|dën?|mët?|don?|fre?|sam?)\.?/i, 51629 wide: /^(sonndeg|méindeg|dënschdeg|mëttwoch|donneschdeg|freideg|samschdeg)/i 51630 }; 51631 var parseDayPatterns = { 51632 any: [/^so/i, /^mé/i, /^dë/i, /^më/i, /^do/i, /^f/i, /^sa/i] 51633 }; 51634 var matchDayPeriodPatterns = { 51635 narrow: /^(mo\.?|nomë\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, 51636 abbreviated: /^(moi\.?|nomët\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, 51637 wide: /^(moies|nomëttes|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i 51638 }; 51639 var parseDayPeriodPatterns = { 51640 any: { 51641 am: /^m/i, 51642 pm: /^n/i, 51643 midnight: /^Mëtter/i, 51644 noon: /^mëttes/i, 51645 morning: /moies/i, 51646 afternoon: /nomëttes/i, 51647 // will never be matched. Afternoon is matched by `pm` 51648 evening: /owes/i, 51649 night: /nuets/i // will never be matched. Night is matched by `pm` 51650 51651 } 51652 }; 51653 var match = { 51654 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 51655 matchPattern: matchOrdinalNumberPattern, 51656 parsePattern: parseOrdinalNumberPattern, 51657 valueCallback: function (value) { 51658 return parseInt(value, 10); 51659 } 51660 }), 51661 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 51662 matchPatterns: matchEraPatterns, 51663 defaultMatchWidth: 'wide', 51664 parsePatterns: parseEraPatterns, 51665 defaultParseWidth: 'any' 51666 }), 51667 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 51668 matchPatterns: matchQuarterPatterns, 51669 defaultMatchWidth: 'wide', 51670 parsePatterns: parseQuarterPatterns, 51671 defaultParseWidth: 'any', 51672 valueCallback: function (index) { 51673 return index + 1; 51674 } 51675 }), 51676 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 51677 matchPatterns: matchMonthPatterns, 51678 defaultMatchWidth: 'wide', 51679 parsePatterns: parseMonthPatterns, 51680 defaultParseWidth: 'any' 51681 }), 51682 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 51683 matchPatterns: matchDayPatterns, 51684 defaultMatchWidth: 'wide', 51685 parsePatterns: parseDayPatterns, 51686 defaultParseWidth: 'any' 51687 }), 51688 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 51689 matchPatterns: matchDayPeriodPatterns, 51690 defaultMatchWidth: 'wide', 51691 parsePatterns: parseDayPeriodPatterns, 51692 defaultParseWidth: 'any' 51693 }) 51694 }; 51695 /* harmony default export */ 51696 __webpack_exports__["a"] = (match); 51697 51698 /***/ 51699 }), 51700 /* 681 */ 51701 /***/ (function (module, __webpack_exports__, __webpack_require__) { 51702 51703 "use strict"; 51704 /* harmony import */ 51705 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(682); 51706 /* harmony import */ 51707 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(683); 51708 /* harmony import */ 51709 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(684); 51710 /* harmony import */ 51711 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(685); 51712 /* harmony import */ 51713 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(686); 51714 51715 51716 /** 51717 * @type {Locale} 51718 * @category Locales 51719 * 51720 * @summary Lithuanian locale. 51721 * @language Lithuanian 51722 * 51723 * @iso-639-2 lit 51724 * 51725 * @author Pavlo Shpak [@pshpak]{@link https://github.com/pshpak} 51726 * @author Eduardo Pardo [@eduardopsll]{@link https://github.com/eduardopsll} 51727 */ 51728 51729 var locale = { 51730 code: 'lt', 51731 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 51732 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 51733 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 51734 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 51735 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 51736 options: { 51737 weekStartsOn: 1 51738 /* Monday */ 51739 , 51740 firstWeekContainsDate: 4 51741 } 51742 }; 51743 /* harmony default export */ 51744 __webpack_exports__["a"] = (locale); 51745 51746 /***/ 51747 }), 51748 /* 682 */ 51749 /***/ (function (module, __webpack_exports__, __webpack_require__) { 51750 51751 "use strict"; 51752 /* harmony export (immutable) */ 51753 __webpack_exports__["a"] = formatDistance; 51754 var formatDistanceLocale = { 51755 lessThanXSeconds: { 51756 one: translateSeconds, 51757 other: translate 51758 }, 51759 xSeconds: { 51760 one: translateSeconds, 51761 other: translate 51762 }, 51763 halfAMinute: 'pusÄ minutÄs', 51764 lessThanXMinutes: { 51765 one: translateSingular, 51766 other: translate 51767 }, 51768 xMinutes: { 51769 one: translateSingular, 51770 other: translate 51771 }, 51772 aboutXHours: { 51773 one: translateSingular, 51774 other: translate 51775 }, 51776 xHours: { 51777 one: translateSingular, 51778 other: translate 51779 }, 51780 xDays: { 51781 one: translateSingular, 51782 other: translate 51783 }, 51784 aboutWeeks: { 51785 one: translateSingular, 51786 other: translate 51787 }, 51788 xWeeks: { 51789 one: translateSingular, 51790 other: translate 51791 }, 51792 aboutXMonths: { 51793 one: translateSingular, 51794 other: translate 51795 }, 51796 xMonths: { 51797 one: translateSingular, 51798 other: translate 51799 }, 51800 aboutXYears: { 51801 one: translateSingular, 51802 other: translate 51803 }, 51804 xYears: { 51805 one: translateSingular, 51806 other: translate 51807 }, 51808 overXYears: { 51809 one: translateSingular, 51810 other: translate 51811 }, 51812 almostXYears: { 51813 one: translateSingular, 51814 other: translate 51815 } 51816 }; 51817 var translations = { 51818 xseconds_other: 'sekundÄ_sekundžių_sekundes', 51819 xminutes_one: 'minutÄ_minutÄs_minutÄ', 51820 xminutes_other: 'minutÄs_minuÄių_minutes', 51821 xhours_one: 'valanda_valandos_valandÄ ', 51822 xhours_other: 'valandos_valandų_valandas', 51823 xdays_one: 'diena_dienos_dienÄ ', 51824 xdays_other: 'dienos_dienų_dienas', 51825 xweeks_one: 'savaitÄ_savaitÄs_savaitÄ', 51826 xweeks_other: 'savaitÄs_savaiÄių_savaites', 51827 xmonths_one: 'mÄnuo_mÄnesio_mÄnesį', 51828 xmonths_other: 'mÄnesiai_mÄnesių_mÄnesius', 51829 xyears_one: 'metai_metų_metus', 51830 xyears_other: 'metai_metų_metus', 51831 about: 'apie', 51832 over: 'daugiau nei', 51833 almost: 'beveik', 51834 lessthan: 'mažiau nei' 51835 }; 51836 51837 function translateSeconds(number, addSuffix, key, isFuture) { 51838 if (!addSuffix) { 51839 return 'kelios sekundÄs'; 51840 } else { 51841 return isFuture ? 'kelių sekundžių' : 'kelias sekundes'; 51842 } 51843 } 51844 51845 function translateSingular(number, addSuffix, key, isFuture) { 51846 return !addSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2]; 51847 } 51848 51849 function special(number) { 51850 return number % 10 === 0 || number > 10 && number < 20; 51851 } 51852 51853 function forms(key) { 51854 return translations[key].split('_'); 51855 } 51856 51857 function translate(number, addSuffix, key, isFuture) { 51858 var result = number + ' '; 51859 51860 if (number === 1) { 51861 return result + translateSingular(number, addSuffix, key[0], isFuture); 51862 } else if (!addSuffix) { 51863 return result + (special(number) ? forms(key)[1] : forms(key)[0]); 51864 } else { 51865 if (isFuture) { 51866 return result + forms(key)[1]; 51867 } else { 51868 return result + (special(number) ? forms(key)[1] : forms(key)[2]); 51869 } 51870 } 51871 } 51872 51873 function formatDistance(token, count, options) { 51874 options = options || {}; 51875 var adverb = token.match(/about|over|almost|lessthan/i); 51876 var unit = token.replace(adverb, ''); 51877 var result; 51878 51879 if (typeof formatDistanceLocale[token] === 'string') { 51880 result = formatDistanceLocale[token]; 51881 } else if (count === 1) { 51882 result = formatDistanceLocale[token].one(count, options.addSuffix, unit.toLowerCase() + '_one'); 51883 } else { 51884 result = formatDistanceLocale[token].other(count, options.addSuffix, unit.toLowerCase() + '_other'); 51885 } 51886 51887 if (adverb) { 51888 result = translations[adverb[0].toLowerCase()] + ' ' + result; 51889 } 51890 51891 if (options.addSuffix) { 51892 if (options.comparison > 0) { 51893 return 'po ' + result; 51894 } else { 51895 return 'prieÅ¡ ' + result; 51896 } 51897 } 51898 51899 return result; 51900 } 51901 51902 /***/ 51903 }), 51904 /* 683 */ 51905 /***/ (function (module, __webpack_exports__, __webpack_require__) { 51906 51907 "use strict"; 51908 /* harmony import */ 51909 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 51910 51911 var dateFormats = { 51912 full: "y 'm'. MMMM d 'd'., EEEE", 51913 long: "y 'm'. MMMM d 'd'.", 51914 medium: 'y-MM-dd', 51915 short: 'y-MM-dd' 51916 }; 51917 var timeFormats = { 51918 full: 'HH:mm:ss zzzz', 51919 long: 'HH:mm:ss z', 51920 medium: 'HH:mm:ss', 51921 short: 'HH:mm' 51922 }; 51923 var dateTimeFormats = { 51924 full: '{{date}} {{time}}', 51925 long: '{{date}} {{time}}', 51926 medium: '{{date}} {{time}}', 51927 short: '{{date}} {{time}}' 51928 }; 51929 var formatLong = { 51930 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 51931 formats: dateFormats, 51932 defaultWidth: 'full' 51933 }), 51934 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 51935 formats: timeFormats, 51936 defaultWidth: 'full' 51937 }), 51938 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 51939 formats: dateTimeFormats, 51940 defaultWidth: 'full' 51941 }) 51942 }; 51943 /* harmony default export */ 51944 __webpack_exports__["a"] = (formatLong); 51945 51946 /***/ 51947 }), 51948 /* 684 */ 51949 /***/ (function (module, __webpack_exports__, __webpack_require__) { 51950 51951 "use strict"; 51952 /* harmony export (immutable) */ 51953 __webpack_exports__["a"] = formatRelative; 51954 var formatRelativeLocale = { 51955 lastWeek: "'PraÄjusį' eeee p", 51956 yesterday: "'Vakar' p", 51957 today: "'Å iandien' p", 51958 tomorrow: "'Rytoj' p", 51959 nextWeek: 'eeee p', 51960 other: 'P' 51961 }; 51962 51963 function formatRelative(token, _date, _baseDate, _options) { 51964 return formatRelativeLocale[token]; 51965 } 51966 51967 /***/ 51968 }), 51969 /* 685 */ 51970 /***/ (function (module, __webpack_exports__, __webpack_require__) { 51971 51972 "use strict"; 51973 /* harmony import */ 51974 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 51975 51976 var eraValues = { 51977 narrow: ['pr. Kr.', 'po Kr.'], 51978 abbreviated: ['pr. Kr.', 'po Kr.'], 51979 wide: ['prieÅ¡ Kristų', 'po Kristaus'] 51980 }; 51981 var quarterValues = { 51982 narrow: ['1', '2', '3', '4'], 51983 abbreviated: ['I ketv.', 'II ketv.', 'III ketv.', 'IV ketv.'], 51984 wide: ['I ketvirtis', 'II ketvirtis', 'III ketvirtis', 'IV ketvirtis'] 51985 }; 51986 var formattingQuarterValues = { 51987 narrow: ['1', '2', '3', '4'], 51988 abbreviated: ['I k.', 'II k.', 'III k.', 'IV k.'], 51989 wide: ['I ketvirtis', 'II ketvirtis', 'III ketvirtis', 'IV ketvirtis'] 51990 }; 51991 var monthValues = { 51992 narrow: ['S', 'V', 'K', 'B', 'G', 'B', 'L', 'R', 'R', 'S', 'L', 'G'], 51993 abbreviated: ['saus.', 'vas.', 'kov.', 'bal.', 'geg.', 'birž.', 'liep.', 'rugp.', 'rugs.', 'spal.', 'lapkr.', 'gruod.'], 51994 wide: ['sausis', 'vasaris', 'kovas', 'balandis', 'gegužÄ', 'birželis', 'liepa', 'rugpjÅ«tis', 'rugsÄjis', 'spalis', 'lapkritis', 'gruodis'] 51995 }; 51996 var formattingMonthValues = { 51997 narrow: ['S', 'V', 'K', 'B', 'G', 'B', 'L', 'R', 'R', 'S', 'L', 'G'], 51998 abbreviated: ['saus.', 'vas.', 'kov.', 'bal.', 'geg.', 'birž.', 'liep.', 'rugp.', 'rugs.', 'spal.', 'lapkr.', 'gruod.'], 51999 wide: ['sausio', 'vasario', 'kovo', 'balandžio', 'gegužÄs', 'birželio', 'liepos', 'rugpjÅ«Äio', 'rugsÄjo', 'spalio', 'lapkriÄio', 'gruodžio'] 52000 }; 52001 var dayValues = { 52002 narrow: ['S', 'P', 'A', 'T', 'K', 'P', 'Å '], 52003 short: ['Sk', 'Pr', 'An', 'Tr', 'Kt', 'Pn', 'Å t'], 52004 abbreviated: ['sk', 'pr', 'an', 'tr', 'kt', 'pn', 'Å¡t'], 52005 wide: ['sekmadienis', 'pirmadienis', 'antradienis', 'treÄiadienis', 'ketvirtadienis', 'penktadienis', 'Å¡eÅ¡tadienis'] 52006 }; 52007 var formattingDayValues = { 52008 narrow: ['S', 'P', 'A', 'T', 'K', 'P', 'Å '], 52009 short: ['Sk', 'Pr', 'An', 'Tr', 'Kt', 'Pn', 'Å t'], 52010 abbreviated: ['sk', 'pr', 'an', 'tr', 'kt', 'pn', 'Å¡t'], 52011 wide: ['sekmadienį', 'pirmadienį', 'antradienį', 'treÄiadienį', 'ketvirtadienį', 'penktadienį', 'Å¡eÅ¡tadienį'] 52012 }; 52013 var dayPeriodValues = { 52014 narrow: { 52015 am: 'pr. p.', 52016 pm: 'pop.', 52017 midnight: 'vidurnaktis', 52018 noon: 'vidurdienis', 52019 morning: 'rytas', 52020 afternoon: 'diena', 52021 evening: 'vakaras', 52022 night: 'naktis' 52023 }, 52024 abbreviated: { 52025 am: 'prieÅ¡piet', 52026 pm: 'popiet', 52027 midnight: 'vidurnaktis', 52028 noon: 'vidurdienis', 52029 morning: 'rytas', 52030 afternoon: 'diena', 52031 evening: 'vakaras', 52032 night: 'naktis' 52033 }, 52034 wide: { 52035 am: 'prieÅ¡piet', 52036 pm: 'popiet', 52037 midnight: 'vidurnaktis', 52038 noon: 'vidurdienis', 52039 morning: 'rytas', 52040 afternoon: 'diena', 52041 evening: 'vakaras', 52042 night: 'naktis' 52043 } 52044 }; 52045 var formattingDayPeriodValues = { 52046 narrow: { 52047 am: 'pr. p.', 52048 pm: 'pop.', 52049 midnight: 'vidurnaktis', 52050 noon: 'perpiet', 52051 morning: 'rytas', 52052 afternoon: 'popietÄ', 52053 evening: 'vakaras', 52054 night: 'naktis' 52055 }, 52056 abbreviated: { 52057 am: 'prieÅ¡piet', 52058 pm: 'popiet', 52059 midnight: 'vidurnaktis', 52060 noon: 'perpiet', 52061 morning: 'rytas', 52062 afternoon: 'popietÄ', 52063 evening: 'vakaras', 52064 night: 'naktis' 52065 }, 52066 wide: { 52067 am: 'prieÅ¡piet', 52068 pm: 'popiet', 52069 midnight: 'vidurnaktis', 52070 noon: 'perpiet', 52071 morning: 'rytas', 52072 afternoon: 'popietÄ', 52073 evening: 'vakaras', 52074 night: 'naktis' 52075 } 52076 }; 52077 52078 function ordinalNumber(dirtyNumber, _dirtyOptions) { 52079 var number = Number(dirtyNumber); 52080 return number + '-oji'; 52081 } 52082 52083 var localize = { 52084 ordinalNumber: ordinalNumber, 52085 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 52086 values: eraValues, 52087 defaultWidth: 'wide' 52088 }), 52089 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 52090 values: quarterValues, 52091 defaultWidth: 'wide', 52092 formattingValues: formattingQuarterValues, 52093 defaultFormattingWidth: 'wide', 52094 argumentCallback: function (quarter) { 52095 return Number(quarter) - 1; 52096 } 52097 }), 52098 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 52099 values: monthValues, 52100 defaultWidth: 'wide', 52101 formattingValues: formattingMonthValues, 52102 defaultFormattingWidth: 'wide' 52103 }), 52104 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 52105 values: dayValues, 52106 defaultWidth: 'wide', 52107 formattingValues: formattingDayValues, 52108 defaultFormattingWidth: 'wide' 52109 }), 52110 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 52111 values: dayPeriodValues, 52112 defaultWidth: 'wide', 52113 formattingValues: formattingDayPeriodValues, 52114 defaultFormattingWidth: 'wide' 52115 }) 52116 }; 52117 /* harmony default export */ 52118 __webpack_exports__["a"] = (localize); 52119 52120 /***/ 52121 }), 52122 /* 686 */ 52123 /***/ (function (module, __webpack_exports__, __webpack_require__) { 52124 52125 "use strict"; 52126 /* harmony import */ 52127 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 52128 /* harmony import */ 52129 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 52130 52131 52132 var matchOrdinalNumberPattern = /^(\d+)(-oji)?/i; 52133 var parseOrdinalNumberPattern = /\d+/i; 52134 var matchEraPatterns = { 52135 narrow: /^p(r|o)\.?\s?(kr\.?|me)/i, 52136 abbreviated: /^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mÅ«sų eroje)/i, 52137 wide: /^(prieÅ¡ Kristų|prieÅ¡ mÅ«sų erÄ |po Kristaus|mÅ«sų eroje)/i 52138 }; 52139 var parseEraPatterns = { 52140 wide: [/prieÅ¡/i, /(po|mÅ«sų)/i], 52141 any: [/^pr/i, /^(po|m)/i] 52142 }; 52143 var matchQuarterPatterns = { 52144 narrow: /^([1234])/i, 52145 abbreviated: /^(I|II|III|IV)\s?ketv?\.?/i, 52146 wide: /^(I|II|III|IV)\s?ketvirtis/i 52147 }; 52148 var parseQuarterPatterns = { 52149 narrow: [/1/i, /2/i, /3/i, /4/i], 52150 any: [/I$/i, /II$/i, /III/i, /IV/i] 52151 }; 52152 var matchMonthPatterns = { 52153 narrow: /^[svkbglr]/i, 52154 abbreviated: /^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i, 52155 wide: /^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužÄs?|birželi(s|o)|liep(a|os)|rugpjÅ«(t|Ä)i(s|o)|rugsÄj(is|o)|spali(s|o)|lapkri(t|Ä)i(s|o)|gruodž?i(s|o))/i 52156 }; 52157 var parseMonthPatterns = { 52158 narrow: [/^s/i, /^v/i, /^k/i, /^b/i, /^g/i, /^b/i, /^l/i, /^r/i, /^r/i, /^s/i, /^l/i, /^g/i], 52159 any: [/^saus/i, /^vas/i, /^kov/i, /^bal/i, /^geg/i, /^birž/i, /^liep/i, /^rugp/i, /^rugs/i, /^spal/i, /^lapkr/i, /^gruod/i] 52160 }; 52161 var matchDayPatterns = { 52162 narrow: /^[spatkÅ¡]/i, 52163 short: /^(sk|pr|an|tr|kt|pn|Å¡t)/i, 52164 abbreviated: /^(sk|pr|an|tr|kt|pn|Å¡t)/i, 52165 wide: /^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|treÄiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|Å¡eÅ¡tadien(is|į))/i 52166 }; 52167 var parseDayPatterns = { 52168 narrow: [/^s/i, /^p/i, /^a/i, /^t/i, /^k/i, /^p/i, /^Å¡/i], 52169 wide: [/^se/i, /^pi/i, /^an/i, /^tr/i, /^ke/i, /^pe/i, /^Å¡e/i], 52170 any: [/^sk/i, /^pr/i, /^an/i, /^tr/i, /^kt/i, /^pn/i, /^Å¡t/i] 52171 }; 52172 var matchDayPeriodPatterns = { 52173 narrow: /^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietÄ)|vakaras|naktis)/i, 52174 any: /^(prieÅ¡piet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietÄ)|vakaras|naktis)/i 52175 }; 52176 var parseDayPeriodPatterns = { 52177 narrow: { 52178 am: /^pr/i, 52179 pm: /^pop./i, 52180 midnight: /^vidurnaktis/i, 52181 noon: /^(vidurdienis|perp)/i, 52182 morning: /rytas/i, 52183 afternoon: /(die|popietÄ)/i, 52184 evening: /vakaras/i, 52185 night: /naktis/i 52186 }, 52187 any: { 52188 am: /^pr/i, 52189 pm: /^popiet$/i, 52190 midnight: /^vidurnaktis/i, 52191 noon: /^(vidurdienis|perp)/i, 52192 morning: /rytas/i, 52193 afternoon: /(die|popietÄ)/i, 52194 evening: /vakaras/i, 52195 night: /naktis/i 52196 } 52197 }; 52198 var match = { 52199 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 52200 matchPattern: matchOrdinalNumberPattern, 52201 parsePattern: parseOrdinalNumberPattern, 52202 valueCallback: function (value) { 52203 return parseInt(value, 10); 52204 } 52205 }), 52206 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 52207 matchPatterns: matchEraPatterns, 52208 defaultMatchWidth: 'wide', 52209 parsePatterns: parseEraPatterns, 52210 defaultParseWidth: 'any' 52211 }), 52212 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 52213 matchPatterns: matchQuarterPatterns, 52214 defaultMatchWidth: 'wide', 52215 parsePatterns: parseQuarterPatterns, 52216 defaultParseWidth: 'any', 52217 valueCallback: function (index) { 52218 return index + 1; 52219 } 52220 }), 52221 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 52222 matchPatterns: matchMonthPatterns, 52223 defaultMatchWidth: 'wide', 52224 parsePatterns: parseMonthPatterns, 52225 defaultParseWidth: 'any' 52226 }), 52227 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 52228 matchPatterns: matchDayPatterns, 52229 defaultMatchWidth: 'wide', 52230 parsePatterns: parseDayPatterns, 52231 defaultParseWidth: 'any' 52232 }), 52233 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 52234 matchPatterns: matchDayPeriodPatterns, 52235 defaultMatchWidth: 'any', 52236 parsePatterns: parseDayPeriodPatterns, 52237 defaultParseWidth: 'any' 52238 }) 52239 }; 52240 /* harmony default export */ 52241 __webpack_exports__["a"] = (match); 52242 52243 /***/ 52244 }), 52245 /* 687 */ 52246 /***/ (function (module, __webpack_exports__, __webpack_require__) { 52247 52248 "use strict"; 52249 /* harmony import */ 52250 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(688); 52251 /* harmony import */ 52252 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(689); 52253 /* harmony import */ 52254 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(690); 52255 /* harmony import */ 52256 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(691); 52257 /* harmony import */ 52258 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(692); 52259 52260 52261 /** 52262 * @type {Locale} 52263 * @category Locales 52264 * @summary Latvian locale (Latvia). 52265 * @language Latvian 52266 * @iso-639-2 lav 52267 * @author RÅ«dolfs PuÄ·Ä«tis [@prudolfs]{@link https://github.com/prudolfs} 52268 */ 52269 52270 var locale = { 52271 code: 'lv', 52272 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 52273 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 52274 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 52275 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 52276 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 52277 options: { 52278 weekStartsOn: 1 52279 /* Monday */ 52280 , 52281 firstWeekContainsDate: 4 52282 } 52283 }; 52284 /* harmony default export */ 52285 __webpack_exports__["a"] = (locale); 52286 52287 /***/ 52288 }), 52289 /* 688 */ 52290 /***/ (function (module, __webpack_exports__, __webpack_require__) { 52291 52292 "use strict"; 52293 /* harmony export (immutable) */ 52294 __webpack_exports__["a"] = formatDistance; 52295 52296 function buildLocalizeTokenFn(schema) { 52297 return function (count, options) { 52298 if (count === 1) { 52299 if (options.addSuffix) { 52300 return schema.one[0].replace('{{time}}', schema.one[2]); 52301 } else { 52302 return schema.one[0].replace('{{time}}', schema.one[1]); 52303 } 52304 } else { 52305 var rem = count % 10 === 1 && count % 100 !== 11; 52306 52307 if (options.addSuffix) { 52308 return schema.other[0].replace('{{time}}', rem ? schema.other[3] : schema.other[4]).replace('{{count}}', count); 52309 } else { 52310 return schema.other[0].replace('{{time}}', rem ? schema.other[1] : schema.other[2]).replace('{{count}}', count); 52311 } 52312 } 52313 }; 52314 } 52315 52316 var formatDistanceLocale = { 52317 lessThanXSeconds: buildLocalizeTokenFn({ 52318 one: ['mazÄk par {{time}}', 'sekundi', 'sekundi'], 52319 other: ['mazÄk nekÄ {{count}} {{time}}', 'sekunde', 'sekundes', 'sekundes', 'sekundÄm'] 52320 }), 52321 xSeconds: buildLocalizeTokenFn({ 52322 one: ['1 {{time}}', 'sekunde', 'sekundes'], 52323 other: ['{{count}} {{time}}', 'sekunde', 'sekundes', 'sekundes', 'sekundÄm'] 52324 }), 52325 halfAMinute: function (count, options) { 52326 if (options.addSuffix) { 52327 return 'pusminÅ«tes'; 52328 } else { 52329 return 'pusminÅ«te'; 52330 } 52331 }, 52332 lessThanXMinutes: buildLocalizeTokenFn({ 52333 one: ['mazÄk par {{time}}', 'minÅ«ti', 'minÅ«ti'], 52334 other: ['mazÄk nekÄ {{count}} {{time}}', 'minÅ«te', 'minÅ«tes', 'minÅ«tes', 'minÅ«tÄm'] 52335 }), 52336 xMinutes: buildLocalizeTokenFn({ 52337 one: ['1 {{time}}', 'minÅ«te', 'minÅ«tes'], 52338 other: ['{{count}} {{time}}', 'minÅ«te', 'minÅ«tes', 'minÅ«tes', 'minÅ«tÄm'] 52339 }), 52340 aboutXHours: buildLocalizeTokenFn({ 52341 one: ['apmÄram 1 {{time}}', 'stunda', 'stundas'], 52342 other: ['apmÄram {{count}} {{time}}', 'stunda', 'stundas', 'stundas', 'stundÄm'] 52343 }), 52344 xHours: buildLocalizeTokenFn({ 52345 one: ['1 {{time}}', 'stunda', 'stundas'], 52346 other: ['{{count}} {{time}}', 'stunda', 'stundas', 'stundas', 'stundÄm'] 52347 }), 52348 xDays: buildLocalizeTokenFn({ 52349 one: ['1 {{time}}', 'diena', 'dienas'], 52350 other: ['{{count}} {{time}}', 'diena', 'dienas', 'dienas', 'dienÄm'] 52351 }), 52352 aboutXWeeks: buildLocalizeTokenFn({ 52353 one: ['apmÄram 1 {{time}}', 'nedÄļa', 'nedÄļas'], 52354 other: ['apmÄram {{count}} {{time}}', 'nedÄļa', 'nedÄļu', 'nedÄļas', 'nedÄļÄm'] 52355 }), 52356 xWeeks: buildLocalizeTokenFn({ 52357 one: ['1 {{time}}', 'nedÄļa', 'nedÄļas'], 52358 other: ['{{count}} {{time}}', // TODO 52359 'nedÄļa', 'nedÄļu', 'nedÄļas', 'nedÄļÄm'] 52360 }), 52361 aboutXMonths: buildLocalizeTokenFn({ 52362 one: ['apmÄram 1 {{time}}', 'mÄnesis', 'mÄneÅ¡a'], 52363 other: ['apmÄram {{count}} {{time}}', 'mÄnesis', 'mÄneÅ¡i', 'mÄneÅ¡a', 'mÄneÅ¡iem'] 52364 }), 52365 xMonths: buildLocalizeTokenFn({ 52366 one: ['1 {{time}}', 'mÄnesis', 'mÄneÅ¡a'], 52367 other: ['{{count}} {{time}}', 'mÄnesis', 'mÄneÅ¡i', 'mÄneÅ¡a', 'mÄneÅ¡iem'] 52368 }), 52369 aboutXYears: buildLocalizeTokenFn({ 52370 one: ['apmÄram 1 {{time}}', 'gads', 'gada'], 52371 other: ['apmÄram {{count}} {{time}}', 'gads', 'gadi', 'gada', 'gadiem'] 52372 }), 52373 xYears: buildLocalizeTokenFn({ 52374 one: ['1 {{time}}', 'gads', 'gada'], 52375 other: ['{{count}} {{time}}', 'gads', 'gadi', 'gada', 'gadiem'] 52376 }), 52377 overXYears: buildLocalizeTokenFn({ 52378 one: ['ilgÄk par 1 {{time}}', 'gadu', 'gadu'], 52379 other: ['vairÄk nekÄ {{count}} {{time}}', 'gads', 'gadi', 'gada', 'gadiem'] 52380 }), 52381 almostXYears: buildLocalizeTokenFn({ 52382 one: ['gandrÄ«z 1 {{time}}', 'gads', 'gada'], 52383 other: ['vairÄk nekÄ {{count}} {{time}}', 'gads', 'gadi', 'gada', 'gadiem'] 52384 }) 52385 }; 52386 52387 function formatDistance(token, count, options) { 52388 options = options || {}; 52389 var result = formatDistanceLocale[token](count, options); 52390 52391 if (options.addSuffix) { 52392 if (options.comparison > 0) { 52393 return 'pÄc ' + result; 52394 } else { 52395 return 'pirms ' + result; 52396 } 52397 } 52398 52399 return result; 52400 } 52401 52402 /***/ 52403 }), 52404 /* 689 */ 52405 /***/ (function (module, __webpack_exports__, __webpack_require__) { 52406 52407 "use strict"; 52408 /* harmony import */ 52409 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 52410 52411 var dateFormats = { 52412 full: "y. 'gada' M. MMMM., EEEE", 52413 long: "y. 'gada' M. MMMM", 52414 medium: 'dd.MM.y.', 52415 short: 'dd.MM.y.' 52416 }; 52417 var timeFormats = { 52418 full: 'HH:mm:ss zzzz', 52419 long: 'HH:mm:ss z', 52420 medium: 'HH:mm:ss', 52421 short: 'HH:mm' 52422 }; 52423 var dateTimeFormats = { 52424 full: "{{date}} 'plkst.' {{time}}", 52425 long: "{{date}} 'plkst.' {{time}}", 52426 medium: '{{date}}, {{time}}', 52427 short: '{{date}}, {{time}}' 52428 }; 52429 var formatLong = { 52430 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 52431 formats: dateFormats, 52432 defaultWidth: 'full' 52433 }), 52434 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 52435 formats: timeFormats, 52436 defaultWidth: 'full' 52437 }), 52438 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 52439 formats: dateTimeFormats, 52440 defaultWidth: 'full' 52441 }) 52442 }; 52443 /* harmony default export */ 52444 __webpack_exports__["a"] = (formatLong); 52445 52446 /***/ 52447 }), 52448 /* 690 */ 52449 /***/ (function (module, __webpack_exports__, __webpack_require__) { 52450 52451 "use strict"; 52452 /* harmony export (immutable) */ 52453 __webpack_exports__["a"] = formatRelative; 52454 /* harmony import */ 52455 var __WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__ = __webpack_require__(13); 52456 52457 var weekdays = ['svÄtdienÄ', 'pirmdienÄ', 'otrdienÄ', 'treÅ¡dienÄ', 'ceturtdienÄ', 'piektdienÄ', 'sestdienÄ']; 52458 var formatRelativeLocale = { 52459 lastWeek: function (date, baseDate, options) { 52460 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](date, baseDate, options)) { 52461 return "eeee 'plkst.' p"; 52462 } 52463 52464 var weekday = weekdays[date.getUTCDay()]; 52465 return "'PagÄjuÅ¡Ä " + weekday + " plkst.' p"; 52466 }, 52467 yesterday: "'Vakar plkst.' p", 52468 today: "'Å odien plkst.' p", 52469 tomorrow: "'RÄ«t plkst.' p", 52470 nextWeek: function (date, baseDate, options) { 52471 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](date, baseDate, options)) { 52472 return "eeee 'plkst.' p"; 52473 } 52474 52475 var weekday = weekdays[date.getUTCDay()]; 52476 return "'NÄkamajÄ " + weekday + " plkst.' p"; 52477 }, 52478 other: 'P' 52479 }; 52480 52481 function formatRelative(token, date, baseDate, options) { 52482 var format = formatRelativeLocale[token]; 52483 52484 if (typeof format === 'function') { 52485 return format(date, baseDate, options); 52486 } 52487 52488 return format; 52489 } 52490 52491 /***/ 52492 }), 52493 /* 691 */ 52494 /***/ (function (module, __webpack_exports__, __webpack_require__) { 52495 52496 "use strict"; 52497 /* harmony import */ 52498 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 52499 52500 var eraValues = { 52501 narrow: ['p.m.Ä', 'm.Ä'], 52502 abbreviated: ['p. m. Ä.', 'm. Ä.'], 52503 wide: ['pirms mÅ«su Äras', 'mÅ«su ÄrÄ'] 52504 }; 52505 var quarterValues = { 52506 narrow: ['1', '2', '3', '4'], 52507 abbreviated: ['1. cet.', '2. cet.', '3. cet.', '4. cet.'], 52508 wide: ['pirmais ceturksnis', 'otrais ceturksnis', 'treÅ¡ais ceturksnis', 'ceturtais ceturksnis'] 52509 }; 52510 var formattingQuarterValues = { 52511 narrow: ['1', '2', '3', '4'], 52512 abbreviated: ['1. cet.', '2. cet.', '3. cet.', '4. cet.'], 52513 wide: ['pirmajÄ ceturksnÄ«', 'otrajÄ ceturksnÄ«', 'treÅ¡ajÄ ceturksnÄ«', 'ceturtajÄ ceturksnÄ«'] 52514 }; 52515 var monthValues = { 52516 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], 52517 abbreviated: ['janv.', 'febr.', 'marts', 'apr.', 'maijs', 'jÅ«n.', 'jÅ«l.', 'aug.', 'sept.', 'okt.', 'nov.', 'dec.'], 52518 wide: ['janvÄris', 'februÄris', 'marts', 'aprÄ«lis', 'maijs', 'jÅ«nijs', 'jÅ«lijs', 'augusts', 'septembris', 'oktobris', 'novembris', 'decembris'] 52519 }; 52520 var formattingMonthValues = { 52521 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], 52522 abbreviated: ['janv.', 'febr.', 'martÄ', 'apr.', 'maijs', 'jÅ«n.', 'jÅ«l.', 'aug.', 'sept.', 'okt.', 'nov.', 'dec.'], 52523 wide: ['janvÄrÄ«', 'februÄrÄ«', 'martÄ', 'aprÄ«lÄ«', 'maijÄ', 'jÅ«nijÄ', 'jÅ«lijÄ', 'augustÄ', 'septembrÄ«', 'oktobrÄ«', 'novembrÄ«', 'decembrÄ«'] 52524 }; 52525 var dayValues = { 52526 narrow: ['S', 'P', 'O', 'T', 'C', 'P', 'S'], 52527 short: ['Sv', 'P', 'O', 'T', 'C', 'Pk', 'S'], 52528 abbreviated: ['svÄtd.', 'pirmd.', 'otrd.', 'treÅ¡d.', 'ceturtd.', 'piektd.', 'sestd.'], 52529 wide: ['svÄtdiena', 'pirmdiena', 'otrdiena', 'treÅ¡diena', 'ceturtdiena', 'piektdiena', 'sestdiena'] 52530 }; 52531 var formattingDayValues = { 52532 narrow: ['S', 'P', 'O', 'T', 'C', 'P', 'S'], 52533 short: ['Sv', 'P', 'O', 'T', 'C', 'Pk', 'S'], 52534 abbreviated: ['svÄtd.', 'pirmd.', 'otrd.', 'treÅ¡d.', 'ceturtd.', 'piektd.', 'sestd.'], 52535 wide: ['svÄtdienÄ', 'pirmdienÄ', 'otrdienÄ', 'treÅ¡dienÄ', 'ceturtdienÄ', 'piektdienÄ', 'sestdienÄ'] 52536 }; 52537 var dayPeriodValues = { 52538 narrow: { 52539 am: 'am', 52540 pm: 'pm', 52541 midnight: 'pusn.', 52542 noon: 'pusd.', 52543 morning: 'rÄ«ts', 52544 afternoon: 'diena', 52545 evening: 'vakars', 52546 night: 'nakts' 52547 }, 52548 abbreviated: { 52549 am: 'am', 52550 pm: 'pm', 52551 midnight: 'pusn.', 52552 noon: 'pusd.', 52553 morning: 'rÄ«ts', 52554 afternoon: 'pÄcpusd.', 52555 evening: 'vakars', 52556 night: 'nakts' 52557 }, 52558 wide: { 52559 am: 'am', 52560 pm: 'pm', 52561 midnight: 'pusnakts', 52562 noon: 'pusdienlaiks', 52563 morning: 'rÄ«ts', 52564 afternoon: 'pÄcpusdiena', 52565 evening: 'vakars', 52566 night: 'nakts' 52567 } 52568 }; 52569 var formattingDayPeriodValues = { 52570 narrow: { 52571 am: 'am', 52572 pm: 'pm', 52573 midnight: 'pusn.', 52574 noon: 'pusd.', 52575 morning: 'rÄ«tÄ', 52576 afternoon: 'dienÄ', 52577 evening: 'vakarÄ', 52578 night: 'naktÄ«' 52579 }, 52580 abbreviated: { 52581 am: 'am', 52582 pm: 'pm', 52583 midnight: 'pusn.', 52584 noon: 'pusd.', 52585 morning: 'rÄ«tÄ', 52586 afternoon: 'pÄcpusd.', 52587 evening: 'vakarÄ', 52588 night: 'naktÄ«' 52589 }, 52590 wide: { 52591 am: 'am', 52592 pm: 'pm', 52593 midnight: 'pusnaktÄ«', 52594 noon: 'pusdienlaikÄ', 52595 morning: 'rÄ«tÄ', 52596 afternoon: 'pÄcpusdienÄ', 52597 evening: 'vakarÄ', 52598 night: 'naktÄ«' 52599 } 52600 }; 52601 52602 function ordinalNumber(number, _options) { 52603 return number + '.'; 52604 } 52605 52606 var localize = { 52607 ordinalNumber: ordinalNumber, 52608 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 52609 values: eraValues, 52610 defaultWidth: 'wide' 52611 }), 52612 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 52613 values: quarterValues, 52614 defaultWidth: 'wide', 52615 formattingValues: formattingQuarterValues, 52616 defaultFormattingWidth: 'wide', 52617 argumentCallback: function (quarter) { 52618 return Number(quarter) - 1; 52619 } 52620 }), 52621 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 52622 values: monthValues, 52623 defaultWidth: 'wide', 52624 formattingValues: formattingMonthValues, 52625 defaultFormattingWidth: 'wide' 52626 }), 52627 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 52628 values: dayValues, 52629 defaultWidth: 'wide', 52630 formattingValues: formattingDayValues, 52631 defaultFormattingWidth: 'wide' 52632 }), 52633 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 52634 values: dayPeriodValues, 52635 defaultWidth: 'wide', 52636 formattingValues: formattingDayPeriodValues, 52637 defaultFormattingWidth: 'wide' 52638 }) 52639 }; 52640 /* harmony default export */ 52641 __webpack_exports__["a"] = (localize); 52642 52643 /***/ 52644 }), 52645 /* 692 */ 52646 /***/ (function (module, __webpack_exports__, __webpack_require__) { 52647 52648 "use strict"; 52649 /* harmony import */ 52650 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 52651 /* harmony import */ 52652 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 52653 52654 52655 var matchOrdinalNumberPattern = /^(\d+)\./i; 52656 var parseOrdinalNumberPattern = /\d+/i; 52657 var matchEraPatterns = { 52658 narrow: /^(p\.m\.Ä|m\.Ä)/i, 52659 abbreviated: /^(p\. m\. Ä\.|m\. Ä\.)/i, 52660 wide: /^(pirms mÅ«su Äras|mÅ«su ÄrÄ)/i 52661 }; 52662 var parseEraPatterns = { 52663 any: [/^p/i, /^m/i] 52664 }; 52665 var matchQuarterPatterns = { 52666 narrow: /^[1234]/i, 52667 abbreviated: /^[1234](\. cet\.)/i, 52668 wide: /^(pirma(is|jÄ)|otra(is|jÄ)|treÅ¡a(is|jÄ)|ceturta(is|jÄ)) ceturksn(is|Ä«)/i 52669 }; 52670 var parseQuarterPatterns = { 52671 narrow: [/^1/i, /^2/i, /^3/i, /^4/i], 52672 abbreviated: [/^1/i, /^2/i, /^3/i, /^4/i], 52673 wide: [/^p/i, /^o/i, /^t/i, /^c/i] 52674 }; 52675 var matchMonthPatterns = { 52676 narrow: /^[jfmasond]/i, 52677 abbreviated: /^(janv\.|febr\.|marts|apr\.|maijs|jÅ«n\.|jÅ«l\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i, 52678 wide: /^(janvÄr(is|Ä«)|februÄr(is|Ä«)|mart[sÄ]|aprÄ«l(is|Ä«)|maij[sÄ]|jÅ«nij[sÄ]|jÅ«lij[sÄ]|august[sÄ]|septembr(is|Ä«)|oktobr(is|Ä«)|novembr(is|Ä«)|decembr(is|Ä«))/i 52679 }; 52680 var parseMonthPatterns = { 52681 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 52682 any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^mai/i, /^jÅ«n/i, /^jÅ«l/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] 52683 }; 52684 var matchDayPatterns = { 52685 narrow: /^[spotc]/i, 52686 short: /^(sv|pi|o|t|c|pk|s)/i, 52687 abbreviated: /^(svÄtd\.|pirmd\.|otrd.\|treÅ¡d\.|ceturtd\.|piektd\.|sestd\.)/i, 52688 wide: /^(svÄtdien(a|Ä)|pirmdien(a|Ä)|otrdien(a|Ä)|treÅ¡dien(a|Ä)|ceturtdien(a|Ä)|piektdien(a|Ä)|sestdien(a|Ä))/i 52689 }; 52690 var parseDayPatterns = { 52691 narrow: [/^s/i, /^p/i, /^o/i, /^t/i, /^c/i, /^p/i, /^s/i], 52692 any: [/^sv/i, /^pi/i, /^o/i, /^t/i, /^c/i, /^p/i, /^se/i] 52693 }; 52694 var matchDayPeriodPatterns = { 52695 narrow: /^(am|pm|pusn\.|pusd\.|rÄ«t(s|Ä)|dien(a|Ä)|vakar(s|Ä)|nakt(s|Ä«))/, 52696 abbreviated: /^(am|pm|pusn\.|pusd\.|rÄ«t(s|Ä)|pÄcpusd\.|vakar(s|Ä)|nakt(s|Ä«))/, 52697 wide: /^(am|pm|pusnakt(s|Ä«)|pusdienlaik(s|Ä)|rÄ«t(s|Ä)|pÄcpusdien(a|Ä)|vakar(s|Ä)|nakt(s|Ä«))/i 52698 }; 52699 var parseDayPeriodPatterns = { 52700 any: { 52701 am: /^am/i, 52702 pm: /^pm/i, 52703 midnight: /^pusn/i, 52704 noon: /^pusd/i, 52705 morning: /^r/i, 52706 afternoon: /^(d|pÄc)/i, 52707 evening: /^v/i, 52708 night: /^n/i 52709 } 52710 }; 52711 var match = { 52712 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 52713 matchPattern: matchOrdinalNumberPattern, 52714 parsePattern: parseOrdinalNumberPattern, 52715 valueCallback: function (value) { 52716 return parseInt(value, 10); 52717 } 52718 }), 52719 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 52720 matchPatterns: matchEraPatterns, 52721 defaultMatchWidth: 'wide', 52722 parsePatterns: parseEraPatterns, 52723 defaultParseWidth: 'any' 52724 }), 52725 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 52726 matchPatterns: matchQuarterPatterns, 52727 defaultMatchWidth: 'wide', 52728 parsePatterns: parseQuarterPatterns, 52729 defaultParseWidth: 'any', 52730 valueCallback: function (index) { 52731 return index + 1; 52732 } 52733 }), 52734 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 52735 matchPatterns: matchMonthPatterns, 52736 defaultMatchWidth: 'wide', 52737 parsePatterns: parseMonthPatterns, 52738 defaultParseWidth: 'any' 52739 }), 52740 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 52741 matchPatterns: matchDayPatterns, 52742 defaultMatchWidth: 'wide', 52743 parsePatterns: parseDayPatterns, 52744 defaultParseWidth: 'any' 52745 }), 52746 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 52747 matchPatterns: matchDayPeriodPatterns, 52748 defaultMatchWidth: 'any', 52749 parsePatterns: parseDayPeriodPatterns, 52750 defaultParseWidth: 'any' 52751 }) 52752 }; 52753 /* harmony default export */ 52754 __webpack_exports__["a"] = (match); 52755 52756 /***/ 52757 }), 52758 /* 693 */ 52759 /***/ (function (module, __webpack_exports__, __webpack_require__) { 52760 52761 "use strict"; 52762 /* harmony import */ 52763 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(694); 52764 /* harmony import */ 52765 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(695); 52766 /* harmony import */ 52767 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(696); 52768 /* harmony import */ 52769 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(697); 52770 /* harmony import */ 52771 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(698); 52772 52773 52774 /** 52775 * @type {Locale} 52776 * @category Locales 52777 * @summary Macedonian locale. 52778 * @language Macedonian 52779 * @iso-639-2 mkd 52780 * @author Petar Vlahu [@vlahupetar]{@link https://github.com/vlahupetar} 52781 * @author Altrim Beqiri [@altrim]{@link https://github.com/altrim} 52782 */ 52783 52784 var locale = { 52785 code: 'mk', 52786 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 52787 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 52788 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 52789 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 52790 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 52791 options: { 52792 weekStartsOn: 1 52793 /* Monday */ 52794 , 52795 firstWeekContainsDate: 4 52796 } 52797 }; 52798 /* harmony default export */ 52799 __webpack_exports__["a"] = (locale); 52800 52801 /***/ 52802 }), 52803 /* 694 */ 52804 /***/ (function (module, __webpack_exports__, __webpack_require__) { 52805 52806 "use strict"; 52807 /* harmony export (immutable) */ 52808 __webpack_exports__["a"] = formatDistance; 52809 var formatDistanceLocale = { 52810 lessThanXSeconds: { 52811 one: 'Ð¿Ð¾Ð¼Ð°Ð»ÐºÑ Ð¾Ð´ ÑекÑнда', 52812 other: 'Ð¿Ð¾Ð¼Ð°Ð»ÐºÑ Ð¾Ð´ {{count}} ÑекÑнди' 52813 }, 52814 xSeconds: { 52815 one: '1 ÑекÑнда', 52816 other: '{{count}} ÑекÑнди' 52817 }, 52818 halfAMinute: 'половина минÑÑа', 52819 lessThanXMinutes: { 52820 one: 'Ð¿Ð¾Ð¼Ð°Ð»ÐºÑ Ð¾Ð´ минÑÑа', 52821 other: 'Ð¿Ð¾Ð¼Ð°Ð»ÐºÑ Ð¾Ð´ {{count}} минÑÑи' 52822 }, 52823 xMinutes: { 52824 one: '1 минÑÑа', 52825 other: '{{count}} минÑÑи' 52826 }, 52827 aboutXHours: { 52828 one: 'Ð¾ÐºÐ¾Ð»Ñ 1 ÑаÑ', 52829 other: 'Ð¾ÐºÐ¾Ð»Ñ {{count}} ÑаÑа' 52830 }, 52831 xHours: { 52832 one: '1 ÑаÑ', 52833 other: '{{count}} ÑаÑа' 52834 }, 52835 xDays: { 52836 one: '1 ден', 52837 other: '{{count}} дена' 52838 }, 52839 aboutXWeeks: { 52840 one: 'Ð¾ÐºÐ¾Ð»Ñ 1 недела', 52841 other: 'Ð¾ÐºÐ¾Ð»Ñ {{count}} меÑеÑи' 52842 }, 52843 xWeeks: { 52844 one: '1 недела', 52845 other: '{{count}} недели' 52846 }, 52847 aboutXMonths: { 52848 one: 'Ð¾ÐºÐ¾Ð»Ñ 1 меÑеÑ', 52849 other: 'Ð¾ÐºÐ¾Ð»Ñ {{count}} недели' 52850 }, 52851 xMonths: { 52852 one: '1 меÑеÑ', 52853 other: '{{count}} меÑеÑи' 52854 }, 52855 aboutXYears: { 52856 one: 'Ð¾ÐºÐ¾Ð»Ñ 1 година', 52857 other: 'Ð¾ÐºÐ¾Ð»Ñ {{count}} години' 52858 }, 52859 xYears: { 52860 one: '1 година', 52861 other: '{{count}} години' 52862 }, 52863 overXYears: { 52864 one: 'повеÑе од 1 година', 52865 other: 'повеÑе од {{count}} години' 52866 }, 52867 almostXYears: { 52868 one: 'Ð±ÐµÐ·Ð¼Ð°Ð»ÐºÑ 1 година', 52869 other: 'Ð±ÐµÐ·Ð¼Ð°Ð»ÐºÑ {{count}} години' 52870 } 52871 }; 52872 52873 function formatDistance(token, count, options) { 52874 options = options || {}; 52875 var result; 52876 52877 if (typeof formatDistanceLocale[token] === 'string') { 52878 result = formatDistanceLocale[token]; 52879 } else if (count === 1) { 52880 result = formatDistanceLocale[token].one; 52881 } else { 52882 result = formatDistanceLocale[token].other.replace('{{count}}', count); 52883 } 52884 52885 if (options.addSuffix) { 52886 if (options.comparison > 0) { 52887 return 'за ' + result; 52888 } else { 52889 return 'пÑед ' + result; 52890 } 52891 } 52892 52893 return result; 52894 } 52895 52896 /***/ 52897 }), 52898 /* 695 */ 52899 /***/ (function (module, __webpack_exports__, __webpack_require__) { 52900 52901 "use strict"; 52902 /* harmony import */ 52903 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 52904 52905 var dateFormats = { 52906 full: 'EEEE, dd MMMM yyyy', 52907 long: 'dd MMMM yyyy', 52908 medium: 'dd MMM yyyy', 52909 short: 'dd/MM/yyyy' 52910 }; 52911 var timeFormats = { 52912 full: 'HH:mm:ss zzzz', 52913 long: 'HH:mm:ss z', 52914 medium: 'HH:mm:ss', 52915 short: 'H:mm' 52916 }; 52917 var dateTimeFormats = { 52918 any: '{{date}} {{time}}' 52919 }; 52920 var formatLong = { 52921 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 52922 formats: dateFormats, 52923 defaultWidth: 'full' 52924 }), 52925 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 52926 formats: timeFormats, 52927 defaultWidth: 'full' 52928 }), 52929 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 52930 formats: dateTimeFormats, 52931 defaultWidth: 'any' 52932 }) 52933 }; 52934 /* harmony default export */ 52935 __webpack_exports__["a"] = (formatLong); 52936 52937 /***/ 52938 }), 52939 /* 696 */ 52940 /***/ (function (module, __webpack_exports__, __webpack_require__) { 52941 52942 "use strict"; 52943 /* harmony export (immutable) */ 52944 __webpack_exports__["a"] = formatRelative; 52945 /* harmony import */ 52946 var __WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__ = __webpack_require__(13); 52947 52948 var weekdays = ['недела', 'понеделник', 'вÑоÑник', 'ÑÑеда', 'ÑеÑвÑÑок', 'пеÑок', 'ÑабоÑа']; 52949 52950 function lastWeek(day) { 52951 var weekday = weekdays[day]; 52952 52953 switch (day) { 52954 case 0: 52955 case 3: 52956 case 6: 52957 return "'минаÑаÑа " + weekday + " во' p"; 52958 52959 case 1: 52960 case 2: 52961 case 4: 52962 case 5: 52963 return "'минаÑÐ¸Ð¾Ñ " + weekday + " во' p"; 52964 } 52965 } 52966 52967 function thisWeek(day) { 52968 var weekday = weekdays[day]; 52969 52970 switch (day) { 52971 case 0: 52972 case 3: 52973 case 6: 52974 return "'ова " + weekday + " вo' p"; 52975 52976 case 1: 52977 case 2: 52978 case 4: 52979 case 5: 52980 return "'Ð¾Ð²Ð¾Ñ " + weekday + " вo' p"; 52981 } 52982 } 52983 52984 function nextWeek(day) { 52985 var weekday = weekdays[day]; 52986 52987 switch (day) { 52988 case 0: 52989 case 3: 52990 case 6: 52991 return "'ÑледнаÑа " + weekday + " вo' p"; 52992 52993 case 1: 52994 case 2: 52995 case 4: 52996 case 5: 52997 return "'ÑÐ»ÐµÐ´Ð½Ð¸Ð¾Ñ " + weekday + " вo' p"; 52998 } 52999 } 53000 53001 var formatRelativeLocale = { 53002 lastWeek: function (date, baseDate, options) { 53003 var day = date.getUTCDay(); 53004 53005 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](date, baseDate, options)) { 53006 return thisWeek(day); 53007 } else { 53008 return lastWeek(day); 53009 } 53010 }, 53011 yesterday: "'вÑеÑа во' p", 53012 today: "'Ð´ÐµÐ½ÐµÑ Ð²Ð¾' p", 53013 tomorrow: "'ÑÑÑе во' p", 53014 nextWeek: function (date, baseDate, options) { 53015 var day = date.getUTCDay(); 53016 53017 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](date, baseDate, options)) { 53018 return thisWeek(day); 53019 } else { 53020 return nextWeek(day); 53021 } 53022 }, 53023 other: 'P' 53024 }; 53025 53026 function formatRelative(token, date, baseDate, options) { 53027 var format = formatRelativeLocale[token]; 53028 53029 if (typeof format === 'function') { 53030 return format(date, baseDate, options); 53031 } 53032 53033 return format; 53034 } 53035 53036 /***/ 53037 }), 53038 /* 697 */ 53039 /***/ (function (module, __webpack_exports__, __webpack_require__) { 53040 53041 "use strict"; 53042 /* harmony import */ 53043 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 53044 53045 var eraValues = { 53046 narrow: ['пÑ.н.е.', 'н.е.'], 53047 abbreviated: ['пÑед н. е.', 'н. е.'], 53048 wide: ['пÑед наÑаÑа еÑа', 'наÑаÑа еÑа'] 53049 }; 53050 var quarterValues = { 53051 narrow: ['1', '2', '3', '4'], 53052 abbreviated: ['1-ви кв.', '2-Ñи кв.', '3-Ñи кв.', '4-Ñи кв.'], 53053 wide: ['1-ви кваÑÑал', '2-Ñи кваÑÑал', '3-Ñи кваÑÑал', '4-Ñи кваÑÑал'] 53054 }; 53055 var monthValues = { 53056 abbreviated: ['Ñан', 'Ñев', 'маÑ', 'апÑ', 'маÑ', 'ÑÑн', 'ÑÑл', 'авг', 'ÑепÑ', 'окÑ', 'ноем', 'дек'], 53057 wide: ['ÑанÑаÑи', 'ÑевÑÑаÑи', 'маÑÑ', 'апÑил', 'маÑ', 'ÑÑни', 'ÑÑли', 'авгÑÑÑ', 'ÑепÑемвÑи', 'окÑомвÑи', 'ноемвÑи', 'декемвÑи'] 53058 }; 53059 var dayValues = { 53060 narrow: ['Ð', 'Ð', 'Ð', 'С', 'Ч', 'Ð', 'С'], 53061 short: ['не', 'по', 'вÑ', 'ÑÑ', 'Ñе', 'пе', 'Ñа'], 53062 abbreviated: ['нед', 'пон', 'вÑо', 'ÑÑе', 'ÑеÑ', 'пеÑ', 'Ñаб'], 53063 wide: ['недела', 'понеделник', 'вÑоÑник', 'ÑÑеда', 'ÑеÑвÑÑок', 'пеÑок', 'ÑабоÑа'] 53064 }; 53065 var dayPeriodValues = { 53066 wide: { 53067 am: 'пÑеÑпладне', 53068 pm: 'попладне', 53069 midnight: 'полноÑ', 53070 noon: 'напладне', 53071 morning: 'наÑÑÑо', 53072 afternoon: 'попладне', 53073 evening: 'навеÑеÑ', 53074 night: 'ноÑе' 53075 } 53076 }; 53077 53078 function ordinalNumber(dirtyNumber) { 53079 var number = Number(dirtyNumber); 53080 var rem100 = number % 100; 53081 53082 if (rem100 > 20 || rem100 < 10) { 53083 switch (rem100 % 10) { 53084 case 1: 53085 return number + '-ви'; 53086 53087 case 2: 53088 return number + '-Ñи'; 53089 53090 case 7: 53091 case 8: 53092 return number + '-ми'; 53093 } 53094 } 53095 53096 return number + '-Ñи'; 53097 } 53098 53099 var localize = { 53100 ordinalNumber: ordinalNumber, 53101 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 53102 values: eraValues, 53103 defaultWidth: 'wide' 53104 }), 53105 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 53106 values: quarterValues, 53107 defaultWidth: 'wide', 53108 argumentCallback: function (quarter) { 53109 return Number(quarter) - 1; 53110 } 53111 }), 53112 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 53113 values: monthValues, 53114 defaultWidth: 'wide' 53115 }), 53116 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 53117 values: dayValues, 53118 defaultWidth: 'wide' 53119 }), 53120 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 53121 values: dayPeriodValues, 53122 defaultWidth: 'wide' 53123 }) 53124 }; 53125 /* harmony default export */ 53126 __webpack_exports__["a"] = (localize); 53127 53128 /***/ 53129 }), 53130 /* 698 */ 53131 /***/ (function (module, __webpack_exports__, __webpack_require__) { 53132 53133 "use strict"; 53134 /* harmony import */ 53135 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__ = __webpack_require__(5); 53136 /* harmony import */ 53137 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 53138 53139 53140 var matchOrdinalNumberPattern = /^(\d+)(-?[вÑмÑ][и])?/i; 53141 var parseOrdinalNumberPattern = /\d+/i; 53142 var matchEraPatterns = { 53143 narrow: /^((пÑ)?н\.?\s?е\.?)/i, 53144 abbreviated: /^((пÑ)?н\.?\s?е\.?)/i, 53145 wide: /^(пÑед наÑаÑа еÑа|наÑаÑа еÑа)/i 53146 }; 53147 var parseEraPatterns = { 53148 any: [/^п/i, /^н/i] 53149 }; 53150 var matchQuarterPatterns = { 53151 narrow: /^[1234]/i, 53152 abbreviated: /^[1234](-?[вÑÑ]?и?)? кв.?/i, 53153 wide: /^[1234](-?[вÑÑ]?и?)? кваÑÑал/i 53154 }; 53155 var parseQuarterPatterns = { 53156 any: [/1/i, /2/i, /3/i, /4/i] 53157 }; 53158 var matchDayPatterns = { 53159 narrow: /^[нпвÑÑ]/i, 53160 short: /^(не|по|вÑ|ÑÑ|Ñе|пе|Ñа)/i, 53161 abbreviated: /^(нед|пон|вÑо|ÑÑе|ÑеÑ|пеÑ|Ñаб)/i, 53162 wide: /^(недела|понеделник|вÑоÑник|ÑÑеда|ÑеÑвÑÑок|пеÑок|ÑабоÑа)/i 53163 }; 53164 var parseDayPatterns = { 53165 narrow: [/^н/i, /^п/i, /^в/i, /^Ñ/i, /^Ñ/i, /^п/i, /^Ñ/i], 53166 any: [/^н[ед]/i, /^п[он]/i, /^вÑ/i, /^ÑÑ/i, /^Ñ[еÑ]/i, /^п[еÑ]/i, /^Ñ[аб]/i] 53167 }; 53168 var matchMonthPatterns = { 53169 abbreviated: /^(Ñан|Ñев|маÑ|апÑ|маÑ|ÑÑн|ÑÑл|авг|Ñеп|окÑ|ноем|дек)/i, 53170 wide: /^(ÑанÑаÑи|ÑевÑÑаÑи|маÑÑ|апÑил|маÑ|ÑÑни|ÑÑли|авгÑÑÑ|ÑепÑемвÑи|окÑомвÑи|ноемвÑи|декемвÑи)/i 53171 }; 53172 var parseMonthPatterns = { 53173 any: [/^Ñа/i, /^Ф/i, /^маÑ/i, /^ап/i, /^маÑ/i, /^ÑÑн/i, /^ÑÑл/i, /^ав/i, /^Ñе/i, /^окÑ/i, /^но/i, /^де/i] 53174 }; 53175 var matchDayPeriodPatterns = { 53176 any: /^(пÑеÑп|попл|полноÑ|ÑÑÑо|пладне|веÑеÑ|ноÑ)/i 53177 }; 53178 var parseDayPeriodPatterns = { 53179 any: { 53180 am: /пÑеÑпладне/i, 53181 pm: /попладне/i, 53182 midnight: /полноÑ/i, 53183 noon: /напладне/i, 53184 morning: /наÑÑÑо/i, 53185 afternoon: /попладне/i, 53186 evening: /навеÑеÑ/i, 53187 night: /ноÑе/i 53188 } 53189 }; 53190 var match = { 53191 ordinalNumber: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 53192 matchPattern: matchOrdinalNumberPattern, 53193 parsePattern: parseOrdinalNumberPattern, 53194 valueCallback: function (value) { 53195 return parseInt(value, 10); 53196 } 53197 }), 53198 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 53199 matchPatterns: matchEraPatterns, 53200 defaultMatchWidth: 'wide', 53201 parsePatterns: parseEraPatterns, 53202 defaultParseWidth: 'any' 53203 }), 53204 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 53205 matchPatterns: matchQuarterPatterns, 53206 defaultMatchWidth: 'wide', 53207 parsePatterns: parseQuarterPatterns, 53208 defaultParseWidth: 'any', 53209 valueCallback: function (index) { 53210 return index + 1; 53211 } 53212 }), 53213 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 53214 matchPatterns: matchMonthPatterns, 53215 defaultMatchWidth: 'wide', 53216 parsePatterns: parseMonthPatterns, 53217 defaultParseWidth: 'any' 53218 }), 53219 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 53220 matchPatterns: matchDayPatterns, 53221 defaultMatchWidth: 'wide', 53222 parsePatterns: parseDayPatterns, 53223 defaultParseWidth: 'any' 53224 }), 53225 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 53226 matchPatterns: matchDayPeriodPatterns, 53227 defaultMatchWidth: 'any', 53228 parsePatterns: parseDayPeriodPatterns, 53229 defaultParseWidth: 'any' 53230 }) 53231 }; 53232 /* harmony default export */ 53233 __webpack_exports__["a"] = (match); 53234 53235 /***/ 53236 }), 53237 /* 699 */ 53238 /***/ (function (module, __webpack_exports__, __webpack_require__) { 53239 53240 "use strict"; 53241 /* harmony import */ 53242 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(700); 53243 /* harmony import */ 53244 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(701); 53245 /* harmony import */ 53246 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(702); 53247 /* harmony import */ 53248 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(703); 53249 /* harmony import */ 53250 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(704); 53251 53252 53253 /** 53254 * @type {Locale} 53255 * @category Locales 53256 * @summary Malay locale. 53257 * @language Malay 53258 * @iso-639-2 msa 53259 * @author Ruban Selvarajah [@Zyten]{@link https://github.com/Zyten} 53260 */ 53261 53262 var locale = { 53263 code: 'ms', 53264 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 53265 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 53266 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 53267 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 53268 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 53269 options: { 53270 weekStartsOn: 1 53271 /* Monday */ 53272 , 53273 firstWeekContainsDate: 1 53274 } 53275 }; 53276 /* harmony default export */ 53277 __webpack_exports__["a"] = (locale); 53278 53279 /***/ 53280 }), 53281 /* 700 */ 53282 /***/ (function (module, __webpack_exports__, __webpack_require__) { 53283 53284 "use strict"; 53285 /* harmony export (immutable) */ 53286 __webpack_exports__["a"] = formatDistance; 53287 var formatDistanceLocale = { 53288 lessThanXSeconds: { 53289 one: 'kurang dari 1 saat', 53290 other: 'kurang dari {{count}} saat' 53291 }, 53292 xSeconds: { 53293 one: '1 saat', 53294 other: '{{count}} saat' 53295 }, 53296 halfAMinute: 'setengah minit', 53297 lessThanXMinutes: { 53298 one: 'kurang dari 1 minit', 53299 other: 'kurang dari {{count}} minit' 53300 }, 53301 xMinutes: { 53302 one: '1 minit', 53303 other: '{{count}} minit' 53304 }, 53305 aboutXHours: { 53306 one: 'sekitar 1 jam', 53307 other: 'sekitar {{count}} jam' 53308 }, 53309 xHours: { 53310 one: '1 jam', 53311 other: '{{count}} jam' 53312 }, 53313 xDays: { 53314 one: '1 hari', 53315 other: '{{count}} hari' 53316 }, 53317 aboutXWeeks: { 53318 one: 'sekitar 1 minggu', 53319 other: 'sekitar {{count}} minggu' 53320 }, 53321 xWeeks: { 53322 one: '1 minggu', 53323 other: '{{count}} minggu' 53324 }, 53325 aboutXMonths: { 53326 one: 'sekitar 1 bulan', 53327 other: 'sekitar {{count}} bulan' 53328 }, 53329 xMonths: { 53330 one: '1 bulan', 53331 other: '{{count}} bulan' 53332 }, 53333 aboutXYears: { 53334 one: 'sekitar 1 tahun', 53335 other: 'sekitar {{count}} tahun' 53336 }, 53337 xYears: { 53338 one: '1 tahun', 53339 other: '{{count}} tahun' 53340 }, 53341 overXYears: { 53342 one: 'lebih dari 1 tahun', 53343 other: 'lebih dari {{count}} tahun' 53344 }, 53345 almostXYears: { 53346 one: 'hampir 1 tahun', 53347 other: 'hampir {{count}} tahun' 53348 } 53349 }; 53350 53351 function formatDistance(token, count, options) { 53352 options = options || {}; 53353 var result; 53354 53355 if (typeof formatDistanceLocale[token] === 'string') { 53356 result = formatDistanceLocale[token]; 53357 } else if (count === 1) { 53358 result = formatDistanceLocale[token].one; 53359 } else { 53360 result = formatDistanceLocale[token].other.replace('{{count}}', count); 53361 } 53362 53363 if (options.addSuffix) { 53364 if (options.comparison > 0) { 53365 return 'dalam masa ' + result; 53366 } else { 53367 return result + ' yang lalu'; 53368 } 53369 } 53370 53371 return result; 53372 } 53373 53374 /***/ 53375 }), 53376 /* 701 */ 53377 /***/ (function (module, __webpack_exports__, __webpack_require__) { 53378 53379 "use strict"; 53380 /* harmony import */ 53381 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 53382 53383 var dateFormats = { 53384 full: 'EEEE, d MMMM yyyy', 53385 long: 'd MMMM yyyy', 53386 medium: 'd MMM yyyy', 53387 short: 'd/M/yyyy' 53388 }; 53389 var timeFormats = { 53390 full: 'HH.mm.ss', 53391 long: 'HH.mm.ss', 53392 medium: 'HH.mm', 53393 short: 'HH.mm' 53394 }; 53395 var dateTimeFormats = { 53396 full: "{{date}} 'pukul' {{time}}", 53397 long: "{{date}} 'pukul' {{time}}", 53398 medium: '{{date}}, {{time}}', 53399 short: '{{date}}, {{time}}' 53400 }; 53401 var formatLong = { 53402 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 53403 formats: dateFormats, 53404 defaultWidth: 'full' 53405 }), 53406 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 53407 formats: timeFormats, 53408 defaultWidth: 'full' 53409 }), 53410 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 53411 formats: dateTimeFormats, 53412 defaultWidth: 'full' 53413 }) 53414 }; 53415 /* harmony default export */ 53416 __webpack_exports__["a"] = (formatLong); 53417 53418 /***/ 53419 }), 53420 /* 702 */ 53421 /***/ (function (module, __webpack_exports__, __webpack_require__) { 53422 53423 "use strict"; 53424 /* harmony export (immutable) */ 53425 __webpack_exports__["a"] = formatRelative; 53426 var formatRelativeLocale = { 53427 lastWeek: "eeee 'lepas pada jam' p", 53428 yesterday: "'Semalam pada jam' p", 53429 today: "'Hari ini pada jam' p", 53430 tomorrow: "'Esok pada jam' p", 53431 nextWeek: "eeee 'pada jam' p", 53432 other: 'P' 53433 }; 53434 53435 function formatRelative(token, _date, _baseDate, _options) { 53436 return formatRelativeLocale[token]; 53437 } 53438 53439 /***/ 53440 }), 53441 /* 703 */ 53442 /***/ (function (module, __webpack_exports__, __webpack_require__) { 53443 53444 "use strict"; 53445 /* harmony import */ 53446 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 53447 // Most data for localization are taken from this page 53448// https://www.unicode.org/cldr/charts/32/summary/ms.html 53449 53450 var eraValues = { 53451 narrow: ['SM', 'M'], 53452 abbreviated: ['SM', 'M'], 53453 wide: ['Sebelum Masihi', 'Masihi'] 53454 }; 53455 var quarterValues = { 53456 narrow: ['1', '2', '3', '4'], 53457 abbreviated: ['S1', 'S2', 'S3', 'S4'], 53458 wide: ['Suku pertama', 'Suku kedua', 'Suku ketiga', 'Suku keempat'] // Note: in Malay, the names of days of the week and months are capitalized. 53459 // If you are making a new locale based on this one, check if the same is true for the language you're working on. 53460 // Generally, formatted dates should look like they are in the middle of a sentence, 53461 // e.g. in Spanish language the weekdays and months should be in the lowercase. 53462 53463 }; 53464 var monthValues = { 53465 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'O', 'S', 'O', 'N', 'D'], 53466 abbreviated: ['Jan', 'Feb', 'Mac', 'Apr', 'Mei', 'Jun', 'Jul', 'Ogo', 'Sep', 'Okt', 'Nov', 'Dis'], 53467 wide: ['Januari', 'Februari', 'Mac', 'April', 'Mei', 'Jun', 'Julai', 'Ogos', 'September', 'Oktober', 'November', 'Disember'] 53468 }; 53469 var dayValues = { 53470 narrow: ['A', 'I', 'S', 'R', 'K', 'J', 'S'], 53471 short: ['Ahd', 'Isn', 'Sel', 'Rab', 'Kha', 'Jum', 'Sab'], 53472 abbreviated: ['Ahd', 'Isn', 'Sel', 'Rab', 'Kha', 'Jum', 'Sab'], 53473 wide: ['Ahad', 'Isnin', 'Selasa', 'Rabu', 'Khamis', 'Jumaat', 'Sabtu'] 53474 }; 53475 var dayPeriodValues = { 53476 narrow: { 53477 am: 'am', 53478 pm: 'pm', 53479 midnight: 'tgh malam', 53480 noon: 'tgh hari', 53481 morning: 'pagi', 53482 afternoon: 'tengah hari', 53483 evening: 'petang', 53484 night: 'malam' 53485 }, 53486 abbreviated: { 53487 am: 'AM', 53488 pm: 'PM', 53489 midnight: 'tengah malam', 53490 noon: 'tengah hari', 53491 morning: 'pagi', 53492 afternoon: 'tengah hari', 53493 evening: 'petang', 53494 night: 'malam' 53495 }, 53496 wide: { 53497 am: 'a.m.', 53498 pm: 'p.m.', 53499 midnight: 'tengah malam', 53500 noon: 'tengah hari', 53501 morning: 'pagi', 53502 afternoon: 'tengah hari', 53503 evening: 'petang', 53504 night: 'malam' 53505 } 53506 }; 53507 var formattingDayPeriodValues = { 53508 narrow: { 53509 am: 'am', 53510 pm: 'pm', 53511 midnight: 'tengah malam', 53512 noon: 'tengah hari', 53513 morning: 'pagi', 53514 afternoon: 'tengah hari', 53515 evening: 'petang', 53516 night: 'malam' 53517 }, 53518 abbreviated: { 53519 am: 'AM', 53520 pm: 'PM', 53521 midnight: 'tengah malam', 53522 noon: 'tengah hari', 53523 morning: 'pagi', 53524 afternoon: 'tengah hari', 53525 evening: 'petang', 53526 night: 'malam' 53527 }, 53528 wide: { 53529 am: 'a.m.', 53530 pm: 'p.m.', 53531 midnight: 'tengah malam', 53532 noon: 'tengah hari', 53533 morning: 'pagi', 53534 afternoon: 'tengah hari', 53535 evening: 'petang', 53536 night: 'malam' 53537 } 53538 }; 53539 53540 function ordinalNumber(dirtyNumber, _dirtyOptions) { 53541 var number = Number(dirtyNumber); // Can't use "pertama", "kedua" because can't be parsed 53542 53543 switch (number) { 53544 default: 53545 return 'ke-' + number; 53546 } 53547 } 53548 53549 var localize = { 53550 ordinalNumber: ordinalNumber, 53551 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 53552 values: eraValues, 53553 defaultWidth: 'wide' 53554 }), 53555 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 53556 values: quarterValues, 53557 defaultWidth: 'wide', 53558 argumentCallback: function (quarter) { 53559 return Number(quarter) - 1; 53560 } 53561 }), 53562 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 53563 values: monthValues, 53564 defaultWidth: 'wide' 53565 }), 53566 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 53567 values: dayValues, 53568 defaultWidth: 'wide' 53569 }), 53570 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 53571 values: dayPeriodValues, 53572 defaultWidth: 'wide', 53573 formattingValues: formattingDayPeriodValues, 53574 defaultFormattingWidth: 'wide' 53575 }) 53576 }; 53577 /* harmony default export */ 53578 __webpack_exports__["a"] = (localize); 53579 53580 /***/ 53581 }), 53582 /* 704 */ 53583 /***/ (function (module, __webpack_exports__, __webpack_require__) { 53584 53585 "use strict"; 53586 /* harmony import */ 53587 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__ = __webpack_require__(5); 53588 /* harmony import */ 53589 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 53590 53591 53592 var matchOrdinalNumberPattern = /^ke-(\d+)?/i; 53593 var parseOrdinalNumberPattern = /petama|\d+/i; 53594 var matchEraPatterns = { 53595 narrow: /^(sm|m)/i, 53596 abbreviated: /^(s\.?\s?m\.?|m\.?)/i, 53597 wide: /^(sebelum masihi|masihi)/i 53598 }; 53599 var parseEraPatterns = { 53600 any: [/^s/i, /^(m)/i] 53601 }; 53602 var matchQuarterPatterns = { 53603 narrow: /^[1234]/i, 53604 abbreviated: /^S[1234]/i, 53605 wide: /Suku (pertama|kedua|ketiga|keempat)/i 53606 }; 53607 var parseQuarterPatterns = { 53608 any: [/pertama|1/i, /kedua|2/i, /ketiga|3/i, /keempat|4/i] 53609 }; 53610 var matchMonthPatterns = { 53611 narrow: /^[jfmasond]/i, 53612 abbreviated: /^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i, 53613 wide: /^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/i 53614 }; 53615 var parseMonthPatterns = { 53616 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^o/i, /^s/i, /^o/i, /^n/i, /^d/i], 53617 any: [/^ja/i, /^f/i, /^ma/i, /^ap/i, /^me/i, /^jun/i, /^jul/i, /^og/i, /^s/i, /^ok/i, /^n/i, /^d/i] 53618 }; 53619 var matchDayPatterns = { 53620 narrow: /^[aisrkj]/i, 53621 short: /^(ahd|isn|sel|rab|kha|jum|sab)/i, 53622 abbreviated: /^(ahd|isn|sel|rab|kha|jum|sab)/i, 53623 wide: /^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i 53624 }; 53625 var parseDayPatterns = { 53626 narrow: [/^a/i, /^i/i, /^s/i, /^r/i, /^k/i, /^j/i, /^s/i], 53627 any: [/^a/i, /^i/i, /^se/i, /^r/i, /^k/i, /^j/i, /^sa/i] 53628 }; 53629 var matchDayPeriodPatterns = { 53630 narrow: /^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i, 53631 any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i 53632 }; 53633 var parseDayPeriodPatterns = { 53634 any: { 53635 am: /^a/i, 53636 pm: /^pm/i, 53637 midnight: /^tengah m/i, 53638 noon: /^tengah h/i, 53639 morning: /pa/i, 53640 afternoon: /tengah h/i, 53641 evening: /pe/i, 53642 night: /m/i 53643 } 53644 }; 53645 var match = { 53646 ordinalNumber: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 53647 matchPattern: matchOrdinalNumberPattern, 53648 parsePattern: parseOrdinalNumberPattern, 53649 valueCallback: function (value) { 53650 return parseInt(value, 10); 53651 } 53652 }), 53653 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 53654 matchPatterns: matchEraPatterns, 53655 defaultMatchWidth: 'wide', 53656 parsePatterns: parseEraPatterns, 53657 defaultParseWidth: 'any' 53658 }), 53659 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 53660 matchPatterns: matchQuarterPatterns, 53661 defaultMatchWidth: 'wide', 53662 parsePatterns: parseQuarterPatterns, 53663 defaultParseWidth: 'any', 53664 valueCallback: function (index) { 53665 return index + 1; 53666 } 53667 }), 53668 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 53669 matchPatterns: matchMonthPatterns, 53670 defaultMatchWidth: 'wide', 53671 parsePatterns: parseMonthPatterns, 53672 defaultParseWidth: 'any' 53673 }), 53674 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 53675 matchPatterns: matchDayPatterns, 53676 defaultMatchWidth: 'wide', 53677 parsePatterns: parseDayPatterns, 53678 defaultParseWidth: 'any' 53679 }), 53680 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 53681 matchPatterns: matchDayPeriodPatterns, 53682 defaultMatchWidth: 'any', 53683 parsePatterns: parseDayPeriodPatterns, 53684 defaultParseWidth: 'any' 53685 }) 53686 }; 53687 /* harmony default export */ 53688 __webpack_exports__["a"] = (match); 53689 53690 /***/ 53691 }), 53692 /* 705 */ 53693 /***/ (function (module, __webpack_exports__, __webpack_require__) { 53694 53695 "use strict"; 53696 /* harmony import */ 53697 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(706); 53698 /* harmony import */ 53699 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(707); 53700 /* harmony import */ 53701 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(708); 53702 /* harmony import */ 53703 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(709); 53704 /* harmony import */ 53705 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(710); 53706 53707 53708 /** 53709 * @type {Locale} 53710 * @category Locales 53711 * @summary Maltese locale. 53712 * @language Maltese 53713 * @iso-639-2 mlt 53714 * @author Andras Matzon [@amatzon](@link https://github.com/amatzon) 53715 * @author Bryan Borg [@bryanMt](@link https://github.com/bryanMt) 53716 */ 53717 53718 var locale = { 53719 code: 'mt', 53720 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 53721 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 53722 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 53723 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 53724 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 53725 options: { 53726 weekStartsOn: 1 53727 /* Monday */ 53728 , 53729 firstWeekContainsDate: 4 53730 } 53731 }; 53732 /* harmony default export */ 53733 __webpack_exports__["a"] = (locale); 53734 53735 /***/ 53736 }), 53737 /* 706 */ 53738 /***/ (function (module, __webpack_exports__, __webpack_require__) { 53739 53740 "use strict"; 53741 /* harmony export (immutable) */ 53742 __webpack_exports__["a"] = formatDistance; 53743 var formatDistanceLocale = { 53744 lessThanXSeconds: { 53745 one: 'inqas minn sekonda', 53746 other: 'inqas minn {{count}} sekondi' 53747 }, 53748 xSeconds: { 53749 one: 'sekonda', 53750 other: '{{count}} sekondi' 53751 }, 53752 halfAMinute: 'nofs minuta', 53753 lessThanXMinutes: { 53754 one: 'inqas minn minuta', 53755 other: 'inqas minn {{count}} minuti' 53756 }, 53757 xMinutes: { 53758 one: 'minuta', 53759 other: '{{count}} minuti' 53760 }, 53761 aboutXHours: { 53762 one: 'madwar siegħa', 53763 other: 'madwar {{count}} siegħat' 53764 }, 53765 xHours: { 53766 one: 'siegħa', 53767 other: '{{count}} siegħat' 53768 }, 53769 xDays: { 53770 one: 'Ä¡urnata', 53771 other: '{{count}} Ä¡ranet' 53772 }, 53773 aboutXWeeks: { 53774 one: 'madwar Ä¡imgħa', 53775 other: 'madwar {{count}} Ä¡imgħat' 53776 }, 53777 xWeeks: { 53778 one: 'Ä¡imgħa', 53779 other: '{{count}} Ä¡imgħat' 53780 }, 53781 aboutXMonths: { 53782 one: 'madwar xahar', 53783 other: 'madwar {{count}} xhur' 53784 }, 53785 xMonths: { 53786 one: 'xahar', 53787 other: '{{count}} xhur' 53788 }, 53789 aboutXYears: { 53790 one: 'madwar sena', 53791 two: 'madwar sentejn', 53792 other: 'madwar {{count}} snin' 53793 }, 53794 xYears: { 53795 one: 'sena', 53796 two: 'sentejn', 53797 other: '{{count}} snin' 53798 }, 53799 overXYears: { 53800 one: 'aktar minn sena', 53801 two: 'aktar minn sentejn', 53802 other: 'aktar minn {{count}} snin' 53803 }, 53804 almostXYears: { 53805 one: 'kważi sena', 53806 two: 'kważi sentejn', 53807 other: 'kważi {{count}} snin' 53808 } 53809 }; 53810 53811 function formatDistance(token, count, options) { 53812 options = options || {}; 53813 var adverb = token.match(/years/i); 53814 var result; 53815 53816 if (typeof formatDistanceLocale[token] === 'string') { 53817 result = formatDistanceLocale[token]; 53818 } else if (count === 1) { 53819 result = formatDistanceLocale[token].one; 53820 } else if (count === 2 && adverb) { 53821 result = formatDistanceLocale[token].two; 53822 } else { 53823 result = formatDistanceLocale[token].other.replace('{{count}}', count); 53824 } 53825 53826 if (options.addSuffix) { 53827 if (options.comparison > 0) { 53828 return "f'" + result; 53829 } else { 53830 return result + ' ilu'; 53831 } 53832 } 53833 53834 return result; 53835 } 53836 53837 /***/ 53838 }), 53839 /* 707 */ 53840 /***/ (function (module, __webpack_exports__, __webpack_require__) { 53841 53842 "use strict"; 53843 /* harmony import */ 53844 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 53845 53846 var dateFormats = { 53847 full: 'EEEE, d MMMM yyyy', 53848 long: 'd MMMM yyyy', 53849 medium: 'd MMM yyyy', 53850 short: 'dd/MM/yyyy' 53851 }; 53852 var timeFormats = { 53853 full: 'HH:mm:ss zzzz', 53854 long: 'HH:mm:ss z', 53855 medium: 'HH:mm:ss', 53856 short: 'HH:mm' 53857 }; 53858 var dateTimeFormats = { 53859 full: '{{date}} {{time}}', 53860 long: '{{date}} {{time}}', 53861 medium: '{{date}} {{time}}', 53862 short: '{{date}} {{time}}' 53863 }; 53864 var formatLong = { 53865 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 53866 formats: dateFormats, 53867 defaultWidth: 'full' 53868 }), 53869 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 53870 formats: timeFormats, 53871 defaultWidth: 'full' 53872 }), 53873 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 53874 formats: dateTimeFormats, 53875 defaultWidth: 'full' 53876 }) 53877 }; 53878 /* harmony default export */ 53879 __webpack_exports__["a"] = (formatLong); 53880 53881 /***/ 53882 }), 53883 /* 708 */ 53884 /***/ (function (module, __webpack_exports__, __webpack_require__) { 53885 53886 "use strict"; 53887 /* harmony export (immutable) */ 53888 __webpack_exports__["a"] = formatRelative; 53889 var formatRelativeLocale = { 53890 lastWeek: "eeee 'li għadda' 'fil-'p", 53891 yesterday: "'Il-bieraħ fil-'p", 53892 today: "'Illum fil-'p", 53893 tomorrow: "'Għada fil-'p", 53894 nextWeek: "eeee 'fil-'p", 53895 other: 'P' 53896 }; 53897 53898 function formatRelative(token, _date, _baseDate, _options) { 53899 return formatRelativeLocale[token]; 53900 } 53901 53902 /***/ 53903 }), 53904 /* 709 */ 53905 /***/ (function (module, __webpack_exports__, __webpack_require__) { 53906 53907 "use strict"; 53908 /* harmony import */ 53909 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 53910 53911 var eraValues = { 53912 narrow: ['Q', 'W'], 53913 abbreviated: ['QK', 'WK'], 53914 wide: ['qabel Kristu', 'wara Kristu'] 53915 }; 53916 var quarterValues = { 53917 narrow: ['1', '2', '3', '4'], 53918 abbreviated: ['K1', 'K2', 'K3', 'K4'], 53919 wide: ['1. kwart', '2. kwart', '3. kwart', '4. kwart'] 53920 }; 53921 var monthValues = { 53922 narrow: ['J', 'F', 'M', 'A', 'M', 'Ä ', 'L', 'A', 'S', 'O', 'N', 'D'], 53923 abbreviated: ['Jan', 'Fra', 'Mar', 'Apr', 'Mej', 'Ä un', 'Lul', 'Aww', 'Set', 'Ott', 'Nov', 'DiÄ'], 53924 wide: ['Jannar', 'Frar', 'Marzu', 'April', 'Mejju', 'Ä unju', 'Lulju', 'Awwissu', 'Settembru', 'Ottubru', 'Novembru', 'DiÄembru'] 53925 }; 53926 var dayValues = { 53927 narrow: ['Ħ', 'T', 'T', 'E', 'Ħ', 'Ä ', 'S'], 53928 short: ['Ħa', 'Tn', 'Tl', 'Er', 'Ħa', 'Ä i', 'Si'], 53929 abbreviated: ['Ħad', 'Tne', 'Tli', 'Erb', 'Ħam', 'Ä im', 'Sib'], 53930 wide: ['Il-Ħadd', 'It-Tnejn', 'It-Tlieta', 'L-Erbgħa', 'Il-Ħamis', 'Il-Ä imgħa', 'Is-Sibt'] 53931 }; 53932 var dayPeriodValues = { 53933 narrow: { 53934 am: 'a', 53935 pm: 'p', 53936 midnight: 'nofsillejl', 53937 noon: 'nofsinhar', 53938 morning: 'għodwa', 53939 afternoon: 'wara nofsinhar', 53940 evening: 'filgħaxija', 53941 night: 'lejl' 53942 }, 53943 abbreviated: { 53944 am: 'AM', 53945 pm: 'PM', 53946 midnight: 'nofsillejl', 53947 noon: 'nofsinhar', 53948 morning: 'għodwa', 53949 afternoon: 'wara nofsinhar', 53950 evening: 'filgħaxija', 53951 night: 'lejl' 53952 }, 53953 wide: { 53954 am: 'a.m.', 53955 pm: 'p.m.', 53956 midnight: 'nofsillejl', 53957 noon: 'nofsinhar', 53958 morning: 'għodwa', 53959 afternoon: 'wara nofsinhar', 53960 evening: 'filgħaxija', 53961 night: 'lejl' 53962 } 53963 }; 53964 var formattingDayPeriodValues = { 53965 narrow: { 53966 am: 'a', 53967 pm: 'p', 53968 midnight: "f'nofsillejl", 53969 noon: "f'nofsinhar", 53970 morning: 'filgħodu', 53971 afternoon: 'wara nofsinhar', 53972 evening: 'filgħaxija', 53973 night: 'billejl' 53974 }, 53975 abbreviated: { 53976 am: 'AM', 53977 pm: 'PM', 53978 midnight: "f'nofsillejl", 53979 noon: "f'nofsinhar", 53980 morning: 'filgħodu', 53981 afternoon: 'wara nofsinhar', 53982 evening: 'filgħaxija', 53983 night: 'billejl' 53984 }, 53985 wide: { 53986 am: 'a.m.', 53987 pm: 'p.m.', 53988 midnight: "f'nofsillejl", 53989 noon: "f'nofsinhar", 53990 morning: 'filgħodu', 53991 afternoon: 'wara nofsinhar', 53992 evening: 'filgħaxija', 53993 night: 'billejl' 53994 } 53995 }; 53996 53997 function ordinalNumber(dirtyNumber) { 53998 var number = Number(dirtyNumber); 53999 return number + 'º'; 54000 } 54001 54002 var localize = { 54003 ordinalNumber: ordinalNumber, 54004 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 54005 values: eraValues, 54006 defaultWidth: 'wide' 54007 }), 54008 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 54009 values: quarterValues, 54010 defaultWidth: 'wide', 54011 argumentCallback: function (quarter) { 54012 return Number(quarter) - 1; 54013 } 54014 }), 54015 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 54016 values: monthValues, 54017 defaultWidth: 'wide' 54018 }), 54019 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 54020 values: dayValues, 54021 defaultWidth: 'wide' 54022 }), 54023 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 54024 values: dayPeriodValues, 54025 defaultWidth: 'wide', 54026 formattingValues: formattingDayPeriodValues, 54027 defaultFormattingWidth: 'wide' 54028 }) 54029 }; 54030 /* harmony default export */ 54031 __webpack_exports__["a"] = (localize); 54032 54033 /***/ 54034 }), 54035 /* 710 */ 54036 /***/ (function (module, __webpack_exports__, __webpack_require__) { 54037 54038 "use strict"; 54039 /* harmony import */ 54040 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 54041 /* harmony import */ 54042 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 54043 54044 54045 var matchOrdinalNumberPattern = /^(\d+)(º)?/i; 54046 var parseOrdinalNumberPattern = /\d+/i; 54047 var matchEraPatterns = { 54048 narrow: /^(q|w)/i, 54049 abbreviated: /^(q\.?\s?k\.?|b\.?\s?c\.?\s?e\.?|w\.?\s?k\.?)/i, 54050 wide: /^(qabel kristu|before common era|wara kristu|common era)/i 54051 }; 54052 var parseEraPatterns = { 54053 any: [/^(q|b)/i, /^(w|c)/i] 54054 }; 54055 var matchQuarterPatterns = { 54056 narrow: /^[1234]/i, 54057 abbreviated: /^k[1234]/i, 54058 wide: /^[1234](\.)? kwart/i 54059 }; 54060 var parseQuarterPatterns = { 54061 any: [/1/i, /2/i, /3/i, /4/i] 54062 }; 54063 var matchMonthPatterns = { 54064 narrow: /^[jfmaglsond]/i, 54065 abbreviated: /^(jan|fra|mar|apr|mej|Ä¡un|lul|aww|set|ott|nov|diÄ)/i, 54066 wide: /^(jannar|frar|marzu|april|mejju|Ä¡unju|lulju|awwissu|settembru|ottubru|novembru|diÄembru)/i 54067 }; 54068 var parseMonthPatterns = { 54069 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^Ä¡/i, /^l/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 54070 any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^mej/i, /^Ä¡/i, /^l/i, /^aw/i, /^s/i, /^o/i, /^n/i, /^d/i] 54071 }; 54072 var matchDayPatterns = { 54073 narrow: /^[ħteÄ¡s]/i, 54074 short: /^(ħa|tn|tl|er|ħa|Ä¡i|si)/i, 54075 abbreviated: /^(ħad|tne|tli|erb|ħam|Ä¡im|sib)/i, 54076 wide: /^(il-ħadd|it-tnejn|it-tlieta|l-erbgħa|il-ħamis|il-Ä¡imgħa|is-sibt)/i 54077 }; 54078 var parseDayPatterns = { 54079 narrow: [/^ħ/i, /^t/i, /^t/i, /^e/i, /^ħ/i, /^Ä¡/i, /^s/i], 54080 any: [/^(il-)?ħad/i, /^(it-)?tn/i, /^(it-)?tl/i, /^(l-)?er/i, /^(il-)?ham/i, /^(il-)?Ä¡i/i, /^(is-)?si/i] 54081 }; 54082 var matchDayPeriodPatterns = { 54083 narrow: /^(a|p|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i, 54084 any: /^([ap]\.?\s?m\.?|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i 54085 }; 54086 var parseDayPeriodPatterns = { 54087 any: { 54088 am: /^a/i, 54089 pm: /^p/i, 54090 midnight: /^f'nofsillejl/i, 54091 noon: /^f'nofsinhar/i, 54092 morning: /għodwa/i, 54093 afternoon: /wara(\s.*)nofsinhar/i, 54094 evening: /filgħaxija/i, 54095 night: /lejl/i 54096 } 54097 }; 54098 var match = { 54099 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 54100 matchPattern: matchOrdinalNumberPattern, 54101 parsePattern: parseOrdinalNumberPattern, 54102 valueCallback: function (value) { 54103 return parseInt(value, 10); 54104 } 54105 }), 54106 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 54107 matchPatterns: matchEraPatterns, 54108 defaultMatchWidth: 'wide', 54109 parsePatterns: parseEraPatterns, 54110 defaultParseWidth: 'any' 54111 }), 54112 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 54113 matchPatterns: matchQuarterPatterns, 54114 defaultMatchWidth: 'wide', 54115 parsePatterns: parseQuarterPatterns, 54116 defaultParseWidth: 'any', 54117 valueCallback: function (index) { 54118 return index + 1; 54119 } 54120 }), 54121 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 54122 matchPatterns: matchMonthPatterns, 54123 defaultMatchWidth: 'wide', 54124 parsePatterns: parseMonthPatterns, 54125 defaultParseWidth: 'any' 54126 }), 54127 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 54128 matchPatterns: matchDayPatterns, 54129 defaultMatchWidth: 'wide', 54130 parsePatterns: parseDayPatterns, 54131 defaultParseWidth: 'any' 54132 }), 54133 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 54134 matchPatterns: matchDayPeriodPatterns, 54135 defaultMatchWidth: 'any', 54136 parsePatterns: parseDayPeriodPatterns, 54137 defaultParseWidth: 'any' 54138 }) 54139 }; 54140 /* harmony default export */ 54141 __webpack_exports__["a"] = (match); 54142 54143 /***/ 54144 }), 54145 /* 711 */ 54146 /***/ (function (module, __webpack_exports__, __webpack_require__) { 54147 54148 "use strict"; 54149 /* harmony import */ 54150 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(712); 54151 /* harmony import */ 54152 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(713); 54153 /* harmony import */ 54154 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(714); 54155 /* harmony import */ 54156 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(715); 54157 /* harmony import */ 54158 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(716); 54159 54160 54161 /** 54162 * @type {Locale} 54163 * @category Locales 54164 * @summary Norwegian BokmÃ¥l locale. 54165 * @language Norwegian BokmÃ¥l 54166 * @iso-639-2 nob 54167 * @author Hans-Kristian Koren [@Hanse]{@link https://github.com/Hanse} 54168 * @author Mikolaj Grzyb [@mikolajgrzyb]{@link https://github.com/mikolajgrzyb} 54169 * @author Dag Stuan [@dagstuan]{@link https://github.com/dagstuan} 54170 */ 54171 54172 var locale = { 54173 code: 'nb', 54174 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 54175 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 54176 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 54177 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 54178 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 54179 options: { 54180 weekStartsOn: 1 54181 /* Monday */ 54182 , 54183 firstWeekContainsDate: 4 54184 } 54185 }; 54186 /* harmony default export */ 54187 __webpack_exports__["a"] = (locale); 54188 54189 /***/ 54190 }), 54191 /* 712 */ 54192 /***/ (function (module, __webpack_exports__, __webpack_require__) { 54193 54194 "use strict"; 54195 /* harmony export (immutable) */ 54196 __webpack_exports__["a"] = formatDistance; 54197 var formatDistanceLocale = { 54198 lessThanXSeconds: { 54199 singular: 'mindre enn ett sekund', 54200 plural: 'mindre enn {{count}} sekunder' 54201 }, 54202 xSeconds: { 54203 singular: 'ett sekund', 54204 plural: '{{count}} sekunder' 54205 }, 54206 halfAMinute: 'et halvt minutt', 54207 lessThanXMinutes: { 54208 singular: 'mindre enn ett minutt', 54209 plural: 'mindre enn {{count}} minutter' 54210 }, 54211 xMinutes: { 54212 singular: 'ett minutt', 54213 plural: '{{count}} minutter' 54214 }, 54215 aboutXHours: { 54216 singular: 'omtrent en time', 54217 plural: 'omtrent {{count}} timer' 54218 }, 54219 xHours: { 54220 singular: 'en time', 54221 plural: '{{count}} timer' 54222 }, 54223 xDays: { 54224 singular: 'en dag', 54225 plural: '{{count}} dager' 54226 }, 54227 aboutXWeeks: { 54228 singular: 'omtrent en uke', 54229 plural: 'omtrent {{count}} uker' 54230 }, 54231 xWeeks: { 54232 singular: 'en uke', 54233 plural: '{{count}} uker' 54234 }, 54235 aboutXMonths: { 54236 singular: 'omtrent en mÃ¥ned', 54237 plural: 'omtrent {{count}} mÃ¥neder' 54238 }, 54239 xMonths: { 54240 singular: 'en mÃ¥ned', 54241 plural: '{{count}} mÃ¥neder' 54242 }, 54243 aboutXYears: { 54244 singular: 'omtrent ett Ã¥r', 54245 plural: 'omtrent {{count}} Ã¥r' 54246 }, 54247 xYears: { 54248 singular: 'ett Ã¥r', 54249 plural: '{{count}} Ã¥r' 54250 }, 54251 overXYears: { 54252 singular: 'over ett Ã¥r', 54253 plural: 'over {{count}} Ã¥r' 54254 }, 54255 almostXYears: { 54256 singular: 'nesten ett Ã¥r', 54257 plural: 'nesten {{count}} Ã¥r' 54258 } 54259 }; 54260 var wordMapping = ['null', 'en', 'to', 'tre', 'fire', 'fem', 'seks', 'sju', 'Ã¥tte', 'ni', 'ti', 'elleve', 'tolv']; 54261 54262 function formatDistance(token, count, options) { 54263 options = options || { 54264 onlyNumeric: false 54265 }; 54266 var translation = formatDistanceLocale[token]; 54267 var result; 54268 54269 if (typeof translation === 'string') { 54270 result = translation; 54271 } else if (count === 0 || count > 1) { 54272 if (options.onlyNumeric) { 54273 result = translation.plural.replace('{{count}}', count); 54274 } else { 54275 result = translation.plural.replace('{{count}}', count < 13 ? wordMapping[count] : count); 54276 } 54277 } else { 54278 result = translation.singular; 54279 } 54280 54281 if (options.addSuffix) { 54282 if (options.comparison > 0) { 54283 return 'om ' + result; 54284 } else { 54285 return result + ' siden'; 54286 } 54287 } 54288 54289 return result; 54290 } 54291 54292 /***/ 54293 }), 54294 /* 713 */ 54295 /***/ (function (module, __webpack_exports__, __webpack_require__) { 54296 54297 "use strict"; 54298 /* harmony import */ 54299 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 54300 54301 var dateFormats = { 54302 full: 'EEEE d. MMMM y', 54303 long: 'd. MMMM y', 54304 medium: 'd. MMM y', 54305 short: 'dd.MM.y' 54306 }; 54307 var timeFormats = { 54308 full: "'kl'. HH:mm:ss zzzz", 54309 long: 'HH:mm:ss z', 54310 medium: 'HH:mm:ss', 54311 short: 'HH:mm' 54312 }; 54313 var dateTimeFormats = { 54314 full: "{{date}} 'kl.' {{time}}", 54315 long: "{{date}} 'kl.' {{time}}", 54316 medium: '{{date}} {{time}}', 54317 short: '{{date}} {{time}}' 54318 }; 54319 var formatLong = { 54320 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 54321 formats: dateFormats, 54322 defaultWidth: 'full' 54323 }), 54324 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 54325 formats: timeFormats, 54326 defaultWidth: 'full' 54327 }), 54328 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 54329 formats: dateTimeFormats, 54330 defaultWidth: 'full' 54331 }) 54332 }; 54333 /* harmony default export */ 54334 __webpack_exports__["a"] = (formatLong); 54335 54336 /***/ 54337 }), 54338 /* 714 */ 54339 /***/ (function (module, __webpack_exports__, __webpack_require__) { 54340 54341 "use strict"; 54342 /* harmony export (immutable) */ 54343 __webpack_exports__["a"] = formatRelative; 54344 var formatRelativeLocale = { 54345 lastWeek: "'forrige' eeee 'kl.' p", 54346 yesterday: "'i gÃ¥r kl.' p", 54347 today: "'i dag kl.' p", 54348 tomorrow: "'i morgen kl.' p", 54349 nextWeek: "EEEE 'kl.' p", 54350 other: 'P' 54351 }; 54352 54353 function formatRelative(token, _date, _baseDate, _options) { 54354 return formatRelativeLocale[token]; 54355 } 54356 54357 /***/ 54358 }), 54359 /* 715 */ 54360 /***/ (function (module, __webpack_exports__, __webpack_require__) { 54361 54362 "use strict"; 54363 /* harmony import */ 54364 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 54365 54366 var eraValues = { 54367 narrow: ['f.Kr.', 'e.Kr.'], 54368 abbreviated: ['f.Kr.', 'e.Kr.'], 54369 wide: ['før Kristus', 'etter Kristus'] 54370 }; 54371 var quarterValues = { 54372 narrow: ['1', '2', '3', '4'], 54373 abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], 54374 wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] 54375 }; 54376 var monthValues = { 54377 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], 54378 abbreviated: ['jan.', 'feb.', 'mars', 'apr.', 'mai', 'juni', 'juli', 'aug.', 'sep.', 'okt.', 'nov.', 'des.'], 54379 wide: ['januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember'] 54380 }; 54381 var dayValues = { 54382 narrow: ['S', 'M', 'T', 'O', 'T', 'F', 'L'], 54383 short: ['sø', 'ma', 'ti', 'on', 'to', 'fr', 'lø'], 54384 abbreviated: ['søn', 'man', 'tir', 'ons', 'tor', 'fre', 'lør'], 54385 wide: ['søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag'] 54386 }; 54387 var dayPeriodValues = { 54388 narrow: { 54389 am: 'a', 54390 pm: 'p', 54391 midnight: 'midnatt', 54392 noon: 'middag', 54393 morning: 'pÃ¥ morg.', 54394 afternoon: 'pÃ¥ etterm.', 54395 evening: 'pÃ¥ kvelden', 54396 night: 'pÃ¥ natten' 54397 }, 54398 abbreviated: { 54399 am: 'a.m.', 54400 pm: 'p.m.', 54401 midnight: 'midnatt', 54402 noon: 'middag', 54403 morning: 'pÃ¥ morg.', 54404 afternoon: 'pÃ¥ etterm.', 54405 evening: 'pÃ¥ kvelden', 54406 night: 'pÃ¥ natten' 54407 }, 54408 wide: { 54409 am: 'a.m.', 54410 pm: 'p.m.', 54411 midnight: 'midnatt', 54412 noon: 'middag', 54413 morning: 'pÃ¥ morgenen', 54414 afternoon: 'pÃ¥ ettermiddagen', 54415 evening: 'pÃ¥ kvelden', 54416 night: 'pÃ¥ natten' 54417 } 54418 }; 54419 54420 function ordinalNumber(dirtyNumber) { 54421 var number = Number(dirtyNumber); 54422 return number + '.'; 54423 } 54424 54425 var localize = { 54426 ordinalNumber: ordinalNumber, 54427 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 54428 values: eraValues, 54429 defaultWidth: 'wide' 54430 }), 54431 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 54432 values: quarterValues, 54433 defaultWidth: 'wide', 54434 argumentCallback: function (quarter) { 54435 return Number(quarter) - 1; 54436 } 54437 }), 54438 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 54439 values: monthValues, 54440 defaultWidth: 'wide' 54441 }), 54442 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 54443 values: dayValues, 54444 defaultWidth: 'wide' 54445 }), 54446 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 54447 values: dayPeriodValues, 54448 defaultWidth: 'wide' 54449 }) 54450 }; 54451 /* harmony default export */ 54452 __webpack_exports__["a"] = (localize); 54453 54454 /***/ 54455 }), 54456 /* 716 */ 54457 /***/ (function (module, __webpack_exports__, __webpack_require__) { 54458 54459 "use strict"; 54460 /* harmony import */ 54461 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 54462 /* harmony import */ 54463 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 54464 54465 54466 var matchOrdinalNumberPattern = /^(\d+)\.?/i; 54467 var parseOrdinalNumberPattern = /\d+/i; 54468 var matchEraPatterns = { 54469 narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, 54470 abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, 54471 wide: /^(før Kristus|før vÃ¥r tid|etter Kristus|vÃ¥r tid)/i 54472 }; 54473 var parseEraPatterns = { 54474 any: [/^f/i, /^e/i] 54475 }; 54476 var matchQuarterPatterns = { 54477 narrow: /^[1234]/i, 54478 abbreviated: /^q[1234]/i, 54479 wide: /^[1234](\.)? kvartal/i 54480 }; 54481 var parseQuarterPatterns = { 54482 any: [/1/i, /2/i, /3/i, /4/i] 54483 }; 54484 var matchMonthPatterns = { 54485 narrow: /^[jfmasond]/i, 54486 abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, 54487 wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i 54488 }; 54489 var parseMonthPatterns = { 54490 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 54491 any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^mai/i, /^jun/i, /^jul/i, /^aug/i, /^s/i, /^o/i, /^n/i, /^d/i] 54492 }; 54493 var matchDayPatterns = { 54494 narrow: /^[smtofl]/i, 54495 short: /^(sø|ma|ti|on|to|fr|lø)/i, 54496 abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i, 54497 wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i 54498 }; 54499 var parseDayPatterns = { 54500 any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i] 54501 }; 54502 var matchDayPeriodPatterns = { 54503 narrow: /^(midnatt|middag|(pÃ¥) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i, 54504 any: /^([ap]\.?\s?m\.?|midnatt|middag|(pÃ¥) (morgenen|ettermiddagen|kvelden|natten))/i 54505 }; 54506 var parseDayPeriodPatterns = { 54507 any: { 54508 am: /^a(\.?\s?m\.?)?$/i, 54509 pm: /^p(\.?\s?m\.?)?$/i, 54510 midnight: /^midn/i, 54511 noon: /^midd/i, 54512 morning: /morgen/i, 54513 afternoon: /ettermiddag/i, 54514 evening: /kveld/i, 54515 night: /natt/i 54516 } 54517 }; 54518 var match = { 54519 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 54520 matchPattern: matchOrdinalNumberPattern, 54521 parsePattern: parseOrdinalNumberPattern, 54522 valueCallback: function (value) { 54523 return parseInt(value, 10); 54524 } 54525 }), 54526 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 54527 matchPatterns: matchEraPatterns, 54528 defaultMatchWidth: 'wide', 54529 parsePatterns: parseEraPatterns, 54530 defaultParseWidth: 'any' 54531 }), 54532 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 54533 matchPatterns: matchQuarterPatterns, 54534 defaultMatchWidth: 'wide', 54535 parsePatterns: parseQuarterPatterns, 54536 defaultParseWidth: 'any', 54537 valueCallback: function (index) { 54538 return index + 1; 54539 } 54540 }), 54541 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 54542 matchPatterns: matchMonthPatterns, 54543 defaultMatchWidth: 'wide', 54544 parsePatterns: parseMonthPatterns, 54545 defaultParseWidth: 'any' 54546 }), 54547 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 54548 matchPatterns: matchDayPatterns, 54549 defaultMatchWidth: 'wide', 54550 parsePatterns: parseDayPatterns, 54551 defaultParseWidth: 'any' 54552 }), 54553 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 54554 matchPatterns: matchDayPeriodPatterns, 54555 defaultMatchWidth: 'any', 54556 parsePatterns: parseDayPeriodPatterns, 54557 defaultParseWidth: 'any' 54558 }) 54559 }; 54560 /* harmony default export */ 54561 __webpack_exports__["a"] = (match); 54562 54563 /***/ 54564 }), 54565 /* 717 */ 54566 /***/ (function (module, __webpack_exports__, __webpack_require__) { 54567 54568 "use strict"; 54569 /* harmony import */ 54570 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(718); 54571 /* harmony import */ 54572 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(719); 54573 /* harmony import */ 54574 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(720); 54575 /* harmony import */ 54576 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(721); 54577 /* harmony import */ 54578 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(722); 54579 54580 54581 /** 54582 * @type {Locale} 54583 * @category Locales 54584 * @summary Dutch locale. 54585 * @language Dutch 54586 * @iso-639-2 nld 54587 * @author Jorik Tangelder [@jtangelder]{@link https://github.com/jtangelder} 54588 * @author Ruben Stolk [@rubenstolk]{@link https://github.com/rubenstolk} 54589 * @author Lode Vanhove [@bitcrumb]{@link https://github.com/bitcrumb} 54590 * @author Edo Rivai [@edorivai]{@link https://github.com/edorivai} 54591 * @author Niels Keurentjes [@curry684]{@link https://github.com/curry684} 54592 * @author Stefan Vermaas [@stefanvermaas]{@link https://github.com/stefanvermaas} 54593 */ 54594 54595 var locale = { 54596 code: 'nl', 54597 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 54598 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 54599 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 54600 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 54601 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 54602 options: { 54603 weekStartsOn: 1 54604 /* Monday */ 54605 , 54606 firstWeekContainsDate: 4 54607 } 54608 }; 54609 /* harmony default export */ 54610 __webpack_exports__["a"] = (locale); 54611 54612 /***/ 54613 }), 54614 /* 718 */ 54615 /***/ (function (module, __webpack_exports__, __webpack_require__) { 54616 54617 "use strict"; 54618 /* harmony export (immutable) */ 54619 __webpack_exports__["a"] = formatDistance; 54620 var formatDistanceLocale = { 54621 lessThanXSeconds: { 54622 one: 'minder dan een seconde', 54623 other: 'minder dan {{count}} seconden' 54624 }, 54625 xSeconds: { 54626 one: '1 seconde', 54627 other: '{{count}} seconden' 54628 }, 54629 halfAMinute: 'een halve minuut', 54630 lessThanXMinutes: { 54631 one: 'minder dan een minuut', 54632 other: 'minder dan {{count}} minuten' 54633 }, 54634 xMinutes: { 54635 one: 'een minuut', 54636 other: '{{count}} minuten' 54637 }, 54638 aboutXHours: { 54639 one: 'ongeveer 1 uur', 54640 other: 'ongeveer {{count}} uur' 54641 }, 54642 xHours: { 54643 one: '1 uur', 54644 other: '{{count}} uur' 54645 }, 54646 xDays: { 54647 one: '1 dag', 54648 other: '{{count}} dagen' 54649 }, 54650 aboutXWeeks: { 54651 one: 'ongeveer 1 week', 54652 other: 'ongeveer {{count}} weken' 54653 }, 54654 xWeeks: { 54655 one: '1 week', 54656 other: '{{count}} weken' 54657 }, 54658 aboutXMonths: { 54659 one: 'ongeveer 1 maand', 54660 other: 'ongeveer {{count}} maanden' 54661 }, 54662 xMonths: { 54663 one: '1 maand', 54664 other: '{{count}} maanden' 54665 }, 54666 aboutXYears: { 54667 one: 'ongeveer 1 jaar', 54668 other: 'ongeveer {{count}} jaar' 54669 }, 54670 xYears: { 54671 one: '1 jaar', 54672 other: '{{count}} jaar' 54673 }, 54674 overXYears: { 54675 one: 'meer dan 1 jaar', 54676 other: 'meer dan {{count}} jaar' 54677 }, 54678 almostXYears: { 54679 one: 'bijna 1 jaar', 54680 other: 'bijna {{count}} jaar' 54681 } 54682 }; 54683 54684 function formatDistance(token, count, options) { 54685 options = options || {}; 54686 var result; 54687 54688 if (typeof formatDistanceLocale[token] === 'string') { 54689 result = formatDistanceLocale[token]; 54690 } else if (count === 1) { 54691 result = formatDistanceLocale[token].one; 54692 } else { 54693 result = formatDistanceLocale[token].other.replace('{{count}}', count); 54694 } 54695 54696 if (options.addSuffix) { 54697 if (options.comparison > 0) { 54698 return 'over ' + result; 54699 } else { 54700 return result + ' geleden'; 54701 } 54702 } 54703 54704 return result; 54705 } 54706 54707 /***/ 54708 }), 54709 /* 719 */ 54710 /***/ (function (module, __webpack_exports__, __webpack_require__) { 54711 54712 "use strict"; 54713 /* harmony import */ 54714 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 54715 54716 var dateFormats = { 54717 full: 'EEEE d MMMM y', 54718 long: 'd MMMM y', 54719 medium: 'd MMM y', 54720 short: 'dd-MM-y' 54721 }; 54722 var timeFormats = { 54723 full: 'HH:mm:ss zzzz', 54724 long: 'HH:mm:ss z', 54725 medium: 'HH:mm:ss', 54726 short: 'HH:mm' 54727 }; 54728 var dateTimeFormats = { 54729 full: "{{date}} 'om' {{time}}", 54730 long: "{{date}} 'om' {{time}}", 54731 medium: '{{date}}, {{time}}', 54732 short: '{{date}}, {{time}}' 54733 }; 54734 var formatLong = { 54735 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 54736 formats: dateFormats, 54737 defaultWidth: 'full' 54738 }), 54739 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 54740 formats: timeFormats, 54741 defaultWidth: 'full' 54742 }), 54743 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 54744 formats: dateTimeFormats, 54745 defaultWidth: 'full' 54746 }) 54747 }; 54748 /* harmony default export */ 54749 __webpack_exports__["a"] = (formatLong); 54750 54751 /***/ 54752 }), 54753 /* 720 */ 54754 /***/ (function (module, __webpack_exports__, __webpack_require__) { 54755 54756 "use strict"; 54757 /* harmony export (immutable) */ 54758 __webpack_exports__["a"] = formatRelative; 54759 var formatRelativeLocale = { 54760 lastWeek: "'afgelopen' eeee 'om' p", 54761 yesterday: "'gisteren om' p", 54762 today: "'vandaag om' p", 54763 tomorrow: "'morgen om' p", 54764 nextWeek: "eeee 'om' p", 54765 other: 'P' 54766 }; 54767 54768 function formatRelative(token, _date, _baseDate, _options) { 54769 return formatRelativeLocale[token]; 54770 } 54771 54772 /***/ 54773 }), 54774 /* 721 */ 54775 /***/ (function (module, __webpack_exports__, __webpack_require__) { 54776 54777 "use strict"; 54778 /* harmony import */ 54779 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 54780 54781 var eraValues = { 54782 narrow: ['v.C.', 'n.C.'], 54783 abbreviated: ['v.Chr.', 'n.Chr.'], 54784 wide: ['voor Christus', 'na Christus'] 54785 }; 54786 var quarterValues = { 54787 narrow: ['1', '2', '3', '4'], 54788 abbreviated: ['K1', 'K2', 'K3', 'K4'], 54789 wide: ['1e kwartaal', '2e kwartaal', '3e kwartaal', '4e kwartaal'] 54790 }; 54791 var monthValues = { 54792 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], 54793 abbreviated: ['jan.', 'feb.', 'mrt.', 'apr.', 'mei', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'], 54794 wide: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'] 54795 }; 54796 var dayValues = { 54797 narrow: ['Z', 'M', 'D', 'W', 'D', 'V', 'Z'], 54798 short: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], 54799 abbreviated: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'], 54800 wide: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'] 54801 }; 54802 var dayPeriodValues = { 54803 narrow: { 54804 am: 'AM', 54805 pm: 'PM', 54806 midnight: 'middernacht', 54807 noon: 'het middaguur', 54808 morning: "'s ochtends", 54809 afternoon: "'s middags", 54810 evening: "'s avonds", 54811 night: "'s nachts" 54812 }, 54813 abbreviated: { 54814 am: 'AM', 54815 pm: 'PM', 54816 midnight: 'middernacht', 54817 noon: 'het middaguur', 54818 morning: "'s ochtends", 54819 afternoon: "'s middags", 54820 evening: "'s avonds", 54821 night: "'s nachts" 54822 }, 54823 wide: { 54824 am: 'AM', 54825 pm: 'PM', 54826 midnight: 'middernacht', 54827 noon: 'het middaguur', 54828 morning: "'s ochtends", 54829 afternoon: "'s middags", 54830 evening: "'s avonds", 54831 night: "'s nachts" 54832 } 54833 }; 54834 54835 function ordinalNumber(dirtyNumber) { 54836 var number = Number(dirtyNumber); 54837 return number + 'e'; 54838 } 54839 54840 var localize = { 54841 ordinalNumber: ordinalNumber, 54842 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 54843 values: eraValues, 54844 defaultWidth: 'wide' 54845 }), 54846 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 54847 values: quarterValues, 54848 defaultWidth: 'wide', 54849 argumentCallback: function (quarter) { 54850 return Number(quarter) - 1; 54851 } 54852 }), 54853 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 54854 values: monthValues, 54855 defaultWidth: 'wide' 54856 }), 54857 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 54858 values: dayValues, 54859 defaultWidth: 'wide' 54860 }), 54861 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 54862 values: dayPeriodValues, 54863 defaultWidth: 'wide' 54864 }) 54865 }; 54866 /* harmony default export */ 54867 __webpack_exports__["a"] = (localize); 54868 54869 /***/ 54870 }), 54871 /* 722 */ 54872 /***/ (function (module, __webpack_exports__, __webpack_require__) { 54873 54874 "use strict"; 54875 /* harmony import */ 54876 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 54877 /* harmony import */ 54878 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 54879 54880 54881 var matchOrdinalNumberPattern = /^(\d+)e?/i; 54882 var parseOrdinalNumberPattern = /\d+/i; 54883 var matchEraPatterns = { 54884 narrow: /^([vn]\.? ?C\.?)/, 54885 abbreviated: /^([vn]\. ?Chr\.?)/, 54886 wide: /^((voor|na) Christus)/ 54887 }; 54888 var parseEraPatterns = { 54889 any: [/^v/, /^n/] 54890 }; 54891 var matchQuarterPatterns = { 54892 narrow: /^[1234]/i, 54893 abbreviated: /^K[1234]/i, 54894 wide: /^[1234]e kwartaal/i 54895 }; 54896 var parseQuarterPatterns = { 54897 any: [/1/i, /2/i, /3/i, /4/i] 54898 }; 54899 var matchMonthPatterns = { 54900 narrow: /^[jfmasond]/i, 54901 abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, 54902 wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i 54903 }; 54904 var parseMonthPatterns = { 54905 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 54906 any: [/^jan/i, /^feb/i, /^m(r|a)/i, /^apr/i, /^mei/i, /^jun/i, /^jul/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i] 54907 }; 54908 var matchDayPatterns = { 54909 narrow: /^[zmdwv]/i, 54910 short: /^(zo|ma|di|wo|do|vr|za)/i, 54911 abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i, 54912 wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i 54913 }; 54914 var parseDayPatterns = { 54915 narrow: [/^z/i, /^m/i, /^d/i, /^w/i, /^d/i, /^v/i, /^z/i], 54916 any: [/^zo/i, /^ma/i, /^di/i, /^wo/i, /^do/i, /^vr/i, /^za/i] 54917 }; 54918 var matchDayPeriodPatterns = { 54919 any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i 54920 }; 54921 var parseDayPeriodPatterns = { 54922 any: { 54923 am: /^am/i, 54924 pm: /^pm/i, 54925 midnight: /^middernacht/i, 54926 noon: /^het middaguur/i, 54927 morning: /ochtend/i, 54928 afternoon: /middag/i, 54929 evening: /avond/i, 54930 night: /nacht/i 54931 } 54932 }; 54933 var match = { 54934 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 54935 matchPattern: matchOrdinalNumberPattern, 54936 parsePattern: parseOrdinalNumberPattern, 54937 valueCallback: function (value) { 54938 return parseInt(value, 10); 54939 } 54940 }), 54941 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 54942 matchPatterns: matchEraPatterns, 54943 defaultMatchWidth: 'wide', 54944 parsePatterns: parseEraPatterns, 54945 defaultParseWidth: 'any' 54946 }), 54947 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 54948 matchPatterns: matchQuarterPatterns, 54949 defaultMatchWidth: 'wide', 54950 parsePatterns: parseQuarterPatterns, 54951 defaultParseWidth: 'any', 54952 valueCallback: function (index) { 54953 return index + 1; 54954 } 54955 }), 54956 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 54957 matchPatterns: matchMonthPatterns, 54958 defaultMatchWidth: 'wide', 54959 parsePatterns: parseMonthPatterns, 54960 defaultParseWidth: 'any' 54961 }), 54962 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 54963 matchPatterns: matchDayPatterns, 54964 defaultMatchWidth: 'wide', 54965 parsePatterns: parseDayPatterns, 54966 defaultParseWidth: 'any' 54967 }), 54968 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 54969 matchPatterns: matchDayPeriodPatterns, 54970 defaultMatchWidth: 'any', 54971 parsePatterns: parseDayPeriodPatterns, 54972 defaultParseWidth: 'any' 54973 }) 54974 }; 54975 /* harmony default export */ 54976 __webpack_exports__["a"] = (match); 54977 54978 /***/ 54979 }), 54980 /* 723 */ 54981 /***/ (function (module, __webpack_exports__, __webpack_require__) { 54982 54983 "use strict"; 54984 /* harmony import */ 54985 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(724); 54986 /* harmony import */ 54987 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(725); 54988 /* harmony import */ 54989 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(726); 54990 /* harmony import */ 54991 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(727); 54992 /* harmony import */ 54993 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(728); 54994 54995 54996 /** 54997 * @type {Locale} 54998 * @category Locales 54999 * @summary Dutch locale. 55000 * @language Dutch 55001 * @iso-639-2 nld 55002 * @author Jorik Tangelder [@jtangelder]{@link https://github.com/jtangelder} 55003 * @author Ruben Stolk [@rubenstolk]{@link https://github.com/rubenstolk} 55004 * @author Lode Vanhove [@bitcrumb]{@link https://github.com/bitcrumb} 55005 * @author Alex Hoeing [@dcbn]{@link https://github.com/dcbn} 55006 */ 55007 55008 var locale = { 55009 code: 'nl-BE', 55010 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 55011 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 55012 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 55013 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 55014 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 55015 options: { 55016 weekStartsOn: 1 55017 /* Monday */ 55018 , 55019 firstWeekContainsDate: 4 55020 } 55021 }; 55022 /* harmony default export */ 55023 __webpack_exports__["a"] = (locale); 55024 55025 /***/ 55026 }), 55027 /* 724 */ 55028 /***/ (function (module, __webpack_exports__, __webpack_require__) { 55029 55030 "use strict"; 55031 /* harmony export (immutable) */ 55032 __webpack_exports__["a"] = formatDistance; 55033 var formatDistanceLocale = { 55034 lessThanXSeconds: { 55035 one: 'minder dan een seconde', 55036 other: 'minder dan {{count}} seconden' 55037 }, 55038 xSeconds: { 55039 one: '1 seconde', 55040 other: '{{count}} seconden' 55041 }, 55042 halfAMinute: 'een halve minuut', 55043 lessThanXMinutes: { 55044 one: 'minder dan een minuut', 55045 other: 'minder dan {{count}} minuten' 55046 }, 55047 xMinutes: { 55048 one: 'een minuut', 55049 other: '{{count}} minuten' 55050 }, 55051 aboutXHours: { 55052 one: 'ongeveer 1 uur', 55053 other: 'ongeveer {{count}} uur' 55054 }, 55055 xHours: { 55056 one: '1 uur', 55057 other: '{{count}} uur' 55058 }, 55059 xDays: { 55060 one: '1 dag', 55061 other: '{{count}} dagen' 55062 }, 55063 aboutXWeeks: { 55064 one: 'ongeveer 1 week', 55065 other: 'ongeveer {{count}} weken' 55066 }, 55067 xWeeks: { 55068 one: '1 week', 55069 other: '{{count}} weken' 55070 }, 55071 aboutXMonths: { 55072 one: 'ongeveer 1 maand', 55073 other: 'ongeveer {{count}} maanden' 55074 }, 55075 xMonths: { 55076 one: '1 maand', 55077 other: '{{count}} maanden' 55078 }, 55079 aboutXYears: { 55080 one: 'ongeveer 1 jaar', 55081 other: 'ongeveer {{count}} jaar' 55082 }, 55083 xYears: { 55084 one: '1 jaar', 55085 other: '{{count}} jaar' 55086 }, 55087 overXYears: { 55088 one: 'meer dan 1 jaar', 55089 other: 'meer dan {{count}} jaar' 55090 }, 55091 almostXYears: { 55092 one: 'bijna 1 jaar', 55093 other: 'bijna {{count}} jaar' 55094 } 55095 }; 55096 55097 function formatDistance(token, count, options) { 55098 options = options || {}; 55099 var result; 55100 55101 if (typeof formatDistanceLocale[token] === 'string') { 55102 result = formatDistanceLocale[token]; 55103 } else if (count === 1) { 55104 result = formatDistanceLocale[token].one; 55105 } else { 55106 result = formatDistanceLocale[token].other.replace('{{count}}', count); 55107 } 55108 55109 if (options.addSuffix) { 55110 if (options.comparison > 0) { 55111 return 'over ' + result; 55112 } else { 55113 return result + ' geleden'; 55114 } 55115 } 55116 55117 return result; 55118 } 55119 55120 /***/ 55121 }), 55122 /* 725 */ 55123 /***/ (function (module, __webpack_exports__, __webpack_require__) { 55124 55125 "use strict"; 55126 /* harmony import */ 55127 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 55128 55129 var dateFormats = { 55130 full: 'EEEE d MMMM y', 55131 long: 'd MMMM y', 55132 medium: 'd MMM y', 55133 short: 'dd-MM-y' 55134 }; 55135 var timeFormats = { 55136 full: 'HH:mm:ss zzzz', 55137 long: 'HH:mm:ss z', 55138 medium: 'HH:mm:ss', 55139 short: 'HH:mm' 55140 }; 55141 var dateTimeFormats = { 55142 full: "{{date}} 'om' {{time}}", 55143 long: "{{date}} 'om' {{time}}", 55144 medium: '{{date}}, {{time}}', 55145 short: '{{date}}, {{time}}' 55146 }; 55147 var formatLong = { 55148 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 55149 formats: dateFormats, 55150 defaultWidth: 'full' 55151 }), 55152 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 55153 formats: timeFormats, 55154 defaultWidth: 'full' 55155 }), 55156 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 55157 formats: dateTimeFormats, 55158 defaultWidth: 'full' 55159 }) 55160 }; 55161 /* harmony default export */ 55162 __webpack_exports__["a"] = (formatLong); 55163 55164 /***/ 55165 }), 55166 /* 726 */ 55167 /***/ (function (module, __webpack_exports__, __webpack_require__) { 55168 55169 "use strict"; 55170 /* harmony export (immutable) */ 55171 __webpack_exports__["a"] = formatRelative; 55172 var formatRelativeLocale = { 55173 lastWeek: "'vorige' eeee 'om' p", 55174 yesterday: "'gisteren om' p", 55175 today: "'vandaag om' p", 55176 tomorrow: "'morgen om' p", 55177 nextWeek: "eeee 'om' p", 55178 other: 'P' 55179 }; 55180 55181 function formatRelative(token, _date, _baseDate, _options) { 55182 return formatRelativeLocale[token]; 55183 } 55184 55185 /***/ 55186 }), 55187 /* 727 */ 55188 /***/ (function (module, __webpack_exports__, __webpack_require__) { 55189 55190 "use strict"; 55191 /* harmony import */ 55192 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 55193 55194 var eraValues = { 55195 narrow: ['v.C.', 'n.C.'], 55196 abbreviated: ['v.Chr.', 'n.Chr.'], 55197 wide: ['voor Christus', 'na Christus'] 55198 }; 55199 var quarterValues = { 55200 narrow: ['1', '2', '3', '4'], 55201 abbreviated: ['K1', 'K2', 'K3', 'K4'], 55202 wide: ['1e kwartaal', '2e kwartaal', '3e kwartaal', '4e kwartaal'] 55203 }; 55204 var monthValues = { 55205 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], 55206 abbreviated: ['jan.', 'feb.', 'mrt.', 'apr.', 'mei', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'], 55207 wide: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'] 55208 }; 55209 var dayValues = { 55210 narrow: ['Z', 'M', 'D', 'W', 'D', 'V', 'Z'], 55211 short: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], 55212 abbreviated: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'], 55213 wide: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'] 55214 }; 55215 var dayPeriodValues = { 55216 narrow: { 55217 am: 'AM', 55218 pm: 'PM', 55219 midnight: 'middernacht', 55220 noon: 'het middag', 55221 morning: "'s ochtends", 55222 afternoon: "'s namiddags", 55223 evening: "'s avonds", 55224 night: "'s nachts" 55225 }, 55226 abbreviated: { 55227 am: 'AM', 55228 pm: 'PM', 55229 midnight: 'middernacht', 55230 noon: 'het middag', 55231 morning: "'s ochtends", 55232 afternoon: "'s namiddags", 55233 evening: "'s avonds", 55234 night: "'s nachts" 55235 }, 55236 wide: { 55237 am: 'AM', 55238 pm: 'PM', 55239 midnight: 'middernacht', 55240 noon: 'het middag', 55241 morning: "'s ochtends", 55242 afternoon: "'s namiddags", 55243 evening: "'s avonds", 55244 night: "'s nachts" 55245 } 55246 }; 55247 55248 function ordinalNumber(dirtyNumber) { 55249 var number = Number(dirtyNumber); 55250 return number + 'e'; 55251 } 55252 55253 var localize = { 55254 ordinalNumber: ordinalNumber, 55255 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 55256 values: eraValues, 55257 defaultWidth: 'wide' 55258 }), 55259 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 55260 values: quarterValues, 55261 defaultWidth: 'wide', 55262 argumentCallback: function (quarter) { 55263 return Number(quarter) - 1; 55264 } 55265 }), 55266 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 55267 values: monthValues, 55268 defaultWidth: 'wide' 55269 }), 55270 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 55271 values: dayValues, 55272 defaultWidth: 'wide' 55273 }), 55274 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 55275 values: dayPeriodValues, 55276 defaultWidth: 'wide' 55277 }) 55278 }; 55279 /* harmony default export */ 55280 __webpack_exports__["a"] = (localize); 55281 55282 /***/ 55283 }), 55284 /* 728 */ 55285 /***/ (function (module, __webpack_exports__, __webpack_require__) { 55286 55287 "use strict"; 55288 /* harmony import */ 55289 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 55290 /* harmony import */ 55291 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 55292 55293 55294 var matchOrdinalNumberPattern = /^(\d+)e?/i; 55295 var parseOrdinalNumberPattern = /\d+/i; 55296 var matchEraPatterns = { 55297 narrow: /^([vn]\.? ?C\.?)/, 55298 abbreviated: /^([vn]\. ?Chr\.?)/, 55299 wide: /^((voor|na) Christus)/ 55300 }; 55301 var parseEraPatterns = { 55302 any: [/^v/, /^n/] 55303 }; 55304 var matchQuarterPatterns = { 55305 narrow: /^[1234]/i, 55306 abbreviated: /^K[1234]/i, 55307 wide: /^[1234]e kwartaal/i 55308 }; 55309 var parseQuarterPatterns = { 55310 any: [/1/i, /2/i, /3/i, /4/i] 55311 }; 55312 var matchMonthPatterns = { 55313 narrow: /^[jfmasond]/i, 55314 abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, 55315 wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i 55316 }; 55317 var parseMonthPatterns = { 55318 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 55319 any: [/^jan/i, /^feb/i, /^m(r|a)/i, /^apr/i, /^mei/i, /^jun/i, /^jul/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i] 55320 }; 55321 var matchDayPatterns = { 55322 narrow: /^[zmdwv]/i, 55323 short: /^(zo|ma|di|wo|do|vr|za)/i, 55324 abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i, 55325 wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i 55326 }; 55327 var parseDayPatterns = { 55328 narrow: [/^z/i, /^m/i, /^d/i, /^w/i, /^d/i, /^v/i, /^z/i], 55329 any: [/^zo/i, /^ma/i, /^di/i, /^wo/i, /^do/i, /^vr/i, /^za/i] 55330 }; 55331 var matchDayPeriodPatterns = { 55332 any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i 55333 }; 55334 var parseDayPeriodPatterns = { 55335 any: { 55336 am: /^am/i, 55337 pm: /^pm/i, 55338 midnight: /^middernacht/i, 55339 noon: /^het middaguur/i, 55340 morning: /ochtend/i, 55341 afternoon: /middag/i, 55342 evening: /avond/i, 55343 night: /nacht/i 55344 } 55345 }; 55346 var match = { 55347 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 55348 matchPattern: matchOrdinalNumberPattern, 55349 parsePattern: parseOrdinalNumberPattern, 55350 valueCallback: function (value) { 55351 return parseInt(value, 10); 55352 } 55353 }), 55354 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 55355 matchPatterns: matchEraPatterns, 55356 defaultMatchWidth: 'wide', 55357 parsePatterns: parseEraPatterns, 55358 defaultParseWidth: 'any' 55359 }), 55360 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 55361 matchPatterns: matchQuarterPatterns, 55362 defaultMatchWidth: 'wide', 55363 parsePatterns: parseQuarterPatterns, 55364 defaultParseWidth: 'any', 55365 valueCallback: function (index) { 55366 return index + 1; 55367 } 55368 }), 55369 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 55370 matchPatterns: matchMonthPatterns, 55371 defaultMatchWidth: 'wide', 55372 parsePatterns: parseMonthPatterns, 55373 defaultParseWidth: 'any' 55374 }), 55375 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 55376 matchPatterns: matchDayPatterns, 55377 defaultMatchWidth: 'wide', 55378 parsePatterns: parseDayPatterns, 55379 defaultParseWidth: 'any' 55380 }), 55381 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 55382 matchPatterns: matchDayPeriodPatterns, 55383 defaultMatchWidth: 'any', 55384 parsePatterns: parseDayPeriodPatterns, 55385 defaultParseWidth: 'any' 55386 }) 55387 }; 55388 /* harmony default export */ 55389 __webpack_exports__["a"] = (match); 55390 55391 /***/ 55392 }), 55393 /* 729 */ 55394 /***/ (function (module, __webpack_exports__, __webpack_require__) { 55395 55396 "use strict"; 55397 /* harmony import */ 55398 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(730); 55399 /* harmony import */ 55400 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(731); 55401 /* harmony import */ 55402 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(732); 55403 /* harmony import */ 55404 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(733); 55405 /* harmony import */ 55406 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(734); 55407 55408 55409 /** 55410 * @type {Locale} 55411 * @category Locales 55412 * @summary Norwegian Nynorsk locale. 55413 * @language Norwegian Nynorsk 55414 * @iso-639-2 nno 55415 * @author Mats Byrkjeland [@draperunner]{@link https://github.com/draperunner} 55416 */ 55417 55418 var locale = { 55419 code: 'nn', 55420 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 55421 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 55422 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 55423 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 55424 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 55425 options: { 55426 weekStartsOn: 1 55427 /* Monday */ 55428 , 55429 firstWeekContainsDate: 4 55430 } 55431 }; 55432 /* harmony default export */ 55433 __webpack_exports__["a"] = (locale); 55434 55435 /***/ 55436 }), 55437 /* 730 */ 55438 /***/ (function (module, __webpack_exports__, __webpack_require__) { 55439 55440 "use strict"; 55441 /* harmony export (immutable) */ 55442 __webpack_exports__["a"] = formatDistance; 55443 var formatDistanceLocale = { 55444 lessThanXSeconds: { 55445 singular: 'mindre enn eitt sekund', 55446 plural: 'mindre enn {{count}} sekund' 55447 }, 55448 xSeconds: { 55449 singular: 'eitt sekund', 55450 plural: '{{count}} sekund' 55451 }, 55452 halfAMinute: 'eit halvt minutt', 55453 lessThanXMinutes: { 55454 singular: 'mindre enn eitt minutt', 55455 plural: 'mindre enn {{count}} minutt' 55456 }, 55457 xMinutes: { 55458 singular: 'eitt minutt', 55459 plural: '{{count}} minutt' 55460 }, 55461 aboutXHours: { 55462 singular: 'omtrent ein time', 55463 plural: 'omtrent {{count}} timar' 55464 }, 55465 xHours: { 55466 singular: 'ein time', 55467 plural: '{{count}} timar' 55468 }, 55469 xDays: { 55470 singular: 'ein dag', 55471 plural: '{{count}} dagar' 55472 }, 55473 aboutXWeeks: { 55474 singular: 'omtrent ei veke', 55475 plural: 'omtrent {{count}} veker' 55476 }, 55477 xWeeks: { 55478 singular: 'ei veke', 55479 plural: '{{count}} veker' 55480 }, 55481 aboutXMonths: { 55482 singular: 'omtrent ein mÃ¥nad', 55483 plural: 'omtrent {{count}} mÃ¥nader' 55484 }, 55485 xMonths: { 55486 singular: 'ein mÃ¥nad', 55487 plural: '{{count}} mÃ¥nader' 55488 }, 55489 aboutXYears: { 55490 singular: 'omtrent eitt Ã¥r', 55491 plural: 'omtrent {{count}} Ã¥r' 55492 }, 55493 xYears: { 55494 singular: 'eitt Ã¥r', 55495 plural: '{{count}} Ã¥r' 55496 }, 55497 overXYears: { 55498 singular: 'over eitt Ã¥r', 55499 plural: 'over {{count}} Ã¥r' 55500 }, 55501 almostXYears: { 55502 singular: 'nesten eitt Ã¥r', 55503 plural: 'nesten {{count}} Ã¥r' 55504 } 55505 }; 55506 var wordMapping = ['null', 'ein', 'to', 'tre', 'fire', 'fem', 'seks', 'sju', 'Ã¥tte', 'ni', 'ti', 'elleve', 'tolv']; 55507 55508 function formatDistance(token, count, options) { 55509 options = options || { 55510 onlyNumeric: false 55511 }; 55512 var translation = formatDistanceLocale[token]; 55513 var result; 55514 55515 if (typeof translation === 'string') { 55516 result = translation; 55517 } else if (count === 0 || count > 1) { 55518 if (options.onlyNumeric) { 55519 result = translation.plural.replace('{{count}}', count); 55520 } else { 55521 result = translation.plural.replace('{{count}}', count < 13 ? wordMapping[count] : count); 55522 } 55523 } else { 55524 result = translation.singular; 55525 } 55526 55527 if (options.addSuffix) { 55528 if (options.comparison > 0) { 55529 return 'om ' + result; 55530 } else { 55531 return result + ' sidan'; 55532 } 55533 } 55534 55535 return result; 55536 } 55537 55538 /***/ 55539 }), 55540 /* 731 */ 55541 /***/ (function (module, __webpack_exports__, __webpack_require__) { 55542 55543 "use strict"; 55544 /* harmony import */ 55545 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 55546 55547 var dateFormats = { 55548 full: 'EEEE d. MMMM y', 55549 long: 'd. MMMM y', 55550 medium: 'd. MMM y', 55551 short: 'dd.MM.y' 55552 }; 55553 var timeFormats = { 55554 full: "'kl'. HH:mm:ss zzzz", 55555 long: 'HH:mm:ss z', 55556 medium: 'HH:mm:ss', 55557 short: 'HH:mm' 55558 }; 55559 var dateTimeFormats = { 55560 full: "{{date}} 'kl.' {{time}}", 55561 long: "{{date}} 'kl.' {{time}}", 55562 medium: '{{date}} {{time}}', 55563 short: '{{date}} {{time}}' 55564 }; 55565 var formatLong = { 55566 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 55567 formats: dateFormats, 55568 defaultWidth: 'full' 55569 }), 55570 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 55571 formats: timeFormats, 55572 defaultWidth: 'full' 55573 }), 55574 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 55575 formats: dateTimeFormats, 55576 defaultWidth: 'full' 55577 }) 55578 }; 55579 /* harmony default export */ 55580 __webpack_exports__["a"] = (formatLong); 55581 55582 /***/ 55583 }), 55584 /* 732 */ 55585 /***/ (function (module, __webpack_exports__, __webpack_require__) { 55586 55587 "use strict"; 55588 /* harmony export (immutable) */ 55589 __webpack_exports__["a"] = formatRelative; 55590 var formatRelativeLocale = { 55591 lastWeek: "'førre' eeee 'kl.' p", 55592 yesterday: "'i gÃ¥r kl.' p", 55593 today: "'i dag kl.' p", 55594 tomorrow: "'i morgon kl.' p", 55595 nextWeek: "EEEE 'kl.' p", 55596 other: 'P' 55597 }; 55598 55599 function formatRelative(token, _date, _baseDate, _options) { 55600 return formatRelativeLocale[token]; 55601 } 55602 55603 /***/ 55604 }), 55605 /* 733 */ 55606 /***/ (function (module, __webpack_exports__, __webpack_require__) { 55607 55608 "use strict"; 55609 /* harmony import */ 55610 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 55611 55612 var eraValues = { 55613 narrow: ['f.Kr.', 'e.Kr.'], 55614 abbreviated: ['f.Kr.', 'e.Kr.'], 55615 wide: ['før Kristus', 'etter Kristus'] 55616 }; 55617 var quarterValues = { 55618 narrow: ['1', '2', '3', '4'], 55619 abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], 55620 wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] 55621 }; 55622 var monthValues = { 55623 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], 55624 abbreviated: ['jan.', 'feb.', 'mars', 'apr.', 'mai', 'juni', 'juli', 'aug.', 'sep.', 'okt.', 'nov.', 'des.'], 55625 wide: ['januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember'] 55626 }; 55627 var dayValues = { 55628 narrow: ['S', 'M', 'T', 'O', 'T', 'F', 'L'], 55629 short: ['su', 'mÃ¥', 'ty', 'on', 'to', 'fr', 'lau'], 55630 abbreviated: ['sun', 'mÃ¥n', 'tys', 'ons', 'tor', 'fre', 'laur'], 55631 wide: ['sundag', 'mÃ¥ndag', 'tysdag', 'onsdag', 'torsdag', 'fredag', 'laurdag'] 55632 }; 55633 var dayPeriodValues = { 55634 narrow: { 55635 am: 'a', 55636 pm: 'p', 55637 midnight: 'midnatt', 55638 noon: 'middag', 55639 morning: 'pÃ¥ morg.', 55640 afternoon: 'pÃ¥ etterm.', 55641 evening: 'pÃ¥ kvelden', 55642 night: 'pÃ¥ natta' 55643 }, 55644 abbreviated: { 55645 am: 'a.m.', 55646 pm: 'p.m.', 55647 midnight: 'midnatt', 55648 noon: 'middag', 55649 morning: 'pÃ¥ morg.', 55650 afternoon: 'pÃ¥ etterm.', 55651 evening: 'pÃ¥ kvelden', 55652 night: 'pÃ¥ natta' 55653 }, 55654 wide: { 55655 am: 'a.m.', 55656 pm: 'p.m.', 55657 midnight: 'midnatt', 55658 noon: 'middag', 55659 morning: 'pÃ¥ morgonen', 55660 afternoon: 'pÃ¥ ettermiddagen', 55661 evening: 'pÃ¥ kvelden', 55662 night: 'pÃ¥ natta' 55663 } 55664 }; 55665 55666 function ordinalNumber(dirtyNumber) { 55667 var number = Number(dirtyNumber); 55668 return number + '.'; 55669 } 55670 55671 var localize = { 55672 ordinalNumber: ordinalNumber, 55673 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 55674 values: eraValues, 55675 defaultWidth: 'wide' 55676 }), 55677 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 55678 values: quarterValues, 55679 defaultWidth: 'wide', 55680 argumentCallback: function (quarter) { 55681 return Number(quarter) - 1; 55682 } 55683 }), 55684 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 55685 values: monthValues, 55686 defaultWidth: 'wide' 55687 }), 55688 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 55689 values: dayValues, 55690 defaultWidth: 'wide' 55691 }), 55692 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 55693 values: dayPeriodValues, 55694 defaultWidth: 'wide' 55695 }) 55696 }; 55697 /* harmony default export */ 55698 __webpack_exports__["a"] = (localize); 55699 55700 /***/ 55701 }), 55702 /* 734 */ 55703 /***/ (function (module, __webpack_exports__, __webpack_require__) { 55704 55705 "use strict"; 55706 /* harmony import */ 55707 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 55708 /* harmony import */ 55709 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 55710 55711 55712 var matchOrdinalNumberPattern = /^(\d+)\.?/i; 55713 var parseOrdinalNumberPattern = /\d+/i; 55714 var matchEraPatterns = { 55715 narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, 55716 abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, 55717 wide: /^(før Kristus|før vÃ¥r tid|etter Kristus|vÃ¥r tid)/i 55718 }; 55719 var parseEraPatterns = { 55720 any: [/^f/i, /^e/i] 55721 }; 55722 var matchQuarterPatterns = { 55723 narrow: /^[1234]/i, 55724 abbreviated: /^q[1234]/i, 55725 wide: /^[1234](\.)? kvartal/i 55726 }; 55727 var parseQuarterPatterns = { 55728 any: [/1/i, /2/i, /3/i, /4/i] 55729 }; 55730 var matchMonthPatterns = { 55731 narrow: /^[jfmasond]/i, 55732 abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, 55733 wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i 55734 }; 55735 var parseMonthPatterns = { 55736 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 55737 any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^mai/i, /^jun/i, /^jul/i, /^aug/i, /^s/i, /^o/i, /^n/i, /^d/i] 55738 }; 55739 var matchDayPatterns = { 55740 narrow: /^[smtofl]/i, 55741 short: /^(su|mÃ¥|ty|on|to|fr|la)/i, 55742 abbreviated: /^(sun|mÃ¥n|tys|ons|tor|fre|laur)/i, 55743 wide: /^(sundag|mÃ¥ndag|tysdag|onsdag|torsdag|fredag|laurdag)/i 55744 }; 55745 var parseDayPatterns = { 55746 any: [/^s/i, /^m/i, /^ty/i, /^o/i, /^to/i, /^f/i, /^l/i] 55747 }; 55748 var matchDayPeriodPatterns = { 55749 narrow: /^(midnatt|middag|(pÃ¥) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i, 55750 any: /^([ap]\.?\s?m\.?|midnatt|middag|(pÃ¥) (morgonen|ettermiddagen|kvelden|natta))/i 55751 }; 55752 var parseDayPeriodPatterns = { 55753 any: { 55754 am: /^a(\.?\s?m\.?)?$/i, 55755 pm: /^p(\.?\s?m\.?)?$/i, 55756 midnight: /^midn/i, 55757 noon: /^midd/i, 55758 morning: /morgon/i, 55759 afternoon: /ettermiddag/i, 55760 evening: /kveld/i, 55761 night: /natt/i 55762 } 55763 }; 55764 var match = { 55765 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 55766 matchPattern: matchOrdinalNumberPattern, 55767 parsePattern: parseOrdinalNumberPattern, 55768 valueCallback: function (value) { 55769 return parseInt(value, 10); 55770 } 55771 }), 55772 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 55773 matchPatterns: matchEraPatterns, 55774 defaultMatchWidth: 'wide', 55775 parsePatterns: parseEraPatterns, 55776 defaultParseWidth: 'any' 55777 }), 55778 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 55779 matchPatterns: matchQuarterPatterns, 55780 defaultMatchWidth: 'wide', 55781 parsePatterns: parseQuarterPatterns, 55782 defaultParseWidth: 'any', 55783 valueCallback: function (index) { 55784 return index + 1; 55785 } 55786 }), 55787 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 55788 matchPatterns: matchMonthPatterns, 55789 defaultMatchWidth: 'wide', 55790 parsePatterns: parseMonthPatterns, 55791 defaultParseWidth: 'any' 55792 }), 55793 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 55794 matchPatterns: matchDayPatterns, 55795 defaultMatchWidth: 'wide', 55796 parsePatterns: parseDayPatterns, 55797 defaultParseWidth: 'any' 55798 }), 55799 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 55800 matchPatterns: matchDayPeriodPatterns, 55801 defaultMatchWidth: 'any', 55802 parsePatterns: parseDayPeriodPatterns, 55803 defaultParseWidth: 'any' 55804 }) 55805 }; 55806 /* harmony default export */ 55807 __webpack_exports__["a"] = (match); 55808 55809 /***/ 55810 }), 55811 /* 735 */ 55812 /***/ (function (module, __webpack_exports__, __webpack_require__) { 55813 55814 "use strict"; 55815 /* harmony import */ 55816 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(736); 55817 /* harmony import */ 55818 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(737); 55819 /* harmony import */ 55820 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(738); 55821 /* harmony import */ 55822 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(739); 55823 /* harmony import */ 55824 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(740); 55825 55826 55827 /** 55828 * @type {Locale} 55829 * @category Locales 55830 * @summary Polish locale. 55831 * @language Polish 55832 * @iso-639-2 pol 55833 * @author Mateusz Derks [@ertrzyiks]{@link https://github.com/ertrzyiks} 55834 * @author Just RAG [@justrag]{@link https://github.com/justrag} 55835 * @author Mikolaj Grzyb [@mikolajgrzyb]{@link https://github.com/mikolajgrzyb} 55836 * @author Mateusz Tokarski [@mutisz]{@link https://github.com/mutisz} 55837 */ 55838 55839 var locale = { 55840 code: 'pl', 55841 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 55842 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 55843 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 55844 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 55845 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 55846 options: { 55847 weekStartsOn: 1 55848 /* Monday */ 55849 , 55850 firstWeekContainsDate: 4 55851 } 55852 }; 55853 /* harmony default export */ 55854 __webpack_exports__["a"] = (locale); 55855 55856 /***/ 55857 }), 55858 /* 736 */ 55859 /***/ (function (module, __webpack_exports__, __webpack_require__) { 55860 55861 "use strict"; 55862 /* harmony export (immutable) */ 55863 __webpack_exports__["a"] = formatDistance; 55864 55865 function declensionGroup(scheme, count) { 55866 if (count === 1) { 55867 return scheme.one; 55868 } 55869 55870 var rem100 = count % 100; // ends with 11-20 55871 55872 if (rem100 <= 20 && rem100 > 10) { 55873 return scheme.other; 55874 } 55875 55876 var rem10 = rem100 % 10; // ends with 2, 3, 4 55877 55878 if (rem10 >= 2 && rem10 <= 4) { 55879 return scheme.twoFour; 55880 } 55881 55882 return scheme.other; 55883 } 55884 55885 function declension(scheme, count, time) { 55886 time = time || 'regular'; 55887 var group = declensionGroup(scheme, count); 55888 var finalText = group[time] || group; 55889 return finalText.replace('{{count}}', count); 55890 } 55891 55892 var formatDistanceLocale = { 55893 lessThanXSeconds: { 55894 one: { 55895 regular: 'mniej niż sekunda', 55896 past: 'mniej niż sekundÄ', 55897 future: 'mniej niż sekundÄ' 55898 }, 55899 twoFour: 'mniej niż {{count}} sekundy', 55900 other: 'mniej niż {{count}} sekund' 55901 }, 55902 xSeconds: { 55903 one: { 55904 regular: 'sekunda', 55905 past: 'sekundÄ', 55906 future: 'sekundÄ' 55907 }, 55908 twoFour: '{{count}} sekundy', 55909 other: '{{count}} sekund' 55910 }, 55911 halfAMinute: { 55912 one: 'póŠminuty', 55913 twoFour: 'póŠminuty', 55914 other: 'póŠminuty' 55915 }, 55916 lessThanXMinutes: { 55917 one: { 55918 regular: 'mniej niż minuta', 55919 past: 'mniej niż minutÄ', 55920 future: 'mniej niż minutÄ' 55921 }, 55922 twoFour: 'mniej niż {{count}} minuty', 55923 other: 'mniej niż {{count}} minut' 55924 }, 55925 xMinutes: { 55926 one: { 55927 regular: 'minuta', 55928 past: 'minutÄ', 55929 future: 'minutÄ' 55930 }, 55931 twoFour: '{{count}} minuty', 55932 other: '{{count}} minut' 55933 }, 55934 aboutXHours: { 55935 one: { 55936 regular: 'okoÅo godzina', 55937 past: 'okoÅo godziny', 55938 future: 'okoÅo godzinÄ' 55939 }, 55940 twoFour: 'okoÅo {{count}} godziny', 55941 other: 'okoÅo {{count}} godzin' 55942 }, 55943 xHours: { 55944 one: { 55945 regular: 'godzina', 55946 past: 'godzinÄ', 55947 future: 'godzinÄ' 55948 }, 55949 twoFour: '{{count}} godziny', 55950 other: '{{count}} godzin' 55951 }, 55952 xDays: { 55953 one: { 55954 regular: 'dzieÅ', 55955 past: 'dzieÅ', 55956 future: '1 dzieÅ' 55957 }, 55958 twoFour: '{{count}} dni', 55959 other: '{{count}} dni' 55960 }, 55961 aboutXWeeks: { 55962 one: 'okoÅo tygodnia', 55963 twoFour: 'okoÅo {{count}} tygodni', 55964 other: 'okoÅo {{count}} tygodni' 55965 }, 55966 xWeeks: { 55967 one: 'tydzieÅ', 55968 twoFour: '{{count}} tygodnie', 55969 other: '{{count}} tygodni' 55970 }, 55971 aboutXMonths: { 55972 one: 'okoÅo miesiÄ c', 55973 twoFour: 'okoÅo {{count}} miesiÄ ce', 55974 other: 'okoÅo {{count}} miesiÄcy' 55975 }, 55976 xMonths: { 55977 one: 'miesiÄ c', 55978 twoFour: '{{count}} miesiÄ ce', 55979 other: '{{count}} miesiÄcy' 55980 }, 55981 aboutXYears: { 55982 one: 'okoÅo rok', 55983 twoFour: 'okoÅo {{count}} lata', 55984 other: 'okoÅo {{count}} lat' 55985 }, 55986 xYears: { 55987 one: 'rok', 55988 twoFour: '{{count}} lata', 55989 other: '{{count}} lat' 55990 }, 55991 overXYears: { 55992 one: 'ponad rok', 55993 twoFour: 'ponad {{count}} lata', 55994 other: 'ponad {{count}} lat' 55995 }, 55996 almostXYears: { 55997 one: 'prawie rok', 55998 twoFour: 'prawie {{count}} lata', 55999 other: 'prawie {{count}} lat' 56000 } 56001 }; 56002 56003 function formatDistance(token, count, options) { 56004 options = options || {}; 56005 var scheme = formatDistanceLocale[token]; 56006 56007 if (!options.addSuffix) { 56008 return declension(scheme, count); 56009 } 56010 56011 if (options.comparison > 0) { 56012 return 'za ' + declension(scheme, count, 'future'); 56013 } else { 56014 return declension(scheme, count, 'past') + ' temu'; 56015 } 56016 } 56017 56018 /***/ 56019 }), 56020 /* 737 */ 56021 /***/ (function (module, __webpack_exports__, __webpack_require__) { 56022 56023 "use strict"; 56024 /* harmony import */ 56025 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 56026 56027 var dateFormats = { 56028 full: 'EEEE, do MMMM y', 56029 long: 'do MMMM y', 56030 medium: 'do MMM y', 56031 short: 'dd.MM.y' 56032 }; 56033 var timeFormats = { 56034 full: 'HH:mm:ss zzzz', 56035 long: 'HH:mm:ss z', 56036 medium: 'HH:mm:ss', 56037 short: 'HH:mm' 56038 }; 56039 var dateTimeFormats = { 56040 full: '{{date}} {{time}}', 56041 long: '{{date}} {{time}}', 56042 medium: '{{date}}, {{time}}', 56043 short: '{{date}}, {{time}}' 56044 }; 56045 var formatLong = { 56046 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 56047 formats: dateFormats, 56048 defaultWidth: 'full' 56049 }), 56050 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 56051 formats: timeFormats, 56052 defaultWidth: 'full' 56053 }), 56054 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 56055 formats: dateTimeFormats, 56056 defaultWidth: 'full' 56057 }) 56058 }; 56059 /* harmony default export */ 56060 __webpack_exports__["a"] = (formatLong); 56061 56062 /***/ 56063 }), 56064 /* 738 */ 56065 /***/ (function (module, __webpack_exports__, __webpack_require__) { 56066 56067 "use strict"; 56068 /* harmony export (immutable) */ 56069 __webpack_exports__["a"] = formatRelative; 56070 /* harmony import */ 56071 var __WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__ = __webpack_require__(13); 56072 56073 var adjectivesLastWeek = { 56074 masculine: 'ostatni', 56075 feminine: 'ostatnia' 56076 }; 56077 var adjectivesThisWeek = { 56078 masculine: 'ten', 56079 feminine: 'ta' 56080 }; 56081 var adjectivesNextWeek = { 56082 masculine: 'nastÄpny', 56083 feminine: 'nastÄpna' 56084 }; 56085 var dayGrammaticalGender = { 56086 0: 'feminine', 56087 1: 'masculine', 56088 2: 'masculine', 56089 3: 'feminine', 56090 4: 'masculine', 56091 5: 'masculine', 56092 6: 'feminine' 56093 }; 56094 56095 function getAdjectives(token, date, baseDate, options) { 56096 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](date, baseDate, options)) { 56097 return adjectivesThisWeek; 56098 } else if (token === 'lastWeek') { 56099 return adjectivesLastWeek; 56100 } else if (token === 'nextWeek') { 56101 return adjectivesNextWeek; 56102 } else { 56103 throw new Error("Cannot determine adjectives for token ".concat(token)); 56104 } 56105 } 56106 56107 function getAdjective(token, date, baseDate, options) { 56108 var day = date.getUTCDay(); 56109 var adjectives = getAdjectives(token, date, baseDate, options); 56110 var grammaticalGender = dayGrammaticalGender[day]; 56111 return adjectives[grammaticalGender]; 56112 } 56113 56114 function dayAndTimeWithAdjective(token, date, baseDate, options) { 56115 var adjective = getAdjective(token, date, baseDate, options); 56116 return "'".concat(adjective, "' eeee 'o' p"); 56117 } 56118 56119 var formatRelativeLocale = { 56120 lastWeek: dayAndTimeWithAdjective, 56121 yesterday: "'wczoraj o' p", 56122 today: "'dzisiaj o' p", 56123 tomorrow: "'jutro o' p", 56124 nextWeek: dayAndTimeWithAdjective, 56125 other: 'P' 56126 }; 56127 56128 function formatRelative(token, date, baseDate, options) { 56129 var format = formatRelativeLocale[token]; 56130 56131 if (typeof format === 'function') { 56132 return format(token, date, baseDate, options); 56133 } 56134 56135 return format; 56136 } 56137 56138 /***/ 56139 }), 56140 /* 739 */ 56141 /***/ (function (module, __webpack_exports__, __webpack_require__) { 56142 56143 "use strict"; 56144 /* harmony import */ 56145 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 56146 56147 56148 function ordinalNumber(dirtyNumber) { 56149 var number = Number(dirtyNumber); 56150 return String(number); 56151 } 56152 56153 var eraValues = { 56154 narrow: ['p.n.e.', 'n.e.'], 56155 abbreviated: ['p.n.e.', 'n.e.'], 56156 wide: ['przed naszÄ erÄ ', 'naszej ery'] 56157 }; 56158 var quarterValues = { 56159 narrow: ['1', '2', '3', '4'], 56160 abbreviated: ['I kw.', 'II kw.', 'III kw.', 'IV kw.'], 56161 wide: ['I kwartaÅ', 'II kwartaÅ', 'III kwartaÅ', 'IV kwartaÅ'] 56162 }; 56163 var monthValues = { 56164 narrow: ['S', 'L', 'M', 'K', 'M', 'C', 'L', 'S', 'W', 'P', 'L', 'G'], 56165 abbreviated: ['sty', 'lut', 'mar', 'kwi', 'maj', 'cze', 'lip', 'sie', 'wrz', 'paź', 'lis', 'gru'], 56166 wide: ['styczeÅ', 'luty', 'marzec', 'kwiecieÅ', 'maj', 'czerwiec', 'lipiec', 'sierpieÅ', 'wrzesieÅ', 'październik', 'listopad', 'grudzieÅ'] 56167 }; 56168 var monthFormattingValues = { 56169 narrow: ['s', 'l', 'm', 'k', 'm', 'c', 'l', 's', 'w', 'p', 'l', 'g'], 56170 abbreviated: ['sty', 'lut', 'mar', 'kwi', 'maj', 'cze', 'lip', 'sie', 'wrz', 'paź', 'lis', 'gru'], 56171 wide: ['stycznia', 'lutego', 'marca', 'kwietnia', 'maja', 'czerwca', 'lipca', 'sierpnia', 'wrzeÅnia', 'października', 'listopada', 'grudnia'] 56172 }; 56173 var dayValues = { 56174 narrow: ['N', 'P', 'W', 'Å', 'C', 'P', 'S'], 56175 short: ['nie', 'pon', 'wto', 'Åro', 'czw', 'piÄ ', 'sob'], 56176 abbreviated: ['niedz.', 'pon.', 'wt.', 'År.', 'czw.', 'pt.', 'sob.'], 56177 wide: ['niedziela', 'poniedziaÅek', 'wtorek', 'Åroda', 'czwartek', 'piÄ tek', 'sobota'] 56178 }; 56179 var dayFormattingValues = { 56180 narrow: ['n', 'p', 'w', 'Å', 'c', 'p', 's'], 56181 short: ['nie', 'pon', 'wto', 'Åro', 'czw', 'piÄ ', 'sob'], 56182 abbreviated: ['niedz.', 'pon.', 'wt.', 'År.', 'czw.', 'pt.', 'sob.'], 56183 wide: ['niedziela', 'poniedziaÅek', 'wtorek', 'Åroda', 'czwartek', 'piÄ tek', 'sobota'] 56184 }; 56185 var dayPeriodValues = { 56186 narrow: { 56187 am: 'a', 56188 pm: 'p', 56189 midnight: 'póÅn.', 56190 noon: 'poÅ', 56191 morning: 'rano', 56192 afternoon: 'popoÅ.', 56193 evening: 'wiecz.', 56194 night: 'noc' 56195 }, 56196 abbreviated: { 56197 am: 'AM', 56198 pm: 'PM', 56199 midnight: 'póÅnoc', 56200 noon: 'poÅudnie', 56201 morning: 'rano', 56202 afternoon: 'popoÅudnie', 56203 evening: 'wieczór', 56204 night: 'noc' 56205 }, 56206 wide: { 56207 am: 'AM', 56208 pm: 'PM', 56209 midnight: 'póÅnoc', 56210 noon: 'poÅudnie', 56211 morning: 'rano', 56212 afternoon: 'popoÅudnie', 56213 evening: 'wieczór', 56214 night: 'noc' 56215 } 56216 }; 56217 var dayPeriodFormattingValues = { 56218 narrow: { 56219 am: 'a', 56220 pm: 'p', 56221 midnight: 'o póÅn.', 56222 noon: 'w poÅ.', 56223 morning: 'rano', 56224 afternoon: 'po poÅ.', 56225 evening: 'wiecz.', 56226 night: 'w nocy' 56227 }, 56228 abbreviated: { 56229 am: 'AM', 56230 pm: 'PM', 56231 midnight: 'o póÅnocy', 56232 noon: 'w poÅudnie', 56233 morning: 'rano', 56234 afternoon: 'po poÅudniu', 56235 evening: 'wieczorem', 56236 night: 'w nocy' 56237 }, 56238 wide: { 56239 am: 'AM', 56240 pm: 'PM', 56241 midnight: 'o póÅnocy', 56242 noon: 'w poÅudnie', 56243 morning: 'rano', 56244 afternoon: 'po poÅudniu', 56245 evening: 'wieczorem', 56246 night: 'w nocy' 56247 } 56248 }; 56249 var localize = { 56250 ordinalNumber: ordinalNumber, 56251 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 56252 values: eraValues, 56253 defaultWidth: 'wide' 56254 }), 56255 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 56256 values: quarterValues, 56257 defaultWidth: 'wide', 56258 argumentCallback: function (quarter) { 56259 return Number(quarter) - 1; 56260 } 56261 }), 56262 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 56263 values: monthValues, 56264 defaultWidth: 'wide', 56265 formattingValues: monthFormattingValues, 56266 defaultFormattingWidth: 'wide' 56267 }), 56268 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 56269 values: dayValues, 56270 defaultWidth: 'wide', 56271 formattingValues: dayFormattingValues, 56272 defaultFormattingWidth: 'wide' 56273 }), 56274 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 56275 values: dayPeriodValues, 56276 defaultWidth: 'wide', 56277 formattingValues: dayPeriodFormattingValues, 56278 defaultFormattingWidth: 'wide' 56279 }) 56280 }; 56281 /* harmony default export */ 56282 __webpack_exports__["a"] = (localize); 56283 56284 /***/ 56285 }), 56286 /* 740 */ 56287 /***/ (function (module, __webpack_exports__, __webpack_require__) { 56288 56289 "use strict"; 56290 /* harmony import */ 56291 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 56292 /* harmony import */ 56293 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 56294 56295 56296 var matchOrdinalNumberPattern = /^(\d+)?/i; 56297 var parseOrdinalNumberPattern = /\d+/i; 56298 var matchEraPatterns = { 56299 narrow: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, 56300 abbreviated: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, 56301 wide: /^(przed\s*nasz(Ä |a)\s*er(Ä |a)|naszej\s*ery)/i 56302 }; 56303 var parseEraPatterns = { 56304 any: [/^p/i, /^n/i] 56305 }; 56306 var matchQuarterPatterns = { 56307 narrow: /^[1234]/i, 56308 abbreviated: /^(I|II|III|IV)\s*kw\.?/i, 56309 wide: /^(I|II|III|IV)\s*kwarta(Å|l)/i 56310 }; 56311 var parseQuarterPatterns = { 56312 narrow: [/1/i, /2/i, /3/i, /4/i], 56313 any: [/^I kw/i, /^II kw/i, /^III kw/i, /^IV kw/i] 56314 }; 56315 var matchMonthPatterns = { 56316 narrow: /^[slmkcwpg]/i, 56317 abbreviated: /^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i, 56318 wide: /^(stycznia|stycze(Å|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(Å|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(Å|n)|wrze(Å|s)nia|wrzesie(Å|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(Å|n))/i 56319 }; 56320 var parseMonthPatterns = { 56321 narrow: [/^s/i, /^l/i, /^m/i, /^k/i, /^m/i, /^c/i, /^l/i, /^s/i, /^w/i, /^p/i, /^l/i, /^g/i], 56322 any: [/^st/i, /^lu/i, /^mar/i, /^k/i, /^maj/i, /^c/i, /^lip/i, /^si/i, /^w/i, /^p/i, /^lis/i, /^g/i] 56323 }; 56324 var matchDayPatterns = { 56325 narrow: /^[npwÅcs]/i, 56326 short: /^(nie|pon|wto|(Å|s)ro|czw|pi(Ä |a)|sob)/i, 56327 abbreviated: /^(niedz|pon|wt|(Å|s)r|czw|pt|sob)\.?/i, 56328 wide: /^(niedziela|poniedzia(Å|l)ek|wtorek|(Å|s)roda|czwartek|pi(Ä |a)tek|sobota)/i 56329 }; 56330 var parseDayPatterns = { 56331 narrow: [/^n/i, /^p/i, /^w/i, /^Å/i, /^c/i, /^p/i, /^s/i], 56332 abbreviated: [/^n/i, /^po/i, /^w/i, /^(Å|s)r/i, /^c/i, /^pt/i, /^so/i], 56333 any: [/^n/i, /^po/i, /^w/i, /^(Å|s)r/i, /^c/i, /^pi/i, /^so/i] 56334 }; 56335 var matchDayPeriodPatterns = { 56336 narrow: /^(^a$|^p$|pó(Å|l)n\.?|o\s*pó(Å|l)n\.?|po(Å|l)\.?|w\s*po(Å|l)\.?|po\s*po(Å|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i, 56337 any: /^(am|pm|pó(Å|l)noc|o\s*pó(Å|l)nocy|po(Å|l)udnie|w\s*po(Å|l)udnie|popo(Å|l)udnie|po\s*po(Å|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i 56338 }; 56339 var parseDayPeriodPatterns = { 56340 narrow: { 56341 am: /^a$/i, 56342 pm: /^p$/i, 56343 midnight: /pó(Å|l)n/i, 56344 noon: /po(Å|l)/i, 56345 morning: /rano/i, 56346 afternoon: /po\s*po(Å|l)/i, 56347 evening: /wiecz/i, 56348 night: /noc/i 56349 }, 56350 any: { 56351 am: /^am/i, 56352 pm: /^pm/i, 56353 midnight: /pó(Å|l)n/i, 56354 noon: /po(Å|l)/i, 56355 morning: /rano/i, 56356 afternoon: /po\s*po(Å|l)/i, 56357 evening: /wiecz/i, 56358 night: /noc/i 56359 } 56360 }; 56361 var match = { 56362 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 56363 matchPattern: matchOrdinalNumberPattern, 56364 parsePattern: parseOrdinalNumberPattern, 56365 valueCallback: function (value) { 56366 return parseInt(value, 10); 56367 } 56368 }), 56369 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 56370 matchPatterns: matchEraPatterns, 56371 defaultMatchWidth: 'wide', 56372 parsePatterns: parseEraPatterns, 56373 defaultParseWidth: 'any' 56374 }), 56375 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 56376 matchPatterns: matchQuarterPatterns, 56377 defaultMatchWidth: 'wide', 56378 parsePatterns: parseQuarterPatterns, 56379 defaultParseWidth: 'any', 56380 valueCallback: function (index) { 56381 return index + 1; 56382 } 56383 }), 56384 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 56385 matchPatterns: matchMonthPatterns, 56386 defaultMatchWidth: 'wide', 56387 parsePatterns: parseMonthPatterns, 56388 defaultParseWidth: 'any' 56389 }), 56390 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 56391 matchPatterns: matchDayPatterns, 56392 defaultMatchWidth: 'wide', 56393 parsePatterns: parseDayPatterns, 56394 defaultParseWidth: 'any' 56395 }), 56396 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 56397 matchPatterns: matchDayPeriodPatterns, 56398 defaultMatchWidth: 'any', 56399 parsePatterns: parseDayPeriodPatterns, 56400 defaultParseWidth: 'any' 56401 }) 56402 }; 56403 /* harmony default export */ 56404 __webpack_exports__["a"] = (match); 56405 56406 /***/ 56407 }), 56408 /* 741 */ 56409 /***/ (function (module, __webpack_exports__, __webpack_require__) { 56410 56411 "use strict"; 56412 /* harmony import */ 56413 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(742); 56414 /* harmony import */ 56415 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(743); 56416 /* harmony import */ 56417 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(744); 56418 /* harmony import */ 56419 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(745); 56420 /* harmony import */ 56421 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(746); 56422 56423 56424 /** 56425 * @type {Locale} 56426 * @category Locales 56427 * @summary Portuguese locale. 56428 * @language Portuguese 56429 * @iso-639-2 por 56430 * @author Dário Freire [@dfreire]{@link https://github.com/dfreire} 56431 * @author Adrián de la Rosa [@adrm]{@link https://github.com/adrm} 56432 */ 56433 56434 var locale = { 56435 code: 'pt', 56436 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 56437 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 56438 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 56439 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 56440 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 56441 options: { 56442 weekStartsOn: 1 56443 /* Monday */ 56444 , 56445 firstWeekContainsDate: 4 56446 } 56447 }; 56448 /* harmony default export */ 56449 __webpack_exports__["a"] = (locale); 56450 56451 /***/ 56452 }), 56453 /* 742 */ 56454 /***/ (function (module, __webpack_exports__, __webpack_require__) { 56455 56456 "use strict"; 56457 /* harmony export (immutable) */ 56458 __webpack_exports__["a"] = formatDistance; 56459 var formatDistanceLocale = { 56460 lessThanXSeconds: { 56461 one: 'menos de um segundo', 56462 other: 'menos de {{count}} segundos' 56463 }, 56464 xSeconds: { 56465 one: '1 segundo', 56466 other: '{{count}} segundos' 56467 }, 56468 halfAMinute: 'meio minuto', 56469 lessThanXMinutes: { 56470 one: 'menos de um minuto', 56471 other: 'menos de {{count}} minutos' 56472 }, 56473 xMinutes: { 56474 one: '1 minuto', 56475 other: '{{count}} minutos' 56476 }, 56477 aboutXHours: { 56478 one: 'aproximadamente 1 hora', 56479 other: 'aproximadamente {{count}} horas' 56480 }, 56481 xHours: { 56482 one: '1 hora', 56483 other: '{{count}} horas' 56484 }, 56485 xDays: { 56486 one: '1 dia', 56487 other: '{{count}} dias' 56488 }, 56489 aboutXWeeks: { 56490 one: 'aproximadamente 1 mês', 56491 // TODO 56492 other: 'aproximadamente {{count}} meses' // TODO 56493 56494 }, 56495 xWeeks: { 56496 one: '1 mês', 56497 // TODO 56498 other: '{{count}} meses' // TODO 56499 56500 }, 56501 aboutXMonths: { 56502 one: 'aproximadamente 1 mês', 56503 other: 'aproximadamente {{count}} meses' 56504 }, 56505 xMonths: { 56506 one: '1 mês', 56507 other: '{{count}} meses' 56508 }, 56509 aboutXYears: { 56510 one: 'aproximadamente 1 ano', 56511 other: 'aproximadamente {{count}} anos' 56512 }, 56513 xYears: { 56514 one: '1 ano', 56515 other: '{{count}} anos' 56516 }, 56517 overXYears: { 56518 one: 'mais de 1 ano', 56519 other: 'mais de {{count}} anos' 56520 }, 56521 almostXYears: { 56522 one: 'quase 1 ano', 56523 other: 'quase {{count}} anos' 56524 } 56525 }; 56526 56527 function formatDistance(token, count, options) { 56528 options = options || {}; 56529 var result; 56530 56531 if (typeof formatDistanceLocale[token] === 'string') { 56532 result = formatDistanceLocale[token]; 56533 } else if (count === 1) { 56534 result = formatDistanceLocale[token].one; 56535 } else { 56536 result = formatDistanceLocale[token].other.replace('{{count}}', count); 56537 } 56538 56539 if (options.addSuffix) { 56540 if (options.comparison > 0) { 56541 return 'daqui a ' + result; 56542 } else { 56543 return 'há ' + result; 56544 } 56545 } 56546 56547 return result; 56548 } 56549 56550 /***/ 56551 }), 56552 /* 743 */ 56553 /***/ (function (module, __webpack_exports__, __webpack_require__) { 56554 56555 "use strict"; 56556 /* harmony import */ 56557 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 56558 56559 var dateFormats = { 56560 full: "EEEE, d 'de' MMMM 'de' y", 56561 long: "d 'de' MMMM 'de' y", 56562 medium: "d 'de' MMM 'de' y", 56563 short: 'dd/MM/y' 56564 }; 56565 var timeFormats = { 56566 full: 'HH:mm:ss zzzz', 56567 long: 'HH:mm:ss z', 56568 medium: 'HH:mm:ss', 56569 short: 'HH:mm' 56570 }; 56571 var dateTimeFormats = { 56572 full: "{{date}} 'à s' {{time}}", 56573 long: "{{date}} 'à s' {{time}}", 56574 medium: '{{date}}, {{time}}', 56575 short: '{{date}}, {{time}}' 56576 }; 56577 var formatLong = { 56578 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 56579 formats: dateFormats, 56580 defaultWidth: 'full' 56581 }), 56582 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 56583 formats: timeFormats, 56584 defaultWidth: 'full' 56585 }), 56586 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 56587 formats: dateTimeFormats, 56588 defaultWidth: 'full' 56589 }) 56590 }; 56591 /* harmony default export */ 56592 __webpack_exports__["a"] = (formatLong); 56593 56594 /***/ 56595 }), 56596 /* 744 */ 56597 /***/ (function (module, __webpack_exports__, __webpack_require__) { 56598 56599 "use strict"; 56600 /* harmony export (immutable) */ 56601 __webpack_exports__["a"] = formatRelative; 56602 var formatRelativeLocale = { 56603 lastWeek: "'na última' eeee 'à s' p", 56604 yesterday: "'ontem à s' p", 56605 today: "'hoje à s' p", 56606 tomorrow: "'amanhã à s' p", 56607 nextWeek: "eeee 'à s' p", 56608 other: 'P' 56609 }; 56610 56611 function formatRelative(token, _date, _baseDate, _options) { 56612 return formatRelativeLocale[token]; 56613 } 56614 56615 /***/ 56616 }), 56617 /* 745 */ 56618 /***/ (function (module, __webpack_exports__, __webpack_require__) { 56619 56620 "use strict"; 56621 /* harmony import */ 56622 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 56623 56624 56625 function ordinalNumber(dirtyNumber) { 56626 var number = Number(dirtyNumber); 56627 return number + 'º'; 56628 } 56629 56630 var eraValues = { 56631 narrow: ['aC', 'dC'], 56632 abbreviated: ['a.C.', 'd.C.'], 56633 wide: ['antes de Cristo', 'depois de Cristo'] 56634 }; 56635 var quarterValues = { 56636 narrow: ['1', '2', '3', '4'], 56637 abbreviated: ['T1', 'T2', 'T3', 'T4'], 56638 wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre'] 56639 }; 56640 var monthValues = { 56641 narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], 56642 abbreviated: ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez'], 56643 wide: ['janeiro', 'fevereiro', 'março', 'abril', 'maio', 'junho', 'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro'] 56644 }; 56645 var dayValues = { 56646 narrow: ['d', 's', 't', 'q', 'q', 's', 's'], 56647 short: ['dom', 'seg', 'ter', 'qua', 'qui', 'sex', 'sáb'], 56648 abbreviated: ['dom', 'seg', 'ter', 'qua', 'qui', 'sex', 'sáb'], 56649 wide: ['domingo', 'segunda-feira', 'terça-feira', 'quarta-feira', 'quinta-feira', 'sexta-feira', 'sábado'] 56650 }; 56651 var dayPeriodValues = { 56652 narrow: { 56653 am: 'AM', 56654 pm: 'PM', 56655 midnight: 'meia-noite', 56656 noon: 'meio-dia', 56657 morning: 'manhã', 56658 afternoon: 'tarde', 56659 evening: 'noite', 56660 night: 'madrugada' 56661 }, 56662 abbreviated: { 56663 am: 'AM', 56664 pm: 'PM', 56665 midnight: 'meia-noite', 56666 noon: 'meio-dia', 56667 morning: 'manhã', 56668 afternoon: 'tarde', 56669 evening: 'noite', 56670 night: 'madrugada' 56671 }, 56672 wide: { 56673 am: 'AM', 56674 pm: 'PM', 56675 midnight: 'meia-noite', 56676 noon: 'meio-dia', 56677 morning: 'manhã', 56678 afternoon: 'tarde', 56679 evening: 'noite', 56680 night: 'madrugada' 56681 } 56682 }; 56683 var formattingDayPeriodValues = { 56684 narrow: { 56685 am: 'AM', 56686 pm: 'PM', 56687 midnight: 'meia-noite', 56688 noon: 'meio-dia', 56689 morning: 'da manhã', 56690 afternoon: 'da tarde', 56691 evening: 'da noite', 56692 night: 'da madrugada' 56693 }, 56694 abbreviated: { 56695 am: 'AM', 56696 pm: 'PM', 56697 midnight: 'meia-noite', 56698 noon: 'meio-dia', 56699 morning: 'da manhã', 56700 afternoon: 'da tarde', 56701 evening: 'da noite', 56702 night: 'da madrugada' 56703 }, 56704 wide: { 56705 am: 'AM', 56706 pm: 'PM', 56707 midnight: 'meia-noite', 56708 noon: 'meio-dia', 56709 morning: 'da manhã', 56710 afternoon: 'da tarde', 56711 evening: 'da noite', 56712 night: 'da madrugada' 56713 } 56714 }; 56715 var localize = { 56716 ordinalNumber: ordinalNumber, 56717 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 56718 values: eraValues, 56719 defaultWidth: 'wide' 56720 }), 56721 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 56722 values: quarterValues, 56723 defaultWidth: 'wide', 56724 argumentCallback: function (quarter) { 56725 return Number(quarter) - 1; 56726 } 56727 }), 56728 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 56729 values: monthValues, 56730 defaultWidth: 'wide' 56731 }), 56732 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 56733 values: dayValues, 56734 defaultWidth: 'wide' 56735 }), 56736 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 56737 values: dayPeriodValues, 56738 defaultWidth: 'wide', 56739 formattingValues: formattingDayPeriodValues, 56740 defaultFormattingWidth: 'wide' 56741 }) 56742 }; 56743 /* harmony default export */ 56744 __webpack_exports__["a"] = (localize); 56745 56746 /***/ 56747 }), 56748 /* 746 */ 56749 /***/ (function (module, __webpack_exports__, __webpack_require__) { 56750 56751 "use strict"; 56752 /* harmony import */ 56753 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 56754 /* harmony import */ 56755 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 56756 56757 56758 var matchOrdinalNumberPattern = /^(\d+)(º|ª)?/i; 56759 var parseOrdinalNumberPattern = /\d+/i; 56760 var matchEraPatterns = { 56761 narrow: /^(ac|dc|a|d)/i, 56762 abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, 56763 wide: /^(antes de cristo|antes da era comum|depois de cristo|era comum)/i 56764 }; 56765 var parseEraPatterns = { 56766 any: [/^ac/i, /^dc/i], 56767 wide: [/^(antes de cristo|antes da era comum)/i, /^(depois de cristo|era comum)/i] 56768 }; 56769 var matchQuarterPatterns = { 56770 narrow: /^[1234]/i, 56771 abbreviated: /^T[1234]/i, 56772 wide: /^[1234](º|ª)? trimestre/i 56773 }; 56774 var parseQuarterPatterns = { 56775 any: [/1/i, /2/i, /3/i, /4/i] 56776 }; 56777 var matchMonthPatterns = { 56778 narrow: /^[jfmasond]/i, 56779 abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, 56780 wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i 56781 }; 56782 var parseMonthPatterns = { 56783 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 56784 any: [/^ja/i, /^f/i, /^mar/i, /^ab/i, /^mai/i, /^jun/i, /^jul/i, /^ag/i, /^s/i, /^o/i, /^n/i, /^d/i] 56785 }; 56786 var matchDayPatterns = { 56787 narrow: /^[dstq]/i, 56788 short: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, 56789 abbreviated: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, 56790 wide: /^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i 56791 }; 56792 var parseDayPatterns = { 56793 narrow: [/^d/i, /^s/i, /^t/i, /^q/i, /^q/i, /^s/i, /^s/i], 56794 any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[áa]/i] 56795 }; 56796 var matchDayPeriodPatterns = { 56797 narrow: /^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i, 56798 any: /^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i 56799 }; 56800 var parseDayPeriodPatterns = { 56801 any: { 56802 am: /^a/i, 56803 pm: /^p/i, 56804 midnight: /^meia/i, 56805 noon: /^meio/i, 56806 morning: /manh[ãa]/i, 56807 afternoon: /tarde/i, 56808 evening: /noite/i, 56809 night: /madrugada/i 56810 } 56811 }; 56812 var match = { 56813 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 56814 matchPattern: matchOrdinalNumberPattern, 56815 parsePattern: parseOrdinalNumberPattern, 56816 valueCallback: function (value) { 56817 return parseInt(value, 10); 56818 } 56819 }), 56820 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 56821 matchPatterns: matchEraPatterns, 56822 defaultMatchWidth: 'wide', 56823 parsePatterns: parseEraPatterns, 56824 defaultParseWidth: 'any' 56825 }), 56826 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 56827 matchPatterns: matchQuarterPatterns, 56828 defaultMatchWidth: 'wide', 56829 parsePatterns: parseQuarterPatterns, 56830 defaultParseWidth: 'any', 56831 valueCallback: function (index) { 56832 return index + 1; 56833 } 56834 }), 56835 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 56836 matchPatterns: matchMonthPatterns, 56837 defaultMatchWidth: 'wide', 56838 parsePatterns: parseMonthPatterns, 56839 defaultParseWidth: 'any' 56840 }), 56841 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 56842 matchPatterns: matchDayPatterns, 56843 defaultMatchWidth: 'wide', 56844 parsePatterns: parseDayPatterns, 56845 defaultParseWidth: 'any' 56846 }), 56847 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 56848 matchPatterns: matchDayPeriodPatterns, 56849 defaultMatchWidth: 'any', 56850 parsePatterns: parseDayPeriodPatterns, 56851 defaultParseWidth: 'any' 56852 }) 56853 }; 56854 /* harmony default export */ 56855 __webpack_exports__["a"] = (match); 56856 56857 /***/ 56858 }), 56859 /* 747 */ 56860 /***/ (function (module, __webpack_exports__, __webpack_require__) { 56861 56862 "use strict"; 56863 /* harmony import */ 56864 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(748); 56865 /* harmony import */ 56866 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(749); 56867 /* harmony import */ 56868 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(750); 56869 /* harmony import */ 56870 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(751); 56871 /* harmony import */ 56872 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(752); 56873 56874 56875 /** 56876 * @type {Locale} 56877 * @category Locales 56878 * @summary Portuguese locale (Brazil). 56879 * @language Portuguese 56880 * @iso-639-2 por 56881 * @author Lucas Duailibe [@duailibe]{@link https://github.com/duailibe} 56882 * @author Yago Carballo [@yagocarballo]{@link https://github.com/YagoCarballo} 56883 */ 56884 56885 var locale = { 56886 code: 'pt-BR', 56887 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 56888 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 56889 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 56890 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 56891 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 56892 options: { 56893 weekStartsOn: 0 56894 /* Sunday */ 56895 , 56896 firstWeekContainsDate: 1 56897 } 56898 }; 56899 /* harmony default export */ 56900 __webpack_exports__["a"] = (locale); 56901 56902 /***/ 56903 }), 56904 /* 748 */ 56905 /***/ (function (module, __webpack_exports__, __webpack_require__) { 56906 56907 "use strict"; 56908 /* harmony export (immutable) */ 56909 __webpack_exports__["a"] = formatDistance; 56910 var formatDistanceLocale = { 56911 lessThanXSeconds: { 56912 one: 'menos de um segundo', 56913 other: 'menos de {{count}} segundos' 56914 }, 56915 xSeconds: { 56916 one: '1 segundo', 56917 other: '{{count}} segundos' 56918 }, 56919 halfAMinute: 'meio minuto', 56920 lessThanXMinutes: { 56921 one: 'menos de um minuto', 56922 other: 'menos de {{count}} minutos' 56923 }, 56924 xMinutes: { 56925 one: '1 minuto', 56926 other: '{{count}} minutos' 56927 }, 56928 aboutXHours: { 56929 one: 'cerca de 1 hora', 56930 other: 'cerca de {{count}} horas' 56931 }, 56932 xHours: { 56933 one: '1 hora', 56934 other: '{{count}} horas' 56935 }, 56936 xDays: { 56937 one: '1 dia', 56938 other: '{{count}} dias' 56939 }, 56940 aboutXWeeks: { 56941 one: 'cerca de 1 mês', 56942 other: 'cerca de {{count}} meses' 56943 }, 56944 xWeeks: { 56945 one: '1 mês', 56946 other: '{{count}} meses' 56947 }, 56948 aboutXMonths: { 56949 one: 'cerca de 1 mês', 56950 other: 'cerca de {{count}} meses' 56951 }, 56952 xMonths: { 56953 one: '1 mês', 56954 other: '{{count}} meses' 56955 }, 56956 aboutXYears: { 56957 one: 'cerca de 1 ano', 56958 other: 'cerca de {{count}} anos' 56959 }, 56960 xYears: { 56961 one: '1 ano', 56962 other: '{{count}} anos' 56963 }, 56964 overXYears: { 56965 one: 'mais de 1 ano', 56966 other: 'mais de {{count}} anos' 56967 }, 56968 almostXYears: { 56969 one: 'quase 1 ano', 56970 other: 'quase {{count}} anos' 56971 } 56972 }; 56973 56974 function formatDistance(token, count, options) { 56975 options = options || {}; 56976 var result; 56977 56978 if (typeof formatDistanceLocale[token] === 'string') { 56979 result = formatDistanceLocale[token]; 56980 } else if (count === 1) { 56981 result = formatDistanceLocale[token].one; 56982 } else { 56983 result = formatDistanceLocale[token].other.replace('{{count}}', count); 56984 } 56985 56986 if (options.addSuffix) { 56987 if (options.comparison > 0) { 56988 return 'em ' + result; 56989 } else { 56990 return 'há ' + result; 56991 } 56992 } 56993 56994 return result; 56995 } 56996 56997 /***/ 56998 }), 56999 /* 749 */ 57000 /***/ (function (module, __webpack_exports__, __webpack_require__) { 57001 57002 "use strict"; 57003 /* harmony import */ 57004 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 57005 57006 var dateFormats = { 57007 full: "EEEE, d 'de' MMMM 'de' y", 57008 long: "d 'de' MMMM 'de' y", 57009 medium: 'd MMM y', 57010 short: 'dd/MM/yyyy' 57011 }; 57012 var timeFormats = { 57013 full: 'HH:mm:ss zzzz', 57014 long: 'HH:mm:ss z', 57015 medium: 'HH:mm:ss', 57016 short: 'HH:mm' 57017 }; 57018 var dateTimeFormats = { 57019 full: "{{date}} 'à s' {{time}}", 57020 long: "{{date}} 'à s' {{time}}", 57021 medium: '{{date}}, {{time}}', 57022 short: '{{date}}, {{time}}' 57023 }; 57024 var formatLong = { 57025 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 57026 formats: dateFormats, 57027 defaultWidth: 'full' 57028 }), 57029 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 57030 formats: timeFormats, 57031 defaultWidth: 'full' 57032 }), 57033 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 57034 formats: dateTimeFormats, 57035 defaultWidth: 'full' 57036 }) 57037 }; 57038 /* harmony default export */ 57039 __webpack_exports__["a"] = (formatLong); 57040 57041 /***/ 57042 }), 57043 /* 750 */ 57044 /***/ (function (module, __webpack_exports__, __webpack_require__) { 57045 57046 "use strict"; 57047 /* harmony export (immutable) */ 57048 __webpack_exports__["a"] = formatRelative; 57049 var formatRelativeLocale = { 57050 lastWeek: function (date, _baseDate, _options) { 57051 var weekday = date.getUTCDay(); 57052 var last = weekday === 0 || weekday === 6 ? 'último' : 'última'; 57053 return "'" + last + "' eeee 'à s' p"; 57054 }, 57055 yesterday: "'ontem à s' p", 57056 today: "'hoje à s' p", 57057 tomorrow: "'amanhã à s' p", 57058 nextWeek: "eeee 'à s' p", 57059 other: 'P' 57060 }; 57061 57062 function formatRelative(token, date, baseDate, options) { 57063 var format = formatRelativeLocale[token]; 57064 57065 if (typeof format === 'function') { 57066 return format(date, baseDate, options); 57067 } 57068 57069 return format; 57070 } 57071 57072 /***/ 57073 }), 57074 /* 751 */ 57075 /***/ (function (module, __webpack_exports__, __webpack_require__) { 57076 57077 "use strict"; 57078 /* harmony import */ 57079 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 57080 57081 var eraValues = { 57082 narrow: ['AC', 'DC'], 57083 abbreviated: ['AC', 'DC'], 57084 wide: ['antes de cristo', 'depois de cristo'] 57085 }; 57086 var quarterValues = { 57087 narrow: ['1', '2', '3', '4'], 57088 abbreviated: ['T1', 'T2', 'T3', 'T4'], 57089 wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre'] 57090 }; 57091 var monthValues = { 57092 narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], 57093 abbreviated: ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez'], 57094 wide: ['janeiro', 'fevereiro', 'março', 'abril', 'maio', 'junho', 'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro'] 57095 }; 57096 var dayValues = { 57097 narrow: ['do', '2ª', '3ª', '4ª', '5ª', '6ª', 'sá'], 57098 short: ['do', '2ª', '3ª', '4ª', '5ª', '6ª', 'sá'], 57099 abbreviated: ['dom', 'seg', 'ter', 'qua', 'qui', 'sex', 'sáb'], 57100 wide: ['domingo', 'segunda', 'terça', 'quarta', 'quinta', 'sexta', 'sábado'] 57101 }; 57102 var dayPeriodValues = { 57103 narrow: { 57104 am: 'a', 57105 pm: 'p', 57106 midnight: 'mn', 57107 noon: 'md', 57108 morning: 'manhã', 57109 afternoon: 'tarde', 57110 evening: 'tarde', 57111 night: 'noite' 57112 }, 57113 abbreviated: { 57114 am: 'AM', 57115 pm: 'PM', 57116 midnight: 'meia-noite', 57117 noon: 'meio-dia', 57118 morning: 'manhã', 57119 afternoon: 'tarde', 57120 evening: 'tarde', 57121 night: 'noite' 57122 }, 57123 wide: { 57124 am: 'a.m.', 57125 pm: 'p.m.', 57126 midnight: 'meia-noite', 57127 noon: 'meio-dia', 57128 morning: 'manhã', 57129 afternoon: 'tarde', 57130 evening: 'tarde', 57131 night: 'noite' 57132 } 57133 }; 57134 var formattingDayPeriodValues = { 57135 narrow: { 57136 am: 'a', 57137 pm: 'p', 57138 midnight: 'mn', 57139 noon: 'md', 57140 morning: 'da manhã', 57141 afternoon: 'da tarde', 57142 evening: 'da tarde', 57143 night: 'da noite' 57144 }, 57145 abbreviated: { 57146 am: 'AM', 57147 pm: 'PM', 57148 midnight: 'meia-noite', 57149 noon: 'meio-dia', 57150 morning: 'da manhã', 57151 afternoon: 'da tarde', 57152 evening: 'da tarde', 57153 night: 'da noite' 57154 }, 57155 wide: { 57156 am: 'a.m.', 57157 pm: 'p.m.', 57158 midnight: 'meia-noite', 57159 noon: 'meio-dia', 57160 morning: 'da manhã', 57161 afternoon: 'da tarde', 57162 evening: 'da tarde', 57163 night: 'da noite' 57164 } 57165 }; 57166 57167 function ordinalNumber(dirtyNumber, dirtyOptions) { 57168 var number = Number(dirtyNumber); 57169 var options = dirtyOptions || {}; 57170 var unit = String(options.unit); 57171 57172 if (unit === 'week' || unit === 'isoWeek') { 57173 return number + 'ª'; 57174 } 57175 57176 return number + 'º'; 57177 } 57178 57179 var localize = { 57180 ordinalNumber: ordinalNumber, 57181 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 57182 values: eraValues, 57183 defaultWidth: 'wide' 57184 }), 57185 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 57186 values: quarterValues, 57187 defaultWidth: 'wide', 57188 argumentCallback: function (quarter) { 57189 return Number(quarter) - 1; 57190 } 57191 }), 57192 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 57193 values: monthValues, 57194 defaultWidth: 'wide' 57195 }), 57196 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 57197 values: dayValues, 57198 defaultWidth: 'wide' 57199 }), 57200 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 57201 values: dayPeriodValues, 57202 defaultWidth: 'wide', 57203 formattingValues: formattingDayPeriodValues, 57204 defaultFormattingWidth: 'wide' 57205 }) 57206 }; 57207 /* harmony default export */ 57208 __webpack_exports__["a"] = (localize); 57209 57210 /***/ 57211 }),
57212 /* 752 */ 57213 /***/ (function (module, __webpack_exports__, __webpack_require__) { 57214 57215 "use strict"; 57216 /* harmony import */ 57217 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__ = __webpack_require__(5); 57218 /* harmony import */ 57219 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 57220 57221 57222 var matchOrdinalNumberPattern = /^(\d+)[ºªo]?/i; 57223 var parseOrdinalNumberPattern = /\d+/i; 57224 var matchEraPatterns = { 57225 narrow: /^(ac|dc|a|d)/i, 57226 abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i, 57227 wide: /^(antes de cristo|depois de cristo)/i 57228 }; 57229 var parseEraPatterns = { 57230 any: [/^ac/i, /^dc/i], 57231 wide: [/^antes de cristo/i, /^depois de cristo/i] 57232 }; 57233 var matchQuarterPatterns = { 57234 narrow: /^[1234]/i, 57235 abbreviated: /^T[1234]/i, 57236 wide: /^[1234](º)? trimestre/i 57237 }; 57238 var parseQuarterPatterns = { 57239 any: [/1/i, /2/i, /3/i, /4/i] 57240 }; 57241 var matchMonthPatterns = { 57242 narrow: /^[jfmajsond]/i, 57243 abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, 57244 wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i 57245 }; 57246 var parseMonthPatterns = { 57247 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 57248 any: [/^ja/i, /^fev/i, /^mar/i, /^abr/i, /^mai/i, /^jun/i, /^jul/i, /^ago/i, /^set/i, /^out/i, /^nov/i, /^dez/i] 57249 }; 57250 var matchDayPatterns = { 57251 narrow: /^(dom|[23456]ª?|s[aá]b)/i, 57252 short: /^(dom|[23456]ª?|s[aá]b)/i, 57253 abbreviated: /^(dom|seg|ter|qua|qui|sex|s[aá]b)/i, 57254 wide: /^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i 57255 }; 57256 var parseDayPatterns = { 57257 short: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i], 57258 narrow: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i], 57259 any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[aá]b/i] 57260 }; 57261 var matchDayPeriodPatterns = { 57262 narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i, 57263 any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(d
vendor: 10,737 bytes, lines 57263-57508
57263a) (manhã|tarde|noite))/i 57264 }; 57265 var parseDayPeriodPatterns = { 57266 any: { 57267 am: /^a/i, 57268 pm: /^p/i, 57269 midnight: /^mn|^meia[-\s]noite/i, 57270 noon: /^md|^meio[-\s]dia/i, 57271 morning: /manhã/i, 57272 afternoon: /tarde/i, 57273 evening: /tarde/i, 57274 night: /noite/i 57275 } 57276 }; 57277 var match = { 57278 ordinalNumber: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 57279 matchPattern: matchOrdinalNumberPattern, 57280 parsePattern: parseOrdinalNumberPattern, 57281 valueCallback: function (value) { 57282 return parseInt(value, 10); 57283 } 57284 }), 57285 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 57286 matchPatterns: matchEraPatterns, 57287 defaultMatchWidth: 'wide', 57288 parsePatterns: parseEraPatterns, 57289 defaultParseWidth: 'any' 57290 }), 57291 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 57292 matchPatterns: matchQuarterPatterns, 57293 defaultMatchWidth: 'wide', 57294 parsePatterns: parseQuarterPatterns, 57295 defaultParseWidth: 'any', 57296 valueCallback: function (index) { 57297 return index + 1; 57298 } 57299 }), 57300 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 57301 matchPatterns: matchMonthPatterns, 57302 defaultMatchWidth: 'wide', 57303 parsePatterns: parseMonthPatterns, 57304 defaultParseWidth: 'any' 57305 }), 57306 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 57307 matchPatterns: matchDayPatterns, 57308 defaultMatchWidth: 'wide', 57309 parsePatterns: parseDayPatterns, 57310 defaultParseWidth: 'any' 57311 }), 57312 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 57313 matchPatterns: matchDayPeriodPatterns, 57314 defaultMatchWidth: 'any', 57315 parsePatterns: parseDayPeriodPatterns, 57316 defaultParseWidth: 'any' 57317 }) 57318 }; 57319 /* harmony default export */ 57320 __webpack_exports__["a"] = (match); 57321 57322 /***/ 57323 }), 57324 /* 753 */ 57325 /***/ (function (module, __webpack_exports__, __webpack_require__) { 57326 57327 "use strict"; 57328 /* harmony import */ 57329 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(754); 57330 /* harmony import */ 57331 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(755); 57332 /* harmony import */ 57333 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(756); 57334 /* harmony import */ 57335 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(757); 57336 /* harmony import */ 57337 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(758); 57338 57339 57340 /** 57341 * @type {Locale} 57342 * @category Locales 57343 * @summary Romanian locale. 57344 * @language Romanian 57345 * @iso-639-2 ron 57346 * @author Sergiu Munteanu [@jsergiu]{@link https://github.com/jsergiu} 57347 * @author Adrian Ocneanu [@aocneanu]{@link https://github.com/aocneanu} 57348 * @author Mihai Ocneanu [@gandesc]{@link https://github.com/gandesc} 57349 */ 57350 57351 var locale = { 57352 code: 'ro', 57353 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 57354 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 57355 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 57356 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 57357 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 57358 options: { 57359 weekStartsOn: 1 57360 /* Monday */ 57361 , 57362 firstWeekContainsDate: 1 57363 } 57364 }; 57365 /* harmony default export */ 57366 __webpack_exports__["a"] = (locale); 57367 57368 /***/ 57369 }), 57370 /* 754 */ 57371 /***/ (function (module, __webpack_exports__, __webpack_require__) { 57372 57373 "use strict"; 57374 /* harmony export (immutable) */ 57375 __webpack_exports__["a"] = formatDistance; 57376 var formatDistanceLocale = { 57377 lessThanXSeconds: { 57378 one: 'mai puÈin de o secundÄ', 57379 other: 'mai puÈin de {{count}} secunde' 57380 }, 57381 xSeconds: { 57382 one: '1 secundÄ', 57383 other: '{{count}} secunde' 57384 }, 57385 halfAMinute: 'jumÄtate de minut', 57386 lessThanXMinutes: { 57387 one: 'mai puÈin de un minut', 57388 other: 'mai puÈin de {{count}} minute' 57389 }, 57390 xMinutes: { 57391 one: '1 minut', 57392 other: '{{count}} minute' 57393 }, 57394 aboutXHours: { 57395 one: 'circa 1 orÄ', 57396 other: 'circa {{count}} ore' 57397 }, 57398 xHours: { 57399 one: '1 orÄ', 57400 other: '{{count}} ore' 57401 }, 57402 xDays: { 57403 one: '1 zi', 57404 other: '{{count}} zile' 57405 }, 57406 aboutXWeeks: { 57407 one: 'circa o sÄptÄmânÄ', 57408 other: 'circa {{count}} sÄptÄmâni' 57409 }, 57410 xWeeks: { 57411 one: '1 sÄptÄmânÄ', 57412 other: '{{count}} sÄptÄmâni' 57413 }, 57414 aboutXMonths: { 57415 one: 'circa 1 lunÄ', 57416 other: 'circa {{count}} luni' 57417 }, 57418 xMonths: { 57419 one: '1 lunÄ', 57420 other: '{{count}} luni' 57421 }, 57422 aboutXYears: { 57423 one: 'circa 1 an', 57424 other: 'circa {{count}} ani' 57425 }, 57426 xYears: { 57427 one: '1 an', 57428 other: '{{count}} ani' 57429 }, 57430 overXYears: { 57431 one: 'peste 1 an', 57432 other: 'peste {{count}} ani' 57433 }, 57434 almostXYears: { 57435 one: 'aproape 1 an', 57436 other: 'aproape {{count}} ani' 57437 } 57438 }; 57439 57440 function formatDistance(token, count, options) { 57441 options = options || {}; 57442 var result; 57443 57444 if (typeof formatDistanceLocale[token] === 'string') { 57445 result = formatDistanceLocale[token]; 57446 } else if (count === 1) { 57447 result = formatDistanceLocale[token].one; 57448 } else { 57449 result = formatDistanceLocale[token].other.replace('{{count}}', count); 57450 } 57451 57452 if (options.addSuffix) { 57453 if (options.comparison > 0) { 57454 return 'în ' + result; 57455 } else { 57456 return result + ' în urmÄ'; 57457 } 57458 } 57459 57460 return result; 57461 } 57462 57463 /***/ 57464 }), 57465 /* 755 */ 57466 /***/ (function (module, __webpack_exports__, __webpack_require__) { 57467 57468 "use strict"; 57469 /* harmony import */ 57470 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 57471 57472 var dateFormats = { 57473 full: 'EEEE, d MMMM yyyy', 57474 long: 'd MMMM yyyy', 57475 medium: 'd MMM yyyy', 57476 short: 'dd/MM/yyyy' 57477 }; 57478 var timeFormats = { 57479 full: 'HH:mm:ss zzzz', 57480 long: 'HH:mm:ss z', 57481 medium: 'HH:mm:ss', 57482 short: 'HH:mm' 57483 }; 57484 var dateTimeFormats = { 57485 full: "{{date}} 'la' {{time}}", 57486 long: "{{date}} 'la' {{time}}", 57487 medium: '{{date}}, {{time}}', 57488 short: '{{date}}, {{time}}' 57489 }; 57490 var formatLong = { 57491 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 57492 formats: dateFormats, 57493 defaultWidth: 'full' 57494 }), 57495 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 57496 formats: timeFormats, 57497 defaultWidth: 'full' 57498 }), 57499 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 57500 formats: dateTimeFormats, 57501 defaultWidth: 'full' 57502 }) 57503 }; 57504 /* harmony default export */ 57505 __webpack_exports__["a"] = (formatLong); 57506 57507 /***/ 57508 }),
57509 /* 756 */ 57510 /***/ (function (module, __webpack_exports__, __webpack_require__) { 57511 57512 "use strict"; 57513 /* harmony export (immutable) */ 57514 __webpack_exports__["a"] = formatRelative; 57515 var formatRelativeLocale = { 57516 lastWeek: "eeee 'trecutÄ la' p", 57517 yesterday: "'ieri la' p", 57518 today: "'astÄzi la' p", 57519 tomorrow: "'mâine la' p", 57520 nextWeek: "eeee 'viitoare la' p", 57521 other: 'P' 57522 }; 57523 57524 function formatRelative(token, _date, _baseDate, _options) { 57525 return formatRelativeLocale[token]; 57526 } 57527 57528 /***/ 57529 }), 57530 /* 757 */ 57531 /***/ (function (module, __webpack_exports__, __webpack_require__) { 57532 57533 "use strict"; 57534 /* harmony import */ 57535 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 57536 57537 var eraValues = { 57538 narrow: ['Ã', 'D'], 57539 abbreviated: ['Ã.d.C.', 'D.C.'], 57540 wide: ['Ãnainte de Cristos', 'DupÄ Cristos'] 57541 }; 57542 var quarterValues = { 57543 narrow: ['1', '2', '3', '4'], 57544 abbreviated: ['T1', 'T2', 'T3', 'T4'], 57545 wide: ['primul trimestru', 'al doilea trimestru', 'al treilea trimestru', 'al patrulea trimestru'] 57546 }; 57547 var monthValues = { 57548 narrow: ['I', 'F', 'M', 'A', 'M', 'I', 'I', 'A', 'S', 'O', 'N', 'D'], 57549 abbreviated: ['ian', 'feb', 'mar', 'apr', 'mai', 'iun', 'iul', 'aug', 'sep', 'oct', 'noi', 'dec'], 57550 wide: ['ianuarie', 'februarie', 'martie', 'aprilie', 'mai', 'iunie', 'iulie', 'august', 'septembrie', 'octombrie', 'noiembrie', 'decembrie'] 57551 }; 57552 var dayValues = { 57553 narrow: ['d', 'l', 'm', 'm', 'j', 'v', 's'], 57554 short: ['du', 'lu', 'ma', 'mi', 'jo', 'vi', 'sâ'], 57555 abbreviated: ['dum', 'lun', 'mar', 'mie', 'joi', 'vin', 'sâm'], 57556 wide: ['duminicÄ', 'luni', 'marÈi', 'miercuri', 'joi', 'vineri', 'sâmbÄtÄ'] 57557 }; 57558 var dayPeriodValues = { 57559 narrow: { 57560 am: 'a', 57561 pm: 'p', 57562 midnight: 'mn', 57563 noon: 'ami', 57564 morning: 'dim', 57565 afternoon: 'da', 57566 evening: 's', 57567 night: 'n' 57568 }, 57569 abbreviated: { 57570 am: 'AM', 57571 pm: 'PM', 57572 midnight: 'miezul nopÈii', 57573 noon: 'amiazÄ', 57574 morning: 'dimineaÈÄ', 57575 afternoon: 'dupÄ-amiazÄ', 57576 evening: 'searÄ', 57577 night: 'noapte' 57578 }, 57579 wide: { 57580 am: 'a.m.', 57581 pm: 'p.m.', 57582 midnight: 'miezul nopÈii', 57583 noon: 'amiazÄ', 57584 morning: 'dimineaÈÄ', 57585 afternoon: 'dupÄ-amiazÄ', 57586 evening: 'searÄ', 57587 night: 'noapte' 57588 } 57589 }; 57590 var formattingDayPeriodValues = { 57591 narrow: { 57592 am: 'a', 57593 pm: 'p', 57594 midnight: 'mn', 57595 noon: 'amiazÄ', 57596 morning: 'dimineaÈÄ', 57597 afternoon: 'dupÄ-amiazÄ', 57598 evening: 'searÄ', 57599 night: 'noapte' 57600 }, 57601 abbreviated: { 57602 am: 'AM', 57603 pm: 'PM', 57604 midnight: 'miezul nopÈii', 57605 noon: 'amiazÄ',
vendor: 75,032 bytes, lines 57606-59199
57606 morning: 'dimineaÈÄ', 57607 afternoon: 'dupÄ-amiazÄ', 57608 evening: 'searÄ', 57609 night: 'noapte' 57610 }, 57611 wide: { 57612 am: 'a.m.', 57613 pm: 'p.m.', 57614 midnight: 'miezul nopÈii', 57615 noon: 'amiazÄ', 57616 morning: 'dimineaÈÄ', 57617 afternoon: 'dupÄ-amiazÄ', 57618 evening: 'searÄ', 57619 night: 'noapte' 57620 } 57621 }; 57622 57623 function ordinalNumber(dirtyNumber) { 57624 var number = Number(dirtyNumber); 57625 return String(number); 57626 } 57627 57628 var localize = { 57629 ordinalNumber: ordinalNumber, 57630 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 57631 values: eraValues, 57632 defaultWidth: 'wide' 57633 }), 57634 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 57635 values: quarterValues, 57636 defaultWidth: 'wide', 57637 argumentCallback: function (quarter) { 57638 return Number(quarter) - 1; 57639 } 57640 }), 57641 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 57642 values: monthValues, 57643 defaultWidth: 'wide' 57644 }), 57645 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 57646 values: dayValues, 57647 defaultWidth: 'wide' 57648 }), 57649 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 57650 values: dayPeriodValues, 57651 defaultWidth: 'wide', 57652 formattingValues: formattingDayPeriodValues, 57653 defaultFormattingWidth: 'wide' 57654 }) 57655 }; 57656 /* harmony default export */ 57657 __webpack_exports__["a"] = (localize); 57658 57659 /***/ 57660 }), 57661 /* 758 */ 57662 /***/ (function (module, __webpack_exports__, __webpack_require__) { 57663 57664 "use strict"; 57665 /* harmony import */ 57666 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 57667 /* harmony import */ 57668 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 57669 57670 57671 var matchOrdinalNumberPattern = /^(\d+)?/i; 57672 var parseOrdinalNumberPattern = /\d+/i; 57673 var matchEraPatterns = { 57674 narrow: /^(Ã|D)/i, 57675 abbreviated: /^(Ã\.?\s?d\.?\s?C\.?|Ã\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i, 57676 wide: /^(Ãnainte de Cristos|Ãnaintea erei noastre|DupÄ Cristos|Era noastrÄ)/i 57677 }; 57678 var parseEraPatterns = { 57679 any: [/^ÃC/i, /^DC/i], 57680 wide: [/^(Ãnainte de Cristos|Ãnaintea erei noastre)/i, /^(DupÄ Cristos|Era noastrÄ)/i] 57681 }; 57682 var matchQuarterPatterns = { 57683 narrow: /^[1234]/i, 57684 abbreviated: /^T[1234]/i, 57685 wide: /^trimestrul [1234]/i 57686 }; 57687 var parseQuarterPatterns = { 57688 any: [/1/i, /2/i, /3/i, /4/i] 57689 }; 57690 var matchMonthPatterns = { 57691 narrow: /^[ifmaasond]/i, 57692 abbreviated: /^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i, 57693 wide: /^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i 57694 }; 57695 var parseMonthPatterns = { 57696 narrow: [/^i/i, /^f/i, /^m/i, /^a/i, /^m/i, /^i/i, /^i/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 57697 any: [/^ia/i, /^f/i, /^mar/i, /^ap/i, /^mai/i, /^iun/i, /^iul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] 57698 }; 57699 var matchDayPatterns = { 57700 narrow: /^[dlmjvs]/i, 57701 short: /^(d|l|ma|mi|j|v|s)/i, 57702 abbreviated: /^(dum|lun|mar|mie|jo|vi|sâ)/i, 57703 wide: /^(duminica|luni|marÅ£i|miercuri|joi|vineri|sâmbÄtÄ)/i 57704 }; 57705 var parseDayPatterns = { 57706 narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], 57707 any: [/^d/i, /^l/i, /^ma/i, /^mi/i, /^j/i, /^v/i, /^s/i] 57708 }; 57709 var matchDayPeriodPatterns = { 57710 narrow: /^(a|p|mn|a|(dimineaÅ£a|dupÄ-amiaza|seara|noaptea))/i, 57711 any: /^([ap]\.?\s?m\.?|miezul nopÈii|amiaza|(dimineaÅ£a|dupÄ-amiaza|seara|noaptea))/i 57712 }; 57713 var parseDayPeriodPatterns = { 57714 any: { 57715 am: /^a/i, 57716 pm: /^p/i, 57717 midnight: /^mn/i, 57718 noon: /amiaza/i, 57719 morning: /dimineaÅ£a/i, 57720 afternoon: /dupÄ-amiaza/i, 57721 evening: /seara/i, 57722 night: /noaptea/i 57723 } 57724 }; 57725 var match = { 57726 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 57727 matchPattern: matchOrdinalNumberPattern, 57728 parsePattern: parseOrdinalNumberPattern, 57729 valueCallback: function (value) { 57730 return parseInt(value, 10); 57731 } 57732 }), 57733 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 57734 matchPatterns: matchEraPatterns, 57735 defaultMatchWidth: 'wide', 57736 parsePatterns: parseEraPatterns, 57737 defaultParseWidth: 'any' 57738 }), 57739 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 57740 matchPatterns: matchQuarterPatterns, 57741 defaultMatchWidth: 'wide', 57742 parsePatterns: parseQuarterPatterns, 57743 defaultParseWidth: 'any', 57744 valueCallback: function (index) { 57745 return index + 1; 57746 } 57747 }), 57748 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 57749 matchPatterns: matchMonthPatterns, 57750 defaultMatchWidth: 'wide', 57751 parsePatterns: parseMonthPatterns, 57752 defaultParseWidth: 'any' 57753 }), 57754 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 57755 matchPatterns: matchDayPatterns, 57756 defaultMatchWidth: 'wide', 57757 parsePatterns: parseDayPatterns, 57758 defaultParseWidth: 'any' 57759 }), 57760 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 57761 matchPatterns: matchDayPeriodPatterns, 57762 defaultMatchWidth: 'any', 57763 parsePatterns: parseDayPeriodPatterns, 57764 defaultParseWidth: 'any' 57765 }) 57766 }; 57767 /* harmony default export */ 57768 __webpack_exports__["a"] = (match); 57769 57770 /***/ 57771 }), 57772 /* 759 */ 57773 /***/ (function (module, __webpack_exports__, __webpack_require__) { 57774 57775 "use strict"; 57776 /* harmony import */ 57777 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(760); 57778 /* harmony import */ 57779 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(761); 57780 /* harmony import */ 57781 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(762); 57782 /* harmony import */ 57783 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(763); 57784 /* harmony import */ 57785 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(764); 57786 57787 57788 /** 57789 * @type {Locale} 57790 * @category Locales 57791 * @summary Russian locale. 57792 * @language Russian 57793 * @iso-639-2 rus 57794 * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp} 57795 * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss} 57796 */ 57797 57798 var locale = { 57799 code: 'ru', 57800 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 57801 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 57802 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 57803 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 57804 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 57805 options: { 57806 weekStartsOn: 1 57807 /* Monday */ 57808 , 57809 firstWeekContainsDate: 1 57810 } 57811 }; 57812 /* harmony default export */ 57813 __webpack_exports__["a"] = (locale); 57814 57815 /***/ 57816 }), 57817 /* 760 */ 57818 /***/ (function (module, __webpack_exports__, __webpack_require__) { 57819 57820 "use strict"; 57821 /* harmony export (immutable) */ 57822 __webpack_exports__["a"] = formatDistance; 57823 57824 function declension(scheme, count) { 57825 // scheme for count=1 exists 57826 if (scheme.one !== undefined && count === 1) { 57827 return scheme.one; 57828 } 57829 57830 var rem10 = count % 10; 57831 var rem100 = count % 100; // 1, 21, 31, ... 57832 57833 if (rem10 === 1 && rem100 !== 11) { 57834 return scheme.singularNominative.replace('{{count}}', count); // 2, 3, 4, 22, 23, 24, 32 ... 57835 } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { 57836 return scheme.singularGenitive.replace('{{count}}', count); // 5, 6, 7, 8, 9, 10, 11, ... 57837 } else { 57838 return scheme.pluralGenitive.replace('{{count}}', count); 57839 } 57840 } 57841 57842 function buildLocalizeTokenFn(scheme) { 57843 return function (count, options) { 57844 if (options.addSuffix) { 57845 if (options.comparison > 0) { 57846 if (scheme.future) { 57847 return declension(scheme.future, count); 57848 } else { 57849 return 'ÑеÑез ' + declension(scheme.regular, count); 57850 } 57851 } else { 57852 if (scheme.past) { 57853 return declension(scheme.past, count); 57854 } else { 57855 return declension(scheme.regular, count) + ' назад'; 57856 } 57857 } 57858 } else { 57859 return declension(scheme.regular, count); 57860 } 57861 }; 57862 } 57863 57864 var formatDistanceLocale = { 57865 lessThanXSeconds: buildLocalizeTokenFn({ 57866 regular: { 57867 one: 'менÑÑе ÑекÑндÑ', 57868 singularNominative: 'менÑÑе {{count}} ÑекÑндÑ', 57869 singularGenitive: 'менÑÑе {{count}} ÑекÑнд', 57870 pluralGenitive: 'менÑÑе {{count}} ÑекÑнд' 57871 }, 57872 future: { 57873 one: 'менÑÑе, Ñем ÑеÑез ÑекÑндÑ', 57874 singularNominative: 'менÑÑе, Ñем ÑеÑез {{count}} ÑекÑндÑ', 57875 singularGenitive: 'менÑÑе, Ñем ÑеÑез {{count}} ÑекÑндÑ', 57876 pluralGenitive: 'менÑÑе, Ñем ÑеÑез {{count}} ÑекÑнд' 57877 } 57878 }), 57879 xSeconds: buildLocalizeTokenFn({ 57880 regular: { 57881 singularNominative: '{{count}} ÑекÑнда', 57882 singularGenitive: '{{count}} ÑекÑндÑ', 57883 pluralGenitive: '{{count}} ÑекÑнд' 57884 }, 57885 past: { 57886 singularNominative: '{{count}} ÑекÑÐ½Ð´Ñ Ð½Ð°Ð·Ð°Ð´', 57887 singularGenitive: '{{count}} ÑекÑÐ½Ð´Ñ Ð½Ð°Ð·Ð°Ð´', 57888 pluralGenitive: '{{count}} ÑекÑнд назад' 57889 }, 57890 future: { 57891 singularNominative: 'ÑеÑез {{count}} ÑекÑндÑ', 57892 singularGenitive: 'ÑеÑез {{count}} ÑекÑндÑ', 57893 pluralGenitive: 'ÑеÑез {{count}} ÑекÑнд' 57894 } 57895 }), 57896 halfAMinute: function (_, options) { 57897 if (options.addSuffix) { 57898 if (options.comparison > 0) { 57899 return 'ÑеÑез полминÑÑÑ'; 57900 } else { 57901 return 'полминÑÑÑ Ð½Ð°Ð·Ð°Ð´'; 57902 } 57903 } 57904 57905 return 'полминÑÑÑ'; 57906 }, 57907 lessThanXMinutes: buildLocalizeTokenFn({ 57908 regular: { 57909 one: 'менÑÑе минÑÑÑ', 57910 singularNominative: 'менÑÑе {{count}} минÑÑÑ', 57911 singularGenitive: 'менÑÑе {{count}} минÑÑ', 57912 pluralGenitive: 'менÑÑе {{count}} минÑÑ' 57913 }, 57914 future: { 57915 one: 'менÑÑе, Ñем ÑеÑез минÑÑÑ', 57916 singularNominative: 'менÑÑе, Ñем ÑеÑез {{count}} минÑÑÑ', 57917 singularGenitive: 'менÑÑе, Ñем ÑеÑез {{count}} минÑÑÑ', 57918 pluralGenitive: 'менÑÑе, Ñем ÑеÑез {{count}} минÑÑ' 57919 } 57920 }), 57921 xMinutes: buildLocalizeTokenFn({ 57922 regular: { 57923 singularNominative: '{{count}} минÑÑа', 57924 singularGenitive: '{{count}} минÑÑÑ', 57925 pluralGenitive: '{{count}} минÑÑ' 57926 }, 57927 past: { 57928 singularNominative: '{{count}} минÑÑÑ Ð½Ð°Ð·Ð°Ð´', 57929 singularGenitive: '{{count}} минÑÑÑ Ð½Ð°Ð·Ð°Ð´', 57930 pluralGenitive: '{{count}} минÑÑ Ð½Ð°Ð·Ð°Ð´' 57931 }, 57932 future: { 57933 singularNominative: 'ÑеÑез {{count}} минÑÑÑ', 57934 singularGenitive: 'ÑеÑез {{count}} минÑÑÑ', 57935 pluralGenitive: 'ÑеÑез {{count}} минÑÑ' 57936 } 57937 }), 57938 aboutXHours: buildLocalizeTokenFn({ 57939 regular: { 57940 singularNominative: 'около {{count}} ÑаÑа', 57941 singularGenitive: 'около {{count}} ÑаÑов', 57942 pluralGenitive: 'около {{count}} ÑаÑов' 57943 }, 57944 future: { 57945 singularNominative: 'пÑиблизиÑелÑно ÑеÑез {{count}} ÑаÑ', 57946 singularGenitive: 'пÑиблизиÑелÑно ÑеÑез {{count}} ÑаÑа', 57947 pluralGenitive: 'пÑиблизиÑелÑно ÑеÑез {{count}} ÑаÑов' 57948 } 57949 }), 57950 xHours: buildLocalizeTokenFn({ 57951 regular: { 57952 singularNominative: '{{count}} ÑаÑ', 57953 singularGenitive: '{{count}} ÑаÑа', 57954 pluralGenitive: '{{count}} ÑаÑов' 57955 } 57956 }), 57957 xDays: buildLocalizeTokenFn({ 57958 regular: { 57959 singularNominative: '{{count}} денÑ', 57960 singularGenitive: '{{count}} днÑ', 57961 pluralGenitive: '{{count}} дней' 57962 } 57963 }), 57964 aboutXWeeks: buildLocalizeTokenFn({ 57965 regular: { 57966 singularNominative: 'около {{count}} недели', 57967 singularGenitive: 'около {{count}} неделÑ', 57968 pluralGenitive: 'около {{count}} неделÑ' 57969 }, 57970 future: { 57971 singularNominative: 'пÑиблизиÑелÑно ÑеÑез {{count}} неделÑ', 57972 singularGenitive: 'пÑиблизиÑелÑно ÑеÑез {{count}} недели', 57973 pluralGenitive: 'пÑиблизиÑелÑно ÑеÑез {{count}} неделÑ' 57974 } 57975 }), 57976 xWeeks: buildLocalizeTokenFn({ 57977 regular: { 57978 singularNominative: '{{count}} неделÑ', 57979 singularGenitive: '{{count}} недели', 57980 pluralGenitive: '{{count}} неделÑ' 57981 } 57982 }), 57983 aboutXMonths: buildLocalizeTokenFn({ 57984 regular: { 57985 singularNominative: 'около {{count}} меÑÑÑа', 57986 singularGenitive: 'около {{count}} меÑÑÑев', 57987 pluralGenitive: 'около {{count}} меÑÑÑев' 57988 }, 57989 future: { 57990 singularNominative: 'пÑиблизиÑелÑно ÑеÑез {{count}} меÑÑÑ', 57991 singularGenitive: 'пÑиблизиÑелÑно ÑеÑез {{count}} меÑÑÑа', 57992 pluralGenitive: 'пÑиблизиÑелÑно ÑеÑез {{count}} меÑÑÑев' 57993 } 57994 }), 57995 xMonths: buildLocalizeTokenFn({ 57996 regular: { 57997 singularNominative: '{{count}} меÑÑÑ', 57998 singularGenitive: '{{count}} меÑÑÑа', 57999 pluralGenitive: '{{count}} меÑÑÑев' 58000 } 58001 }), 58002 aboutXYears: buildLocalizeTokenFn({ 58003 regular: { 58004 singularNominative: 'около {{count}} года', 58005 singularGenitive: 'около {{count}} леÑ', 58006 pluralGenitive: 'около {{count}} леÑ' 58007 }, 58008 future: { 58009 singularNominative: 'пÑиблизиÑелÑно ÑеÑез {{count}} год', 58010 singularGenitive: 'пÑиблизиÑелÑно ÑеÑез {{count}} года', 58011 pluralGenitive: 'пÑиблизиÑелÑно ÑеÑез {{count}} леÑ' 58012 } 58013 }), 58014 xYears: buildLocalizeTokenFn({ 58015 regular: { 58016 singularNominative: '{{count}} год', 58017 singularGenitive: '{{count}} года', 58018 pluralGenitive: '{{count}} леÑ' 58019 } 58020 }), 58021 overXYears: buildLocalizeTokenFn({ 58022 regular: { 58023 singularNominative: 'болÑÑе {{count}} года', 58024 singularGenitive: 'болÑÑе {{count}} леÑ', 58025 pluralGenitive: 'болÑÑе {{count}} леÑ' 58026 }, 58027 future: { 58028 singularNominative: 'болÑÑе, Ñем ÑеÑез {{count}} год', 58029 singularGenitive: 'болÑÑе, Ñем ÑеÑез {{count}} года', 58030 pluralGenitive: 'болÑÑе, Ñем ÑеÑез {{count}} леÑ' 58031 } 58032 }), 58033 almostXYears: buildLocalizeTokenFn({ 58034 regular: { 58035 singularNominative: 'поÑÑи {{count}} год', 58036 singularGenitive: 'поÑÑи {{count}} года', 58037 pluralGenitive: 'поÑÑи {{count}} леÑ' 58038 }, 58039 future: { 58040 singularNominative: 'поÑÑи ÑеÑез {{count}} год', 58041 singularGenitive: 'поÑÑи ÑеÑез {{count}} года', 58042 pluralGenitive: 'поÑÑи ÑеÑез {{count}} леÑ' 58043 } 58044 }) 58045 }; 58046 58047 function formatDistance(token, count, options) { 58048 options = options || {}; 58049 return formatDistanceLocale[token](count, options); 58050 } 58051 58052 /***/ 58053 }), 58054 /* 761 */ 58055 /***/ (function (module, __webpack_exports__, __webpack_require__) { 58056 58057 "use strict"; 58058 /* harmony import */ 58059 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 58060 58061 var dateFormats = { 58062 full: "EEEE, do MMMM y 'г.'", 58063 long: "do MMMM y 'г.'", 58064 medium: "d MMM y 'г.'", 58065 short: 'dd.MM.y' 58066 }; 58067 var timeFormats = { 58068 full: 'H:mm:ss zzzz', 58069 long: 'H:mm:ss z', 58070 medium: 'H:mm:ss', 58071 short: 'H:mm' 58072 }; 58073 var dateTimeFormats = { 58074 any: '{{date}}, {{time}}' 58075 }; 58076 var formatLong = { 58077 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 58078 formats: dateFormats, 58079 defaultWidth: 'full' 58080 }), 58081 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 58082 formats: timeFormats, 58083 defaultWidth: 'full' 58084 }), 58085 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 58086 formats: dateTimeFormats, 58087 defaultWidth: 'any' 58088 }) 58089 }; 58090 /* harmony default export */ 58091 __webpack_exports__["a"] = (formatLong); 58092 58093 /***/ 58094 }), 58095 /* 762 */ 58096 /***/ (function (module, __webpack_exports__, __webpack_require__) { 58097 58098 "use strict"; 58099 /* harmony export (immutable) */ 58100 __webpack_exports__["a"] = formatRelative; 58101 /* harmony import */ 58102 var __WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__ = __webpack_require__(13); 58103 58104 var accusativeWeekdays = ['воÑкÑеÑенÑе', 'понеделÑник', 'вÑоÑник', 'ÑÑедÑ', 'ÑеÑвеÑг', 'пÑÑниÑÑ', 'ÑÑббоÑÑ']; 58105 58106 function lastWeek(day) { 58107 var weekday = accusativeWeekdays[day]; 58108 58109 switch (day) { 58110 case 0: 58111 return "'в пÑоÑлое " + weekday + " в' p"; 58112 58113 case 1: 58114 case 2: 58115 case 4: 58116 return "'в пÑоÑлÑй " + weekday + " в' p"; 58117 58118 case 3: 58119 case 5: 58120 case 6: 58121 return "'в пÑоÑлÑÑ " + weekday + " в' p"; 58122 } 58123 } 58124 58125 function thisWeek(day) { 58126 var weekday = accusativeWeekdays[day]; 58127 58128 if (day === 2 58129 /* Tue */ 58130 ) { 58131 return "'во " + weekday + " в' p"; 58132 } else { 58133 return "'в " + weekday + " в' p"; 58134 } 58135 } 58136 58137 function nextWeek(day) { 58138 var weekday = accusativeWeekdays[day]; 58139 58140 switch (day) { 58141 case 0: 58142 return "'в ÑледÑÑÑее " + weekday + " в' p"; 58143 58144 case 1: 58145 case 2: 58146 case 4: 58147 return "'в ÑледÑÑÑий " + weekday + " в' p"; 58148 58149 case 3: 58150 case 5: 58151 case 6: 58152 return "'в ÑледÑÑÑÑÑ " + weekday + " в' p"; 58153 } 58154 } 58155 58156 var formatRelativeLocale = { 58157 lastWeek: function (date, baseDate, options) { 58158 var day = date.getUTCDay(); 58159 58160 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](date, baseDate, options)) { 58161 return thisWeek(day); 58162 } else { 58163 return lastWeek(day); 58164 } 58165 }, 58166 yesterday: "'вÑеÑа в' p", 58167 today: "'ÑÐµÐ³Ð¾Ð´Ð½Ñ Ð²' p", 58168 tomorrow: "'завÑÑа в' p", 58169 nextWeek: function (date, baseDate, options) { 58170 var day = date.getUTCDay(); 58171 58172 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](date, baseDate, options)) { 58173 return thisWeek(day); 58174 } else { 58175 return nextWeek(day); 58176 } 58177 }, 58178 other: 'P' 58179 }; 58180 58181 function formatRelative(token, date, baseDate, options) { 58182 var format = formatRelativeLocale[token]; 58183 58184 if (typeof format === 'function') { 58185 return format(date, baseDate, options); 58186 } 58187 58188 return format; 58189 } 58190 58191 /***/ 58192 }), 58193 /* 763 */ 58194 /***/ (function (module, __webpack_exports__, __webpack_require__) { 58195 58196 "use strict"; 58197 /* harmony import */ 58198 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 58199 58200 var eraValues = { 58201 narrow: ['до н.Ñ.', 'н.Ñ.'], 58202 abbreviated: ['до н. Ñ.', 'н. Ñ.'], 58203 wide: ['до наÑей ÑÑÑ', 'наÑей ÑÑÑ'] 58204 }; 58205 var quarterValues = { 58206 narrow: ['1', '2', '3', '4'], 58207 abbreviated: ['1-й кв.', '2-й кв.', '3-й кв.', '4-й кв.'], 58208 wide: ['1-й кваÑÑал', '2-й кваÑÑал', '3-й кваÑÑал', '4-й кваÑÑал'] 58209 }; 58210 var monthValues = { 58211 narrow: ['Я', 'Ф', 'Ð', 'Ð', 'Ð', 'Ð', 'Ð', 'Ð', 'С', 'Ð', 'Ð', 'Ð'], 58212 abbreviated: ['Ñнв.', 'Ñев.', 'маÑÑ', 'апÑ.', 'май', 'иÑнÑ', 'иÑлÑ', 'авг.', 'ÑенÑ.', 'окÑ.', 'ноÑб.', 'дек.'], 58213 wide: ['ÑнваÑÑ', 'ÑевÑалÑ', 'маÑÑ', 'апÑелÑ', 'май', 'иÑнÑ', 'иÑлÑ', 'авгÑÑÑ', 'ÑенÑÑбÑÑ', 'окÑÑбÑÑ', 'ноÑбÑÑ', 'декабÑÑ'] 58214 }; 58215 var formattingMonthValues = { 58216 narrow: ['Я', 'Ф', 'Ð', 'Ð', 'Ð', 'Ð', 'Ð', 'Ð', 'С', 'Ð', 'Ð', 'Ð'], 58217 abbreviated: ['Ñнв.', 'Ñев.', 'маÑ.', 'апÑ.', 'маÑ', 'иÑн.', 'иÑл.', 'авг.', 'ÑенÑ.', 'окÑ.', 'ноÑб.', 'дек.'], 58218 wide: ['ÑнваÑÑ', 'ÑевÑалÑ', 'маÑÑа', 'апÑелÑ', 'маÑ', 'иÑнÑ', 'иÑлÑ', 'авгÑÑÑа', 'ÑенÑÑбÑÑ', 'окÑÑбÑÑ', 'ноÑбÑÑ', 'декабÑÑ'] 58219 }; 58220 var dayValues = { 58221 narrow: ['Ð', 'Ð', 'Ð', 'С', 'Ч', 'Ð', 'С'], 58222 short: ['вÑ', 'пн', 'вÑ', 'ÑÑ', 'ÑÑ', 'пÑ', 'Ñб'], 58223 abbreviated: ['вÑк', 'пнд', 'вÑÑ', 'ÑÑд', 'ÑÑв', 'пÑн', 'ÑÑб'], 58224 wide: ['воÑкÑеÑенÑе', 'понеделÑник', 'вÑоÑник', 'ÑÑеда', 'ÑеÑвеÑг', 'пÑÑниÑа', 'ÑÑббоÑа'] 58225 }; 58226 var dayPeriodValues = { 58227 narrow: { 58228 am: 'ÐÐ', 58229 pm: 'ÐÐ', 58230 midnight: 'полн.', 58231 noon: 'полд.', 58232 morning: 'ÑÑÑо', 58233 afternoon: 'денÑ', 58234 evening: 'веÑ.', 58235 night: 'ноÑÑ' 58236 }, 58237 abbreviated: { 58238 am: 'ÐÐ', 58239 pm: 'ÐÐ', 58240 midnight: 'полн.', 58241 noon: 'полд.', 58242 morning: 'ÑÑÑо', 58243 afternoon: 'денÑ', 58244 evening: 'веÑ.', 58245 night: 'ноÑÑ' 58246 }, 58247 wide: { 58248 am: 'ÐÐ', 58249 pm: 'ÐÐ', 58250 midnight: 'полноÑÑ', 58251 noon: 'полденÑ', 58252 morning: 'ÑÑÑо', 58253 afternoon: 'денÑ', 58254 evening: 'веÑеÑ', 58255 night: 'ноÑÑ' 58256 } 58257 }; 58258 var formattingDayPeriodValues = { 58259 narrow: { 58260 am: 'ÐÐ', 58261 pm: 'ÐÐ', 58262 midnight: 'полн.', 58263 noon: 'полд.', 58264 morning: 'ÑÑÑа', 58265 afternoon: 'днÑ', 58266 evening: 'веÑ.', 58267 night: 'ноÑи' 58268 }, 58269 abbreviated: { 58270 am: 'ÐÐ', 58271 pm: 'ÐÐ', 58272 midnight: 'полн.', 58273 noon: 'полд.', 58274 morning: 'ÑÑÑа', 58275 afternoon: 'днÑ', 58276 evening: 'веÑ.', 58277 night: 'ноÑи' 58278 }, 58279 wide: { 58280 am: 'ÐÐ', 58281 pm: 'ÐÐ', 58282 midnight: 'полноÑÑ', 58283 noon: 'полденÑ', 58284 morning: 'ÑÑÑа', 58285 afternoon: 'днÑ', 58286 evening: 'веÑеÑа', 58287 night: 'ноÑи' 58288 } 58289 }; 58290 58291 function ordinalNumber(dirtyNumber, dirtyOptions) { 58292 var options = dirtyOptions || {}; 58293 var unit = String(options.unit); 58294 var suffix; 58295 58296 if (unit === 'date') { 58297 suffix = '-е'; 58298 } else if (unit === 'week' || unit === 'minute' || unit === 'second') { 58299 suffix = '-Ñ'; 58300 } else { 58301 suffix = '-й'; 58302 } 58303 58304 return dirtyNumber + suffix; 58305 } 58306 58307 var localize = { 58308 ordinalNumber: ordinalNumber, 58309 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 58310 values: eraValues, 58311 defaultWidth: 'wide' 58312 }), 58313 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 58314 values: quarterValues, 58315 defaultWidth: 'wide', 58316 argumentCallback: function (quarter) { 58317 return Number(quarter) - 1; 58318 } 58319 }), 58320 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 58321 values: monthValues, 58322 defaultWidth: 'wide', 58323 formattingValues: formattingMonthValues, 58324 defaultFormattingWidth: 'wide' 58325 }), 58326 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 58327 values: dayValues, 58328 defaultWidth: 'wide' 58329 }), 58330 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 58331 values: dayPeriodValues, 58332 defaultWidth: 'any', 58333 formattingValues: formattingDayPeriodValues, 58334 defaultFormattingWidth: 'wide' 58335 }) 58336 }; 58337 /* harmony default export */ 58338 __webpack_exports__["a"] = (localize); 58339 58340 /***/ 58341 }), 58342 /* 764 */ 58343 /***/ (function (module, __webpack_exports__, __webpack_require__) { 58344 58345 "use strict"; 58346 /* harmony import */ 58347 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 58348 /* harmony import */ 58349 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 58350 58351 58352 var matchOrdinalNumberPattern = /^(\d+)(-?(е|Ñ|й|ое|Ñе|аÑ|ÑÑ|Ñй|ой|ий|Ñй))?/i; 58353 var parseOrdinalNumberPattern = /\d+/i; 58354 var matchEraPatterns = { 58355 narrow: /^((до )?н\.?\s?Ñ\.?)/i, 58356 abbreviated: /^((до )?н\.?\s?Ñ\.?)/i, 58357 wide: /^(до наÑей ÑÑÑ|наÑей ÑÑÑ|наÑа ÑÑа)/i 58358 }; 58359 var parseEraPatterns = { 58360 any: [/^д/i, /^н/i] 58361 }; 58362 var matchQuarterPatterns = { 58363 narrow: /^[1234]/i, 58364 abbreviated: /^[1234](-?[Ñои]?й?)? кв.?/i, 58365 wide: /^[1234](-?[Ñои]?й?)? кваÑÑал/i 58366 }; 58367 var parseQuarterPatterns = { 58368 any: [/1/i, /2/i, /3/i, /4/i] 58369 }; 58370 var matchMonthPatterns = { 58371 narrow: /^[ÑÑмаиÑонд]/i, 58372 abbreviated: /^(Ñнв|Ñев|маÑÑ?|апÑ|ма[йÑ]|иÑн[ÑÑ]?|иÑл[ÑÑ]?|авг|ÑенÑ?|окÑ|ноÑб?|дек)/i, 58373 wide: /^(ÑнваÑ[ÑÑ]|ÑевÑал[ÑÑ]|маÑÑа?|апÑел[ÑÑ]|ма[йÑ]|иÑн[ÑÑ]|иÑл[ÑÑ]|авгÑÑÑа?|ÑенÑÑбÑ[ÑÑ]|окÑÑбÑ[ÑÑ]|окÑÑбÑ[ÑÑ]|ноÑбÑ[ÑÑ]|декабÑ[ÑÑ])/i 58374 }; 58375 var parseMonthPatterns = { 58376 narrow: [/^Ñ/i, /^Ñ/i, /^м/i, /^а/i, /^м/i, /^и/i, /^и/i, /^а/i, /^Ñ/i, /^о/i, /^н/i, /^Ñ/i], 58377 any: [/^Ñ/i, /^Ñ/i, /^маÑ/i, /^ап/i, /^ма[йÑ]/i, /^иÑн/i, /^иÑл/i, /^ав/i, /^Ñ/i, /^о/i, /^н/i, /^д/i] 58378 }; 58379 var matchDayPatterns = { 58380 narrow: /^[впÑÑ]/i, 58381 short: /^(вÑ|во|пн|по|вÑ|ÑÑ|ÑÑ|Ñе|пÑ|пÑ|Ñб|ÑÑ)\.?/i, 58382 abbreviated: /^(вÑк|воÑ|пнд|пон|вÑÑ|вÑо|ÑÑд|ÑÑе|ÑÑв|ÑеÑ|пÑн|пÑÑ|ÑÑб).?/i, 58383 wide: /^(воÑкÑеÑенÑ[еÑ]|понеделÑника?|вÑоÑника?|ÑÑед[аÑ]|ÑеÑвеÑга?|пÑÑниÑ[аÑ]|ÑÑббоÑ[аÑ])/i 58384 }; 58385 var parseDayPatterns = { 58386 narrow: [/^в/i, /^п/i, /^в/i, /^Ñ/i, /^Ñ/i, /^п/i, /^Ñ/i], 58387 any: [/^в[оÑ]/i, /^п[он]/i, /^в/i, /^ÑÑ/i, /^Ñ/i, /^п[ÑÑ]/i, /^Ñ[Ñб]/i] 58388 }; 58389 var matchDayPeriodPatterns = { 58390 narrow: /^([дп]п|полн\.?|полд\.?|ÑÑÑ[оа]|денÑ|днÑ|веÑ\.?|ноÑ[Ñи])/i, 58391 abbreviated: /^([дп]п|полн\.?|полд\.?|ÑÑÑ[оа]|денÑ|днÑ|веÑ\.?|ноÑ[Ñи])/i, 58392 wide: /^([дп]п|полноÑÑ|полденÑ|ÑÑÑ[оа]|денÑ|днÑ|веÑеÑа?|ноÑ[Ñи])/i 58393 }; 58394 var parseDayPeriodPatterns = { 58395 any: { 58396 am: /^дп/i, 58397 pm: /^пп/i, 58398 midnight: /^полн/i, 58399 noon: /^полд/i, 58400 morning: /^Ñ/i, 58401 afternoon: /^д[ен]/i, 58402 evening: /^в/i, 58403 night: /^н/i 58404 } 58405 }; 58406 var match = { 58407 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 58408 matchPattern: matchOrdinalNumberPattern, 58409 parsePattern: parseOrdinalNumberPattern, 58410 valueCallback: function (value) { 58411 return parseInt(value, 10); 58412 } 58413 }), 58414 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 58415 matchPatterns: matchEraPatterns, 58416 defaultMatchWidth: 'wide', 58417 parsePatterns: parseEraPatterns, 58418 defaultParseWidth: 'any' 58419 }), 58420 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 58421 matchPatterns: matchQuarterPatterns, 58422 defaultMatchWidth: 'wide', 58423 parsePatterns: parseQuarterPatterns, 58424 defaultParseWidth: 'any', 58425 valueCallback: function (index) { 58426 return index + 1; 58427 } 58428 }), 58429 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 58430 matchPatterns: matchMonthPatterns, 58431 defaultMatchWidth: 'wide', 58432 parsePatterns: parseMonthPatterns, 58433 defaultParseWidth: 'any' 58434 }), 58435 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 58436 matchPatterns: matchDayPatterns, 58437 defaultMatchWidth: 'wide', 58438 parsePatterns: parseDayPatterns, 58439 defaultParseWidth: 'any' 58440 }), 58441 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 58442 matchPatterns: matchDayPeriodPatterns, 58443 defaultMatchWidth: 'wide', 58444 parsePatterns: parseDayPeriodPatterns, 58445 defaultParseWidth: 'any' 58446 }) 58447 }; 58448 /* harmony default export */ 58449 __webpack_exports__["a"] = (match); 58450 58451 /***/ 58452 }), 58453 /* 765 */ 58454 /***/ (function (module, __webpack_exports__, __webpack_require__) { 58455 58456 "use strict"; 58457 /* harmony import */ 58458 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(766); 58459 /* harmony import */ 58460 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(767); 58461 /* harmony import */ 58462 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(768); 58463 /* harmony import */ 58464 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(769); 58465 /* harmony import */ 58466 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(770); 58467 58468 58469 /** 58470 * @type {Locale} 58471 * @category Locales 58472 * @summary Slovak locale. 58473 * @language Slovak 58474 * @iso-639-2 slk 58475 * @author Marek Suscak [@mareksuscak]{@link https://github.com/mareksuscak} 58476 */ 58477 58478 var locale = { 58479 code: 'sk', 58480 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 58481 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 58482 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 58483 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 58484 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 58485 options: { 58486 weekStartsOn: 1 58487 /* Monday */ 58488 , 58489 firstWeekContainsDate: 4 58490 } 58491 }; 58492 /* harmony default export */ 58493 __webpack_exports__["a"] = (locale); 58494 58495 /***/ 58496 }), 58497 /* 766 */ 58498 /***/ (function (module, __webpack_exports__, __webpack_require__) { 58499 58500 "use strict"; 58501 /* harmony export (immutable) */ 58502 __webpack_exports__["a"] = formatDistance; 58503// NOTE: should prolly be improved 58504// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1308 58505 function declensionGroup(scheme, count) { 58506 if (count === 1) { 58507 return scheme.one; 58508 } 58509 58510 if (count >= 2 && count <= 4) { 58511 return scheme.twoFour; 58512 } // if count === null || count === 0 || count >= 5 58513 58514 58515 return scheme.other; 58516 } 58517 58518 function declension(scheme, count, time) { 58519 var group = declensionGroup(scheme, count); 58520 var finalText = group[time] || group; 58521 return finalText.replace('{{count}}', count); 58522 } 58523 58524 function extractPreposition(token) { 58525 var result = ['lessThan', 'about', 'over', 'almost'].filter(function (preposition) { 58526 return !!token.match(new RegExp('^' + preposition)); 58527 }); 58528 return result[0]; 58529 } 58530 58531 function prefixPreposition(preposition) { 58532 var translation = ''; 58533 58534 if (preposition === 'almost') { 58535 translation = 'takmer'; 58536 } 58537 58538 if (preposition === 'about') { 58539 translation = 'približne'; 58540 } 58541 58542 return translation.length > 0 ? translation + ' ' : ''; 58543 } 58544 58545 function suffixPreposition(preposition) { 58546 var translation = ''; 58547 58548 if (preposition === 'lessThan') { 58549 translation = 'menej než'; 58550 } 58551 58552 if (preposition === 'over') { 58553 translation = 'viac než'; 58554 } 58555 58556 return translation.length > 0 ? translation + ' ' : ''; 58557 } 58558 58559 function lowercaseFirstLetter(string) { 58560 return string.charAt(0).toLowerCase() + string.slice(1); 58561 } 58562 58563 var formatDistanceLocale = { 58564 xSeconds: { 58565 one: { 58566 regular: 'sekunda', 58567 past: 'sekundou', 58568 future: 'sekundu' 58569 }, 58570 twoFour: { 58571 regular: '{{count}} sekundy', 58572 past: '{{count}} sekundami', 58573 future: '{{count}} sekundy' 58574 }, 58575 other: { 58576 regular: '{{count}} sekúnd', 58577 past: '{{count}} sekundami', 58578 future: '{{count}} sekúnd' 58579 } 58580 }, 58581 halfAMinute: { 58582 other: { 58583 regular: 'pol minúty', 58584 past: 'pol minútou', 58585 future: 'pol minúty' 58586 } 58587 }, 58588 xMinutes: { 58589 one: { 58590 regular: 'minúta', 58591 past: 'minútou', 58592 future: 'minútu' 58593 }, 58594 twoFour: { 58595 regular: '{{count}} minúty', 58596 past: '{{count}} minútami', 58597 future: '{{count}} minúty' 58598 }, 58599 other: { 58600 regular: '{{count}} minút', 58601 past: '{{count}} minútami', 58602 future: '{{count}} minút' 58603 } 58604 }, 58605 xHours: { 58606 one: { 58607 regular: 'hodina', 58608 past: 'hodinou', 58609 future: 'hodinu' 58610 }, 58611 twoFour: { 58612 regular: '{{count}} hodiny', 58613 past: '{{count}} hodinami', 58614 future: '{{count}} hodiny' 58615 }, 58616 other: { 58617 regular: '{{count}} hodÃn', 58618 past: '{{count}} hodinami', 58619 future: '{{count}} hodÃn' 58620 } 58621 }, 58622 xDays: { 58623 one: { 58624 regular: 'deÅ', 58625 past: 'dÅom', 58626 future: 'deÅ' 58627 }, 58628 twoFour: { 58629 regular: '{{count}} dni', 58630 past: '{{count}} dÅami', 58631 future: '{{count}} dni' 58632 }, 58633 other: { 58634 regular: '{{count}} dnÃ', 58635 past: '{{count}} dÅami', 58636 future: '{{count}} dnÃ' 58637 } 58638 }, 58639 xWeeks: { 58640 one: { 58641 regular: 'mesiac', 58642 // TODO 58643 past: 'mesiacom', 58644 // TODO 58645 future: 'mesiac' // TODO 58646 58647 }, 58648 twoFour: { 58649 regular: '{{count}} mesiace', 58650 // TODO 58651 past: '{{count}} mesiacmi', 58652 // TODO 58653 future: '{{count}} mesiace' // TODO 58654 58655 }, 58656 other: { 58657 regular: '{{count}} mesiacov', 58658 // TODO 58659 past: '{{count}} mesiacmi', 58660 // TODO 58661 future: '{{count}} mesiacov' // TODO 58662 58663 } 58664 }, 58665 xMonths: { 58666 one: { 58667 regular: 'mesiac', 58668 past: 'mesiacom', 58669 future: 'mesiac' 58670 }, 58671 twoFour: { 58672 regular: '{{count}} mesiace', 58673 past: '{{count}} mesiacmi', 58674 future: '{{count}} mesiace' 58675 }, 58676 other: { 58677 regular: '{{count}} mesiacov', 58678 past: '{{count}} mesiacmi', 58679 future: '{{count}} mesiacov' 58680 } 58681 }, 58682 xYears: { 58683 one: { 58684 regular: 'rok', 58685 past: 'rokom', 58686 future: 'rok' 58687 }, 58688 twoFour: { 58689 regular: '{{count}} roky', 58690 past: '{{count}} rokmi', 58691 future: '{{count}} roky' 58692 }, 58693 other: { 58694 regular: '{{count}} rokov', 58695 past: '{{count}} rokmi', 58696 future: '{{count}} rokov' 58697 } 58698 } 58699 }; 58700 58701 function formatDistance(token, count, options) { 58702 options = options || {}; 58703 var preposition = extractPreposition(token) || ''; 58704 var key = lowercaseFirstLetter(token.substring(preposition.length)); 58705 var scheme = formatDistanceLocale[key]; 58706 58707 if (!options.addSuffix) { 58708 return prefixPreposition(preposition) + suffixPreposition(preposition) + declension(scheme, count, 'regular'); 58709 } 58710 58711 if (options.comparison > 0) { 58712 return prefixPreposition(preposition) + 'o ' + suffixPreposition(preposition) + declension(scheme, count, 'future'); 58713 } else { 58714 return prefixPreposition(preposition) + 'pred ' + suffixPreposition(preposition) + declension(scheme, count, 'past'); 58715 } 58716 } 58717 58718 /***/ 58719 }), 58720 /* 767 */ 58721 /***/ (function (module, __webpack_exports__, __webpack_require__) { 58722 58723 "use strict"; 58724 /* harmony import */ 58725 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 58726 // https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1986 58727 58728 var dateFormats = { 58729 full: 'EEEE d. MMMM y', 58730 long: 'd. MMMM y', 58731 medium: 'd. M. y', 58732 short: 'd. M. y' // https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#2149 58733 58734 }; 58735 var timeFormats = { 58736 full: 'H:mm:ss zzzz', 58737 long: 'H:mm:ss z', 58738 medium: 'H:mm:ss', 58739 short: 'H:mm' // https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1994 58740 58741 }; 58742 var dateTimeFormats = { 58743 full: '{{date}}, {{time}}', 58744 long: '{{date}}, {{time}}', 58745 medium: '{{date}}, {{time}}', 58746 short: '{{date}} {{time}}' 58747 }; 58748 var formatLong = { 58749 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 58750 formats: dateFormats, 58751 defaultWidth: 'full' 58752 }), 58753 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 58754 formats: timeFormats, 58755 defaultWidth: 'full' 58756 }), 58757 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 58758 formats: dateTimeFormats, 58759 defaultWidth: 'full' 58760 }) 58761 }; 58762 /* harmony default export */ 58763 __webpack_exports__["a"] = (formatLong); 58764 58765 /***/ 58766 }), 58767 /* 768 */ 58768 /***/ (function (module, __webpack_exports__, __webpack_require__) { 58769 58770 "use strict"; 58771 /* harmony export (immutable) */ 58772 __webpack_exports__["a"] = formatRelative; 58773 /* harmony import */ 58774 var __WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__ = __webpack_require__(13); 58775 // https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1308 58776 58777 var accusativeWeekdays = ['nedeľu', 'pondelok', 'utorok', 'stredu', 'Å¡tvrtok', 'piatok', 'sobotu']; 58778 58779 function lastWeek(day) { 58780 var weekday = accusativeWeekdays[day]; 58781 58782 switch (day) { 58783 case 0: 58784 /* Sun */ 58785 58786 case 3: 58787 /* Wed */ 58788 58789 case 6 58790 /* Sat */ 58791 : 58792 return "'minulú " + weekday + " o' p"; 58793 58794 default: 58795 return "'minulý' eeee 'o' p"; 58796 } 58797 } 58798 58799 function thisWeek(day) { 58800 var weekday = accusativeWeekdays[day]; 58801 58802 if (day === 4 58803 /* Thu */ 58804 ) { 58805 return "'vo' eeee 'o' p"; 58806 } else { 58807 return "'v " + weekday + " o' p"; 58808 } 58809 } 58810 58811 function nextWeek(day) { 58812 var weekday = accusativeWeekdays[day]; 58813 58814 switch (day) { 58815 case 0: 58816 /* Sun */ 58817 58818 case 4: 58819 /* Wed */ 58820 58821 case 6 58822 /* Sat */ 58823 : 58824 return "'budúcu' " + weekday + " 'o' p"; 58825 58826 default: 58827 return "'budúci' eeee 'o' p"; 58828 } 58829 } 58830 58831 var formatRelativeLocale = { 58832 lastWeek: function (date, baseDate, options) { 58833 var day = date.getUTCDay(); 58834 58835 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](date, baseDate, options)) { 58836 return thisWeek(day); 58837 } else { 58838 return lastWeek(day); 58839 } 58840 }, 58841 yesterday: "'vÄera o' p", 58842 today: "'dnes o' p", 58843 tomorrow: "'zajtra o' p", 58844 nextWeek: function (date, baseDate, options) { 58845 var day = date.getUTCDay(); 58846 58847 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](date, baseDate, options)) { 58848 return thisWeek(day); 58849 } else { 58850 return nextWeek(day); 58851 } 58852 }, 58853 other: 'P' 58854 }; 58855 58856 function formatRelative(token, date, baseDate, options) { 58857 var format = formatRelativeLocale[token]; 58858 58859 if (typeof format === 'function') { 58860 return format(date, baseDate, options); 58861 } 58862 58863 return format; 58864 } 58865 58866 /***/ 58867 }), 58868 /* 769 */ 58869 /***/ (function (module, __webpack_exports__, __webpack_require__) { 58870 58871 "use strict"; 58872 /* harmony import */ 58873 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 58874 // https://www.unicode.org/cldr/charts/32/summary/sk.html#1772 58875 58876 var eraValues = { 58877 narrow: ['pred Kr.', 'po Kr.'], 58878 abbreviated: ['pred Kr.', 'po Kr.'], 58879 wide: ['pred Kristom', 'po Kristovi'] // https://www.unicode.org/cldr/charts/32/summary/sk.html#1780 58880 58881 }; 58882 var quarterValues = { 58883 narrow: ['1', '2', '3', '4'], 58884 abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], 58885 wide: ['1. Å¡tvrÅ¥rok', '2. Å¡tvrÅ¥rok', '3. Å¡tvrÅ¥rok', '4. Å¡tvrÅ¥rok'] // https://www.unicode.org/cldr/charts/32/summary/sk.html#1804 58886 58887 }; 58888 var monthValues = { 58889 narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], 58890 abbreviated: ['jan', 'feb', 'mar', 'apr', 'máj', 'jún', 'júl', 'aug', 'sep', 'okt', 'nov', 'dec'], 58891 wide: ['január', 'február', 'marec', 'aprÃl', 'máj', 'jún', 'júl', 'august', 'september', 'október', 'november', 'december'] 58892 }; 58893 var formattingMonthValues = { 58894 narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], 58895 abbreviated: ['jan', 'feb', 'mar', 'apr', 'máj', 'jún', 'júl', 'aug', 'sep', 'okt', 'nov', 'dec'], 58896 wide: ['januára', 'februára', 'marca', 'aprÃla', 'mája', 'júna', 'júla', 'augusta', 'septembra', 'októbra', 'novembra', 'decembra'] // https://www.unicode.org/cldr/charts/32/summary/sk.html#1876 58897 58898 }; 58899 var dayValues = { 58900 narrow: ['n', 'p', 'u', 's', 'Å¡', 'p', 's'], 58901 short: ['ne', 'po', 'ut', 'st', 'Å¡t', 'pi', 'so'], 58902 abbreviated: ['ne', 'po', 'ut', 'st', 'Å¡t', 'pi', 'so'], 58903 wide: ['nedeľa', 'pondelok', 'utorok', 'streda', 'Å¡tvrtok', 'piatok', 'sobota'] // https://www.unicode.org/cldr/charts/32/summary/sk.html#1932 58904 58905 }; 58906 var dayPeriodValues = { 58907 narrow: { 58908 am: 'AM', 58909 pm: 'PM', 58910 midnight: 'poln.', 58911 noon: 'pol.', 58912 morning: 'ráno', 58913 afternoon: 'pop.', 58914 evening: 'veÄ.', 58915 night: 'noc' 58916 }, 58917 abbreviated: { 58918 am: 'AM', 58919 pm: 'PM', 58920 midnight: 'poln.', 58921 noon: 'pol.', 58922 morning: 'ráno', 58923 afternoon: 'popol.', 58924 evening: 'veÄer', 58925 night: 'noc' 58926 }, 58927 wide: { 58928 am: 'AM', 58929 pm: 'PM', 58930 midnight: 'polnoc', 58931 noon: 'poludnie', 58932 morning: 'ráno', 58933 afternoon: 'popoludnie', 58934 evening: 'veÄer', 58935 night: 'noc' 58936 } 58937 }; 58938 var formattingDayPeriodValues = { 58939 narrow: { 58940 am: 'AM', 58941 pm: 'PM', 58942 midnight: 'o poln.', 58943 noon: 'nap.', 58944 morning: 'ráno', 58945 afternoon: 'pop.', 58946 evening: 'veÄ.', 58947 night: 'v n.' 58948 }, 58949 abbreviated: { 58950 am: 'AM', 58951 pm: 'PM', 58952 midnight: 'o poln.', 58953 noon: 'napol.', 58954 morning: 'ráno', 58955 afternoon: 'popol.', 58956 evening: 'veÄer', 58957 night: 'v noci' 58958 }, 58959 wide: { 58960 am: 'AM', 58961 pm: 'PM', 58962 midnight: 'o polnoci', 58963 noon: 'napoludnie', 58964 morning: 'ráno', 58965 afternoon: 'popoludnÃ', 58966 evening: 'veÄer', 58967 night: 'v noci' 58968 } 58969 }; 58970 58971 function ordinalNumber(dirtyNumber, _dirtyOptions) { 58972 var number = Number(dirtyNumber); 58973 return number + '.'; 58974 } 58975 58976 var localize = { 58977 ordinalNumber: ordinalNumber, 58978 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 58979 values: eraValues // defaultWidth: 'wide' 58980 58981 }), 58982 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 58983 values: quarterValues, 58984 defaultWidth: 'wide', 58985 argumentCallback: function (quarter) { 58986 return Number(quarter) - 1; 58987 } 58988 }), 58989 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 58990 values: monthValues, 58991 defaultWidth: 'wide', 58992 formattingValues: formattingMonthValues, 58993 defaultFormattingWidth: 'wide' 58994 }), 58995 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 58996 values: dayValues, 58997 defaultWidth: 'wide' 58998 }), 58999 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 59000 values: dayPeriodValues, 59001 defaultWidth: 'wide', 59002 formattingValues: formattingDayPeriodValues, 59003 defaultFormattingWidth: 'wide' 59004 }) 59005 }; 59006 /* harmony default export */ 59007 __webpack_exports__["a"] = (localize); 59008 59009 /***/ 59010 }), 59011 /* 770 */ 59012 /***/ (function (module, __webpack_exports__, __webpack_require__) { 59013 59014 "use strict"; 59015 /* harmony import */ 59016 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 59017 /* harmony import */ 59018 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 59019 59020 59021 var matchOrdinalNumberPattern = /^(\d+)\.?/i; 59022 var parseOrdinalNumberPattern = /\d+/i; 59023 var matchEraPatterns = { 59024 narrow: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, 59025 abbreviated: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, 59026 wide: /^(pred Kristom|pred na[Å¡s][Ãi]m letopo[Äc]tom|po Kristovi|n[áa][Å¡s]ho letopo[Äc]tu)/i 59027 }; 59028 var parseEraPatterns = { 59029 any: [/^pr/i, /^(po|n)/i] 59030 }; 59031 var matchQuarterPatterns = { 59032 narrow: /^[1234]/i, 59033 abbreviated: /^q[1234]/i, 59034 wide: /^[1234]\. [Å¡s]tvr[Å¥t]rok/i 59035 }; 59036 var parseQuarterPatterns = { 59037 any: [/1/i, /2/i, /3/i, /4/i] 59038 }; 59039 var matchMonthPatterns = { 59040 narrow: /^[jfmasond]/i, 59041 abbreviated: /^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i, 59042 wide: /^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[Ãi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i 59043 }; 59044 var parseMonthPatterns = { 59045 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 59046 any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^m[áa]j/i, /^j[úu]n/i, /^j[úu]l/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] 59047 }; 59048 var matchDayPatterns = { 59049 narrow: /^[npusÅ¡p]/i, 59050 short: /^(ne|po|ut|st|Å¡t|pi|so)/i, 59051 abbreviated: /^(ne|po|ut|st|Å¡t|pi|so)/i, 59052 wide: /^(nede[ľl]a|pondelok|utorok|streda|[Å¡s]tvrtok|piatok|sobota])/i 59053 }; 59054 var parseDayPatterns = { 59055 narrow: [/^n/i, /^p/i, /^u/i, /^s/i, /^Å¡/i, /^p/i, /^s/i], 59056 any: [/^n/i, /^po/i, /^u/i, /^st/i, /^(Å¡t|stv)/i, /^pi/i, /^so/i] 59057 }; 59058 var matchDayPeriodPatterns = { 59059 narrow: /^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[Äc]\.?|(v n\.?|noc))/i, 59060 abbreviated: /^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[Äc]er|(v )?noci?)/i, 59061 any: /^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|Ã|i)|ve[Äc]er|(v )?noci?)/i 59062 }; 59063 var parseDayPeriodPatterns = { 59064 any: { 59065 am: /^am/i, 59066 pm: /^pm/i, 59067 midnight: /poln/i, 59068 noon: /^(nap|(na)?pol(\.|u))/i, 59069 morning: /^r[áa]no/i, 59070 afternoon: /^pop/i, 59071 evening: /^ve[Äc]/i, 59072 night: /^(noc|v n\.)/i 59073 } 59074 }; 59075 var match = { 59076 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 59077 matchPattern: matchOrdinalNumberPattern, 59078 parsePattern: parseOrdinalNumberPattern, 59079 valueCallback: function (value) { 59080 return parseInt(value, 10); 59081 } 59082 }), 59083 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 59084 matchPatterns: matchEraPatterns, 59085 defaultMatchWidth: 'wide', 59086 parsePatterns: parseEraPatterns, 59087 defaultParseWidth: 'any' 59088 }), 59089 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 59090 matchPatterns: matchQuarterPatterns, 59091 defaultMatchWidth: 'wide', 59092 parsePatterns: parseQuarterPatterns, 59093 defaultParseWidth: 'any', 59094 valueCallback: function (index) { 59095 return index + 1; 59096 } 59097 }), 59098 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 59099 matchPatterns: matchMonthPatterns, 59100 defaultMatchWidth: 'wide', 59101 parsePatterns: parseMonthPatterns, 59102 defaultParseWidth: 'any' 59103 }), 59104 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 59105 matchPatterns: matchDayPatterns, 59106 defaultMatchWidth: 'wide', 59107 parsePatterns: parseDayPatterns, 59108 defaultParseWidth: 'any' 59109 }), 59110 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 59111 matchPatterns: matchDayPeriodPatterns, 59112 defaultMatchWidth: 'any', 59113 parsePatterns: parseDayPeriodPatterns, 59114 defaultParseWidth: 'any' 59115 }) 59116 }; 59117 /* harmony default export */ 59118 __webpack_exports__["a"] = (match); 59119 59120 /***/ 59121 }), 59122 /* 771 */ 59123 /***/ (function (module, __webpack_exports__, __webpack_require__) { 59124 59125 "use strict"; 59126 /* harmony import */ 59127 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(772); 59128 /* harmony import */ 59129 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(773); 59130 /* harmony import */ 59131 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(774); 59132 /* harmony import */ 59133 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(775); 59134 /* harmony import */ 59135 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(776); 59136 59137 59138 /** 59139 * @type {Locale} 59140 * @category Locales 59141 * @summary Slovenian locale. 59142 * @language Slovenian 59143 * @iso-639-2 slv 59144 * @author Adam Stradovnik [@Neoglyph]{@link https://github.com/Neoglyph} 59145 * @author Mato Žgajner [@mzgajner]{@link https://github.com/mzgajner} 59146 */ 59147 59148 var locale = { 59149 code: 'sl', 59150 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 59151 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 59152 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 59153 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 59154 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 59155 options: { 59156 weekStartsOn: 1 59157 /* Monday */ 59158 , 59159 firstWeekContainsDate: 1 59160 } 59161 }; 59162 /* harmony default export */ 59163 __webpack_exports__["a"] = (locale); 59164 59165 /***/ 59166 }), 59167 /* 772 */ 59168 /***/ (function (module, __webpack_exports__, __webpack_require__) { 59169 59170 "use strict"; 59171 /* harmony export (immutable) */ 59172 __webpack_exports__["a"] = formatDistance; 59173 var distanceInWordsLocale = { 59174 lessThanXSeconds: { 59175 one: 'manj kot {{count}} sekunda', 59176 two: 'manj kot {{count}} sekundi', 59177 few: 'manj kot {{count}} sekunde', 59178 other: 'manj kot {{count}} sekund' 59179 }, 59180 xSeconds: { 59181 one: '{{count}} sekunda', 59182 two: '{{count}} sekundi', 59183 few: '{{count}} sekunde', 59184 other: '{{count}} sekund' 59185 }, 59186 halfAMinute: 'pol minute', 59187 lessThanXMinutes: { 59188 one: 'manj kot {{count}} minuta', 59189 two: 'manj kot {{count}} minuti', 59190 few: 'manj kot {{count}} minute', 59191 other: 'manj kot {{count}} minut' 59192 }, 59193 xMinutes: { 59194 one: '{{count}} minuta', 59195 two: '{{count}} minuti', 59196 few: '{{count}} minute', 59197 other: '{{count}} minut' 59198 }, 59199 aboutXHours: {
59200 one: 'približno {{count}} ura', 59201 two: 'približno {{count}} uri', 59202 few: 'približno {{count}} ure', 59203 other: 'približno {{count}} ur' 59204 }, 59205 xHours: { 59206 one: '{{count}} ura', 59207 two: '{{count}} uri', 59208 few: '{{count}} ure', 59209 other: '{{count}} ur' 59210 }, 59211 xDays: { 59212 one: '{{count}} dan', 59213 two: '{{count}} dni', 59214 few: '{{count}} dni', 59215 other: '{{count}} dni' 59216 }, 59217 aboutXWeeks: { 59218 one: 'približno {{count}} teden', 59219 two: 'približno {{count}} tedna', 59220 few: 'približno {{count}} tedne', 59221 other: 'približno {{count}} tednov' 59222 }, 59223 xWeeks: { 59224 one: '{{count}} teden', 59225 two: '{{count}} tedna', 59226 few: '{{count}} tedne', 59227 other: '{{count}} tednov' 59228 }, 59229 aboutXMonths: { 59230 one: 'približno {{count}} mesec', 59231 two: 'približno {{count}} meseca', 59232 few: 'približno {{count}} mesece', 59233 other: 'približno {{count}} mesecev' 59234 }, 59235 xMonths: { 59236 one: '{{count}} mesec', 59237 two: '{{count}} meseca', 59238 few: '{{count}} meseci', 59239 other: '{{count}} mesecev' 59240 }, 59241 aboutXYears: { 59242 one: 'približno {{count}} leto', 59243 two: 'približno {{count}} leti', 59244 few: 'približno {{count}} leta', 59245 other: 'približno {{count}} let' 59246 }, 59247 xYears: { 59248 one: '{{count}} leto', 59249 two: '{{count}} leti', 59250 few: '{{count}} leta', 59251 other: '{{count}} let' 59252 }, 59253 overXYears: { 59254 one: 'veÄ kot {{count}} leto', 59255 two: 'veÄ kot {{count}} leti', 59256 few: 'veÄ kot {{count}} leta', 59257 other: 'veÄ kot {{count}} let' 59258 }, 59259 almostXYears: { 59260 one: 'skoraj {{count}} leto', 59261 two: 'skoraj {{count}} leti', 59262 few: 'skoraj {{count}} leta', 59263 other: 'skoraj {{count}} let' 59264 } 59265 }; 59266 var distanceInWordsLocalePast = { 59267 lessThanXSeconds: { 59268 one: 'manj kot {{count}} sekundo', 59269 two: 'manj kot {{count}} sekundama', 59270 few: 'manj kot {{count}} sekundami', 59271 other: 'manj kot {{count}} sekundami' 59272 }, 59273 xSeconds: { 59274 one: '{{count}} sekundo', 59275 two: '{{count}} sekundama', 59276 few: '{{count}} sekundami', 59277 other: '{{count}} sekundami' 59278 }, 59279 halfAMinute: 'pol minute', 59280 lessThanXMinutes: { 59281 one: 'manj kot {{count}} minuto', 59282 two: 'manj kot {{count}} minutama', 59283 few: 'manj kot {{count}} minutami', 59284 other: 'manj kot {{count}} minutami' 59285 }, 59286 xMinutes: { 59287 one: '{{count}} minuto', 59288 two: '{{count}} minutama', 59289 few: '{{count}} minutami', 59290 other: '{{count}} minutami' 59291 }, 59292 aboutXHours: {
59293 one: 'približno {{count}} uro', 59294 two: 'približno {{count}} urama', 59295 few: 'približno {{count}} urami', 59296 other: 'približno {{count}} urami' 59297 }, 59298 xHours: { 59299 one: '{{count}} uro', 59300 two: '{{count}} urama', 59301 few: '{{count}} urami', 59302 other: '{{count}} urami' 59303 }, 59304 xDays: { 59305 one: '{{count}} dnem', 59306 two: '{{count}} dnevoma', 59307 few: '{{count}} dnevi', 59308 other: '{{count}} dnevi' 59309 }, 59310 aboutXMonths: { 59311 one: 'približno {{count}} mesecem', 59312 two: 'približno {{count}} mesecema', 59313 few: 'približno {{count}} meseci', 59314 other: 'približno {{count}} meseci' 59315 }, 59316 xMonths: { 59317 one: '{{count}} mesecem', 59318 two: '{{count}} mesecema', 59319 few: '{{count}} meseci', 59320 other: '{{count}} meseci' 59321 }, 59322 aboutXYears: { 59323 one: 'približno {{count}} letom', 59324 two: 'približno {{count}} letoma', 59325 few: 'približno {{count}} leti', 59326 other: 'približno {{count}} leti' 59327 }, 59328 xYears: { 59329 one: '{{count}} letom', 59330 two: '{{count}} letoma', 59331 few: '{{count}} leti', 59332 other: '{{count}} leti' 59333 }, 59334 overXYears: { 59335 one: 'veÄ kot {{count}} letom', 59336 two: 'veÄ kot {{count}} letoma', 59337 few: 'veÄ kot {{count}} leti', 59338 other: 'veÄ kot {{count}} leti' 59339 }, 59340 almostXYears: { 59341 one: 'skoraj {{count}} letom', 59342 two: 'skoraj {{count}} letoma', 59343 few: 'skoraj {{count}} leti', 59344 other: 'skoraj {{count}} leti' 59345 } 59346 }; 59347 var distanceInWordsLocaleFuture = { 59348 lessThanXSeconds: { 59349 one: 'manj kot {{count}} sekundo', 59350 two: 'manj kot {{count}} sekundi', 59351 few: 'manj kot {{count}} sekunde', 59352 other: 'manj kot {{count}} sekund' 59353 }, 59354 xSeconds: { 59355 one: '{{count}} sekundo', 59356 two: '{{count}} sekundi', 59357 few: '{{count}} sekunde', 59358 other: '{{count}} sekund' 59359 }, 59360 halfAMinute: 'pol minute', 59361 lessThanXMinutes: { 59362 one: 'manj kot {{count}} minuto', 59363 two: 'manj kot {{count}} minuti', 59364 few: 'manj kot {{count}} minute', 59365 other: 'manj kot {{count}} minut' 59366 }, 59367 xMinutes: { 59368 one: '{{count}} minuto', 59369 two: '{{count}} minuti', 59370 few: '{{count}} minute', 59371 other: '{{count}} minut' 59372 }, 59373 aboutXHours: { 59374 one: 'približno {{count}} uro', 59375 two: 'približno {{count}} uri', 59376 few: 'približno {{count}} ure', 59377 other: 'približno {{count}} ur' 59378 }, 59379 xHours: { 59380 one: '{{count}} uro', 59381 two: '{{count}} uri', 59382 few: '{{count}} ure', 59383 other: '{{count}} ur' 59384 }, 59385 xDays: { 59386 one: '{{count}} dan', 59387 two: '{{count}} dni', 59388 few: '{{count}} dni', 59389 other: '{{count}} dni' 59390 }, 59391 aboutXMonths: {
vendor: 19,971 bytes, lines 59392-59846
59392 one: 'približno {{count}} mesec', 59393 two: 'približno {{count}} meseca', 59394 few: 'približno {{count}} mesece', 59395 other: 'približno {{count}} mesecev' 59396 }, 59397 xMonths: { 59398 one: '{{count}} mesec', 59399 two: '{{count}} meseca', 59400 few: '{{count}} mesece', 59401 other: '{{count}} mesecev' 59402 }, 59403 aboutXYears: { 59404 one: 'približno {{count}} leto', 59405 two: 'približno {{count}} leti', 59406 few: 'približno {{count}} leta', 59407 other: 'približno {{count}} let' 59408 }, 59409 xYears: { 59410 one: '{{count}} leto', 59411 two: '{{count}} leti', 59412 few: '{{count}} leta', 59413 other: '{{count}} let' 59414 }, 59415 overXYears: { 59416 one: 'veÄ kot {{count}} leto', 59417 two: 'veÄ kot {{count}} leti', 59418 few: 'veÄ kot {{count}} leta', 59419 other: 'veÄ kot {{count}} let' 59420 }, 59421 almostXYears: { 59422 one: 'skoraj {{count}} leto', 59423 two: 'skoraj {{count}} leti', 59424 few: 'skoraj {{count}} leta', 59425 other: 'skoraj {{count}} let' 59426 } 59427 }; 59428 59429 function getFormFromCount(count) { 59430 switch (count % 100) { 59431 case 1: 59432 return 'one'; 59433 59434 case 2: 59435 return 'two'; 59436 59437 case 3: 59438 case 4: 59439 return 'few'; 59440 59441 default: 59442 return 'other'; 59443 } 59444 } 59445 59446 function formatDistance(token, count, options) { 59447 options = options || {}; 59448 var localeObject = distanceInWordsLocale; 59449 var result = ''; 59450 59451 if (options.addSuffix) { 59452 if (options.comparison > 0) { 59453 localeObject = distanceInWordsLocaleFuture; 59454 result += 'Äez '; 59455 } else { 59456 localeObject = distanceInWordsLocalePast; 59457 result += 'pred '; 59458 } 59459 } 59460 59461 if (typeof localeObject[token] === 'string') { 59462 result += localeObject[token]; 59463 } else { 59464 var form = getFormFromCount(count); 59465 result += localeObject[token][form].replace('{{count}}', count); 59466 } 59467 59468 return result; 59469 } 59470 59471 /***/ 59472 }), 59473 /* 773 */ 59474 /***/ (function (module, __webpack_exports__, __webpack_require__) { 59475 59476 "use strict"; 59477 /* harmony import */ 59478 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 59479 59480 var dateFormats = { 59481 full: 'EEEE, dd. MMMM y', 59482 long: 'dd. MMMM y', 59483 medium: 'd. MMM y', 59484 short: 'd. MM. yy' 59485 }; 59486 var timeFormats = { 59487 full: 'HH:mm:ss zzzz', 59488 long: 'HH:mm:ss z', 59489 medium: 'HH:mm:ss', 59490 short: 'HH:mm' 59491 }; 59492 var dateTimeFormats = { 59493 full: '{{date}} {{time}}', 59494 long: '{{date}} {{time}}', 59495 medium: '{{date}} {{time}}', 59496 short: '{{date}} {{time}}' 59497 }; 59498 var formatLong = { 59499 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 59500 formats: dateFormats, 59501 defaultWidth: 'full' 59502 }), 59503 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 59504 formats: timeFormats, 59505 defaultWidth: 'full' 59506 }), 59507 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 59508 formats: dateTimeFormats, 59509 defaultWidth: 'full' 59510 }) 59511 }; 59512 /* harmony default export */ 59513 __webpack_exports__["a"] = (formatLong); 59514 59515 /***/ 59516 }), 59517 /* 774 */ 59518 /***/ (function (module, __webpack_exports__, __webpack_require__) { 59519 59520 "use strict"; 59521 /* harmony export (immutable) */ 59522 __webpack_exports__["a"] = formatRelative; 59523 var formatRelativeLocale = { 59524 lastWeek: function (date) { 59525 var day = date.getUTCDay(); 59526 59527 switch (day) { 59528 case 0: 59529 return "'prejÅ¡njo nedeljo ob' p"; 59530 59531 case 3: 59532 return "'prejÅ¡njo sredo ob' p"; 59533 59534 case 6: 59535 return "'prejÅ¡njo soboto ob' p"; 59536 59537 default: 59538 return "'prejÅ¡nji' EEEE 'ob' p"; 59539 } 59540 }, 59541 yesterday: "'vÄeraj ob' p", 59542 today: "'danes ob' p", 59543 tomorrow: "'jutri ob' p", 59544 nextWeek: function (date) { 59545 var day = date.getUTCDay(); 59546 59547 switch (day) { 59548 case 0: 59549 return "'naslednjo nedeljo ob' p"; 59550 59551 case 3: 59552 return "'naslednjo sredo ob' p"; 59553 59554 case 6: 59555 return "'naslednjo soboto ob' p"; 59556 59557 default: 59558 return "'naslednji' EEEE 'ob' p"; 59559 } 59560 }, 59561 other: 'P' 59562 }; 59563 59564 function formatRelative(token, date, _baseDate, _options) { 59565 var format = formatRelativeLocale[token]; 59566 59567 if (typeof format === 'function') { 59568 return format(date); 59569 } 59570 59571 return format; 59572 } 59573 59574 /***/ 59575 }), 59576 /* 775 */ 59577 /***/ (function (module, __webpack_exports__, __webpack_require__) { 59578 59579 "use strict"; 59580 /* harmony import */ 59581 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 59582 59583 59584 function ordinalNumber(dirtyNumber) { 59585 var number = Number(dirtyNumber); 59586 return String(number).concat('.'); 59587 } 59588 59589 var eraValues = { 59590 narrow: ['pr. n. Å¡t.', 'po n. Å¡t.'], 59591 abbreviated: ['pr. n. Å¡t.', 'po n. Å¡t.'], 59592 wide: ['pred naÅ¡im Å¡tetjem', 'po naÅ¡em Å¡tetju'] 59593 }; 59594 var monthValues = { 59595 narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], 59596 abbreviated: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun.', 'jul.', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'], 59597 wide: ['januar', 'februar', 'marec', 'april', 'maj', 'junij', 'julij', 'avgust', 'september', 'oktober', 'november', 'december'] 59598 }; 59599 var quarterValues = { 59600 narrow: ['1', '2', '3', '4'], 59601 abbreviated: ['1. Äet.', '2. Äet.', '3. Äet.', '4. Äet.'], 59602 wide: ['1. Äetrtletje', '2. Äetrtletje', '3. Äetrtletje', '4. Äetrtletje'] 59603 }; 59604 var dayValues = { 59605 narrow: ['n', 'p', 't', 's', 'Ä', 'p', 's'], 59606 short: ['ned.', 'pon.', 'tor.', 'sre.', 'Äet.', 'pet.', 'sob.'], 59607 abbreviated: ['ned.', 'pon.', 'tor.', 'sre.', 'Äet.', 'pet.', 'sob.'], 59608 wide: ['nedelja', 'ponedeljek', 'torek', 'sreda', 'Äetrtek', 'petek', 'sobota'] 59609 }; 59610 var dayPeriodValuesStandalone = { 59611 narrow: { 59612 am: 'd', 59613 pm: 'p', 59614 midnight: '24.00', 59615 noon: '12.00', 59616 morning: 'j', 59617 afternoon: 'p', 59618 evening: 'v', 59619 night: 'n' 59620 }, 59621 abbreviated: { 59622 am: 'dop.', 59623 pm: 'pop.', 59624 midnight: 'poln.', 59625 noon: 'pold.', 59626 morning: 'jut.', 59627 afternoon: 'pop.', 59628 evening: 'veÄ.', 59629 night: 'noÄ' 59630 }, 59631 wide: { 59632 am: 'dop.', 59633 pm: 'pop.', 59634 midnight: 'polnoÄ', 59635 noon: 'poldne', 59636 morning: 'jutro', 59637 afternoon: 'popoldne', 59638 evening: 'veÄer', 59639 night: 'noÄ' 59640 } 59641 }; 59642 var dayPeriodValuesFormatting = { 59643 narrow: { 59644 am: 'd', 59645 pm: 'p', 59646 midnight: '24.00', 59647 noon: '12.00', 59648 morning: 'zj', 59649 afternoon: 'p', 59650 evening: 'zv', 59651 night: 'po' 59652 }, 59653 abbreviated: { 59654 am: 'dop.', 59655 pm: 'pop.', 59656 midnight: 'opoln.', 59657 noon: 'opold.', 59658 morning: 'zjut.', 59659 afternoon: 'pop.', 59660 evening: 'zveÄ.', 59661 night: 'ponoÄi' 59662 }, 59663 wide: { 59664 am: 'dop.', 59665 pm: 'pop.', 59666 midnight: 'opolnoÄi', 59667 noon: 'opoldne', 59668 morning: 'zjutraj', 59669 afternoon: 'popoldan', 59670 evening: 'zveÄer', 59671 night: 'ponoÄi' 59672 } 59673 }; 59674 var localize = { 59675 ordinalNumber: ordinalNumber, 59676 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 59677 values: eraValues, 59678 defaultWidth: 'wide' 59679 }), 59680 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 59681 values: quarterValues, 59682 defaultWidth: 'wide', 59683 argumentCallback: function (quarter) { 59684 return Number(quarter) - 1; 59685 } 59686 }), 59687 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 59688 values: monthValues, 59689 defaultWidth: 'wide' 59690 }), 59691 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 59692 values: dayValues, 59693 defaultWidth: 'wide' 59694 }), 59695 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 59696 values: dayPeriodValuesStandalone, 59697 defaultWidth: 'wide', 59698 formattingValues: dayPeriodValuesFormatting, 59699 defaultFormattingWidth: 'wide' 59700 }) 59701 }; 59702 /* harmony default export */ 59703 __webpack_exports__["a"] = (localize); 59704 59705 /***/ 59706 }), 59707 /* 776 */ 59708 /***/ (function (module, __webpack_exports__, __webpack_require__) { 59709 59710 "use strict"; 59711 /* harmony import */ 59712 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__ = __webpack_require__(5); 59713 /* harmony import */ 59714 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 59715 59716 59717 var matchOrdinalNumberPattern = /^(\d+)\./i; 59718 var parseOrdinalNumberPattern = /\d+/i; 59719 var matchEraPatterns = { 59720 abbreviated: /^(pr\. n\. Å¡t\.|po n\. Å¡t\.)/i, 59721 wide: /^(pred Kristusom|pred na[sÅ¡]im [sÅ¡]tetjem|po Kristusu|po na[sÅ¡]em [sÅ¡]tetju|na[sÅ¡]ega [sÅ¡]tetja)/i 59722 }; 59723 var parseEraPatterns = { 59724 any: [/^pr/i, /^(po|na[sÅ¡]em)/i] 59725 }; 59726 var matchQuarterPatterns = { 59727 narrow: /^[1234]/i, 59728 abbreviated: /^[1234]\.\s?[Äc]et\.?/i, 59729 wide: /^[1234]\. [Äc]etrtletje/i 59730 }; 59731 var parseQuarterPatterns = { 59732 any: [/1/i, /2/i, /3/i, /4/i] 59733 }; 59734 var matchMonthPatterns = { 59735 narrow: /^[jfmasond]/i, 59736 abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i, 59737 wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i 59738 }; 59739 var parseMonthPatterns = { 59740 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 59741 abbreviated: [/^ja/i, /^fe/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^av/i, /^s/i, /^o/i, /^n/i, /^d/i], 59742 wide: [/^ja/i, /^fe/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^av/i, /^s/i, /^o/i, /^n/i, /^d/i] 59743 }; 59744 var matchDayPatterns = { 59745 narrow: /^[nptsÄc]/i, 59746 short: /^(ned\.|pon\.|tor\.|sre\.|[cÄ]et\.|pet\.|sob\.)/i, 59747 abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cÄ]et\.|pet\.|sob\.)/i, 59748 wide: /^(nedelja|ponedeljek|torek|sreda|[cÄ]etrtek|petek|sobota)/i 59749 }; 59750 var parseDayPatterns = { 59751 narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cÄ]/i, /^p/i, /^s/i], 59752 any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cÄ]/i, /^pe/i, /^so/i] 59753 }; 59754 var matchDayPeriodPatterns = { 59755 narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i, 59756 any: /^(dop\.|pop\.|o?poln(\.|o[cÄ]i?)|o?pold(\.|ne)|z?ve[cÄ](\.|er)|(po)?no[cÄ]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i 59757 }; 59758 var parseDayPeriodPatterns = { 59759 narrow: { 59760 am: /^d/i, 59761 pm: /^p/i, 59762 midnight: /^24/i, 59763 noon: /^12/i, 59764 morning: /^(z?j)/i, 59765 afternoon: /^p/i, 59766 evening: /^(z?v)/i, 59767 night: /^(n|po)/i 59768 }, 59769 any: { 59770 am: /^dop\./i, 59771 pm: /^pop\./i, 59772 midnight: /^o?poln/i, 59773 noon: /^o?pold/i, 59774 morning: /j/i, 59775 afternoon: /^pop\./i, 59776 evening: /^z?ve/i, 59777 night: /(po)?no/i 59778 } 59779 }; 59780 var match = { 59781 ordinalNumber: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 59782 matchPattern: matchOrdinalNumberPattern, 59783 parsePattern: parseOrdinalNumberPattern, 59784 valueCallback: function (value) { 59785 return parseInt(value, 10); 59786 } 59787 }), 59788 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 59789 matchPatterns: matchEraPatterns, 59790 defaultMatchWidth: 'wide', 59791 parsePatterns: parseEraPatterns, 59792 defaultParseWidth: 'any' 59793 }), 59794 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 59795 matchPatterns: matchQuarterPatterns, 59796 defaultMatchWidth: 'wide', 59797 parsePatterns: parseQuarterPatterns, 59798 defaultParseWidth: 'any', 59799 valueCallback: function (index) { 59800 return index + 1; 59801 } 59802 }), 59803 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 59804 matchPatterns: matchMonthPatterns, 59805 defaultMatchWidth: 'wide', 59806 parsePatterns: parseMonthPatterns, 59807 defaultParseWidth: 'wide' 59808 }), 59809 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 59810 matchPatterns: matchDayPatterns, 59811 defaultMatchWidth: 'wide', 59812 parsePatterns: parseDayPatterns, 59813 defaultParseWidth: 'any' 59814 }), 59815 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 59816 matchPatterns: matchDayPeriodPatterns, 59817 defaultMatchWidth: 'any', 59818 parsePatterns: parseDayPeriodPatterns, 59819 defaultParseWidth: 'any' 59820 }) 59821 }; 59822 /* harmony default export */ 59823 __webpack_exports__["a"] = (match); 59824 59825 /***/ 59826 }), 59827 /* 777 */ 59828 /***/ (function (module, __webpack_exports__, __webpack_require__) { 59829 59830 "use strict"; 59831 /* harmony import */ 59832 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(778); 59833 /* harmony import */ 59834 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(779); 59835 /* harmony import */ 59836 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(780); 59837 /* harmony import */ 59838 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(781); 59839 /* harmony import */ 59840 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(782); 59841 59842 59843 /** 59844 * @type {Locale} 59845 * @category Locales 59846 * @summary Serbian cyrillic locale.
59847 * @language Serbian 59848 * @iso-639-2 srp 59849 * @author Igor RadivojeviÄ [@rogyvoje]{@link https://github.com/rogyvoje} 59850 */ 59851 59852 var locale = { 59853 code: 'sr', 59854 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 59855 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 59856 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 59857 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 59858 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 59859 options: { 59860 weekStartsOn: 1 59861 /* Monday */ 59862 , 59863 firstWeekContainsDate: 1 59864 } 59865 }; 59866 /* harmony default export */ 59867 __webpack_exports__["a"] = (locale); 59868 59869 /***/ 59870 }), 59871 /* 778 */ 59872 /***/ (function (module, __webpack_exports__, __webpack_require__) { 59873 59874 "use strict"; 59875 /* harmony export (immutable) */ 59876 __webpack_exports__["a"] = formatDistance; 59877 var formatDistanceLocale = { 59878 lessThanXSeconds: { 59879 one: { 59880 standalone: 'маÑе од 1 ÑекÑнде', 59881 withPrepositionAgo: 'маÑе од 1 ÑекÑнде', 59882 withPrepositionIn: 'маÑе од 1 ÑекÑндÑ' 59883 }, 59884 dual: 'маÑе од {{count}} ÑекÑнде', 59885 other: 'маÑе од {{count}} ÑекÑнди' 59886 }, 59887 xSeconds: { 59888 one: { 59889 standalone: '1 ÑекÑнда', 59890 withPrepositionAgo: '1 ÑекÑнде', 59891 withPrepositionIn: '1 ÑекÑндÑ' 59892 }, 59893 dual: '{{count}} ÑекÑнде', 59894 other: '{{count}} ÑекÑнди' 59895 }, 59896 halfAMinute: 'пола минÑÑе', 59897 lessThanXMinutes: { 59898 one: { 59899 standalone: 'маÑе од 1 минÑÑе', 59900 withPrepositionAgo: 'маÑе од 1 минÑÑе', 59901 withPrepositionIn: 'маÑе од 1 минÑÑÑ' 59902 }, 59903 dual: 'маÑе од {{count}} минÑÑе', 59904 other: 'маÑе од {{count}} минÑÑа' 59905 }, 59906 xMinutes: { 59907 one: { 59908 standalone: '1 минÑÑа', 59909 withPrepositionAgo: '1 минÑÑе', 59910 withPrepositionIn: '1 минÑÑÑ' 59911 }, 59912 dual: '{{count}} минÑÑе', 59913 other: '{{count}} минÑÑа' 59914 }, 59915 aboutXHours: { 59916 one: { 59917 standalone: 'око 1 ÑаÑ', 59918 withPrepositionAgo: 'око 1 ÑаÑ', 59919 withPrepositionIn: 'око 1 ÑаÑ' 59920 }, 59921 dual: 'око {{count}} ÑаÑа', 59922 other: 'око {{count}} ÑаÑи' 59923 }, 59924 xHours: { 59925 one: { 59926 standalone: '1 ÑаÑ', 59927 withPrepositionAgo: '1 ÑаÑ', 59928 withPrepositionIn: '1 ÑаÑ' 59929 }, 59930 dual: '{{count}} ÑаÑа', 59931 other: '{{count}} ÑаÑи' 59932 }, 59933 xDays: { 59934 one: { 59935 standalone: '1 дан', 59936 withPrepositionAgo: '1 дан', 59937 withPrepositionIn: '1 дан'
vendor: 48,992 bytes, lines 59938-60997
59938 }, 59939 dual: '{{count}} дана', 59940 other: '{{count}} дана' 59941 }, 59942 aboutXWeeks: { 59943 one: { 59944 standalone: 'око 1 недеÑÑ', 59945 withPrepositionAgo: 'око 1 недеÑÑ', 59946 withPrepositionIn: 'око 1 недеÑÑ' 59947 }, 59948 dual: 'око {{count}} недеÑе', 59949 other: 'око {{count}} недеÑе' 59950 }, 59951 xWeeks: { 59952 one: { 59953 standalone: '1 недеÑÑ', 59954 withPrepositionAgo: '1 недеÑÑ', 59955 withPrepositionIn: '1 недеÑÑ' 59956 }, 59957 dual: '{{count}} недеÑе', 59958 other: '{{count}} недеÑе' 59959 }, 59960 aboutXMonths: { 59961 one: { 59962 standalone: 'око 1 меÑеÑ', 59963 withPrepositionAgo: 'око 1 меÑеÑ', 59964 withPrepositionIn: 'око 1 меÑеÑ' 59965 }, 59966 dual: 'око {{count}} меÑеÑа', 59967 other: 'око {{count}} меÑеÑи' 59968 }, 59969 xMonths: { 59970 one: { 59971 standalone: '1 меÑеÑ', 59972 withPrepositionAgo: '1 меÑеÑ', 59973 withPrepositionIn: '1 меÑеÑ' 59974 }, 59975 dual: '{{count}} меÑеÑа', 59976 other: '{{count}} меÑеÑи' 59977 }, 59978 aboutXYears: { 59979 one: { 59980 standalone: 'око 1 годинÑ', 59981 withPrepositionAgo: 'око 1 годинÑ', 59982 withPrepositionIn: 'око 1 годинÑ' 59983 }, 59984 dual: 'око {{count}} године', 59985 other: 'око {{count}} година' 59986 }, 59987 xYears: { 59988 one: { 59989 standalone: '1 година', 59990 withPrepositionAgo: '1 године', 59991 withPrepositionIn: '1 годинÑ' 59992 }, 59993 dual: '{{count}} године', 59994 other: '{{count}} година' 59995 }, 59996 overXYears: { 59997 one: { 59998 standalone: 'пÑеко 1 годинÑ', 59999 withPrepositionAgo: 'пÑеко 1 годинÑ', 60000 withPrepositionIn: 'пÑеко 1 годинÑ' 60001 }, 60002 dual: 'пÑеко {{count}} године', 60003 other: 'пÑеко {{count}} година' 60004 }, 60005 almostXYears: { 60006 one: { 60007 standalone: 'гоÑово 1 годинÑ', 60008 withPrepositionAgo: 'гоÑово 1 годинÑ', 60009 withPrepositionIn: 'гоÑово 1 годинÑ' 60010 }, 60011 dual: 'гоÑово {{count}} године', 60012 other: 'гоÑово {{count}} година' 60013 } 60014 }; 60015 60016 function formatDistance(token, count, options) { 60017 options = options || {}; 60018 var result; 60019 60020 if (typeof formatDistanceLocale[token] === 'string') { 60021 result = formatDistanceLocale[token]; 60022 } else if (count === 1) { 60023 if (options.addSuffix) { 60024 if (options.comparison > 0) { 60025 result = formatDistanceLocale[token].one.withPrepositionIn; 60026 } else { 60027 result = formatDistanceLocale[token].one.withPrepositionAgo; 60028 } 60029 } else { 60030 result = formatDistanceLocale[token].one.standalone; 60031 } 60032 } else if (count % 10 > 1 && count % 10 < 5 && // if last digit is between 2 and 4 60033 String(count).substr(-2, 1) !== '1' // unless the 2nd to last digit is "1" 60034 ) { 60035 result = formatDistanceLocale[token].dual.replace('{{count}}', count); 60036 } else { 60037 result = formatDistanceLocale[token].other.replace('{{count}}', count); 60038 } 60039 60040 if (options.addSuffix) { 60041 if (options.comparison > 0) { 60042 return 'за ' + result; 60043 } else { 60044 return 'пÑе ' + result; 60045 } 60046 } 60047 60048 return result; 60049 } 60050 60051 /***/ 60052 }), 60053 /* 779 */ 60054 /***/ (function (module, __webpack_exports__, __webpack_require__) { 60055 60056 "use strict"; 60057 /* harmony import */ 60058 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 60059 60060 var dateFormats = { 60061 full: 'EEEE, d. MMMM yyyy.', 60062 long: 'd. MMMM yyyy.', 60063 medium: 'd. MMM yy.', 60064 short: 'dd. MM. yy.' 60065 }; 60066 var timeFormats = { 60067 full: 'HH:mm:ss (zzzz)', 60068 long: 'HH:mm:ss z', 60069 medium: 'HH:mm:ss', 60070 short: 'HH:mm' 60071 }; 60072 var dateTimeFormats = { 60073 full: "{{date}} 'Ñ' {{time}}", 60074 long: "{{date}} 'Ñ' {{time}}", 60075 medium: '{{date}} {{time}}', 60076 short: '{{date}} {{time}}' 60077 }; 60078 var formatLong = { 60079 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 60080 formats: dateFormats, 60081 defaultWidth: 'full' 60082 }), 60083 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 60084 formats: timeFormats, 60085 defaultWidth: 'full' 60086 }), 60087 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 60088 formats: dateTimeFormats, 60089 defaultWidth: 'full' 60090 }) 60091 }; 60092 /* harmony default export */ 60093 __webpack_exports__["a"] = (formatLong); 60094 60095 /***/ 60096 }), 60097 /* 780 */ 60098 /***/ (function (module, __webpack_exports__, __webpack_require__) { 60099 60100 "use strict"; 60101 /* harmony export (immutable) */ 60102 __webpack_exports__["a"] = formatRelative; 60103 var formatRelativeLocale = { 60104 lastWeek: function (date) { 60105 var day = date.getUTCDay(); 60106 60107 switch (day) { 60108 case 0: 60109 return "'пÑоÑле недеÑе Ñ' p"; 60110 60111 case 3: 60112 return "'пÑоÑле ÑÑеде Ñ' p"; 60113 60114 case 6: 60115 return "'пÑоÑле ÑÑбоÑе Ñ' p"; 60116 60117 default: 60118 return "'пÑоÑли' EEEE 'Ñ' p"; 60119 } 60120 }, 60121 yesterday: "'ÑÑÑе Ñ' p", 60122 today: "'Ð´Ð°Ð½Ð°Ñ Ñ' p", 60123 tomorrow: "'ÑÑÑÑа Ñ' p", 60124 nextWeek: function (date) { 60125 var day = date.getUTCDay(); 60126 60127 switch (day) { 60128 case 0: 60129 return "'ÑледеÑе недеÑе Ñ' p"; 60130 60131 case 3: 60132 return "'ÑледеÑÑ ÑÑÐµÐ´Ñ Ñ' p"; 60133 60134 case 6: 60135 return "'ÑледеÑÑ ÑÑбоÑÑ Ñ' p"; 60136 60137 default: 60138 return "'ÑледеÑи' EEEE 'Ñ' p"; 60139 } 60140 }, 60141 other: 'P' 60142 }; 60143 60144 function formatRelative(token, date, _baseDate, _options) { 60145 var format = formatRelativeLocale[token]; 60146 60147 if (typeof format === 'function') { 60148 return format(date); 60149 } 60150 60151 return format; 60152 } 60153 60154 /***/ 60155 }), 60156 /* 781 */ 60157 /***/ (function (module, __webpack_exports__, __webpack_require__) { 60158 60159 "use strict"; 60160 /* harmony import */ 60161 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 60162 60163 60164 function ordinalNumber(dirtyNumber) { 60165 var number = Number(dirtyNumber); 60166 return String(number).concat('.'); 60167 } 60168 60169 var eraValues = { 60170 narrow: ['пÑ.н.е.', 'ÐÐ'], 60171 abbreviated: ['пÑ. Ð¥Ñ.', 'по. Ð¥Ñ.'], 60172 wide: ['ÐÑе Ð¥ÑиÑÑа', 'ÐоÑле Ð¥ÑиÑÑа'] 60173 }; 60174 var monthValues = { 60175 narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], 60176 abbreviated: ['Ñан', 'Ñеб', 'маÑ', 'апÑ', 'маÑ', 'ÑÑн', 'ÑÑл', 'авг', 'Ñеп', 'окÑ', 'нов', 'деÑ'], 60177 wide: ['ÑанÑаÑ', 'ÑебÑÑаÑ', 'маÑÑ', 'апÑил', 'маÑ', 'ÑÑн', 'ÑÑл', 'авгÑÑÑ', 'ÑепÑембаÑ', 'окÑобаÑ', 'новембаÑ', 'деÑембаÑ'] 60178 }; 60179 var formattingMonthValues = { 60180 narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], 60181 abbreviated: ['Ñан', 'Ñеб', 'маÑ', 'апÑ', 'маÑ', 'ÑÑн', 'ÑÑл', 'авг', 'Ñеп', 'окÑ', 'нов', 'деÑ'], 60182 wide: ['ÑанÑаÑ', 'ÑебÑÑаÑ', 'маÑÑ', 'апÑил', 'маÑ', 'ÑÑн', 'ÑÑл', 'авгÑÑÑ', 'ÑепÑембаÑ', 'окÑобаÑ', 'новембаÑ', 'деÑембаÑ'] 60183 }; 60184 var quarterValues = { 60185 narrow: ['1.', '2.', '3.', '4.'], 60186 abbreviated: ['1. кв.', '2. кв.', '3. кв.', '4. кв.'], 60187 wide: ['1. кваÑÑал', '2. кваÑÑал', '3. кваÑÑал', '4. кваÑÑал'] 60188 }; 60189 var dayValues = { 60190 narrow: ['Ð', 'Ð', 'У', 'С', 'Ч', 'Ð', 'С'], 60191 short: ['нед', 'пон', 'ÑÑо', 'ÑÑе', 'ÑеÑ', 'пеÑ', 'ÑÑб'], 60192 abbreviated: ['нед', 'пон', 'ÑÑо', 'ÑÑе', 'ÑеÑ', 'пеÑ', 'ÑÑб'], 60193 wide: ['недеÑа', 'понедеÑак', 'ÑÑоÑак', 'ÑÑеда', 'ÑеÑвÑÑак', 'пеÑак', 'ÑÑбоÑа'] 60194 }; 60195 var formattingDayPeriodValues = { 60196 narrow: { 60197 am: 'ÐÐ', 60198 pm: 'ÐÐ', 60199 midnight: 'поноÑ', 60200 noon: 'подне', 60201 morning: 'ÑÑÑÑÑÑ', 60202 afternoon: 'поподне', 60203 evening: 'ÑвеÑе', 60204 night: 'ноÑÑ' 60205 }, 60206 abbreviated: { 60207 am: 'ÐÐ', 60208 pm: 'ÐÐ', 60209 midnight: 'поноÑ', 60210 noon: 'подне', 60211 morning: 'ÑÑÑÑÑÑ', 60212 afternoon: 'поподне', 60213 evening: 'ÑвеÑе', 60214 night: 'ноÑÑ' 60215 }, 60216 wide: { 60217 am: 'AM', 60218 pm: 'PM', 60219 midnight: 'поноÑ', 60220 noon: 'подне', 60221 morning: 'ÑÑÑÑÑÑ', 60222 afternoon: 'поÑле подне', 60223 evening: 'ÑвеÑе', 60224 night: 'ноÑÑ' 60225 } 60226 }; 60227 var dayPeriodValues = { 60228 narrow: { 60229 am: 'AM', 60230 pm: 'PM', 60231 midnight: 'поноÑ', 60232 noon: 'подне', 60233 morning: 'ÑÑÑÑÑÑ', 60234 afternoon: 'поподне', 60235 evening: 'ÑвеÑе', 60236 night: 'ноÑÑ' 60237 }, 60238 abbreviated: { 60239 am: 'AM', 60240 pm: 'PM', 60241 midnight: 'поноÑ', 60242 noon: 'подне', 60243 morning: 'ÑÑÑÑÑÑ', 60244 afternoon: 'поподне', 60245 evening: 'ÑвеÑе', 60246 night: 'ноÑÑ' 60247 }, 60248 wide: { 60249 am: 'AM', 60250 pm: 'PM', 60251 midnight: 'поноÑ', 60252 noon: 'подне', 60253 morning: 'ÑÑÑÑÑÑ', 60254 afternoon: 'поÑле подне', 60255 evening: 'ÑвеÑе', 60256 night: 'ноÑÑ' 60257 } 60258 }; 60259 var localize = { 60260 ordinalNumber: ordinalNumber, 60261 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 60262 values: eraValues, 60263 defaultWidth: 'wide' 60264 }), 60265 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 60266 values: quarterValues, 60267 defaultWidth: 'wide', 60268 argumentCallback: function (quarter) { 60269 return Number(quarter) - 1; 60270 } 60271 }), 60272 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 60273 values: monthValues, 60274 defaultWidth: 'wide', 60275 formattingValues: formattingMonthValues, 60276 defaultFormattingWidth: 'wide' 60277 }), 60278 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 60279 values: dayValues, 60280 defaultWidth: 'wide' 60281 }), 60282 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 60283 values: dayPeriodValues, 60284 defaultWidth: 'wide', 60285 formattingValues: formattingDayPeriodValues, 60286 defaultFormattingWidth: 'wide' 60287 }) 60288 }; 60289 /* harmony default export */ 60290 __webpack_exports__["a"] = (localize); 60291 60292 /***/ 60293 }), 60294 /* 782 */ 60295 /***/ (function (module, __webpack_exports__, __webpack_require__) { 60296 60297 "use strict"; 60298 /* harmony import */ 60299 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__ = __webpack_require__(5); 60300 /* harmony import */ 60301 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 60302 60303 60304 var matchOrdinalNumberPattern = /^(\d+)\./i; 60305 var parseOrdinalNumberPattern = /\d+/i; 60306 var matchEraPatterns = { 60307 narrow: /^(пÑ\.н\.е\.|ÐÐ)/i, 60308 abbreviated: /^(пÑ\.\s?Ð¥Ñ\.|по\.\s?Ð¥Ñ\.)/i, 60309 wide: /^(ÐÑе Ð¥ÑиÑÑа|пÑе нове еÑе|ÐоÑле Ð¥ÑиÑÑа|нова еÑа)/i 60310 }; 60311 var parseEraPatterns = { 60312 any: [/^пÑ/i, /^(по|нова)/i] 60313 }; 60314 var matchQuarterPatterns = { 60315 narrow: /^[1234]/i, 60316 abbreviated: /^[1234]\.\s?кв\.?/i, 60317 wide: /^[1234]\. кваÑÑал/i 60318 }; 60319 var parseQuarterPatterns = { 60320 any: [/1/i, /2/i, /3/i, /4/i] 60321 }; 60322 var matchMonthPatterns = { 60323 narrow: /^(10|11|12|[123456789])\./i, 60324 abbreviated: /^(Ñан|Ñеб|маÑ|апÑ|маÑ|ÑÑн|ÑÑл|авг|Ñеп|окÑ|нов|деÑ)/i, 60325 wide: /^((ÑанÑаÑ|ÑанÑаÑа)|(ÑебÑÑаÑ|ÑебÑÑаÑа)|(маÑÑ|маÑÑа)|(апÑил|апÑила)|(мÑа|маÑа)|(ÑÑн|ÑÑна)|(ÑÑл|ÑÑла)|(авгÑÑÑ|авгÑÑÑа)|(ÑепÑембаÑ|ÑепÑембÑа)|(окÑобаÑ|окÑобÑа)|(новембаÑ|новембÑа)|(деÑембаÑ|деÑембÑа))/i 60326 }; 60327 var parseMonthPatterns = { 60328 narrow: [/(10|11|12|[123456789])/i], 60329 any: [/^Ñа/i, /^Ñ/i, /^маÑ/i, /^ап/i, /^маÑ/i, /^ÑÑн/i, /^ÑÑл/i, /^авг/i, /^Ñ/i, /^о/i, /^н/i, /^д/i] 60330 }; 60331 var matchDayPatterns = { 60332 narrow: /^[пÑÑÑн]/i, 60333 short: /^(нед|пон|ÑÑо|ÑÑе|ÑеÑ|пеÑ|ÑÑб)/i, 60334 abbreviated: /^(нед|пон|ÑÑо|ÑÑе|ÑеÑ|пеÑ|ÑÑб)/i, 60335 wide: /^(недеÑа|понедеÑак|ÑÑоÑак|ÑÑеда|ÑеÑвÑÑак|пеÑак|ÑÑбоÑа)/i 60336 }; 60337 var parseDayPatterns = { 60338 narrow: [/^п/i, /^Ñ/i, /^Ñ/i, /^Ñ/i, /^н/i], 60339 any: [/^нед/i, /^пон/i, /^ÑÑо/i, /^ÑÑе/i, /^ÑеÑ/i, /^пеÑ/i, /^ÑÑб/i] 60340 }; 60341 var matchDayPeriodPatterns = { 60342 any: /^(ам|пм|поноÑ|(по)?подне|ÑвеÑе|ноÑÑ|поÑле подне|ÑÑÑÑÑÑ)/i 60343 }; 60344 var parseDayPeriodPatterns = { 60345 any: { 60346 am: /^a/i, 60347 pm: /^p/i, 60348 midnight: /^поно/i, 60349 noon: /^под/i, 60350 morning: /ÑÑÑÑÑÑ/i, 60351 afternoon: /(поÑле\s|по)+подне/i, 60352 evening: /(ÑвеÑе)/i, 60353 night: /(ноÑÑ)/i 60354 } 60355 }; 60356 var match = { 60357 ordinalNumber: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 60358 matchPattern: matchOrdinalNumberPattern, 60359 parsePattern: parseOrdinalNumberPattern, 60360 valueCallback: function (value) { 60361 return parseInt(value, 10); 60362 } 60363 }), 60364 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 60365 matchPatterns: matchEraPatterns, 60366 defaultMatchWidth: 'wide', 60367 parsePatterns: parseEraPatterns, 60368 defaultParseWidth: 'any' 60369 }), 60370 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 60371 matchPatterns: matchQuarterPatterns, 60372 defaultMatchWidth: 'wide', 60373 parsePatterns: parseQuarterPatterns, 60374 defaultParseWidth: 'any', 60375 valueCallback: function (index) { 60376 return index + 1; 60377 } 60378 }), 60379 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 60380 matchPatterns: matchMonthPatterns, 60381 defaultMatchWidth: 'wide', 60382 parsePatterns: parseMonthPatterns, 60383 defaultParseWidth: 'any' 60384 }), 60385 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 60386 matchPatterns: matchDayPatterns, 60387 defaultMatchWidth: 'wide', 60388 parsePatterns: parseDayPatterns, 60389 defaultParseWidth: 'any' 60390 }), 60391 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 60392 matchPatterns: matchDayPeriodPatterns, 60393 defaultMatchWidth: 'any', 60394 parsePatterns: parseDayPeriodPatterns, 60395 defaultParseWidth: 'any' 60396 }) 60397 }; 60398 /* harmony default export */ 60399 __webpack_exports__["a"] = (match); 60400 60401 /***/ 60402 }), 60403 /* 783 */ 60404 /***/ (function (module, __webpack_exports__, __webpack_require__) { 60405 60406 "use strict"; 60407 /* harmony import */ 60408 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(784); 60409 /* harmony import */ 60410 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(785); 60411 /* harmony import */ 60412 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(786); 60413 /* harmony import */ 60414 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(787); 60415 /* harmony import */ 60416 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(788); 60417 60418 60419 /** 60420 * @type {Locale} 60421 * @category Locales 60422 * @summary Serbian latin locale. 60423 * @language Serbian 60424 * @iso-639-2 srp 60425 * @author Igor RadivojeviÄ [@rogyvoje]{@link https://github.com/rogyvoje} 60426 */ 60427 60428 var locale = { 60429 code: 'sr-Latn', 60430 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 60431 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 60432 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 60433 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 60434 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 60435 options: { 60436 weekStartsOn: 1 60437 /* Monday */ 60438 , 60439 firstWeekContainsDate: 1 60440 } 60441 }; 60442 /* harmony default export */ 60443 __webpack_exports__["a"] = (locale); 60444 60445 /***/ 60446 }), 60447 /* 784 */ 60448 /***/ (function (module, __webpack_exports__, __webpack_require__) { 60449 60450 "use strict"; 60451 /* harmony export (immutable) */ 60452 __webpack_exports__["a"] = formatDistance; 60453 var formatDistanceLocale = { 60454 lessThanXSeconds: { 60455 one: { 60456 standalone: 'manje od 1 sekunde', 60457 withPrepositionAgo: 'manje od 1 sekunde', 60458 withPrepositionIn: 'manje od 1 sekundu' 60459 }, 60460 dual: 'manje od {{count}} sekunde', 60461 other: 'manje od {{count}} sekundi' 60462 }, 60463 xSeconds: { 60464 one: { 60465 standalone: '1 sekunda', 60466 withPrepositionAgo: '1 sekunde', 60467 withPrepositionIn: '1 sekundu' 60468 }, 60469 dual: '{{count}} sekunde', 60470 other: '{{count}} sekundi' 60471 }, 60472 halfAMinute: 'pola minute', 60473 lessThanXMinutes: { 60474 one: { 60475 standalone: 'manje od 1 minute', 60476 withPrepositionAgo: 'manje od 1 minute', 60477 withPrepositionIn: 'manje od 1 minutu' 60478 }, 60479 dual: 'manje od {{count}} minute', 60480 other: 'manje od {{count}} minuta' 60481 }, 60482 xMinutes: { 60483 one: { 60484 standalone: '1 minuta', 60485 withPrepositionAgo: '1 minute', 60486 withPrepositionIn: '1 minutu' 60487 }, 60488 dual: '{{count}} minute', 60489 other: '{{count}} minuta' 60490 }, 60491 aboutXHours: { 60492 one: { 60493 standalone: 'oko 1 sat', 60494 withPrepositionAgo: 'oko 1 sat', 60495 withPrepositionIn: 'oko 1 sat' 60496 }, 60497 dual: 'oko {{count}} sata', 60498 other: 'oko {{count}} sati' 60499 }, 60500 xHours: { 60501 one: { 60502 standalone: '1 sat', 60503 withPrepositionAgo: '1 sat', 60504 withPrepositionIn: '1 sat' 60505 }, 60506 dual: '{{count}} sata', 60507 other: '{{count}} sati' 60508 }, 60509 xDays: { 60510 one: { 60511 standalone: '1 dan', 60512 withPrepositionAgo: '1 dan', 60513 withPrepositionIn: '1 dan' 60514 }, 60515 dual: '{{count}} dana', 60516 other: '{{count}} dana' 60517 }, 60518 aboutXWeeks: { 60519 one: { 60520 standalone: 'oko 1 nedelju', 60521 withPrepositionAgo: 'oko 1 nedelju', 60522 withPrepositionIn: 'oko 1 nedelju' 60523 }, 60524 dual: 'oko {{count}} nedelje', 60525 other: 'oko {{count}} nedelje' 60526 }, 60527 xWeeks: { 60528 one: { 60529 standalone: '1 nedelju', 60530 withPrepositionAgo: '1 nedelju', 60531 withPrepositionIn: '1 nedelju' 60532 }, 60533 dual: '{{count}} nedelje', 60534 other: '{{count}} nedelje' 60535 }, 60536 aboutXMonths: { 60537 one: { 60538 standalone: 'oko 1 mesec', 60539 withPrepositionAgo: 'oko 1 mesec', 60540 withPrepositionIn: 'oko 1 mesec' 60541 }, 60542 dual: 'oko {{count}} meseca', 60543 other: 'oko {{count}} meseci' 60544 }, 60545 xMonths: { 60546 one: { 60547 standalone: '1 mesec', 60548 withPrepositionAgo: '1 mesec', 60549 withPrepositionIn: '1 mesec' 60550 }, 60551 dual: '{{count}} meseca', 60552 other: '{{count}} meseci' 60553 }, 60554 aboutXYears: { 60555 one: { 60556 standalone: 'oko 1 godinu', 60557 withPrepositionAgo: 'oko 1 godinu', 60558 withPrepositionIn: 'oko 1 godinu' 60559 }, 60560 dual: 'oko {{count}} godine', 60561 other: 'oko {{count}} godina' 60562 }, 60563 xYears: { 60564 one: { 60565 standalone: '1 godina', 60566 withPrepositionAgo: '1 godine', 60567 withPrepositionIn: '1 godinu' 60568 }, 60569 dual: '{{count}} godine', 60570 other: '{{count}} godina' 60571 }, 60572 overXYears: { 60573 one: { 60574 standalone: 'preko 1 godinu', 60575 withPrepositionAgo: 'preko 1 godinu', 60576 withPrepositionIn: 'preko 1 godinu' 60577 }, 60578 dual: 'preko {{count}} godine', 60579 other: 'preko {{count}} godina' 60580 }, 60581 almostXYears: { 60582 one: { 60583 standalone: 'gotovo 1 godinu', 60584 withPrepositionAgo: 'gotovo 1 godinu', 60585 withPrepositionIn: 'gotovo 1 godinu' 60586 }, 60587 dual: 'gotovo {{count}} godine', 60588 other: 'gotovo {{count}} godina' 60589 } 60590 }; 60591 60592 function formatDistance(token, count, options) { 60593 options = options || {}; 60594 var result; 60595 60596 if (typeof formatDistanceLocale[token] === 'string') { 60597 result = formatDistanceLocale[token]; 60598 } else if (count === 1) { 60599 if (options.addSuffix) { 60600 if (options.comparison > 0) { 60601 result = formatDistanceLocale[token].one.withPrepositionIn; 60602 } else { 60603 result = formatDistanceLocale[token].one.withPrepositionAgo; 60604 } 60605 } else { 60606 result = formatDistanceLocale[token].one.standalone; 60607 } 60608 } else if (count % 10 > 1 && count % 10 < 5 && // if last digit is between 2 and 4 60609 String(count).substr(-2, 1) !== '1' // unless the 2nd to last digit is "1" 60610 ) { 60611 result = formatDistanceLocale[token].dual.replace('{{count}}', count); 60612 } else { 60613 result = formatDistanceLocale[token].other.replace('{{count}}', count); 60614 } 60615 60616 if (options.addSuffix) { 60617 if (options.comparison > 0) { 60618 return 'za ' + result; 60619 } else { 60620 return 'pre ' + result; 60621 } 60622 } 60623 60624 return result; 60625 } 60626 60627 /***/ 60628 }), 60629 /* 785 */ 60630 /***/ (function (module, __webpack_exports__, __webpack_require__) { 60631 60632 "use strict"; 60633 /* harmony import */ 60634 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 60635 60636 var dateFormats = { 60637 full: 'EEEE, d. MMMM yyyy.', 60638 long: 'd. MMMM yyyy.', 60639 medium: 'd. MMM yy.', 60640 short: 'dd. MM. yy.' 60641 }; 60642 var timeFormats = { 60643 full: 'HH:mm:ss (zzzz)', 60644 long: 'HH:mm:ss z', 60645 medium: 'HH:mm:ss', 60646 short: 'HH:mm' 60647 }; 60648 var dateTimeFormats = { 60649 full: "{{date}} 'u' {{time}}", 60650 long: "{{date}} 'u' {{time}}", 60651 medium: '{{date}} {{time}}', 60652 short: '{{date}} {{time}}' 60653 }; 60654 var formatLong = { 60655 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 60656 formats: dateFormats, 60657 defaultWidth: 'full' 60658 }), 60659 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 60660 formats: timeFormats, 60661 defaultWidth: 'full' 60662 }), 60663 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 60664 formats: dateTimeFormats, 60665 defaultWidth: 'full' 60666 }) 60667 }; 60668 /* harmony default export */ 60669 __webpack_exports__["a"] = (formatLong); 60670 60671 /***/ 60672 }), 60673 /* 786 */ 60674 /***/ (function (module, __webpack_exports__, __webpack_require__) { 60675 60676 "use strict"; 60677 /* harmony export (immutable) */ 60678 __webpack_exports__["a"] = formatRelative; 60679 var formatRelativeLocale = { 60680 lastWeek: function (date) { 60681 var day = date.getUTCDay(); 60682 60683 switch (day) { 60684 case 0: 60685 return "'proÅ¡le nedelje u' p"; 60686 60687 case 3: 60688 return "'proÅ¡le srede u' p"; 60689 60690 case 6: 60691 return "'proÅ¡le subote u' p"; 60692 60693 default: 60694 return "'proÅ¡li' EEEE 'u' p"; 60695 } 60696 }, 60697 yesterday: "'juÄe u' p", 60698 today: "'danas u' p", 60699 tomorrow: "'sutra u' p", 60700 nextWeek: function (date) { 60701 var day = date.getUTCDay(); 60702 60703 switch (day) { 60704 case 0: 60705 return "'sledeÄe nedelje u' p"; 60706 60707 case 3: 60708 return "'sledeÄu sredu u' p"; 60709 60710 case 6: 60711 return "'sledeÄu subotu u' p"; 60712 60713 default: 60714 return "'sledeÄi' EEEE 'u' p"; 60715 } 60716 }, 60717 other: 'P' 60718 }; 60719 60720 function formatRelative(token, date, _baseDate, _options) { 60721 var format = formatRelativeLocale[token]; 60722 60723 if (typeof format === 'function') { 60724 return format(date); 60725 } 60726 60727 return format; 60728 } 60729 60730 /***/ 60731 }), 60732 /* 787 */ 60733 /***/ (function (module, __webpack_exports__, __webpack_require__) { 60734 60735 "use strict"; 60736 /* harmony import */ 60737 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 60738 60739 60740 function ordinalNumber(dirtyNumber) { 60741 var number = Number(dirtyNumber); 60742 return String(number).concat('.'); 60743 } 60744 60745 var eraValues = { 60746 narrow: ['pr.n.e.', 'AD'], 60747 abbreviated: ['pr. Hr.', 'po. Hr.'], 60748 wide: ['Pre Hrista', 'Posle Hrista'] 60749 }; 60750 var monthValues = { 60751 narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], 60752 abbreviated: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'avg', 'sep', 'okt', 'nov', 'dec'], 60753 wide: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'] 60754 }; 60755 var formattingMonthValues = { 60756 narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], 60757 abbreviated: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'avg', 'sep', 'okt', 'nov', 'dec'], 60758 wide: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'] 60759 }; 60760 var quarterValues = { 60761 narrow: ['1.', '2.', '3.', '4.'], 60762 abbreviated: ['1. kv.', '2. kv.', '3. kv.', '4. kv.'], 60763 wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] 60764 }; 60765 var dayValues = { 60766 narrow: ['N', 'P', 'U', 'S', 'Ä', 'P', 'S'], 60767 short: ['ned', 'pon', 'uto', 'sre', 'Äet', 'pet', 'sub'], 60768 abbreviated: ['ned', 'pon', 'uto', 'sre', 'Äet', 'pet', 'sub'], 60769 wide: ['nedelja', 'ponedeljak', 'utorak', 'sreda', 'Äetvrtak', 'petak', 'subota'] 60770 }; 60771 var formattingDayPeriodValues = { 60772 narrow: { 60773 am: 'AM', 60774 pm: 'PM', 60775 midnight: 'ponoÄ', 60776 noon: 'podne', 60777 morning: 'ujutru', 60778 afternoon: 'popodne', 60779 evening: 'uveÄe', 60780 night: 'noÄu' 60781 }, 60782 abbreviated: { 60783 am: 'AM', 60784 pm: 'PM', 60785 midnight: 'ponoÄ', 60786 noon: 'podne', 60787 morning: 'ujutru', 60788 afternoon: 'popodne', 60789 evening: 'uveÄe', 60790 night: 'noÄu' 60791 }, 60792 wide: { 60793 am: 'AM', 60794 pm: 'PM', 60795 midnight: 'ponoÄ', 60796 noon: 'podne', 60797 morning: 'ujutru', 60798 afternoon: 'posle podne', 60799 evening: 'uveÄe', 60800 night: 'noÄu' 60801 } 60802 }; 60803 var dayPeriodValues = { 60804 narrow: { 60805 am: 'AM', 60806 pm: 'PM', 60807 midnight: 'ponoÄ', 60808 noon: 'podne', 60809 morning: 'ujutru', 60810 afternoon: 'popodne', 60811 evening: 'uveÄe', 60812 night: 'noÄu' 60813 }, 60814 abbreviated: { 60815 am: 'AM', 60816 pm: 'PM', 60817 midnight: 'ponoÄ', 60818 noon: 'podne', 60819 morning: 'ujutru', 60820 afternoon: 'popodne', 60821 evening: 'uveÄe', 60822 night: 'noÄu' 60823 }, 60824 wide: { 60825 am: 'AM', 60826 pm: 'PM', 60827 midnight: 'ponoÄ', 60828 noon: 'podne', 60829 morning: 'ujutru', 60830 afternoon: 'posle podne', 60831 evening: 'uveÄe', 60832 night: 'noÄu' 60833 } 60834 }; 60835 var localize = { 60836 ordinalNumber: ordinalNumber, 60837 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 60838 values: eraValues, 60839 defaultWidth: 'wide' 60840 }), 60841 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 60842 values: quarterValues, 60843 defaultWidth: 'wide', 60844 argumentCallback: function (quarter) { 60845 return Number(quarter) - 1; 60846 } 60847 }), 60848 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 60849 values: monthValues, 60850 defaultWidth: 'wide', 60851 formattingValues: formattingMonthValues, 60852 defaultFormattingWidth: 'wide' 60853 }), 60854 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 60855 values: dayValues, 60856 defaultWidth: 'wide' 60857 }), 60858 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 60859 values: dayPeriodValues, 60860 defaultWidth: 'wide', 60861 formattingValues: formattingDayPeriodValues, 60862 defaultFormattingWidth: 'wide' 60863 }) 60864 }; 60865 /* harmony default export */ 60866 __webpack_exports__["a"] = (localize); 60867 60868 /***/ 60869 }), 60870 /* 788 */ 60871 /***/ (function (module, __webpack_exports__, __webpack_require__) { 60872 60873 "use strict"; 60874 /* harmony import */ 60875 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__ = __webpack_require__(5); 60876 /* harmony import */ 60877 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 60878 60879 60880 var matchOrdinalNumberPattern = /^(\d+)\./i; 60881 var parseOrdinalNumberPattern = /\d+/i; 60882 var matchEraPatterns = { 60883 narrow: /^(pr\.n\.e\.|AD)/i, 60884 abbreviated: /^(pr\.\s?Hr\.|po\.\s?Hr\.)/i, 60885 wide: /^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i 60886 }; 60887 var parseEraPatterns = { 60888 any: [/^pr/i, /^(po|nova)/i] 60889 }; 60890 var matchQuarterPatterns = { 60891 narrow: /^[1234]/i, 60892 abbreviated: /^[1234]\.\s?kv\.?/i, 60893 wide: /^[1234]\. kvartal/i 60894 }; 60895 var parseQuarterPatterns = { 60896 any: [/1/i, /2/i, /3/i, /4/i] 60897 }; 60898 var matchMonthPatterns = { 60899 narrow: /^(10|11|12|[123456789])\./i, 60900 abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i, 60901 wide: /^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i 60902 }; 60903 var parseMonthPatterns = { 60904 narrow: [/(10|11|12|[123456789])/i], 60905 any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^avg/i, /^s/i, /^o/i, /^n/i, /^d/i] 60906 }; 60907 var matchDayPatterns = { 60908 narrow: /^[npusÄc]/i, 60909 short: /^(ned|pon|uto|sre|(Äet|cet)|pet|sub)/i, 60910 abbreviated: /^(ned|pon|uto|sre|(Äet|cet)|pet|sub)/i, 60911 wide: /^(nedelja|ponedeljak|utorak|sreda|(Äetvrtak|cetvrtak)|petak|subota)/i 60912 }; 60913 var parseDayPatterns = { 60914 narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], 60915 any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] 60916 }; 60917 var matchDayPeriodPatterns = { 60918 any: /^(am|pm|ponoc|ponoÄ|(po)?podne|uvece|uveÄe|noÄu|posle podne|ujutru)/i 60919 }; 60920 var parseDayPeriodPatterns = { 60921 any: { 60922 am: /^a/i, 60923 pm: /^p/i, 60924 midnight: /^pono/i, 60925 noon: /^pod/i, 60926 morning: /jutro/i, 60927 afternoon: /(posle\s|po)+podne/i, 60928 evening: /(uvece|uveÄe)/i, 60929 night: /(nocu|noÄu)/i 60930 } 60931 }; 60932 var match = { 60933 ordinalNumber: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 60934 matchPattern: matchOrdinalNumberPattern, 60935 parsePattern: parseOrdinalNumberPattern, 60936 valueCallback: function (value) { 60937 return parseInt(value, 10); 60938 } 60939 }), 60940 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 60941 matchPatterns: matchEraPatterns, 60942 defaultMatchWidth: 'wide', 60943 parsePatterns: parseEraPatterns, 60944 defaultParseWidth: 'any' 60945 }), 60946 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 60947 matchPatterns: matchQuarterPatterns, 60948 defaultMatchWidth: 'wide', 60949 parsePatterns: parseQuarterPatterns, 60950 defaultParseWidth: 'any', 60951 valueCallback: function (index) { 60952 return index + 1; 60953 } 60954 }), 60955 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 60956 matchPatterns: matchMonthPatterns, 60957 defaultMatchWidth: 'wide', 60958 parsePatterns: parseMonthPatterns, 60959 defaultParseWidth: 'any' 60960 }), 60961 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 60962 matchPatterns: matchDayPatterns, 60963 defaultMatchWidth: 'wide', 60964 parsePatterns: parseDayPatterns, 60965 defaultParseWidth: 'any' 60966 }), 60967 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchFn_index_js__["a" /* default */]({ 60968 matchPatterns: matchDayPeriodPatterns, 60969 defaultMatchWidth: 'any', 60970 parsePatterns: parseDayPeriodPatterns, 60971 defaultParseWidth: 'any' 60972 }) 60973 }; 60974 /* harmony default export */ 60975 __webpack_exports__["a"] = (match); 60976 60977 /***/ 60978 }), 60979 /* 789 */ 60980 /***/ (function (module, __webpack_exports__, __webpack_require__) { 60981 60982 "use strict"; 60983 /* harmony import */ 60984 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(790); 60985 /* harmony import */ 60986 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(791); 60987 /* harmony import */ 60988 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(792); 60989 /* harmony import */ 60990 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(793); 60991 /* harmony import */ 60992 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(794); 60993 60994 60995 /** 60996 * @type {Locale} 60997 * @category Locales
60998 * @summary Swedish locale. 60999 * @language Swedish 61000 * @iso-639-2 swe 61001 * @author Johannes Ulén [@ejulen]{@link https://github.com/ejulen} 61002 * @author Alexander Nanberg [@alexandernanberg]{@link https://github.com/alexandernanberg} 61003 * @author Henrik Andersson [@limelights]{@link https://github.com/limelights} 61004 */ 61005 61006 var locale = { 61007 code: 'sv', 61008 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 61009 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 61010 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 61011 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 61012 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 61013 options: { 61014 weekStartsOn: 1 61015 /* Monday */ 61016 , 61017 firstWeekContainsDate: 4 61018 } 61019 }; 61020 /* harmony default export */ 61021 __webpack_exports__["a"] = (locale); 61022 61023 /***/ 61024 }), 61025 /* 790 */ 61026 /***/ (function (module, __webpack_exports__, __webpack_require__) { 61027 61028 "use strict"; 61029 /* harmony export (immutable) */ 61030 __webpack_exports__["a"] = formatDistance; 61031 var formatDistanceLocale = { 61032 lessThanXSeconds: { 61033 singular: 'mindre än en sekund', 61034 plural: 'mindre än {{count}} sekunder' 61035 }, 61036 xSeconds: { 61037 singular: 'en sekund', 61038 plural: '{{count}} sekunder' 61039 }, 61040 halfAMinute: 'en halv minut', 61041 lessThanXMinutes: { 61042 singular: 'mindre än en minut', 61043 plural: 'mindre än {{count}} minuter' 61044 }, 61045 xMinutes: { 61046 singular: 'en minut', 61047 plural: '{{count}} minuter' 61048 }, 61049 aboutXHours: { 61050 singular: 'ungefär en timme', 61051 plural: 'ungefär {{count}} timmar' 61052 }, 61053 xHours: { 61054 singular: 'en timme', 61055 plural: '{{count}} timmar' 61056 }, 61057 xDays: { 61058 singular: 'en dag', 61059 plural: '{{count}} dagar' 61060 }, 61061 aboutXWeeks: { 61062 singular: 'ungefär en vecka', 61063 plural: 'ungefär {{count}} vecka' 61064 }, 61065 xWeeks: { 61066 singular: 'en vecka', 61067 plural: '{{count}} vecka' 61068 }, 61069 aboutXMonths: { 61070 singular: 'ungefär en månad', 61071 plural: 'ungefär {{count}} månader' 61072 }, 61073 xMonths: { 61074 singular: 'en månad', 61075 plural: '{{count}} månader' 61076 }, 61077 aboutXYears: { 61078 singular: 'ungefär ett år', 61079 plural: 'ungefär {{count}} år' 61080 }, 61081 xYears: { 61082 singular: 'ett år', 61083 plural: '{{count}} år' 61084 }, 61085 overXYears: { 61086 singular: 'över ett år', 61087 plural: 'över {{count}} år' 61088 }, 61089 almostXYears: { 61090 singular: 'nästan ett år', 61091 plural: 'nästan {{count}} år' 61092 } 61093 }; 61094 var wordMapping = ['noll', 'en', 'två', 'tre', 'fyra', 'fem', 'sex', 'sju', 'åtta', 'nio', 'tio', 'elva', 'tolv']; 61095 61096 function formatDistance(token, count, options) { 61097 options = options || {
vendor: 19,668 bytes, lines 61098-61525
61098 onlyNumeric: false 61099 }; 61100 var translation = formatDistanceLocale[token]; 61101 var result; 61102 61103 if (typeof translation === 'string') { 61104 result = translation; 61105 } else if (count === 0 || count > 1) { 61106 if (options.onlyNumeric) { 61107 result = translation.plural.replace('{{count}}', count); 61108 } else { 61109 result = translation.plural.replace('{{count}}', count < 13 ? wordMapping[count] : count); 61110 } 61111 } else { 61112 result = translation.singular; 61113 } 61114 61115 if (options.addSuffix) { 61116 if (options.comparison > 0) { 61117 return 'om ' + result; 61118 } else { 61119 return result + ' sedan'; 61120 } 61121 } 61122 61123 return result; 61124 } 61125 61126 /***/ 61127 }), 61128 /* 791 */ 61129 /***/ (function (module, __webpack_exports__, __webpack_require__) { 61130 61131 "use strict"; 61132 /* harmony import */ 61133 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 61134 61135 var dateFormats = { 61136 full: 'EEEE d MMMM y', 61137 long: 'd MMMM y', 61138 medium: 'd MMM y', 61139 short: 'y-MM-dd' 61140 }; 61141 var timeFormats = { 61142 full: "'kl'. HH:mm:ss zzzz", 61143 long: 'HH:mm:ss z', 61144 medium: 'HH:mm:ss', 61145 short: 'HH:mm' 61146 }; 61147 var dateTimeFormats = { 61148 full: "{{date}} 'kl.' {{time}}", 61149 long: "{{date}} 'kl.' {{time}}", 61150 medium: '{{date}} {{time}}', 61151 short: '{{date}} {{time}}' 61152 }; 61153 var formatLong = { 61154 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 61155 formats: dateFormats, 61156 defaultWidth: 'full' 61157 }), 61158 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 61159 formats: timeFormats, 61160 defaultWidth: 'full' 61161 }), 61162 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 61163 formats: dateTimeFormats, 61164 defaultWidth: 'full' 61165 }) 61166 }; 61167 /* harmony default export */ 61168 __webpack_exports__["a"] = (formatLong); 61169 61170 /***/ 61171 }), 61172 /* 792 */ 61173 /***/ (function (module, __webpack_exports__, __webpack_require__) { 61174 61175 "use strict"; 61176 /* harmony export (immutable) */ 61177 __webpack_exports__["a"] = formatRelative; 61178 var formatRelativeLocale = { 61179 lastWeek: "'i' EEEE's kl.' p", 61180 yesterday: "'igÃ¥r kl.' p", 61181 today: "'idag kl.' p", 61182 tomorrow: "'imorgon kl.' p", 61183 nextWeek: "EEEE 'kl.' p", 61184 other: 'P' 61185 }; 61186 61187 function formatRelative(token, _date, _baseDate, _options) { 61188 return formatRelativeLocale[token]; 61189 } 61190 61191 /***/ 61192 }), 61193 /* 793 */ 61194 /***/ (function (module, __webpack_exports__, __webpack_require__) { 61195 61196 "use strict"; 61197 /* harmony import */ 61198 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 61199 61200 var eraValues = { 61201 narrow: ['f.Kr.', 'e.Kr.'], 61202 abbreviated: ['f.Kr.', 'e.Kr.'], 61203 wide: ['före Kristus', 'efter Kristus'] 61204 }; 61205 var quarterValues = { 61206 narrow: ['1', '2', '3', '4'], 61207 abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], 61208 wide: ['1:a kvartalet', '2:a kvartalet', '3:e kvartalet', '4:e kvartalet'] 61209 }; 61210 var monthValues = { 61211 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], 61212 abbreviated: ['jan.', 'feb.', 'mars', 'apr.', 'maj', 'juni', 'juli', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'], 61213 wide: ['januari', 'februari', 'mars', 'april', 'maj', 'juni', 'juli', 'augusti', 'september', 'oktober', 'november', 'december'] 61214 }; 61215 var dayValues = { 61216 narrow: ['S', 'M', 'T', 'O', 'T', 'F', 'L'], 61217 short: ['sö', 'mÃ¥', 'ti', 'on', 'to', 'fr', 'lö'], 61218 abbreviated: ['sön', 'mÃ¥n', 'tis', 'ons', 'tor', 'fre', 'lör'], 61219 wide: ['söndag', 'mÃ¥ndag', 'tisdag', 'onsdag', 'torsdag', 'fredag', 'lördag'] // https://www.unicode.org/cldr/charts/32/summary/sv.html#1888 61220 61221 }; 61222 var dayPeriodValues = { 61223 narrow: { 61224 am: 'fm', 61225 pm: 'em', 61226 midnight: 'midnatt', 61227 noon: 'middag', 61228 morning: 'morg.', 61229 afternoon: 'efterm.', 61230 evening: 'kväll', 61231 night: 'natt' 61232 }, 61233 abbreviated: { 61234 am: 'f.m.', 61235 pm: 'e.m.', 61236 midnight: 'midnatt', 61237 noon: 'middag', 61238 morning: 'morgon', 61239 afternoon: 'efterm.', 61240 evening: 'kväll', 61241 night: 'natt' 61242 }, 61243 wide: { 61244 am: 'förmiddag', 61245 pm: 'eftermiddag', 61246 midnight: 'midnatt', 61247 noon: 'middag', 61248 morning: 'morgon', 61249 afternoon: 'eftermiddag', 61250 evening: 'kväll', 61251 night: 'natt' 61252 } 61253 }; 61254 var formattingDayPeriodValues = { 61255 narrow: { 61256 am: 'fm', 61257 pm: 'em', 61258 midnight: 'midnatt', 61259 noon: 'middag', 61260 morning: 'pÃ¥ morg.', 61261 afternoon: 'pÃ¥ efterm.', 61262 evening: 'pÃ¥ kvällen', 61263 night: 'pÃ¥ natten' 61264 }, 61265 abbreviated: { 61266 am: 'fm', 61267 pm: 'em', 61268 midnight: 'midnatt', 61269 noon: 'middag', 61270 morning: 'pÃ¥ morg.', 61271 afternoon: 'pÃ¥ efterm.', 61272 evening: 'pÃ¥ kvällen', 61273 night: 'pÃ¥ natten' 61274 }, 61275 wide: { 61276 am: 'fm', 61277 pm: 'em', 61278 midnight: 'midnatt', 61279 noon: 'middag', 61280 morning: 'pÃ¥ morgonen', 61281 afternoon: 'pÃ¥ eftermiddagen', 61282 evening: 'pÃ¥ kvällen', 61283 night: 'pÃ¥ natten' 61284 } 61285 }; 61286 61287 function ordinalNumber(dirtyNumber) { 61288 var number = Number(dirtyNumber); 61289 var rem100 = number % 100; 61290 61291 if (rem100 > 20 || rem100 < 10) { 61292 switch (rem100 % 10) { 61293 case 1: 61294 case 2: 61295 return number + ':a'; 61296 } 61297 } 61298 61299 return number + ':e'; 61300 } 61301 61302 var localize = { 61303 ordinalNumber: ordinalNumber, 61304 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 61305 values: eraValues, 61306 defaultWidth: 'wide' 61307 }), 61308 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 61309 values: quarterValues, 61310 defaultWidth: 'wide', 61311 argumentCallback: function (quarter) { 61312 return Number(quarter) - 1; 61313 } 61314 }), 61315 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 61316 values: monthValues, 61317 defaultWidth: 'wide' 61318 }), 61319 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 61320 values: dayValues, 61321 defaultWidth: 'wide' 61322 }), 61323 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 61324 values: dayPeriodValues, 61325 defaultWidth: 'wide', 61326 formattingValues: formattingDayPeriodValues, 61327 defaultFormattingWidth: 'wide' 61328 }) 61329 }; 61330 /* harmony default export */ 61331 __webpack_exports__["a"] = (localize); 61332 61333 /***/ 61334 }), 61335 /* 794 */ 61336 /***/ (function (module, __webpack_exports__, __webpack_require__) { 61337 61338 "use strict"; 61339 /* harmony import */ 61340 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 61341 /* harmony import */ 61342 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 61343 61344 61345 var matchOrdinalNumberPattern = /^(\d+)(:a|:e)?/i; 61346 var parseOrdinalNumberPattern = /\d+/i; 61347 var matchEraPatterns = { 61348 narrow: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, 61349 abbreviated: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, 61350 wide: /^(före Kristus|före vÃ¥r tid|efter Kristus|vÃ¥r tid)/i 61351 }; 61352 var parseEraPatterns = { 61353 any: [/^f/i, /^[ev]/i] 61354 }; 61355 var matchQuarterPatterns = { 61356 narrow: /^[1234]/i, 61357 abbreviated: /^q[1234]/i, 61358 wide: /^[1234](:a|:e)? kvartalet/i 61359 }; 61360 var parseQuarterPatterns = { 61361 any: [/1/i, /2/i, /3/i, /4/i] 61362 }; 61363 var matchMonthPatterns = { 61364 narrow: /^[jfmasond]/i, 61365 abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|aug|sep|okt|nov|dec)\.?/i, 61366 wide: /^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i 61367 }; 61368 var parseMonthPatterns = { 61369 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 61370 any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] 61371 }; 61372 var matchDayPatterns = { 61373 narrow: /^[smtofl]/i, 61374 short: /^(sö|mÃ¥|ti|on|to|fr|lö)/i, 61375 abbreviated: /^(sön|mÃ¥n|tis|ons|tor|fre|lör)/i, 61376 wide: /^(söndag|mÃ¥ndag|tisdag|onsdag|torsdag|fredag|lördag)/i 61377 }; 61378 var parseDayPatterns = { 61379 any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i] 61380 }; 61381 var matchDayPeriodPatterns = { 61382 any: /^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(pÃ¥) (morgonen|eftermiddagen|kvällen|natten))/i 61383 }; 61384 var parseDayPeriodPatterns = { 61385 any: { 61386 am: /^f/i, 61387 pm: /^e/i, 61388 midnight: /^midn/i, 61389 noon: /^midd/i, 61390 morning: /morgon/i, 61391 afternoon: /eftermiddag/i, 61392 evening: /kväll/i, 61393 night: /natt/i 61394 } 61395 }; 61396 var match = { 61397 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 61398 matchPattern: matchOrdinalNumberPattern, 61399 parsePattern: parseOrdinalNumberPattern, 61400 valueCallback: function (value) { 61401 return parseInt(value, 10); 61402 } 61403 }), 61404 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 61405 matchPatterns: matchEraPatterns, 61406 defaultMatchWidth: 'wide', 61407 parsePatterns: parseEraPatterns, 61408 defaultParseWidth: 'any' 61409 }), 61410 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 61411 matchPatterns: matchQuarterPatterns, 61412 defaultMatchWidth: 'wide', 61413 parsePatterns: parseQuarterPatterns, 61414 defaultParseWidth: 'any', 61415 valueCallback: function (index) { 61416 return index + 1; 61417 } 61418 }), 61419 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 61420 matchPatterns: matchMonthPatterns, 61421 defaultMatchWidth: 'wide', 61422 parsePatterns: parseMonthPatterns, 61423 defaultParseWidth: 'any' 61424 }), 61425 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 61426 matchPatterns: matchDayPatterns, 61427 defaultMatchWidth: 'wide', 61428 parsePatterns: parseDayPatterns, 61429 defaultParseWidth: 'any' 61430 }), 61431 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 61432 matchPatterns: matchDayPeriodPatterns, 61433 defaultMatchWidth: 'any', 61434 parsePatterns: parseDayPeriodPatterns, 61435 defaultParseWidth: 'any' 61436 }) 61437 }; 61438 /* harmony default export */ 61439 __webpack_exports__["a"] = (match); 61440 61441 /***/ 61442 }), 61443 /* 795 */ 61444 /***/ (function (module, __webpack_exports__, __webpack_require__) { 61445 61446 "use strict"; 61447 /* harmony import */ 61448 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(796); 61449 /* harmony import */ 61450 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(797); 61451 /* harmony import */ 61452 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(798); 61453 /* harmony import */ 61454 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(799); 61455 /* harmony import */ 61456 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(800); 61457 61458 61459 /** 61460 * @type {Locale} 61461 * @category Locales 61462 * @summary Tamil locale (India). 61463 * @language Tamil 61464 * @iso-639-2 tam 61465 * @author Sibiraj [@sibiraj-s]{@link https://github.com/sibiraj-s} 61466 */ 61467 61468 var locale = { 61469 code: 'ta', 61470 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 61471 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 61472 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 61473 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 61474 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 61475 options: { 61476 weekStartsOn: 1 61477 /* Monday */ 61478 , 61479 firstWeekContainsDate: 4 61480 } 61481 }; 61482 /* harmony default export */ 61483 __webpack_exports__["a"] = (locale); 61484 61485 /***/ 61486 }), 61487 /* 796 */ 61488 /***/ (function (module, __webpack_exports__, __webpack_require__) { 61489 61490 "use strict"; 61491 /* harmony export (immutable) */ 61492 __webpack_exports__["a"] = formatDistance; 61493 var formatDistanceLocale = { 61494 lessThanXSeconds: { 61495 one: { 61496 default: 'à®à®°à¯ வினாà®à®¿à®à¯à®à¯ à®à¯à®±à¯à®µà®¾à®', 61497 in: 'à®à®°à¯ வினாà®à®¿à®à¯à®à¯à®³à¯', 61498 ago: 'à®à®°à¯ வினாà®à®¿à®à¯à®à¯ à®®à¯à®©à¯à®ªà¯' 61499 }, 61500 other: { 61501 default: '{{count}} வினாà®à®¿à®à®³à¯à®à¯à®à¯ à®à¯à®±à¯à®µà®¾à®', 61502 in: '{{count}} வினாà®à®¿à®à®³à¯à®à¯à®à¯à®³à¯', 61503 ago: '{{count}} வினாà®à®¿à®à®³à¯à®à¯à®à¯ à®®à¯à®©à¯à®ªà¯' 61504 } 61505 }, 61506 xSeconds: { 61507 one: { 61508 default: '1 வினாà®à®¿', 61509 in: '1 வினாà®à®¿à®¯à®¿à®²à¯', 61510 ago: '1 வினாà®à®¿ à®®à¯à®©à¯à®ªà¯' 61511 }, 61512 other: { 61513 default: '{{count}} விநாà®à®¿à®à®³à¯', 61514 in: '{{count}} வினாà®à®¿à®à®³à®¿à®²à¯', 61515 ago: '{{count}} விநாà®à®¿à®à®³à¯à®à¯à®à¯ à®®à¯à®©à¯à®ªà¯' 61516 } 61517 }, 61518 halfAMinute: { 61519 default: '஠ர௠நிமிà®à®®à¯', 61520 in: '஠ர௠நிமிà®à®¤à¯à®¤à®¿à®²à¯', 61521 ago: '஠ர௠நிமிà®à®®à¯ à®®à¯à®©à¯à®ªà¯' 61522 }, 61523 lessThanXMinutes: { 61524 one: { 61525 default: 'à®à®°à¯ நிமிà®à®¤à¯à®¤à®¿à®±à¯à®à¯à®®à¯ à®à¯
61525à®±à¯à®µà®¾à®', 61526 in: 'à®à®°à¯ நிமிà®à®¤à¯à®¤à®¿à®±à¯à®à¯à®³à¯', 61527 ago: 'à®à®°à¯ நிமிà®à®¤à¯à®¤à®¿à®±à¯à®à¯ à®®à¯à®©à¯à®ªà¯' 61528 }, 61529 other: { 61530 default: '{{count}} நிமிà®à®à¯à®à®³à¯à®à¯à®à¯à®®à¯ à®à¯à®±à¯à®µà®¾à®', 61531 in: '{{count}} நிமிà®à®à¯à®à®³à¯à®à¯à®à¯à®³à¯', 61532 ago: '{{count}} நிமிà®à®à¯à®à®³à¯à®à¯à®à¯ à®®à¯à®©à¯à®ªà¯' 61533 } 61534 }, 61535 xMinutes: { 61536 one: { 61537 default: '1 நிமிà®à®®à¯', 61538 in: '1 நிமிà®à®¤à¯à®¤à®¿à®²à¯', 61539 ago: '1 நிமிà®à®®à¯ à®®à¯à®©à¯à®ªà¯' 61540 }, 61541 other: { 61542 default: '{{count}} நிமிà®à®à¯à®à®³à¯', 61543 in: '{{count}} நிமிà®à®à¯à®à®³à®¿à®²à¯', 61544 ago: '{{count}} நிமிà®à®à¯à®à®³à¯à®à¯à®à¯ à®®à¯à®©à¯à®ªà¯' 61545 } 61546 }, 61547 aboutXHours: { 61548 one: { 61549 default: 'à®à¯à®®à®¾à®°à¯ 1 மணி நà¯à®°à®®à¯', 61550 in: 'à®à¯à®®à®¾à®°à¯ 1 மணி நà¯à®°à®¤à¯à®¤à®¿à®²à¯', 61551 ago: 'à®à¯à®®à®¾à®°à¯ 1 மணி நà¯à®°à®¤à¯à®¤à®¿à®±à¯à®à¯ à®®à¯à®©à¯à®ªà¯' 61552 }, 61553 other: { 61554 default: 'à®à¯à®®à®¾à®°à¯ {{count}} மணி நà¯à®°à®®à¯', 61555 in: 'à®à¯à®®à®¾à®°à¯ {{count}} மணி நà¯à®°à®¤à¯à®¤à®¿à®±à¯à®à¯ à®®à¯à®©à¯à®ªà¯', 61556 ago: 'à®à¯à®®à®¾à®°à¯ {{count}} மணி நà¯à®°à®¤à¯à®¤à®¿à®²à¯' 61557 } 61558 }, 61559 xHours: { 61560 one: { 61561 default: '1 மணி நà¯à®°à®®à¯', 61562 in: '1 மணி நà¯à®°à®¤à¯à®¤à®¿à®²à¯', 61563 ago: '1 மணி நà¯à®°à®¤à¯à®¤à®¿à®±à¯à®à¯ à®®à¯à®©à¯à®ªà¯' 61564 }, 61565 other: { 61566 default: '{{count}} மணி நà¯à®°à®®à¯', 61567 in: '{{count}} மணி நà¯à®°à®¤à¯à®¤à®¿à®²à¯', 61568 ago: '{{count}} மணி நà¯à®°à®¤à¯à®¤à®¿à®±à¯à®à¯ à®®à¯à®©à¯à®ªà¯' 61569 } 61570 }, 61571 xDays: { 61572 one: { 61573 default: '1 நாளà¯', 61574 in: '1 நாளிலà¯', 61575 ago: '1 நாள௠மà¯à®©à¯à®ªà¯' 61576 }, 61577 other: { 61578 default: '{{count}} நாà®à¯à®à®³à¯', 61579 in: '{{count}} நாà®à¯à®à®³à®¿à®²à¯', 61580 ago: '{{count}} நாà®à¯à®à®³à¯à®à¯à®à¯ à®®à¯à®©à¯à®ªà¯' 61581 } 61582 }, 61583 aboutXWeeks: { 61584 one: { 61585 default: 'à®à¯à®®à®¾à®°à¯ 1 வாரமà¯', 61586 in: 'à®à¯à®®à®¾à®°à¯ 1 வாரதà¯à®¤à®¿à®²à¯', 61587 ago: 'à®à¯à®®à®¾à®°à¯ 1 வாரம௠மà¯à®©à¯à®ªà¯' 61588 }, 61589 other: { 61590 default: 'à®à¯à®®à®¾à®°à¯ {{count}} வாரà®à¯à®à®³à¯', 61591 in: 'à®à¯à®®à®¾à®°à¯ {{count}} வாரà®à¯à®à®³à®¿à®²à¯', 61592 ago: 'à®à¯à®®à®¾à®°à¯ {{count}} வாரà®à¯à®à®³à¯à®à¯à®à¯ à®®à¯à®©à¯à®ªà¯' 61593 } 61594 }, 61595 xWeeks: { 61596 one: { 61597 default: '1 வாரமà¯', 61598 in: '1 வாரதà¯à®¤à®¿à®²à¯', 61599 ago: '1 வாரம௠மà¯à®©à¯à®ªà¯' 61600 }, 61601 other: { 61602 default: '{{count}} வாரà®à¯à®à®³à¯', 61603 in: '{{count}} வாரà®à¯à®à®³à®¿à®²à¯', 61604 ago: '{{count}} வாரà®à¯à®à®³à¯à®à¯à®à¯ à®®à¯à®©à¯à®ªà¯' 61605 } 61606 }, 61607 aboutXMonths: { 61608 one: { 61609 default: 'à®à¯à®®à®¾à®°à¯ 1 மாதமà¯', 61610 in: 'à®à¯à®®à®¾à®°à¯ 1 மாததà¯à®¤à®¿à®²à¯', 61611 ago: 'à®à¯à®®à®¾à®°à¯ 1 மாததà¯à®¤à®¿à®±à¯à®à¯ à®®à¯à®©à¯à®ªà¯' 61612 }, 61613 other: { 61614 default: 'à®à¯à®®à®¾à®°à¯ {{count}} மாதà®à¯à®à®³à¯', 61615 in: 'à®à¯à®®à®¾à®°à¯ {{count}} மாதà®à¯à®à®³à®¿à®²à¯', 61616 ago: 'à®à¯à®®à®¾à®°à¯ {{count}} மாதà®à¯à®à®³à¯à®à¯à®à¯ à®®à¯à®©à¯à®ªà¯' 61617 } 61618 }, 61619 xMonths: { 61620 one: { 61621 default: '1 மாதமà¯',
vendor: 9,733 bytes, lines 61622-61814
61622 in: '1 மாததà¯à®¤à®¿à®²à¯', 61623 ago: '1 மாதம௠மà¯à®©à¯à®ªà¯' 61624 }, 61625 other: { 61626 default: '{{count}} மாதà®à¯à®à®³à¯', 61627 in: '{{count}} மாதà®à¯à®à®³à®¿à®²à¯', 61628 ago: '{{count}} மாதà®à¯à®à®³à¯à®à¯à®à¯ à®®à¯à®©à¯à®ªà¯' 61629 } 61630 }, 61631 aboutXYears: { 61632 one: { 61633 default: 'à®à¯à®®à®¾à®°à¯ 1 வரà¯à®à®®à¯', 61634 in: 'à®à¯à®®à®¾à®°à¯ 1 à®à®£à¯à®à®¿à®²à¯', 61635 ago: 'à®à¯à®®à®¾à®°à¯ 1 வரà¯à®à®®à¯ à®®à¯à®©à¯à®ªà¯' 61636 }, 61637 other: { 61638 default: 'à®à¯à®®à®¾à®°à¯ {{count}} à®à®£à¯à®à¯à®à®³à¯', 61639 in: 'à®à¯à®®à®¾à®°à¯ {{count}} à®à®£à¯à®à¯à®à®³à®¿à®²à¯', 61640 ago: 'à®à¯à®®à®¾à®°à¯ {{count}} à®à®£à¯à®à¯à®à®³à¯à®à¯à®à¯ à®®à¯à®©à¯à®ªà¯' 61641 } 61642 }, 61643 xYears: { 61644 one: { 61645 default: '1 வரà¯à®à®®à¯', 61646 in: '1 à®à®£à¯à®à®¿à®²à¯', 61647 ago: '1 வரà¯à®à®®à¯ à®®à¯à®©à¯à®ªà¯' 61648 }, 61649 other: { 61650 default: '{{count}} à®à®£à¯à®à¯à®à®³à¯', 61651 in: '{{count}} à®à®£à¯à®à¯à®à®³à®¿à®²à¯', 61652 ago: '{{count}} à®à®£à¯à®à¯à®à®³à¯à®à¯à®à¯ à®®à¯à®©à¯à®ªà¯' 61653 } 61654 }, 61655 overXYears: { 61656 one: { 61657 default: '1 வரà¯à®à®¤à¯à®¤à®¿à®±à¯à®à¯ à®®à¯à®²à¯', 61658 in: '1 வரà¯à®à®¤à¯à®¤à®¿à®±à¯à®à¯à®®à¯ à®®à¯à®²à®¾à®', 61659 ago: '1 வரà¯à®à®®à¯ à®®à¯à®©à¯à®ªà¯' 61660 }, 61661 other: { 61662 default: '{{count}} à®à®£à¯à®à¯à®à®³à¯à®à¯à®à¯à®®à¯ à®®à¯à®²à®¾à®', 61663 in: '{{count}} à®à®£à¯à®à¯à®à®³à®¿à®²à¯', 61664 ago: '{{count}} à®à®£à¯à®à¯à®à®³à¯à®à¯à®à¯ à®®à¯à®©à¯à®ªà¯' 61665 } 61666 }, 61667 almostXYears: { 61668 one: { 61669 default: 'à®à®¿à®à¯à®à®¤à¯à®¤à®à¯à® 1 வரà¯à®à®®à¯', 61670 in: 'à®à®¿à®à¯à®à®¤à¯à®¤à®à¯à® 1 à®à®£à¯à®à®¿à®²à¯', 61671 ago: 'à®à®¿à®à¯à®à®¤à¯à®¤à®à¯à® 1 வரà¯à®à®®à¯ à®®à¯à®©à¯à®ªà¯' 61672 }, 61673 other: { 61674 default: 'à®à®¿à®à¯à®à®¤à¯à®¤à®à¯à® {{count}} à®à®£à¯à®à¯à®à®³à¯', 61675 in: 'à®à®¿à®à¯à®à®¤à¯à®¤à®à¯à® {{count}} à®à®£à¯à®à¯à®à®³à®¿à®²à¯', 61676 ago: 'à®à®¿à®à¯à®à®¤à¯à®¤à®à¯à® {{count}} à®à®£à¯à®à¯à®à®³à¯à®à¯à®à¯ à®®à¯à®©à¯à®ªà¯' 61677 } 61678 } 61679 }; 61680 61681 function getFormatDistanceLocaleWithSuffix(resultObj, options) { 61682 if (options.addSuffix) { 61683 if (options.comparison > 0) { 61684 return resultObj.in; 61685 } else { 61686 return resultObj.ago; 61687 } 61688 } 61689 61690 return resultObj.default; 61691 } 61692 61693 function formatDistance(token, count) { 61694 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; 61695 var result; 61696 61697 if (formatDistanceLocale[token].default) { 61698 result = getFormatDistanceLocaleWithSuffix(formatDistanceLocale[token], options); 61699 } else if (count === 1) { 61700 result = getFormatDistanceLocaleWithSuffix(formatDistanceLocale[token].one, options); 61701 } else { 61702 result = getFormatDistanceLocaleWithSuffix(formatDistanceLocale[token].other, options); 61703 } 61704 61705 return result.replace('{{count}}', count); 61706 } 61707 61708 /***/ 61709 }), 61710 /* 797 */ 61711 /***/ (function (module, __webpack_exports__, __webpack_require__) { 61712 61713 "use strict"; 61714 /* harmony import */ 61715 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 61716// Ref: https://www.unicode.org/cldr/charts/32/summary/ta.html 61717 // CLDR #1846 - #1849 61718 61719 var dateFormats = { 61720 full: 'EEEE, d MMMM, y', 61721 long: 'd MMMM, y', 61722 medium: 'd MMM, y', 61723 short: 'd/M/yy' // CLDR #1850 - #1853 61724 61725 }; 61726 var timeFormats = { 61727 full: 'a h:mm:ss zzzz', 61728 long: 'a h:mm:ss z', 61729 medium: 'a h:mm:ss', 61730 short: 'a h:mm' 61731 }; 61732 var dateTimeFormats = { 61733 full: '{{date}} {{time}}', 61734 long: '{{date}} {{time}}', 61735 medium: '{{date}}, {{time}}', 61736 short: '{{date}}, {{time}}' 61737 }; 61738 var formatLong = { 61739 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 61740 formats: dateFormats, 61741 defaultWidth: 'full' 61742 }), 61743 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 61744 formats: timeFormats, 61745 defaultWidth: 'full' 61746 }), 61747 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 61748 formats: dateTimeFormats, 61749 defaultWidth: 'full' 61750 }) 61751 }; 61752 /* harmony default export */ 61753 __webpack_exports__["a"] = (formatLong); 61754 61755 /***/ 61756 }), 61757 /* 798 */ 61758 /***/ (function (module, __webpack_exports__, __webpack_require__) { 61759 61760 "use strict"; 61761 /* harmony export (immutable) */ 61762 __webpack_exports__["a"] = formatRelative; 61763 var formatRelativeLocale = { 61764 lastWeek: "'à®à®à®¨à¯à®¤' eeee p 'மணிà®à¯à®à¯'", 61765 yesterday: "'நà¯à®±à¯à®±à¯ ' p 'மணிà®à¯à®à¯'", 61766 today: "'à®à®©à¯à®±à¯ ' p 'மணிà®à¯à®à¯'", 61767 tomorrow: "'நாள௠' p 'மணிà®à¯à®à¯'", 61768 nextWeek: "eeee p 'மணிà®à¯à®à¯'", 61769 other: 'P' 61770 }; 61771 61772 function formatRelative(token, _date, _baseDate, _options) { 61773 return formatRelativeLocale[token]; 61774 } 61775 61776 /***/ 61777 }), 61778 /* 799 */ 61779 /***/ (function (module, __webpack_exports__, __webpack_require__) { 61780 61781 "use strict"; 61782 /* harmony import */ 61783 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 61784// Ref: https://www.unicode.org/cldr/charts/32/summary/ta.html 61785 61786 var eraValues = { 61787 narrow: ['à®à®¿.à®®à¯.', 'à®à®¿.பி.'], 61788 abbreviated: ['à®à®¿.à®®à¯.', 'à®à®¿.பி.'], 61789 // CLDR #1624, #1626 61790 wide: ['à®à®¿à®±à®¿à®¸à¯à®¤à¯à®µà¯à®à¯à®à¯ à®®à¯à®©à¯', '஠னà¯à®©à¯ à®à¯à®®à®¿à®©à®¿'] // CLDR #1620, #1622 61791 61792 }; 61793 var quarterValues = { 61794 // CLDR #1644 - #1647 61795 narrow: ['1', '2', '3', '4'], 61796 // CLDR #1636 - #1639 61797 abbreviated: ['à®à®¾à®²à®¾.1', 'à®à®¾à®²à®¾.2', 'à®à®¾à®²à®¾.3', 'à®à®¾à®²à®¾.4'], 61798 // CLDR #1628 - #1631 61799 wide: ['à®à®©à¯à®±à®¾à®®à¯ à®à®¾à®²à®¾à®£à¯à®à¯', 'à®à®°à®£à¯à®à®¾à®®à¯ à®à®¾à®²à®¾à®£à¯à®à¯', 'à®®à¯à®©à¯à®±à®¾à®®à¯ à®à®¾à®²à®¾à®£à¯à®à¯', 'நானà¯à®à®¾à®®à¯ à®à®¾à®²à®¾à®£à¯à®à¯'] 61800 }; 61801 var monthValues = { 61802 // CLDR #700 - #711 61803 narrow: ['à®', 'பி', 'மா', 'à®', 'à®®à¯', 'à®à¯', 'à®à¯', 'à®', 'à®à¯', 'à® ', 'ந', 'à®à®¿'], 61804 // CLDR #1676 - #1687 61805 abbreviated: ['à®à®©.', 'பிபà¯.', 'மாரà¯.', 'à®à®ªà¯.', 'à®®à¯', 'à®à¯à®©à¯', 'à®à¯à®²à¯', 'à®à®.', 'à®à¯à®ªà¯.', 'à® à®à¯.', 'நவ.', 'à®à®¿à®.'], 61806 // CLDR #1652 - #1663 61807 wide: ['à®à®©à®µà®°à®¿', // January 61808 'பிபà¯à®°à®µà®°à®¿', // February 61809 'மாரà¯à®à¯', // March 61810 'à®à®ªà¯à®°à®²à¯', // April 61811 'à®®à¯', // May 61812 'à®à¯à®©à¯', // June 61813 'à®à¯à®²à¯', // July 61814 'à®à®à®¸à¯à®à¯', // August
61815 'à®à¯à®ªà¯à®à®®à¯à®ªà®°à¯', // September 61816 'à® à®à¯à®à¯à®ªà®°à¯', // October 61817 'நவமà¯à®ªà®°à¯', // November 61818 'à®à®¿à®à®®à¯à®ªà®°à¯' // December 61819 ] 61820 }; 61821 var dayValues = { 61822 // CLDR #1766 - #1772 61823 narrow: ['à®à®¾', 'தி', 'à®à¯', 'பà¯', 'வி', 'வà¯', 'à®'], 61824 // CLDR #1752 - #1758 61825 short: ['à®à®¾', 'தி', 'à®à¯', 'பà¯', 'வி', 'வà¯', 'à®'], 61826 // CLDR #1738 - #1744 61827 abbreviated: ['à®à®¾à®¯à®¿.', 'திà®à¯.', 'à®à¯à®µà¯.', 'பà¯à®¤.', 'வியா.', 'வà¯à®³à¯.', 'à®à®©à®¿'], 61828 // CLDR #1724 - #1730 61829 wide: ['à®à®¾à®¯à®¿à®±à¯', // Sunday 61830 'திà®à¯à®à®³à¯', // Monday 61831 'à®à¯à®µà¯à®µà®¾à®¯à¯', // Tuesday 61832 'பà¯à®¤à®©à¯', // Wednesday 61833 'வியாழனà¯', // Thursday 61834 'வà¯à®³à¯à®³à®¿', // Friday 61835 'à®à®©à®¿' // Saturday 61836 ] // CLDR #1780 - #1845 61837 61838 }; 61839 var dayPeriodValues = { 61840 narrow: { 61841 am: 'à®®à¯.ப', 61842 pm: 'பி.ப', 61843 midnight: 'நளà¯.', 61844 noon: 'நணà¯.', 61845 morning: 'à®à®¾.', 61846 afternoon: 'மதி.', 61847 evening: 'மா.', 61848 night: 'à®à®°.' 61849 }, 61850 abbreviated: { 61851 am: 'à®®à¯à®±à¯à®ªà®à®²à¯', 61852 pm: 'பிறà¯à®ªà®à®²à¯', 61853 midnight: 'நளà¯à®³à®¿à®°à®µà¯', 61854 noon: 'நணà¯à®ªà®à®²à¯', 61855 morning: 'à®à®¾à®²à¯', 61856 afternoon: 'மதியமà¯', 61857 evening: 'மாலà¯', 61858 night: 'à®à®°à®µà¯' 61859 }, 61860 wide: { 61861 am: 'à®®à¯à®±à¯à®ªà®à®²à¯', 61862 pm: 'பிறà¯à®ªà®à®²à¯', 61863 midnight: 'நளà¯à®³à®¿à®°à®µà¯', 61864 noon: 'நணà¯à®ªà®à®²à¯', 61865 morning: 'à®à®¾à®²à¯', 61866 afternoon: 'மதியமà¯', 61867 evening: 'மாலà¯', 61868 night: 'à®à®°à®µà¯' 61869 } // CLDR #1780 - #1845 61870 61871 }; 61872 var formattingDayPeriodValues = { 61873 narrow: { 61874 am: 'à®®à¯.ப', 61875 pm: 'பி.ப', 61876 midnight: 'நளà¯.', 61877 noon: 'நணà¯.', 61878 morning: 'à®à®¾.', 61879 afternoon: 'மதி.', 61880 evening: 'மா.', 61881 night: 'à®à®°.' 61882 }, 61883 abbreviated: { 61884 am: 'à®®à¯à®±à¯à®ªà®à®²à¯', 61885 pm: 'பிறà¯à®ªà®à®²à¯', 61886 midnight: 'நளà¯à®³à®¿à®°à®µà¯', 61887 noon: 'நணà¯à®ªà®à®²à¯', 61888 morning: 'à®à®¾à®²à¯', 61889 afternoon: 'மதியமà¯', 61890 evening: 'மாலà¯', 61891 night: 'à®à®°à®µà¯' 61892 }, 61893 wide: { 61894 am: 'à®®à¯à®±à¯à®ªà®à®²à¯', 61895 pm: 'பிறà¯à®ªà®à®²à¯', 61896 midnight: 'நளà¯à®³à®¿à®°à®µà¯', 61897 noon: 'நணà¯à®ªà®à®²à¯', 61898 morning: 'à®à®¾à®²à¯', 61899 afternoon: 'மதியமà¯', 61900 evening: 'மாலà¯', 61901 night: 'à®à®°à®µà¯' 61902 } 61903 }; 61904 61905 function ordinalNumber(dirtyNumber, _dirtyOptions) { 61906 var number = Number(dirtyNumber);
vendor: 215,025 bytes, lines 61906-66372
61906 // If ordinal numbers depend on context, for example, 61907 // if they are different for different grammatical genders, 61908 // use `options.unit`: 61909 // 61910 // var options = dirtyOptions || {} 61911 // var unit = String(options.unit) 61912 // 61913 // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', 61914 // 'day', 'hour', 'minute', 'second' 61915 // var rem100 = number % 100 61916 // if (rem100 > 20 || rem100 < 10) { 61917 // switch (rem100 % 10) { 61918 // case 1: 61919 // return number + 'st' 61920 // case 2: 61921 // return number + 'nd' 61922 // case 3: 61923 // return number + 'rd' 61924 // } 61925 // } 61926 // return number + 'th' 61927 61928 return number; 61929 } 61930 61931 var localize = { 61932 ordinalNumber: ordinalNumber, 61933 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 61934 values: eraValues, 61935 defaultWidth: 'wide' 61936 }), 61937 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 61938 values: quarterValues, 61939 defaultWidth: 'wide', 61940 argumentCallback: function (quarter) { 61941 return Number(quarter) - 1; 61942 } 61943 }), 61944 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 61945 values: monthValues, 61946 defaultWidth: 'wide' 61947 }), 61948 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 61949 values: dayValues, 61950 defaultWidth: 'wide' 61951 }), 61952 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 61953 values: dayPeriodValues, 61954 defaultWidth: 'wide', 61955 formattingValues: formattingDayPeriodValues, 61956 defaultFormattingWidth: 'wide' 61957 }) 61958 }; 61959 /* harmony default export */ 61960 __webpack_exports__["a"] = (localize); 61961 61962 /***/ 61963 }), 61964 /* 800 */ 61965 /***/ (function (module, __webpack_exports__, __webpack_require__) { 61966 61967 "use strict"; 61968 /* harmony import */ 61969 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 61970 /* harmony import */ 61971 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 61972 61973 61974 var matchOrdinalNumberPattern = /^(\d+)(வதà¯)?/i; 61975 var parseOrdinalNumberPattern = /\d+/i; 61976 var matchEraPatterns = { 61977 narrow: /^(à®à®¿.à®®à¯.|à®à®¿.பி.)/i, 61978 abbreviated: /^(à®à®¿\.?\s?à®®à¯\.?|à®à®¿\.?\s?பி\.?)/, 61979 wide: /^(à®à®¿à®±à®¿à®¸à¯à®¤à¯à®µà¯à®à¯à®à¯\sà®®à¯à®©à¯|஠னà¯à®©à¯\sà®à¯à®®à®¿à®©à®¿)/i 61980 }; 61981 var parseEraPatterns = { 61982 any: [/à®à®¿\.?\s?à®®à¯\.?/, /à®à®¿\.?\s?பி\.?/] 61983 }; 61984 var matchQuarterPatterns = { 61985 narrow: /^[1234]/i, 61986 abbreviated: /^à®à®¾à®²à®¾.[1234]/i, 61987 wide: /^(à®à®©à¯à®±à®¾à®®à¯|à®à®°à®£à¯à®à®¾à®®à¯|à®®à¯à®©à¯à®±à®¾à®®à¯|நானà¯à®à®¾à®®à¯) à®à®¾à®²à®¾à®£à¯à®à¯/i 61988 }; 61989 var parseQuarterPatterns = { 61990 narrow: [/1/i, /2/i, /3/i, /4/i], 61991 any: [/(1|à®à®¾à®²à®¾.1|à®à®©à¯à®±à®¾à®®à¯)/i, /(2|à®à®¾à®²à®¾.2|à®à®°à®£à¯à®à®¾à®®à¯)/i, /(3|à®à®¾à®²à®¾.3|à®®à¯à®©à¯à®±à®¾à®®à¯)/i, /(4|à®à®¾à®²à®¾.4|நானà¯à®à®¾à®®à¯)/i] 61992 }; 61993 var matchMonthPatterns = { 61994 narrow: /^(à®|பி|மா|à®|à®®à¯|à®à¯|à®|à®à¯|à® |ந|à®à®¿)$/i, 61995 abbreviated: /^(à®à®©.|பிபà¯.|மாரà¯.|à®à®ªà¯.|à®®à¯|à®à¯à®©à¯|à®à¯à®²à¯|à®à®.|à®à¯à®ªà¯.|à® à®à¯.|நவ.|à®à®¿à®.)/i, 61996 wide: /^(à®à®©à®µà®°à®¿|பிபà¯à®°à®µà®°à®¿|மாரà¯à®à¯|à®à®ªà¯à®°à®²à¯|à®®à¯|à®à¯à®©à¯|à®à¯à®²à¯|à®à®à®¸à¯à®à¯|à®à¯à®ªà¯à®à®®à¯à®ªà®°à¯|à® à®à¯à®à¯à®ªà®°à¯|நவமà¯à®ªà®°à¯|à®à®¿à®à®®à¯à®ªà®°à¯)/i 61997 }; 61998 var parseMonthPatterns = { 61999 narrow: [/^à®$/i, /^பி/i, /^மா/i, /^à®/i, /^à®®à¯/i, /^à®à¯/i, /^à®à¯/i, /^à®/i, /^à®à¯/i, /^à® /i, /^ந/i, /^à®à®¿/i], 62000 any: [/^à®à®©/i, /^பி/i, /^மா/i, /^à®/i, /^à®®à¯/i, /^à®à¯à®©à¯/i, /^à®à¯à®²à¯/i, /^à®/i, /^à®à¯/i, /^à® /i, /^ந/i, /^à®à®¿/i] 62001 }; 62002 var matchDayPatterns = { 62003 narrow: /^(à®à®¾|தி|à®à¯|பà¯|வி|வà¯|à®)/i, 62004 short: /^(à®à®¾|தி|à®à¯|பà¯|வி|வà¯|à®)/i, 62005 abbreviated: /^(à®à®¾à®¯à®¿.|திà®à¯.|à®à¯à®µà¯.|பà¯à®¤.|வியா.|வà¯à®³à¯.|à®à®©à®¿)/i, 62006 wide: /^(à®à®¾à®¯à®¿à®±à¯|திà®à¯à®à®³à¯|à®à¯à®µà¯à®µà®¾à®¯à¯|பà¯à®¤à®©à¯|வியாழனà¯|வà¯à®³à¯à®³à®¿|à®à®©à®¿)/i 62007 }; 62008 var parseDayPatterns = { 62009 narrow: [/^à®à®¾/i, /^தி/i, /^à®à¯/i, /^பà¯/i, /^வி/i, /^வà¯/i, /^à®/i], 62010 any: [/^à®à®¾/i, /^தி/i, /^à®à¯/i, /^பà¯/i, /^வி/i, /^வà¯/i, /^à®/i] 62011 }; 62012 var matchDayPeriodPatterns = { 62013 narrow: /^(à®®à¯.ப|பி.ப|நளà¯|நணà¯|à®à®¾à®²à¯|மதியமà¯|மாலà¯|à®à®°à®µà¯)/i, 62014 any: /^(à®®à¯.ப|பி.ப|à®®à¯à®±à¯à®ªà®à®²à¯|பிறà¯à®ªà®à®²à¯|நளà¯à®³à®¿à®°à®µà¯|நணà¯à®ªà®à®²à¯|à®à®¾à®²à¯|மதியமà¯|மாலà¯|à®à®°à®µà¯)/i 62015 }; 62016 var parseDayPeriodPatterns = { 62017 any: { 62018 am: /^à®®à¯/i, 62019 pm: /^பி/i, 62020 midnight: /^நளà¯/i, 62021 noon: /^நணà¯/i, 62022 morning: /à®à®¾à®²à¯/i, 62023 afternoon: /மதியமà¯/i, 62024 evening: /மாலà¯/i, 62025 night: /à®à®°à®µà¯/i 62026 } 62027 }; 62028 var match = { 62029 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 62030 matchPattern: matchOrdinalNumberPattern, 62031 parsePattern: parseOrdinalNumberPattern, 62032 valueCallback: function (value) { 62033 return parseInt(value, 10); 62034 } 62035 }), 62036 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 62037 matchPatterns: matchEraPatterns, 62038 defaultMatchWidth: 'wide', 62039 parsePatterns: parseEraPatterns, 62040 defaultParseWidth: 'any' 62041 }), 62042 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 62043 matchPatterns: matchQuarterPatterns, 62044 defaultMatchWidth: 'wide', 62045 parsePatterns: parseQuarterPatterns, 62046 defaultParseWidth: 'any', 62047 valueCallback: function (index) { 62048 return index + 1; 62049 } 62050 }), 62051 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 62052 matchPatterns: matchMonthPatterns, 62053 defaultMatchWidth: 'wide', 62054 parsePatterns: parseMonthPatterns, 62055 defaultParseWidth: 'any' 62056 }), 62057 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 62058 matchPatterns: matchDayPatterns, 62059 defaultMatchWidth: 'wide', 62060 parsePatterns: parseDayPatterns, 62061 defaultParseWidth: 'any' 62062 }), 62063 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 62064 matchPatterns: matchDayPeriodPatterns, 62065 defaultMatchWidth: 'any', 62066 parsePatterns: parseDayPeriodPatterns, 62067 defaultParseWidth: 'any' 62068 }) 62069 }; 62070 /* harmony default export */ 62071 __webpack_exports__["a"] = (match); 62072 62073 /***/ 62074 }), 62075 /* 801 */ 62076 /***/ (function (module, __webpack_exports__, __webpack_require__) { 62077 62078 "use strict"; 62079 /* harmony import */ 62080 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(802); 62081 /* harmony import */ 62082 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(803); 62083 /* harmony import */ 62084 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(804); 62085 /* harmony import */ 62086 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(805); 62087 /* harmony import */ 62088 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(806); 62089 62090 62091 /** 62092 * @type {Locale} 62093 * @category Locales 62094 * @summary Telugu locale 62095 * @language Telugu 62096 * @iso-639-2 tel 62097 * @author Kranthi Lakum [@kranthilakum]{@link https://github.com/kranthilakum} 62098 */ 62099 62100 var locale = { 62101 code: 'te', 62102 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 62103 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 62104 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 62105 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 62106 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 62107 options: { 62108 weekStartsOn: 0 62109 /* Sunday */ 62110 , 62111 firstWeekContainsDate: 1 62112 } 62113 }; 62114 /* harmony default export */ 62115 __webpack_exports__["a"] = (locale); 62116 62117 /***/ 62118 }), 62119 /* 802 */ 62120 /***/ (function (module, __webpack_exports__, __webpack_require__) { 62121 62122 "use strict"; 62123 /* harmony export (immutable) */ 62124 __webpack_exports__["a"] = formatDistance; 62125// Source: https://www.unicode.org/cldr/charts/32/summary/te.html 62126 var formatDistanceLocale = { 62127 lessThanXSeconds: { 62128 standalone: { 62129 one: 'à°¸à±à°à°¨à± à°à°¨à±à°¨à°¾ à°¤à°à±à°à±à°µ', 62130 other: '{{count}} à°¸à±à°à°¨à±à°² à°à°¨à±à°¨à°¾ à°¤à°à±à°à±à°µ' 62131 }, 62132 withPreposition: { 62133 one: 'à°¸à±à°à°¨à±', 62134 other: '{{count}} à°¸à±à°à°¨à±à°²' 62135 } 62136 }, 62137 xSeconds: { 62138 standalone: { 62139 one: 'à°à° à°¸à±à°à°¨à±', 62140 // CLDR #1314 62141 other: '{{count}} à°¸à±à°à°¨à±à°²' 62142 }, 62143 withPreposition: { 62144 one: 'à°à° à°¸à±à°à°¨à±', 62145 other: '{{count}} à°¸à±à°à°¨à±à°²' 62146 } 62147 }, 62148 halfAMinute: { 62149 standalone: 'à° à°° నిమిషà°', 62150 withPreposition: 'à° à°° నిమిషà°' 62151 }, 62152 lessThanXMinutes: { 62153 standalone: { 62154 one: 'à°à° నిమిషఠà°à°¨à±à°¨à°¾ à°¤à°à±à°à±à°µ', 62155 other: '{{count}} నిమిషాల à°à°¨à±à°¨à°¾ à°¤à°à±à°à±à°µ' 62156 }, 62157 withPreposition: { 62158 one: 'à°à° నిమిషà°', 62159 other: '{{count}} నిమిషాల' 62160 } 62161 }, 62162 xMinutes: { 62163 standalone: { 62164 one: 'à°à° నిమిషà°', 62165 // CLDR #1311 62166 other: '{{count}} నిమిషాలà±' 62167 }, 62168 withPreposition: { 62169 one: 'à°à° నిమిషà°', 62170 // CLDR #1311 62171 other: '{{count}} నిమిషాల' 62172 } 62173 }, 62174 aboutXHours: { 62175 standalone: { 62176 one: 'à°¸à±à°®à°¾à°°à± à°à° à°à°à°', 62177 other: 'à°¸à±à°®à°¾à°°à± {{count}} à°à°à°à°²à±' 62178 }, 62179 withPreposition: { 62180 one: 'à°¸à±à°®à°¾à°°à± à°à° à°à°à°', 62181 other: 'à°¸à±à°®à°¾à°°à± {{count}} à°à°à°à°²' 62182 } 62183 }, 62184 xHours: { 62185 standalone: { 62186 one: 'à°à° à°à°à°', 62187 // CLDR #1308 62188 other: '{{count}} à°à°à°à°²à±' 62189 }, 62190 withPreposition: { 62191 one: 'à°à° à°à°à°', 62192 other: '{{count}} à°à°à°à°²' 62193 } 62194 }, 62195 xDays: { 62196 standalone: { 62197 one: 'à°à° à°°à±à°à±', 62198 // CLDR #1292 62199 other: '{{count}} à°°à±à°à±à°²à±' 62200 }, 62201 withPreposition: { 62202 one: 'à°à° à°°à±à°à±', 62203 other: '{{count}} à°°à±à°à±à°²' 62204 } 62205 }, 62206 aboutXWeeks: { 62207 standalone: { 62208 one: 'à°¸à±à°®à°¾à°°à± à°à° వారà°', 62209 other: 'à°¸à±à°®à°¾à°°à± {{count}} వారాలà±' 62210 }, 62211 withPreposition: { 62212 one: 'à°¸à±à°®à°¾à°°à± à°à° వారà°', 62213 other: 'à°¸à±à°®à°¾à°°à± {{count}} వారాలల' 62214 } 62215 }, 62216 xWeeks: { 62217 standalone: { 62218 one: 'à°à° వారà°', 62219 other: '{{count}} వారాలà±' 62220 }, 62221 withPreposition: { 62222 one: 'à°à° వారà°', 62223 other: '{{count}} వారాలల' 62224 } 62225 }, 62226 aboutXMonths: { 62227 standalone: { 62228 one: 'à°¸à±à°®à°¾à°°à± à°à° à°¨à±à°²', 62229 other: 'à°¸à±à°®à°¾à°°à± {{count}} à°¨à±à°²à°²à±' 62230 }, 62231 withPreposition: { 62232 one: 'à°¸à±à°®à°¾à°°à± à°à° à°¨à±à°²', 62233 other: 'à°¸à±à°®à°¾à°°à± {{count}} à°¨à±à°²à°²' 62234 } 62235 }, 62236 xMonths: { 62237 standalone: { 62238 one: 'à°à° à°¨à±à°²', 62239 // CLDR #1281 62240 other: '{{count}} à°¨à±à°²à°²à±' 62241 }, 62242 withPreposition: { 62243 one: 'à°à° à°¨à±à°²', 62244 other: '{{count}} à°¨à±à°²à°²' 62245 } 62246 }, 62247 aboutXYears: { 62248 standalone: { 62249 one: 'à°¸à±à°®à°¾à°°à± à°à° à°¸à°à°µà°¤à±à°¸à°°à°', 62250 other: 'à°¸à±à°®à°¾à°°à± {{count}} à°¸à°à°µà°¤à±à°¸à°°à°¾à°²à±' 62251 }, 62252 withPreposition: { 62253 one: 'à°¸à±à°®à°¾à°°à± à°à° à°¸à°à°µà°¤à±à°¸à°°à°', 62254 other: 'à°¸à±à°®à°¾à°°à± {{count}} à°¸à°à°µà°¤à±à°¸à°°à°¾à°²' 62255 } 62256 }, 62257 xYears: { 62258 standalone: { 62259 one: 'à°à° à°¸à°à°µà°¤à±à°¸à°°à°', 62260 // CLDR #1275 62261 other: '{{count}} à°¸à°à°µà°¤à±à°¸à°°à°¾à°²à±' 62262 }, 62263 withPreposition: { 62264 one: 'à°à° à°¸à°à°µà°¤à±à°¸à°°à°', 62265 other: '{{count}} à°¸à°à°µà°¤à±à°¸à°°à°¾à°²' 62266 } 62267 }, 62268 overXYears: { 62269 standalone: { 62270 one: 'à°à° à°¸à°à°µà°¤à±à°¸à°°à° à°ªà±à°à°¾', 62271 other: '{{count}} à°¸à°à°µà°¤à±à°¸à°°à°¾à°²à°à± à°ªà±à°à°¾' 62272 }, 62273 withPreposition: { 62274 one: 'à°à° à°¸à°à°µà°¤à±à°¸à°°à°', 62275 other: '{{count}} à°¸à°à°µà°¤à±à°¸à°°à°¾à°²' 62276 } 62277 }, 62278 almostXYears: { 62279 standalone: { 62280 one: 'దాదాపౠà°à° à°¸à°à°µà°¤à±à°¸à°°à°', 62281 other: 'దాదాపౠ{{count}} à°¸à°à°µà°¤à±à°¸à°°à°¾à°²à±' 62282 }, 62283 withPreposition: { 62284 one: 'దాదాపౠà°à° à°¸à°à°µà°¤à±à°¸à°°à°', 62285 other: 'దాదాపౠ{{count}} à°¸à°à°µà°¤à±à°¸à°°à°¾à°²' 62286 } 62287 } 62288 }; 62289 62290 function formatDistance(token, count, options) { 62291 options = options || {}; 62292 var usageGroup = options.addSuffix ? formatDistanceLocale[token].withPreposition : formatDistanceLocale[token].standalone; 62293 var result; 62294 62295 if (typeof usageGroup === 'string') { 62296 result = usageGroup; 62297 } else if (count === 1) { 62298 result = usageGroup.one; 62299 } else { 62300 result = usageGroup.other.replace('{{count}}', count); 62301 } 62302 62303 if (options.addSuffix) { 62304 if (options.comparison > 0) { 62305 return result + 'à°²à±'; 62306 } else { 62307 return result + ' à°à±à°°à°¿à°¤à°'; 62308 } 62309 } 62310 62311 return result; 62312 } 62313 62314 /***/ 62315 }), 62316 /* 803 */ 62317 /***/ (function (module, __webpack_exports__, __webpack_require__) { 62318 62319 "use strict"; 62320 /* harmony import */ 62321 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 62322 // Source: https://www.unicode.org/cldr/charts/32/summary/te.html 62323// CLDR #1807 - #1811 62324 62325 var dateFormats = { 62326 full: 'd, MMMM y, EEEE', 62327 long: 'd MMMM, y', 62328 medium: 'd MMM, y', 62329 short: 'dd-MM-yy' // CLDR #1807 - #1811 62330 62331 }; 62332 var timeFormats = { 62333 full: 'h:mm:ss a zzzz', 62334 long: 'h:mm:ss a z', 62335 medium: 'h:mm:ss a', 62336 short: 'h:mm a' // CLDR #1815 - #1818 62337 62338 }; 62339 var dateTimeFormats = { 62340 full: "{{date}} {{time}}'à°à°¿'", 62341 long: "{{date}} {{time}}'à°à°¿'", 62342 medium: '{{date}} {{time}}', 62343 short: '{{date}} {{time}}' 62344 }; 62345 var formatLong = { 62346 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 62347 formats: dateFormats, 62348 defaultWidth: 'full' 62349 }), 62350 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 62351 formats: timeFormats, 62352 defaultWidth: 'full' 62353 }), 62354 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 62355 formats: dateTimeFormats, 62356 defaultWidth: 'full' 62357 }) 62358 }; 62359 /* harmony default export */ 62360 __webpack_exports__["a"] = (formatLong); 62361 62362 /***/ 62363 }), 62364 /* 804 */ 62365 /***/ (function (module, __webpack_exports__, __webpack_require__) { 62366 62367 "use strict"; 62368 /* harmony export (immutable) */ 62369 __webpack_exports__["a"] = formatRelative; 62370// Source: https://www.unicode.org/cldr/charts/32/summary/te.html 62371 var formatRelativeLocale = { 62372 lastWeek: "'à°à°¤' eeee p", 62373 // CLDR #1384 62374 yesterday: "'నినà±à°¨' p", 62375 // CLDR #1393 62376 today: "'à° à°°à±à°à±' p", 62377 // CLDR #1394 62378 tomorrow: "'à°°à±à°ªà±' p", 62379 // CLDR #1395 62380 nextWeek: "'తదà±à°ªà°°à°¿' eeee p", 62381 // CLDR #1386 62382 other: 'P' 62383 }; 62384 62385 function formatRelative(token, _date, _baseDate, _options) { 62386 return formatRelativeLocale[token]; 62387 } 62388 62389 /***/ 62390 }), 62391 /* 805 */ 62392 /***/ (function (module, __webpack_exports__, __webpack_require__) { 62393 62394 "use strict"; 62395 /* harmony import */ 62396 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 62397 // Source: https://www.unicode.org/cldr/charts/32/summary/te.html 62398// Source: https://dsal.uchicago.edu/dictionaries/brown/ 62399// CLDR #1605 - #1608 62400 62401 var eraValues = { 62402 narrow: ['à°à±à°°à±.à°ªà±.', 'à°à±à°°à±.à°¶.'], 62403 abbreviated: ['à°à±à°°à±.à°ªà±.', 'à°à±à°°à±.à°¶.'], 62404 wide: ['à°à±à°°à±à°¸à±à°¤à± à°ªà±à°°à±à°µà°', 'à°à±à°°à±à°¸à±à°¤à±à°¶à°à°'] // CLDR #1613 - #1628 62405 62406 }; 62407 var quarterValues = { 62408 narrow: ['1', '2', '3', '4'], 62409 abbreviated: ['à°¤à±à°°à±1', 'à°¤à±à°°à±2', 'à°¤à±à°°à±3', 'à°¤à±à°°à±4'], 62410 wide: ['1à°µ à°¤à±à°°à±à°®à°¾à°¸à°¿à°à°', '2à°µ à°¤à±à°°à±à°®à°¾à°¸à°¿à°à°', '3à°µ à°¤à±à°°à±à°®à°¾à°¸à°¿à°à°', '4à°µ à°¤à±à°°à±à°®à°¾à°¸à°¿à°à°'] // CLDR #1637 - #1708 62411 62412 }; 62413 var monthValues = { 62414 narrow: ['à°', 'à°«à°¿', 'మా', 'à°', 'à°®à±', 'à°à±', 'à°à±', 'à°', 'à°¸à±', 'à° ', 'à°¨', 'à°¡à°¿'], 62415 abbreviated: ['à°à°¨', 'à°«à°¿à°¬à±à°°', 'మారà±à°à°¿', 'à°à°ªà±à°°à°¿', 'à°®à±', 'à°à±à°¨à±', 'à°à±à°²à±', 'à°à°', 'à°¸à±à°ªà±à°à±à°', 'à° à°à±à°à±', 'నవà°', 'à°¡à°¿à°¸à±à°'], 62416 wide: ['à°à°¨à°µà°°à°¿', 'à°«à°¿à°¬à±à°°à°µà°°à°¿', 'మారà±à°à°¿', 'à°à°ªà±à°°à°¿à°²à±', 'à°®à±', 'à°à±à°¨à±', 'à°à±à°²à±', 'à°à°à°¸à±à°à±', 'à°¸à±à°ªà±à°à±à°à°¬à°°à±', 'à° à°à±à°à±à°¬à°°à±', 'నవà°à°¬à°°à±', 'à°¡à°¿à°¸à±à°à°¬à°°à±'] // CLDR #1709 - #1764 62417 62418 }; 62419 var dayValues = { 62420 narrow: ['à°', 'à°¸à±', 'à°®', 'à°¬à±', 'à°à±', 'à°¶à±', 'à°¶'], 62421 short: ['à°à°¦à°¿', 'à°¸à±à°®', 'à°®à°à°à°³', 'à°¬à±à°§', 'à°à±à°°à±', 'à°¶à±à°à±à°°', 'శని'], 62422 abbreviated: ['à°à°¦à°¿', 'à°¸à±à°®', 'à°®à°à°à°³', 'à°¬à±à°§', 'à°à±à°°à±', 'à°¶à±à°à±à°°', 'శని'], 62423 wide: ['à°à°¦à°¿à°µà°¾à°°à°', 'à°¸à±à°®à°µà°¾à°°à°', 'à°®à°à°à°³à°µà°¾à°°à°', 'à°¬à±à°§à°µà°¾à°°à°', 'à°à±à°°à±à°µà°¾à°°à°', 'à°¶à±à°à±à°°à°µà°¾à°°à°', 'శనివారà°'] // CLDR #1767 - #1806 62424 62425 }; 62426 var dayPeriodValues = { 62427 narrow: { 62428 am: 'à°ªà±à°°à±à°µà°¾à°¹à±à°¨à°', 62429 pm: 'ఠపరాహà±à°¨à°', 62430 midnight: 'à° à°°à±à°§à°°à°¾à°¤à±à°°à°¿', 62431 noon: 'మిà°à±à°à°®à°§à±à°¯à°¾à°¹à±à°¨à°', 62432 morning: 'à°à°¦à°¯à°', 62433 afternoon: 'మధà±à°¯à°¾à°¹à±à°¨à°', 62434 evening: 'సాయà°à°¤à±à°°à°', 62435 night: 'రాతà±à°°à°¿' 62436 }, 62437 abbreviated: { 62438 am: 'à°ªà±à°°à±à°µà°¾à°¹à±à°¨à°', 62439 pm: 'ఠపరాహà±à°¨à°', 62440 midnight: 'à° à°°à±à°§à°°à°¾à°¤à±à°°à°¿', 62441 noon: 'మిà°à±à°à°®à°§à±à°¯à°¾à°¹à±à°¨à°', 62442 morning: 'à°à°¦à°¯à°', 62443 afternoon: 'మధà±à°¯à°¾à°¹à±à°¨à°', 62444 evening: 'సాయà°à°¤à±à°°à°', 62445 night: 'రాతà±à°°à°¿' 62446 }, 62447 wide: { 62448 am: 'à°ªà±à°°à±à°µà°¾à°¹à±à°¨à°', 62449 pm: 'ఠపరాహà±à°¨à°', 62450 midnight: 'à° à°°à±à°§à°°à°¾à°¤à±à°°à°¿', 62451 noon: 'మిà°à±à°à°®à°§à±à°¯à°¾à°¹à±à°¨à°', 62452 morning: 'à°à°¦à°¯à°', 62453 afternoon: 'మధà±à°¯à°¾à°¹à±à°¨à°', 62454 evening: 'సాయà°à°¤à±à°°à°', 62455 night: 'రాతà±à°°à°¿' 62456 } 62457 }; 62458 var formattingDayPeriodValues = { 62459 narrow: { 62460 am: 'à°ªà±à°°à±à°µà°¾à°¹à±à°¨à°', 62461 pm: 'ఠపరాహà±à°¨à°', 62462 midnight: 'à° à°°à±à°§à°°à°¾à°¤à±à°°à°¿', 62463 noon: 'మిà°à±à°à°®à°§à±à°¯à°¾à°¹à±à°¨à°', 62464 morning: 'à°à°¦à°¯à°', 62465 afternoon: 'మధà±à°¯à°¾à°¹à±à°¨à°', 62466 evening: 'సాయà°à°¤à±à°°à°', 62467 night: 'రాతà±à°°à°¿' 62468 }, 62469 abbreviated: { 62470 am: 'à°ªà±à°°à±à°µà°¾à°¹à±à°¨à°', 62471 pm: 'ఠపరాహà±à°¨à°', 62472 midnight: 'à° à°°à±à°§à°°à°¾à°¤à±à°°à°¿', 62473 noon: 'మిà°à±à°à°®à°§à±à°¯à°¾à°¹à±à°¨à°', 62474 morning: 'à°à°¦à°¯à°', 62475 afternoon: 'మధà±à°¯à°¾à°¹à±à°¨à°', 62476 evening: 'సాయà°à°¤à±à°°à°', 62477 night: 'రాతà±à°°à°¿' 62478 }, 62479 wide: { 62480 am: 'à°ªà±à°°à±à°µà°¾à°¹à±à°¨à°', 62481 pm: 'ఠపరాహà±à°¨à°', 62482 midnight: 'à° à°°à±à°§à°°à°¾à°¤à±à°°à°¿', 62483 noon: 'మిà°à±à°à°®à°§à±à°¯à°¾à°¹à±à°¨à°', 62484 morning: 'à°à°¦à°¯à°', 62485 afternoon: 'మధà±à°¯à°¾à°¹à±à°¨à°', 62486 evening: 'సాయà°à°¤à±à°°à°', 62487 night: 'రాతà±à°°à°¿' 62488 } 62489 }; 62490 62491 function ordinalNumber(dirtyNumber, _dirtyOptions) { 62492 var number = Number(dirtyNumber); 62493 return number + 'à°µ'; 62494 } 62495 62496 var localize = { 62497 ordinalNumber: ordinalNumber, 62498 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 62499 values: eraValues, 62500 defaultWidth: 'wide' 62501 }), 62502 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 62503 values: quarterValues, 62504 defaultWidth: 'wide', 62505 argumentCallback: function (quarter) { 62506 return Number(quarter) - 1; 62507 } 62508 }), 62509 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 62510 values: monthValues, 62511 defaultWidth: 'wide' 62512 }), 62513 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 62514 values: dayValues, 62515 defaultWidth: 'wide' 62516 }), 62517 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 62518 values: dayPeriodValues, 62519 defaultWidth: 'wide', 62520 formattingValues: formattingDayPeriodValues, 62521 defaultFormattingWidth: 'wide' 62522 }) 62523 }; 62524 /* harmony default export */ 62525 __webpack_exports__["a"] = (localize); 62526 62527 /***/ 62528 }), 62529 /* 806 */ 62530 /***/ (function (module, __webpack_exports__, __webpack_require__) { 62531 62532 "use strict"; 62533 /* harmony import */ 62534 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 62535 /* harmony import */ 62536 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 62537 62538 62539 var matchOrdinalNumberPattern = /^(\d+)(à°µ)?/i; 62540 var parseOrdinalNumberPattern = /\d+/i; 62541 var matchEraPatterns = { 62542 narrow: /^(à°à±à°°à±\.à°ªà±\.|à°à±à°°à±\.à°¶\.)/i, 62543 abbreviated: /^(à°à±à°°à±\.?\s?à°ªà±\.?|à°ªà±à°°\.?\s?à°¶\.?\s?à°ªà±\.?|à°à±à°°à±\.?\s?à°¶\.?|సా\.?\s?à°¶\.?)/i, 62544 wide: /^(à°à±à°°à±à°¸à±à°¤à± à°ªà±à°°à±à°µà°|à°ªà±à°°à°¸à±à°¤à±à°¤ à°¶à°à°¾à°¨à°¿à°à°¿ à°ªà±à°°à±à°µà°|à°à±à°°à±à°¸à±à°¤à± à°¶à°à°|à°ªà±à°°à°¸à±à°¤à±à°¤ à°¶à°à°)/i 62545 }; 62546 var parseEraPatterns = { 62547 any: [/^(à°ªà±|à°¶)/i, /^సా/i] 62548 }; 62549 var matchQuarterPatterns = { 62550 narrow: /^[1234]/i, 62551 abbreviated: /^à°¤à±à°°à±[1234]/i, 62552 wide: /^[1234](à°µ)? à°¤à±à°°à±à°®à°¾à°¸à°¿à°à°/i 62553 }; 62554 var parseQuarterPatterns = { 62555 any: [/1/i, /2/i, /3/i, /4/i] 62556 }; 62557 var matchMonthPatterns = { 62558 narrow: /^(à°à±|à°à±|à°|à°«à°¿|మా|à°|à°®à±|à°|à°¸à±|à° |à°¨|à°¡à°¿)/i, 62559 abbreviated: /^(à°à°¨|à°«à°¿à°¬à±à°°|మారà±à°à°¿|à°à°ªà±à°°à°¿|à°®à±|à°à±à°¨à±|à°à±à°²à±|à°à°|à°¸à±à°ªà±|à° à°à±à°à±|నవ|à°¡à°¿à°¸à±)/i, 62560 wide: /^(à°à°¨à°µà°°à°¿|à°«à°¿à°¬à±à°°à°µà°°à°¿|మారà±à°à°¿|à°à°ªà±à°°à°¿à°²à±|à°®à±|à°à±à°¨à±|à°à±à°²à±|à°à°à°¸à±à°à±|à°¸à±à°ªà±à°à±à°à°¬à°°à±|à° à°à±à°à±à°¬à°°à±|నవà°à°¬à°°à±|à°¡à°¿à°¸à±à°à°¬à°°à±)/i 62561 }; 62562 var parseMonthPatterns = { 62563 narrow: [/^à°/i, /^à°«à°¿/i, /^మా/i, /^à°/i, /^à°®à±/i, /^à°à±/i, /^à°à±/i, /^à°/i, /^à°¸à±/i, /^à° /i, /^à°¨/i, /^à°¡à°¿/i], 62564 any: [/^à°à°¨/i, /^à°«à°¿/i, /^మా/i, /^à°/i, /^à°®à±/i, /^à°à±à°¨à±/i, /^à°à±à°²à±/i, /^à°à°/i, /^à°¸à±/i, /^à° /i, /^à°¨/i, /^à°¡à°¿/i] 62565 }; 62566 var matchDayPatterns = { 62567 narrow: /^(à°|à°¸à±|à°®|à°¬à±|à°à±|à°¶à±|à°¶)/i, 62568 short: /^(à°à°¦à°¿|à°¸à±à°®|à°®à°|à°¬à±à°§|à°à±à°°à±|à°¶à±à°à±à°°|శని)/i, 62569 abbreviated: /^(à°à°¦à°¿|à°¸à±à°®|à°®à°|à°¬à±à°§|à°à±à°°à±|à°¶à±à°à±à°°|శని)/i, 62570 wide: /^(à°à°¦à°¿à°µà°¾à°°à°|à°¸à±à°®à°µà°¾à°°à°|à°®à°à°à°³à°µà°¾à°°à°|à°¬à±à°§à°µà°¾à°°à°|à°à±à°°à±à°µà°¾à°°à°|à°¶à±à°à±à°°à°µà°¾à°°à°|శనివారà°)/i 62571 }; 62572 var parseDayPatterns = { 62573 narrow: [/^à°/i, /^à°¸à±/i, /^à°®/i, /^à°¬à±/i, /^à°à±/i, /^à°¶à±/i, /^à°¶/i], 62574 any: [/^à°à°¦à°¿/i, /^à°¸à±à°®/i, /^à°®à°/i, /^à°¬à±à°§/i, /^à°à±à°°à±/i, /^à°¶à±à°à±à°°/i, /^శని/i] 62575 }; 62576 var matchDayPeriodPatterns = { 62577 narrow: /^(à°ªà±à°°à±à°µà°¾à°¹à±à°¨à°|ఠపరాహà±à°¨à°|à° à°°à±à°§à°°à°¾à°¤à±à°°à°¿|మిà°à±à°à°®à°§à±à°¯à°¾à°¹à±à°¨à°|à°à°¦à°¯à°|మధà±à°¯à°¾à°¹à±à°¨à°|సాయà°à°¤à±à°°à°|రాతà±à°°à°¿)/i, 62578 any: /^(à°ªà±à°°à±à°µà°¾à°¹à±à°¨à°|ఠపరాహà±à°¨à°|à° à°°à±à°§à°°à°¾à°¤à±à°°à°¿|మిà°à±à°à°®à°§à±à°¯à°¾à°¹à±à°¨à°|à°à°¦à°¯à°|మధà±à°¯à°¾à°¹à±à°¨à°|సాయà°à°¤à±à°°à°|రాతà±à°°à°¿)/i 62579 }; 62580 var parseDayPeriodPatterns = { 62581 any: { 62582 am: /^à°ªà±à°°à±à°µà°¾à°¹à±à°¨à°/i, 62583 pm: /^ఠపరాహà±à°¨à°/i, 62584 midnight: /^à° à°°à±à°§/i, 62585 noon: /^మిà°à±à°/i, 62586 morning: /à°à°¦à°¯à°/i, 62587 afternoon: /మధà±à°¯à°¾à°¹à±à°¨à°/i, 62588 evening: /సాయà°à°¤à±à°°à°/i, 62589 night: /రాతà±à°°à°¿/i 62590 } 62591 }; 62592 var match = { 62593 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 62594 matchPattern: matchOrdinalNumberPattern, 62595 parsePattern: parseOrdinalNumberPattern, 62596 valueCallback: function (value) { 62597 return parseInt(value, 10); 62598 } 62599 }), 62600 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 62601 matchPatterns: matchEraPatterns, 62602 defaultMatchWidth: 'wide', 62603 parsePatterns: parseEraPatterns, 62604 defaultParseWidth: 'any' 62605 }), 62606 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 62607 matchPatterns: matchQuarterPatterns, 62608 defaultMatchWidth: 'wide', 62609 parsePatterns: parseQuarterPatterns, 62610 defaultParseWidth: 'any', 62611 valueCallback: function (index) { 62612 return index + 1; 62613 } 62614 }), 62615 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 62616 matchPatterns: matchMonthPatterns, 62617 defaultMatchWidth: 'wide', 62618 parsePatterns: parseMonthPatterns, 62619 defaultParseWidth: 'any' 62620 }), 62621 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 62622 matchPatterns: matchDayPatterns, 62623 defaultMatchWidth: 'wide', 62624 parsePatterns: parseDayPatterns, 62625 defaultParseWidth: 'any' 62626 }), 62627 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 62628 matchPatterns: matchDayPeriodPatterns, 62629 defaultMatchWidth: 'any', 62630 parsePatterns: parseDayPeriodPatterns, 62631 defaultParseWidth: 'any' 62632 }) 62633 }; 62634 /* harmony default export */ 62635 __webpack_exports__["a"] = (match); 62636 62637 /***/ 62638 }), 62639 /* 807 */ 62640 /***/ (function (module, __webpack_exports__, __webpack_require__) { 62641 62642 "use strict"; 62643 /* harmony import */ 62644 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(808); 62645 /* harmony import */ 62646 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(809); 62647 /* harmony import */ 62648 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(810); 62649 /* harmony import */ 62650 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(811); 62651 /* harmony import */ 62652 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(812); 62653 62654 62655 /** 62656 * @type {Locale} 62657 * @category Locales 62658 * @summary Thai locale. 62659 * @language Thai 62660 * @iso-639-2 tha 62661 * @author Athiwat Hirunworawongkun [@athivvat]{@link https://github.com/athivvat} 62662 * @author [@hawkup]{@link https://github.com/hawkup} 62663 * @author Jirawat I. [@nodtem66]{@link https://github.com/nodtem66} 62664 */ 62665 62666 var locale = { 62667 code: 'th', 62668 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 62669 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 62670 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 62671 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 62672 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 62673 options: { 62674 weekStartsOn: 0 62675 /* Sunday */ 62676 , 62677 firstWeekContainsDate: 1 62678 } 62679 }; 62680 /* harmony default export */ 62681 __webpack_exports__["a"] = (locale); 62682 62683 /***/ 62684 }), 62685 /* 808 */ 62686 /***/ (function (module, __webpack_exports__, __webpack_require__) { 62687 62688 "use strict"; 62689 /* harmony export (immutable) */ 62690 __webpack_exports__["a"] = formatDistance; 62691 var formatDistanceLocale = { 62692 lessThanXSeconds: { 62693 one: 'à¸à¹à¸à¸¢à¸à¸§à¹à¸² 1 วิà¸à¸²à¸à¸µ', 62694 other: 'à¸à¹à¸à¸¢à¸à¸§à¹à¸² {{count}} วิà¸à¸²à¸à¸µ' 62695 }, 62696 xSeconds: { 62697 one: '1 วิà¸à¸²à¸à¸µ', 62698 other: '{{count}} วิà¸à¸²à¸à¸µ' 62699 }, 62700 halfAMinute: 'à¸à¸£à¸¶à¹à¸à¸à¸²à¸à¸µ', 62701 lessThanXMinutes: { 62702 one: 'à¸à¹à¸à¸¢à¸à¸§à¹à¸² 1 à¸à¸²à¸à¸µ', 62703 other: 'à¸à¹à¸à¸¢à¸à¸§à¹à¸² {{count}} à¸à¸²à¸à¸µ' 62704 }, 62705 xMinutes: { 62706 one: '1 à¸à¸²à¸à¸µ', 62707 other: '{{count}} à¸à¸²à¸à¸µ' 62708 }, 62709 aboutXHours: { 62710 one: 'à¸à¸£à¸°à¸¡à¸²à¸ 1 à¸à¸±à¹à¸§à¹à¸¡à¸', 62711 other: 'à¸à¸£à¸°à¸¡à¸²à¸ {{count}} à¸à¸±à¹à¸§à¹à¸¡à¸' 62712 }, 62713 xHours: { 62714 one: '1 à¸à¸±à¹à¸§à¹à¸¡à¸', 62715 other: '{{count}} à¸à¸±à¹à¸§à¹à¸¡à¸' 62716 }, 62717 xDays: { 62718 one: '1 วัà¸', 62719 other: '{{count}} วัà¸' 62720 }, 62721 aboutXWeeks: { 62722 one: 'à¸à¸£à¸°à¸¡à¸²à¸ 1 สัà¸à¸à¸²à¸«à¹', 62723 other: 'à¸à¸£à¸°à¸¡à¸²à¸ {{count}} สัà¸à¸à¸²à¸«à¹' 62724 }, 62725 xWeeks: { 62726 one: '1 สัà¸à¸à¸²à¸«à¹', 62727 other: '{{count}} สัà¸à¸à¸²à¸«à¹' 62728 }, 62729 aboutXMonths: { 62730 one: 'à¸à¸£à¸°à¸¡à¸²à¸ 1 à¹à¸à¸·à¸à¸', 62731 other: 'à¸à¸£à¸°à¸¡à¸²à¸ {{count}} à¹à¸à¸·à¸à¸' 62732 }, 62733 xMonths: { 62734 one: '1 à¹à¸à¸·à¸à¸', 62735 other: '{{count}} à¹à¸à¸·à¸à¸' 62736 }, 62737 aboutXYears: { 62738 one: 'à¸à¸£à¸°à¸¡à¸²à¸ 1 à¸à¸µ', 62739 other: 'à¸à¸£à¸°à¸¡à¸²à¸ {{count}} à¸à¸µ' 62740 }, 62741 xYears: { 62742 one: '1 à¸à¸µ', 62743 other: '{{count}} à¸à¸µ' 62744 }, 62745 overXYears: { 62746 one: 'มาà¸à¸à¸§à¹à¸² 1 à¸à¸µ', 62747 other: 'มาà¸à¸à¸§à¹à¸² {{count}} à¸à¸µ' 62748 }, 62749 almostXYears: { 62750 one: 'à¹à¸à¸·à¸à¸ 1 à¸à¸µ', 62751 other: 'à¹à¸à¸·à¸à¸ {{count}} à¸à¸µ' 62752 } 62753 }; 62754 62755 function formatDistance(token, count, options) { 62756 options = options || {}; 62757 var result; 62758 62759 if (typeof formatDistanceLocale[token] === 'string') { 62760 result = formatDistanceLocale[token]; 62761 } else if (count === 1) { 62762 result = formatDistanceLocale[token].one; 62763 } else { 62764 result = formatDistanceLocale[token].other.replace('{{count}}', count); 62765 } 62766 62767 if (options.addSuffix) { 62768 if (options.comparison > 0) { 62769 if (token === 'halfAMinute') { 62770 return 'à¹à¸' + result; 62771 } else { 62772 return 'à¹à¸ ' + result; 62773 } 62774 } else { 62775 return result + 'à¸à¸µà¹à¸à¹à¸²à¸à¸¡à¸²'; 62776 } 62777 } 62778 62779 return result; 62780 } 62781 62782 /***/ 62783 }), 62784 /* 809 */ 62785 /***/ (function (module, __webpack_exports__, __webpack_require__) { 62786 62787 "use strict"; 62788 /* harmony import */ 62789 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 62790 62791 var dateFormats = { 62792 full: 'วัà¸EEEEà¸à¸µà¹ do MMMM y', 62793 long: 'do MMMM y', 62794 medium: 'd MMM y', 62795 short: 'dd/MM/yyyy' 62796 }; 62797 var timeFormats = { 62798 full: 'H:mm:ss à¸. zzzz', 62799 long: 'H:mm:ss à¸. z', 62800 medium: 'H:mm:ss à¸.', 62801 short: 'H:mm à¸.' 62802 }; 62803 var dateTimeFormats = { 62804 full: "{{date}} 'à¹à¸§à¸¥à¸²' {{time}}", 62805 long: "{{date}} 'à¹à¸§à¸¥à¸²' {{time}}", 62806 medium: '{{date}}, {{time}}', 62807 short: '{{date}}, {{time}}' 62808 }; 62809 var formatLong = { 62810 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 62811 formats: dateFormats, 62812 defaultWidth: 'full' 62813 }), 62814 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 62815 formats: timeFormats, 62816 defaultWidth: 'medium' 62817 }), 62818 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 62819 formats: dateTimeFormats, 62820 defaultWidth: 'full' 62821 }) 62822 }; 62823 /* harmony default export */ 62824 __webpack_exports__["a"] = (formatLong); 62825 62826 /***/ 62827 }), 62828 /* 810 */ 62829 /***/ (function (module, __webpack_exports__, __webpack_require__) { 62830 62831 "use strict"; 62832 /* harmony export (immutable) */ 62833 __webpack_exports__["a"] = formatRelative; 62834 var formatRelativeLocale = { 62835 lastWeek: "eeee'à¸à¸µà¹à¹à¸¥à¹à¸§à¹à¸§à¸¥à¸²' p", 62836 yesterday: "'à¹à¸¡à¸·à¹à¸à¸§à¸²à¸à¸à¸µà¹à¹à¸§à¸¥à¸²' p", 62837 today: "'วัà¸à¸à¸µà¹à¹à¸§à¸¥à¸²' p", 62838 tomorrow: "'à¸à¸£à¸¸à¹à¸à¸à¸µà¹à¹à¸§à¸¥à¸²' p", 62839 nextWeek: "eeee 'à¹à¸§à¸¥à¸²' p", 62840 other: 'P' 62841 }; 62842 62843 function formatRelative(token, _date, _baseDate, _options) { 62844 return formatRelativeLocale[token]; 62845 } 62846 62847 /***/ 62848 }), 62849 /* 811 */ 62850 /***/ (function (module, __webpack_exports__, __webpack_require__) { 62851 62852 "use strict"; 62853 /* harmony import */ 62854 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 62855 62856 var eraValues = { 62857 narrow: ['B', 'à¸à¸¨'], 62858 abbreviated: ['BC', 'à¸.ศ.'], 62859 wide: ['à¸à¸µà¸à¹à¸à¸à¸à¸£à¸´à¸ªà¸à¸à¸²à¸¥', 'à¸à¸£à¸´à¸ªà¸à¹à¸¨à¸±à¸à¸£à¸²à¸'] 62860 }; 62861 var quarterValues = { 62862 narrow: ['1', '2', '3', '4'], 62863 abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], 62864 wide: ['à¹à¸à¸£à¸¡à¸²à¸ªà¹à¸£à¸', 'à¹à¸à¸£à¸¡à¸²à¸ªà¸à¸µà¹à¸ªà¸à¸', 'à¹à¸à¸£à¸¡à¸²à¸ªà¸à¸µà¹à¸ªà¸²à¸¡', 'à¹à¸à¸£à¸¡à¸²à¸ªà¸à¸µà¹à¸ªà¸µà¹'] 62865 }; 62866 var dayValues = { 62867 narrow: ['à¸à¸².', 'à¸.', 'à¸.', 'à¸.', 'à¸à¸¤.', 'ศ.', 'ส.'], 62868 short: ['à¸à¸².', 'à¸.', 'à¸.', 'à¸.', 'à¸à¸¤.', 'ศ.', 'ส.'], 62869 abbreviated: ['à¸à¸².', 'à¸.', 'à¸.', 'à¸.', 'à¸à¸¤.', 'ศ.', 'ส.'], 62870 wide: ['à¸à¸²à¸à¸´à¸à¸¢à¹', 'à¸à¸±à¸à¸à¸£à¹', 'à¸à¸±à¸à¸à¸²à¸£', 'à¸à¸¸à¸', 'à¸à¸¤à¸«à¸±à¸ªà¸à¸à¸µ', 'ศุà¸à¸£à¹', 'à¹à¸ªà¸²à¸£à¹'] 62871 }; 62872 var monthValues = { 62873 narrow: ['ม.à¸.', 'à¸.à¸.', 'มี.à¸.', 'à¹à¸¡.ย.', 'à¸.à¸.', 'มิ.ย.', 'à¸.à¸.', 'ส.à¸.', 'à¸.ย.', 'à¸.à¸.', 'à¸.ย.', 'à¸.à¸.'], 62874 abbreviated: ['ม.à¸.', 'à¸.à¸.', 'มี.à¸.', 'à¹à¸¡.ย.', 'à¸.à¸.', 'มิ.ย.', 'à¸.à¸.', 'ส.à¸.', 'à¸.ย.', 'à¸.à¸.', 'à¸.ย.', 'à¸.à¸.'], 62875 wide: ['มà¸à¸£à¸²à¸à¸¡', 'à¸à¸¸à¸¡à¸ าà¸à¸±à¸à¸à¹', 'มีà¸à¸²à¸à¸¡', 'à¹à¸¡à¸©à¸²à¸¢à¸', 'à¸à¸¤à¸©à¸ าà¸à¸¡', 'มิà¸à¸¸à¸à¸²à¸¢à¸', 'à¸à¸£à¸à¸à¸²à¸à¸¡', 'สิà¸à¸«à¸²à¸à¸¡', 'à¸à¸±à¸à¸¢à¸²à¸¢à¸', 'à¸à¸¸à¸¥à¸²à¸à¸¡', 'à¸à¸¤à¸¨à¸à¸´à¸à¸²à¸¢à¸', 'à¸à¸±à¸à¸§à¸²à¸à¸¡'] 62876 }; 62877 var dayPeriodValues = { 62878 narrow: { 62879 am: 'à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸', 62880 pm: 'หลัà¸à¹à¸à¸µà¹à¸¢à¸', 62881 midnight: 'à¹à¸à¸µà¹à¸¢à¸à¸à¸·à¸', 62882 noon: 'à¹à¸à¸µà¹à¸¢à¸', 62883 morning: 'à¹à¸à¹à¸²', 62884 afternoon: 'à¸à¹à¸²à¸¢', 62885 evening: 'à¹à¸¢à¹à¸', 62886 night: 'à¸à¸¥à¸²à¸à¸à¸·à¸' 62887 }, 62888 abbreviated: { 62889 am: 'à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸', 62890 pm: 'หลัà¸à¹à¸à¸µà¹à¸¢à¸', 62891 midnight: 'à¹à¸à¸µà¹à¸¢à¸à¸à¸·à¸', 62892 noon: 'à¹à¸à¸µà¹à¸¢à¸', 62893 morning: 'à¹à¸à¹à¸²', 62894 afternoon: 'à¸à¹à¸²à¸¢', 62895 evening: 'à¹à¸¢à¹à¸', 62896 night: 'à¸à¸¥à¸²à¸à¸à¸·à¸' 62897 }, 62898 wide: { 62899 am: 'à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸', 62900 pm: 'หลัà¸à¹à¸à¸µà¹à¸¢à¸', 62901 midnight: 'à¹à¸à¸µà¹à¸¢à¸à¸à¸·à¸', 62902 noon: 'à¹à¸à¸µà¹à¸¢à¸', 62903 morning: 'à¹à¸à¹à¸²', 62904 afternoon: 'à¸à¹à¸²à¸¢', 62905 evening: 'à¹à¸¢à¹à¸', 62906 night: 'à¸à¸¥à¸²à¸à¸à¸·à¸' 62907 } 62908 }; 62909 var formattingDayPeriodValues = { 62910 narrow: { 62911 am: 'à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸', 62912 pm: 'หลัà¸à¹à¸à¸µà¹à¸¢à¸', 62913 midnight: 'à¹à¸à¸µà¹à¸¢à¸à¸à¸·à¸', 62914 noon: 'à¹à¸à¸µà¹à¸¢à¸', 62915 morning: 'à¸à¸à¸à¹à¸à¹à¸²', 62916 afternoon: 'à¸à¸à¸à¸à¸¥à¸²à¸à¸§à¸±à¸', 62917 evening: 'à¸à¸à¸à¹à¸¢à¹à¸', 62918 night: 'à¸à¸à¸à¸à¸¥à¸²à¸à¸à¸·à¸' 62919 }, 62920 abbreviated: { 62921 am: 'à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸', 62922 pm: 'หลัà¸à¹à¸à¸µà¹à¸¢à¸', 62923 midnight: 'à¹à¸à¸µà¹à¸¢à¸à¸à¸·à¸', 62924 noon: 'à¹à¸à¸µà¹à¸¢à¸', 62925 morning: 'à¸à¸à¸à¹à¸à¹à¸²', 62926 afternoon: 'à¸à¸à¸à¸à¸¥à¸²à¸à¸§à¸±à¸', 62927 evening: 'à¸à¸à¸à¹à¸¢à¹à¸', 62928 night: 'à¸à¸à¸à¸à¸¥à¸²à¸à¸à¸·à¸' 62929 }, 62930 wide: { 62931 am: 'à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸', 62932 pm: 'หลัà¸à¹à¸à¸µà¹à¸¢à¸', 62933 midnight: 'à¹à¸à¸µà¹à¸¢à¸à¸à¸·à¸', 62934 noon: 'à¹à¸à¸µà¹à¸¢à¸', 62935 morning: 'à¸à¸à¸à¹à¸à¹à¸²', 62936 afternoon: 'à¸à¸à¸à¸à¸¥à¸²à¸à¸§à¸±à¸', 62937 evening: 'à¸à¸à¸à¹à¸¢à¹à¸', 62938 night: 'à¸à¸à¸à¸à¸¥à¸²à¸à¸à¸·à¸' 62939 } 62940 }; 62941 62942 function ordinalNumber(dirtyNumber) { 62943 var number = Number(dirtyNumber); 62944 return number; 62945 } 62946 62947 var localize = { 62948 ordinalNumber: ordinalNumber, 62949 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 62950 values: eraValues, 62951 defaultWidth: 'wide' 62952 }), 62953 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 62954 values: quarterValues, 62955 defaultWidth: 'wide', 62956 argumentCallback: function (quarter) { 62957 return Number(quarter) - 1; 62958 } 62959 }), 62960 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 62961 values: monthValues, 62962 defaultWidth: 'wide' 62963 }), 62964 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 62965 values: dayValues, 62966 defaultWidth: 'wide' 62967 }), 62968 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 62969 values: dayPeriodValues, 62970 defaultWidth: 'wide', 62971 formattingValues: formattingDayPeriodValues, 62972 defaultFormattingWidth: 'wide' 62973 }) 62974 }; 62975 /* harmony default export */ 62976 __webpack_exports__["a"] = (localize); 62977 62978 /***/ 62979 }), 62980 /* 812 */ 62981 /***/ (function (module, __webpack_exports__, __webpack_require__) { 62982 62983 "use strict"; 62984 /* harmony import */ 62985 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 62986 /* harmony import */ 62987 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 62988 62989 62990 var matchOrdinalNumberPattern = /^\d+/i; 62991 var parseOrdinalNumberPattern = /\d+/i; 62992 var matchEraPatterns = { 62993 narrow: /^([bB]|[aA]|à¸à¸¨)/i, 62994 abbreviated: /^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|à¸\.?ศ\.?)/i, 62995 wide: /^(à¸à¹à¸à¸à¸à¸£à¸´à¸ªà¸à¸à¸²à¸¥|à¸à¸£à¸´à¸ªà¸à¹à¸¨à¸±à¸à¸£à¸²à¸|à¸à¸£à¸´à¸ªà¸à¸à¸²à¸¥)/i 62996 }; 62997 var parseEraPatterns = { 62998 any: [/^[bB]/i, /^(^[aA]|à¸\.?ศ\.?|à¸à¸£à¸´à¸ªà¸à¸à¸²à¸¥|à¸à¸£à¸´à¸ªà¸à¹à¸¨à¸±à¸à¸£à¸²à¸|)/i] 62999 }; 63000 var matchQuarterPatterns = { 63001 narrow: /^[1234]/i, 63002 abbreviated: /^q[1234]/i, 63003 wide: /^à¹à¸à¸£à¸¡à¸²à¸ª(à¸à¸µà¹)? ?[1234]/i 63004 }; 63005 var parseQuarterPatterns = { 63006 any: [/(1|à¹à¸£à¸|หà¸à¸¶à¹à¸)/i, /(2|สà¸à¸)/i, /(3|สาม)/i, /(4|สีà¹)/i] 63007 }; 63008 var matchMonthPatterns = { 63009 narrow: /^(ม\.?à¸\.?|à¸\.?à¸\.?|มี\.?à¸\.?|à¹à¸¡\.?ย\.?|à¸\.?à¸\.?|มิ\.?ย\.?|à¸\.?à¸\.?|ส\.?à¸\.?|à¸\.?ย\.?|à¸\.?à¸\.?|à¸\.?ย\.?|à¸\.?à¸\.?)/i, 63010 abbreviated: /^(ม\.?à¸\.?|à¸\.?à¸\.?|มี\.?à¸\.?|à¹à¸¡\.?ย\.?|à¸\.?à¸\.?|มิ\.?ย\.?|à¸\.?à¸\.?|ส\.?à¸\.?|à¸\.?ย\.?|à¸\.?à¸\.?|à¸\.?ย\.?|à¸\.?à¸\.?')/i, 63011 wide: /^(มà¸à¸£à¸²à¸à¸¡|à¸à¸¸à¸¡à¸ าà¸à¸±à¸à¸à¹|มีà¸à¸²à¸à¸¡|à¹à¸¡à¸©à¸²à¸¢à¸|à¸à¸¤à¸©à¸ าà¸à¸¡|มิà¸à¸¸à¸à¸²à¸¢à¸|à¸à¸£à¸à¸à¸²à¸à¸¡|สิà¸à¸«à¸²à¸à¸¡|à¸à¸±à¸à¸¢à¸²à¸¢à¸|à¸à¸¸à¸¥à¸²à¸à¸¡|à¸à¸¤à¸¨à¸à¸´à¸à¸²à¸¢à¸|à¸à¸±à¸à¸§à¸²à¸à¸¡)/i 63012 }; 63013 var parseMonthPatterns = { 63014 wide: [/^มà¸/i, /^à¸à¸¸à¸¡/i, /^มี/i, /^à¹à¸¡/i, /^à¸à¸¤à¸©/i, /^มิ/i, /^à¸à¸£à¸/i, /^ส/i, /^à¸à¸±à¸/i, /^à¸/i, /^à¸à¸¤à¸¨/i, /^à¸/i], 63015 any: [/^ม\.?à¸\.?/i, /^à¸\.?à¸\.?/i, /^มี\.?à¸\.?/i, /^à¹à¸¡\.?ย\.?/i, /^à¸\.?à¸\.?/i, /^มิ\.?ย\.?/i, /^à¸\.?à¸\.?/i, /^ส\.?à¸\.?/i, /^à¸\.?ย\.?/i, /^à¸\.?à¸\.?/i, /^à¸\.?ย\.?/i, /^à¸\.?à¸\.?/i] 63016 }; 63017 var matchDayPatterns = { 63018 narrow: /^(à¸à¸²\.?|à¸\.?|à¸\.?|à¸à¸¤\.?|à¸\.?|ศ\.?|ส\.?)/i, 63019 short: /^(à¸à¸²\.?|à¸\.?|à¸\.?|à¸à¸¤\.?|à¸\.?|ศ\.?|ส\.?)/i, 63020 abbreviated: /^(à¸à¸²\.?|à¸\.?|à¸\.?|à¸à¸¤\.?|à¸\.?|ศ\.?|ส\.?)/i, 63021 wide: /^(à¸à¸²à¸à¸´à¸à¸¢à¹|à¸à¸±à¸à¸à¸£à¹|à¸à¸±à¸à¸à¸²à¸£|à¸à¸¸à¸|à¸à¸¤à¸«à¸±à¸ªà¸à¸à¸µ|ศุà¸à¸£à¹|à¹à¸ªà¸²à¸£à¹)/i 63022 }; 63023 var parseDayPatterns = { 63024 wide: [/^à¸à¸²/i, /^à¸à¸±/i, /^à¸à¸±/i, /^à¸à¸¸à¸/i, /^à¸à¸¤/i, /^ศ/i, /^à¹à¸ª/i], 63025 any: [/^à¸à¸²/i, /^à¸/i, /^à¸/i, /^à¸(?!ฤ)/i, /^à¸à¸¤/i, /^ศ/i, /^ส/i] 63026 }; 63027 var matchDayPeriodPatterns = { 63028 any: /^(à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸|หลัà¸à¹à¸à¸µà¹à¸¢à¸|à¹à¸à¸µà¹à¸¢à¸à¸à¸·à¸|à¹à¸à¸µà¹à¸¢à¸|(à¸à¸à¸.*?)?.*(à¹à¸à¸µà¹à¸¢à¸|à¹à¸à¹à¸²|à¸à¹à¸²à¸¢|à¹à¸¢à¹à¸|à¸à¸¥à¸²à¸à¸à¸·à¸))/i 63029 }; 63030 var parseDayPeriodPatterns = { 63031 any: { 63032 am: /^à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸/i, 63033 pm: /^หลัà¸à¹à¸à¸µà¹à¸¢à¸/i, 63034 midnight: /^à¹à¸à¸µà¹à¸¢à¸à¸à¸·à¸/i, 63035 noon: /^à¹à¸à¸µà¹à¸¢à¸/i, 63036 morning: /à¹à¸à¹à¸²/i, 63037 afternoon: /à¸à¹à¸²à¸¢/i, 63038 evening: /à¹à¸¢à¹à¸/i, 63039 night: /à¸à¸¥à¸²à¸à¸à¸·à¸/i 63040 } 63041 }; 63042 var match = { 63043 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 63044 matchPattern: matchOrdinalNumberPattern, 63045 parsePattern: parseOrdinalNumberPattern, 63046 valueCallback: function (value) { 63047 return parseInt(value, 10); 63048 } 63049 }), 63050 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 63051 matchPatterns: matchEraPatterns, 63052 defaultMatchWidth: 'wide', 63053 parsePatterns: parseEraPatterns, 63054 defaultParseWidth: 'any' 63055 }), 63056 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 63057 matchPatterns: matchQuarterPatterns, 63058 defaultMatchWidth: 'wide', 63059 parsePatterns: parseQuarterPatterns, 63060 defaultParseWidth: 'any', 63061 valueCallback: function (index) { 63062 return index + 1; 63063 } 63064 }), 63065 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 63066 matchPatterns: matchMonthPatterns, 63067 defaultMatchWidth: 'wide', 63068 parsePatterns: parseMonthPatterns, 63069 defaultParseWidth: 'any' 63070 }), 63071 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 63072 matchPatterns: matchDayPatterns, 63073 defaultMatchWidth: 'wide', 63074 parsePatterns: parseDayPatterns, 63075 defaultParseWidth: 'any' 63076 }), 63077 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 63078 matchPatterns: matchDayPeriodPatterns, 63079 defaultMatchWidth: 'any', 63080 parsePatterns: parseDayPeriodPatterns, 63081 defaultParseWidth: 'any' 63082 }) 63083 }; 63084 /* harmony default export */ 63085 __webpack_exports__["a"] = (match); 63086 63087 /***/ 63088 }), 63089 /* 813 */ 63090 /***/ (function (module, __webpack_exports__, __webpack_require__) { 63091 63092 "use strict"; 63093 /* harmony import */ 63094 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(814); 63095 /* harmony import */ 63096 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(815); 63097 /* harmony import */ 63098 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(816); 63099 /* harmony import */ 63100 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(817); 63101 /* harmony import */ 63102 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(818); 63103 63104 63105 /** 63106 * @type {Locale} 63107 * @category Locales 63108 * @summary Turkish locale. 63109 * @language Turkish 63110 * @iso-639-2 tur 63111 * @author Alpcan Aydın [@alpcanaydin]{@link https://github.com/alpcanaydin} 63112 * @author Berkay Sargın [@berkaey]{@link https://github.com/berkaey} 63113 * @author Ismail Demirbilek [@dbtek]{@link https://github.com/dbtek} 63114 * @author İsmail Kayar [@ikayar]{@link https://github.com/ikayar} 63115 * 63116 * 63117 */ 63118 63119 var locale = { 63120 code: 'tr', 63121 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 63122 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 63123 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 63124 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 63125 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 63126 options: { 63127 weekStartsOn: 1 63128 /* Monday */ 63129 , 63130 firstWeekContainsDate: 1 63131 } 63132 }; 63133 /* harmony default export */ 63134 __webpack_exports__["a"] = (locale); 63135 63136 /***/ 63137 }), 63138 /* 814 */ 63139 /***/ (function (module, __webpack_exports__, __webpack_require__) { 63140 63141 "use strict"; 63142 /* harmony export (immutable) */ 63143 __webpack_exports__["a"] = formatDistance; 63144 var formatDistanceLocale = { 63145 lessThanXSeconds: { 63146 one: 'bir saniyeden az', 63147 other: '{{count}} saniyeden az' 63148 }, 63149 xSeconds: { 63150 one: '1 saniye', 63151 other: '{{count}} saniye' 63152 }, 63153 halfAMinute: 'yarım dakika', 63154 lessThanXMinutes: { 63155 one: 'bir dakikadan az', 63156 other: '{{count}} dakikadan az' 63157 }, 63158 xMinutes: { 63159 one: '1 dakika', 63160 other: '{{count}} dakika' 63161 }, 63162 aboutXHours: { 63163 one: 'yaklaÅık 1 saat', 63164 other: 'yaklaÅık {{count}} saat' 63165 }, 63166 xHours: { 63167 one: '1 saat', 63168 other: '{{count}} saat' 63169 }, 63170 xDays: { 63171 one: '1 gün', 63172 other: '{{count}} gün' 63173 }, 63174 aboutXWeeks: { 63175 one: 'yaklaÅık 1 hafta', 63176 other: 'yaklaÅık {{count}} hafta' 63177 }, 63178 xWeeks: { 63179 one: '1 hafta', 63180 other: '{{count}} hafta' 63181 }, 63182 aboutXMonths: { 63183 one: 'yaklaÅık 1 ay', 63184 other: 'yaklaÅık {{count}} ay' 63185 }, 63186 xMonths: { 63187 one: '1 ay', 63188 other: '{{count}} ay' 63189 }, 63190 aboutXYears: { 63191 one: 'yaklaÅık 1 yıl', 63192 other: 'yaklaÅık {{count}} yıl' 63193 }, 63194 xYears: { 63195 one: '1 yıl', 63196 other: '{{count}} yıl' 63197 }, 63198 overXYears: { 63199 one: '1 yıldan fazla', 63200 other: '{{count}} yıldan fazla' 63201 }, 63202 almostXYears: { 63203 one: 'neredeyse 1 yıl', 63204 other: 'neredeyse {{count}} yıl' 63205 } 63206 }; 63207 63208 function formatDistance(token, count, options) { 63209 options = options || {}; 63210 var result; 63211 63212 if (typeof formatDistanceLocale[token] === 'string') { 63213 result = formatDistanceLocale[token]; 63214 } else if (count === 1) { 63215 result = formatDistanceLocale[token].one; 63216 } else { 63217 result = formatDistanceLocale[token].other.replace('{{count}}', count); 63218 } 63219 63220 if (options.addSuffix) { 63221 if (options.comparison > 0) { 63222 return result + ' sonra'; 63223 } else { 63224 return result + ' önce'; 63225 } 63226 } 63227 63228 return result; 63229 } 63230 63231 /***/ 63232 }), 63233 /* 815 */ 63234 /***/ (function (module, __webpack_exports__, __webpack_require__) { 63235 63236 "use strict"; 63237 /* harmony import */ 63238 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 63239 63240 var dateFormats = { 63241 full: 'd MMMM y EEEE', 63242 long: 'd MMMM y', 63243 medium: 'd MMM y', 63244 short: 'dd.MM.yyyy' 63245 }; 63246 var timeFormats = { 63247 full: 'HH:mm:ss zzzz', 63248 long: 'HH:mm:ss z', 63249 medium: 'HH:mm:ss', 63250 short: 'HH:mm' 63251 }; 63252 var dateTimeFormats = { 63253 full: "{{date}} 'saat' {{time}}", 63254 long: "{{date}} 'saat' {{time}}", 63255 medium: '{{date}}, {{time}}', 63256 short: '{{date}}, {{time}}' 63257 }; 63258 var formatLong = { 63259 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 63260 formats: dateFormats, 63261 defaultWidth: 'full' 63262 }), 63263 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 63264 formats: timeFormats, 63265 defaultWidth: 'full' 63266 }), 63267 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 63268 formats: dateTimeFormats, 63269 defaultWidth: 'full' 63270 }) 63271 }; 63272 /* harmony default export */ 63273 __webpack_exports__["a"] = (formatLong); 63274 63275 /***/ 63276 }), 63277 /* 816 */ 63278 /***/ (function (module, __webpack_exports__, __webpack_require__) { 63279 63280 "use strict"; 63281 /* harmony export (immutable) */ 63282 __webpack_exports__["a"] = formatRelative; 63283 var formatRelativeLocale = { 63284 lastWeek: "'geçen hafta' eeee 'saat' p", 63285 yesterday: "'dün saat' p", 63286 today: "'bugün saat' p", 63287 tomorrow: "'yarın saat' p", 63288 nextWeek: "eeee 'saat' p", 63289 other: 'P' 63290 }; 63291 63292 function formatRelative(token, _date, _baseDate, _options) { 63293 return formatRelativeLocale[token]; 63294 } 63295 63296 /***/ 63297 }), 63298 /* 817 */ 63299 /***/ (function (module, __webpack_exports__, __webpack_require__) { 63300 63301 "use strict"; 63302 /* harmony import */ 63303 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 63304 63305 var eraValues = { 63306 abbreviated: ['MÃ', 'MS'], 63307 narrow: ['MÃ', 'MS'], 63308 wide: ['Milattan Ãnce', 'Milattan Sonra'] 63309 }; 63310 var quarterValues = { 63311 narrow: ['1', '2', '3', '4'], 63312 abbreviated: ['1Ã', '2Ã', '3Ã', '4Ã'], 63313 wide: ['İlk çeyrek', 'İkinci Ãeyrek', 'Ãçüncü çeyrek', 'Son çeyrek'] 63314 }; 63315 var monthValues = { 63316 narrow: ['O', 'Å', 'M', 'N', 'M', 'H', 'T', 'A', 'E', 'E', 'K', 'A'], 63317 abbreviated: ['Oca', 'Åub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'AÄu', 'Eyl', 'Eki', 'Kas', 'Ara'], 63318 wide: ['Ocak', 'Åubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'AÄustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'] 63319 }; 63320 var dayValues = { 63321 narrow: ['P', 'P', 'S', 'Ã', 'P', 'C', 'C'], 63322 short: ['Pz', 'Pt', 'Sa', 'Ãa', 'Pe', 'Cu', 'Ct'], 63323 abbreviated: ['Paz', 'Pts', 'Sal', 'Ãar', 'Per', 'Cum', 'Cts'], 63324 wide: ['Pazar', 'Pazartesi', 'Salı', 'ÃarÅamba', 'PerÅembe', 'Cuma', 'Cumartesi'] 63325 }; 63326 var dayPeriodValues = { 63327 narrow: { 63328 am: 'öö', 63329 pm: 'ös', 63330 midnight: 'gy', 63331 noon: 'ö', 63332 morning: 'sa', 63333 afternoon: 'ös', 63334 evening: 'ak', 63335 night: 'ge' 63336 }, 63337 abbreviated: { 63338 am: 'ÃÃ', 63339 pm: 'ÃS', 63340 midnight: 'gece yarısı', 63341 noon: 'öÄle', 63342 morning: 'sabah', 63343 afternoon: 'öÄleden sonra', 63344 evening: 'akÅam', 63345 night: 'gece' 63346 }, 63347 wide: { 63348 am: 'Ã.Ã.', 63349 pm: 'Ã.S.', 63350 midnight: 'gece yarısı', 63351 noon: 'öÄle', 63352 morning: 'sabah', 63353 afternoon: 'öÄleden sonra', 63354 evening: 'akÅam', 63355 night: 'gece' 63356 } 63357 }; 63358 var formattingDayPeriodValues = { 63359 narrow: { 63360 am: 'öö', 63361 pm: 'ös', 63362 midnight: 'gy', 63363 noon: 'ö', 63364 morning: 'sa', 63365 afternoon: 'ös', 63366 evening: 'ak', 63367 night: 'ge' 63368 }, 63369 abbreviated: { 63370 am: 'ÃÃ', 63371 pm: 'ÃS', 63372 midnight: 'gece yarısı', 63373 noon: 'öÄlen', 63374 morning: 'sabahleyin', 63375 afternoon: 'öÄleden sonra', 63376 evening: 'akÅamleyin', 63377 night: 'geceleyin' 63378 }, 63379 wide: { 63380 am: 'ö.ö.', 63381 pm: 'ö.s.', 63382 midnight: 'gece yarısı', 63383 noon: 'öÄlen', 63384 morning: 'sabahleyin', 63385 afternoon: 'öÄleden sonra', 63386 evening: 'akÅamleyin', 63387 night: 'geceleyin' 63388 } 63389 }; 63390 63391 function ordinalNumber(dirtyNumber, _dirtyOptions) { 63392 var number = Number(dirtyNumber); 63393 return number + '.'; 63394 } 63395 63396 var localize = { 63397 ordinalNumber: ordinalNumber, 63398 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 63399 values: eraValues, 63400 defaultWidth: 'wide' 63401 }), 63402 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 63403 values: quarterValues, 63404 defaultWidth: 'wide', 63405 argumentCallback: function (quarter) { 63406 return Number(quarter) - 1; 63407 } 63408 }), 63409 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 63410 values: monthValues, 63411 defaultWidth: 'wide' 63412 }), 63413 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 63414 values: dayValues, 63415 defaultWidth: 'wide' 63416 }), 63417 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 63418 values: dayPeriodValues, 63419 defaultWidth: 'wide', 63420 formattingValues: formattingDayPeriodValues, 63421 defaulFormattingWidth: 'wide' 63422 }) 63423 }; 63424 /* harmony default export */ 63425 __webpack_exports__["a"] = (localize); 63426 63427 /***/ 63428 }), 63429 /* 818 */ 63430 /***/ (function (module, __webpack_exports__, __webpack_require__) { 63431 63432 "use strict"; 63433 /* harmony import */ 63434 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 63435 /* harmony import */ 63436 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 63437 63438 63439 var matchOrdinalNumberPattern = /^(\d+)(\.)?/i; 63440 var parseOrdinalNumberPattern = /\d+/i; 63441 var matchEraPatterns = { 63442 narrow: /^(mö|ms)/i, 63443 abbreviated: /^(mö|ms)/i, 63444 wide: /^(milattan önce|milattan sonra)/i 63445 }; 63446 var parseEraPatterns = { 63447 any: [/(^mö|^milattan önce)/i, /(^ms|^milattan sonra)/i] 63448 }; 63449 var matchQuarterPatterns = { 63450 narrow: /^[1234]/i, 63451 abbreviated: /^[1234]ç/i, 63452 wide: /^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i 63453 }; 63454 var parseQuarterPatterns = { 63455 any: [/1/i, /2/i, /3/i, /4/i], 63456 abbreviated: [/1ç/i, /2ç/i, /3ç/i, /4ç/i], 63457 wide: [/^(i|İ)lk çeyrek/i, /(i|İ)kinci çeyrek/i, /üçüncü çeyrek/i, /son çeyrek/i] 63458 }; 63459 var matchMonthPatterns = { 63460 narrow: /^[oÅmnhtaek]/i, 63461 abbreviated: /^(oca|Åub|mar|nis|may|haz|tem|aÄu|eyl|eki|kas|ara)/i, 63462 wide: /^(ocak|Åubat|mart|nisan|mayıs|haziran|temmuz|aÄustos|eylül|ekim|kasım|aralık)/i 63463 }; 63464 var parseMonthPatterns = { 63465 narrow: [/^o/i, /^Å/i, /^m/i, /^n/i, /^m/i, /^h/i, /^t/i, /^a/i, /^e/i, /^e/i, /^k/i, /^a/i], 63466 any: [/^o/i, /^Å/i, /^mar/i, /^n/i, /^may/i, /^h/i, /^t/i, /^aÄ/i, /^ey/i, /^ek/i, /^k/i, /^ar/i] 63467 }; 63468 var matchDayPatterns = { 63469 narrow: /^[psçc]/i, 63470 short: /^(pz|pt|sa|ça|pe|cu|ct)/i, 63471 abbreviated: /^(paz|pts|sal|çar|per|cum|cts)/i, 63472 wide: /^(pazar|pazartesi|salı|çarÅamba|perÅembe|cuma|cumartesi)/i 63473 }; 63474 var parseDayPatterns = { 63475 narrow: [/^p/i, /^p/i, /^s/i, /^ç/i, /^p/i, /^c/i, /^c/i], 63476 any: [/^pz/i, /^pt/i, /^sa/i, /^ça/i, /^pe/i, /^cu/i, /^ct/i], 63477 wide: [/^pazar/i, /^pazartesi/i, /^salı/i, /^çarÅamba/i, /^perÅembe/i, /^cuma/i, /cumartesi/i] 63478 }; 63479 var matchDayPeriodPatterns = { 63480 narrow: /^(öö|ös|gy|ö|sa|ös|ak|ge)/i, 63481 any: /^(ö\.?\s?[ös]\.?|öÄleden sonra|gece yarısı|öÄle|(sabah|öÄ|akÅam|gece)(leyin))/i 63482 }; 63483 var parseDayPeriodPatterns = { 63484 any: { 63485 am: /^ö\.?ö\.?/i, 63486 pm: /^ö\.?s\.?/i, 63487 midnight: /^(gy|gece yarısı)/i, 63488 noon: /^öÄ/i, 63489 morning: /^sa/i, 63490 afternoon: /^öÄleden sonra/i, 63491 evening: /^ak/i, 63492 night: /^ge/i 63493 } 63494 }; 63495 var match = { 63496 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 63497 matchPattern: matchOrdinalNumberPattern, 63498 parsePattern: parseOrdinalNumberPattern, 63499 valueCallback: function (value) { 63500 return parseInt(value, 10); 63501 } 63502 }), 63503 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 63504 matchPatterns: matchEraPatterns, 63505 defaultMatchWidth: 'wide', 63506 parsePatterns: parseEraPatterns, 63507 defaultParseWidth: 'any' 63508 }), 63509 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 63510 matchPatterns: matchQuarterPatterns, 63511 defaultMatchWidth: 'wide', 63512 parsePatterns: parseQuarterPatterns, 63513 defaultParseWidth: 'any', 63514 valueCallback: function (index) { 63515 return index + 1; 63516 } 63517 }), 63518 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 63519 matchPatterns: matchMonthPatterns, 63520 defaultMatchWidth: 'wide', 63521 parsePatterns: parseMonthPatterns, 63522 defaultParseWidth: 'any' 63523 }), 63524 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 63525 matchPatterns: matchDayPatterns, 63526 defaultMatchWidth: 'wide', 63527 parsePatterns: parseDayPatterns, 63528 defaultParseWidth: 'any' 63529 }), 63530 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 63531 matchPatterns: matchDayPeriodPatterns, 63532 defaultMatchWidth: 'any', 63533 parsePatterns: parseDayPeriodPatterns, 63534 defaultParseWidth: 'any' 63535 }) 63536 }; 63537 /* harmony default export */ 63538 __webpack_exports__["a"] = (match); 63539 63540 /***/ 63541 }), 63542 /* 819 */ 63543 /***/ (function (module, __webpack_exports__, __webpack_require__) { 63544 63545 "use strict"; 63546 /* harmony import */ 63547 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(820); 63548 /* harmony import */ 63549 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(821); 63550 /* harmony import */ 63551 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(822); 63552 /* harmony import */ 63553 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(823); 63554 /* harmony import */ 63555 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(824); 63556 63557 63558 /** 63559 * @type {Locale} 63560 * @category Locales 63561 * @summary Uighur locale 63562 * @language Uighur 63563 * @iso-639-2 uig 63564 * @author Abduwaly M. [@abduwaly]{@link https://github.com/abduwaly} 63565 */ 63566 63567 var locale = { 63568 code: 'ug', 63569 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 63570 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 63571 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 63572 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 63573 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 63574 options: { 63575 weekStartsOn: 0 63576 /* Sunday */ 63577 , 63578 firstWeekContainsDate: 1 63579 } 63580 }; 63581 /* harmony default export */ 63582 __webpack_exports__["a"] = (locale); 63583 63584 /***/ 63585 }), 63586 /* 820 */ 63587 /***/ (function (module, __webpack_exports__, __webpack_require__) { 63588 63589 "use strict"; 63590 /* harmony export (immutable) */ 63591 __webpack_exports__["a"] = formatDistance; 63592 var formatDistanceLocale = { 63593 lessThanXSeconds: { 63594 one: 'Ø¨ÙØ± سÙÙÛÙØª ئÙÚÙØ¯Û', 63595 other: 'سÙÙÛÙØª ئÙÚÙØ¯Û {{count}}' 63596 }, 63597 xSeconds: { 63598 one: 'Ø¨ÙØ± سÙÙÛÙØª', 63599 other: 'سÙÙÛÙØª {{count}}' 63600 }, 63601 halfAMinute: 'ÙÙØ±ÙÙ Ù ÙÙÛØª', 63602 lessThanXMinutes: { 63603 one: 'Ø¨ÙØ± Ù ÙÙÛØª ئÙÚÙØ¯Û', 63604 other: 'Ù ÙÙÛØª ئÙÚÙØ¯Û {{count}}' 63605 }, 63606 xMinutes: { 63607 one: 'Ø¨ÙØ± Ù ÙÙÛØª', 63608 other: 'Ù ÙÙÛØª {{count}}' 63609 }, 63610 aboutXHours: { 63611 one: 'ØªÛØ®Ù ÙÙÛÙ Ø¨ÙØ± Ø³Ø§Ø¦ÛØª', 63612 other: 'Ø³Ø§Ø¦ÛØª {{count}} ØªÛØ®Ù ÙÙÛÙ' 63613 }, 63614 xHours: { 63615 one: 'Ø¨ÙØ± Ø³Ø§Ø¦ÛØª', 63616 other: 'Ø³Ø§Ø¦ÛØª {{count}}' 63617 }, 63618 xDays: { 63619 one: 'Ø¨ÙØ± ÙÛÙ', 63620 other: 'ÙÛÙ {{count}}' 63621 }, 63622 aboutXWeeks: { 63623 one: 'ØªÛØ®Ù ÙÙÛÙ Ø¨ÙØ±Ú¾ÛپتÛ', 63624 other: 'Ú¾ÛÙ¾ØªÛ {{count}} ØªÛØ®Ù ÙÙÛÙ' 63625 }, 63626 xWeeks: { 63627 one: 'Ø¨ÙØ±Ú¾ÛپتÛ', 63628 other: 'Ú¾ÛÙ¾ØªÛ {{count}}' 63629 }, 63630 aboutXMonths: { 63631 one: 'ØªÛØ®Ù ÙÙÛÙ Ø¨ÙØ± ئاÙ', 63632 other: 'ئا٠{{count}} ØªÛØ®Ù ÙÙÛÙ' 63633 }, 63634 xMonths: { 63635 one: 'Ø¨ÙØ± ئاÙ', 63636 other: 'ئا٠{{count}}' 63637 }, 63638 aboutXYears: { 63639 one: 'ØªÛØ®Ù ÙÙÛÙ Ø¨ÙØ± ÙÙÙ', 63640 other: 'ÙÙÙ {{count}} ØªÛØ®Ù ÙÙÛÙ' 63641 }, 63642 xYears: { 63643 one: 'Ø¨ÙØ± ÙÙÙ', 63644 other: 'ÙÙÙ {{count}}' 63645 }, 63646 overXYears: { 63647 one: 'Ø¨ÙØ± ÙÙÙØ¯Ù٠ئارتÛÙ', 63648 other: 'ÙÙÙØ¯Ù٠ئارتÛÙ {{count}}' 63649 }, 63650 almostXYears: { 63651 one: 'ئاساسÛÙ Ø¨ÙØ± ÙÙÙ', 63652 other: 'ÙÙÙ {{count}} ئاساسÛÙ' 63653 } 63654 }; 63655 63656 function formatDistance(token, count, options) { 63657 options = options || {}; 63658 var result; 63659 63660 if (typeof formatDistanceLocale[token] === 'string') { 63661 result = formatDistanceLocale[token]; 63662 } else if (count === 1) { 63663 result = formatDistanceLocale[token].one; 63664 } else { 63665 result = formatDistanceLocale[token].other.replace('{{count}}', count); 63666 } 63667 63668 if (options.addSuffix) { 63669 if (options.comparison > 0) { 63670 return result; 63671 } else { 63672 return result + ' بÙÙØ¯Ù'; 63673 } 63674 } 63675 63676 return result; 63677 } 63678 63679 /***/ 63680 }), 63681 /* 821 */ 63682 /***/ (function (module, __webpack_exports__, __webpack_require__) { 63683 63684 "use strict"; 63685 /* harmony import */ 63686 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 63687 63688 var dateFormats = { 63689 full: 'EEEE, MMMM do, y', 63690 long: 'MMMM do, y', 63691 medium: 'MMM d, y', 63692 short: 'MM/dd/yyyy' 63693 }; 63694 var timeFormats = { 63695 full: 'h:mm:ss a zzzz', 63696 long: 'h:mm:ss a z', 63697 medium: 'h:mm:ss a', 63698 short: 'h:mm a' 63699 }; 63700 var dateTimeFormats = { 63701 full: "{{date}} 'دÛ' {{time}}", 63702 long: "{{date}} 'دÛ' {{time}}", 63703 medium: '{{date}}, {{time}}', 63704 short: '{{date}}, {{time}}' 63705 }; 63706 var formatLong = { 63707 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 63708 formats: dateFormats, 63709 defaultWidth: 'full' 63710 }), 63711 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 63712 formats: timeFormats, 63713 defaultWidth: 'full' 63714 }), 63715 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 63716 formats: dateTimeFormats, 63717 defaultWidth: 'full' 63718 }) 63719 }; 63720 /* harmony default export */ 63721 __webpack_exports__["a"] = (formatLong); 63722 63723 /***/ 63724 }), 63725 /* 822 */ 63726 /***/ (function (module, __webpack_exports__, __webpack_require__) { 63727 63728 "use strict"; 63729 /* harmony export (immutable) */ 63730 __webpack_exports__["a"] = formatRelative; 63731 var formatRelativeLocale = { 63732 lastWeek: "'ئâÛØªÙÛÙ' eeee 'دÛ' p", 63733 yesterday: "'تÛÙÛÚ¯Û٠دÛ' p", 63734 today: "'بÛÚ¯Û٠دÛ' p", 63735 tomorrow: "'Ø¦ÛØªÛ دÛ' p", 63736 nextWeek: "eeee 'دÛ' p", 63737 other: 'P' 63738 }; 63739 63740 function formatRelative(token, _date, _baseDate, _options) { 63741 return formatRelativeLocale[token]; 63742 } 63743 63744 /***/ 63745 }), 63746 /* 823 */ 63747 /***/ (function (module, __webpack_exports__, __webpack_require__) { 63748 63749 "use strict"; 63750 /* harmony import */ 63751 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 63752 63753 var eraValues = { 63754 narrow: ['ب', 'Ù'], 63755 abbreviated: ['ب', 'Ù'], 63756 wide: ['Ù ÙÙÙØ§Ø¯ÙدÙÙ Ø¨ÛØ±ÛÙ', 'Ù ÙÙÙØ§Ø¯ÙدÙÙ ÙÙÙÙÙ'] 63757 }; 63758 var quarterValues = { 63759 narrow: ['1', '2', '3', '4'], 63760 abbreviated: ['1', '2', '3', '4'], 63761 wide: ['Ø¨ÙØ±ÙÙØ¬Ù ÚØ§Ø±ÛÙ', 'ئÙÙÙÙÙØ¬Ù ÚØ§Ø±ÛÙ', 'ئÛÚÙÙØ¬Ù ÚØ§Ø±ÛÙ', 'ØªÛØªÙÙØ¬Ù ÚØ§Ø±ÛÙ'] // Note: in English, the names of days of the week and months are capitalized. 63762 // If you are making a new locale based on this one, check if the same is true for the language you're working on. 63763 // Generally, formatted dates should look like they are in the middle of a sentence, 63764 // e.g. in Spanish language the weekdays and months should be in the lowercase. 63765 63766 }; 63767 var monthValues = { 63768 narrow: ['Ù', 'Ù', 'Ù ', 'ا', 'Ù ', 'Ù', 'Ù', 'ا', 'س', 'Û', 'Ù', 'د'], 63769 abbreviated: ['ÙØ§ÙÛØ§Ø±', 'ÙÛÛÙØ±Ø§Ù', '٠ارت', 'ئاپرÙÙ', '٠اÙ', 'ئÙÙÛÙ', 'ئÙÙÙÙ', 'Ø¦Ø§ÛØºÛست', 'سÙÙØªÛØ¨ÙØ±', 'ئÛÙØªÛØ¨ÙØ±', 'ÙÙÙØ§Ø¨Ùر', 'دÙÙØ§Ø¨Ùر'], 63770 wide: ['ÙØ§ÙÛØ§Ø±', 'ÙÛÛÙØ±Ø§Ù', '٠ارت', 'ئاپرÙÙ', '٠اÙ', 'ئÙÙÛÙ', 'ئÙÙÙÙ', 'Ø¦Ø§ÛØºÛست', 'سÙÙØªÛØ¨ÙØ±', 'ئÛÙØªÛØ¨ÙØ±', 'ÙÙÙØ§Ø¨Ùر', 'دÙÙØ§Ø¨Ùر'] 63771 }; 63772 var dayValues = { 63773 narrow: ['Ù', 'د', 'س', 'Ú', 'Ù¾', 'ج', 'Ø´'], 63774 short: ['Ù', 'د', 'س', 'Ú', 'Ù¾', 'ج', 'Ø´'], 63775 abbreviated: ['ÙÛÙØ´ÛÙØ¨Û', 'Ø¯ÛØ´ÛÙØ¨Û', 'سÛÙØ´ÛÙØ¨Û', 'ÚØ§Ø±Ø´ÛÙØ¨Û', 'Ù¾ÛÙØ´ÛÙØ¨Û', 'جÛÙ Û', 'Ø´ÛÙØ¨Û'], 63776 wide: ['ÙÛÙØ´ÛÙØ¨Û', 'Ø¯ÛØ´ÛÙØ¨Û', 'سÛÙØ´ÛÙØ¨Û', 'ÚØ§Ø±Ø´ÛÙØ¨Û', 'Ù¾ÛÙØ´ÛÙØ¨Û', 'جÛÙ Û', 'Ø´ÛÙØ¨Û'] 63777 }; 63778 var dayPeriodValues = { 63779 narrow: { 63780 am: 'ئÛ', 63781 pm: 'Ú', 63782 midnight: 'Ù', 63783 noon: 'Ú', 63784 morning: 'Ø¦ÛØªÙÚ¯ÛÙ', 63785 afternoon: 'ÚÛØ´ØªÙÙ ÙÙÙÙÙ', 63786 evening: 'ئاخشÙÙ ', 63787 night: 'ÙÙÚÛ' 63788 }, 63789 abbreviated: { 63790 am: 'ئÛ', 63791 pm: 'Ú', 63792 midnight: 'Ù', 63793 noon: 'Ú', 63794 morning: 'Ø¦ÛØªÙÚ¯ÛÙ', 63795 afternoon: 'ÚÛØ´ØªÙÙ ÙÙÙÙÙ', 63796 evening: 'ئاخشÙÙ ', 63797 night: 'ÙÙÚÛ' 63798 }, 63799 wide: { 63800 am: 'ئÛ', 63801 pm: 'Ú', 63802 midnight: 'Ù', 63803 noon: 'Ú', 63804 morning: 'Ø¦ÛØªÙÚ¯ÛÙ', 63805 afternoon: 'ÚÛØ´ØªÙÙ ÙÙÙÙÙ', 63806 evening: 'ئاخشÙÙ ', 63807 night: 'ÙÙÚÛ' 63808 } 63809 }; 63810 var formattingDayPeriodValues = { 63811 narrow: { 63812 am: 'ئÛ', 63813 pm: 'Ú', 63814 midnight: 'Ù', 63815 noon: 'Ú', 63816 morning: 'Ø¦ÛØªÙÚ¯ÛÙØ¯Û', 63817 afternoon: 'ÚÛØ´ØªÙÙ ÙÙÙÙÙ', 63818 evening: 'ئاخشا٠دا', 63819 night: 'ÙÙÚÙØ¯Û' 63820 }, 63821 abbreviated: { 63822 am: 'ئÛ', 63823 pm: 'Ú', 63824 midnight: 'Ù', 63825 noon: 'Ú', 63826 morning: 'Ø¦ÛØªÙÚ¯ÛÙØ¯Û', 63827 afternoon: 'ÚÛØ´ØªÙÙ ÙÙÙÙÙ', 63828 evening: 'ئاخشا٠دا', 63829 night: 'ÙÙÚÙØ¯Û' 63830 }, 63831 wide: { 63832 am: 'ئÛ', 63833 pm: 'Ú', 63834 midnight: 'Ù', 63835 noon: 'Ú', 63836 morning: 'Ø¦ÛØªÙÚ¯ÛÙØ¯Û', 63837 afternoon: 'ÚÛØ´ØªÙÙ ÙÙÙÙÙ', 63838 evening: 'ئاخشا٠دا', 63839 night: 'ÙÙÚÙØ¯Û' 63840 } 63841 }; 63842 63843 function ordinalNumber(dirtyNumber, _dirtyOptions) { 63844 return String(dirtyNumber); 63845 } 63846 63847 var localize = { 63848 ordinalNumber: ordinalNumber, 63849 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 63850 values: eraValues, 63851 defaultWidth: 'wide' 63852 }), 63853 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 63854 values: quarterValues, 63855 defaultWidth: 'wide', 63856 argumentCallback: function (quarter) { 63857 return Number(quarter) - 1; 63858 } 63859 }), 63860 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 63861 values: monthValues, 63862 defaultWidth: 'wide' 63863 }), 63864 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 63865 values: dayValues, 63866 defaultWidth: 'wide' 63867 }), 63868 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 63869 values: dayPeriodValues, 63870 defaultWidth: 'wide', 63871 formattingValues: formattingDayPeriodValues, 63872 defaultFormattingWidth: 'wide' 63873 }) 63874 }; 63875 /* harmony default export */ 63876 __webpack_exports__["a"] = (localize); 63877 63878 /***/ 63879 }), 63880 /* 824 */ 63881 /***/ (function (module, __webpack_exports__, __webpack_require__) { 63882 63883 "use strict"; 63884 /* harmony import */ 63885 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 63886 /* harmony import */ 63887 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 63888 63889 63890 var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; 63891 var parseOrdinalNumberPattern = /\d+/i; 63892 var matchEraPatterns = { 63893 narrow: /^(ب|Ù)/i, 63894 wide: /^(Ù ÙÙÙØ§Ø¯ÙدÙÙ Ø¨ÛØ±ÛÙ|Ù ÙÙÙØ§Ø¯ÙدÙÙ ÙÙÙÙÙ)/i 63895 }; 63896 var parseEraPatterns = { 63897 any: [/^Ø¨ÛØ±ÛÙ/i, /^ÙÙÙÙÙ/i] 63898 }; 63899 var matchQuarterPatterns = { 63900 narrow: /^[1234]/i, 63901 abbreviated: /^Ú[1234]/i, 63902 wide: /^ÚØ§Ø±ÛÙ [1234]/i 63903 }; 63904 var parseQuarterPatterns = { 63905 any: [/1/i, /2/i, /3/i, /4/i] 63906 }; 63907 var matchMonthPatterns = { 63908 narrow: /^[ÙÙÙ Ø¦Ø§Ù Ø¦âØ¦Ø§Ø³ÛÙØ¯]/i, 63909 abbreviated: /^(ÙØ§ÙÛØ§Ø±|ÙÛÛÙØ±Ø§Ù|٠ارت|ئاپرÙÙ|٠اÙ|ئÙÙÛÙ|ئÙÙÙÙ|Ø¦Ø§ÛØºÛست|سÙÙØªÛØ¨ÙØ±|ئÛÙØªÛØ¨ÙØ±|ÙÙÙØ§Ø¨Ùر|دÙÙØ§Ø¨Ùر)/i, 63910 wide: /^(ÙØ§ÙÛØ§Ø±|ÙÛÛÙØ±Ø§Ù|٠ارت|ئاپرÙÙ|٠اÙ|ئÙÙÛÙ|ئÙÙÙÙ|Ø¦Ø§ÛØºÛست|سÙÙØªÛØ¨ÙØ±|ئÛÙØªÛØ¨ÙØ±|ÙÙÙØ§Ø¨Ùر|دÙÙØ§Ø¨Ùر)/i 63911 }; 63912 var parseMonthPatterns = { 63913 narrow: [/^Ù/i, /^Ù/i, /^Ù /i, /^ا/i, /^Ù /i, /^Ùâ/i, /^Ùâ/i, /^اâ/i, /^س/i, /^Û/i, /^Ù/i, /^د/i], 63914 any: [/^ÙØ§Ù/i, /^ÙÛÛ/i, /^٠ار/i, /^ئاپ/i, /^٠اÙ/i, /^ئÙÙÛÙ/i, /^ئÙÙÙÙ/i, /^ئاÛ/i, /^سÙÙ/i, /^ئÛÙ/i, /^ÙÙÙ/i, /^دÙÙ/i] 63915 }; 63916 var matchDayPatterns = { 63917 narrow: /^[دسÚپجشÙ]/i, 63918 short: /^(ÙÛ|دÛ|سÛ|ÚØ§|Ù¾Û|جÛ|Ø´Û)/i, 63919 abbreviated: /^(ÙÛ|دÛ|سÛ|ÚØ§|Ù¾Û|جÛ|Ø´Û)/i, 63920 wide: /^(ÙÛÙØ´ÛÙØ¨Û|Ø¯ÛØ´ÛÙØ¨Û|سÛÙØ´ÛÙØ¨Û|ÚØ§Ø±Ø´ÛÙØ¨Û|Ù¾ÛÙØ´ÛÙØ¨Û|جÛÙ Û|Ø´ÛÙØ¨Û)/i 63921 }; 63922 var parseDayPatterns = { 63923 narrow: [/^Ù/i, /^د/i, /^س/i, /^Ú/i, /^Ù¾/i, /^ج/i, /^Ø´/i], 63924 any: [/^Ù/i, /^د/i, /^س/i, /^Ú/i, /^Ù¾/i, /^ج/i, /^Ø´/i] 63925 }; 63926 var matchDayPeriodPatterns = { 63927 narrow: /^(ئÛ|Ú|Ù|Ú|(دÛ|Ø¦ÛØªÙÚ¯ÛÙ) ( ئÛâ|ÚÛØ´ØªÙÙ ÙÙÙÙÙ|ئاخشÙÙ |ÙÙÚÛ))/i, 63928 any: /^(ئÛ|Ú|Ù|Ú|(دÛ|Ø¦ÛØªÙÚ¯ÛÙ) ( ئÛâ|ÚÛØ´ØªÙÙ ÙÙÙÙÙ|ئاخشÙÙ |ÙÙÚÛ))/i 63929 }; 63930 var parseDayPeriodPatterns = { 63931 any: { 63932 am: /^ئÛ/i, 63933 pm: /^Ú/i, 63934 midnight: /^Ù/i, 63935 noon: /^Ú/i, 63936 morning: /Ø¦ÛØªÙÚ¯ÛÙ/i, 63937 afternoon: /ÚÛØ´ØªÙÙ ÙÙÙÙÙ/i, 63938 evening: /ئاخشÙÙ /i, 63939 night: /ÙÙÚÛ/i 63940 } 63941 }; 63942 var match = { 63943 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 63944 matchPattern: matchOrdinalNumberPattern, 63945 parsePattern: parseOrdinalNumberPattern, 63946 valueCallback: function (value) { 63947 return parseInt(value, 10); 63948 } 63949 }), 63950 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 63951 matchPatterns: matchEraPatterns, 63952 defaultMatchWidth: 'wide', 63953 parsePatterns: parseEraPatterns, 63954 defaultParseWidth: 'any' 63955 }), 63956 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 63957 matchPatterns: matchQuarterPatterns, 63958 defaultMatchWidth: 'wide', 63959 parsePatterns: parseQuarterPatterns, 63960 defaultParseWidth: 'any', 63961 valueCallback: function (index) { 63962 return index + 1; 63963 } 63964 }), 63965 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 63966 matchPatterns: matchMonthPatterns, 63967 defaultMatchWidth: 'wide', 63968 parsePatterns: parseMonthPatterns, 63969 defaultParseWidth: 'any' 63970 }), 63971 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 63972 matchPatterns: matchDayPatterns, 63973 defaultMatchWidth: 'wide', 63974 parsePatterns: parseDayPatterns, 63975 defaultParseWidth: 'any' 63976 }), 63977 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 63978 matchPatterns: matchDayPeriodPatterns, 63979 defaultMatchWidth: 'any', 63980 parsePatterns: parseDayPeriodPatterns, 63981 defaultParseWidth: 'any' 63982 }) 63983 }; 63984 /* harmony default export */ 63985 __webpack_exports__["a"] = (match); 63986 63987 /***/ 63988 }), 63989 /* 825 */ 63990 /***/ (function (module, __webpack_exports__, __webpack_require__) { 63991 63992 "use strict"; 63993 /* harmony import */ 63994 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(826); 63995 /* harmony import */ 63996 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(827); 63997 /* harmony import */ 63998 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(828); 63999 /* harmony import */ 64000 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(829); 64001 /* harmony import */ 64002 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(830); 64003 64004 64005 /** 64006 * @type {Locale} 64007 * @category Locales 64008 * @summary Ukrainian locale. 64009 * @language Ukrainian 64010 * @iso-639-2 ukr 64011 * @author Andrii Korzh [@korzhyk]{@link https://github.com/korzhyk} 64012 * @author Andriy Shcherbyak [@shcherbyakdev]{@link https://github.com/shcherbyakdev} 64013 */ 64014 64015 var locale = { 64016 code: 'uk', 64017 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 64018 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 64019 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 64020 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 64021 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 64022 options: { 64023 weekStartsOn: 1 64024 /* Monday */ 64025 , 64026 firstWeekContainsDate: 1 64027 } 64028 }; 64029 /* harmony default export */ 64030 __webpack_exports__["a"] = (locale); 64031 64032 /***/ 64033 }), 64034 /* 826 */ 64035 /***/ (function (module, __webpack_exports__, __webpack_require__) { 64036 64037 "use strict"; 64038 /* harmony export (immutable) */ 64039 __webpack_exports__["a"] = formatDistance; 64040 64041 function declension(scheme, count) { 64042 // scheme for count=1 exists 64043 if (scheme.one !== undefined && count === 1) { 64044 return scheme.one; 64045 } 64046 64047 var rem10 = count % 10; 64048 var rem100 = count % 100; // 1, 21, 31, ... 64049 64050 if (rem10 === 1 && rem100 !== 11) { 64051 return scheme.singularNominative.replace('{{count}}', count); // 2, 3, 4, 22, 23, 24, 32 ... 64052 } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { 64053 return scheme.singularGenitive.replace('{{count}}', count); // 5, 6, 7, 8, 9, 10, 11, ... 64054 } else { 64055 return scheme.pluralGenitive.replace('{{count}}', count); 64056 } 64057 } 64058 64059 function buildLocalizeTokenFn(scheme) { 64060 return function (count, options) { 64061 if (options.addSuffix) { 64062 if (options.comparison > 0) { 64063 if (scheme.future) { 64064 return declension(scheme.future, count); 64065 } else { 64066 return 'за ' + declension(scheme.regular, count); 64067 } 64068 } else { 64069 if (scheme.past) { 64070 return declension(scheme.past, count); 64071 } else { 64072 return declension(scheme.regular, count) + ' ÑомÑ'; 64073 } 64074 } 64075 } else { 64076 return declension(scheme.regular, count); 64077 } 64078 }; 64079 } 64080 64081 var formatDistanceLocale = { 64082 lessThanXSeconds: buildLocalizeTokenFn({ 64083 regular: { 64084 one: 'менÑе ÑекÑнди', 64085 singularNominative: 'менÑе {{count}} ÑекÑнди', 64086 singularGenitive: 'менÑе {{count}} ÑекÑнд', 64087 pluralGenitive: 'менÑе {{count}} ÑекÑнд' 64088 }, 64089 future: { 64090 one: 'менÑе, нÑж за ÑекÑндÑ', 64091 singularNominative: 'менÑе, нÑж за {{count}} ÑекÑндÑ', 64092 singularGenitive: 'менÑе, нÑж за {{count}} ÑекÑнди', 64093 pluralGenitive: 'менÑе, нÑж за {{count}} ÑекÑнд' 64094 } 64095 }), 64096 xSeconds: buildLocalizeTokenFn({ 64097 regular: { 64098 singularNominative: '{{count}} ÑекÑнда', 64099 singularGenitive: '{{count}} ÑекÑнди', 64100 pluralGenitive: '{{count}} ÑекÑнд' 64101 }, 64102 past: { 64103 singularNominative: '{{count}} ÑекÑÐ½Ð´Ñ ÑомÑ', 64104 singularGenitive: '{{count}} ÑекÑнди ÑомÑ', 64105 pluralGenitive: '{{count}} ÑекÑнд ÑомÑ' 64106 }, 64107 future: { 64108 singularNominative: 'за {{count}} ÑекÑндÑ', 64109 singularGenitive: 'за {{count}} ÑекÑнди', 64110 pluralGenitive: 'за {{count}} ÑекÑнд' 64111 } 64112 }), 64113 halfAMinute: function (_, options) { 64114 if (options.addSuffix) { 64115 if (options.comparison > 0) { 64116 return 'за пÑÐ²Ñ Ð²Ð¸Ð»Ð¸Ð½Ð¸'; 64117 } else { 64118 return 'пÑÐ²Ñ Ð²Ð¸Ð»Ð¸Ð½Ð¸ ÑомÑ'; 64119 } 64120 } 64121 64122 return 'пÑÐ²Ñ Ð²Ð¸Ð»Ð¸Ð½Ð¸'; 64123 }, 64124 lessThanXMinutes: buildLocalizeTokenFn({ 64125 regular: { 64126 one: 'менÑе Ñ Ð²Ð¸Ð»Ð¸Ð½Ð¸', 64127 singularNominative: 'менÑе {{count}} Ñ Ð²Ð¸Ð»Ð¸Ð½Ð¸', 64128 singularGenitive: 'менÑе {{count}} Ñ Ð²Ð¸Ð»Ð¸Ð½', 64129 pluralGenitive: 'менÑе {{count}} Ñ Ð²Ð¸Ð»Ð¸Ð½' 64130 }, 64131 future: { 64132 one: 'менÑе, нÑж за Ñ Ð²Ð¸Ð»Ð¸Ð½Ñ', 64133 singularNominative: 'менÑе, нÑж за {{count}} Ñ Ð²Ð¸Ð»Ð¸Ð½Ñ', 64134 singularGenitive: 'менÑе, нÑж за {{count}} Ñ Ð²Ð¸Ð»Ð¸Ð½Ð¸', 64135 pluralGenitive: 'менÑе, нÑж за {{count}} Ñ Ð²Ð¸Ð»Ð¸Ð½' 64136 } 64137 }), 64138 xMinutes: buildLocalizeTokenFn({ 64139 regular: { 64140 singularNominative: '{{count}} Ñ Ð²Ð¸Ð»Ð¸Ð½Ð°', 64141 singularGenitive: '{{count}} Ñ Ð²Ð¸Ð»Ð¸Ð½Ð¸', 64142 pluralGenitive: '{{count}} Ñ Ð²Ð¸Ð»Ð¸Ð½' 64143 }, 64144 past: { 64145 singularNominative: '{{count}} Ñ Ð²Ð¸Ð»Ð¸Ð½Ñ ÑомÑ', 64146 singularGenitive: '{{count}} Ñ Ð²Ð¸Ð»Ð¸Ð½Ð¸ ÑомÑ', 64147 pluralGenitive: '{{count}} Ñ Ð²Ð¸Ð»Ð¸Ð½ ÑомÑ' 64148 }, 64149 future: { 64150 singularNominative: 'за {{count}} Ñ Ð²Ð¸Ð»Ð¸Ð½Ñ', 64151 singularGenitive: 'за {{count}} Ñ Ð²Ð¸Ð»Ð¸Ð½Ð¸', 64152 pluralGenitive: 'за {{count}} Ñ Ð²Ð¸Ð»Ð¸Ð½' 64153 } 64154 }), 64155 aboutXHours: buildLocalizeTokenFn({ 64156 regular: { 64157 singularNominative: 'близÑко {{count}} години', 64158 singularGenitive: 'близÑко {{count}} годин', 64159 pluralGenitive: 'близÑко {{count}} годин' 64160 }, 64161 future: { 64162 singularNominative: 'пÑиблизно за {{count}} годинÑ', 64163 singularGenitive: 'пÑиблизно за {{count}} години', 64164 pluralGenitive: 'пÑиблизно за {{count}} годин' 64165 } 64166 }), 64167 xHours: buildLocalizeTokenFn({ 64168 regular: { 64169 singularNominative: '{{count}} годинÑ', 64170 singularGenitive: '{{count}} години', 64171 pluralGenitive: '{{count}} годин' 64172 } 64173 }), 64174 xDays: buildLocalizeTokenFn({ 64175 regular: { 64176 singularNominative: '{{count}} денÑ', 64177 singularGenitive: '{{count}} днÑ', 64178 pluralGenitive: '{{count}} днÑв' 64179 } 64180 }), 64181 aboutXWeeks: buildLocalizeTokenFn({ 64182 regular: { 64183 singularNominative: 'близÑко {{count}} ÑижнÑ', 64184 singularGenitive: 'близÑко {{count}} ÑижнÑв', 64185 pluralGenitive: 'близÑко {{count}} ÑижнÑв' 64186 }, 64187 future: { 64188 singularNominative: 'пÑиблизно за {{count}} ÑижденÑ', 64189 singularGenitive: 'пÑиблизно за {{count}} ÑижнÑ', 64190 pluralGenitive: 'пÑиблизно за {{count}} ÑижнÑ' 64191 } 64192 }), 64193 xWeeks: buildLocalizeTokenFn({ 64194 regular: { 64195 singularNominative: '{{count}} ÑижденÑ', 64196 singularGenitive: '{{count}} ÑижнÑ', 64197 pluralGenitive: '{{count}} ÑижнÑ' 64198 } 64199 }), 64200 aboutXMonths: buildLocalizeTokenFn({ 64201 regular: { 64202 singularNominative: 'близÑко {{count}} мÑÑÑÑÑ', 64203 singularGenitive: 'близÑко {{count}} мÑÑÑÑÑв', 64204 pluralGenitive: 'близÑко {{count}} мÑÑÑÑÑв' 64205 }, 64206 future: { 64207 singularNominative: 'пÑиблизно за {{count}} мÑÑÑÑÑ', 64208 singularGenitive: 'пÑиблизно за {{count}} мÑÑÑÑÑ', 64209 pluralGenitive: 'пÑиблизно за {{count}} мÑÑÑÑÑв' 64210 } 64211 }), 64212 xMonths: buildLocalizeTokenFn({ 64213 regular: { 64214 singularNominative: '{{count}} мÑÑÑÑÑ', 64215 singularGenitive: '{{count}} мÑÑÑÑÑ', 64216 pluralGenitive: '{{count}} мÑÑÑÑÑв' 64217 } 64218 }), 64219 aboutXYears: buildLocalizeTokenFn({ 64220 regular: { 64221 singularNominative: 'близÑко {{count}} ÑокÑ', 64222 singularGenitive: 'близÑко {{count}} ÑокÑв', 64223 pluralGenitive: 'близÑко {{count}} ÑокÑв' 64224 }, 64225 future: { 64226 singularNominative: 'пÑиблизно за {{count}} ÑÑк', 64227 singularGenitive: 'пÑиблизно за {{count}} Ñоки', 64228 pluralGenitive: 'пÑиблизно за {{count}} ÑокÑв' 64229 } 64230 }), 64231 xYears: buildLocalizeTokenFn({ 64232 regular: { 64233 singularNominative: '{{count}} ÑÑк', 64234 singularGenitive: '{{count}} Ñоки', 64235 pluralGenitive: '{{count}} ÑокÑв' 64236 } 64237 }), 64238 overXYears: buildLocalizeTokenFn({ 64239 regular: { 64240 singularNominative: 'бÑлÑÑе {{count}} ÑокÑ', 64241 singularGenitive: 'бÑлÑÑе {{count}} ÑокÑв', 64242 pluralGenitive: 'бÑлÑÑе {{count}} ÑокÑв' 64243 }, 64244 future: { 64245 singularNominative: 'бÑлÑÑе, нÑж за {{count}} ÑÑк', 64246 singularGenitive: 'бÑлÑÑе, нÑж за {{count}} Ñоки', 64247 pluralGenitive: 'бÑлÑÑе, нÑж за {{count}} ÑокÑв' 64248 } 64249 }), 64250 almostXYears: buildLocalizeTokenFn({ 64251 regular: { 64252 singularNominative: 'майже {{count}} ÑÑк', 64253 singularGenitive: 'майже {{count}} Ñоки', 64254 pluralGenitive: 'майже {{count}} ÑокÑв' 64255 }, 64256 future: { 64257 singularNominative: 'майже за {{count}} ÑÑк', 64258 singularGenitive: 'майже за {{count}} Ñоки', 64259 pluralGenitive: 'майже за {{count}} ÑокÑв' 64260 } 64261 }) 64262 }; 64263 64264 function formatDistance(token, count, options) { 64265 options = options || {}; 64266 return formatDistanceLocale[token](count, options); 64267 } 64268 64269 /***/ 64270 }), 64271 /* 827 */ 64272 /***/ (function (module, __webpack_exports__, __webpack_require__) { 64273 64274 "use strict"; 64275 /* harmony import */ 64276 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 64277 64278 var dateFormats = { 64279 full: "EEEE, do MMMM y 'Ñ.'", 64280 long: "do MMMM y 'Ñ.'", 64281 medium: "d MMM y 'Ñ.'", 64282 short: 'dd.MM.y' 64283 }; 64284 var timeFormats = { 64285 full: 'H:mm:ss zzzz', 64286 long: 'H:mm:ss z', 64287 medium: 'H:mm:ss', 64288 short: 'H:mm' 64289 }; 64290 var dateTimeFormats = { 64291 full: "{{date}} 'о' {{time}}", 64292 long: "{{date}} 'о' {{time}}", 64293 medium: '{{date}}, {{time}}', 64294 short: '{{date}}, {{time}}' 64295 }; 64296 var formatLong = { 64297 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 64298 formats: dateFormats, 64299 defaultWidth: 'full' 64300 }), 64301 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 64302 formats: timeFormats, 64303 defaultWidth: 'full' 64304 }), 64305 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 64306 formats: dateTimeFormats, 64307 defaultWidth: 'full' 64308 }) 64309 }; 64310 /* harmony default export */ 64311 __webpack_exports__["a"] = (formatLong); 64312 64313 /***/ 64314 }), 64315 /* 828 */ 64316 /***/ (function (module, __webpack_exports__, __webpack_require__) { 64317 64318 "use strict"; 64319 /* harmony export (immutable) */ 64320 __webpack_exports__["a"] = formatRelative; 64321 /* harmony import */ 64322 var __WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__ = __webpack_require__(13); 64323 64324 var accusativeWeekdays = ['недÑлÑ', 'понедÑлок', 'вÑвÑоÑок', 'ÑеÑедÑ', 'ÑеÑвеÑ', 'пâÑÑниÑÑ', 'ÑÑбоÑÑ']; 64325 64326 function lastWeek(day) { 64327 var weekday = accusativeWeekdays[day]; 64328 64329 switch (day) { 64330 case 0: 64331 case 3: 64332 case 5: 64333 case 6: 64334 return "'Ñ Ð¼Ð¸Ð½ÑÐ»Ñ " + weekday + " о' p"; 64335 64336 case 1: 64337 case 2: 64338 case 4: 64339 return "'Ñ Ð¼Ð¸Ð½Ñлий " + weekday + " о' p"; 64340 } 64341 } 64342 64343 function thisWeek(day) { 64344 var weekday = accusativeWeekdays[day]; 64345 return "'Ñ " + weekday + " о' p"; 64346 } 64347 64348 function nextWeek(day) { 64349 var weekday = accusativeWeekdays[day]; 64350 64351 switch (day) { 64352 case 0: 64353 case 3: 64354 case 5: 64355 case 6: 64356 return "'Ñ Ð½Ð°ÑÑÑÐ¿Ð½Ñ " + weekday + " о' p"; 64357 64358 case 1: 64359 case 2: 64360 case 4: 64361 return "'Ñ Ð½Ð°ÑÑÑпний " + weekday + " о' p"; 64362 } 64363 } 64364 64365 var formatRelativeLocale = { 64366 lastWeek: function (date, baseDate, options) { 64367 var day = date.getUTCDay(); 64368 64369 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](date, baseDate, options)) { 64370 return thisWeek(day); 64371 } else { 64372 return lastWeek(day); 64373 } 64374 }, 64375 yesterday: "'вÑоÑа о' p", 64376 today: "'ÑÑÐ¾Ð³Ð¾Ð´Ð½Ñ Ð¾' p", 64377 tomorrow: "'завÑÑа о' p", 64378 nextWeek: function (date, baseDate, options) { 64379 var day = date.getUTCDay(); 64380 64381 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](date, baseDate, options)) { 64382 return thisWeek(day); 64383 } else { 64384 return nextWeek(day); 64385 } 64386 }, 64387 other: 'P' 64388 }; 64389 64390 function formatRelative(token, date, baseDate, options) { 64391 var format = formatRelativeLocale[token]; 64392 64393 if (typeof format === 'function') { 64394 return format(date, baseDate, options); 64395 } 64396 64397 return format; 64398 } 64399 64400 /***/ 64401 }), 64402 /* 829 */ 64403 /***/ (function (module, __webpack_exports__, __webpack_require__) { 64404 64405 "use strict"; 64406 /* harmony import */ 64407 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 64408 64409 var eraValues = { 64410 narrow: ['до н.е.', 'н.е.'], 64411 abbreviated: ['до н. е.', 'н. е.'], 64412 wide: ['до наÑÐ¾Ñ ÐµÑи', 'наÑÐ¾Ñ ÐµÑи'] 64413 }; 64414 var quarterValues = { 64415 narrow: ['1', '2', '3', '4'], 64416 abbreviated: ['1-й кв.', '2-й кв.', '3-й кв.', '4-й кв.'], 64417 wide: ['1-й кваÑÑал', '2-й кваÑÑал', '3-й кваÑÑал', '4-й кваÑÑал'] 64418 }; 64419 var monthValues = { 64420 // ÐСТУ 3582:2013 64421 narrow: ['С', 'Ð', 'Ð', 'Ð', 'Т', 'Ч', 'Ð', 'С', 'Ð', 'Ð', 'Ð', 'Ð'], 64422 abbreviated: ['ÑÑÑ.', 'лÑÑ.', 'беÑез.', 'квÑÑ.', 'ÑÑав.', 'ÑеÑв.', 'лип.', 'ÑеÑп.', 'веÑеÑ.', 'жовÑ.', 'лиÑÑоп.', 'гÑÑд.'], 64423 wide: ['ÑÑÑенÑ', 'лÑÑий', 'беÑезенÑ', 'квÑÑенÑ', 'ÑÑавенÑ', 'ÑеÑвенÑ', 'липенÑ', 'ÑеÑпенÑ', 'веÑеÑенÑ', 'жовÑенÑ', 'лиÑÑопад', 'гÑÑденÑ'] 64424 }; 64425 var formattingMonthValues = { 64426 narrow: ['С', 'Ð', 'Ð', 'Ð', 'Т', 'Ч', 'Ð', 'С', 'Ð', 'Ð', 'Ð', 'Ð'], 64427 abbreviated: ['ÑÑÑ.', 'лÑÑ.', 'беÑез.', 'квÑÑ.', 'ÑÑав.', 'ÑеÑв.', 'лип.', 'ÑеÑп.', 'веÑеÑ.', 'жовÑ.', 'лиÑÑоп.', 'гÑÑд.'], 64428 wide: ['ÑÑÑнÑ', 'лÑÑого', 'беÑезнÑ', 'квÑÑнÑ', 'ÑÑавнÑ', 'ÑеÑвнÑ', 'липнÑ', 'ÑеÑпнÑ', 'веÑеÑнÑ', 'жовÑнÑ', 'лиÑÑопада', 'гÑÑднÑ'] 64429 }; 64430 var dayValues = { 64431 narrow: ['Ð', 'Ð', 'Ð', 'С', 'Ч', 'Ð', 'С'], 64432 short: ['нд', 'пн', 'вÑ', 'ÑÑ', 'ÑÑ', 'пÑ', 'Ñб'], 64433 abbreviated: ['нед', 'пон', 'вÑв', 'ÑеÑ', 'ÑÑв', 'пÑн', 'ÑÑб'], 64434 wide: ['недÑлÑ', 'понедÑлок', 'вÑвÑоÑок', 'ÑеÑеда', 'ÑеÑвеÑ', 'пâÑÑниÑÑ', 'ÑÑбоÑа'] 64435 }; 64436 var dayPeriodValues = { 64437 narrow: { 64438 am: 'ÐÐ', 64439 pm: 'ÐÐ', 64440 midnight: 'пÑвн.', 64441 noon: 'пол.', 64442 morning: 'Ñанок', 64443 afternoon: 'денÑ', 64444 evening: 'веÑ.', 64445 night: 'нÑÑ' 64446 }, 64447 abbreviated: { 64448 am: 'ÐÐ', 64449 pm: 'ÐÐ', 64450 midnight: 'пÑвн.', 64451 noon: 'пол.', 64452 morning: 'Ñанок', 64453 afternoon: 'денÑ', 64454 evening: 'веÑ.', 64455 night: 'нÑÑ' 64456 }, 64457 wide: { 64458 am: 'ÐÐ', 64459 pm: 'ÐÐ', 64460 midnight: 'пÑвнÑÑ', 64461 noon: 'полÑденÑ', 64462 morning: 'Ñанок', 64463 afternoon: 'денÑ', 64464 evening: 'веÑÑÑ', 64465 night: 'нÑÑ' 64466 } 64467 }; 64468 var formattingDayPeriodValues = { 64469 narrow: { 64470 am: 'ÐÐ', 64471 pm: 'ÐÐ', 64472 midnight: 'пÑвн.', 64473 noon: 'пол.', 64474 morning: 'ÑанкÑ', 64475 afternoon: 'днÑ', 64476 evening: 'веÑ.', 64477 night: 'ноÑÑ' 64478 }, 64479 abbreviated: { 64480 am: 'ÐÐ', 64481 pm: 'ÐÐ', 64482 midnight: 'пÑвн.', 64483 noon: 'пол.', 64484 morning: 'ÑанкÑ', 64485 afternoon: 'днÑ', 64486 evening: 'веÑ.', 64487 night: 'ноÑÑ' 64488 }, 64489 wide: { 64490 am: 'ÐÐ', 64491 pm: 'ÐÐ', 64492 midnight: 'пÑвнÑÑ', 64493 noon: 'полÑденÑ', 64494 morning: 'ÑанкÑ', 64495 afternoon: 'днÑ', 64496 evening: 'веÑ.', 64497 night: 'ноÑÑ' 64498 } 64499 }; 64500 64501 function ordinalNumber(dirtyNumber, dirtyOptions) { 64502 var options = dirtyOptions || {}; 64503 var unit = String(options.unit); 64504 var suffix; 64505 64506 if (unit === 'date') { 64507 if (dirtyNumber === 3 || dirtyNumber === 23) { 64508 suffix = '-Ñ'; 64509 } else { 64510 suffix = '-е'; 64511 } 64512 } else if (unit === 'minute' || unit === 'second' || unit === 'hour') { 64513 suffix = '-а'; 64514 } else { 64515 suffix = '-й'; 64516 } 64517 64518 return dirtyNumber + suffix; 64519 } 64520 64521 var localize = { 64522 ordinalNumber: ordinalNumber, 64523 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 64524 values: eraValues, 64525 defaultWidth: 'wide' 64526 }), 64527 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 64528 values: quarterValues, 64529 defaultWidth: 'wide', 64530 argumentCallback: function (quarter) { 64531 return Number(quarter) - 1; 64532 } 64533 }), 64534 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 64535 values: monthValues, 64536 defaultWidth: 'wide', 64537 formattingValues: formattingMonthValues, 64538 defaultFormattingWidth: 'wide' 64539 }), 64540 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 64541 values: dayValues, 64542 defaultWidth: 'wide' 64543 }), 64544 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 64545 values: dayPeriodValues, 64546 defaultWidth: 'any', 64547 formattingValues: formattingDayPeriodValues, 64548 defaultFormattingWidth: 'wide' 64549 }) 64550 }; 64551 /* harmony default export */ 64552 __webpack_exports__["a"] = (localize); 64553 64554 /***/ 64555 }), 64556 /* 830 */ 64557 /***/ (function (module, __webpack_exports__, __webpack_require__) { 64558 64559 "use strict"; 64560 /* harmony import */ 64561 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 64562 /* harmony import */ 64563 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 64564 64565 64566 var matchOrdinalNumberPattern = /^(\d+)(-?(е|й|Ñ|а|Ñ))?/i; 64567 var parseOrdinalNumberPattern = /\d+/i; 64568 var matchEraPatterns = { 64569 narrow: /^((до )?н\.?\s?е\.?)/i, 64570 abbreviated: /^((до )?н\.?\s?е\.?)/i, 64571 wide: /^(до наÑÐ¾Ñ ÐµÑи|наÑÐ¾Ñ ÐµÑи|наÑа еÑа)/i 64572 }; 64573 var parseEraPatterns = { 64574 any: [/^д/i, /^н/i] 64575 }; 64576 var matchQuarterPatterns = { 64577 narrow: /^[1234]/i, 64578 abbreviated: /^[1234](-?[иÑ]?й?)? кв.?/i, 64579 wide: /^[1234](-?[иÑ]?й?)? кваÑÑал/i 64580 }; 64581 var parseQuarterPatterns = { 64582 any: [/1/i, /2/i, /3/i, /4/i] 64583 }; 64584 var matchMonthPatterns = { 64585 narrow: /^[ÑлбкÑÑвжг]/i, 64586 abbreviated: /^(ÑÑÑ|лÑÑ|беÑ|беÑез|квÑ|ÑÑав?|ÑеÑ|лип|ÑеÑ|веÑ|жов|лиÑ(Ñоп)?|гÑÑд)\.?/i, 64587 wide: /^(ÑÑÑенÑ|ÑÑÑнÑ|лÑÑий|лÑÑого|беÑезенÑ|беÑезнÑ|квÑÑенÑ|квÑÑнÑ|ÑÑавенÑ|ÑÑавнÑ|липенÑ|липнÑ|ÑеÑпенÑ|ÑеÑпнÑ|веÑеÑенÑ|веÑеÑнÑ|жовÑенÑ|жовÑнÑ|лиÑÑопада?|гÑÑденÑ|гÑÑднÑ)/i 64588 }; 64589 var parseMonthPatterns = { 64590 narrow: [/^Ñ/i, /^л/i, /^б/i, /^к/i, /^Ñ/i, /^Ñ/i, /^л/i, /^Ñ/i, /^в/i, /^ж/i, /^л/i, /^г/i], 64591 any: [/^ÑÑ/i, /^лÑ/i, /^б/i, /^к/i, /^Ñ/i, /^Ñ/i, /^лип/i, /^Ñе/i, /^в/i, /^ж/i, /^лиÑ/i, /^г/i] 64592 }; 64593 var matchDayPatterns = { 64594 narrow: /^[нпвÑÑ]/i, 64595 short: /^(нд|пн|вÑ|ÑÑ|ÑÑ|пÑ|Ñб)\.?/i, 64596 abbreviated: /^(нед|пон|вÑв|ÑеÑ|Ñе?Ñв|пÑн?|ÑÑб)\.?/i, 64597 wide: /^(недÑл[ÑÑ]|понедÑл[ок][ка]|вÑвÑоÑ[ок][ка]|ÑеÑед[аи]|ÑеÑвеÑ(га)?|п\W*?ÑÑниÑ[ÑÑ]|ÑÑбоÑ[аи])/i 64598 }; 64599 var parseDayPatterns = { 64600 narrow: [/^н/i, /^п/i, /^в/i, /^Ñ/i, /^Ñ/i, /^п/i, /^Ñ/i], 64601 any: [/^н/i, /^п[он]/i, /^в/i, /^Ñ[еÑ]/i, /^Ñ/i, /^п\W*?[ÑÑ]/i, /^Ñ[Ñб]/i] 64602 }; 64603 var matchDayPeriodPatterns = { 64604 narrow: /^([дп]п|пÑвн\.?|пол\.?|Ñанок|ÑанкÑ|денÑ|днÑ|веÑ\.?|нÑÑ|ноÑÑ)/i, 64605 abbreviated: /^([дп]п|пÑвн\.?|пол\.?|Ñанок|ÑанкÑ|денÑ|днÑ|веÑ\.?|нÑÑ|ноÑÑ)/i, 64606 wide: /^([дп]п|пÑвнÑÑ|полÑденÑ|Ñанок|ÑанкÑ|денÑ|днÑ|веÑÑÑ|веÑоÑа|нÑÑ|ноÑÑ)/i 64607 }; 64608 var parseDayPeriodPatterns = { 64609 any: { 64610 am: /^дп/i, 64611 pm: /^пп/i, 64612 midnight: /^пÑвн/i, 64613 noon: /^пол/i, 64614 morning: /^Ñ/i, 64615 afternoon: /^д[ен]/i, 64616 evening: /^в/i, 64617 night: /^н/i 64618 } 64619 }; 64620 var match = { 64621 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 64622 matchPattern: matchOrdinalNumberPattern, 64623 parsePattern: parseOrdinalNumberPattern, 64624 valueCallback: function (value) { 64625 return parseInt(value, 10); 64626 } 64627 }), 64628 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 64629 matchPatterns: matchEraPatterns, 64630 defaultMatchWidth: 'wide', 64631 parsePatterns: parseEraPatterns, 64632 defaultParseWidth: 'any' 64633 }), 64634 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 64635 matchPatterns: matchQuarterPatterns, 64636 defaultMatchWidth: 'wide', 64637 parsePatterns: parseQuarterPatterns, 64638 defaultParseWidth: 'any', 64639 valueCallback: function (index) { 64640 return index + 1; 64641 } 64642 }), 64643 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 64644 matchPatterns: matchMonthPatterns, 64645 defaultMatchWidth: 'wide', 64646 parsePatterns: parseMonthPatterns, 64647 defaultParseWidth: 'any' 64648 }), 64649 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 64650 matchPatterns: matchDayPatterns, 64651 defaultMatchWidth: 'wide', 64652 parsePatterns: parseDayPatterns, 64653 defaultParseWidth: 'any' 64654 }), 64655 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 64656 matchPatterns: matchDayPeriodPatterns, 64657 defaultMatchWidth: 'wide', 64658 parsePatterns: parseDayPeriodPatterns, 64659 defaultParseWidth: 'any' 64660 }) 64661 }; 64662 /* harmony default export */ 64663 __webpack_exports__["a"] = (match); 64664 64665 /***/ 64666 }), 64667 /* 831 */ 64668 /***/ (function (module, __webpack_exports__, __webpack_require__) { 64669 64670 "use strict"; 64671 /* harmony import */ 64672 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(832); 64673 /* harmony import */ 64674 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(833); 64675 /* harmony import */ 64676 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(834); 64677 /* harmony import */ 64678 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(835); 64679 /* harmony import */ 64680 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(836); 64681 64682 64683 /** 64684 * @type {Locale} 64685 * @category Locales 64686 * @summary Uzbek locale. 64687 * @language Uzbek 64688 * @iso-639-2 uzb 64689 * @author Mukhammadali [@mukhammadali]{@link https://github.com/Mukhammadali} 64690 */ 64691 64692 var locale = { 64693 code: 'uz', 64694 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 64695 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 64696 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 64697 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 64698 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 64699 options: { 64700 weekStartsOn: 1 64701 /* Monday */ 64702 , 64703 firstWeekContainsDate: 1 64704 } 64705 }; 64706 /* harmony default export */ 64707 __webpack_exports__["a"] = (locale); 64708 64709 /***/ 64710 }), 64711 /* 832 */ 64712 /***/ (function (module, __webpack_exports__, __webpack_require__) { 64713 64714 "use strict"; 64715 /* harmony export (immutable) */ 64716 __webpack_exports__["a"] = formatDistance; 64717 var formatDistanceLocale = { 64718 lessThanXSeconds: { 64719 one: 'sekunddan kam', 64720 other: '{{count}} sekunddan kam' 64721 }, 64722 xSeconds: { 64723 one: '1 sekund', 64724 other: '{{count}} sekund' 64725 }, 64726 halfAMinute: 'yarim minut', 64727 lessThanXMinutes: { 64728 one: 'bir minutdan kam', 64729 other: '{{count}} minutdan kam' 64730 }, 64731 xMinutes: { 64732 one: '1 minut', 64733 other: '{{count}} minut' 64734 }, 64735 aboutXHours: { 64736 one: 'tahminan 1 soat', 64737 other: 'tahminan {{count}} soat' 64738 }, 64739 xHours: { 64740 one: '1 soat', 64741 other: '{{count}} soat' 64742 }, 64743 xDays: { 64744 one: '1 kun', 64745 other: '{{count}} kun' 64746 }, 64747 aboutXWeeks: { 64748 one: 'tahminan 1 hafta', 64749 other: 'tahminan {{count}} hafta' 64750 }, 64751 xWeeks: { 64752 one: '1 hafta', 64753 other: '{{count}} hafta' 64754 }, 64755 aboutXMonths: { 64756 one: 'tahminan 1 oy', 64757 other: 'tahminan {{count}} oy' 64758 }, 64759 xMonths: { 64760 one: '1 oy', 64761 other: '{{count}} oy' 64762 }, 64763 aboutXYears: { 64764 one: 'tahminan 1 yil', 64765 other: 'tahminan {{count}} yil' 64766 }, 64767 xYears: { 64768 one: '1 yil', 64769 other: '{{count}} yil' 64770 }, 64771 overXYears: { 64772 one: "1 yildan ko'p", 64773 other: "{{count}} yildan ko'p" 64774 }, 64775 almostXYears: { 64776 one: 'deyarli 1 yil', 64777 other: 'deyarli {{count}} yil' 64778 } 64779 }; 64780 64781 function formatDistance(token, count, options) { 64782 options = options || {}; 64783 var result; 64784 64785 if (typeof formatDistanceLocale[token] === 'string') { 64786 result = formatDistanceLocale[token]; 64787 } else if (count === 1) { 64788 result = formatDistanceLocale[token].one; 64789 } else { 64790 result = formatDistanceLocale[token].other.replace('{{count}}', count); 64791 } 64792 64793 if (options.addSuffix) { 64794 if (options.comparison > 0) { 64795 return result + ' dan keyin'; 64796 } else { 64797 return result + ' oldin'; 64798 } 64799 } 64800 64801 return result; 64802 } 64803 64804 /***/ 64805 }), 64806 /* 833 */ 64807 /***/ (function (module, __webpack_exports__, __webpack_require__) { 64808 64809 "use strict"; 64810 /* harmony import */ 64811 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 64812 64813 var dateFormats = { 64814 full: 'EEEE, do MMMM, y', 64815 long: 'do MMMM, y', 64816 medium: 'd MMM, y', 64817 short: 'dd/MM/yyyy' 64818 }; 64819 var timeFormats = { 64820 full: 'h:mm:ss zzzz', 64821 long: 'h:mm:ss z', 64822 medium: 'h:mm:ss', 64823 short: 'h:mm' 64824 }; 64825 var dateTimeFormats = { 64826 any: '{{date}}, {{time}}' 64827 }; 64828 var formatLong = { 64829 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 64830 formats: dateFormats, 64831 defaultWidth: 'full' 64832 }), 64833 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 64834 formats: timeFormats, 64835 defaultWidth: 'full' 64836 }), 64837 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 64838 formats: dateTimeFormats, 64839 defaultWidth: 'any' 64840 }) 64841 }; 64842 /* harmony default export */ 64843 __webpack_exports__["a"] = (formatLong); 64844 64845 /***/ 64846 }), 64847 /* 834 */ 64848 /***/ (function (module, __webpack_exports__, __webpack_require__) { 64849 64850 "use strict"; 64851 /* harmony export (immutable) */ 64852 __webpack_exports__["a"] = formatRelative; 64853 var formatRelativeLocale = { 64854 lastWeek: "'oldingi' eeee p 'da'", 64855 yesterday: "'kecha' p 'da'", 64856 today: "'bugun' p 'da'", 64857 tomorrow: "'ertaga' p 'da'", 64858 nextWeek: "eeee p 'da'", 64859 other: 'P' 64860 }; 64861 64862 function formatRelative(token, _date, _baseDate, _options) { 64863 return formatRelativeLocale[token]; 64864 } 64865 64866 /***/ 64867 }), 64868 /* 835 */ 64869 /***/ (function (module, __webpack_exports__, __webpack_require__) { 64870 64871 "use strict"; 64872 /* harmony import */ 64873 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 64874 64875 var eraValues = { 64876 narrow: ['M.A', 'M.'], 64877 abbreviated: ['M.A', 'M.'], 64878 wide: ['Miloddan Avvalgi', 'Milodiy'] 64879 }; 64880 var quarterValues = { 64881 narrow: ['1', '2', '3', '4'], 64882 abbreviated: ['CH.1', 'CH.2', 'CH.3', 'CH.4'], 64883 wide: ['1-chi chorak', '2-chi chorak', '3-chi chorak', '4-chi chorak'] // Note: in English, the names of days of the week and months are capitalized. 64884 // If you are making a new locale based on this one, check if the same is true for the language you're working on. 64885 // Generally, formatted dates should look like they are in the middle of a sentence, 64886 // e.g. in Spanish language the weekdays and months should be in the lowercase. 64887 64888 }; 64889 var monthValues = { 64890 narrow: ['Y', 'F', 'M', 'A', 'M', 'I', 'I', 'A', 'S', 'O', 'N', 'D'], 64891 abbreviated: ['Yan', 'Fev', 'Mar', 'Apr', 'May', 'Iyun', 'Iyul', 'Avg', 'Sen', 'Okt', 'Noy', 'Dek'], 64892 wide: ['Yanvar', 'Fevral', 'Mart', 'Aprel', 'May', 'Iyun', 'Iyul', 'Avgust', 'Sentabr', 'Oktabr', 'Noyabr', 'Dekabr'] 64893 }; 64894 var dayValues = { 64895 narrow: ['Y', 'D', 'S', 'CH', 'P', 'J', 'SH'], 64896 short: ['Ya', 'Du', 'Se', 'Cho', 'Pa', 'Ju', 'Sha'], 64897 abbreviated: ['Yak', 'Dush', 'Sesh', 'Chor', 'Pay', 'Jum', 'Shan'], 64898 wide: ['Yakshanba', 'Dushanba', 'Seshanba', 'Chorshanba', 'Payshanba', 'Juma', 'Shanba'] 64899 }; 64900 var dayPeriodValues = { 64901 narrow: { 64902 am: 'a', 64903 pm: 'p', 64904 midnight: 'y.t', 64905 noon: 'p.', 64906 morning: 'ertalab', 64907 afternoon: 'tushdan keyin', 64908 evening: 'kechqurun', 64909 night: 'tun' 64910 }, 64911 abbreviated: { 64912 am: 'AM', 64913 pm: 'PM', 64914 midnight: 'yarim tun', 64915 noon: 'peshin', 64916 morning: 'ertalab', 64917 afternoon: 'tushdan keyin', 64918 evening: 'kechqurun', 64919 night: 'tun' 64920 }, 64921 wide: { 64922 am: 'a.m.', 64923 pm: 'p.m.', 64924 midnight: 'yarim tun', 64925 noon: 'peshin', 64926 morning: 'ertalab', 64927 afternoon: 'tushdan keyin', 64928 evening: 'kechqurun', 64929 night: 'tun' 64930 } 64931 }; 64932 var formattingDayPeriodValues = { 64933 narrow: { 64934 am: 'a', 64935 pm: 'p', 64936 midnight: 'y.t', 64937 noon: 'p.', 64938 morning: 'ertalab', 64939 afternoon: 'tushdan keyin', 64940 evening: 'kechqurun', 64941 night: 'tun' 64942 }, 64943 abbreviated: { 64944 am: 'AM', 64945 pm: 'PM', 64946 midnight: 'yarim tun', 64947 noon: 'peshin', 64948 morning: 'ertalab', 64949 afternoon: 'tushdan keyin', 64950 evening: 'kechqurun', 64951 night: 'tun' 64952 }, 64953 wide: { 64954 am: 'a.m.', 64955 pm: 'p.m.', 64956 midnight: 'yarim tun', 64957 noon: 'peshin', 64958 morning: 'ertalab', 64959 afternoon: 'tushdan keyin', 64960 evening: 'kechqurun', 64961 night: 'tun' 64962 } 64963 }; 64964 64965 function ordinalNumber(dirtyNumber, _dirtyOptions) { 64966 var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, 64967 // if they are different for different grammatical genders, 64968 // use `options.unit`: 64969 // 64970 // var options = dirtyOptions || {} 64971 // var unit = String(options.unit) 64972 // 64973 // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', 64974 // 'day', 'hour', 'minute', 'second' 64975 64976 return number; 64977 } 64978 64979 var localize = { 64980 ordinalNumber: ordinalNumber, 64981 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 64982 values: eraValues, 64983 defaultWidth: 'wide' 64984 }), 64985 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 64986 values: quarterValues, 64987 defaultWidth: 'wide', 64988 argumentCallback: function (quarter) { 64989 return Number(quarter) - 1; 64990 } 64991 }), 64992 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 64993 values: monthValues, 64994 defaultWidth: 'wide' 64995 }), 64996 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 64997 values: dayValues, 64998 defaultWidth: 'wide' 64999 }), 65000 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 65001 values: dayPeriodValues, 65002 defaultWidth: 'wide', 65003 formattingValues: formattingDayPeriodValues, 65004 defaultFormattingWidth: 'wide' 65005 }) 65006 }; 65007 /* harmony default export */ 65008 __webpack_exports__["a"] = (localize); 65009 65010 /***/ 65011 }), 65012 /* 836 */ 65013 /***/ (function (module, __webpack_exports__, __webpack_require__) { 65014 65015 "use strict"; 65016 /* harmony import */ 65017 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 65018 /* harmony import */ 65019 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 65020 65021 65022 var matchOrdinalNumberPattern = /^(\d+)(chi)?/i; 65023 var parseOrdinalNumberPattern = /\d+/i; 65024 var matchEraPatterns = { 65025 narrow: /^(m\.a|m\.)/i, 65026 abbreviated: /^(m\.a\.?\s?m\.?)/i, 65027 wide: /^(miloddan avval|miloddan keyin)/i 65028 }; 65029 var parseEraPatterns = { 65030 any: [/^b/i, /^(a|c)/i] 65031 }; 65032 var matchQuarterPatterns = { 65033 narrow: /^[1234]/i, 65034 abbreviated: /^q[1234]/i, 65035 wide: /^[1234](chi)? chorak/i 65036 }; 65037 var parseQuarterPatterns = { 65038 any: [/1/i, /2/i, /3/i, /4/i] 65039 }; 65040 var matchMonthPatterns = { 65041 narrow: /^[yfmasond]/i, 65042 abbreviated: /^(yan|fev|mar|apr|may|iyun|iyul|avg|sen|okt|noy|dek)/i, 65043 wide: /^(yanvar|fevral|mart|aprel|may|iyun|iyul|avgust|sentabr|oktabr|noyabr|dekabr)/i 65044 }; 65045 var parseMonthPatterns = { 65046 narrow: [/^y/i, /^f/i, /^m/i, /^a/i, /^m/i, /^i/i, /^i/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 65047 any: [/^ya/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^iyun/i, /^iyul/i, /^av/i, /^s/i, /^o/i, /^n/i, /^d/i] 65048 }; 65049 var matchDayPatterns = { 65050 narrow: /^[ydschj]/i, 65051 short: /^(ya|du|se|cho|pa|ju|sha)/i, 65052 abbreviated: /^(yak|dush|sesh|chor|pay|jum|shan)/i, 65053 wide: /^(yakshanba|dushanba|seshanba|chorshanba|payshanba|juma|shanba)/i 65054 }; 65055 var parseDayPatterns = { 65056 narrow: [/^y/i, /^d/i, /^s/i, /^ch/i, /^p/i, /^j/i, /^sh/i], 65057 any: [/^ya/i, /^d/i, /^se/i, /^ch/i, /^p/i, /^j/i, /^sh/i] 65058 }; 65059 var matchDayPeriodPatterns = { 65060 narrow: /^(a|p|y\.t|p| (ertalab|tushdan keyin|kechqurun|tun))/i, 65061 any: /^([ap]\.?\s?m\.?|yarim tun|peshin| (ertalab|tushdan keyin|kechqurun|tun))/i 65062 }; 65063 var parseDayPeriodPatterns = { 65064 any: { 65065 am: /^a/i, 65066 pm: /^p/i, 65067 midnight: /^y\.t/i, 65068 noon: /^pe/i, 65069 morning: /ertalab/i, 65070 afternoon: /tushdan keyin/i, 65071 evening: /kechqurun/i, 65072 night: /tun/i 65073 } 65074 }; 65075 var match = { 65076 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 65077 matchPattern: matchOrdinalNumberPattern, 65078 parsePattern: parseOrdinalNumberPattern, 65079 valueCallback: function (value) { 65080 return parseInt(value, 10); 65081 } 65082 }), 65083 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 65084 matchPatterns: matchEraPatterns, 65085 defaultMatchWidth: 'wide', 65086 parsePatterns: parseEraPatterns, 65087 defaultParseWidth: 'any' 65088 }), 65089 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 65090 matchPatterns: matchQuarterPatterns, 65091 defaultMatchWidth: 'wide', 65092 parsePatterns: parseQuarterPatterns, 65093 defaultParseWidth: 'any', 65094 valueCallback: function (index) { 65095 return index + 1; 65096 } 65097 }), 65098 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 65099 matchPatterns: matchMonthPatterns, 65100 defaultMatchWidth: 'wide', 65101 parsePatterns: parseMonthPatterns, 65102 defaultParseWidth: 'any' 65103 }), 65104 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 65105 matchPatterns: matchDayPatterns, 65106 defaultMatchWidth: 'wide', 65107 parsePatterns: parseDayPatterns, 65108 defaultParseWidth: 'any' 65109 }), 65110 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 65111 matchPatterns: matchDayPeriodPatterns, 65112 defaultMatchWidth: 'any', 65113 parsePatterns: parseDayPeriodPatterns, 65114 defaultParseWidth: 'any' 65115 }) 65116 }; 65117 /* harmony default export */ 65118 __webpack_exports__["a"] = (match); 65119 65120 /***/ 65121 }), 65122 /* 837 */ 65123 /***/ (function (module, __webpack_exports__, __webpack_require__) { 65124 65125 "use strict"; 65126 /* harmony import */ 65127 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(838); 65128 /* harmony import */ 65129 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(839); 65130 /* harmony import */ 65131 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(840); 65132 /* harmony import */ 65133 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(841); 65134 /* harmony import */ 65135 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(842); 65136 65137 65138 /** 65139 * @type {Locale} 65140 * @category Locales 65141 * @summary Vietnamese locale (Vietnam). 65142 * @language Vietnamese 65143 * @iso-639-2 vie 65144 * @author Thanh Tran [@trongthanh]{@link https://github.com/trongthanh} 65145 * @author Leroy Hopson [@lihop]{@link https://github.com/lihop} 65146 */ 65147 65148 var locale = { 65149 code: 'vi', 65150 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 65151 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 65152 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 65153 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 65154 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 65155 options: { 65156 weekStartsOn: 1 65157 /* Monday */ 65158 , 65159 firstWeekContainsDate: 1 65160 /* First week of new year contains Jan 1st */ 65161 65162 } 65163 }; 65164 /* harmony default export */ 65165 __webpack_exports__["a"] = (locale); 65166 65167 /***/ 65168 }), 65169 /* 838 */ 65170 /***/ (function (module, __webpack_exports__, __webpack_require__) { 65171 65172 "use strict"; 65173 /* harmony export (immutable) */ 65174 __webpack_exports__["a"] = formatDistance; 65175 var formatDistanceLocale = { 65176 lessThanXSeconds: { 65177 one: 'dưá»i 1 giây', 65178 other: 'dưá»i {{count}} giây' 65179 }, 65180 xSeconds: { 65181 one: '1 giây', 65182 other: '{{count}} giây' 65183 }, 65184 halfAMinute: 'ná»a phút', 65185 lessThanXMinutes: { 65186 one: 'dưá»i 1 phút', 65187 other: 'dưá»i {{count}} phút' 65188 }, 65189 xMinutes: { 65190 one: '1 phút', 65191 other: '{{count}} phút' 65192 }, 65193 aboutXHours: { 65194 one: 'khoảng 1 giá»', 65195 other: 'khoảng {{count}} giá»' 65196 }, 65197 xHours: { 65198 one: '1 giá»', 65199 other: '{{count}} giá»' 65200 }, 65201 xDays: { 65202 one: '1 ngà y', 65203 other: '{{count}} ngà y' 65204 }, 65205 aboutXWeeks: { 65206 one: 'khoảng 1 tuần', 65207 other: 'khoảng {{count}} tuần' 65208 }, 65209 xWeeks: { 65210 one: '1 tuần', 65211 other: '{{count}} tuần' 65212 }, 65213 aboutXMonths: { 65214 one: 'khoảng 1 tháng', 65215 other: 'khoảng {{count}} tháng' 65216 }, 65217 xMonths: { 65218 one: '1 tháng', 65219 other: '{{count}} tháng' 65220 }, 65221 aboutXYears: { 65222 one: 'khoảng 1 nÄm', 65223 other: 'khoảng {{count}} nÄm' 65224 }, 65225 xYears: { 65226 one: '1 nÄm', 65227 other: '{{count}} nÄm' 65228 }, 65229 overXYears: { 65230 one: 'hÆ¡n 1 nÄm', 65231 other: 'hÆ¡n {{count}} nÄm' 65232 }, 65233 almostXYears: { 65234 one: 'gần 1 nÄm', 65235 other: 'gần {{count}} nÄm' 65236 } 65237 }; 65238 65239 function formatDistance(token, count, options) { 65240 options = options || {}; 65241 var result; 65242 65243 if (typeof formatDistanceLocale[token] === 'string') { 65244 result = formatDistanceLocale[token]; 65245 } else if (count === 1) { 65246 result = formatDistanceLocale[token].one; 65247 } else { 65248 result = formatDistanceLocale[token].other.replace('{{count}}', count); 65249 } 65250 65251 if (options.addSuffix) { 65252 if (options.comparison > 0) { 65253 return result + ' nữa'; 65254 } else { 65255 return result + ' trưá»c'; 65256 } 65257 } 65258 65259 return result; 65260 } 65261 65262 /***/ 65263 }), 65264 /* 839 */ 65265 /***/ (function (module, __webpack_exports__, __webpack_require__) { 65266 65267 "use strict"; 65268 /* harmony import */ 65269 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 65270 65271 var dateFormats = { 65272 // thứ Sáu, ngà y 25 tháng 08 nÄm 2017 65273 full: "EEEE, 'ngà y' d MMMM 'nÄm' y", 65274 // ngà y 25 tháng 08 nÄm 2017 65275 long: "'ngà y' d MMMM 'nÄm' y", 65276 // 25 thg 08 nÄm 2017 65277 medium: "d MMM 'nÄm' y", 65278 // 25/08/2017 65279 short: 'dd/MM/y' 65280 }; 65281 var timeFormats = { 65282 full: 'HH:mm:ss zzzz', 65283 long: 'HH:mm:ss z', 65284 medium: 'HH:mm:ss', 65285 short: 'HH:mm' 65286 }; 65287 var dateTimeFormats = { 65288 // thứ Sáu, ngà y 25 tháng 08 nÄm 2017 23:25:59 65289 full: '{{date}} {{time}}', 65290 // ngà y 25 tháng 08 nÄm 2017 23:25 65291 long: '{{date}} {{time}}', 65292 medium: '{{date}} {{time}}', 65293 short: '{{date}} {{time}}' 65294 }; 65295 var formatLong = { 65296 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 65297 formats: dateFormats, 65298 defaultWidth: 'full' 65299 }), 65300 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 65301 formats: timeFormats, 65302 defaultWidth: 'full' 65303 }), 65304 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 65305 formats: dateTimeFormats, 65306 defaultWidth: 'full' 65307 }) 65308 }; 65309 /* harmony default export */ 65310 __webpack_exports__["a"] = (formatLong); 65311 65312 /***/ 65313 }), 65314 /* 840 */ 65315 /***/ (function (module, __webpack_exports__, __webpack_require__) { 65316 65317 "use strict"; 65318 /* harmony export (immutable) */ 65319 __webpack_exports__["a"] = formatRelative; 65320 var formatRelativeLocale = { 65321 lastWeek: "eeee 'tuần trưá»c và o lúc' p", 65322 yesterday: "'hôm qua và o lúc' p", 65323 today: "'hôm nay và o lúc' p", 65324 tomorrow: "'ngà y mai và o lúc' p", 65325 nextWeek: "eeee 'tá»i và o lúc' p", 65326 other: 'P' 65327 }; 65328 65329 function formatRelative(token, _date, _baseDate, _options) { 65330 return formatRelativeLocale[token]; 65331 } 65332 65333 /***/ 65334 }), 65335 /* 841 */ 65336 /***/ (function (module, __webpack_exports__, __webpack_require__) { 65337 65338 "use strict"; 65339 /* harmony import */ 65340 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 65341 // Vietnamese locale reference: http://www.localeplanet.com/icu/vi-VN/index.html 65342// Capitalization reference: http://hcmup.edu.vn/index.php?option=com_content&view=article&id=4106%3Avit-hoa-trong-vn-bn-hanh-chinh&catid=2345%3Atham-kho&Itemid=4103&lang=vi&site=134 65343 65344 var eraValues = { 65345 narrow: ['TCN', 'SCN'], 65346 abbreviated: ['trưá»c CN', 'sau CN'], 65347 wide: ['trưá»c Công Nguyên', 'sau Công Nguyên'] 65348 }; 65349 var quarterValues = { 65350 narrow: ['1', '2', '3', '4'], 65351 abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], 65352 wide: ['Quý 1', 'Quý 2', 'Quý 3', 'Quý 4'] 65353 }; 65354 var formattingQuarterValues = { 65355 narrow: ['1', '2', '3', '4'], 65356 abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], 65357 // I notice many news outlet use this "quý II/2018" 65358 wide: ['quý I', 'quý II', 'quý III', 'quý IV'] // Note: in English, the names of days of the week and months are capitalized. 65359 // If you are making a new locale based on this one, check if the same is true for the language you're working on. 65360 // Generally, formatted dates should look like they are in the middle of a sentence, 65361 // e.g. in Spanish language the weekdays and months should be in the lowercase. 65362 65363 }; 65364 var monthValues = { 65365 narrow: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], 65366 abbreviated: ['Thg 1', 'Thg 2', 'Thg 3', 'Thg 4', 'Thg 5', 'Thg 6', 'Thg 7', 'Thg 8', 'Thg 9', 'Thg 10', 'Thg 11', 'Thg 12'], 65367 wide: ['Tháng Má»t', 'Tháng Hai', 'Tháng Ba', 'Tháng Tư', 'Tháng NÄm', 'Tháng Sáu', 'Tháng Bảy', 'Tháng Tám', 'Tháng ChÃn', 'Tháng Mưá»i', 'Tháng Mưá»i Má»t', 'Tháng Mưá»i Hai'] // In Vietnamese date formatting, month number less than 10 expected to have leading zero 65368 65369 }; 65370 var formattingMonthValues = { 65371 narrow: ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'], 65372 abbreviated: ['thg 1', 'thg 2', 'thg 3', 'thg 4', 'thg 5', 'thg 6', 'thg 7', 'thg 8', 'thg 9', 'thg 10', 'thg 11', 'thg 12'], 65373 wide: ['tháng 01', 'tháng 02', 'tháng 03', 'tháng 04', 'tháng 05', 'tháng 06', 'tháng 07', 'tháng 08', 'tháng 09', 'tháng 10', 'tháng 11', 'tháng 12'] 65374 }; 65375 var dayValues = { 65376 narrow: ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'], 65377 short: ['CN', 'Th 2', 'Th 3', 'Th 4', 'Th 5', 'Th 6', 'Th 7'], 65378 abbreviated: ['CN', 'Thứ 2', 'Thứ 3', 'Thứ 4', 'Thứ 5', 'Thứ 6', 'Thứ 7'], 65379 wide: ['Chá»§ Nháºt', 'Thứ Hai', 'Thứ Ba', 'Thứ Tư', 'Thứ NÄm', 'Thứ Sáu', 'Thứ Bảy'] // Vietnamese are used to AM/PM borrowing from English, hence `narrow` and 65380 // `abbreviated` are just like English but I'm leaving the `wide` 65381 // format being localized with abbreviations found in some systems (SÃng / CHiá»u); 65382 // however, personally, I don't think `Chiá»u` sounds appropriate for `PM` 65383 65384 }; 65385 var dayPeriodValues = { 65386 // narrow date period is extremely rare in Vietnamese 65387 // I used abbreviated form for noon, morning and afternoon 65388 // which are regconizable by Vietnamese, others cannot be any shorter 65389 narrow: { 65390 am: 'am', 65391 pm: 'pm', 65392 midnight: 'ná»a Äêm', 65393 noon: 'tr', 65394 morning: 'sg', 65395 afternoon: 'ch', 65396 evening: 'tá»i', 65397 night: 'Äêm' 65398 }, 65399 abbreviated: { 65400 am: 'AM', 65401 pm: 'PM', 65402 midnight: 'ná»a Äêm', 65403 noon: 'trưa', 65404 morning: 'sáng', 65405 afternoon: 'chiá»u', 65406 evening: 'tá»i', 65407 night: 'Äêm' 65408 }, 65409 wide: { 65410 am: 'SA', 65411 pm: 'CH', 65412 midnight: 'ná»a Äêm', 65413 noon: 'trưa', 65414 morning: 'sáng', 65415 afternoon: 'chiá»u', 65416 evening: 'tá»i', 65417 night: 'Äêm' 65418 } 65419 }; 65420 var formattingDayPeriodValues = { 65421 narrow: { 65422 am: 'am', 65423 pm: 'pm', 65424 midnight: 'ná»a Äêm', 65425 noon: 'tr', 65426 morning: 'sg', 65427 afternoon: 'ch', 65428 evening: 'tá»i', 65429 night: 'Äêm' 65430 }, 65431 abbreviated: { 65432 am: 'AM', 65433 pm: 'PM', 65434 midnight: 'ná»a Äêm', 65435 noon: 'trưa', 65436 morning: 'sáng', 65437 afternoon: 'chiá»u', 65438 evening: 'tá»i', 65439 night: 'Äêm' 65440 }, 65441 wide: { 65442 am: 'SA', 65443 pm: 'CH', 65444 midnight: 'ná»a Äêm', 65445 noon: 'giữa trưa', 65446 morning: 'và o buá»i sáng', 65447 afternoon: 'và o buá»i chiá»u', 65448 evening: 'và o buá»i tá»i', 65449 night: 'và o ban Äêm' 65450 } // If ordinal numbers depend on context, for example, 65451 // if they are different for different grammatical genders, 65452 // use `options.unit`: 65453 // 65454 // var options = dirtyOptions || {} 65455 // var unit = String(options.unit) 65456 // 65457 // where `unit` can be 'month', 'quarter', 'week', 'isoWeek', 'dayOfYear', 65458 // 'dayOfMonth' or 'dayOfWeek' 65459 65460 }; 65461 65462 function ordinalNumber(dirtyNumber, dirtyOptions) { 65463 var options = dirtyOptions || {}; 65464 var unit = String(options.unit); 65465 var number = parseInt(dirtyNumber, 10); 65466 65467 if (unit === 'quarter') { 65468 // many news outlets use "quý I"... 65469 switch (number) { 65470 case 1: 65471 return 'I'; 65472 65473 case 2: 65474 return 'II'; 65475 65476 case 3: 65477 return 'III'; 65478 65479 case 4: 65480 return 'IV'; 65481 } 65482 } else if (unit === 'day') { 65483 // day of week in Vietnamese has ordinal number meaning, 65484 // so we should use them, else it'll sound weird 65485 switch (number) { 65486 case 1: 65487 return 'thứ 2'; 65488 // meaning 2nd day but it's the first day of the week :D 65489 65490 case 2: 65491 return 'thứ 3'; 65492 // meaning 3rd day 65493 65494 case 3: 65495 return 'thứ 4'; 65496 // meaning 4th day and so on 65497 65498 case 4: 65499 return 'thứ 5'; 65500 65501 case 5: 65502 return 'thứ 6'; 65503 65504 case 6: 65505 return 'thứ 7'; 65506 65507 case 7: 65508 return 'chá»§ nháºt'; 65509 // meaning Sunday, there's no 8th day :D 65510 } 65511 } else if (unit === 'week') { 65512 if (number === 1) { 65513 return 'thứ nhất'; 65514 } else { 65515 return 'thứ ' + number; 65516 } 65517 } else if (unit === 'dayOfYear') { 65518 if (number === 1) { 65519 return 'Äầu tiên'; 65520 } else { 65521 return 'thứ ' + number; 65522 } 65523 } // there are no different forms of ordinal numbers in Vietnamese 65524 65525 65526 return number; 65527 } 65528 65529 var localize = { 65530 ordinalNumber: ordinalNumber, 65531 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 65532 values: eraValues, 65533 defaultWidth: 'wide' 65534 }), 65535 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 65536 values: quarterValues, 65537 defaultWidth: 'wide', 65538 formattingValues: formattingQuarterValues, 65539 defaultFormattingWidth: 'wide', 65540 argumentCallback: function (quarter) { 65541 return Number(quarter) - 1; 65542 } 65543 }), 65544 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 65545 values: monthValues, 65546 defaultWidth: 'wide', 65547 formattingValues: formattingMonthValues, 65548 defaultFormattingWidth: 'wide' 65549 }), 65550 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 65551 values: dayValues, 65552 defaultWidth: 'wide' 65553 }), 65554 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 65555 values: dayPeriodValues, 65556 defaultWidth: 'wide', 65557 formattingValues: formattingDayPeriodValues, 65558 defaultFormattingWidth: 'wide' 65559 }) 65560 }; 65561 /* harmony default export */ 65562 __webpack_exports__["a"] = (localize); 65563 65564 /***/ 65565 }), 65566 /* 842 */ 65567 /***/ (function (module, __webpack_exports__, __webpack_require__) { 65568 65569 "use strict"; 65570 /* harmony import */ 65571 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 65572 /* harmony import */ 65573 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 65574 65575 65576 var matchOrdinalNumberPattern = /^(\d+)/i; 65577 var parseOrdinalNumberPattern = /\d+/i; 65578 var matchEraPatterns = { 65579 narrow: /^(tcn|scn)/i, 65580 abbreviated: /^(trưá»c CN|sau CN)/i, 65581 wide: /^(trưá»c Công Nguyên|sau Công Nguyên)/i 65582 }; 65583 var parseEraPatterns = { 65584 any: [/^t/i, /^s/i] 65585 }; 65586 var matchQuarterPatterns = { 65587 narrow: /^([1234]|i{1,3}v?)/i, 65588 abbreviated: /^q([1234]|i{1,3}v?)/i, 65589 wide: /^quý ([1234]|i{1,3}v?)/i 65590 }; 65591 var parseQuarterPatterns = { 65592 any: [/(1|i)$/i, /(2|ii)$/i, /(3|iii)$/i, /(4|iv)$/i] 65593 }; 65594 var matchMonthPatterns = { 65595 // month number may contain leading 0, 'thg' prefix may have space, underscore or empty before number 65596 // note the order of '1' since it is a sub-string of '10', so must be lower priority 65597 narrow: /^(0?[2-9]|10|11|12|0?1)/i, 65598 // note the order of 'thg 1' since it is sub-string of 'thg 10', so must be lower priority 65599 abbreviated: /^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i, 65600 // note the order of 'Mưá»i' since it is sub-string of Mưá»i Má»t, so must be lower priority 65601 wide: /^tháng ?(Má»t|Hai|Ba|Tư|NÄm|Sáu|Bảy|Tám|ChÃn|Mưá»i|Mưá»i ?Má»t|Mưá»i ?Hai|0?[1-9](?!\d)|10|11|12)/i 65602 }; 65603 var parseMonthPatterns = { 65604 narrow: [/0?1$/i, /0?2/i, /3/, /4/, /5/, /6/, /7/, /8/, /9/, /10/, /11/, /12/], 65605 abbreviated: [/^thg[ _]?0?1(?!\d)/i, /^thg[ _]?0?2/i, /^thg[ _]?0?3/i, /^thg[ _]?0?4/i, /^thg[ _]?0?5/i, /^thg[ _]?0?6/i, /^thg[ _]?0?7/i, /^thg[ _]?0?8/i, /^thg[ _]?0?9/i, /^thg[ _]?10/i, /^thg[ _]?11/i, /^thg[ _]?12/i], 65606 wide: [/^tháng ?(Má»t|0?1(?!\d))/i, /^tháng ?(Hai|0?2)/i, /^tháng ?(Ba|0?3)/i, /^tháng ?(Tư|0?4)/i, /^tháng ?(NÄm|0?5)/i, /^tháng ?(Sáu|0?6)/i, /^tháng ?(Bảy|0?7)/i, /^tháng ?(Tám|0?8)/i, /^tháng ?(ChÃn|0?9)/i, /^tháng ?(Mưá»i|10)/i, /^tháng ?(Mưá»i ?Má»t|11)/i, /^tháng ?(Mưá»i ?Hai|12)/i] 65607 }; 65608 var matchDayPatterns = { 65609 narrow: /^(CN|T2|T3|T4|T5|T6|T7)/i, 65610 short: /^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i, 65611 abbreviated: /^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i, 65612 wide: /^(Chá»§ ?Nháºt|Chúa ?Nháºt|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?NÄm|thứ ?Sáu|thứ ?Bảy)/i 65613 }; 65614 var parseDayPatterns = { 65615 narrow: [/CN/i, /2/i, /3/i, /4/i, /5/i, /6/i, /7/i], 65616 short: [/CN/i, /2/i, /3/i, /4/i, /5/i, /6/i, /7/i], 65617 abbreviated: [/CN/i, /2/i, /3/i, /4/i, /5/i, /6/i, /7/i], 65618 wide: [/(Chá»§|Chúa) ?Nháºt/i, /Hai/i, /Ba/i, /Tư/i, /NÄm/i, /Sáu/i, /Bảy/i] 65619 }; 65620 var matchDayPeriodPatterns = { 65621 narrow: /^(a|p|ná»a Äêm|trưa|(giá») (sáng|chiá»u|tá»i|Äêm))/i, 65622 abbreviated: /^(am|pm|ná»a Äêm|trưa|(giá») (sáng|chiá»u|tá»i|Äêm))/i, 65623 wide: /^(ch[^i]*|sa|ná»a Äêm|trưa|(giá») (sáng|chiá»u|tá»i|Äêm))/i 65624 }; 65625 var parseDayPeriodPatterns = { 65626 any: { 65627 am: /^(a|sa)/i, 65628 pm: /^(p|ch[^i]*)/i, 65629 midnight: /ná»a Äêm/i, 65630 noon: /trưa/i, 65631 morning: /sáng/i, 65632 afternoon: /chiá»u/i, 65633 evening: /tá»i/i, 65634 night: /^Äêm/i 65635 } 65636 }; 65637 var match = { 65638 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 65639 matchPattern: matchOrdinalNumberPattern, 65640 parsePattern: parseOrdinalNumberPattern, 65641 valueCallback: function (value) { 65642 return parseInt(value, 10); 65643 } 65644 }), 65645 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 65646 matchPatterns: matchEraPatterns, 65647 defaultMatchWidth: 'wide', 65648 parsePatterns: parseEraPatterns, 65649 defaultParseWidth: 'any' 65650 }), 65651 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 65652 matchPatterns: matchQuarterPatterns, 65653 defaultMatchWidth: 'wide', 65654 parsePatterns: parseQuarterPatterns, 65655 defaultParseWidth: 'any', 65656 valueCallback: function (index) { 65657 return index + 1; 65658 } 65659 }), 65660 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 65661 matchPatterns: matchMonthPatterns, 65662 defaultMatchWidth: 'wide', 65663 parsePatterns: parseMonthPatterns, 65664 defaultParseWidth: 'any' 65665 }), 65666 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 65667 matchPatterns: matchDayPatterns, 65668 defaultMatchWidth: 'wide', 65669 parsePatterns: parseDayPatterns, 65670 defaultParseWidth: 'any' 65671 }), 65672 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 65673 matchPatterns: matchDayPeriodPatterns, 65674 defaultMatchWidth: 'any', 65675 parsePatterns: parseDayPeriodPatterns, 65676 defaultParseWidth: 'any' 65677 }) 65678 }; 65679 /* harmony default export */ 65680 __webpack_exports__["a"] = (match); 65681 65682 /***/ 65683 }), 65684 /* 843 */ 65685 /***/ (function (module, __webpack_exports__, __webpack_require__) { 65686 65687 "use strict"; 65688 /* harmony import */ 65689 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(844); 65690 /* harmony import */ 65691 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(845); 65692 /* harmony import */ 65693 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(846); 65694 /* harmony import */ 65695 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(847); 65696 /* harmony import */ 65697 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(848); 65698 65699 65700 /** 65701 * @type {Locale} 65702 * @category Locales 65703 * @summary Chinese Simplified locale. 65704 * @language Chinese Simplified 65705 * @iso-639-2 zho 65706 * @author Changyu Geng [@KingMario]{@link https://github.com/KingMario} 65707 * @author Song Shuoyun [@fnlctrl]{@link https://github.com/fnlctrl} 65708 * @author sabrinaM [@sabrinamiao]{@link https://github.com/sabrinamiao} 65709 * @author Carney Wu [@cubicwork]{@link https://github.com/cubicwork} 65710 * @author Terrence Lam [@skyuplam]{@link https://github.com/skyuplam} 65711 */ 65712 65713 var locale = { 65714 code: 'zh-CN', 65715 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 65716 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 65717 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 65718 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 65719 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 65720 options: { 65721 weekStartsOn: 1 65722 /* Monday */ 65723 , 65724 firstWeekContainsDate: 4 65725 } 65726 }; 65727 /* harmony default export */ 65728 __webpack_exports__["a"] = (locale); 65729 65730 /***/ 65731 }), 65732 /* 844 */ 65733 /***/ (function (module, __webpack_exports__, __webpack_require__) { 65734 65735 "use strict"; 65736 /* harmony export (immutable) */ 65737 __webpack_exports__["a"] = formatDistance; 65738 var formatDistanceLocale = { 65739 lessThanXSeconds: { 65740 one: 'ä¸å° 1 ç§', 65741 other: 'ä¸å° {{count}} ç§' 65742 }, 65743 xSeconds: { 65744 one: '1 ç§', 65745 other: '{{count}} ç§' 65746 }, 65747 halfAMinute: 'ååé', 65748 lessThanXMinutes: { 65749 one: 'ä¸å° 1 åé', 65750 other: 'ä¸å° {{count}} åé' 65751 }, 65752 xMinutes: { 65753 one: '1 åé', 65754 other: '{{count}} åé' 65755 }, 65756 xHours: { 65757 one: '1 å°æ¶', 65758 other: '{{count}} å°æ¶' 65759 }, 65760 aboutXHours: { 65761 one: '大约 1 å°æ¶', 65762 other: '大约 {{count}} å°æ¶' 65763 }, 65764 xDays: { 65765 one: '1 天', 65766 other: '{{count}} 天' 65767 }, 65768 aboutXWeeks: { 65769 one: '大约 1 个ææ', 65770 other: '大约 {{count}} 个ææ' 65771 }, 65772 xWeeks: { 65773 one: '1 个ææ', 65774 other: '{{count}} 个ææ' 65775 }, 65776 aboutXMonths: { 65777 one: '大约 1 个æ', 65778 other: '大约 {{count}} 个æ' 65779 }, 65780 xMonths: { 65781 one: '1 个æ', 65782 other: '{{count}} 个æ' 65783 }, 65784 aboutXYears: { 65785 one: '大约 1 å¹´', 65786 other: '大约 {{count}} å¹´' 65787 }, 65788 xYears: { 65789 one: '1 å¹´', 65790 other: '{{count}} å¹´' 65791 }, 65792 overXYears: { 65793 one: 'è¶ è¿ 1 å¹´', 65794 other: 'è¶ è¿ {{count}} å¹´' 65795 }, 65796 almostXYears: { 65797 one: 'å°è¿ 1 å¹´', 65798 other: 'å°è¿ {{count}} å¹´' 65799 } 65800 }; 65801 65802 function formatDistance(token, count, options) { 65803 options = options || {}; 65804 var result; 65805 65806 if (typeof formatDistanceLocale[token] === 'string') { 65807 result = formatDistanceLocale[token]; 65808 } else if (count === 1) { 65809 result = formatDistanceLocale[token].one; 65810 } else { 65811 result = formatDistanceLocale[token].other.replace('{{count}}', count); 65812 } 65813 65814 if (options.addSuffix) { 65815 if (options.comparison > 0) { 65816 return result + 'å '; 65817 } else { 65818 return result + 'å'; 65819 } 65820 } 65821 65822 return result; 65823 } 65824 65825 /***/ 65826 }), 65827 /* 845 */ 65828 /***/ (function (module, __webpack_exports__, __webpack_require__) { 65829 65830 "use strict"; 65831 /* harmony import */ 65832 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 65833 65834 var dateFormats = { 65835 full: "y'å¹´'M'æ'd'æ¥' EEEE", 65836 long: "y'å¹´'M'æ'd'æ¥'", 65837 medium: 'yyyy-MM-dd', 65838 short: 'yy-MM-dd' 65839 }; 65840 var timeFormats = { 65841 full: 'zzzz a h:mm:ss', 65842 long: 'z a h:mm:ss', 65843 medium: 'a h:mm:ss', 65844 short: 'a h:mm' 65845 }; 65846 var dateTimeFormats = { 65847 full: '{{date}} {{time}}', 65848 long: '{{date}} {{time}}', 65849 medium: '{{date}} {{time}}', 65850 short: '{{date}} {{time}}' 65851 }; 65852 var formatLong = { 65853 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 65854 formats: dateFormats, 65855 defaultWidth: 'full' 65856 }), 65857 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 65858 formats: timeFormats, 65859 defaultWidth: 'full' 65860 }), 65861 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 65862 formats: dateTimeFormats, 65863 defaultWidth: 'full' 65864 }) 65865 }; 65866 /* harmony default export */ 65867 __webpack_exports__["a"] = (formatLong); 65868 65869 /***/ 65870 }), 65871 /* 846 */ 65872 /***/ (function (module, __webpack_exports__, __webpack_require__) { 65873 65874 "use strict"; 65875 /* harmony export (immutable) */ 65876 __webpack_exports__["a"] = formatRelative; 65877 /* harmony import */ 65878 var __WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__ = __webpack_require__(13); 65879 65880 65881 function checkWeek(_date, _baseDate, _options, baseFormat) { 65882 if (__WEBPACK_IMPORTED_MODULE_0__lib_isSameUTCWeek_index_js__["a" /* default */](_date, _baseDate, _options)) { 65883 return baseFormat; // in same week 65884 } else if (_date.getTime() > _baseDate.getTime()) { 65885 return "'ä¸ä¸ª'" + baseFormat; // in next week 65886 } 65887 65888 return "'ä¸ä¸ª'" + baseFormat; // in last week 65889 } 65890 65891 var formatRelativeLocale = { 65892 lastWeek: checkWeek, 65893 // days before yesterday, maybe in this week or last week 65894 yesterday: "'æ¨å¤©' p", 65895 today: "'ä»å¤©' p", 65896 tomorrow: "'æå¤©' p", 65897 nextWeek: checkWeek, 65898 // days after tomorrow, maybe in this week or next week 65899 other: 'PP p' 65900 }; 65901 65902 function formatRelative(token, _date, _baseDate, _options) { 65903 var format = formatRelativeLocale[token]; 65904 65905 if (typeof format === 'function') { 65906 return format(_date, _baseDate, _options, 'eeee p'); 65907 } 65908 65909 return format; 65910 } 65911 65912 /***/ 65913 }), 65914 /* 847 */ 65915 /***/ (function (module, __webpack_exports__, __webpack_require__) { 65916 65917 "use strict"; 65918 /* harmony import */ 65919 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 65920 65921 var eraValues = { 65922 narrow: ['å', 'å ¬å '], 65923 abbreviated: ['å', 'å ¬å '], 65924 wide: ['å ¬å å', 'å ¬å '] 65925 }; 65926 var quarterValues = { 65927 narrow: ['1', '2', '3', '4'], 65928 abbreviated: ['第ä¸å»', '第äºå»', '第ä¸å»', '第åå»'], 65929 wide: ['第ä¸å»é', '第äºå»é', '第ä¸å»é', '第åå»é'] 65930 }; 65931 var monthValues = { 65932 narrow: ['ä¸', 'äº', 'ä¸', 'å', 'äº', 'å ', 'ä¸', 'å «', 'ä¹', 'å', 'åä¸', 'åäº'], 65933 abbreviated: ['1æ', '2æ', '3æ', '4æ', '5æ', '6æ', '7æ', '8æ', '9æ', '10æ', '11æ', '12æ'], 65934 wide: ['䏿', 'äºæ', '䏿', 'åæ', 'äºæ', 'å æ', '䏿', 'å «æ', '乿', 'åæ', 'å䏿', 'åäºæ'] 65935 }; 65936 var dayValues = { 65937 narrow: ['æ¥', 'ä¸', 'äº', 'ä¸', 'å', 'äº', 'å '], 65938 short: ['æ¥', 'ä¸', 'äº', 'ä¸', 'å', 'äº', 'å '], 65939 abbreviated: ['卿¥', 'å¨ä¸', 'å¨äº', 'å¨ä¸', 'å¨å', 'å¨äº', 'å¨å '], 65940 wide: ['æææ¥', 'ææä¸', 'ææäº', 'ææä¸', 'ææå', 'ææäº', 'ææå '] 65941 }; 65942 var dayPeriodValues = { 65943 narrow: { 65944 am: 'ä¸', 65945 pm: 'ä¸', 65946 midnight: '忍', 65947 noon: 'å', 65948 morning: 'æ©', 65949 afternoon: 'ä¸å', 65950 evening: 'æ', 65951 night: 'å¤' 65952 }, 65953 abbreviated: { 65954 am: 'ä¸å', 65955 pm: 'ä¸å', 65956 midnight: '忍', 65957 noon: 'ä¸å', 65958 morning: 'æ©æ¨', 65959 afternoon: 'ä¸å', 65960 evening: 'æä¸', 65961 night: 'å¤é´' 65962 }, 65963 wide: { 65964 am: 'ä¸å', 65965 pm: 'ä¸å', 65966 midnight: '忍', 65967 noon: 'ä¸å', 65968 morning: 'æ©æ¨', 65969 afternoon: 'ä¸å', 65970 evening: 'æä¸', 65971 night: 'å¤é´' 65972 } 65973 }; 65974 var formattingDayPeriodValues = { 65975 narrow: { 65976 am: 'ä¸', 65977 pm: 'ä¸', 65978 midnight: '忍', 65979 noon: 'å', 65980 morning: 'æ©', 65981 afternoon: 'ä¸å', 65982 evening: 'æ', 65983 night: 'å¤' 65984 }, 65985 abbreviated: { 65986 am: 'ä¸å', 65987 pm: 'ä¸å', 65988 midnight: '忍', 65989 noon: 'ä¸å', 65990 morning: 'æ©æ¨', 65991 afternoon: 'ä¸å', 65992 evening: 'æä¸', 65993 night: 'å¤é´' 65994 }, 65995 wide: { 65996 am: 'ä¸å', 65997 pm: 'ä¸å', 65998 midnight: '忍', 65999 noon: 'ä¸å', 66000 morning: 'æ©æ¨', 66001 afternoon: 'ä¸å', 66002 evening: 'æä¸', 66003 night: 'å¤é´' 66004 } 66005 }; 66006 66007 function ordinalNumber(dirtyNumber, dirtyOptions) { 66008 // If ordinal numbers depend on context, for example, 66009 // if they are different for different grammatical genders, 66010 // use `options.unit`: 66011 // 66012 // var options = dirtyOptions || {} 66013 // var unit = String(options.unit) 66014 // 66015 // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', 66016 // 'day', 'hour', 'minute', 'second' 66017 var number = Number(dirtyNumber); 66018 var options = dirtyOptions || {}; 66019 var unit = String(options.unit); 66020 66021 switch (unit) { 66022 case 'date': 66023 return number.toString() + 'æ¥'; 66024 66025 case 'hour': 66026 return number.toString() + 'æ¶'; 66027 66028 case 'minute': 66029 return number.toString() + 'å'; 66030 66031 case 'second': 66032 return number.toString() + 'ç§'; 66033 66034 default: 66035 return '第 ' + number.toString(); 66036 } 66037 } 66038 66039 var localize = { 66040 ordinalNumber: ordinalNumber, 66041 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 66042 values: eraValues, 66043 defaultWidth: 'wide' 66044 }), 66045 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 66046 values: quarterValues, 66047 defaultWidth: 'wide', 66048 argumentCallback: function (quarter) { 66049 return Number(quarter) - 1; 66050 } 66051 }), 66052 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 66053 values: monthValues, 66054 defaultWidth: 'wide' 66055 }), 66056 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 66057 values: dayValues, 66058 defaultWidth: 'wide' 66059 }), 66060 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 66061 values: dayPeriodValues, 66062 defaultWidth: 'wide', 66063 formattingValues: formattingDayPeriodValues, 66064 defaultFormattingWidth: 'wide' 66065 }) 66066 }; 66067 /* harmony default export */ 66068 __webpack_exports__["a"] = (localize); 66069 66070 /***/ 66071 }), 66072 /* 848 */ 66073 /***/ (function (module, __webpack_exports__, __webpack_require__) { 66074 66075 "use strict"; 66076 /* harmony import */ 66077 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 66078 /* harmony import */ 66079 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 66080 66081 66082 var matchOrdinalNumberPattern = /^(第\s*)?\d+(æ¥|æ¶|å|ç§)?/i; 66083 var parseOrdinalNumberPattern = /\d+/i; 66084 var matchEraPatterns = { 66085 narrow: /^(å)/i, 66086 abbreviated: /^(å)/i, 66087 wide: /^(å ¬å å|å ¬å )/i 66088 }; 66089 var parseEraPatterns = { 66090 any: [/^(å)/i, /^(å ¬å )/i] 66091 }; 66092 var matchQuarterPatterns = { 66093 narrow: /^[1234]/i, 66094 abbreviated: /^第[ä¸äºä¸å]å»/i, 66095 wide: /^第[ä¸äºä¸å]å»é/i 66096 }; 66097 var parseQuarterPatterns = { 66098 any: [/(1|ä¸)/i, /(2|äº)/i, /(3|ä¸)/i, /(4|å)/i] 66099 }; 66100 var matchMonthPatterns = { 66101 narrow: /^(ä¸|äº|ä¸|å|äº|å |ä¸|å «|ä¹|å[äºä¸])/i, 66102 abbreviated: /^(ä¸|äº|ä¸|å|äº|å |ä¸|å «|ä¹|å[äºä¸]|\d|1[12])æ/i, 66103 wide: /^(ä¸|äº|ä¸|å|äº|å |ä¸|å «|ä¹|å[äºä¸])æ/i 66104 }; 66105 var parseMonthPatterns = { 66106 narrow: [/^ä¸/i, /^äº/i, /^ä¸/i, /^å/i, /^äº/i, /^å /i, /^ä¸/i, /^å «/i, /^ä¹/i, /^å(?!(ä¸|äº))/i, /^åä¸/i, /^åäº/i], 66107 any: [/^ä¸|1/i, /^äº|2/i, /^ä¸|3/i, /^å|4/i, /^äº|5/i, /^å |6/i, /^ä¸|7/i, /^å «|8/i, /^ä¹|9/i, /^å(?!(ä¸|äº))|10/i, /^åä¸|11/i, /^åäº|12/i] 66108 }; 66109 var matchDayPatterns = { 66110 narrow: /^[ä¸äºä¸åäºå æ¥]/i, 66111 short: /^[ä¸äºä¸åäºå æ¥]/i, 66112 abbreviated: /^å¨[ä¸äºä¸åäºå æ¥]/i, 66113 wide: /^ææ[ä¸äºä¸åäºå æ¥]/i 66114 }; 66115 var parseDayPatterns = { 66116 any: [/æ¥/i, /ä¸/i, /äº/i, /ä¸/i, /å/i, /äº/i, /å /i] 66117 }; 66118 var matchDayPeriodPatterns = { 66119 any: /^(ä¸å?|ä¸å?|åå¤|[䏿£]å|æ©ä¸?|ä¸å|æä¸?|忍|)/i 66120 }; 66121 var parseDayPeriodPatterns = { 66122 any: { 66123 am: /^ä¸å?/i, 66124 pm: /^ä¸å?/i, 66125 midnight: /^åå¤/i, 66126 noon: /^[䏿£]å/i, 66127 morning: /^æ©ä¸/i, 66128 afternoon: /^ä¸å/i, 66129 evening: /^æä¸?/i, 66130 night: /^忍/i 66131 } 66132 }; 66133 var match = { 66134 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 66135 matchPattern: matchOrdinalNumberPattern, 66136 parsePattern: parseOrdinalNumberPattern, 66137 valueCallback: function (value) { 66138 return parseInt(value, 10); 66139 } 66140 }), 66141 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 66142 matchPatterns: matchEraPatterns, 66143 defaultMatchWidth: 'wide', 66144 parsePatterns: parseEraPatterns, 66145 defaultParseWidth: 'any' 66146 }), 66147 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 66148 matchPatterns: matchQuarterPatterns, 66149 defaultMatchWidth: 'wide', 66150 parsePatterns: parseQuarterPatterns, 66151 defaultParseWidth: 'any', 66152 valueCallback: function (index) { 66153 return index + 1; 66154 } 66155 }), 66156 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 66157 matchPatterns: matchMonthPatterns, 66158 defaultMatchWidth: 'wide', 66159 parsePatterns: parseMonthPatterns, 66160 defaultParseWidth: 'any' 66161 }), 66162 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 66163 matchPatterns: matchDayPatterns, 66164 defaultMatchWidth: 'wide', 66165 parsePatterns: parseDayPatterns, 66166 defaultParseWidth: 'any' 66167 }), 66168 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 66169 matchPatterns: matchDayPeriodPatterns, 66170 defaultMatchWidth: 'any', 66171 parsePatterns: parseDayPeriodPatterns, 66172 defaultParseWidth: 'any' 66173 }) 66174 }; 66175 /* harmony default export */ 66176 __webpack_exports__["a"] = (match); 66177 66178 /***/ 66179 }), 66180 /* 849 */ 66181 /***/ (function (module, __webpack_exports__, __webpack_require__) { 66182 66183 "use strict"; 66184 /* harmony import */ 66185 var __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__ = __webpack_require__(850); 66186 /* harmony import */ 66187 var __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__ = __webpack_require__(851); 66188 /* harmony import */ 66189 var __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__ = __webpack_require__(852); 66190 /* harmony import */ 66191 var __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__ = __webpack_require__(853); 66192 /* harmony import */ 66193 var __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__ = __webpack_require__(854); 66194 66195 66196 /** 66197 * @type {Locale} 66198 * @category Locales 66199 * @summary Chinese Traditional locale. 66200 * @language Chinese Traditional 66201 * @iso-639-2 zho 66202 * @author tonypai [@tpai]{@link https://github.com/tpai} 66203 * @author Jack Hsu [@jackhsu978]{@link https://github.com/jackhsu978} 66204 * @author Terrence Lam [@skyuplam]{@link https://github.com/skyuplam} 66205 */ 66206 66207 var locale = { 66208 code: 'zh-TW', 66209 formatDistance: __WEBPACK_IMPORTED_MODULE_0__lib_formatDistance_index_js__["a" /* default */], 66210 formatLong: __WEBPACK_IMPORTED_MODULE_1__lib_formatLong_index_js__["a" /* default */], 66211 formatRelative: __WEBPACK_IMPORTED_MODULE_2__lib_formatRelative_index_js__["a" /* default */], 66212 localize: __WEBPACK_IMPORTED_MODULE_3__lib_localize_index_js__["a" /* default */], 66213 match: __WEBPACK_IMPORTED_MODULE_4__lib_match_index_js__["a" /* default */], 66214 options: { 66215 weekStartsOn: 1 66216 /* Monday */ 66217 , 66218 firstWeekContainsDate: 4 66219 } 66220 }; 66221 /* harmony default export */ 66222 __webpack_exports__["a"] = (locale); 66223 66224 /***/ 66225 }), 66226 /* 850 */ 66227 /***/ (function (module, __webpack_exports__, __webpack_require__) { 66228 66229 "use strict"; 66230 /* harmony export (immutable) */ 66231 __webpack_exports__["a"] = formatDistance; 66232 var formatDistanceLocale = { 66233 lessThanXSeconds: { 66234 one: 'å°æ¼ 1 ç§', 66235 other: 'å°æ¼ {{count}} ç§' 66236 }, 66237 xSeconds: { 66238 one: '1 ç§', 66239 other: '{{count}} ç§' 66240 }, 66241 halfAMinute: 'ååé', 66242 lessThanXMinutes: { 66243 one: 'å°æ¼ 1 åé', 66244 other: 'å°æ¼ {{count}} åé' 66245 }, 66246 xMinutes: { 66247 one: '1 åé', 66248 other: '{{count}} åé' 66249 }, 66250 xHours: { 66251 one: '1 å°æ', 66252 other: '{{count}} å°æ' 66253 }, 66254 aboutXHours: { 66255 one: 'å¤§ç´ 1 å°æ', 66256 other: 'å¤§ç´ {{count}} å°æ' 66257 }, 66258 xDays: { 66259 one: '1 天', 66260 other: '{{count}} 天' 66261 }, 66262 aboutXWeeks: { 66263 one: 'å¤§ç´ 1 个ææ', 66264 other: 'å¤§ç´ {{count}} 个ææ' 66265 }, 66266 xWeeks: { 66267 one: '1 个ææ', 66268 other: '{{count}} 个ææ' 66269 }, 66270 aboutXMonths: { 66271 one: 'å¤§ç´ 1 åæ', 66272 other: 'å¤§ç´ {{count}} åæ' 66273 }, 66274 xMonths: { 66275 one: '1 åæ', 66276 other: '{{count}} åæ' 66277 }, 66278 aboutXYears: { 66279 one: 'å¤§ç´ 1 å¹´', 66280 other: 'å¤§ç´ {{count}} å¹´' 66281 }, 66282 xYears: { 66283 one: '1 å¹´', 66284 other: '{{count}} å¹´' 66285 }, 66286 overXYears: { 66287 one: 'è¶ é 1 å¹´', 66288 other: 'è¶ é {{count}} å¹´' 66289 }, 66290 almostXYears: { 66291 one: 'å°è¿ 1 å¹´', 66292 other: 'å°è¿ {{count}} å¹´' 66293 } 66294 }; 66295 66296 function formatDistance(token, count, options) { 66297 options = options || {}; 66298 var result; 66299 66300 if (typeof formatDistanceLocale[token] === 'string') { 66301 result = formatDistanceLocale[token]; 66302 } else if (count === 1) { 66303 result = formatDistanceLocale[token].one; 66304 } else { 66305 result = formatDistanceLocale[token].other.replace('{{count}}', count); 66306 } 66307 66308 if (options.addSuffix) { 66309 if (options.comparison > 0) { 66310 return result + 'å §'; 66311 } else { 66312 return result + 'å'; 66313 } 66314 } 66315 66316 return result; 66317 } 66318 66319 /***/ 66320 }), 66321 /* 851 */ 66322 /***/ (function (module, __webpack_exports__, __webpack_require__) { 66323 66324 "use strict"; 66325 /* harmony import */ 66326 var __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__ = __webpack_require__(2); 66327 66328 var dateFormats = { 66329 full: "y'å¹´'M'æ'd'æ¥' EEEE", 66330 long: "y'å¹´'M'æ'd'æ¥'", 66331 medium: 'yyyy-MM-dd', 66332 short: 'yy-MM-dd' 66333 }; 66334 var timeFormats = { 66335 full: 'zzzz a h:mm:ss', 66336 long: 'z a h:mm:ss', 66337 medium: 'a h:mm:ss', 66338 short: 'a h:mm' 66339 }; 66340 var dateTimeFormats = { 66341 full: '{{date}} {{time}}', 66342 long: '{{date}} {{time}}', 66343 medium: '{{date}} {{time}}', 66344 short: '{{date}} {{time}}' 66345 }; 66346 var formatLong = { 66347 date: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 66348 formats: dateFormats, 66349 defaultWidth: 'full' 66350 }), 66351 time: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 66352 formats: timeFormats, 66353 defaultWidth: 'full' 66354 }), 66355 dateTime: __WEBPACK_IMPORTED_MODULE_0__lib_buildFormatLongFn_index_js__["a" /* default */]({ 66356 formats: dateTimeFormats, 66357 defaultWidth: 'full' 66358 }) 66359 }; 66360 /* harmony default export */ 66361 __webpack_exports__["a"] = (formatLong); 66362 66363 /***/ 66364 }), 66365 /* 852 */ 66366 /***/ (function (module, __webpack_exports__, __webpack_require__) { 66367 66368 "use strict"; 66369 /* harmony export (immutable) */ 66370 __webpack_exports__["a"] = formatRelative; 66371 var formatRelativeLocale = { 66372
66372 lastWeek: "'ä¸å' eeee p", 66373 yesterday: "'æ¨å¤©' p", 66374 today: "'ä»å¤©' p", 66375 tomorrow: "'æå¤©' p", 66376 nextWeek: "'ä¸å' eeee p", 66377 other: 'P' 66378 }; 66379 66380 function formatRelative(token, _date, _baseDate, _options) { 66381 return formatRelativeLocale[token]; 66382 } 66383 66384 /***/ 66385 }), 66386 /* 853 */ 66387 /***/ (function (module, __webpack_exports__, __webpack_require__) { 66388 66389 "use strict"; 66390 /* harmony import */ 66391 var __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__ = __webpack_require__(3); 66392 66393 var eraValues = { 66394 narrow: ['å', 'å ¬å '], 66395 abbreviated: ['å', 'å ¬å '], 66396 wide: ['å ¬å å', 'å ¬å '] 66397 }; 66398 var quarterValues = { 66399 narrow: ['1', '2', '3', '4'], 66400 abbreviated: ['第ä¸å»', '第äºå»', '第ä¸å»', '第åå»'], 66401 wide: ['第ä¸å»é', '第äºå»é', '第ä¸å»é', '第åå»é'] 66402 }; 66403 var monthValues = { 66404 narrow: ['ä¸', 'äº', 'ä¸', 'å', 'äº', 'å ', 'ä¸', 'å «', 'ä¹', 'å', 'åä¸', 'åäº'], 66405 abbreviated: ['1æ', '2æ', '3æ', '4æ', '5æ', '6æ', '7æ', '8æ', '9æ', '10æ', '11æ', '12æ'], 66406 wide: ['䏿', 'äºæ', '䏿', 'åæ', 'äºæ', 'å æ', '䏿', 'å «æ', '乿', 'åæ', 'å䏿', 'åäºæ'] 66407 }; 66408 var dayValues = { 66409 narrow: ['æ¥', 'ä¸', 'äº', 'ä¸', 'å', 'äº', 'å '], 66410 short: ['æ¥', 'ä¸', 'äº', 'ä¸', 'å', 'äº', 'å '], 66411 abbreviated: ['鱿¥', 'é±ä¸', 'é±äº', 'é±ä¸', 'é±å', 'é±äº', 'é±å '], 66412 wide: ['æææ¥', 'ææä¸', 'ææäº', 'ææä¸', 'ææå', 'ææäº', 'ææå '] 66413 }; 66414 var dayPeriodValues = { 66415 narrow: { 66416 am: 'ä¸', 66417 pm: 'ä¸', 66418 midnight: '忍', 66419 noon: 'å', 66420 morning: 'æ©', 66421 afternoon: 'ä¸å', 66422 evening: 'æ', 66423 night: 'å¤' 66424 }, 66425 abbreviated: { 66426 am: 'ä¸å', 66427 pm: 'ä¸å', 66428 midnight: '忍', 66429 noon: 'ä¸å', 66430 morning: 'æ©æ¨', 66431 afternoon: 'ä¸å', 66432 evening: 'æä¸', 66433 night: 'å¤é' 66434 }, 66435 wide: { 66436 am: 'ä¸å', 66437 pm: 'ä¸å', 66438 midnight: '忍', 66439 noon: 'ä¸å', 66440 morning: 'æ©æ¨', 66441 afternoon: 'ä¸å', 66442 evening: 'æä¸', 66443 night: 'å¤é' 66444 } 66445 }; 66446 var formattingDayPeriodValues = { 66447 narrow: { 66448 am: 'ä¸', 66449 pm: 'ä¸', 66450 midnight: '忍', 66451 noon: 'å', 66452 morning: 'æ©', 66453 afternoon: 'ä¸å', 66454 evening: 'æ', 66455 night: 'å¤' 66456 }, 66457 abbreviated: { 66458 am: 'ä¸å', 66459 pm: 'ä¸å', 66460 midnight: '忍', 66461 noon: 'ä¸å', 66462 morning: 'æ©æ¨', 66463 afternoon: 'ä¸å', 66464 evening: 'æä¸', 66465 night: 'å¤é' 66466 }, 66467 wide: { 66468 am: 'ä¸å', 66469 pm: 'ä¸å', 66470 midnight: '忍', 66471 noon: 'ä¸å', 66472 morning: 'æ©æ¨', 66473 afternoon: 'ä¸å', 66474 evening: 'æä¸', 66475 night: 'å¤é' 66476 } 66477 }; 66478 66479 function ordinalNumber(dirtyNumber, dirtyOptions) { 66480 var number = Number(dirtyNumber);
vendor: 18,741 bytes, lines 66480-66885
66480 // If ordinal numbers depend on context, for example, 66481 // if they are different for different grammatical genders, 66482 // use `options.unit`: 66483 // 66484 // var options = dirtyOptions || {} 66485 // var unit = String(options.unit) 66486 // 66487 // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', 66488 // 'day', 'hour', 'minute', 'second' 66489 66490 var options = dirtyOptions || {}; 66491 var unit = String(options.unit); 66492 66493 switch (unit) { 66494 case 'date': 66495 return number.toString() + 'æ¥'; 66496 66497 case 'hour': 66498 return number.toString() + 'æ'; 66499 66500 case 'minute': 66501 return number.toString() + 'å'; 66502 66503 case 'second': 66504 return number.toString() + 'ç§'; 66505 66506 default: 66507 return '第 ' + number.toString(); 66508 } 66509 } 66510 66511 var localize = { 66512 ordinalNumber: ordinalNumber, 66513 era: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 66514 values: eraValues, 66515 defaultWidth: 'wide' 66516 }), 66517 quarter: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 66518 values: quarterValues, 66519 defaultWidth: 'wide', 66520 argumentCallback: function (quarter) { 66521 return Number(quarter) - 1; 66522 } 66523 }), 66524 month: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 66525 values: monthValues, 66526 defaultWidth: 'wide' 66527 }), 66528 day: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 66529 values: dayValues, 66530 defaultWidth: 'wide' 66531 }), 66532 dayPeriod: __WEBPACK_IMPORTED_MODULE_0__lib_buildLocalizeFn_index_js__["a" /* default */]({ 66533 values: dayPeriodValues, 66534 defaultWidth: 'wide', 66535 formattingValues: formattingDayPeriodValues, 66536 defaultFormattingWidth: 'wide' 66537 }) 66538 }; 66539 /* harmony default export */ 66540 __webpack_exports__["a"] = (localize); 66541 66542 /***/ 66543 }), 66544 /* 854 */ 66545 /***/ (function (module, __webpack_exports__, __webpack_require__) { 66546 66547 "use strict"; 66548 /* harmony import */ 66549 var __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__ = __webpack_require__(4); 66550 /* harmony import */ 66551 var __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__ = __webpack_require__(5); 66552 66553 66554 var matchOrdinalNumberPattern = /^(第\s*)?\d+(æ¥|æ|å|ç§)?/i; 66555 var parseOrdinalNumberPattern = /\d+/i; 66556 var matchEraPatterns = { 66557 narrow: /^(å)/i, 66558 abbreviated: /^(å)/i, 66559 wide: /^(å ¬å å|å ¬å )/i 66560 }; 66561 var parseEraPatterns = { 66562 any: [/^(å)/i, /^(å ¬å )/i] 66563 }; 66564 var matchQuarterPatterns = { 66565 narrow: /^[1234]/i, 66566 abbreviated: /^第[ä¸äºä¸å]å»/i, 66567 wide: /^第[ä¸äºä¸å]å»é/i 66568 }; 66569 var parseQuarterPatterns = { 66570 any: [/(1|ä¸)/i, /(2|äº)/i, /(3|ä¸)/i, /(4|å)/i] 66571 }; 66572 var matchMonthPatterns = { 66573 narrow: /^(ä¸|äº|ä¸|å|äº|å |ä¸|å «|ä¹|å[äºä¸])/i, 66574 abbreviated: /^(ä¸|äº|ä¸|å|äº|å |ä¸|å «|ä¹|å[äºä¸]|\d|1[12])æ/i, 66575 wide: /^(ä¸|äº|ä¸|å|äº|å |ä¸|å «|ä¹|å[äºä¸])æ/i 66576 }; 66577 var parseMonthPatterns = { 66578 narrow: [/^ä¸/i, /^äº/i, /^ä¸/i, /^å/i, /^äº/i, /^å /i, /^ä¸/i, /^å «/i, /^ä¹/i, /^å(?!(ä¸|äº))/i, /^åä¸/i, /^åäº/i], 66579 any: [/^ä¸|1/i, /^äº|2/i, /^ä¸|3/i, /^å|4/i, /^äº|5/i, /^å |6/i, /^ä¸|7/i, /^å «|8/i, /^ä¹|9/i, /^å(?!(ä¸|äº))|10/i, /^åä¸|11/i, /^åäº|12/i] 66580 }; 66581 var matchDayPatterns = { 66582 narrow: /^[ä¸äºä¸åäºå æ¥]/i, 66583 short: /^[ä¸äºä¸åäºå æ¥]/i, 66584 abbreviated: /^é±[ä¸äºä¸åäºå æ¥]/i, 66585 wide: /^ææ[ä¸äºä¸åäºå æ¥]/i 66586 }; 66587 var parseDayPatterns = { 66588 any: [/æ¥/i, /ä¸/i, /äº/i, /ä¸/i, /å/i, /äº/i, /å /i] 66589 }; 66590 var matchDayPeriodPatterns = { 66591 any: /^(ä¸å?|ä¸å?|åå¤|[䏿£]å|æ©ä¸?|ä¸å|æä¸?|忍)/i 66592 }; 66593 var parseDayPeriodPatterns = { 66594 any: { 66595 am: /^ä¸å?/i, 66596 pm: /^ä¸å?/i, 66597 midnight: /^åå¤/i, 66598 noon: /^[䏿£]å/i, 66599 morning: /^æ©ä¸/i, 66600 afternoon: /^ä¸å/i, 66601 evening: /^æä¸?/i, 66602 night: /^忍/i 66603 } 66604 }; 66605 var match = { 66606 ordinalNumber: __WEBPACK_IMPORTED_MODULE_0__lib_buildMatchPatternFn_index_js__["a" /* default */]({ 66607 matchPattern: matchOrdinalNumberPattern, 66608 parsePattern: parseOrdinalNumberPattern, 66609 valueCallback: function (value) { 66610 return parseInt(value, 10); 66611 } 66612 }), 66613 era: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 66614 matchPatterns: matchEraPatterns, 66615 defaultMatchWidth: 'wide', 66616 parsePatterns: parseEraPatterns, 66617 defaultParseWidth: 'any' 66618 }), 66619 quarter: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 66620 matchPatterns: matchQuarterPatterns, 66621 defaultMatchWidth: 'wide', 66622 parsePatterns: parseQuarterPatterns, 66623 defaultParseWidth: 'any', 66624 valueCallback: function (index) { 66625 return index + 1; 66626 } 66627 }), 66628 month: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 66629 matchPatterns: matchMonthPatterns, 66630 defaultMatchWidth: 'wide', 66631 parsePatterns: parseMonthPatterns, 66632 defaultParseWidth: 'any' 66633 }), 66634 day: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 66635 matchPatterns: matchDayPatterns, 66636 defaultMatchWidth: 'wide', 66637 parsePatterns: parseDayPatterns, 66638 defaultParseWidth: 'any' 66639 }), 66640 dayPeriod: __WEBPACK_IMPORTED_MODULE_1__lib_buildMatchFn_index_js__["a" /* default */]({ 66641 matchPatterns: matchDayPeriodPatterns, 66642 defaultMatchWidth: 'any', 66643 parsePatterns: parseDayPeriodPatterns, 66644 defaultParseWidth: 'any' 66645 }) 66646 }; 66647 /* harmony default export */ 66648 __webpack_exports__["a"] = (match); 66649 66650 /***/ 66651 }), 66652 /* 855 */ 66653 /***/ (function (module, exports) { 66654 66655// removed by extract-text-webpack-plugin 66656 66657 /***/ 66658 }), 66659 /* 856 */ 66660 /***/ (function (module, exports, __webpack_require__) { 66661 66662 "use strict"; 66663 66664 66665 Object.defineProperty(exports, "__esModule", { 66666 value: true 66667 }); 66668 var GT_ACCESS_TOKEN = exports.GT_ACCESS_TOKEN = 'GT_ACCESS_TOKEN'; 66669 var GT_VERSION = exports.GT_VERSION = "1.7.2"; // eslint-disable-line 66670 var GT_COMMENT = exports.GT_COMMENT = 'GT_COMMENT'; 66671 66672 /***/ 66673 }), 66674 /* 857 */ 66675 /***/ (function (module, exports, __webpack_require__) { 66676 66677 "use strict"; 66678 66679 66680 Object.defineProperty(exports, "__esModule", { 66681 value: true 66682 }); 66683 66684 var _toConsumableArray2 = __webpack_require__(858); 66685 66686 var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); 66687 66688 var _util = __webpack_require__(121); 66689 66690 function _interopRequireDefault(obj) { 66691 return obj && obj.__esModule ? obj : {default: obj}; 66692 } 66693 66694 var getQL = function getQL(vars, pagerDirection) { 66695 var cursorDirection = pagerDirection === 'last' ? 'before' : 'after'; 66696 var ql = '\n query getIssueAndComments(\n $owner: String!,\n $repo: String!,\n $id: Int!,\n $cursor: String,\n $pageSize: Int!\n ) {\n repository(owner: $owner, name: $repo) {\n issue(number: $id) {\n title\n url\n bodyHTML\n createdAt\n comments(' + pagerDirection + ': $pageSize, ' + cursorDirection + ': $cursor) {\n totalCount\n pageInfo {\n ' + (pagerDirection === 'last' ? 'hasPreviousPage' : 'hasNextPage') + '\n ' + (cursorDirection === 'before' ? 'startCursor' : 'endCursor') + '\n }\n nodes {\n id\n databaseId\n author {\n avatarUrl\n login\n url\n }\n bodyHTML\n body\n createdAt\n reactions(first: 100, content: HEART) {\n totalCount\n viewerHasReacted\n pageInfo{\n hasNextPage\n }\n nodes {\n id\n databaseId\n user {\n login\n }\n }\n }\n }\n }\n }\n }\n }\n '; 66697 66698 if (vars.cursor === null) delete vars.cursor; 66699 66700 return { 66701 operationName: 'getIssueAndComments', 66702 query: ql, 66703 variables: vars 66704 }; 66705 }; 66706 66707 function getComments(issue) { 66708 var _this = this; 66709 66710 var _options = this.options, 66711 owner = _options.owner, 66712 repo = _options.repo, 66713 perPage = _options.perPage, 66714 pagerDirection = _options.pagerDirection, 66715 defaultAuthor = _options.defaultAuthor; 66716 var _state = this.state, 66717 cursor = _state.cursor, 66718 comments = _state.comments; 66719 66720 return _util.axiosGithub.post('/graphql', getQL({ 66721 owner: owner, 66722 repo: repo, 66723 id: issue.number, 66724 pageSize: perPage, 66725 cursor: cursor 66726 }, pagerDirection), { 66727 headers: { 66728 Authorization: 'bearer ' + this.accessToken 66729 } 66730 }).then(function (res) { 66731 var data = res.data.data.repository.issue.comments; 66732 var items = data.nodes.map(function (node) { 66733 var author = node.author || defaultAuthor; 66734 66735 return { 66736 id: node.databaseId, 66737 gId: node.id, 66738 user: { 66739 avatar_url: author.avatarUrl, 66740 login: author.login, 66741 html_url: author.url 66742 }, 66743 created_at: node.createdAt, 66744 body_html: node.bodyHTML, 66745 body: node.body, 66746 html_url: 'https://github.com/' + owner + '/' + repo + '/issues/' + issue.number + '#issuecomment-' + node.databaseId, 66747 reactions: node.reactions 66748 }; 66749 }); 66750 66751 var cs = void 0; 66752 66753 if (pagerDirection === 'last') { 66754 cs = [].concat((0, _toConsumableArray3.default)(items), (0, _toConsumableArray3.default)(comments)); 66755 } else { 66756 cs = [].concat((0, _toConsumableArray3.default)(comments), (0, _toConsumableArray3.default)(items)); 66757 } 66758 66759 var isLoadOver = data.pageInfo.hasPreviousPage === false || data.pageInfo.hasNextPage === false; 66760 _this.setState({ 66761 comments: cs, 66762 isLoadOver: isLoadOver, 66763 cursor: data.pageInfo.startCursor || data.pageInfo.endCursor 66764 }); 66765 return cs; 66766 }); 66767 } 66768 66769 exports.default = getComments; 66770 66771 /***/ 66772 }), 66773 /* 858 */ 66774 /***/ (function (module, exports, __webpack_require__) { 66775 66776 "use strict"; 66777 66778 66779 exports.__esModule = true; 66780 66781 var _from = __webpack_require__(859); 66782 66783 var _from2 = _interopRequireDefault(_from); 66784 66785 function _interopRequireDefault(obj) { 66786 return obj && obj.__esModule ? obj : {default: obj}; 66787 } 66788 66789 exports.default = function (arr) { 66790 if (Array.isArray(arr)) { 66791 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { 66792 arr2[i] = arr[i]; 66793 } 66794 66795 return arr2; 66796 } else { 66797 return (0, _from2.default)(arr); 66798 } 66799 }; 66800 66801 /***/ 66802 }), 66803 /* 859 */ 66804 /***/ (function (module, exports, __webpack_require__) { 66805 66806 module.exports = {"default": __webpack_require__(860), __esModule: true}; 66807 66808 /***/ 66809 }), 66810 /* 860 */ 66811 /***/ (function (module, exports, __webpack_require__) { 66812 66813 __webpack_require__(40); 66814 __webpack_require__(861); 66815 module.exports = __webpack_require__(7).Array.from; 66816 66817 66818 /***/ 66819 }), 66820 /* 861 */ 66821 /***/ (function (module, exports, __webpack_require__) { 66822 66823 "use strict"; 66824 66825 var ctx = __webpack_require__(29); 66826 var $export = __webpack_require__(11); 66827 var toObject = __webpack_require__(33); 66828 var call = __webpack_require__(107); 66829 var isArrayIter = __webpack_require__(108); 66830 var toLength = __webpack_require__(72); 66831 var createProperty = __webpack_require__(862); 66832 var getIterFn = __webpack_require__(77); 66833 66834 $export($export.S + $export.F * !__webpack_require__(113)(function (iter) { 66835 Array.from(iter); 66836 }), 'Array', { 66837 // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) 66838 from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { 66839 var O = toObject(arrayLike); 66840 var C = typeof this == 'function' ? this : Array; 66841 var aLen = arguments.length; 66842 var mapfn = aLen > 1 ? arguments[1] : undefined; 66843 var mapping = mapfn !== undefined; 66844 var index = 0; 66845 var iterFn = getIterFn(O); 66846 var length, result, step, iterator; 66847 if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2); 66848 // if object isn't iterable or it's array with default iterator - use simple case 66849 if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) { 66850 for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) { 66851 createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value); 66852 } 66853 } else { 66854 length = toLength(O.length); 66855 for (result = new C(length); length > index; index++) { 66856 createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); 66857 } 66858 } 66859 result.length = index; 66860 return result; 66861 } 66862 }); 66863 66864 66865 /***/ 66866 }), 66867 /* 862 */ 66868 /***/ (function (module, exports, __webpack_require__) { 66869 66870 "use strict"; 66871 66872 var $defineProperty = __webpack_require__(16); 66873 var createDesc = __webpack_require__(39); 66874 66875 module.exports = function (object, index, value) { 66876 if (index in object) $defineProperty.f(object, index, createDesc(0, value)); 66877 else object[index] = value; 66878 }; 66879 66880 66881 /***/ 66882 }) 66883 /******/]); 66884}); 66885//# sourceMappingURL=gitalk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.