@coreui/vue-pro 4.7.0-alpha.1 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/element-cover/CElementCover.d.ts +14 -11
- package/dist/components/smart-table/CSmartTable.d.ts +19 -8
- package/dist/components/smart-table/CSmartTableHead.d.ts +3 -3
- package/dist/components/smart-table/CSmartTableInterface.d.ts +4 -0
- package/dist/components/table/CTable.d.ts +4 -10
- package/dist/index.es.js +285 -3553
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +286 -3554
- package/dist/index.js.map +1 -1
- package/dist/utils/calendar.d.ts +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/isInViewport.d.ts +2 -0
- package/package.json +10 -14
- package/src/components/carousel/CCarousel.ts +3 -3
- package/src/components/element-cover/CElementCover.ts +55 -40
- package/src/components/form/CFormControlWrapper.ts +36 -22
- package/src/components/sidebar/CSidebar.ts +5 -5
- package/src/components/smart-table/CSmartTable.ts +46 -6
- package/src/components/smart-table/CSmartTableHead.ts +1 -1
- package/src/components/smart-table/CSmartTableInterface.ts +6 -0
- package/src/components/table/CTable.ts +45 -42
- package/src/components/time-picker/CTimePicker.ts +4 -3
- package/src/utils/calendar.ts +2 -2
- package/src/utils/index.ts +2 -2
- package/src/utils/isInViewport.ts +11 -0
- package/src/utils/time.ts +8 -10
- package/src/utils/isVisible.ts +0 -11
package/dist/index.es.js
CHANGED
|
@@ -1937,12 +1937,12 @@ const getPreviousSibling = (elem, selector) => {
|
|
|
1937
1937
|
return;
|
|
1938
1938
|
};
|
|
1939
1939
|
|
|
1940
|
-
const
|
|
1940
|
+
const isInViewport = (element) => {
|
|
1941
1941
|
const rect = element.getBoundingClientRect();
|
|
1942
|
-
return (rect.top >= 0 &&
|
|
1943
|
-
rect.left >= 0 &&
|
|
1944
|
-
rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
|
|
1945
|
-
rect.right <= (window.innerWidth || document.documentElement.clientWidth));
|
|
1942
|
+
return (Math.floor(rect.top) >= 0 &&
|
|
1943
|
+
Math.floor(rect.left) >= 0 &&
|
|
1944
|
+
Math.floor(rect.bottom) <= (window.innerHeight || document.documentElement.clientHeight) &&
|
|
1945
|
+
Math.floor(rect.right) <= (window.innerWidth || document.documentElement.clientWidth));
|
|
1946
1946
|
};
|
|
1947
1947
|
|
|
1948
1948
|
const CCarousel = defineComponent({
|
|
@@ -2056,7 +2056,7 @@ const CCarousel = defineComponent({
|
|
|
2056
2056
|
const nextItemWhenVisible = () => {
|
|
2057
2057
|
// Don't call next when the page isn't visible
|
|
2058
2058
|
// or the carousel or its parent isn't visible
|
|
2059
|
-
if (!document.hidden &&
|
|
2059
|
+
if (!document.hidden && isInViewport(carouselRef.value)) {
|
|
2060
2060
|
handleControlClick('next');
|
|
2061
2061
|
}
|
|
2062
2062
|
};
|
|
@@ -2075,7 +2075,7 @@ const CCarousel = defineComponent({
|
|
|
2075
2075
|
}
|
|
2076
2076
|
};
|
|
2077
2077
|
const handleScroll = () => {
|
|
2078
|
-
if (!document.hidden &&
|
|
2078
|
+
if (!document.hidden && isInViewport(carouselRef.value)) {
|
|
2079
2079
|
visible.value = true;
|
|
2080
2080
|
}
|
|
2081
2081
|
else {
|
|
@@ -2278,7 +2278,7 @@ function requiredArgs(required, args) {
|
|
|
2278
2278
|
}
|
|
2279
2279
|
}
|
|
2280
2280
|
|
|
2281
|
-
function _typeof$
|
|
2281
|
+
function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
|
|
2282
2282
|
/**
|
|
2283
2283
|
* @name toDate
|
|
2284
2284
|
* @category Common Helpers
|
|
@@ -2314,7 +2314,7 @@ function toDate(argument) {
|
|
|
2314
2314
|
requiredArgs(1, arguments);
|
|
2315
2315
|
var argStr = Object.prototype.toString.call(argument); // Clone the date
|
|
2316
2316
|
|
|
2317
|
-
if (argument instanceof Date || _typeof$
|
|
2317
|
+
if (argument instanceof Date || _typeof$1(argument) === 'object' && argStr === '[object Date]') {
|
|
2318
2318
|
// Prevent the date to lose the milliseconds when passed to new Date() in IE10
|
|
2319
2319
|
return new Date(argument.getTime());
|
|
2320
2320
|
} else if (typeof argument === 'number' || argStr === '[object Number]') {
|
|
@@ -2379,46 +2379,7 @@ function getTimezoneOffsetInMilliseconds(date) {
|
|
|
2379
2379
|
return date.getTime() - utcDate.getTime();
|
|
2380
2380
|
}
|
|
2381
2381
|
|
|
2382
|
-
|
|
2383
|
-
* Days in 1 week.
|
|
2384
|
-
*
|
|
2385
|
-
* @name daysInWeek
|
|
2386
|
-
* @constant
|
|
2387
|
-
* @type {number}
|
|
2388
|
-
* @default
|
|
2389
|
-
*/
|
|
2390
|
-
/**
|
|
2391
|
-
* Milliseconds in 1 minute
|
|
2392
|
-
*
|
|
2393
|
-
* @name millisecondsInMinute
|
|
2394
|
-
* @constant
|
|
2395
|
-
* @type {number}
|
|
2396
|
-
* @default
|
|
2397
|
-
*/
|
|
2398
|
-
|
|
2399
|
-
var millisecondsInMinute = 60000;
|
|
2400
|
-
/**
|
|
2401
|
-
* Milliseconds in 1 hour
|
|
2402
|
-
*
|
|
2403
|
-
* @name millisecondsInHour
|
|
2404
|
-
* @constant
|
|
2405
|
-
* @type {number}
|
|
2406
|
-
* @default
|
|
2407
|
-
*/
|
|
2408
|
-
|
|
2409
|
-
var millisecondsInHour = 3600000;
|
|
2410
|
-
/**
|
|
2411
|
-
* Milliseconds in 1 second
|
|
2412
|
-
*
|
|
2413
|
-
* @name millisecondsInSecond
|
|
2414
|
-
* @constant
|
|
2415
|
-
* @type {number}
|
|
2416
|
-
* @default
|
|
2417
|
-
*/
|
|
2418
|
-
|
|
2419
|
-
var millisecondsInSecond = 1000;
|
|
2420
|
-
|
|
2421
|
-
function _typeof$w(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$w = function _typeof(obj) { return typeof obj; }; } else { _typeof$w = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$w(obj); }
|
|
2382
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
2422
2383
|
/**
|
|
2423
2384
|
* @name isDate
|
|
2424
2385
|
* @category Common Helpers
|
|
@@ -2454,7 +2415,7 @@ function _typeof$w(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "func
|
|
|
2454
2415
|
|
|
2455
2416
|
function isDate(value) {
|
|
2456
2417
|
requiredArgs(1, arguments);
|
|
2457
|
-
return value instanceof Date || _typeof
|
|
2418
|
+
return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
|
|
2458
2419
|
}
|
|
2459
2420
|
|
|
2460
2421
|
/**
|
|
@@ -2690,7 +2651,7 @@ function addLeadingZeros(number, targetLength) {
|
|
|
2690
2651
|
* Letters marked by * are not implemented but reserved by Unicode standard.
|
|
2691
2652
|
*/
|
|
2692
2653
|
|
|
2693
|
-
var formatters$
|
|
2654
|
+
var formatters$2 = {
|
|
2694
2655
|
// Year
|
|
2695
2656
|
y: function y(date, token) {
|
|
2696
2657
|
// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
|
|
@@ -2759,6 +2720,7 @@ var formatters$1 = {
|
|
|
2759
2720
|
return addLeadingZeros(fractionalSeconds, token.length);
|
|
2760
2721
|
}
|
|
2761
2722
|
};
|
|
2723
|
+
var formatters$3 = formatters$2;
|
|
2762
2724
|
|
|
2763
2725
|
var dayPeriodEnum = {
|
|
2764
2726
|
am: 'am',
|
|
@@ -2856,7 +2818,7 @@ var formatters = {
|
|
|
2856
2818
|
});
|
|
2857
2819
|
}
|
|
2858
2820
|
|
|
2859
|
-
return formatters$
|
|
2821
|
+
return formatters$3.y(date, token);
|
|
2860
2822
|
},
|
|
2861
2823
|
// Local week-numbering year
|
|
2862
2824
|
Y: function Y(date, token, localize, options) {
|
|
@@ -2989,7 +2951,7 @@ var formatters = {
|
|
|
2989
2951
|
switch (token) {
|
|
2990
2952
|
case 'M':
|
|
2991
2953
|
case 'MM':
|
|
2992
|
-
return formatters$
|
|
2954
|
+
return formatters$3.M(date, token);
|
|
2993
2955
|
// 1st, 2nd, ..., 12th
|
|
2994
2956
|
|
|
2995
2957
|
case 'Mo':
|
|
@@ -3094,7 +3056,7 @@ var formatters = {
|
|
|
3094
3056
|
});
|
|
3095
3057
|
}
|
|
3096
3058
|
|
|
3097
|
-
return formatters$
|
|
3059
|
+
return formatters$3.d(date, token);
|
|
3098
3060
|
},
|
|
3099
3061
|
// Day of year
|
|
3100
3062
|
D: function D(date, token, localize) {
|
|
@@ -3415,7 +3377,7 @@ var formatters = {
|
|
|
3415
3377
|
});
|
|
3416
3378
|
}
|
|
3417
3379
|
|
|
3418
|
-
return formatters$
|
|
3380
|
+
return formatters$3.h(date, token);
|
|
3419
3381
|
},
|
|
3420
3382
|
// Hour [0-23]
|
|
3421
3383
|
H: function H(date, token, localize) {
|
|
@@ -3425,7 +3387,7 @@ var formatters = {
|
|
|
3425
3387
|
});
|
|
3426
3388
|
}
|
|
3427
3389
|
|
|
3428
|
-
return formatters$
|
|
3390
|
+
return formatters$3.H(date, token);
|
|
3429
3391
|
},
|
|
3430
3392
|
// Hour [0-11]
|
|
3431
3393
|
K: function K(date, token, localize) {
|
|
@@ -3460,7 +3422,7 @@ var formatters = {
|
|
|
3460
3422
|
});
|
|
3461
3423
|
}
|
|
3462
3424
|
|
|
3463
|
-
return formatters$
|
|
3425
|
+
return formatters$3.m(date, token);
|
|
3464
3426
|
},
|
|
3465
3427
|
// Second
|
|
3466
3428
|
s: function s(date, token, localize) {
|
|
@@ -3470,11 +3432,11 @@ var formatters = {
|
|
|
3470
3432
|
});
|
|
3471
3433
|
}
|
|
3472
3434
|
|
|
3473
|
-
return formatters$
|
|
3435
|
+
return formatters$3.s(date, token);
|
|
3474
3436
|
},
|
|
3475
3437
|
// Fraction of second
|
|
3476
3438
|
S: function S(date, token) {
|
|
3477
|
-
return formatters$
|
|
3439
|
+
return formatters$3.S(date, token);
|
|
3478
3440
|
},
|
|
3479
3441
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
3480
3442
|
X: function X(date, token, _localize, options) {
|
|
@@ -3618,6 +3580,8 @@ function formatTimezone(offset, dirtyDelimiter) {
|
|
|
3618
3580
|
return sign + hours + delimiter + minutes;
|
|
3619
3581
|
}
|
|
3620
3582
|
|
|
3583
|
+
var formatters$1 = formatters;
|
|
3584
|
+
|
|
3621
3585
|
var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
|
|
3622
3586
|
switch (pattern) {
|
|
3623
3587
|
case 'P':
|
|
@@ -3713,6 +3677,7 @@ var longFormatters = {
|
|
|
3713
3677
|
p: timeLongFormatter,
|
|
3714
3678
|
P: dateTimeLongFormatter
|
|
3715
3679
|
};
|
|
3680
|
+
var longFormatters$1 = longFormatters;
|
|
3716
3681
|
|
|
3717
3682
|
var protectedDayOfYearTokens = ['D', 'DD'];
|
|
3718
3683
|
var protectedWeekYearTokens = ['YY', 'YYYY'];
|
|
@@ -3821,6 +3786,8 @@ var formatDistance = function formatDistance(token, count, options) {
|
|
|
3821
3786
|
return result;
|
|
3822
3787
|
};
|
|
3823
3788
|
|
|
3789
|
+
var formatDistance$1 = formatDistance;
|
|
3790
|
+
|
|
3824
3791
|
function buildFormatLongFn(args) {
|
|
3825
3792
|
return function () {
|
|
3826
3793
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -3863,6 +3830,7 @@ var formatLong = {
|
|
|
3863
3830
|
defaultWidth: 'full'
|
|
3864
3831
|
})
|
|
3865
3832
|
};
|
|
3833
|
+
var formatLong$1 = formatLong;
|
|
3866
3834
|
|
|
3867
3835
|
var formatRelativeLocale = {
|
|
3868
3836
|
lastWeek: "'last' eeee 'at' p",
|
|
@@ -3877,6 +3845,8 @@ var formatRelative = function formatRelative(token, _date, _baseDate, _options)
|
|
|
3877
3845
|
return formatRelativeLocale[token];
|
|
3878
3846
|
};
|
|
3879
3847
|
|
|
3848
|
+
var formatRelative$1 = formatRelative;
|
|
3849
|
+
|
|
3880
3850
|
function buildLocalizeFn(args) {
|
|
3881
3851
|
return function (dirtyIndex, options) {
|
|
3882
3852
|
var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone';
|
|
@@ -4044,6 +4014,7 @@ var localize = {
|
|
|
4044
4014
|
defaultFormattingWidth: 'wide'
|
|
4045
4015
|
})
|
|
4046
4016
|
};
|
|
4017
|
+
var localize$1 = localize;
|
|
4047
4018
|
|
|
4048
4019
|
function buildMatchFn(args) {
|
|
4049
4020
|
return function (string) {
|
|
@@ -4207,6 +4178,7 @@ var match = {
|
|
|
4207
4178
|
defaultParseWidth: 'any'
|
|
4208
4179
|
})
|
|
4209
4180
|
};
|
|
4181
|
+
var match$1 = match;
|
|
4210
4182
|
|
|
4211
4183
|
/**
|
|
4212
4184
|
* @type {Locale}
|
|
@@ -4219,11 +4191,11 @@ var match = {
|
|
|
4219
4191
|
*/
|
|
4220
4192
|
var locale = {
|
|
4221
4193
|
code: 'en-US',
|
|
4222
|
-
formatDistance: formatDistance,
|
|
4223
|
-
formatLong: formatLong,
|
|
4224
|
-
formatRelative: formatRelative,
|
|
4225
|
-
localize: localize,
|
|
4226
|
-
match: match,
|
|
4194
|
+
formatDistance: formatDistance$1,
|
|
4195
|
+
formatLong: formatLong$1,
|
|
4196
|
+
formatRelative: formatRelative$1,
|
|
4197
|
+
localize: localize$1,
|
|
4198
|
+
match: match$1,
|
|
4227
4199
|
options: {
|
|
4228
4200
|
weekStartsOn: 0
|
|
4229
4201
|
/* Sunday */
|
|
@@ -4231,6 +4203,7 @@ var locale = {
|
|
|
4231
4203
|
firstWeekContainsDate: 1
|
|
4232
4204
|
}
|
|
4233
4205
|
};
|
|
4206
|
+
var defaultLocale = locale;
|
|
4234
4207
|
|
|
4235
4208
|
// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
|
|
4236
4209
|
// (one of the certain letters followed by `o`)
|
|
@@ -4548,7 +4521,7 @@ function format$1(dirtyDate, dirtyFormatStr, options) {
|
|
|
4548
4521
|
requiredArgs(2, arguments);
|
|
4549
4522
|
var formatStr = String(dirtyFormatStr);
|
|
4550
4523
|
var defaultOptions = getDefaultOptions();
|
|
4551
|
-
var locale
|
|
4524
|
+
var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale;
|
|
4552
4525
|
var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
|
|
4553
4526
|
|
|
4554
4527
|
if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
|
|
@@ -4561,3365 +4534,84 @@ function format$1(dirtyDate, dirtyFormatStr, options) {
|
|
|
4561
4534
|
throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
|
|
4562
4535
|
}
|
|
4563
4536
|
|
|
4564
|
-
if (!locale
|
|
4537
|
+
if (!locale.localize) {
|
|
4565
4538
|
throw new RangeError('locale must contain localize property');
|
|
4566
4539
|
}
|
|
4567
4540
|
|
|
4568
|
-
if (!locale
|
|
4541
|
+
if (!locale.formatLong) {
|
|
4569
4542
|
throw new RangeError('locale must contain formatLong property');
|
|
4570
|
-
}
|
|
4571
|
-
|
|
4572
|
-
var originalDate = toDate(dirtyDate);
|
|
4573
|
-
|
|
4574
|
-
if (!isValid(originalDate)) {
|
|
4575
|
-
throw new RangeError('Invalid time value');
|
|
4576
|
-
} // Convert the date in system timezone to the same date in UTC+00:00 timezone.
|
|
4577
|
-
// This ensures that when UTC functions will be implemented, locales will be compatible with them.
|
|
4578
|
-
// See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);
|
|
4582
|
-
var utcDate = subMilliseconds(originalDate, timezoneOffset);
|
|
4583
|
-
var formatterOptions = {
|
|
4584
|
-
firstWeekContainsDate: firstWeekContainsDate,
|
|
4585
|
-
weekStartsOn: weekStartsOn,
|
|
4586
|
-
locale: locale$1,
|
|
4587
|
-
_originalDate: originalDate
|
|
4588
|
-
};
|
|
4589
|
-
var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {
|
|
4590
|
-
var firstCharacter = substring[0];
|
|
4591
|
-
|
|
4592
|
-
if (firstCharacter === 'p' || firstCharacter === 'P') {
|
|
4593
|
-
var longFormatter = longFormatters[firstCharacter];
|
|
4594
|
-
return longFormatter(substring, locale$1.formatLong);
|
|
4595
|
-
}
|
|
4596
|
-
|
|
4597
|
-
return substring;
|
|
4598
|
-
}).join('').match(formattingTokensRegExp).map(function (substring) {
|
|
4599
|
-
// Replace two single quote characters with one single quote character
|
|
4600
|
-
if (substring === "''") {
|
|
4601
|
-
return "'";
|
|
4602
|
-
}
|
|
4603
|
-
|
|
4604
|
-
var firstCharacter = substring[0];
|
|
4605
|
-
|
|
4606
|
-
if (firstCharacter === "'") {
|
|
4607
|
-
return cleanEscapedString(substring);
|
|
4608
|
-
}
|
|
4609
|
-
|
|
4610
|
-
var formatter = formatters[firstCharacter];
|
|
4611
|
-
|
|
4612
|
-
if (formatter) {
|
|
4613
|
-
if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
|
|
4614
|
-
throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
|
|
4615
|
-
}
|
|
4616
|
-
|
|
4617
|
-
if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
|
|
4618
|
-
throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
|
|
4619
|
-
}
|
|
4620
|
-
|
|
4621
|
-
return formatter(utcDate, substring, locale$1.localize, formatterOptions);
|
|
4622
|
-
}
|
|
4623
|
-
|
|
4624
|
-
if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
|
|
4625
|
-
throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
|
|
4626
|
-
}
|
|
4627
|
-
|
|
4628
|
-
return substring;
|
|
4629
|
-
}).join('');
|
|
4630
|
-
return result;
|
|
4631
|
-
}
|
|
4632
|
-
|
|
4633
|
-
function cleanEscapedString(input) {
|
|
4634
|
-
var matched = input.match(escapedStringRegExp);
|
|
4635
|
-
|
|
4636
|
-
if (!matched) {
|
|
4637
|
-
return input;
|
|
4638
|
-
}
|
|
4639
|
-
|
|
4640
|
-
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
4641
|
-
}
|
|
4642
|
-
|
|
4643
|
-
function _typeof$v(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$v = function _typeof(obj) { return typeof obj; }; } else { _typeof$v = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$v(obj); }
|
|
4644
|
-
|
|
4645
|
-
function _inherits$v(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$v(subClass, superClass); }
|
|
4646
|
-
|
|
4647
|
-
function _setPrototypeOf$v(o, p) { _setPrototypeOf$v = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$v(o, p); }
|
|
4648
|
-
|
|
4649
|
-
function _createSuper$v(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$v(); return function _createSuperInternal() { var Super = _getPrototypeOf$v(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$v(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$v(this, result); }; }
|
|
4650
|
-
|
|
4651
|
-
function _possibleConstructorReturn$v(self, call) { if (call && (_typeof$v(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$v(self); }
|
|
4652
|
-
|
|
4653
|
-
function _assertThisInitialized$v(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4654
|
-
|
|
4655
|
-
function _isNativeReflectConstruct$v() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
4656
|
-
|
|
4657
|
-
function _getPrototypeOf$v(o) { _getPrototypeOf$v = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$v(o); }
|
|
4658
|
-
|
|
4659
|
-
function _classCallCheck$w(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4660
|
-
|
|
4661
|
-
function _defineProperties$w(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4662
|
-
|
|
4663
|
-
function _createClass$w(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$w(Constructor.prototype, protoProps); if (staticProps) _defineProperties$w(Constructor, staticProps); return Constructor; }
|
|
4664
|
-
|
|
4665
|
-
function _defineProperty$v(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4666
|
-
var Setter = /*#__PURE__*/function () {
|
|
4667
|
-
function Setter() {
|
|
4668
|
-
_classCallCheck$w(this, Setter);
|
|
4669
|
-
|
|
4670
|
-
_defineProperty$v(this, "subPriority", 0);
|
|
4671
|
-
}
|
|
4672
|
-
|
|
4673
|
-
_createClass$w(Setter, [{
|
|
4674
|
-
key: "validate",
|
|
4675
|
-
value: function validate(_utcDate, _options) {
|
|
4676
|
-
return true;
|
|
4677
|
-
}
|
|
4678
|
-
}]);
|
|
4679
|
-
|
|
4680
|
-
return Setter;
|
|
4681
|
-
}();
|
|
4682
|
-
var ValueSetter = /*#__PURE__*/function (_Setter) {
|
|
4683
|
-
_inherits$v(ValueSetter, _Setter);
|
|
4684
|
-
|
|
4685
|
-
var _super = _createSuper$v(ValueSetter);
|
|
4686
|
-
|
|
4687
|
-
function ValueSetter(value, validateValue, setValue, priority, subPriority) {
|
|
4688
|
-
var _this;
|
|
4689
|
-
|
|
4690
|
-
_classCallCheck$w(this, ValueSetter);
|
|
4691
|
-
|
|
4692
|
-
_this = _super.call(this);
|
|
4693
|
-
_this.value = value;
|
|
4694
|
-
_this.validateValue = validateValue;
|
|
4695
|
-
_this.setValue = setValue;
|
|
4696
|
-
_this.priority = priority;
|
|
4697
|
-
|
|
4698
|
-
if (subPriority) {
|
|
4699
|
-
_this.subPriority = subPriority;
|
|
4700
|
-
}
|
|
4701
|
-
|
|
4702
|
-
return _this;
|
|
4703
|
-
}
|
|
4704
|
-
|
|
4705
|
-
_createClass$w(ValueSetter, [{
|
|
4706
|
-
key: "validate",
|
|
4707
|
-
value: function validate(utcDate, options) {
|
|
4708
|
-
return this.validateValue(utcDate, this.value, options);
|
|
4709
|
-
}
|
|
4710
|
-
}, {
|
|
4711
|
-
key: "set",
|
|
4712
|
-
value: function set(utcDate, flags, options) {
|
|
4713
|
-
return this.setValue(utcDate, flags, this.value, options);
|
|
4714
|
-
}
|
|
4715
|
-
}]);
|
|
4716
|
-
|
|
4717
|
-
return ValueSetter;
|
|
4718
|
-
}(Setter);
|
|
4719
|
-
|
|
4720
|
-
function _classCallCheck$v(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4721
|
-
|
|
4722
|
-
function _defineProperties$v(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4723
|
-
|
|
4724
|
-
function _createClass$v(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$v(Constructor.prototype, protoProps); if (staticProps) _defineProperties$v(Constructor, staticProps); return Constructor; }
|
|
4725
|
-
var Parser = /*#__PURE__*/function () {
|
|
4726
|
-
function Parser() {
|
|
4727
|
-
_classCallCheck$v(this, Parser);
|
|
4728
|
-
}
|
|
4729
|
-
|
|
4730
|
-
_createClass$v(Parser, [{
|
|
4731
|
-
key: "run",
|
|
4732
|
-
value: function run(dateString, token, match, options) {
|
|
4733
|
-
var result = this.parse(dateString, token, match, options);
|
|
4734
|
-
|
|
4735
|
-
if (!result) {
|
|
4736
|
-
return null;
|
|
4737
|
-
}
|
|
4738
|
-
|
|
4739
|
-
return {
|
|
4740
|
-
setter: new ValueSetter(result.value, this.validate, this.set, this.priority, this.subPriority),
|
|
4741
|
-
rest: result.rest
|
|
4742
|
-
};
|
|
4743
|
-
}
|
|
4744
|
-
}, {
|
|
4745
|
-
key: "validate",
|
|
4746
|
-
value: function validate(_utcDate, _value, _options) {
|
|
4747
|
-
return true;
|
|
4748
|
-
}
|
|
4749
|
-
}]);
|
|
4750
|
-
|
|
4751
|
-
return Parser;
|
|
4752
|
-
}();
|
|
4753
|
-
|
|
4754
|
-
function _typeof$u(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$u = function _typeof(obj) { return typeof obj; }; } else { _typeof$u = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$u(obj); }
|
|
4755
|
-
|
|
4756
|
-
function _classCallCheck$u(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4757
|
-
|
|
4758
|
-
function _defineProperties$u(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4759
|
-
|
|
4760
|
-
function _createClass$u(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$u(Constructor.prototype, protoProps); if (staticProps) _defineProperties$u(Constructor, staticProps); return Constructor; }
|
|
4761
|
-
|
|
4762
|
-
function _inherits$u(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$u(subClass, superClass); }
|
|
4763
|
-
|
|
4764
|
-
function _setPrototypeOf$u(o, p) { _setPrototypeOf$u = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$u(o, p); }
|
|
4765
|
-
|
|
4766
|
-
function _createSuper$u(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$u(); return function _createSuperInternal() { var Super = _getPrototypeOf$u(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$u(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$u(this, result); }; }
|
|
4767
|
-
|
|
4768
|
-
function _possibleConstructorReturn$u(self, call) { if (call && (_typeof$u(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$u(self); }
|
|
4769
|
-
|
|
4770
|
-
function _assertThisInitialized$u(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4771
|
-
|
|
4772
|
-
function _isNativeReflectConstruct$u() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
4773
|
-
|
|
4774
|
-
function _getPrototypeOf$u(o) { _getPrototypeOf$u = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$u(o); }
|
|
4775
|
-
|
|
4776
|
-
function _defineProperty$u(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4777
|
-
var EraParser = /*#__PURE__*/function (_Parser) {
|
|
4778
|
-
_inherits$u(EraParser, _Parser);
|
|
4779
|
-
|
|
4780
|
-
var _super = _createSuper$u(EraParser);
|
|
4781
|
-
|
|
4782
|
-
function EraParser() {
|
|
4783
|
-
var _this;
|
|
4784
|
-
|
|
4785
|
-
_classCallCheck$u(this, EraParser);
|
|
4786
|
-
|
|
4787
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4788
|
-
args[_key] = arguments[_key];
|
|
4789
|
-
}
|
|
4790
|
-
|
|
4791
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
4792
|
-
|
|
4793
|
-
_defineProperty$u(_assertThisInitialized$u(_this), "priority", 140);
|
|
4794
|
-
|
|
4795
|
-
_defineProperty$u(_assertThisInitialized$u(_this), "incompatibleTokens", ['R', 'u', 't', 'T']);
|
|
4796
|
-
|
|
4797
|
-
return _this;
|
|
4798
|
-
}
|
|
4799
|
-
|
|
4800
|
-
_createClass$u(EraParser, [{
|
|
4801
|
-
key: "parse",
|
|
4802
|
-
value: function parse(dateString, token, match) {
|
|
4803
|
-
switch (token) {
|
|
4804
|
-
// AD, BC
|
|
4805
|
-
case 'G':
|
|
4806
|
-
case 'GG':
|
|
4807
|
-
case 'GGG':
|
|
4808
|
-
return match.era(dateString, {
|
|
4809
|
-
width: 'abbreviated'
|
|
4810
|
-
}) || match.era(dateString, {
|
|
4811
|
-
width: 'narrow'
|
|
4812
|
-
});
|
|
4813
|
-
// A, B
|
|
4814
|
-
|
|
4815
|
-
case 'GGGGG':
|
|
4816
|
-
return match.era(dateString, {
|
|
4817
|
-
width: 'narrow'
|
|
4818
|
-
});
|
|
4819
|
-
// Anno Domini, Before Christ
|
|
4820
|
-
|
|
4821
|
-
case 'GGGG':
|
|
4822
|
-
default:
|
|
4823
|
-
return match.era(dateString, {
|
|
4824
|
-
width: 'wide'
|
|
4825
|
-
}) || match.era(dateString, {
|
|
4826
|
-
width: 'abbreviated'
|
|
4827
|
-
}) || match.era(dateString, {
|
|
4828
|
-
width: 'narrow'
|
|
4829
|
-
});
|
|
4830
|
-
}
|
|
4831
|
-
}
|
|
4832
|
-
}, {
|
|
4833
|
-
key: "set",
|
|
4834
|
-
value: function set(date, flags, value) {
|
|
4835
|
-
flags.era = value;
|
|
4836
|
-
date.setUTCFullYear(value, 0, 1);
|
|
4837
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
4838
|
-
return date;
|
|
4839
|
-
}
|
|
4840
|
-
}]);
|
|
4841
|
-
|
|
4842
|
-
return EraParser;
|
|
4843
|
-
}(Parser);
|
|
4844
|
-
|
|
4845
|
-
var numericPatterns = {
|
|
4846
|
-
month: /^(1[0-2]|0?\d)/,
|
|
4847
|
-
// 0 to 12
|
|
4848
|
-
date: /^(3[0-1]|[0-2]?\d)/,
|
|
4849
|
-
// 0 to 31
|
|
4850
|
-
dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
|
|
4851
|
-
// 0 to 366
|
|
4852
|
-
week: /^(5[0-3]|[0-4]?\d)/,
|
|
4853
|
-
// 0 to 53
|
|
4854
|
-
hour23h: /^(2[0-3]|[0-1]?\d)/,
|
|
4855
|
-
// 0 to 23
|
|
4856
|
-
hour24h: /^(2[0-4]|[0-1]?\d)/,
|
|
4857
|
-
// 0 to 24
|
|
4858
|
-
hour11h: /^(1[0-1]|0?\d)/,
|
|
4859
|
-
// 0 to 11
|
|
4860
|
-
hour12h: /^(1[0-2]|0?\d)/,
|
|
4861
|
-
// 0 to 12
|
|
4862
|
-
minute: /^[0-5]?\d/,
|
|
4863
|
-
// 0 to 59
|
|
4864
|
-
second: /^[0-5]?\d/,
|
|
4865
|
-
// 0 to 59
|
|
4866
|
-
singleDigit: /^\d/,
|
|
4867
|
-
// 0 to 9
|
|
4868
|
-
twoDigits: /^\d{1,2}/,
|
|
4869
|
-
// 0 to 99
|
|
4870
|
-
threeDigits: /^\d{1,3}/,
|
|
4871
|
-
// 0 to 999
|
|
4872
|
-
fourDigits: /^\d{1,4}/,
|
|
4873
|
-
// 0 to 9999
|
|
4874
|
-
anyDigitsSigned: /^-?\d+/,
|
|
4875
|
-
singleDigitSigned: /^-?\d/,
|
|
4876
|
-
// 0 to 9, -0 to -9
|
|
4877
|
-
twoDigitsSigned: /^-?\d{1,2}/,
|
|
4878
|
-
// 0 to 99, -0 to -99
|
|
4879
|
-
threeDigitsSigned: /^-?\d{1,3}/,
|
|
4880
|
-
// 0 to 999, -0 to -999
|
|
4881
|
-
fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999
|
|
4882
|
-
|
|
4883
|
-
};
|
|
4884
|
-
var timezonePatterns = {
|
|
4885
|
-
basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
|
|
4886
|
-
basic: /^([+-])(\d{2})(\d{2})|Z/,
|
|
4887
|
-
basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
|
|
4888
|
-
extended: /^([+-])(\d{2}):(\d{2})|Z/,
|
|
4889
|
-
extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
|
|
4890
|
-
};
|
|
4891
|
-
|
|
4892
|
-
function mapValue(parseFnResult, mapFn) {
|
|
4893
|
-
if (!parseFnResult) {
|
|
4894
|
-
return parseFnResult;
|
|
4895
|
-
}
|
|
4896
|
-
|
|
4897
|
-
return {
|
|
4898
|
-
value: mapFn(parseFnResult.value),
|
|
4899
|
-
rest: parseFnResult.rest
|
|
4900
|
-
};
|
|
4901
|
-
}
|
|
4902
|
-
function parseNumericPattern(pattern, dateString) {
|
|
4903
|
-
var matchResult = dateString.match(pattern);
|
|
4904
|
-
|
|
4905
|
-
if (!matchResult) {
|
|
4906
|
-
return null;
|
|
4907
|
-
}
|
|
4908
|
-
|
|
4909
|
-
return {
|
|
4910
|
-
value: parseInt(matchResult[0], 10),
|
|
4911
|
-
rest: dateString.slice(matchResult[0].length)
|
|
4912
|
-
};
|
|
4913
|
-
}
|
|
4914
|
-
function parseTimezonePattern(pattern, dateString) {
|
|
4915
|
-
var matchResult = dateString.match(pattern);
|
|
4916
|
-
|
|
4917
|
-
if (!matchResult) {
|
|
4918
|
-
return null;
|
|
4919
|
-
} // Input is 'Z'
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
if (matchResult[0] === 'Z') {
|
|
4923
|
-
return {
|
|
4924
|
-
value: 0,
|
|
4925
|
-
rest: dateString.slice(1)
|
|
4926
|
-
};
|
|
4927
|
-
}
|
|
4928
|
-
|
|
4929
|
-
var sign = matchResult[1] === '+' ? 1 : -1;
|
|
4930
|
-
var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;
|
|
4931
|
-
var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;
|
|
4932
|
-
var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;
|
|
4933
|
-
return {
|
|
4934
|
-
value: sign * (hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * millisecondsInSecond),
|
|
4935
|
-
rest: dateString.slice(matchResult[0].length)
|
|
4936
|
-
};
|
|
4937
|
-
}
|
|
4938
|
-
function parseAnyDigitsSigned(dateString) {
|
|
4939
|
-
return parseNumericPattern(numericPatterns.anyDigitsSigned, dateString);
|
|
4940
|
-
}
|
|
4941
|
-
function parseNDigits(n, dateString) {
|
|
4942
|
-
switch (n) {
|
|
4943
|
-
case 1:
|
|
4944
|
-
return parseNumericPattern(numericPatterns.singleDigit, dateString);
|
|
4945
|
-
|
|
4946
|
-
case 2:
|
|
4947
|
-
return parseNumericPattern(numericPatterns.twoDigits, dateString);
|
|
4948
|
-
|
|
4949
|
-
case 3:
|
|
4950
|
-
return parseNumericPattern(numericPatterns.threeDigits, dateString);
|
|
4951
|
-
|
|
4952
|
-
case 4:
|
|
4953
|
-
return parseNumericPattern(numericPatterns.fourDigits, dateString);
|
|
4954
|
-
|
|
4955
|
-
default:
|
|
4956
|
-
return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), dateString);
|
|
4957
|
-
}
|
|
4958
|
-
}
|
|
4959
|
-
function parseNDigitsSigned(n, dateString) {
|
|
4960
|
-
switch (n) {
|
|
4961
|
-
case 1:
|
|
4962
|
-
return parseNumericPattern(numericPatterns.singleDigitSigned, dateString);
|
|
4963
|
-
|
|
4964
|
-
case 2:
|
|
4965
|
-
return parseNumericPattern(numericPatterns.twoDigitsSigned, dateString);
|
|
4966
|
-
|
|
4967
|
-
case 3:
|
|
4968
|
-
return parseNumericPattern(numericPatterns.threeDigitsSigned, dateString);
|
|
4969
|
-
|
|
4970
|
-
case 4:
|
|
4971
|
-
return parseNumericPattern(numericPatterns.fourDigitsSigned, dateString);
|
|
4972
|
-
|
|
4973
|
-
default:
|
|
4974
|
-
return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), dateString);
|
|
4975
|
-
}
|
|
4976
|
-
}
|
|
4977
|
-
function dayPeriodEnumToHours(dayPeriod) {
|
|
4978
|
-
switch (dayPeriod) {
|
|
4979
|
-
case 'morning':
|
|
4980
|
-
return 4;
|
|
4981
|
-
|
|
4982
|
-
case 'evening':
|
|
4983
|
-
return 17;
|
|
4984
|
-
|
|
4985
|
-
case 'pm':
|
|
4986
|
-
case 'noon':
|
|
4987
|
-
case 'afternoon':
|
|
4988
|
-
return 12;
|
|
4989
|
-
|
|
4990
|
-
case 'am':
|
|
4991
|
-
case 'midnight':
|
|
4992
|
-
case 'night':
|
|
4993
|
-
default:
|
|
4994
|
-
return 0;
|
|
4995
|
-
}
|
|
4996
|
-
}
|
|
4997
|
-
function normalizeTwoDigitYear(twoDigitYear, currentYear) {
|
|
4998
|
-
var isCommonEra = currentYear > 0; // Absolute number of the current year:
|
|
4999
|
-
// 1 -> 1 AC
|
|
5000
|
-
// 0 -> 1 BC
|
|
5001
|
-
// -1 -> 2 BC
|
|
5002
|
-
|
|
5003
|
-
var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;
|
|
5004
|
-
var result;
|
|
5005
|
-
|
|
5006
|
-
if (absCurrentYear <= 50) {
|
|
5007
|
-
result = twoDigitYear || 100;
|
|
5008
|
-
} else {
|
|
5009
|
-
var rangeEnd = absCurrentYear + 50;
|
|
5010
|
-
var rangeEndCentury = Math.floor(rangeEnd / 100) * 100;
|
|
5011
|
-
var isPreviousCentury = twoDigitYear >= rangeEnd % 100;
|
|
5012
|
-
result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);
|
|
5013
|
-
}
|
|
5014
|
-
|
|
5015
|
-
return isCommonEra ? result : 1 - result;
|
|
5016
|
-
}
|
|
5017
|
-
function isLeapYearIndex(year) {
|
|
5018
|
-
return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;
|
|
5019
|
-
}
|
|
5020
|
-
|
|
5021
|
-
function _typeof$t(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$t = function _typeof(obj) { return typeof obj; }; } else { _typeof$t = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$t(obj); }
|
|
5022
|
-
|
|
5023
|
-
function _classCallCheck$t(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5024
|
-
|
|
5025
|
-
function _defineProperties$t(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5026
|
-
|
|
5027
|
-
function _createClass$t(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$t(Constructor.prototype, protoProps); if (staticProps) _defineProperties$t(Constructor, staticProps); return Constructor; }
|
|
5028
|
-
|
|
5029
|
-
function _inherits$t(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$t(subClass, superClass); }
|
|
5030
|
-
|
|
5031
|
-
function _setPrototypeOf$t(o, p) { _setPrototypeOf$t = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$t(o, p); }
|
|
5032
|
-
|
|
5033
|
-
function _createSuper$t(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$t(); return function _createSuperInternal() { var Super = _getPrototypeOf$t(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$t(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$t(this, result); }; }
|
|
5034
|
-
|
|
5035
|
-
function _possibleConstructorReturn$t(self, call) { if (call && (_typeof$t(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$t(self); }
|
|
5036
|
-
|
|
5037
|
-
function _assertThisInitialized$t(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5038
|
-
|
|
5039
|
-
function _isNativeReflectConstruct$t() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5040
|
-
|
|
5041
|
-
function _getPrototypeOf$t(o) { _getPrototypeOf$t = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$t(o); }
|
|
5042
|
-
|
|
5043
|
-
function _defineProperty$t(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5044
|
-
// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns
|
|
5045
|
-
// | Year | y | yy | yyy | yyyy | yyyyy |
|
|
5046
|
-
// |----------|-------|----|-------|-------|-------|
|
|
5047
|
-
// | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
|
|
5048
|
-
// | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
|
|
5049
|
-
// | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
|
|
5050
|
-
// | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
|
|
5051
|
-
// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
|
|
5052
|
-
var YearParser = /*#__PURE__*/function (_Parser) {
|
|
5053
|
-
_inherits$t(YearParser, _Parser);
|
|
5054
|
-
|
|
5055
|
-
var _super = _createSuper$t(YearParser);
|
|
5056
|
-
|
|
5057
|
-
function YearParser() {
|
|
5058
|
-
var _this;
|
|
5059
|
-
|
|
5060
|
-
_classCallCheck$t(this, YearParser);
|
|
5061
|
-
|
|
5062
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5063
|
-
args[_key] = arguments[_key];
|
|
5064
|
-
}
|
|
5065
|
-
|
|
5066
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5067
|
-
|
|
5068
|
-
_defineProperty$t(_assertThisInitialized$t(_this), "priority", 130);
|
|
5069
|
-
|
|
5070
|
-
_defineProperty$t(_assertThisInitialized$t(_this), "incompatibleTokens", ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']);
|
|
5071
|
-
|
|
5072
|
-
return _this;
|
|
5073
|
-
}
|
|
5074
|
-
|
|
5075
|
-
_createClass$t(YearParser, [{
|
|
5076
|
-
key: "parse",
|
|
5077
|
-
value: function parse(dateString, token, match) {
|
|
5078
|
-
var valueCallback = function valueCallback(year) {
|
|
5079
|
-
return {
|
|
5080
|
-
year: year,
|
|
5081
|
-
isTwoDigitYear: token === 'yy'
|
|
5082
|
-
};
|
|
5083
|
-
};
|
|
5084
|
-
|
|
5085
|
-
switch (token) {
|
|
5086
|
-
case 'y':
|
|
5087
|
-
return mapValue(parseNDigits(4, dateString), valueCallback);
|
|
5088
|
-
|
|
5089
|
-
case 'yo':
|
|
5090
|
-
return mapValue(match.ordinalNumber(dateString, {
|
|
5091
|
-
unit: 'year'
|
|
5092
|
-
}), valueCallback);
|
|
5093
|
-
|
|
5094
|
-
default:
|
|
5095
|
-
return mapValue(parseNDigits(token.length, dateString), valueCallback);
|
|
5096
|
-
}
|
|
5097
|
-
}
|
|
5098
|
-
}, {
|
|
5099
|
-
key: "validate",
|
|
5100
|
-
value: function validate(_date, value) {
|
|
5101
|
-
return value.isTwoDigitYear || value.year > 0;
|
|
5102
|
-
}
|
|
5103
|
-
}, {
|
|
5104
|
-
key: "set",
|
|
5105
|
-
value: function set(date, flags, value) {
|
|
5106
|
-
var currentYear = date.getUTCFullYear();
|
|
5107
|
-
|
|
5108
|
-
if (value.isTwoDigitYear) {
|
|
5109
|
-
var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
|
|
5110
|
-
date.setUTCFullYear(normalizedTwoDigitYear, 0, 1);
|
|
5111
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5112
|
-
return date;
|
|
5113
|
-
}
|
|
5114
|
-
|
|
5115
|
-
var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
|
|
5116
|
-
date.setUTCFullYear(year, 0, 1);
|
|
5117
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5118
|
-
return date;
|
|
5119
|
-
}
|
|
5120
|
-
}]);
|
|
5121
|
-
|
|
5122
|
-
return YearParser;
|
|
5123
|
-
}(Parser);
|
|
5124
|
-
|
|
5125
|
-
function _typeof$s(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$s = function _typeof(obj) { return typeof obj; }; } else { _typeof$s = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$s(obj); }
|
|
5126
|
-
|
|
5127
|
-
function _classCallCheck$s(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5128
|
-
|
|
5129
|
-
function _defineProperties$s(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5130
|
-
|
|
5131
|
-
function _createClass$s(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$s(Constructor.prototype, protoProps); if (staticProps) _defineProperties$s(Constructor, staticProps); return Constructor; }
|
|
5132
|
-
|
|
5133
|
-
function _inherits$s(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$s(subClass, superClass); }
|
|
5134
|
-
|
|
5135
|
-
function _setPrototypeOf$s(o, p) { _setPrototypeOf$s = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$s(o, p); }
|
|
5136
|
-
|
|
5137
|
-
function _createSuper$s(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$s(); return function _createSuperInternal() { var Super = _getPrototypeOf$s(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$s(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$s(this, result); }; }
|
|
5138
|
-
|
|
5139
|
-
function _possibleConstructorReturn$s(self, call) { if (call && (_typeof$s(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$s(self); }
|
|
5140
|
-
|
|
5141
|
-
function _assertThisInitialized$s(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5142
|
-
|
|
5143
|
-
function _isNativeReflectConstruct$s() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5144
|
-
|
|
5145
|
-
function _getPrototypeOf$s(o) { _getPrototypeOf$s = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$s(o); }
|
|
5146
|
-
|
|
5147
|
-
function _defineProperty$s(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5148
|
-
// Local week-numbering year
|
|
5149
|
-
var LocalWeekYearParser = /*#__PURE__*/function (_Parser) {
|
|
5150
|
-
_inherits$s(LocalWeekYearParser, _Parser);
|
|
5151
|
-
|
|
5152
|
-
var _super = _createSuper$s(LocalWeekYearParser);
|
|
5153
|
-
|
|
5154
|
-
function LocalWeekYearParser() {
|
|
5155
|
-
var _this;
|
|
5156
|
-
|
|
5157
|
-
_classCallCheck$s(this, LocalWeekYearParser);
|
|
5158
|
-
|
|
5159
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5160
|
-
args[_key] = arguments[_key];
|
|
5161
|
-
}
|
|
5162
|
-
|
|
5163
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5164
|
-
|
|
5165
|
-
_defineProperty$s(_assertThisInitialized$s(_this), "priority", 130);
|
|
5166
|
-
|
|
5167
|
-
_defineProperty$s(_assertThisInitialized$s(_this), "incompatibleTokens", ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']);
|
|
5168
|
-
|
|
5169
|
-
return _this;
|
|
5170
|
-
}
|
|
5171
|
-
|
|
5172
|
-
_createClass$s(LocalWeekYearParser, [{
|
|
5173
|
-
key: "parse",
|
|
5174
|
-
value: function parse(dateString, token, match) {
|
|
5175
|
-
var valueCallback = function valueCallback(year) {
|
|
5176
|
-
return {
|
|
5177
|
-
year: year,
|
|
5178
|
-
isTwoDigitYear: token === 'YY'
|
|
5179
|
-
};
|
|
5180
|
-
};
|
|
5181
|
-
|
|
5182
|
-
switch (token) {
|
|
5183
|
-
case 'Y':
|
|
5184
|
-
return mapValue(parseNDigits(4, dateString), valueCallback);
|
|
5185
|
-
|
|
5186
|
-
case 'Yo':
|
|
5187
|
-
return mapValue(match.ordinalNumber(dateString, {
|
|
5188
|
-
unit: 'year'
|
|
5189
|
-
}), valueCallback);
|
|
5190
|
-
|
|
5191
|
-
default:
|
|
5192
|
-
return mapValue(parseNDigits(token.length, dateString), valueCallback);
|
|
5193
|
-
}
|
|
5194
|
-
}
|
|
5195
|
-
}, {
|
|
5196
|
-
key: "validate",
|
|
5197
|
-
value: function validate(_date, value) {
|
|
5198
|
-
return value.isTwoDigitYear || value.year > 0;
|
|
5199
|
-
}
|
|
5200
|
-
}, {
|
|
5201
|
-
key: "set",
|
|
5202
|
-
value: function set(date, flags, value, options) {
|
|
5203
|
-
var currentYear = getUTCWeekYear(date, options);
|
|
5204
|
-
|
|
5205
|
-
if (value.isTwoDigitYear) {
|
|
5206
|
-
var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
|
|
5207
|
-
date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);
|
|
5208
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5209
|
-
return startOfUTCWeek(date, options);
|
|
5210
|
-
}
|
|
5211
|
-
|
|
5212
|
-
var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
|
|
5213
|
-
date.setUTCFullYear(year, 0, options.firstWeekContainsDate);
|
|
5214
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5215
|
-
return startOfUTCWeek(date, options);
|
|
5216
|
-
}
|
|
5217
|
-
}]);
|
|
5218
|
-
|
|
5219
|
-
return LocalWeekYearParser;
|
|
5220
|
-
}(Parser);
|
|
5221
|
-
|
|
5222
|
-
function _typeof$r(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$r = function _typeof(obj) { return typeof obj; }; } else { _typeof$r = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$r(obj); }
|
|
5223
|
-
|
|
5224
|
-
function _classCallCheck$r(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5225
|
-
|
|
5226
|
-
function _defineProperties$r(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5227
|
-
|
|
5228
|
-
function _createClass$r(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$r(Constructor.prototype, protoProps); if (staticProps) _defineProperties$r(Constructor, staticProps); return Constructor; }
|
|
5229
|
-
|
|
5230
|
-
function _inherits$r(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$r(subClass, superClass); }
|
|
5231
|
-
|
|
5232
|
-
function _setPrototypeOf$r(o, p) { _setPrototypeOf$r = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$r(o, p); }
|
|
5233
|
-
|
|
5234
|
-
function _createSuper$r(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$r(); return function _createSuperInternal() { var Super = _getPrototypeOf$r(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$r(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$r(this, result); }; }
|
|
5235
|
-
|
|
5236
|
-
function _possibleConstructorReturn$r(self, call) { if (call && (_typeof$r(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$r(self); }
|
|
5237
|
-
|
|
5238
|
-
function _assertThisInitialized$r(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5239
|
-
|
|
5240
|
-
function _isNativeReflectConstruct$r() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5241
|
-
|
|
5242
|
-
function _getPrototypeOf$r(o) { _getPrototypeOf$r = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$r(o); }
|
|
5243
|
-
|
|
5244
|
-
function _defineProperty$r(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5245
|
-
|
|
5246
|
-
var ISOWeekYearParser = /*#__PURE__*/function (_Parser) {
|
|
5247
|
-
_inherits$r(ISOWeekYearParser, _Parser);
|
|
5248
|
-
|
|
5249
|
-
var _super = _createSuper$r(ISOWeekYearParser);
|
|
5250
|
-
|
|
5251
|
-
function ISOWeekYearParser() {
|
|
5252
|
-
var _this;
|
|
5253
|
-
|
|
5254
|
-
_classCallCheck$r(this, ISOWeekYearParser);
|
|
5255
|
-
|
|
5256
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5257
|
-
args[_key] = arguments[_key];
|
|
5258
|
-
}
|
|
5259
|
-
|
|
5260
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5261
|
-
|
|
5262
|
-
_defineProperty$r(_assertThisInitialized$r(_this), "priority", 130);
|
|
5263
|
-
|
|
5264
|
-
_defineProperty$r(_assertThisInitialized$r(_this), "incompatibleTokens", ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']);
|
|
5265
|
-
|
|
5266
|
-
return _this;
|
|
5267
|
-
}
|
|
5268
|
-
|
|
5269
|
-
_createClass$r(ISOWeekYearParser, [{
|
|
5270
|
-
key: "parse",
|
|
5271
|
-
value: function parse(dateString, token) {
|
|
5272
|
-
if (token === 'R') {
|
|
5273
|
-
return parseNDigitsSigned(4, dateString);
|
|
5274
|
-
}
|
|
5275
|
-
|
|
5276
|
-
return parseNDigitsSigned(token.length, dateString);
|
|
5277
|
-
}
|
|
5278
|
-
}, {
|
|
5279
|
-
key: "set",
|
|
5280
|
-
value: function set(_date, _flags, value) {
|
|
5281
|
-
var firstWeekOfYear = new Date(0);
|
|
5282
|
-
firstWeekOfYear.setUTCFullYear(value, 0, 4);
|
|
5283
|
-
firstWeekOfYear.setUTCHours(0, 0, 0, 0);
|
|
5284
|
-
return startOfUTCISOWeek(firstWeekOfYear);
|
|
5285
|
-
}
|
|
5286
|
-
}]);
|
|
5287
|
-
|
|
5288
|
-
return ISOWeekYearParser;
|
|
5289
|
-
}(Parser);
|
|
5290
|
-
|
|
5291
|
-
function _typeof$q(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$q = function _typeof(obj) { return typeof obj; }; } else { _typeof$q = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$q(obj); }
|
|
5292
|
-
|
|
5293
|
-
function _classCallCheck$q(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5294
|
-
|
|
5295
|
-
function _defineProperties$q(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5296
|
-
|
|
5297
|
-
function _createClass$q(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$q(Constructor.prototype, protoProps); if (staticProps) _defineProperties$q(Constructor, staticProps); return Constructor; }
|
|
5298
|
-
|
|
5299
|
-
function _inherits$q(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$q(subClass, superClass); }
|
|
5300
|
-
|
|
5301
|
-
function _setPrototypeOf$q(o, p) { _setPrototypeOf$q = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$q(o, p); }
|
|
5302
|
-
|
|
5303
|
-
function _createSuper$q(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$q(); return function _createSuperInternal() { var Super = _getPrototypeOf$q(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$q(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$q(this, result); }; }
|
|
5304
|
-
|
|
5305
|
-
function _possibleConstructorReturn$q(self, call) { if (call && (_typeof$q(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$q(self); }
|
|
5306
|
-
|
|
5307
|
-
function _assertThisInitialized$q(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5308
|
-
|
|
5309
|
-
function _isNativeReflectConstruct$q() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5310
|
-
|
|
5311
|
-
function _getPrototypeOf$q(o) { _getPrototypeOf$q = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$q(o); }
|
|
5312
|
-
|
|
5313
|
-
function _defineProperty$q(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5314
|
-
var ExtendedYearParser = /*#__PURE__*/function (_Parser) {
|
|
5315
|
-
_inherits$q(ExtendedYearParser, _Parser);
|
|
5316
|
-
|
|
5317
|
-
var _super = _createSuper$q(ExtendedYearParser);
|
|
5318
|
-
|
|
5319
|
-
function ExtendedYearParser() {
|
|
5320
|
-
var _this;
|
|
5321
|
-
|
|
5322
|
-
_classCallCheck$q(this, ExtendedYearParser);
|
|
5323
|
-
|
|
5324
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5325
|
-
args[_key] = arguments[_key];
|
|
5326
|
-
}
|
|
5327
|
-
|
|
5328
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5329
|
-
|
|
5330
|
-
_defineProperty$q(_assertThisInitialized$q(_this), "priority", 130);
|
|
5331
|
-
|
|
5332
|
-
_defineProperty$q(_assertThisInitialized$q(_this), "incompatibleTokens", ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']);
|
|
5333
|
-
|
|
5334
|
-
return _this;
|
|
5335
|
-
}
|
|
5336
|
-
|
|
5337
|
-
_createClass$q(ExtendedYearParser, [{
|
|
5338
|
-
key: "parse",
|
|
5339
|
-
value: function parse(dateString, token) {
|
|
5340
|
-
if (token === 'u') {
|
|
5341
|
-
return parseNDigitsSigned(4, dateString);
|
|
5342
|
-
}
|
|
5343
|
-
|
|
5344
|
-
return parseNDigitsSigned(token.length, dateString);
|
|
5345
|
-
}
|
|
5346
|
-
}, {
|
|
5347
|
-
key: "set",
|
|
5348
|
-
value: function set(date, _flags, value) {
|
|
5349
|
-
date.setUTCFullYear(value, 0, 1);
|
|
5350
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5351
|
-
return date;
|
|
5352
|
-
}
|
|
5353
|
-
}]);
|
|
5354
|
-
|
|
5355
|
-
return ExtendedYearParser;
|
|
5356
|
-
}(Parser);
|
|
5357
|
-
|
|
5358
|
-
function _typeof$p(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$p = function _typeof(obj) { return typeof obj; }; } else { _typeof$p = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$p(obj); }
|
|
5359
|
-
|
|
5360
|
-
function _classCallCheck$p(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5361
|
-
|
|
5362
|
-
function _defineProperties$p(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5363
|
-
|
|
5364
|
-
function _createClass$p(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$p(Constructor.prototype, protoProps); if (staticProps) _defineProperties$p(Constructor, staticProps); return Constructor; }
|
|
5365
|
-
|
|
5366
|
-
function _inherits$p(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$p(subClass, superClass); }
|
|
5367
|
-
|
|
5368
|
-
function _setPrototypeOf$p(o, p) { _setPrototypeOf$p = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$p(o, p); }
|
|
5369
|
-
|
|
5370
|
-
function _createSuper$p(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$p(); return function _createSuperInternal() { var Super = _getPrototypeOf$p(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$p(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$p(this, result); }; }
|
|
5371
|
-
|
|
5372
|
-
function _possibleConstructorReturn$p(self, call) { if (call && (_typeof$p(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$p(self); }
|
|
5373
|
-
|
|
5374
|
-
function _assertThisInitialized$p(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5375
|
-
|
|
5376
|
-
function _isNativeReflectConstruct$p() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5377
|
-
|
|
5378
|
-
function _getPrototypeOf$p(o) { _getPrototypeOf$p = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$p(o); }
|
|
5379
|
-
|
|
5380
|
-
function _defineProperty$p(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5381
|
-
var QuarterParser = /*#__PURE__*/function (_Parser) {
|
|
5382
|
-
_inherits$p(QuarterParser, _Parser);
|
|
5383
|
-
|
|
5384
|
-
var _super = _createSuper$p(QuarterParser);
|
|
5385
|
-
|
|
5386
|
-
function QuarterParser() {
|
|
5387
|
-
var _this;
|
|
5388
|
-
|
|
5389
|
-
_classCallCheck$p(this, QuarterParser);
|
|
5390
|
-
|
|
5391
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5392
|
-
args[_key] = arguments[_key];
|
|
5393
|
-
}
|
|
5394
|
-
|
|
5395
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5396
|
-
|
|
5397
|
-
_defineProperty$p(_assertThisInitialized$p(_this), "priority", 120);
|
|
5398
|
-
|
|
5399
|
-
_defineProperty$p(_assertThisInitialized$p(_this), "incompatibleTokens", ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']);
|
|
5400
|
-
|
|
5401
|
-
return _this;
|
|
5402
|
-
}
|
|
5403
|
-
|
|
5404
|
-
_createClass$p(QuarterParser, [{
|
|
5405
|
-
key: "parse",
|
|
5406
|
-
value: function parse(dateString, token, match) {
|
|
5407
|
-
switch (token) {
|
|
5408
|
-
// 1, 2, 3, 4
|
|
5409
|
-
case 'Q':
|
|
5410
|
-
case 'QQ':
|
|
5411
|
-
// 01, 02, 03, 04
|
|
5412
|
-
return parseNDigits(token.length, dateString);
|
|
5413
|
-
// 1st, 2nd, 3rd, 4th
|
|
5414
|
-
|
|
5415
|
-
case 'Qo':
|
|
5416
|
-
return match.ordinalNumber(dateString, {
|
|
5417
|
-
unit: 'quarter'
|
|
5418
|
-
});
|
|
5419
|
-
// Q1, Q2, Q3, Q4
|
|
5420
|
-
|
|
5421
|
-
case 'QQQ':
|
|
5422
|
-
return match.quarter(dateString, {
|
|
5423
|
-
width: 'abbreviated',
|
|
5424
|
-
context: 'formatting'
|
|
5425
|
-
}) || match.quarter(dateString, {
|
|
5426
|
-
width: 'narrow',
|
|
5427
|
-
context: 'formatting'
|
|
5428
|
-
});
|
|
5429
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
5430
|
-
|
|
5431
|
-
case 'QQQQQ':
|
|
5432
|
-
return match.quarter(dateString, {
|
|
5433
|
-
width: 'narrow',
|
|
5434
|
-
context: 'formatting'
|
|
5435
|
-
});
|
|
5436
|
-
// 1st quarter, 2nd quarter, ...
|
|
5437
|
-
|
|
5438
|
-
case 'QQQQ':
|
|
5439
|
-
default:
|
|
5440
|
-
return match.quarter(dateString, {
|
|
5441
|
-
width: 'wide',
|
|
5442
|
-
context: 'formatting'
|
|
5443
|
-
}) || match.quarter(dateString, {
|
|
5444
|
-
width: 'abbreviated',
|
|
5445
|
-
context: 'formatting'
|
|
5446
|
-
}) || match.quarter(dateString, {
|
|
5447
|
-
width: 'narrow',
|
|
5448
|
-
context: 'formatting'
|
|
5449
|
-
});
|
|
5450
|
-
}
|
|
5451
|
-
}
|
|
5452
|
-
}, {
|
|
5453
|
-
key: "validate",
|
|
5454
|
-
value: function validate(_date, value) {
|
|
5455
|
-
return value >= 1 && value <= 4;
|
|
5456
|
-
}
|
|
5457
|
-
}, {
|
|
5458
|
-
key: "set",
|
|
5459
|
-
value: function set(date, _flags, value) {
|
|
5460
|
-
date.setUTCMonth((value - 1) * 3, 1);
|
|
5461
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5462
|
-
return date;
|
|
5463
|
-
}
|
|
5464
|
-
}]);
|
|
5465
|
-
|
|
5466
|
-
return QuarterParser;
|
|
5467
|
-
}(Parser);
|
|
5468
|
-
|
|
5469
|
-
function _typeof$o(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$o = function _typeof(obj) { return typeof obj; }; } else { _typeof$o = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$o(obj); }
|
|
5470
|
-
|
|
5471
|
-
function _classCallCheck$o(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5472
|
-
|
|
5473
|
-
function _defineProperties$o(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5474
|
-
|
|
5475
|
-
function _createClass$o(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$o(Constructor.prototype, protoProps); if (staticProps) _defineProperties$o(Constructor, staticProps); return Constructor; }
|
|
5476
|
-
|
|
5477
|
-
function _inherits$o(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$o(subClass, superClass); }
|
|
5478
|
-
|
|
5479
|
-
function _setPrototypeOf$o(o, p) { _setPrototypeOf$o = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$o(o, p); }
|
|
5480
|
-
|
|
5481
|
-
function _createSuper$o(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$o(); return function _createSuperInternal() { var Super = _getPrototypeOf$o(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$o(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$o(this, result); }; }
|
|
5482
|
-
|
|
5483
|
-
function _possibleConstructorReturn$o(self, call) { if (call && (_typeof$o(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$o(self); }
|
|
5484
|
-
|
|
5485
|
-
function _assertThisInitialized$o(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5486
|
-
|
|
5487
|
-
function _isNativeReflectConstruct$o() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5488
|
-
|
|
5489
|
-
function _getPrototypeOf$o(o) { _getPrototypeOf$o = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$o(o); }
|
|
5490
|
-
|
|
5491
|
-
function _defineProperty$o(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5492
|
-
var StandAloneQuarterParser = /*#__PURE__*/function (_Parser) {
|
|
5493
|
-
_inherits$o(StandAloneQuarterParser, _Parser);
|
|
5494
|
-
|
|
5495
|
-
var _super = _createSuper$o(StandAloneQuarterParser);
|
|
5496
|
-
|
|
5497
|
-
function StandAloneQuarterParser() {
|
|
5498
|
-
var _this;
|
|
5499
|
-
|
|
5500
|
-
_classCallCheck$o(this, StandAloneQuarterParser);
|
|
5501
|
-
|
|
5502
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5503
|
-
args[_key] = arguments[_key];
|
|
5504
|
-
}
|
|
5505
|
-
|
|
5506
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5507
|
-
|
|
5508
|
-
_defineProperty$o(_assertThisInitialized$o(_this), "priority", 120);
|
|
5509
|
-
|
|
5510
|
-
_defineProperty$o(_assertThisInitialized$o(_this), "incompatibleTokens", ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']);
|
|
5511
|
-
|
|
5512
|
-
return _this;
|
|
5513
|
-
}
|
|
5514
|
-
|
|
5515
|
-
_createClass$o(StandAloneQuarterParser, [{
|
|
5516
|
-
key: "parse",
|
|
5517
|
-
value: function parse(dateString, token, match) {
|
|
5518
|
-
switch (token) {
|
|
5519
|
-
// 1, 2, 3, 4
|
|
5520
|
-
case 'q':
|
|
5521
|
-
case 'qq':
|
|
5522
|
-
// 01, 02, 03, 04
|
|
5523
|
-
return parseNDigits(token.length, dateString);
|
|
5524
|
-
// 1st, 2nd, 3rd, 4th
|
|
5525
|
-
|
|
5526
|
-
case 'qo':
|
|
5527
|
-
return match.ordinalNumber(dateString, {
|
|
5528
|
-
unit: 'quarter'
|
|
5529
|
-
});
|
|
5530
|
-
// Q1, Q2, Q3, Q4
|
|
5531
|
-
|
|
5532
|
-
case 'qqq':
|
|
5533
|
-
return match.quarter(dateString, {
|
|
5534
|
-
width: 'abbreviated',
|
|
5535
|
-
context: 'standalone'
|
|
5536
|
-
}) || match.quarter(dateString, {
|
|
5537
|
-
width: 'narrow',
|
|
5538
|
-
context: 'standalone'
|
|
5539
|
-
});
|
|
5540
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
5541
|
-
|
|
5542
|
-
case 'qqqqq':
|
|
5543
|
-
return match.quarter(dateString, {
|
|
5544
|
-
width: 'narrow',
|
|
5545
|
-
context: 'standalone'
|
|
5546
|
-
});
|
|
5547
|
-
// 1st quarter, 2nd quarter, ...
|
|
5548
|
-
|
|
5549
|
-
case 'qqqq':
|
|
5550
|
-
default:
|
|
5551
|
-
return match.quarter(dateString, {
|
|
5552
|
-
width: 'wide',
|
|
5553
|
-
context: 'standalone'
|
|
5554
|
-
}) || match.quarter(dateString, {
|
|
5555
|
-
width: 'abbreviated',
|
|
5556
|
-
context: 'standalone'
|
|
5557
|
-
}) || match.quarter(dateString, {
|
|
5558
|
-
width: 'narrow',
|
|
5559
|
-
context: 'standalone'
|
|
5560
|
-
});
|
|
5561
|
-
}
|
|
5562
|
-
}
|
|
5563
|
-
}, {
|
|
5564
|
-
key: "validate",
|
|
5565
|
-
value: function validate(_date, value) {
|
|
5566
|
-
return value >= 1 && value <= 4;
|
|
5567
|
-
}
|
|
5568
|
-
}, {
|
|
5569
|
-
key: "set",
|
|
5570
|
-
value: function set(date, _flags, value) {
|
|
5571
|
-
date.setUTCMonth((value - 1) * 3, 1);
|
|
5572
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5573
|
-
return date;
|
|
5574
|
-
}
|
|
5575
|
-
}]);
|
|
5576
|
-
|
|
5577
|
-
return StandAloneQuarterParser;
|
|
5578
|
-
}(Parser);
|
|
5579
|
-
|
|
5580
|
-
function _typeof$n(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$n = function _typeof(obj) { return typeof obj; }; } else { _typeof$n = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$n(obj); }
|
|
5581
|
-
|
|
5582
|
-
function _classCallCheck$n(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5583
|
-
|
|
5584
|
-
function _defineProperties$n(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5585
|
-
|
|
5586
|
-
function _createClass$n(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$n(Constructor.prototype, protoProps); if (staticProps) _defineProperties$n(Constructor, staticProps); return Constructor; }
|
|
5587
|
-
|
|
5588
|
-
function _inherits$n(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$n(subClass, superClass); }
|
|
5589
|
-
|
|
5590
|
-
function _setPrototypeOf$n(o, p) { _setPrototypeOf$n = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$n(o, p); }
|
|
5591
|
-
|
|
5592
|
-
function _createSuper$n(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$n(); return function _createSuperInternal() { var Super = _getPrototypeOf$n(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$n(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$n(this, result); }; }
|
|
5593
|
-
|
|
5594
|
-
function _possibleConstructorReturn$n(self, call) { if (call && (_typeof$n(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$n(self); }
|
|
5595
|
-
|
|
5596
|
-
function _assertThisInitialized$n(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5597
|
-
|
|
5598
|
-
function _isNativeReflectConstruct$n() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5599
|
-
|
|
5600
|
-
function _getPrototypeOf$n(o) { _getPrototypeOf$n = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$n(o); }
|
|
5601
|
-
|
|
5602
|
-
function _defineProperty$n(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5603
|
-
var MonthParser = /*#__PURE__*/function (_Parser) {
|
|
5604
|
-
_inherits$n(MonthParser, _Parser);
|
|
5605
|
-
|
|
5606
|
-
var _super = _createSuper$n(MonthParser);
|
|
5607
|
-
|
|
5608
|
-
function MonthParser() {
|
|
5609
|
-
var _this;
|
|
5610
|
-
|
|
5611
|
-
_classCallCheck$n(this, MonthParser);
|
|
5612
|
-
|
|
5613
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5614
|
-
args[_key] = arguments[_key];
|
|
5615
|
-
}
|
|
5616
|
-
|
|
5617
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5618
|
-
|
|
5619
|
-
_defineProperty$n(_assertThisInitialized$n(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
|
|
5620
|
-
|
|
5621
|
-
_defineProperty$n(_assertThisInitialized$n(_this), "priority", 110);
|
|
5622
|
-
|
|
5623
|
-
return _this;
|
|
5624
|
-
}
|
|
5625
|
-
|
|
5626
|
-
_createClass$n(MonthParser, [{
|
|
5627
|
-
key: "parse",
|
|
5628
|
-
value: function parse(dateString, token, match) {
|
|
5629
|
-
var valueCallback = function valueCallback(value) {
|
|
5630
|
-
return value - 1;
|
|
5631
|
-
};
|
|
5632
|
-
|
|
5633
|
-
switch (token) {
|
|
5634
|
-
// 1, 2, ..., 12
|
|
5635
|
-
case 'M':
|
|
5636
|
-
return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback);
|
|
5637
|
-
// 01, 02, ..., 12
|
|
5638
|
-
|
|
5639
|
-
case 'MM':
|
|
5640
|
-
return mapValue(parseNDigits(2, dateString), valueCallback);
|
|
5641
|
-
// 1st, 2nd, ..., 12th
|
|
5642
|
-
|
|
5643
|
-
case 'Mo':
|
|
5644
|
-
return mapValue(match.ordinalNumber(dateString, {
|
|
5645
|
-
unit: 'month'
|
|
5646
|
-
}), valueCallback);
|
|
5647
|
-
// Jan, Feb, ..., Dec
|
|
5648
|
-
|
|
5649
|
-
case 'MMM':
|
|
5650
|
-
return match.month(dateString, {
|
|
5651
|
-
width: 'abbreviated',
|
|
5652
|
-
context: 'formatting'
|
|
5653
|
-
}) || match.month(dateString, {
|
|
5654
|
-
width: 'narrow',
|
|
5655
|
-
context: 'formatting'
|
|
5656
|
-
});
|
|
5657
|
-
// J, F, ..., D
|
|
5658
|
-
|
|
5659
|
-
case 'MMMMM':
|
|
5660
|
-
return match.month(dateString, {
|
|
5661
|
-
width: 'narrow',
|
|
5662
|
-
context: 'formatting'
|
|
5663
|
-
});
|
|
5664
|
-
// January, February, ..., December
|
|
5665
|
-
|
|
5666
|
-
case 'MMMM':
|
|
5667
|
-
default:
|
|
5668
|
-
return match.month(dateString, {
|
|
5669
|
-
width: 'wide',
|
|
5670
|
-
context: 'formatting'
|
|
5671
|
-
}) || match.month(dateString, {
|
|
5672
|
-
width: 'abbreviated',
|
|
5673
|
-
context: 'formatting'
|
|
5674
|
-
}) || match.month(dateString, {
|
|
5675
|
-
width: 'narrow',
|
|
5676
|
-
context: 'formatting'
|
|
5677
|
-
});
|
|
5678
|
-
}
|
|
5679
|
-
}
|
|
5680
|
-
}, {
|
|
5681
|
-
key: "validate",
|
|
5682
|
-
value: function validate(_date, value) {
|
|
5683
|
-
return value >= 0 && value <= 11;
|
|
5684
|
-
}
|
|
5685
|
-
}, {
|
|
5686
|
-
key: "set",
|
|
5687
|
-
value: function set(date, _flags, value) {
|
|
5688
|
-
date.setUTCMonth(value, 1);
|
|
5689
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5690
|
-
return date;
|
|
5691
|
-
}
|
|
5692
|
-
}]);
|
|
5693
|
-
|
|
5694
|
-
return MonthParser;
|
|
5695
|
-
}(Parser);
|
|
5696
|
-
|
|
5697
|
-
function _typeof$m(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$m = function _typeof(obj) { return typeof obj; }; } else { _typeof$m = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$m(obj); }
|
|
5698
|
-
|
|
5699
|
-
function _classCallCheck$m(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5700
|
-
|
|
5701
|
-
function _defineProperties$m(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5702
|
-
|
|
5703
|
-
function _createClass$m(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$m(Constructor.prototype, protoProps); if (staticProps) _defineProperties$m(Constructor, staticProps); return Constructor; }
|
|
5704
|
-
|
|
5705
|
-
function _inherits$m(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$m(subClass, superClass); }
|
|
5706
|
-
|
|
5707
|
-
function _setPrototypeOf$m(o, p) { _setPrototypeOf$m = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$m(o, p); }
|
|
5708
|
-
|
|
5709
|
-
function _createSuper$m(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$m(); return function _createSuperInternal() { var Super = _getPrototypeOf$m(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$m(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$m(this, result); }; }
|
|
5710
|
-
|
|
5711
|
-
function _possibleConstructorReturn$m(self, call) { if (call && (_typeof$m(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$m(self); }
|
|
5712
|
-
|
|
5713
|
-
function _assertThisInitialized$m(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5714
|
-
|
|
5715
|
-
function _isNativeReflectConstruct$m() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5716
|
-
|
|
5717
|
-
function _getPrototypeOf$m(o) { _getPrototypeOf$m = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$m(o); }
|
|
5718
|
-
|
|
5719
|
-
function _defineProperty$m(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5720
|
-
var StandAloneMonthParser = /*#__PURE__*/function (_Parser) {
|
|
5721
|
-
_inherits$m(StandAloneMonthParser, _Parser);
|
|
5722
|
-
|
|
5723
|
-
var _super = _createSuper$m(StandAloneMonthParser);
|
|
5724
|
-
|
|
5725
|
-
function StandAloneMonthParser() {
|
|
5726
|
-
var _this;
|
|
5727
|
-
|
|
5728
|
-
_classCallCheck$m(this, StandAloneMonthParser);
|
|
5729
|
-
|
|
5730
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5731
|
-
args[_key] = arguments[_key];
|
|
5732
|
-
}
|
|
5733
|
-
|
|
5734
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5735
|
-
|
|
5736
|
-
_defineProperty$m(_assertThisInitialized$m(_this), "priority", 110);
|
|
5737
|
-
|
|
5738
|
-
_defineProperty$m(_assertThisInitialized$m(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
|
|
5739
|
-
|
|
5740
|
-
return _this;
|
|
5741
|
-
}
|
|
5742
|
-
|
|
5743
|
-
_createClass$m(StandAloneMonthParser, [{
|
|
5744
|
-
key: "parse",
|
|
5745
|
-
value: function parse(dateString, token, match) {
|
|
5746
|
-
var valueCallback = function valueCallback(value) {
|
|
5747
|
-
return value - 1;
|
|
5748
|
-
};
|
|
5749
|
-
|
|
5750
|
-
switch (token) {
|
|
5751
|
-
// 1, 2, ..., 12
|
|
5752
|
-
case 'L':
|
|
5753
|
-
return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback);
|
|
5754
|
-
// 01, 02, ..., 12
|
|
5755
|
-
|
|
5756
|
-
case 'LL':
|
|
5757
|
-
return mapValue(parseNDigits(2, dateString), valueCallback);
|
|
5758
|
-
// 1st, 2nd, ..., 12th
|
|
5759
|
-
|
|
5760
|
-
case 'Lo':
|
|
5761
|
-
return mapValue(match.ordinalNumber(dateString, {
|
|
5762
|
-
unit: 'month'
|
|
5763
|
-
}), valueCallback);
|
|
5764
|
-
// Jan, Feb, ..., Dec
|
|
5765
|
-
|
|
5766
|
-
case 'LLL':
|
|
5767
|
-
return match.month(dateString, {
|
|
5768
|
-
width: 'abbreviated',
|
|
5769
|
-
context: 'standalone'
|
|
5770
|
-
}) || match.month(dateString, {
|
|
5771
|
-
width: 'narrow',
|
|
5772
|
-
context: 'standalone'
|
|
5773
|
-
});
|
|
5774
|
-
// J, F, ..., D
|
|
5775
|
-
|
|
5776
|
-
case 'LLLLL':
|
|
5777
|
-
return match.month(dateString, {
|
|
5778
|
-
width: 'narrow',
|
|
5779
|
-
context: 'standalone'
|
|
5780
|
-
});
|
|
5781
|
-
// January, February, ..., December
|
|
5782
|
-
|
|
5783
|
-
case 'LLLL':
|
|
5784
|
-
default:
|
|
5785
|
-
return match.month(dateString, {
|
|
5786
|
-
width: 'wide',
|
|
5787
|
-
context: 'standalone'
|
|
5788
|
-
}) || match.month(dateString, {
|
|
5789
|
-
width: 'abbreviated',
|
|
5790
|
-
context: 'standalone'
|
|
5791
|
-
}) || match.month(dateString, {
|
|
5792
|
-
width: 'narrow',
|
|
5793
|
-
context: 'standalone'
|
|
5794
|
-
});
|
|
5795
|
-
}
|
|
5796
|
-
}
|
|
5797
|
-
}, {
|
|
5798
|
-
key: "validate",
|
|
5799
|
-
value: function validate(_date, value) {
|
|
5800
|
-
return value >= 0 && value <= 11;
|
|
5801
|
-
}
|
|
5802
|
-
}, {
|
|
5803
|
-
key: "set",
|
|
5804
|
-
value: function set(date, _flags, value) {
|
|
5805
|
-
date.setUTCMonth(value, 1);
|
|
5806
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5807
|
-
return date;
|
|
5808
|
-
}
|
|
5809
|
-
}]);
|
|
5810
|
-
|
|
5811
|
-
return StandAloneMonthParser;
|
|
5812
|
-
}(Parser);
|
|
5813
|
-
|
|
5814
|
-
function setUTCWeek(dirtyDate, dirtyWeek, options) {
|
|
5815
|
-
requiredArgs(2, arguments);
|
|
5816
|
-
var date = toDate(dirtyDate);
|
|
5817
|
-
var week = toInteger(dirtyWeek);
|
|
5818
|
-
var diff = getUTCWeek(date, options) - week;
|
|
5819
|
-
date.setUTCDate(date.getUTCDate() - diff * 7);
|
|
5820
|
-
return date;
|
|
5821
|
-
}
|
|
5822
|
-
|
|
5823
|
-
function _typeof$l(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$l = function _typeof(obj) { return typeof obj; }; } else { _typeof$l = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$l(obj); }
|
|
5824
|
-
|
|
5825
|
-
function _classCallCheck$l(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5826
|
-
|
|
5827
|
-
function _defineProperties$l(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5828
|
-
|
|
5829
|
-
function _createClass$l(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$l(Constructor.prototype, protoProps); if (staticProps) _defineProperties$l(Constructor, staticProps); return Constructor; }
|
|
5830
|
-
|
|
5831
|
-
function _inherits$l(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$l(subClass, superClass); }
|
|
5832
|
-
|
|
5833
|
-
function _setPrototypeOf$l(o, p) { _setPrototypeOf$l = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$l(o, p); }
|
|
5834
|
-
|
|
5835
|
-
function _createSuper$l(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$l(); return function _createSuperInternal() { var Super = _getPrototypeOf$l(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$l(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$l(this, result); }; }
|
|
5836
|
-
|
|
5837
|
-
function _possibleConstructorReturn$l(self, call) { if (call && (_typeof$l(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$l(self); }
|
|
5838
|
-
|
|
5839
|
-
function _assertThisInitialized$l(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5840
|
-
|
|
5841
|
-
function _isNativeReflectConstruct$l() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5842
|
-
|
|
5843
|
-
function _getPrototypeOf$l(o) { _getPrototypeOf$l = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$l(o); }
|
|
5844
|
-
|
|
5845
|
-
function _defineProperty$l(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5846
|
-
|
|
5847
|
-
var LocalWeekParser = /*#__PURE__*/function (_Parser) {
|
|
5848
|
-
_inherits$l(LocalWeekParser, _Parser);
|
|
5849
|
-
|
|
5850
|
-
var _super = _createSuper$l(LocalWeekParser);
|
|
5851
|
-
|
|
5852
|
-
function LocalWeekParser() {
|
|
5853
|
-
var _this;
|
|
5854
|
-
|
|
5855
|
-
_classCallCheck$l(this, LocalWeekParser);
|
|
5856
|
-
|
|
5857
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5858
|
-
args[_key] = arguments[_key];
|
|
5859
|
-
}
|
|
5860
|
-
|
|
5861
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5862
|
-
|
|
5863
|
-
_defineProperty$l(_assertThisInitialized$l(_this), "priority", 100);
|
|
5864
|
-
|
|
5865
|
-
_defineProperty$l(_assertThisInitialized$l(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']);
|
|
5866
|
-
|
|
5867
|
-
return _this;
|
|
5868
|
-
}
|
|
5869
|
-
|
|
5870
|
-
_createClass$l(LocalWeekParser, [{
|
|
5871
|
-
key: "parse",
|
|
5872
|
-
value: function parse(dateString, token, match) {
|
|
5873
|
-
switch (token) {
|
|
5874
|
-
case 'w':
|
|
5875
|
-
return parseNumericPattern(numericPatterns.week, dateString);
|
|
5876
|
-
|
|
5877
|
-
case 'wo':
|
|
5878
|
-
return match.ordinalNumber(dateString, {
|
|
5879
|
-
unit: 'week'
|
|
5880
|
-
});
|
|
5881
|
-
|
|
5882
|
-
default:
|
|
5883
|
-
return parseNDigits(token.length, dateString);
|
|
5884
|
-
}
|
|
5885
|
-
}
|
|
5886
|
-
}, {
|
|
5887
|
-
key: "validate",
|
|
5888
|
-
value: function validate(_date, value) {
|
|
5889
|
-
return value >= 1 && value <= 53;
|
|
5890
|
-
}
|
|
5891
|
-
}, {
|
|
5892
|
-
key: "set",
|
|
5893
|
-
value: function set(date, _flags, value, options) {
|
|
5894
|
-
return startOfUTCWeek(setUTCWeek(date, value, options), options);
|
|
5895
|
-
}
|
|
5896
|
-
}]);
|
|
5897
|
-
|
|
5898
|
-
return LocalWeekParser;
|
|
5899
|
-
}(Parser);
|
|
5900
|
-
|
|
5901
|
-
function setUTCISOWeek(dirtyDate, dirtyISOWeek) {
|
|
5902
|
-
requiredArgs(2, arguments);
|
|
5903
|
-
var date = toDate(dirtyDate);
|
|
5904
|
-
var isoWeek = toInteger(dirtyISOWeek);
|
|
5905
|
-
var diff = getUTCISOWeek(date) - isoWeek;
|
|
5906
|
-
date.setUTCDate(date.getUTCDate() - diff * 7);
|
|
5907
|
-
return date;
|
|
5908
|
-
}
|
|
5909
|
-
|
|
5910
|
-
function _typeof$k(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$k = function _typeof(obj) { return typeof obj; }; } else { _typeof$k = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$k(obj); }
|
|
5911
|
-
|
|
5912
|
-
function _classCallCheck$k(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5913
|
-
|
|
5914
|
-
function _defineProperties$k(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5915
|
-
|
|
5916
|
-
function _createClass$k(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$k(Constructor.prototype, protoProps); if (staticProps) _defineProperties$k(Constructor, staticProps); return Constructor; }
|
|
5917
|
-
|
|
5918
|
-
function _inherits$k(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$k(subClass, superClass); }
|
|
5919
|
-
|
|
5920
|
-
function _setPrototypeOf$k(o, p) { _setPrototypeOf$k = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$k(o, p); }
|
|
5921
|
-
|
|
5922
|
-
function _createSuper$k(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$k(); return function _createSuperInternal() { var Super = _getPrototypeOf$k(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$k(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$k(this, result); }; }
|
|
5923
|
-
|
|
5924
|
-
function _possibleConstructorReturn$k(self, call) { if (call && (_typeof$k(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$k(self); }
|
|
5925
|
-
|
|
5926
|
-
function _assertThisInitialized$k(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5927
|
-
|
|
5928
|
-
function _isNativeReflectConstruct$k() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5929
|
-
|
|
5930
|
-
function _getPrototypeOf$k(o) { _getPrototypeOf$k = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$k(o); }
|
|
5931
|
-
|
|
5932
|
-
function _defineProperty$k(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5933
|
-
|
|
5934
|
-
var ISOWeekParser = /*#__PURE__*/function (_Parser) {
|
|
5935
|
-
_inherits$k(ISOWeekParser, _Parser);
|
|
5936
|
-
|
|
5937
|
-
var _super = _createSuper$k(ISOWeekParser);
|
|
5938
|
-
|
|
5939
|
-
function ISOWeekParser() {
|
|
5940
|
-
var _this;
|
|
5941
|
-
|
|
5942
|
-
_classCallCheck$k(this, ISOWeekParser);
|
|
5943
|
-
|
|
5944
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5945
|
-
args[_key] = arguments[_key];
|
|
5946
|
-
}
|
|
5947
|
-
|
|
5948
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
5949
|
-
|
|
5950
|
-
_defineProperty$k(_assertThisInitialized$k(_this), "priority", 100);
|
|
5951
|
-
|
|
5952
|
-
_defineProperty$k(_assertThisInitialized$k(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']);
|
|
5953
|
-
|
|
5954
|
-
return _this;
|
|
5955
|
-
}
|
|
5956
|
-
|
|
5957
|
-
_createClass$k(ISOWeekParser, [{
|
|
5958
|
-
key: "parse",
|
|
5959
|
-
value: function parse(dateString, token, match) {
|
|
5960
|
-
switch (token) {
|
|
5961
|
-
case 'I':
|
|
5962
|
-
return parseNumericPattern(numericPatterns.week, dateString);
|
|
5963
|
-
|
|
5964
|
-
case 'Io':
|
|
5965
|
-
return match.ordinalNumber(dateString, {
|
|
5966
|
-
unit: 'week'
|
|
5967
|
-
});
|
|
5968
|
-
|
|
5969
|
-
default:
|
|
5970
|
-
return parseNDigits(token.length, dateString);
|
|
5971
|
-
}
|
|
5972
|
-
}
|
|
5973
|
-
}, {
|
|
5974
|
-
key: "validate",
|
|
5975
|
-
value: function validate(_date, value) {
|
|
5976
|
-
return value >= 1 && value <= 53;
|
|
5977
|
-
}
|
|
5978
|
-
}, {
|
|
5979
|
-
key: "set",
|
|
5980
|
-
value: function set(date, _flags, value) {
|
|
5981
|
-
return startOfUTCISOWeek(setUTCISOWeek(date, value));
|
|
5982
|
-
}
|
|
5983
|
-
}]);
|
|
5984
|
-
|
|
5985
|
-
return ISOWeekParser;
|
|
5986
|
-
}(Parser);
|
|
5987
|
-
|
|
5988
|
-
function _typeof$j(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$j = function _typeof(obj) { return typeof obj; }; } else { _typeof$j = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$j(obj); }
|
|
5989
|
-
|
|
5990
|
-
function _classCallCheck$j(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5991
|
-
|
|
5992
|
-
function _defineProperties$j(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
5993
|
-
|
|
5994
|
-
function _createClass$j(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$j(Constructor.prototype, protoProps); if (staticProps) _defineProperties$j(Constructor, staticProps); return Constructor; }
|
|
5995
|
-
|
|
5996
|
-
function _inherits$j(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$j(subClass, superClass); }
|
|
5997
|
-
|
|
5998
|
-
function _setPrototypeOf$j(o, p) { _setPrototypeOf$j = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$j(o, p); }
|
|
5999
|
-
|
|
6000
|
-
function _createSuper$j(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$j(); return function _createSuperInternal() { var Super = _getPrototypeOf$j(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$j(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$j(this, result); }; }
|
|
6001
|
-
|
|
6002
|
-
function _possibleConstructorReturn$j(self, call) { if (call && (_typeof$j(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$j(self); }
|
|
6003
|
-
|
|
6004
|
-
function _assertThisInitialized$j(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6005
|
-
|
|
6006
|
-
function _isNativeReflectConstruct$j() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6007
|
-
|
|
6008
|
-
function _getPrototypeOf$j(o) { _getPrototypeOf$j = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$j(o); }
|
|
6009
|
-
|
|
6010
|
-
function _defineProperty$j(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6011
|
-
var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
6012
|
-
var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // Day of the month
|
|
6013
|
-
|
|
6014
|
-
var DateParser = /*#__PURE__*/function (_Parser) {
|
|
6015
|
-
_inherits$j(DateParser, _Parser);
|
|
6016
|
-
|
|
6017
|
-
var _super = _createSuper$j(DateParser);
|
|
6018
|
-
|
|
6019
|
-
function DateParser() {
|
|
6020
|
-
var _this;
|
|
6021
|
-
|
|
6022
|
-
_classCallCheck$j(this, DateParser);
|
|
6023
|
-
|
|
6024
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6025
|
-
args[_key] = arguments[_key];
|
|
6026
|
-
}
|
|
6027
|
-
|
|
6028
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
6029
|
-
|
|
6030
|
-
_defineProperty$j(_assertThisInitialized$j(_this), "priority", 90);
|
|
6031
|
-
|
|
6032
|
-
_defineProperty$j(_assertThisInitialized$j(_this), "subPriority", 1);
|
|
6033
|
-
|
|
6034
|
-
_defineProperty$j(_assertThisInitialized$j(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']);
|
|
6035
|
-
|
|
6036
|
-
return _this;
|
|
6037
|
-
}
|
|
6038
|
-
|
|
6039
|
-
_createClass$j(DateParser, [{
|
|
6040
|
-
key: "parse",
|
|
6041
|
-
value: function parse(dateString, token, match) {
|
|
6042
|
-
switch (token) {
|
|
6043
|
-
case 'd':
|
|
6044
|
-
return parseNumericPattern(numericPatterns.date, dateString);
|
|
6045
|
-
|
|
6046
|
-
case 'do':
|
|
6047
|
-
return match.ordinalNumber(dateString, {
|
|
6048
|
-
unit: 'date'
|
|
6049
|
-
});
|
|
6050
|
-
|
|
6051
|
-
default:
|
|
6052
|
-
return parseNDigits(token.length, dateString);
|
|
6053
|
-
}
|
|
6054
|
-
}
|
|
6055
|
-
}, {
|
|
6056
|
-
key: "validate",
|
|
6057
|
-
value: function validate(date, value) {
|
|
6058
|
-
var year = date.getUTCFullYear();
|
|
6059
|
-
var isLeapYear = isLeapYearIndex(year);
|
|
6060
|
-
var month = date.getUTCMonth();
|
|
6061
|
-
|
|
6062
|
-
if (isLeapYear) {
|
|
6063
|
-
return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];
|
|
6064
|
-
} else {
|
|
6065
|
-
return value >= 1 && value <= DAYS_IN_MONTH[month];
|
|
6066
|
-
}
|
|
6067
|
-
}
|
|
6068
|
-
}, {
|
|
6069
|
-
key: "set",
|
|
6070
|
-
value: function set(date, _flags, value) {
|
|
6071
|
-
date.setUTCDate(value);
|
|
6072
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
6073
|
-
return date;
|
|
6074
|
-
}
|
|
6075
|
-
}]);
|
|
6076
|
-
|
|
6077
|
-
return DateParser;
|
|
6078
|
-
}(Parser);
|
|
6079
|
-
|
|
6080
|
-
function _typeof$i(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$i = function _typeof(obj) { return typeof obj; }; } else { _typeof$i = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$i(obj); }
|
|
6081
|
-
|
|
6082
|
-
function _classCallCheck$i(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6083
|
-
|
|
6084
|
-
function _defineProperties$i(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6085
|
-
|
|
6086
|
-
function _createClass$i(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$i(Constructor.prototype, protoProps); if (staticProps) _defineProperties$i(Constructor, staticProps); return Constructor; }
|
|
6087
|
-
|
|
6088
|
-
function _inherits$i(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$i(subClass, superClass); }
|
|
6089
|
-
|
|
6090
|
-
function _setPrototypeOf$i(o, p) { _setPrototypeOf$i = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$i(o, p); }
|
|
6091
|
-
|
|
6092
|
-
function _createSuper$i(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$i(); return function _createSuperInternal() { var Super = _getPrototypeOf$i(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$i(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$i(this, result); }; }
|
|
6093
|
-
|
|
6094
|
-
function _possibleConstructorReturn$i(self, call) { if (call && (_typeof$i(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$i(self); }
|
|
6095
|
-
|
|
6096
|
-
function _assertThisInitialized$i(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6097
|
-
|
|
6098
|
-
function _isNativeReflectConstruct$i() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6099
|
-
|
|
6100
|
-
function _getPrototypeOf$i(o) { _getPrototypeOf$i = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$i(o); }
|
|
6101
|
-
|
|
6102
|
-
function _defineProperty$i(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6103
|
-
var DayOfYearParser = /*#__PURE__*/function (_Parser) {
|
|
6104
|
-
_inherits$i(DayOfYearParser, _Parser);
|
|
6105
|
-
|
|
6106
|
-
var _super = _createSuper$i(DayOfYearParser);
|
|
6107
|
-
|
|
6108
|
-
function DayOfYearParser() {
|
|
6109
|
-
var _this;
|
|
6110
|
-
|
|
6111
|
-
_classCallCheck$i(this, DayOfYearParser);
|
|
6112
|
-
|
|
6113
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6114
|
-
args[_key] = arguments[_key];
|
|
6115
|
-
}
|
|
6116
|
-
|
|
6117
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
6118
|
-
|
|
6119
|
-
_defineProperty$i(_assertThisInitialized$i(_this), "priority", 90);
|
|
6120
|
-
|
|
6121
|
-
_defineProperty$i(_assertThisInitialized$i(_this), "subpriority", 1);
|
|
6122
|
-
|
|
6123
|
-
_defineProperty$i(_assertThisInitialized$i(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']);
|
|
6124
|
-
|
|
6125
|
-
return _this;
|
|
6126
|
-
}
|
|
6127
|
-
|
|
6128
|
-
_createClass$i(DayOfYearParser, [{
|
|
6129
|
-
key: "parse",
|
|
6130
|
-
value: function parse(dateString, token, match) {
|
|
6131
|
-
switch (token) {
|
|
6132
|
-
case 'D':
|
|
6133
|
-
case 'DD':
|
|
6134
|
-
return parseNumericPattern(numericPatterns.dayOfYear, dateString);
|
|
6135
|
-
|
|
6136
|
-
case 'Do':
|
|
6137
|
-
return match.ordinalNumber(dateString, {
|
|
6138
|
-
unit: 'date'
|
|
6139
|
-
});
|
|
6140
|
-
|
|
6141
|
-
default:
|
|
6142
|
-
return parseNDigits(token.length, dateString);
|
|
6143
|
-
}
|
|
6144
|
-
}
|
|
6145
|
-
}, {
|
|
6146
|
-
key: "validate",
|
|
6147
|
-
value: function validate(date, value) {
|
|
6148
|
-
var year = date.getUTCFullYear();
|
|
6149
|
-
var isLeapYear = isLeapYearIndex(year);
|
|
6150
|
-
|
|
6151
|
-
if (isLeapYear) {
|
|
6152
|
-
return value >= 1 && value <= 366;
|
|
6153
|
-
} else {
|
|
6154
|
-
return value >= 1 && value <= 365;
|
|
6155
|
-
}
|
|
6156
|
-
}
|
|
6157
|
-
}, {
|
|
6158
|
-
key: "set",
|
|
6159
|
-
value: function set(date, _flags, value) {
|
|
6160
|
-
date.setUTCMonth(0, value);
|
|
6161
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
6162
|
-
return date;
|
|
6163
|
-
}
|
|
6164
|
-
}]);
|
|
6165
|
-
|
|
6166
|
-
return DayOfYearParser;
|
|
6167
|
-
}(Parser);
|
|
6168
|
-
|
|
6169
|
-
function setUTCDay(dirtyDate, dirtyDay, options) {
|
|
6170
|
-
var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
|
|
6171
|
-
|
|
6172
|
-
requiredArgs(2, arguments);
|
|
6173
|
-
var defaultOptions = getDefaultOptions();
|
|
6174
|
-
var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
|
|
6175
|
-
|
|
6176
|
-
if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
|
|
6177
|
-
throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
|
|
6178
|
-
}
|
|
6179
|
-
|
|
6180
|
-
var date = toDate(dirtyDate);
|
|
6181
|
-
var day = toInteger(dirtyDay);
|
|
6182
|
-
var currentDay = date.getUTCDay();
|
|
6183
|
-
var remainder = day % 7;
|
|
6184
|
-
var dayIndex = (remainder + 7) % 7;
|
|
6185
|
-
var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
|
|
6186
|
-
date.setUTCDate(date.getUTCDate() + diff);
|
|
6187
|
-
return date;
|
|
6188
|
-
}
|
|
6189
|
-
|
|
6190
|
-
function _typeof$h(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$h = function _typeof(obj) { return typeof obj; }; } else { _typeof$h = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$h(obj); }
|
|
6191
|
-
|
|
6192
|
-
function _classCallCheck$h(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6193
|
-
|
|
6194
|
-
function _defineProperties$h(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6195
|
-
|
|
6196
|
-
function _createClass$h(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$h(Constructor.prototype, protoProps); if (staticProps) _defineProperties$h(Constructor, staticProps); return Constructor; }
|
|
6197
|
-
|
|
6198
|
-
function _inherits$h(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$h(subClass, superClass); }
|
|
6199
|
-
|
|
6200
|
-
function _setPrototypeOf$h(o, p) { _setPrototypeOf$h = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$h(o, p); }
|
|
6201
|
-
|
|
6202
|
-
function _createSuper$h(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$h(); return function _createSuperInternal() { var Super = _getPrototypeOf$h(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$h(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$h(this, result); }; }
|
|
6203
|
-
|
|
6204
|
-
function _possibleConstructorReturn$h(self, call) { if (call && (_typeof$h(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$h(self); }
|
|
6205
|
-
|
|
6206
|
-
function _assertThisInitialized$h(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6207
|
-
|
|
6208
|
-
function _isNativeReflectConstruct$h() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6209
|
-
|
|
6210
|
-
function _getPrototypeOf$h(o) { _getPrototypeOf$h = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$h(o); }
|
|
6211
|
-
|
|
6212
|
-
function _defineProperty$h(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6213
|
-
|
|
6214
|
-
var DayParser = /*#__PURE__*/function (_Parser) {
|
|
6215
|
-
_inherits$h(DayParser, _Parser);
|
|
6216
|
-
|
|
6217
|
-
var _super = _createSuper$h(DayParser);
|
|
6218
|
-
|
|
6219
|
-
function DayParser() {
|
|
6220
|
-
var _this;
|
|
6221
|
-
|
|
6222
|
-
_classCallCheck$h(this, DayParser);
|
|
6223
|
-
|
|
6224
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6225
|
-
args[_key] = arguments[_key];
|
|
6226
|
-
}
|
|
6227
|
-
|
|
6228
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
6229
|
-
|
|
6230
|
-
_defineProperty$h(_assertThisInitialized$h(_this), "priority", 90);
|
|
6231
|
-
|
|
6232
|
-
_defineProperty$h(_assertThisInitialized$h(_this), "incompatibleTokens", ['D', 'i', 'e', 'c', 't', 'T']);
|
|
6233
|
-
|
|
6234
|
-
return _this;
|
|
6235
|
-
}
|
|
6236
|
-
|
|
6237
|
-
_createClass$h(DayParser, [{
|
|
6238
|
-
key: "parse",
|
|
6239
|
-
value: function parse(dateString, token, match) {
|
|
6240
|
-
switch (token) {
|
|
6241
|
-
// Tue
|
|
6242
|
-
case 'E':
|
|
6243
|
-
case 'EE':
|
|
6244
|
-
case 'EEE':
|
|
6245
|
-
return match.day(dateString, {
|
|
6246
|
-
width: 'abbreviated',
|
|
6247
|
-
context: 'formatting'
|
|
6248
|
-
}) || match.day(dateString, {
|
|
6249
|
-
width: 'short',
|
|
6250
|
-
context: 'formatting'
|
|
6251
|
-
}) || match.day(dateString, {
|
|
6252
|
-
width: 'narrow',
|
|
6253
|
-
context: 'formatting'
|
|
6254
|
-
});
|
|
6255
|
-
// T
|
|
6256
|
-
|
|
6257
|
-
case 'EEEEE':
|
|
6258
|
-
return match.day(dateString, {
|
|
6259
|
-
width: 'narrow',
|
|
6260
|
-
context: 'formatting'
|
|
6261
|
-
});
|
|
6262
|
-
// Tu
|
|
6263
|
-
|
|
6264
|
-
case 'EEEEEE':
|
|
6265
|
-
return match.day(dateString, {
|
|
6266
|
-
width: 'short',
|
|
6267
|
-
context: 'formatting'
|
|
6268
|
-
}) || match.day(dateString, {
|
|
6269
|
-
width: 'narrow',
|
|
6270
|
-
context: 'formatting'
|
|
6271
|
-
});
|
|
6272
|
-
// Tuesday
|
|
6273
|
-
|
|
6274
|
-
case 'EEEE':
|
|
6275
|
-
default:
|
|
6276
|
-
return match.day(dateString, {
|
|
6277
|
-
width: 'wide',
|
|
6278
|
-
context: 'formatting'
|
|
6279
|
-
}) || match.day(dateString, {
|
|
6280
|
-
width: 'abbreviated',
|
|
6281
|
-
context: 'formatting'
|
|
6282
|
-
}) || match.day(dateString, {
|
|
6283
|
-
width: 'short',
|
|
6284
|
-
context: 'formatting'
|
|
6285
|
-
}) || match.day(dateString, {
|
|
6286
|
-
width: 'narrow',
|
|
6287
|
-
context: 'formatting'
|
|
6288
|
-
});
|
|
6289
|
-
}
|
|
6290
|
-
}
|
|
6291
|
-
}, {
|
|
6292
|
-
key: "validate",
|
|
6293
|
-
value: function validate(_date, value) {
|
|
6294
|
-
return value >= 0 && value <= 6;
|
|
6295
|
-
}
|
|
6296
|
-
}, {
|
|
6297
|
-
key: "set",
|
|
6298
|
-
value: function set(date, _flags, value, options) {
|
|
6299
|
-
date = setUTCDay(date, value, options);
|
|
6300
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
6301
|
-
return date;
|
|
6302
|
-
}
|
|
6303
|
-
}]);
|
|
6304
|
-
|
|
6305
|
-
return DayParser;
|
|
6306
|
-
}(Parser);
|
|
6307
|
-
|
|
6308
|
-
function _typeof$g(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$g = function _typeof(obj) { return typeof obj; }; } else { _typeof$g = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$g(obj); }
|
|
6309
|
-
|
|
6310
|
-
function _classCallCheck$g(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6311
|
-
|
|
6312
|
-
function _defineProperties$g(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6313
|
-
|
|
6314
|
-
function _createClass$g(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$g(Constructor.prototype, protoProps); if (staticProps) _defineProperties$g(Constructor, staticProps); return Constructor; }
|
|
6315
|
-
|
|
6316
|
-
function _inherits$g(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$g(subClass, superClass); }
|
|
6317
|
-
|
|
6318
|
-
function _setPrototypeOf$g(o, p) { _setPrototypeOf$g = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$g(o, p); }
|
|
6319
|
-
|
|
6320
|
-
function _createSuper$g(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$g(); return function _createSuperInternal() { var Super = _getPrototypeOf$g(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$g(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$g(this, result); }; }
|
|
6321
|
-
|
|
6322
|
-
function _possibleConstructorReturn$g(self, call) { if (call && (_typeof$g(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$g(self); }
|
|
6323
|
-
|
|
6324
|
-
function _assertThisInitialized$g(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6325
|
-
|
|
6326
|
-
function _isNativeReflectConstruct$g() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6327
|
-
|
|
6328
|
-
function _getPrototypeOf$g(o) { _getPrototypeOf$g = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$g(o); }
|
|
6329
|
-
|
|
6330
|
-
function _defineProperty$g(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6331
|
-
|
|
6332
|
-
var LocalDayParser = /*#__PURE__*/function (_Parser) {
|
|
6333
|
-
_inherits$g(LocalDayParser, _Parser);
|
|
6334
|
-
|
|
6335
|
-
var _super = _createSuper$g(LocalDayParser);
|
|
6336
|
-
|
|
6337
|
-
function LocalDayParser() {
|
|
6338
|
-
var _this;
|
|
6339
|
-
|
|
6340
|
-
_classCallCheck$g(this, LocalDayParser);
|
|
6341
|
-
|
|
6342
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6343
|
-
args[_key] = arguments[_key];
|
|
6344
|
-
}
|
|
6345
|
-
|
|
6346
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
6347
|
-
|
|
6348
|
-
_defineProperty$g(_assertThisInitialized$g(_this), "priority", 90);
|
|
6349
|
-
|
|
6350
|
-
_defineProperty$g(_assertThisInitialized$g(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']);
|
|
6351
|
-
|
|
6352
|
-
return _this;
|
|
6353
|
-
}
|
|
6354
|
-
|
|
6355
|
-
_createClass$g(LocalDayParser, [{
|
|
6356
|
-
key: "parse",
|
|
6357
|
-
value: function parse(dateString, token, match, options) {
|
|
6358
|
-
var valueCallback = function valueCallback(value) {
|
|
6359
|
-
var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
|
|
6360
|
-
return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
|
|
6361
|
-
};
|
|
6362
|
-
|
|
6363
|
-
switch (token) {
|
|
6364
|
-
// 3
|
|
6365
|
-
case 'e':
|
|
6366
|
-
case 'ee':
|
|
6367
|
-
// 03
|
|
6368
|
-
return mapValue(parseNDigits(token.length, dateString), valueCallback);
|
|
6369
|
-
// 3rd
|
|
6370
|
-
|
|
6371
|
-
case 'eo':
|
|
6372
|
-
return mapValue(match.ordinalNumber(dateString, {
|
|
6373
|
-
unit: 'day'
|
|
6374
|
-
}), valueCallback);
|
|
6375
|
-
// Tue
|
|
6376
|
-
|
|
6377
|
-
case 'eee':
|
|
6378
|
-
return match.day(dateString, {
|
|
6379
|
-
width: 'abbreviated',
|
|
6380
|
-
context: 'formatting'
|
|
6381
|
-
}) || match.day(dateString, {
|
|
6382
|
-
width: 'short',
|
|
6383
|
-
context: 'formatting'
|
|
6384
|
-
}) || match.day(dateString, {
|
|
6385
|
-
width: 'narrow',
|
|
6386
|
-
context: 'formatting'
|
|
6387
|
-
});
|
|
6388
|
-
// T
|
|
6389
|
-
|
|
6390
|
-
case 'eeeee':
|
|
6391
|
-
return match.day(dateString, {
|
|
6392
|
-
width: 'narrow',
|
|
6393
|
-
context: 'formatting'
|
|
6394
|
-
});
|
|
6395
|
-
// Tu
|
|
6396
|
-
|
|
6397
|
-
case 'eeeeee':
|
|
6398
|
-
return match.day(dateString, {
|
|
6399
|
-
width: 'short',
|
|
6400
|
-
context: 'formatting'
|
|
6401
|
-
}) || match.day(dateString, {
|
|
6402
|
-
width: 'narrow',
|
|
6403
|
-
context: 'formatting'
|
|
6404
|
-
});
|
|
6405
|
-
// Tuesday
|
|
6406
|
-
|
|
6407
|
-
case 'eeee':
|
|
6408
|
-
default:
|
|
6409
|
-
return match.day(dateString, {
|
|
6410
|
-
width: 'wide',
|
|
6411
|
-
context: 'formatting'
|
|
6412
|
-
}) || match.day(dateString, {
|
|
6413
|
-
width: 'abbreviated',
|
|
6414
|
-
context: 'formatting'
|
|
6415
|
-
}) || match.day(dateString, {
|
|
6416
|
-
width: 'short',
|
|
6417
|
-
context: 'formatting'
|
|
6418
|
-
}) || match.day(dateString, {
|
|
6419
|
-
width: 'narrow',
|
|
6420
|
-
context: 'formatting'
|
|
6421
|
-
});
|
|
6422
|
-
}
|
|
6423
|
-
}
|
|
6424
|
-
}, {
|
|
6425
|
-
key: "validate",
|
|
6426
|
-
value: function validate(_date, value) {
|
|
6427
|
-
return value >= 0 && value <= 6;
|
|
6428
|
-
}
|
|
6429
|
-
}, {
|
|
6430
|
-
key: "set",
|
|
6431
|
-
value: function set(date, _flags, value, options) {
|
|
6432
|
-
date = setUTCDay(date, value, options);
|
|
6433
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
6434
|
-
return date;
|
|
6435
|
-
}
|
|
6436
|
-
}]);
|
|
6437
|
-
|
|
6438
|
-
return LocalDayParser;
|
|
6439
|
-
}(Parser);
|
|
6440
|
-
|
|
6441
|
-
function _typeof$f(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$f = function _typeof(obj) { return typeof obj; }; } else { _typeof$f = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$f(obj); }
|
|
6442
|
-
|
|
6443
|
-
function _classCallCheck$f(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6444
|
-
|
|
6445
|
-
function _defineProperties$f(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6446
|
-
|
|
6447
|
-
function _createClass$f(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$f(Constructor.prototype, protoProps); if (staticProps) _defineProperties$f(Constructor, staticProps); return Constructor; }
|
|
6448
|
-
|
|
6449
|
-
function _inherits$f(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$f(subClass, superClass); }
|
|
6450
|
-
|
|
6451
|
-
function _setPrototypeOf$f(o, p) { _setPrototypeOf$f = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$f(o, p); }
|
|
6452
|
-
|
|
6453
|
-
function _createSuper$f(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$f(); return function _createSuperInternal() { var Super = _getPrototypeOf$f(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$f(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$f(this, result); }; }
|
|
6454
|
-
|
|
6455
|
-
function _possibleConstructorReturn$f(self, call) { if (call && (_typeof$f(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$f(self); }
|
|
6456
|
-
|
|
6457
|
-
function _assertThisInitialized$f(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6458
|
-
|
|
6459
|
-
function _isNativeReflectConstruct$f() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6460
|
-
|
|
6461
|
-
function _getPrototypeOf$f(o) { _getPrototypeOf$f = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$f(o); }
|
|
6462
|
-
|
|
6463
|
-
function _defineProperty$f(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6464
|
-
|
|
6465
|
-
var StandAloneLocalDayParser = /*#__PURE__*/function (_Parser) {
|
|
6466
|
-
_inherits$f(StandAloneLocalDayParser, _Parser);
|
|
6467
|
-
|
|
6468
|
-
var _super = _createSuper$f(StandAloneLocalDayParser);
|
|
6469
|
-
|
|
6470
|
-
function StandAloneLocalDayParser() {
|
|
6471
|
-
var _this;
|
|
6472
|
-
|
|
6473
|
-
_classCallCheck$f(this, StandAloneLocalDayParser);
|
|
6474
|
-
|
|
6475
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6476
|
-
args[_key] = arguments[_key];
|
|
6477
|
-
}
|
|
6478
|
-
|
|
6479
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
6480
|
-
|
|
6481
|
-
_defineProperty$f(_assertThisInitialized$f(_this), "priority", 90);
|
|
6482
|
-
|
|
6483
|
-
_defineProperty$f(_assertThisInitialized$f(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']);
|
|
6484
|
-
|
|
6485
|
-
return _this;
|
|
6486
|
-
}
|
|
6487
|
-
|
|
6488
|
-
_createClass$f(StandAloneLocalDayParser, [{
|
|
6489
|
-
key: "parse",
|
|
6490
|
-
value: function parse(dateString, token, match, options) {
|
|
6491
|
-
var valueCallback = function valueCallback(value) {
|
|
6492
|
-
var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
|
|
6493
|
-
return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
|
|
6494
|
-
};
|
|
6495
|
-
|
|
6496
|
-
switch (token) {
|
|
6497
|
-
// 3
|
|
6498
|
-
case 'c':
|
|
6499
|
-
case 'cc':
|
|
6500
|
-
// 03
|
|
6501
|
-
return mapValue(parseNDigits(token.length, dateString), valueCallback);
|
|
6502
|
-
// 3rd
|
|
6503
|
-
|
|
6504
|
-
case 'co':
|
|
6505
|
-
return mapValue(match.ordinalNumber(dateString, {
|
|
6506
|
-
unit: 'day'
|
|
6507
|
-
}), valueCallback);
|
|
6508
|
-
// Tue
|
|
6509
|
-
|
|
6510
|
-
case 'ccc':
|
|
6511
|
-
return match.day(dateString, {
|
|
6512
|
-
width: 'abbreviated',
|
|
6513
|
-
context: 'standalone'
|
|
6514
|
-
}) || match.day(dateString, {
|
|
6515
|
-
width: 'short',
|
|
6516
|
-
context: 'standalone'
|
|
6517
|
-
}) || match.day(dateString, {
|
|
6518
|
-
width: 'narrow',
|
|
6519
|
-
context: 'standalone'
|
|
6520
|
-
});
|
|
6521
|
-
// T
|
|
6522
|
-
|
|
6523
|
-
case 'ccccc':
|
|
6524
|
-
return match.day(dateString, {
|
|
6525
|
-
width: 'narrow',
|
|
6526
|
-
context: 'standalone'
|
|
6527
|
-
});
|
|
6528
|
-
// Tu
|
|
6529
|
-
|
|
6530
|
-
case 'cccccc':
|
|
6531
|
-
return match.day(dateString, {
|
|
6532
|
-
width: 'short',
|
|
6533
|
-
context: 'standalone'
|
|
6534
|
-
}) || match.day(dateString, {
|
|
6535
|
-
width: 'narrow',
|
|
6536
|
-
context: 'standalone'
|
|
6537
|
-
});
|
|
6538
|
-
// Tuesday
|
|
6539
|
-
|
|
6540
|
-
case 'cccc':
|
|
6541
|
-
default:
|
|
6542
|
-
return match.day(dateString, {
|
|
6543
|
-
width: 'wide',
|
|
6544
|
-
context: 'standalone'
|
|
6545
|
-
}) || match.day(dateString, {
|
|
6546
|
-
width: 'abbreviated',
|
|
6547
|
-
context: 'standalone'
|
|
6548
|
-
}) || match.day(dateString, {
|
|
6549
|
-
width: 'short',
|
|
6550
|
-
context: 'standalone'
|
|
6551
|
-
}) || match.day(dateString, {
|
|
6552
|
-
width: 'narrow',
|
|
6553
|
-
context: 'standalone'
|
|
6554
|
-
});
|
|
6555
|
-
}
|
|
6556
|
-
}
|
|
6557
|
-
}, {
|
|
6558
|
-
key: "validate",
|
|
6559
|
-
value: function validate(_date, value) {
|
|
6560
|
-
return value >= 0 && value <= 6;
|
|
6561
|
-
}
|
|
6562
|
-
}, {
|
|
6563
|
-
key: "set",
|
|
6564
|
-
value: function set(date, _flags, value, options) {
|
|
6565
|
-
date = setUTCDay(date, value, options);
|
|
6566
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
6567
|
-
return date;
|
|
6568
|
-
}
|
|
6569
|
-
}]);
|
|
6570
|
-
|
|
6571
|
-
return StandAloneLocalDayParser;
|
|
6572
|
-
}(Parser);
|
|
6573
|
-
|
|
6574
|
-
function setUTCISODay(dirtyDate, dirtyDay) {
|
|
6575
|
-
requiredArgs(2, arguments);
|
|
6576
|
-
var day = toInteger(dirtyDay);
|
|
6577
|
-
|
|
6578
|
-
if (day % 7 === 0) {
|
|
6579
|
-
day = day - 7;
|
|
6580
|
-
}
|
|
6581
|
-
|
|
6582
|
-
var weekStartsOn = 1;
|
|
6583
|
-
var date = toDate(dirtyDate);
|
|
6584
|
-
var currentDay = date.getUTCDay();
|
|
6585
|
-
var remainder = day % 7;
|
|
6586
|
-
var dayIndex = (remainder + 7) % 7;
|
|
6587
|
-
var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
|
|
6588
|
-
date.setUTCDate(date.getUTCDate() + diff);
|
|
6589
|
-
return date;
|
|
6590
|
-
}
|
|
6591
|
-
|
|
6592
|
-
function _typeof$e(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$e = function _typeof(obj) { return typeof obj; }; } else { _typeof$e = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$e(obj); }
|
|
6593
|
-
|
|
6594
|
-
function _classCallCheck$e(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6595
|
-
|
|
6596
|
-
function _defineProperties$e(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6597
|
-
|
|
6598
|
-
function _createClass$e(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$e(Constructor.prototype, protoProps); if (staticProps) _defineProperties$e(Constructor, staticProps); return Constructor; }
|
|
6599
|
-
|
|
6600
|
-
function _inherits$e(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$e(subClass, superClass); }
|
|
6601
|
-
|
|
6602
|
-
function _setPrototypeOf$e(o, p) { _setPrototypeOf$e = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$e(o, p); }
|
|
6603
|
-
|
|
6604
|
-
function _createSuper$e(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$e(); return function _createSuperInternal() { var Super = _getPrototypeOf$e(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$e(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$e(this, result); }; }
|
|
6605
|
-
|
|
6606
|
-
function _possibleConstructorReturn$e(self, call) { if (call && (_typeof$e(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$e(self); }
|
|
6607
|
-
|
|
6608
|
-
function _assertThisInitialized$e(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6609
|
-
|
|
6610
|
-
function _isNativeReflectConstruct$e() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6611
|
-
|
|
6612
|
-
function _getPrototypeOf$e(o) { _getPrototypeOf$e = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$e(o); }
|
|
6613
|
-
|
|
6614
|
-
function _defineProperty$e(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6615
|
-
|
|
6616
|
-
var ISODayParser = /*#__PURE__*/function (_Parser) {
|
|
6617
|
-
_inherits$e(ISODayParser, _Parser);
|
|
6618
|
-
|
|
6619
|
-
var _super = _createSuper$e(ISODayParser);
|
|
6620
|
-
|
|
6621
|
-
function ISODayParser() {
|
|
6622
|
-
var _this;
|
|
6623
|
-
|
|
6624
|
-
_classCallCheck$e(this, ISODayParser);
|
|
6625
|
-
|
|
6626
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6627
|
-
args[_key] = arguments[_key];
|
|
6628
|
-
}
|
|
6629
|
-
|
|
6630
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
6631
|
-
|
|
6632
|
-
_defineProperty$e(_assertThisInitialized$e(_this), "priority", 90);
|
|
6633
|
-
|
|
6634
|
-
_defineProperty$e(_assertThisInitialized$e(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']);
|
|
6635
|
-
|
|
6636
|
-
return _this;
|
|
6637
|
-
}
|
|
6638
|
-
|
|
6639
|
-
_createClass$e(ISODayParser, [{
|
|
6640
|
-
key: "parse",
|
|
6641
|
-
value: function parse(dateString, token, match) {
|
|
6642
|
-
var valueCallback = function valueCallback(value) {
|
|
6643
|
-
if (value === 0) {
|
|
6644
|
-
return 7;
|
|
6645
|
-
}
|
|
6646
|
-
|
|
6647
|
-
return value;
|
|
6648
|
-
};
|
|
6649
|
-
|
|
6650
|
-
switch (token) {
|
|
6651
|
-
// 2
|
|
6652
|
-
case 'i':
|
|
6653
|
-
case 'ii':
|
|
6654
|
-
// 02
|
|
6655
|
-
return parseNDigits(token.length, dateString);
|
|
6656
|
-
// 2nd
|
|
6657
|
-
|
|
6658
|
-
case 'io':
|
|
6659
|
-
return match.ordinalNumber(dateString, {
|
|
6660
|
-
unit: 'day'
|
|
6661
|
-
});
|
|
6662
|
-
// Tue
|
|
6663
|
-
|
|
6664
|
-
case 'iii':
|
|
6665
|
-
return mapValue(match.day(dateString, {
|
|
6666
|
-
width: 'abbreviated',
|
|
6667
|
-
context: 'formatting'
|
|
6668
|
-
}) || match.day(dateString, {
|
|
6669
|
-
width: 'short',
|
|
6670
|
-
context: 'formatting'
|
|
6671
|
-
}) || match.day(dateString, {
|
|
6672
|
-
width: 'narrow',
|
|
6673
|
-
context: 'formatting'
|
|
6674
|
-
}), valueCallback);
|
|
6675
|
-
// T
|
|
6676
|
-
|
|
6677
|
-
case 'iiiii':
|
|
6678
|
-
return mapValue(match.day(dateString, {
|
|
6679
|
-
width: 'narrow',
|
|
6680
|
-
context: 'formatting'
|
|
6681
|
-
}), valueCallback);
|
|
6682
|
-
// Tu
|
|
6683
|
-
|
|
6684
|
-
case 'iiiiii':
|
|
6685
|
-
return mapValue(match.day(dateString, {
|
|
6686
|
-
width: 'short',
|
|
6687
|
-
context: 'formatting'
|
|
6688
|
-
}) || match.day(dateString, {
|
|
6689
|
-
width: 'narrow',
|
|
6690
|
-
context: 'formatting'
|
|
6691
|
-
}), valueCallback);
|
|
6692
|
-
// Tuesday
|
|
6693
|
-
|
|
6694
|
-
case 'iiii':
|
|
6695
|
-
default:
|
|
6696
|
-
return mapValue(match.day(dateString, {
|
|
6697
|
-
width: 'wide',
|
|
6698
|
-
context: 'formatting'
|
|
6699
|
-
}) || match.day(dateString, {
|
|
6700
|
-
width: 'abbreviated',
|
|
6701
|
-
context: 'formatting'
|
|
6702
|
-
}) || match.day(dateString, {
|
|
6703
|
-
width: 'short',
|
|
6704
|
-
context: 'formatting'
|
|
6705
|
-
}) || match.day(dateString, {
|
|
6706
|
-
width: 'narrow',
|
|
6707
|
-
context: 'formatting'
|
|
6708
|
-
}), valueCallback);
|
|
6709
|
-
}
|
|
6710
|
-
}
|
|
6711
|
-
}, {
|
|
6712
|
-
key: "validate",
|
|
6713
|
-
value: function validate(_date, value) {
|
|
6714
|
-
return value >= 1 && value <= 7;
|
|
6715
|
-
}
|
|
6716
|
-
}, {
|
|
6717
|
-
key: "set",
|
|
6718
|
-
value: function set(date, _flags, value) {
|
|
6719
|
-
date = setUTCISODay(date, value);
|
|
6720
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
6721
|
-
return date;
|
|
6722
|
-
}
|
|
6723
|
-
}]);
|
|
6724
|
-
|
|
6725
|
-
return ISODayParser;
|
|
6726
|
-
}(Parser);
|
|
6727
|
-
|
|
6728
|
-
function _typeof$d(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$d = function _typeof(obj) { return typeof obj; }; } else { _typeof$d = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$d(obj); }
|
|
6729
|
-
|
|
6730
|
-
function _classCallCheck$d(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6731
|
-
|
|
6732
|
-
function _defineProperties$d(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6733
|
-
|
|
6734
|
-
function _createClass$d(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$d(Constructor.prototype, protoProps); if (staticProps) _defineProperties$d(Constructor, staticProps); return Constructor; }
|
|
6735
|
-
|
|
6736
|
-
function _inherits$d(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$d(subClass, superClass); }
|
|
6737
|
-
|
|
6738
|
-
function _setPrototypeOf$d(o, p) { _setPrototypeOf$d = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$d(o, p); }
|
|
6739
|
-
|
|
6740
|
-
function _createSuper$d(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$d(); return function _createSuperInternal() { var Super = _getPrototypeOf$d(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$d(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$d(this, result); }; }
|
|
6741
|
-
|
|
6742
|
-
function _possibleConstructorReturn$d(self, call) { if (call && (_typeof$d(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$d(self); }
|
|
6743
|
-
|
|
6744
|
-
function _assertThisInitialized$d(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6745
|
-
|
|
6746
|
-
function _isNativeReflectConstruct$d() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6747
|
-
|
|
6748
|
-
function _getPrototypeOf$d(o) { _getPrototypeOf$d = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$d(o); }
|
|
6749
|
-
|
|
6750
|
-
function _defineProperty$d(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6751
|
-
var AMPMParser = /*#__PURE__*/function (_Parser) {
|
|
6752
|
-
_inherits$d(AMPMParser, _Parser);
|
|
6753
|
-
|
|
6754
|
-
var _super = _createSuper$d(AMPMParser);
|
|
6755
|
-
|
|
6756
|
-
function AMPMParser() {
|
|
6757
|
-
var _this;
|
|
6758
|
-
|
|
6759
|
-
_classCallCheck$d(this, AMPMParser);
|
|
6760
|
-
|
|
6761
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6762
|
-
args[_key] = arguments[_key];
|
|
6763
|
-
}
|
|
6764
|
-
|
|
6765
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
6766
|
-
|
|
6767
|
-
_defineProperty$d(_assertThisInitialized$d(_this), "priority", 80);
|
|
6768
|
-
|
|
6769
|
-
_defineProperty$d(_assertThisInitialized$d(_this), "incompatibleTokens", ['b', 'B', 'H', 'k', 't', 'T']);
|
|
6770
|
-
|
|
6771
|
-
return _this;
|
|
6772
|
-
}
|
|
6773
|
-
|
|
6774
|
-
_createClass$d(AMPMParser, [{
|
|
6775
|
-
key: "parse",
|
|
6776
|
-
value: function parse(dateString, token, match) {
|
|
6777
|
-
switch (token) {
|
|
6778
|
-
case 'a':
|
|
6779
|
-
case 'aa':
|
|
6780
|
-
case 'aaa':
|
|
6781
|
-
return match.dayPeriod(dateString, {
|
|
6782
|
-
width: 'abbreviated',
|
|
6783
|
-
context: 'formatting'
|
|
6784
|
-
}) || match.dayPeriod(dateString, {
|
|
6785
|
-
width: 'narrow',
|
|
6786
|
-
context: 'formatting'
|
|
6787
|
-
});
|
|
6788
|
-
|
|
6789
|
-
case 'aaaaa':
|
|
6790
|
-
return match.dayPeriod(dateString, {
|
|
6791
|
-
width: 'narrow',
|
|
6792
|
-
context: 'formatting'
|
|
6793
|
-
});
|
|
6794
|
-
|
|
6795
|
-
case 'aaaa':
|
|
6796
|
-
default:
|
|
6797
|
-
return match.dayPeriod(dateString, {
|
|
6798
|
-
width: 'wide',
|
|
6799
|
-
context: 'formatting'
|
|
6800
|
-
}) || match.dayPeriod(dateString, {
|
|
6801
|
-
width: 'abbreviated',
|
|
6802
|
-
context: 'formatting'
|
|
6803
|
-
}) || match.dayPeriod(dateString, {
|
|
6804
|
-
width: 'narrow',
|
|
6805
|
-
context: 'formatting'
|
|
6806
|
-
});
|
|
6807
|
-
}
|
|
6808
|
-
}
|
|
6809
|
-
}, {
|
|
6810
|
-
key: "set",
|
|
6811
|
-
value: function set(date, _flags, value) {
|
|
6812
|
-
date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
|
|
6813
|
-
return date;
|
|
6814
|
-
}
|
|
6815
|
-
}]);
|
|
6816
|
-
|
|
6817
|
-
return AMPMParser;
|
|
6818
|
-
}(Parser);
|
|
6819
|
-
|
|
6820
|
-
function _typeof$c(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$c = function _typeof(obj) { return typeof obj; }; } else { _typeof$c = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$c(obj); }
|
|
6821
|
-
|
|
6822
|
-
function _classCallCheck$c(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6823
|
-
|
|
6824
|
-
function _defineProperties$c(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6825
|
-
|
|
6826
|
-
function _createClass$c(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$c(Constructor.prototype, protoProps); if (staticProps) _defineProperties$c(Constructor, staticProps); return Constructor; }
|
|
6827
|
-
|
|
6828
|
-
function _inherits$c(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$c(subClass, superClass); }
|
|
6829
|
-
|
|
6830
|
-
function _setPrototypeOf$c(o, p) { _setPrototypeOf$c = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$c(o, p); }
|
|
6831
|
-
|
|
6832
|
-
function _createSuper$c(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$c(); return function _createSuperInternal() { var Super = _getPrototypeOf$c(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$c(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$c(this, result); }; }
|
|
6833
|
-
|
|
6834
|
-
function _possibleConstructorReturn$c(self, call) { if (call && (_typeof$c(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$c(self); }
|
|
6835
|
-
|
|
6836
|
-
function _assertThisInitialized$c(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6837
|
-
|
|
6838
|
-
function _isNativeReflectConstruct$c() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6839
|
-
|
|
6840
|
-
function _getPrototypeOf$c(o) { _getPrototypeOf$c = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$c(o); }
|
|
6841
|
-
|
|
6842
|
-
function _defineProperty$c(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6843
|
-
var AMPMMidnightParser = /*#__PURE__*/function (_Parser) {
|
|
6844
|
-
_inherits$c(AMPMMidnightParser, _Parser);
|
|
6845
|
-
|
|
6846
|
-
var _super = _createSuper$c(AMPMMidnightParser);
|
|
6847
|
-
|
|
6848
|
-
function AMPMMidnightParser() {
|
|
6849
|
-
var _this;
|
|
6850
|
-
|
|
6851
|
-
_classCallCheck$c(this, AMPMMidnightParser);
|
|
6852
|
-
|
|
6853
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6854
|
-
args[_key] = arguments[_key];
|
|
6855
|
-
}
|
|
6856
|
-
|
|
6857
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
6858
|
-
|
|
6859
|
-
_defineProperty$c(_assertThisInitialized$c(_this), "priority", 80);
|
|
6860
|
-
|
|
6861
|
-
_defineProperty$c(_assertThisInitialized$c(_this), "incompatibleTokens", ['a', 'B', 'H', 'k', 't', 'T']);
|
|
6862
|
-
|
|
6863
|
-
return _this;
|
|
6864
|
-
}
|
|
6865
|
-
|
|
6866
|
-
_createClass$c(AMPMMidnightParser, [{
|
|
6867
|
-
key: "parse",
|
|
6868
|
-
value: function parse(dateString, token, match) {
|
|
6869
|
-
switch (token) {
|
|
6870
|
-
case 'b':
|
|
6871
|
-
case 'bb':
|
|
6872
|
-
case 'bbb':
|
|
6873
|
-
return match.dayPeriod(dateString, {
|
|
6874
|
-
width: 'abbreviated',
|
|
6875
|
-
context: 'formatting'
|
|
6876
|
-
}) || match.dayPeriod(dateString, {
|
|
6877
|
-
width: 'narrow',
|
|
6878
|
-
context: 'formatting'
|
|
6879
|
-
});
|
|
6880
|
-
|
|
6881
|
-
case 'bbbbb':
|
|
6882
|
-
return match.dayPeriod(dateString, {
|
|
6883
|
-
width: 'narrow',
|
|
6884
|
-
context: 'formatting'
|
|
6885
|
-
});
|
|
6886
|
-
|
|
6887
|
-
case 'bbbb':
|
|
6888
|
-
default:
|
|
6889
|
-
return match.dayPeriod(dateString, {
|
|
6890
|
-
width: 'wide',
|
|
6891
|
-
context: 'formatting'
|
|
6892
|
-
}) || match.dayPeriod(dateString, {
|
|
6893
|
-
width: 'abbreviated',
|
|
6894
|
-
context: 'formatting'
|
|
6895
|
-
}) || match.dayPeriod(dateString, {
|
|
6896
|
-
width: 'narrow',
|
|
6897
|
-
context: 'formatting'
|
|
6898
|
-
});
|
|
6899
|
-
}
|
|
6900
|
-
}
|
|
6901
|
-
}, {
|
|
6902
|
-
key: "set",
|
|
6903
|
-
value: function set(date, _flags, value) {
|
|
6904
|
-
date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
|
|
6905
|
-
return date;
|
|
6906
|
-
}
|
|
6907
|
-
}]);
|
|
6908
|
-
|
|
6909
|
-
return AMPMMidnightParser;
|
|
6910
|
-
}(Parser);
|
|
6911
|
-
|
|
6912
|
-
function _typeof$b(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$b = function _typeof(obj) { return typeof obj; }; } else { _typeof$b = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$b(obj); }
|
|
6913
|
-
|
|
6914
|
-
function _classCallCheck$b(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6915
|
-
|
|
6916
|
-
function _defineProperties$b(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6917
|
-
|
|
6918
|
-
function _createClass$b(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$b(Constructor.prototype, protoProps); if (staticProps) _defineProperties$b(Constructor, staticProps); return Constructor; }
|
|
6919
|
-
|
|
6920
|
-
function _inherits$b(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$b(subClass, superClass); }
|
|
6921
|
-
|
|
6922
|
-
function _setPrototypeOf$b(o, p) { _setPrototypeOf$b = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$b(o, p); }
|
|
6923
|
-
|
|
6924
|
-
function _createSuper$b(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$b(); return function _createSuperInternal() { var Super = _getPrototypeOf$b(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$b(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$b(this, result); }; }
|
|
6925
|
-
|
|
6926
|
-
function _possibleConstructorReturn$b(self, call) { if (call && (_typeof$b(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$b(self); }
|
|
6927
|
-
|
|
6928
|
-
function _assertThisInitialized$b(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6929
|
-
|
|
6930
|
-
function _isNativeReflectConstruct$b() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6931
|
-
|
|
6932
|
-
function _getPrototypeOf$b(o) { _getPrototypeOf$b = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$b(o); }
|
|
6933
|
-
|
|
6934
|
-
function _defineProperty$b(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6935
|
-
|
|
6936
|
-
var DayPeriodParser = /*#__PURE__*/function (_Parser) {
|
|
6937
|
-
_inherits$b(DayPeriodParser, _Parser);
|
|
6938
|
-
|
|
6939
|
-
var _super = _createSuper$b(DayPeriodParser);
|
|
6940
|
-
|
|
6941
|
-
function DayPeriodParser() {
|
|
6942
|
-
var _this;
|
|
6943
|
-
|
|
6944
|
-
_classCallCheck$b(this, DayPeriodParser);
|
|
6945
|
-
|
|
6946
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6947
|
-
args[_key] = arguments[_key];
|
|
6948
|
-
}
|
|
6949
|
-
|
|
6950
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
6951
|
-
|
|
6952
|
-
_defineProperty$b(_assertThisInitialized$b(_this), "priority", 80);
|
|
6953
|
-
|
|
6954
|
-
_defineProperty$b(_assertThisInitialized$b(_this), "incompatibleTokens", ['a', 'b', 't', 'T']);
|
|
6955
|
-
|
|
6956
|
-
return _this;
|
|
6957
|
-
}
|
|
6958
|
-
|
|
6959
|
-
_createClass$b(DayPeriodParser, [{
|
|
6960
|
-
key: "parse",
|
|
6961
|
-
value: function parse(dateString, token, match) {
|
|
6962
|
-
switch (token) {
|
|
6963
|
-
case 'B':
|
|
6964
|
-
case 'BB':
|
|
6965
|
-
case 'BBB':
|
|
6966
|
-
return match.dayPeriod(dateString, {
|
|
6967
|
-
width: 'abbreviated',
|
|
6968
|
-
context: 'formatting'
|
|
6969
|
-
}) || match.dayPeriod(dateString, {
|
|
6970
|
-
width: 'narrow',
|
|
6971
|
-
context: 'formatting'
|
|
6972
|
-
});
|
|
6973
|
-
|
|
6974
|
-
case 'BBBBB':
|
|
6975
|
-
return match.dayPeriod(dateString, {
|
|
6976
|
-
width: 'narrow',
|
|
6977
|
-
context: 'formatting'
|
|
6978
|
-
});
|
|
6979
|
-
|
|
6980
|
-
case 'BBBB':
|
|
6981
|
-
default:
|
|
6982
|
-
return match.dayPeriod(dateString, {
|
|
6983
|
-
width: 'wide',
|
|
6984
|
-
context: 'formatting'
|
|
6985
|
-
}) || match.dayPeriod(dateString, {
|
|
6986
|
-
width: 'abbreviated',
|
|
6987
|
-
context: 'formatting'
|
|
6988
|
-
}) || match.dayPeriod(dateString, {
|
|
6989
|
-
width: 'narrow',
|
|
6990
|
-
context: 'formatting'
|
|
6991
|
-
});
|
|
6992
|
-
}
|
|
6993
|
-
}
|
|
6994
|
-
}, {
|
|
6995
|
-
key: "set",
|
|
6996
|
-
value: function set(date, _flags, value) {
|
|
6997
|
-
date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
|
|
6998
|
-
return date;
|
|
6999
|
-
}
|
|
7000
|
-
}]);
|
|
7001
|
-
|
|
7002
|
-
return DayPeriodParser;
|
|
7003
|
-
}(Parser);
|
|
7004
|
-
|
|
7005
|
-
function _typeof$a(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$a = function _typeof(obj) { return typeof obj; }; } else { _typeof$a = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$a(obj); }
|
|
7006
|
-
|
|
7007
|
-
function _classCallCheck$a(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7008
|
-
|
|
7009
|
-
function _defineProperties$a(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7010
|
-
|
|
7011
|
-
function _createClass$a(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$a(Constructor.prototype, protoProps); if (staticProps) _defineProperties$a(Constructor, staticProps); return Constructor; }
|
|
7012
|
-
|
|
7013
|
-
function _inherits$a(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$a(subClass, superClass); }
|
|
7014
|
-
|
|
7015
|
-
function _setPrototypeOf$a(o, p) { _setPrototypeOf$a = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$a(o, p); }
|
|
7016
|
-
|
|
7017
|
-
function _createSuper$a(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$a(); return function _createSuperInternal() { var Super = _getPrototypeOf$a(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$a(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$a(this, result); }; }
|
|
7018
|
-
|
|
7019
|
-
function _possibleConstructorReturn$a(self, call) { if (call && (_typeof$a(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$a(self); }
|
|
7020
|
-
|
|
7021
|
-
function _assertThisInitialized$a(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7022
|
-
|
|
7023
|
-
function _isNativeReflectConstruct$a() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7024
|
-
|
|
7025
|
-
function _getPrototypeOf$a(o) { _getPrototypeOf$a = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$a(o); }
|
|
7026
|
-
|
|
7027
|
-
function _defineProperty$a(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7028
|
-
var Hour1to12Parser = /*#__PURE__*/function (_Parser) {
|
|
7029
|
-
_inherits$a(Hour1to12Parser, _Parser);
|
|
7030
|
-
|
|
7031
|
-
var _super = _createSuper$a(Hour1to12Parser);
|
|
7032
|
-
|
|
7033
|
-
function Hour1to12Parser() {
|
|
7034
|
-
var _this;
|
|
7035
|
-
|
|
7036
|
-
_classCallCheck$a(this, Hour1to12Parser);
|
|
7037
|
-
|
|
7038
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7039
|
-
args[_key] = arguments[_key];
|
|
7040
|
-
}
|
|
7041
|
-
|
|
7042
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7043
|
-
|
|
7044
|
-
_defineProperty$a(_assertThisInitialized$a(_this), "priority", 70);
|
|
7045
|
-
|
|
7046
|
-
_defineProperty$a(_assertThisInitialized$a(_this), "incompatibleTokens", ['H', 'K', 'k', 't', 'T']);
|
|
7047
|
-
|
|
7048
|
-
return _this;
|
|
7049
|
-
}
|
|
7050
|
-
|
|
7051
|
-
_createClass$a(Hour1to12Parser, [{
|
|
7052
|
-
key: "parse",
|
|
7053
|
-
value: function parse(dateString, token, match) {
|
|
7054
|
-
switch (token) {
|
|
7055
|
-
case 'h':
|
|
7056
|
-
return parseNumericPattern(numericPatterns.hour12h, dateString);
|
|
7057
|
-
|
|
7058
|
-
case 'ho':
|
|
7059
|
-
return match.ordinalNumber(dateString, {
|
|
7060
|
-
unit: 'hour'
|
|
7061
|
-
});
|
|
7062
|
-
|
|
7063
|
-
default:
|
|
7064
|
-
return parseNDigits(token.length, dateString);
|
|
7065
|
-
}
|
|
7066
|
-
}
|
|
7067
|
-
}, {
|
|
7068
|
-
key: "validate",
|
|
7069
|
-
value: function validate(_date, value) {
|
|
7070
|
-
return value >= 1 && value <= 12;
|
|
7071
|
-
}
|
|
7072
|
-
}, {
|
|
7073
|
-
key: "set",
|
|
7074
|
-
value: function set(date, _flags, value) {
|
|
7075
|
-
var isPM = date.getUTCHours() >= 12;
|
|
7076
|
-
|
|
7077
|
-
if (isPM && value < 12) {
|
|
7078
|
-
date.setUTCHours(value + 12, 0, 0, 0);
|
|
7079
|
-
} else if (!isPM && value === 12) {
|
|
7080
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
7081
|
-
} else {
|
|
7082
|
-
date.setUTCHours(value, 0, 0, 0);
|
|
7083
|
-
}
|
|
7084
|
-
|
|
7085
|
-
return date;
|
|
7086
|
-
}
|
|
7087
|
-
}]);
|
|
7088
|
-
|
|
7089
|
-
return Hour1to12Parser;
|
|
7090
|
-
}(Parser);
|
|
7091
|
-
|
|
7092
|
-
function _typeof$9(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$9 = function _typeof(obj) { return typeof obj; }; } else { _typeof$9 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$9(obj); }
|
|
7093
|
-
|
|
7094
|
-
function _classCallCheck$9(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7095
|
-
|
|
7096
|
-
function _defineProperties$9(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7097
|
-
|
|
7098
|
-
function _createClass$9(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$9(Constructor.prototype, protoProps); if (staticProps) _defineProperties$9(Constructor, staticProps); return Constructor; }
|
|
7099
|
-
|
|
7100
|
-
function _inherits$9(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$9(subClass, superClass); }
|
|
7101
|
-
|
|
7102
|
-
function _setPrototypeOf$9(o, p) { _setPrototypeOf$9 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$9(o, p); }
|
|
7103
|
-
|
|
7104
|
-
function _createSuper$9(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$9(); return function _createSuperInternal() { var Super = _getPrototypeOf$9(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$9(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$9(this, result); }; }
|
|
7105
|
-
|
|
7106
|
-
function _possibleConstructorReturn$9(self, call) { if (call && (_typeof$9(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$9(self); }
|
|
7107
|
-
|
|
7108
|
-
function _assertThisInitialized$9(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7109
|
-
|
|
7110
|
-
function _isNativeReflectConstruct$9() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7111
|
-
|
|
7112
|
-
function _getPrototypeOf$9(o) { _getPrototypeOf$9 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$9(o); }
|
|
7113
|
-
|
|
7114
|
-
function _defineProperty$9(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7115
|
-
var Hour0to23Parser = /*#__PURE__*/function (_Parser) {
|
|
7116
|
-
_inherits$9(Hour0to23Parser, _Parser);
|
|
7117
|
-
|
|
7118
|
-
var _super = _createSuper$9(Hour0to23Parser);
|
|
7119
|
-
|
|
7120
|
-
function Hour0to23Parser() {
|
|
7121
|
-
var _this;
|
|
7122
|
-
|
|
7123
|
-
_classCallCheck$9(this, Hour0to23Parser);
|
|
7124
|
-
|
|
7125
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7126
|
-
args[_key] = arguments[_key];
|
|
7127
|
-
}
|
|
7128
|
-
|
|
7129
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7130
|
-
|
|
7131
|
-
_defineProperty$9(_assertThisInitialized$9(_this), "priority", 70);
|
|
7132
|
-
|
|
7133
|
-
_defineProperty$9(_assertThisInitialized$9(_this), "incompatibleTokens", ['a', 'b', 'h', 'K', 'k', 't', 'T']);
|
|
7134
|
-
|
|
7135
|
-
return _this;
|
|
7136
|
-
}
|
|
7137
|
-
|
|
7138
|
-
_createClass$9(Hour0to23Parser, [{
|
|
7139
|
-
key: "parse",
|
|
7140
|
-
value: function parse(dateString, token, match) {
|
|
7141
|
-
switch (token) {
|
|
7142
|
-
case 'H':
|
|
7143
|
-
return parseNumericPattern(numericPatterns.hour23h, dateString);
|
|
7144
|
-
|
|
7145
|
-
case 'Ho':
|
|
7146
|
-
return match.ordinalNumber(dateString, {
|
|
7147
|
-
unit: 'hour'
|
|
7148
|
-
});
|
|
7149
|
-
|
|
7150
|
-
default:
|
|
7151
|
-
return parseNDigits(token.length, dateString);
|
|
7152
|
-
}
|
|
7153
|
-
}
|
|
7154
|
-
}, {
|
|
7155
|
-
key: "validate",
|
|
7156
|
-
value: function validate(_date, value) {
|
|
7157
|
-
return value >= 0 && value <= 23;
|
|
7158
|
-
}
|
|
7159
|
-
}, {
|
|
7160
|
-
key: "set",
|
|
7161
|
-
value: function set(date, _flags, value) {
|
|
7162
|
-
date.setUTCHours(value, 0, 0, 0);
|
|
7163
|
-
return date;
|
|
7164
|
-
}
|
|
7165
|
-
}]);
|
|
7166
|
-
|
|
7167
|
-
return Hour0to23Parser;
|
|
7168
|
-
}(Parser);
|
|
7169
|
-
|
|
7170
|
-
function _typeof$8(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$8 = function _typeof(obj) { return typeof obj; }; } else { _typeof$8 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$8(obj); }
|
|
7171
|
-
|
|
7172
|
-
function _classCallCheck$8(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7173
|
-
|
|
7174
|
-
function _defineProperties$8(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7175
|
-
|
|
7176
|
-
function _createClass$8(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$8(Constructor.prototype, protoProps); if (staticProps) _defineProperties$8(Constructor, staticProps); return Constructor; }
|
|
7177
|
-
|
|
7178
|
-
function _inherits$8(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$8(subClass, superClass); }
|
|
7179
|
-
|
|
7180
|
-
function _setPrototypeOf$8(o, p) { _setPrototypeOf$8 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$8(o, p); }
|
|
7181
|
-
|
|
7182
|
-
function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf$8(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$8(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$8(this, result); }; }
|
|
7183
|
-
|
|
7184
|
-
function _possibleConstructorReturn$8(self, call) { if (call && (_typeof$8(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$8(self); }
|
|
7185
|
-
|
|
7186
|
-
function _assertThisInitialized$8(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7187
|
-
|
|
7188
|
-
function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7189
|
-
|
|
7190
|
-
function _getPrototypeOf$8(o) { _getPrototypeOf$8 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$8(o); }
|
|
7191
|
-
|
|
7192
|
-
function _defineProperty$8(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7193
|
-
var Hour0To11Parser = /*#__PURE__*/function (_Parser) {
|
|
7194
|
-
_inherits$8(Hour0To11Parser, _Parser);
|
|
7195
|
-
|
|
7196
|
-
var _super = _createSuper$8(Hour0To11Parser);
|
|
7197
|
-
|
|
7198
|
-
function Hour0To11Parser() {
|
|
7199
|
-
var _this;
|
|
7200
|
-
|
|
7201
|
-
_classCallCheck$8(this, Hour0To11Parser);
|
|
7202
|
-
|
|
7203
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7204
|
-
args[_key] = arguments[_key];
|
|
7205
|
-
}
|
|
7206
|
-
|
|
7207
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7208
|
-
|
|
7209
|
-
_defineProperty$8(_assertThisInitialized$8(_this), "priority", 70);
|
|
7210
|
-
|
|
7211
|
-
_defineProperty$8(_assertThisInitialized$8(_this), "incompatibleTokens", ['h', 'H', 'k', 't', 'T']);
|
|
7212
|
-
|
|
7213
|
-
return _this;
|
|
7214
|
-
}
|
|
7215
|
-
|
|
7216
|
-
_createClass$8(Hour0To11Parser, [{
|
|
7217
|
-
key: "parse",
|
|
7218
|
-
value: function parse(dateString, token, match) {
|
|
7219
|
-
switch (token) {
|
|
7220
|
-
case 'K':
|
|
7221
|
-
return parseNumericPattern(numericPatterns.hour11h, dateString);
|
|
7222
|
-
|
|
7223
|
-
case 'Ko':
|
|
7224
|
-
return match.ordinalNumber(dateString, {
|
|
7225
|
-
unit: 'hour'
|
|
7226
|
-
});
|
|
7227
|
-
|
|
7228
|
-
default:
|
|
7229
|
-
return parseNDigits(token.length, dateString);
|
|
7230
|
-
}
|
|
7231
|
-
}
|
|
7232
|
-
}, {
|
|
7233
|
-
key: "validate",
|
|
7234
|
-
value: function validate(_date, value) {
|
|
7235
|
-
return value >= 0 && value <= 11;
|
|
7236
|
-
}
|
|
7237
|
-
}, {
|
|
7238
|
-
key: "set",
|
|
7239
|
-
value: function set(date, _flags, value) {
|
|
7240
|
-
var isPM = date.getUTCHours() >= 12;
|
|
7241
|
-
|
|
7242
|
-
if (isPM && value < 12) {
|
|
7243
|
-
date.setUTCHours(value + 12, 0, 0, 0);
|
|
7244
|
-
} else {
|
|
7245
|
-
date.setUTCHours(value, 0, 0, 0);
|
|
7246
|
-
}
|
|
7247
|
-
|
|
7248
|
-
return date;
|
|
7249
|
-
}
|
|
7250
|
-
}]);
|
|
7251
|
-
|
|
7252
|
-
return Hour0To11Parser;
|
|
7253
|
-
}(Parser);
|
|
7254
|
-
|
|
7255
|
-
function _typeof$7(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$7 = function _typeof(obj) { return typeof obj; }; } else { _typeof$7 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$7(obj); }
|
|
7256
|
-
|
|
7257
|
-
function _classCallCheck$7(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7258
|
-
|
|
7259
|
-
function _defineProperties$7(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7260
|
-
|
|
7261
|
-
function _createClass$7(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$7(Constructor.prototype, protoProps); if (staticProps) _defineProperties$7(Constructor, staticProps); return Constructor; }
|
|
7262
|
-
|
|
7263
|
-
function _inherits$7(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$7(subClass, superClass); }
|
|
7264
|
-
|
|
7265
|
-
function _setPrototypeOf$7(o, p) { _setPrototypeOf$7 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$7(o, p); }
|
|
7266
|
-
|
|
7267
|
-
function _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf$7(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$7(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$7(this, result); }; }
|
|
7268
|
-
|
|
7269
|
-
function _possibleConstructorReturn$7(self, call) { if (call && (_typeof$7(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$7(self); }
|
|
7270
|
-
|
|
7271
|
-
function _assertThisInitialized$7(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7272
|
-
|
|
7273
|
-
function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7274
|
-
|
|
7275
|
-
function _getPrototypeOf$7(o) { _getPrototypeOf$7 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$7(o); }
|
|
7276
|
-
|
|
7277
|
-
function _defineProperty$7(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7278
|
-
var Hour1To24Parser = /*#__PURE__*/function (_Parser) {
|
|
7279
|
-
_inherits$7(Hour1To24Parser, _Parser);
|
|
7280
|
-
|
|
7281
|
-
var _super = _createSuper$7(Hour1To24Parser);
|
|
7282
|
-
|
|
7283
|
-
function Hour1To24Parser() {
|
|
7284
|
-
var _this;
|
|
7285
|
-
|
|
7286
|
-
_classCallCheck$7(this, Hour1To24Parser);
|
|
7287
|
-
|
|
7288
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7289
|
-
args[_key] = arguments[_key];
|
|
7290
|
-
}
|
|
7291
|
-
|
|
7292
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7293
|
-
|
|
7294
|
-
_defineProperty$7(_assertThisInitialized$7(_this), "priority", 70);
|
|
7295
|
-
|
|
7296
|
-
_defineProperty$7(_assertThisInitialized$7(_this), "incompatibleTokens", ['a', 'b', 'h', 'H', 'K', 't', 'T']);
|
|
7297
|
-
|
|
7298
|
-
return _this;
|
|
7299
|
-
}
|
|
7300
|
-
|
|
7301
|
-
_createClass$7(Hour1To24Parser, [{
|
|
7302
|
-
key: "parse",
|
|
7303
|
-
value: function parse(dateString, token, match) {
|
|
7304
|
-
switch (token) {
|
|
7305
|
-
case 'k':
|
|
7306
|
-
return parseNumericPattern(numericPatterns.hour24h, dateString);
|
|
7307
|
-
|
|
7308
|
-
case 'ko':
|
|
7309
|
-
return match.ordinalNumber(dateString, {
|
|
7310
|
-
unit: 'hour'
|
|
7311
|
-
});
|
|
7312
|
-
|
|
7313
|
-
default:
|
|
7314
|
-
return parseNDigits(token.length, dateString);
|
|
7315
|
-
}
|
|
7316
|
-
}
|
|
7317
|
-
}, {
|
|
7318
|
-
key: "validate",
|
|
7319
|
-
value: function validate(_date, value) {
|
|
7320
|
-
return value >= 1 && value <= 24;
|
|
7321
|
-
}
|
|
7322
|
-
}, {
|
|
7323
|
-
key: "set",
|
|
7324
|
-
value: function set(date, _flags, value) {
|
|
7325
|
-
var hours = value <= 24 ? value % 24 : value;
|
|
7326
|
-
date.setUTCHours(hours, 0, 0, 0);
|
|
7327
|
-
return date;
|
|
7328
|
-
}
|
|
7329
|
-
}]);
|
|
7330
|
-
|
|
7331
|
-
return Hour1To24Parser;
|
|
7332
|
-
}(Parser);
|
|
7333
|
-
|
|
7334
|
-
function _typeof$6(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$6 = function _typeof(obj) { return typeof obj; }; } else { _typeof$6 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$6(obj); }
|
|
7335
|
-
|
|
7336
|
-
function _classCallCheck$6(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7337
|
-
|
|
7338
|
-
function _defineProperties$6(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7339
|
-
|
|
7340
|
-
function _createClass$6(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$6(Constructor.prototype, protoProps); if (staticProps) _defineProperties$6(Constructor, staticProps); return Constructor; }
|
|
7341
|
-
|
|
7342
|
-
function _inherits$6(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$6(subClass, superClass); }
|
|
7343
|
-
|
|
7344
|
-
function _setPrototypeOf$6(o, p) { _setPrototypeOf$6 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$6(o, p); }
|
|
7345
|
-
|
|
7346
|
-
function _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf$6(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$6(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$6(this, result); }; }
|
|
7347
|
-
|
|
7348
|
-
function _possibleConstructorReturn$6(self, call) { if (call && (_typeof$6(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$6(self); }
|
|
7349
|
-
|
|
7350
|
-
function _assertThisInitialized$6(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7351
|
-
|
|
7352
|
-
function _isNativeReflectConstruct$6() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7353
|
-
|
|
7354
|
-
function _getPrototypeOf$6(o) { _getPrototypeOf$6 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$6(o); }
|
|
7355
|
-
|
|
7356
|
-
function _defineProperty$6(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7357
|
-
var MinuteParser = /*#__PURE__*/function (_Parser) {
|
|
7358
|
-
_inherits$6(MinuteParser, _Parser);
|
|
7359
|
-
|
|
7360
|
-
var _super = _createSuper$6(MinuteParser);
|
|
7361
|
-
|
|
7362
|
-
function MinuteParser() {
|
|
7363
|
-
var _this;
|
|
7364
|
-
|
|
7365
|
-
_classCallCheck$6(this, MinuteParser);
|
|
7366
|
-
|
|
7367
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7368
|
-
args[_key] = arguments[_key];
|
|
7369
|
-
}
|
|
7370
|
-
|
|
7371
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7372
|
-
|
|
7373
|
-
_defineProperty$6(_assertThisInitialized$6(_this), "priority", 60);
|
|
7374
|
-
|
|
7375
|
-
_defineProperty$6(_assertThisInitialized$6(_this), "incompatibleTokens", ['t', 'T']);
|
|
7376
|
-
|
|
7377
|
-
return _this;
|
|
7378
|
-
}
|
|
7379
|
-
|
|
7380
|
-
_createClass$6(MinuteParser, [{
|
|
7381
|
-
key: "parse",
|
|
7382
|
-
value: function parse(dateString, token, match) {
|
|
7383
|
-
switch (token) {
|
|
7384
|
-
case 'm':
|
|
7385
|
-
return parseNumericPattern(numericPatterns.minute, dateString);
|
|
7386
|
-
|
|
7387
|
-
case 'mo':
|
|
7388
|
-
return match.ordinalNumber(dateString, {
|
|
7389
|
-
unit: 'minute'
|
|
7390
|
-
});
|
|
7391
|
-
|
|
7392
|
-
default:
|
|
7393
|
-
return parseNDigits(token.length, dateString);
|
|
7394
|
-
}
|
|
7395
|
-
}
|
|
7396
|
-
}, {
|
|
7397
|
-
key: "validate",
|
|
7398
|
-
value: function validate(_date, value) {
|
|
7399
|
-
return value >= 0 && value <= 59;
|
|
7400
|
-
}
|
|
7401
|
-
}, {
|
|
7402
|
-
key: "set",
|
|
7403
|
-
value: function set(date, _flags, value) {
|
|
7404
|
-
date.setUTCMinutes(value, 0, 0);
|
|
7405
|
-
return date;
|
|
7406
|
-
}
|
|
7407
|
-
}]);
|
|
7408
|
-
|
|
7409
|
-
return MinuteParser;
|
|
7410
|
-
}(Parser);
|
|
7411
|
-
|
|
7412
|
-
function _typeof$5(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$5 = function _typeof(obj) { return typeof obj; }; } else { _typeof$5 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$5(obj); }
|
|
7413
|
-
|
|
7414
|
-
function _classCallCheck$5(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7415
|
-
|
|
7416
|
-
function _defineProperties$5(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7417
|
-
|
|
7418
|
-
function _createClass$5(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$5(Constructor.prototype, protoProps); if (staticProps) _defineProperties$5(Constructor, staticProps); return Constructor; }
|
|
7419
|
-
|
|
7420
|
-
function _inherits$5(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$5(subClass, superClass); }
|
|
7421
|
-
|
|
7422
|
-
function _setPrototypeOf$5(o, p) { _setPrototypeOf$5 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$5(o, p); }
|
|
7423
|
-
|
|
7424
|
-
function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf$5(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$5(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$5(this, result); }; }
|
|
7425
|
-
|
|
7426
|
-
function _possibleConstructorReturn$5(self, call) { if (call && (_typeof$5(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$5(self); }
|
|
7427
|
-
|
|
7428
|
-
function _assertThisInitialized$5(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7429
|
-
|
|
7430
|
-
function _isNativeReflectConstruct$5() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7431
|
-
|
|
7432
|
-
function _getPrototypeOf$5(o) { _getPrototypeOf$5 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$5(o); }
|
|
7433
|
-
|
|
7434
|
-
function _defineProperty$5(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7435
|
-
var SecondParser = /*#__PURE__*/function (_Parser) {
|
|
7436
|
-
_inherits$5(SecondParser, _Parser);
|
|
7437
|
-
|
|
7438
|
-
var _super = _createSuper$5(SecondParser);
|
|
7439
|
-
|
|
7440
|
-
function SecondParser() {
|
|
7441
|
-
var _this;
|
|
7442
|
-
|
|
7443
|
-
_classCallCheck$5(this, SecondParser);
|
|
7444
|
-
|
|
7445
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7446
|
-
args[_key] = arguments[_key];
|
|
7447
|
-
}
|
|
7448
|
-
|
|
7449
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7450
|
-
|
|
7451
|
-
_defineProperty$5(_assertThisInitialized$5(_this), "priority", 50);
|
|
7452
|
-
|
|
7453
|
-
_defineProperty$5(_assertThisInitialized$5(_this), "incompatibleTokens", ['t', 'T']);
|
|
7454
|
-
|
|
7455
|
-
return _this;
|
|
7456
|
-
}
|
|
7457
|
-
|
|
7458
|
-
_createClass$5(SecondParser, [{
|
|
7459
|
-
key: "parse",
|
|
7460
|
-
value: function parse(dateString, token, match) {
|
|
7461
|
-
switch (token) {
|
|
7462
|
-
case 's':
|
|
7463
|
-
return parseNumericPattern(numericPatterns.second, dateString);
|
|
7464
|
-
|
|
7465
|
-
case 'so':
|
|
7466
|
-
return match.ordinalNumber(dateString, {
|
|
7467
|
-
unit: 'second'
|
|
7468
|
-
});
|
|
7469
|
-
|
|
7470
|
-
default:
|
|
7471
|
-
return parseNDigits(token.length, dateString);
|
|
7472
|
-
}
|
|
7473
|
-
}
|
|
7474
|
-
}, {
|
|
7475
|
-
key: "validate",
|
|
7476
|
-
value: function validate(_date, value) {
|
|
7477
|
-
return value >= 0 && value <= 59;
|
|
7478
|
-
}
|
|
7479
|
-
}, {
|
|
7480
|
-
key: "set",
|
|
7481
|
-
value: function set(date, _flags, value) {
|
|
7482
|
-
date.setUTCSeconds(value, 0);
|
|
7483
|
-
return date;
|
|
7484
|
-
}
|
|
7485
|
-
}]);
|
|
7486
|
-
|
|
7487
|
-
return SecondParser;
|
|
7488
|
-
}(Parser);
|
|
7489
|
-
|
|
7490
|
-
function _typeof$4(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$4 = function _typeof(obj) { return typeof obj; }; } else { _typeof$4 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$4(obj); }
|
|
7491
|
-
|
|
7492
|
-
function _classCallCheck$4(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7493
|
-
|
|
7494
|
-
function _defineProperties$4(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7495
|
-
|
|
7496
|
-
function _createClass$4(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$4(Constructor.prototype, protoProps); if (staticProps) _defineProperties$4(Constructor, staticProps); return Constructor; }
|
|
7497
|
-
|
|
7498
|
-
function _inherits$4(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$4(subClass, superClass); }
|
|
7499
|
-
|
|
7500
|
-
function _setPrototypeOf$4(o, p) { _setPrototypeOf$4 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$4(o, p); }
|
|
7501
|
-
|
|
7502
|
-
function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf$4(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$4(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$4(this, result); }; }
|
|
7503
|
-
|
|
7504
|
-
function _possibleConstructorReturn$4(self, call) { if (call && (_typeof$4(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$4(self); }
|
|
7505
|
-
|
|
7506
|
-
function _assertThisInitialized$4(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7507
|
-
|
|
7508
|
-
function _isNativeReflectConstruct$4() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7509
|
-
|
|
7510
|
-
function _getPrototypeOf$4(o) { _getPrototypeOf$4 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$4(o); }
|
|
7511
|
-
|
|
7512
|
-
function _defineProperty$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7513
|
-
var FractionOfSecondParser = /*#__PURE__*/function (_Parser) {
|
|
7514
|
-
_inherits$4(FractionOfSecondParser, _Parser);
|
|
7515
|
-
|
|
7516
|
-
var _super = _createSuper$4(FractionOfSecondParser);
|
|
7517
|
-
|
|
7518
|
-
function FractionOfSecondParser() {
|
|
7519
|
-
var _this;
|
|
7520
|
-
|
|
7521
|
-
_classCallCheck$4(this, FractionOfSecondParser);
|
|
7522
|
-
|
|
7523
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7524
|
-
args[_key] = arguments[_key];
|
|
7525
|
-
}
|
|
7526
|
-
|
|
7527
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7528
|
-
|
|
7529
|
-
_defineProperty$4(_assertThisInitialized$4(_this), "priority", 30);
|
|
7530
|
-
|
|
7531
|
-
_defineProperty$4(_assertThisInitialized$4(_this), "incompatibleTokens", ['t', 'T']);
|
|
7532
|
-
|
|
7533
|
-
return _this;
|
|
7534
|
-
}
|
|
7535
|
-
|
|
7536
|
-
_createClass$4(FractionOfSecondParser, [{
|
|
7537
|
-
key: "parse",
|
|
7538
|
-
value: function parse(dateString, token) {
|
|
7539
|
-
var valueCallback = function valueCallback(value) {
|
|
7540
|
-
return Math.floor(value * Math.pow(10, -token.length + 3));
|
|
7541
|
-
};
|
|
7542
|
-
|
|
7543
|
-
return mapValue(parseNDigits(token.length, dateString), valueCallback);
|
|
7544
|
-
}
|
|
7545
|
-
}, {
|
|
7546
|
-
key: "set",
|
|
7547
|
-
value: function set(date, _flags, value) {
|
|
7548
|
-
date.setUTCMilliseconds(value);
|
|
7549
|
-
return date;
|
|
7550
|
-
}
|
|
7551
|
-
}]);
|
|
7552
|
-
|
|
7553
|
-
return FractionOfSecondParser;
|
|
7554
|
-
}(Parser);
|
|
7555
|
-
|
|
7556
|
-
function _typeof$3(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$3 = function _typeof(obj) { return typeof obj; }; } else { _typeof$3 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$3(obj); }
|
|
7557
|
-
|
|
7558
|
-
function _classCallCheck$3(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7559
|
-
|
|
7560
|
-
function _defineProperties$3(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7561
|
-
|
|
7562
|
-
function _createClass$3(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$3(Constructor.prototype, protoProps); if (staticProps) _defineProperties$3(Constructor, staticProps); return Constructor; }
|
|
7563
|
-
|
|
7564
|
-
function _inherits$3(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$3(subClass, superClass); }
|
|
7565
|
-
|
|
7566
|
-
function _setPrototypeOf$3(o, p) { _setPrototypeOf$3 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$3(o, p); }
|
|
7567
|
-
|
|
7568
|
-
function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf$3(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$3(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$3(this, result); }; }
|
|
7569
|
-
|
|
7570
|
-
function _possibleConstructorReturn$3(self, call) { if (call && (_typeof$3(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$3(self); }
|
|
7571
|
-
|
|
7572
|
-
function _assertThisInitialized$3(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7573
|
-
|
|
7574
|
-
function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7575
|
-
|
|
7576
|
-
function _getPrototypeOf$3(o) { _getPrototypeOf$3 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$3(o); }
|
|
7577
|
-
|
|
7578
|
-
function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7579
|
-
|
|
7580
|
-
var ISOTimezoneWithZParser = /*#__PURE__*/function (_Parser) {
|
|
7581
|
-
_inherits$3(ISOTimezoneWithZParser, _Parser);
|
|
7582
|
-
|
|
7583
|
-
var _super = _createSuper$3(ISOTimezoneWithZParser);
|
|
7584
|
-
|
|
7585
|
-
function ISOTimezoneWithZParser() {
|
|
7586
|
-
var _this;
|
|
7587
|
-
|
|
7588
|
-
_classCallCheck$3(this, ISOTimezoneWithZParser);
|
|
7589
|
-
|
|
7590
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7591
|
-
args[_key] = arguments[_key];
|
|
7592
|
-
}
|
|
7593
|
-
|
|
7594
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7595
|
-
|
|
7596
|
-
_defineProperty$3(_assertThisInitialized$3(_this), "priority", 10);
|
|
7597
|
-
|
|
7598
|
-
_defineProperty$3(_assertThisInitialized$3(_this), "incompatibleTokens", ['t', 'T', 'x']);
|
|
7599
|
-
|
|
7600
|
-
return _this;
|
|
7601
|
-
}
|
|
7602
|
-
|
|
7603
|
-
_createClass$3(ISOTimezoneWithZParser, [{
|
|
7604
|
-
key: "parse",
|
|
7605
|
-
value: function parse(dateString, token) {
|
|
7606
|
-
switch (token) {
|
|
7607
|
-
case 'X':
|
|
7608
|
-
return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString);
|
|
7609
|
-
|
|
7610
|
-
case 'XX':
|
|
7611
|
-
return parseTimezonePattern(timezonePatterns.basic, dateString);
|
|
7612
|
-
|
|
7613
|
-
case 'XXXX':
|
|
7614
|
-
return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString);
|
|
7615
|
-
|
|
7616
|
-
case 'XXXXX':
|
|
7617
|
-
return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString);
|
|
7618
|
-
|
|
7619
|
-
case 'XXX':
|
|
7620
|
-
default:
|
|
7621
|
-
return parseTimezonePattern(timezonePatterns.extended, dateString);
|
|
7622
|
-
}
|
|
7623
|
-
}
|
|
7624
|
-
}, {
|
|
7625
|
-
key: "set",
|
|
7626
|
-
value: function set(date, flags, value) {
|
|
7627
|
-
if (flags.timestampIsSet) {
|
|
7628
|
-
return date;
|
|
7629
|
-
}
|
|
7630
|
-
|
|
7631
|
-
return new Date(date.getTime() - value);
|
|
7632
|
-
}
|
|
7633
|
-
}]);
|
|
7634
|
-
|
|
7635
|
-
return ISOTimezoneWithZParser;
|
|
7636
|
-
}(Parser);
|
|
7637
|
-
|
|
7638
|
-
function _typeof$2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$2 = function _typeof(obj) { return typeof obj; }; } else { _typeof$2 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$2(obj); }
|
|
7639
|
-
|
|
7640
|
-
function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7641
|
-
|
|
7642
|
-
function _defineProperties$2(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7643
|
-
|
|
7644
|
-
function _createClass$2(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$2(Constructor.prototype, protoProps); if (staticProps) _defineProperties$2(Constructor, staticProps); return Constructor; }
|
|
7645
|
-
|
|
7646
|
-
function _inherits$2(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$2(subClass, superClass); }
|
|
7647
|
-
|
|
7648
|
-
function _setPrototypeOf$2(o, p) { _setPrototypeOf$2 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$2(o, p); }
|
|
7649
|
-
|
|
7650
|
-
function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf$2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
|
|
7651
|
-
|
|
7652
|
-
function _possibleConstructorReturn$2(self, call) { if (call && (_typeof$2(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$2(self); }
|
|
7653
|
-
|
|
7654
|
-
function _assertThisInitialized$2(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7655
|
-
|
|
7656
|
-
function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7657
|
-
|
|
7658
|
-
function _getPrototypeOf$2(o) { _getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$2(o); }
|
|
7659
|
-
|
|
7660
|
-
function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7661
|
-
|
|
7662
|
-
var ISOTimezoneParser = /*#__PURE__*/function (_Parser) {
|
|
7663
|
-
_inherits$2(ISOTimezoneParser, _Parser);
|
|
7664
|
-
|
|
7665
|
-
var _super = _createSuper$2(ISOTimezoneParser);
|
|
7666
|
-
|
|
7667
|
-
function ISOTimezoneParser() {
|
|
7668
|
-
var _this;
|
|
7669
|
-
|
|
7670
|
-
_classCallCheck$2(this, ISOTimezoneParser);
|
|
7671
|
-
|
|
7672
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7673
|
-
args[_key] = arguments[_key];
|
|
7674
|
-
}
|
|
7675
|
-
|
|
7676
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7677
|
-
|
|
7678
|
-
_defineProperty$2(_assertThisInitialized$2(_this), "priority", 10);
|
|
7679
|
-
|
|
7680
|
-
_defineProperty$2(_assertThisInitialized$2(_this), "incompatibleTokens", ['t', 'T', 'X']);
|
|
7681
|
-
|
|
7682
|
-
return _this;
|
|
7683
|
-
}
|
|
7684
|
-
|
|
7685
|
-
_createClass$2(ISOTimezoneParser, [{
|
|
7686
|
-
key: "parse",
|
|
7687
|
-
value: function parse(dateString, token) {
|
|
7688
|
-
switch (token) {
|
|
7689
|
-
case 'x':
|
|
7690
|
-
return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString);
|
|
7691
|
-
|
|
7692
|
-
case 'xx':
|
|
7693
|
-
return parseTimezonePattern(timezonePatterns.basic, dateString);
|
|
7694
|
-
|
|
7695
|
-
case 'xxxx':
|
|
7696
|
-
return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString);
|
|
7697
|
-
|
|
7698
|
-
case 'xxxxx':
|
|
7699
|
-
return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString);
|
|
7700
|
-
|
|
7701
|
-
case 'xxx':
|
|
7702
|
-
default:
|
|
7703
|
-
return parseTimezonePattern(timezonePatterns.extended, dateString);
|
|
7704
|
-
}
|
|
7705
|
-
}
|
|
7706
|
-
}, {
|
|
7707
|
-
key: "set",
|
|
7708
|
-
value: function set(date, flags, value) {
|
|
7709
|
-
if (flags.timestampIsSet) {
|
|
7710
|
-
return date;
|
|
7711
|
-
}
|
|
7712
|
-
|
|
7713
|
-
return new Date(date.getTime() - value);
|
|
7714
|
-
}
|
|
7715
|
-
}]);
|
|
7716
|
-
|
|
7717
|
-
return ISOTimezoneParser;
|
|
7718
|
-
}(Parser);
|
|
7719
|
-
|
|
7720
|
-
function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
|
|
7721
|
-
|
|
7722
|
-
function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7723
|
-
|
|
7724
|
-
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7725
|
-
|
|
7726
|
-
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
|
7727
|
-
|
|
7728
|
-
function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$1(subClass, superClass); }
|
|
7729
|
-
|
|
7730
|
-
function _setPrototypeOf$1(o, p) { _setPrototypeOf$1 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$1(o, p); }
|
|
7731
|
-
|
|
7732
|
-
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf$1(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$1(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$1(this, result); }; }
|
|
7733
|
-
|
|
7734
|
-
function _possibleConstructorReturn$1(self, call) { if (call && (_typeof$1(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$1(self); }
|
|
7735
|
-
|
|
7736
|
-
function _assertThisInitialized$1(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7737
|
-
|
|
7738
|
-
function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7739
|
-
|
|
7740
|
-
function _getPrototypeOf$1(o) { _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$1(o); }
|
|
7741
|
-
|
|
7742
|
-
function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7743
|
-
var TimestampSecondsParser = /*#__PURE__*/function (_Parser) {
|
|
7744
|
-
_inherits$1(TimestampSecondsParser, _Parser);
|
|
7745
|
-
|
|
7746
|
-
var _super = _createSuper$1(TimestampSecondsParser);
|
|
7747
|
-
|
|
7748
|
-
function TimestampSecondsParser() {
|
|
7749
|
-
var _this;
|
|
7750
|
-
|
|
7751
|
-
_classCallCheck$1(this, TimestampSecondsParser);
|
|
7752
|
-
|
|
7753
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7754
|
-
args[_key] = arguments[_key];
|
|
7755
|
-
}
|
|
7756
|
-
|
|
7757
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
7758
|
-
|
|
7759
|
-
_defineProperty$1(_assertThisInitialized$1(_this), "priority", 40);
|
|
7760
|
-
|
|
7761
|
-
_defineProperty$1(_assertThisInitialized$1(_this), "incompatibleTokens", '*');
|
|
7762
|
-
|
|
7763
|
-
return _this;
|
|
7764
|
-
}
|
|
7765
|
-
|
|
7766
|
-
_createClass$1(TimestampSecondsParser, [{
|
|
7767
|
-
key: "parse",
|
|
7768
|
-
value: function parse(dateString) {
|
|
7769
|
-
return parseAnyDigitsSigned(dateString);
|
|
7770
|
-
}
|
|
7771
|
-
}, {
|
|
7772
|
-
key: "set",
|
|
7773
|
-
value: function set(_date, _flags, value) {
|
|
7774
|
-
return [new Date(value * 1000), {
|
|
7775
|
-
timestampIsSet: true
|
|
7776
|
-
}];
|
|
7777
|
-
}
|
|
7778
|
-
}]);
|
|
7779
|
-
|
|
7780
|
-
return TimestampSecondsParser;
|
|
7781
|
-
}(Parser);
|
|
7782
|
-
|
|
7783
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
7784
|
-
|
|
7785
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7786
|
-
|
|
7787
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
7788
|
-
|
|
7789
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
7790
|
-
|
|
7791
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
7792
|
-
|
|
7793
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7794
|
-
|
|
7795
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7796
|
-
|
|
7797
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4543
|
+
}
|
|
7798
4544
|
|
|
7799
|
-
|
|
4545
|
+
var originalDate = toDate(dirtyDate);
|
|
7800
4546
|
|
|
7801
|
-
|
|
4547
|
+
if (!isValid(originalDate)) {
|
|
4548
|
+
throw new RangeError('Invalid time value');
|
|
4549
|
+
} // Convert the date in system timezone to the same date in UTC+00:00 timezone.
|
|
4550
|
+
// This ensures that when UTC functions will be implemented, locales will be compatible with them.
|
|
4551
|
+
// See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
|
|
7802
4552
|
|
|
7803
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7804
4553
|
|
|
7805
|
-
|
|
7806
|
-
var
|
|
7807
|
-
|
|
4554
|
+
var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);
|
|
4555
|
+
var utcDate = subMilliseconds(originalDate, timezoneOffset);
|
|
4556
|
+
var formatterOptions = {
|
|
4557
|
+
firstWeekContainsDate: firstWeekContainsDate,
|
|
4558
|
+
weekStartsOn: weekStartsOn,
|
|
4559
|
+
locale: locale,
|
|
4560
|
+
_originalDate: originalDate
|
|
4561
|
+
};
|
|
4562
|
+
var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {
|
|
4563
|
+
var firstCharacter = substring[0];
|
|
7808
4564
|
|
|
7809
|
-
|
|
4565
|
+
if (firstCharacter === 'p' || firstCharacter === 'P') {
|
|
4566
|
+
var longFormatter = longFormatters$1[firstCharacter];
|
|
4567
|
+
return longFormatter(substring, locale.formatLong);
|
|
4568
|
+
}
|
|
7810
4569
|
|
|
7811
|
-
|
|
7812
|
-
|
|
4570
|
+
return substring;
|
|
4571
|
+
}).join('').match(formattingTokensRegExp).map(function (substring) {
|
|
4572
|
+
// Replace two single quote characters with one single quote character
|
|
4573
|
+
if (substring === "''") {
|
|
4574
|
+
return "'";
|
|
4575
|
+
}
|
|
7813
4576
|
|
|
7814
|
-
|
|
4577
|
+
var firstCharacter = substring[0];
|
|
7815
4578
|
|
|
7816
|
-
|
|
7817
|
-
|
|
4579
|
+
if (firstCharacter === "'") {
|
|
4580
|
+
return cleanEscapedString(substring);
|
|
7818
4581
|
}
|
|
7819
4582
|
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
_defineProperty(_assertThisInitialized(_this), "priority", 20);
|
|
4583
|
+
var formatter = formatters$1[firstCharacter];
|
|
7823
4584
|
|
|
7824
|
-
|
|
4585
|
+
if (formatter) {
|
|
4586
|
+
if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
|
|
4587
|
+
throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
|
|
4588
|
+
}
|
|
7825
4589
|
|
|
7826
|
-
|
|
7827
|
-
|
|
4590
|
+
if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
|
|
4591
|
+
throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
|
|
4592
|
+
}
|
|
7828
4593
|
|
|
7829
|
-
|
|
7830
|
-
key: "parse",
|
|
7831
|
-
value: function parse(dateString) {
|
|
7832
|
-
return parseAnyDigitsSigned(dateString);
|
|
4594
|
+
return formatter(utcDate, substring, locale.localize, formatterOptions);
|
|
7833
4595
|
}
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
return [new Date(value), {
|
|
7838
|
-
timestampIsSet: true
|
|
7839
|
-
}];
|
|
4596
|
+
|
|
4597
|
+
if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
|
|
4598
|
+
throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
|
|
7840
4599
|
}
|
|
7841
|
-
}]);
|
|
7842
4600
|
|
|
7843
|
-
|
|
7844
|
-
}(
|
|
4601
|
+
return substring;
|
|
4602
|
+
}).join('');
|
|
4603
|
+
return result;
|
|
4604
|
+
}
|
|
7845
4605
|
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
* |-----|--------------------------------|-----|--------------------------------|
|
|
7849
|
-
* | a | AM, PM | A* | Milliseconds in day |
|
|
7850
|
-
* | b | AM, PM, noon, midnight | B | Flexible day period |
|
|
7851
|
-
* | c | Stand-alone local day of week | C* | Localized hour w/ day period |
|
|
7852
|
-
* | d | Day of month | D | Day of year |
|
|
7853
|
-
* | e | Local day of week | E | Day of week |
|
|
7854
|
-
* | f | | F* | Day of week in month |
|
|
7855
|
-
* | g* | Modified Julian day | G | Era |
|
|
7856
|
-
* | h | Hour [1-12] | H | Hour [0-23] |
|
|
7857
|
-
* | i! | ISO day of week | I! | ISO week of year |
|
|
7858
|
-
* | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
|
|
7859
|
-
* | k | Hour [1-24] | K | Hour [0-11] |
|
|
7860
|
-
* | l* | (deprecated) | L | Stand-alone month |
|
|
7861
|
-
* | m | Minute | M | Month |
|
|
7862
|
-
* | n | | N | |
|
|
7863
|
-
* | o! | Ordinal number modifier | O* | Timezone (GMT) |
|
|
7864
|
-
* | p | | P | |
|
|
7865
|
-
* | q | Stand-alone quarter | Q | Quarter |
|
|
7866
|
-
* | r* | Related Gregorian year | R! | ISO week-numbering year |
|
|
7867
|
-
* | s | Second | S | Fraction of second |
|
|
7868
|
-
* | t! | Seconds timestamp | T! | Milliseconds timestamp |
|
|
7869
|
-
* | u | Extended year | U* | Cyclic year |
|
|
7870
|
-
* | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
|
|
7871
|
-
* | w | Local week of year | W* | Week of month |
|
|
7872
|
-
* | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
|
|
7873
|
-
* | y | Year (abs) | Y | Local week-numbering year |
|
|
7874
|
-
* | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
|
|
7875
|
-
*
|
|
7876
|
-
* Letters marked by * are not implemented but reserved by Unicode standard.
|
|
7877
|
-
*
|
|
7878
|
-
* Letters marked by ! are non-standard, but implemented by date-fns:
|
|
7879
|
-
* - `o` modifies the previous token to turn it into an ordinal (see `parse` docs)
|
|
7880
|
-
* - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
|
|
7881
|
-
* i.e. 7 for Sunday, 1 for Monday, etc.
|
|
7882
|
-
* - `I` is ISO week of year, as opposed to `w` which is local week of year.
|
|
7883
|
-
* - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
|
|
7884
|
-
* `R` is supposed to be used in conjunction with `I` and `i`
|
|
7885
|
-
* for universal ISO week-numbering date, whereas
|
|
7886
|
-
* `Y` is supposed to be used in conjunction with `w` and `e`
|
|
7887
|
-
* for week-numbering date specific to the locale.
|
|
7888
|
-
*/
|
|
4606
|
+
function cleanEscapedString(input) {
|
|
4607
|
+
var matched = input.match(escapedStringRegExp);
|
|
7889
4608
|
|
|
7890
|
-
({
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
Q: new QuarterParser(),
|
|
7897
|
-
q: new StandAloneQuarterParser(),
|
|
7898
|
-
M: new MonthParser(),
|
|
7899
|
-
L: new StandAloneMonthParser(),
|
|
7900
|
-
w: new LocalWeekParser(),
|
|
7901
|
-
I: new ISOWeekParser(),
|
|
7902
|
-
d: new DateParser(),
|
|
7903
|
-
D: new DayOfYearParser(),
|
|
7904
|
-
E: new DayParser(),
|
|
7905
|
-
e: new LocalDayParser(),
|
|
7906
|
-
c: new StandAloneLocalDayParser(),
|
|
7907
|
-
i: new ISODayParser(),
|
|
7908
|
-
a: new AMPMParser(),
|
|
7909
|
-
b: new AMPMMidnightParser(),
|
|
7910
|
-
B: new DayPeriodParser(),
|
|
7911
|
-
h: new Hour1to12Parser(),
|
|
7912
|
-
H: new Hour0to23Parser(),
|
|
7913
|
-
K: new Hour0To11Parser(),
|
|
7914
|
-
k: new Hour1To24Parser(),
|
|
7915
|
-
m: new MinuteParser(),
|
|
7916
|
-
s: new SecondParser(),
|
|
7917
|
-
S: new FractionOfSecondParser(),
|
|
7918
|
-
X: new ISOTimezoneWithZParser(),
|
|
7919
|
-
x: new ISOTimezoneParser(),
|
|
7920
|
-
t: new TimestampSecondsParser(),
|
|
7921
|
-
T: new TimestampMillisecondsParser()
|
|
7922
|
-
});
|
|
4609
|
+
if (!matched) {
|
|
4610
|
+
return input;
|
|
4611
|
+
}
|
|
4612
|
+
|
|
4613
|
+
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
4614
|
+
}
|
|
7923
4615
|
|
|
7924
4616
|
const CForm = defineComponent({
|
|
7925
4617
|
name: 'CForm',
|
|
@@ -8320,6 +5012,24 @@ const CFormControlWrapper = defineComponent({
|
|
|
8320
5012
|
},
|
|
8321
5013
|
},
|
|
8322
5014
|
setup(props, { slots }) {
|
|
5015
|
+
const formControlValidation = () => h$1(CFormControlValidation, {
|
|
5016
|
+
describedby: props.describedby,
|
|
5017
|
+
feedback: props.feedback,
|
|
5018
|
+
feedbackInvalid: props.feedbackInvalid,
|
|
5019
|
+
feedbackValid: props.feedbackValid,
|
|
5020
|
+
floatingLabel: props.floatingLabel,
|
|
5021
|
+
invalid: props.invalid,
|
|
5022
|
+
tooltipFeedback: props.tooltipFeedback,
|
|
5023
|
+
valid: props.valid,
|
|
5024
|
+
}, {
|
|
5025
|
+
...(slots.feedback && { feedback: () => slots.feedback && slots.feedback() }),
|
|
5026
|
+
...(slots.feedbackInvalid && {
|
|
5027
|
+
feedbackInvalid: () => slots.feedbackInvalid && slots.feedbackInvalid(),
|
|
5028
|
+
}),
|
|
5029
|
+
...(slots.feedbackValid && {
|
|
5030
|
+
feedbackValid: () => slots.feedbackInvalid && slots.feedbackInvalid(),
|
|
5031
|
+
}),
|
|
5032
|
+
});
|
|
8323
5033
|
return () => props.floatingLabel
|
|
8324
5034
|
? h$1(CFormFloating, () => [
|
|
8325
5035
|
slots.default && slots.default(),
|
|
@@ -8328,6 +5038,13 @@ const CFormControlWrapper = defineComponent({
|
|
|
8328
5038
|
}, {
|
|
8329
5039
|
default: () => (slots.label && slots.label()) || props.label || props.floatingLabel,
|
|
8330
5040
|
}),
|
|
5041
|
+
(props.text || slots.text) &&
|
|
5042
|
+
h$1(CFormText, {
|
|
5043
|
+
id: props.describedby,
|
|
5044
|
+
}, {
|
|
5045
|
+
default: () => (slots.text && slots.text()) || props.text,
|
|
5046
|
+
}),
|
|
5047
|
+
formControlValidation(),
|
|
8331
5048
|
])
|
|
8332
5049
|
: [
|
|
8333
5050
|
(props.label || slots.label) &&
|
|
@@ -8343,24 +5060,7 @@ const CFormControlWrapper = defineComponent({
|
|
|
8343
5060
|
}, {
|
|
8344
5061
|
default: () => (slots.text && slots.text()) || props.text,
|
|
8345
5062
|
}),
|
|
8346
|
-
|
|
8347
|
-
describedby: props.describedby,
|
|
8348
|
-
feedback: props.feedback,
|
|
8349
|
-
feedbackInvalid: props.feedbackInvalid,
|
|
8350
|
-
feedbackValid: props.feedbackValid,
|
|
8351
|
-
floatingLabel: props.floatingLabel,
|
|
8352
|
-
invalid: props.invalid,
|
|
8353
|
-
tooltipFeedback: props.tooltipFeedback,
|
|
8354
|
-
valid: props.valid,
|
|
8355
|
-
}, {
|
|
8356
|
-
...(slots.feedback && { feedback: () => slots.feedback && slots.feedback() }),
|
|
8357
|
-
...(slots.feedbackInvalid && {
|
|
8358
|
-
feedbackInvalid: () => slots.feedbackInvalid && slots.feedbackInvalid(),
|
|
8359
|
-
}),
|
|
8360
|
-
...(slots.feedbackValid && {
|
|
8361
|
-
feedbackValid: () => slots.feedbackInvalid && slots.feedbackInvalid(),
|
|
8362
|
-
}),
|
|
8363
|
-
}),
|
|
5063
|
+
formControlValidation(),
|
|
8364
5064
|
];
|
|
8365
5065
|
},
|
|
8366
5066
|
});
|
|
@@ -12015,10 +8715,10 @@ const getAmPm = (date, locale) => {
|
|
|
12015
8715
|
}
|
|
12016
8716
|
return date.getHours() >= 12 ? 'pm' : 'am';
|
|
12017
8717
|
};
|
|
12018
|
-
const getListOfHours = (locale, ampm = 'auto') => Array.from({ length: (ampm === 'auto' && isAmPm(locale)) || ampm ? 12 : 24 }, (_, i) => {
|
|
8718
|
+
const getListOfHours = (locale, ampm = 'auto') => Array.from({ length: (ampm === 'auto' && isAmPm(locale)) || ampm === true ? 12 : 24 }, (_, i) => {
|
|
12019
8719
|
return {
|
|
12020
|
-
value: (ampm === 'auto' && isAmPm(locale)) || ampm ? i + 1 : i,
|
|
12021
|
-
label: ((ampm === 'auto' && isAmPm(locale)) || ampm ? i + 1 : i).toLocaleString(locale),
|
|
8720
|
+
value: (ampm === 'auto' && isAmPm(locale)) || ampm === true ? i + 1 : i,
|
|
8721
|
+
label: ((ampm === 'auto' && isAmPm(locale)) || ampm === true ? i + 1 : i).toLocaleString(locale),
|
|
12022
8722
|
};
|
|
12023
8723
|
});
|
|
12024
8724
|
const getListOfMinutes = (locale, valueAsString = false) => Array.from({ length: 60 }, (_, i) => {
|
|
@@ -12028,12 +8728,10 @@ const getListOfMinutes = (locale, valueAsString = false) => Array.from({ length:
|
|
|
12028
8728
|
value: valueAsString ? i.toString() : i,
|
|
12029
8729
|
label: d
|
|
12030
8730
|
.toLocaleTimeString(locale, {
|
|
12031
|
-
hour: '2-digit',
|
|
12032
|
-
hour12: false,
|
|
12033
8731
|
minute: '2-digit',
|
|
12034
8732
|
second: '2-digit',
|
|
12035
8733
|
})
|
|
12036
|
-
.split(
|
|
8734
|
+
.split(/[^A-Za-z0-9]/)[0],
|
|
12037
8735
|
};
|
|
12038
8736
|
});
|
|
12039
8737
|
const getListOfSeconds = (locale, valueAsString = false) => Array.from({ length: 60 }, (_, i) => {
|
|
@@ -12043,16 +8741,14 @@ const getListOfSeconds = (locale, valueAsString = false) => Array.from({ length:
|
|
|
12043
8741
|
value: valueAsString ? i.toString() : i,
|
|
12044
8742
|
label: d
|
|
12045
8743
|
.toLocaleTimeString(locale, {
|
|
12046
|
-
hour: '2-digit',
|
|
12047
|
-
hour12: false,
|
|
12048
8744
|
minute: '2-digit',
|
|
12049
8745
|
second: '2-digit',
|
|
12050
8746
|
})
|
|
12051
|
-
.split(
|
|
8747
|
+
.split(/[^A-Za-z0-9]/)[1],
|
|
12052
8748
|
};
|
|
12053
8749
|
});
|
|
12054
8750
|
const getSelectedHour = (date, locale, ampm = 'auto') => date
|
|
12055
|
-
? (ampm === 'auto' && isAmPm(locale)) || ampm
|
|
8751
|
+
? (ampm === 'auto' && isAmPm(locale)) || ampm === true
|
|
12056
8752
|
? convert24hTo12h(date.getHours())
|
|
12057
8753
|
: date.getHours()
|
|
12058
8754
|
: '';
|
|
@@ -12353,7 +9049,7 @@ const CTimePicker = defineComponent({
|
|
|
12353
9049
|
}
|
|
12354
9050
|
}
|
|
12355
9051
|
if (set === 'hours') {
|
|
12356
|
-
if ((props.ampm === 'auto' && isAmPm(props.locale)) || props.ampm) {
|
|
9052
|
+
if ((props.ampm === 'auto' && isAmPm(props.locale)) || props.ampm === true) {
|
|
12357
9053
|
_date.setHours(convert12hTo24h(ampm.value, parseInt(value)));
|
|
12358
9054
|
}
|
|
12359
9055
|
else {
|
|
@@ -12383,7 +9079,8 @@ const CTimePicker = defineComponent({
|
|
|
12383
9079
|
readonly: props.inputReadOnly,
|
|
12384
9080
|
value: date.value
|
|
12385
9081
|
? date.value.toLocaleTimeString(props.locale, {
|
|
12386
|
-
hour12: (props.ampm === 'auto' && isAmPm(props.locale)) ||
|
|
9082
|
+
hour12: (props.ampm === 'auto' && isAmPm(props.locale)) ||
|
|
9083
|
+
(props.ampm === 'boolean' && props.ampm),
|
|
12387
9084
|
...(!props.seconds && { timeStyle: 'short' }),
|
|
12388
9085
|
})
|
|
12389
9086
|
: '',
|
|
@@ -12464,7 +9161,7 @@ const CTimePicker = defineComponent({
|
|
|
12464
9161
|
onClick: (index) => handleTimeChange('seconds', index.toString()),
|
|
12465
9162
|
selected: getSelectedSeconds(date.value),
|
|
12466
9163
|
}),
|
|
12467
|
-
((props.ampm === 'auto' && isAmPm(props.locale)) || props.ampm) &&
|
|
9164
|
+
((props.ampm === 'auto' && isAmPm(props.locale)) || props.ampm === true) &&
|
|
12468
9165
|
h$1(CTimePickerRollCol, {
|
|
12469
9166
|
elements: [
|
|
12470
9167
|
{ value: 'am', label: 'AM' },
|
|
@@ -13726,11 +10423,7 @@ const CElementCover = defineComponent({
|
|
|
13726
10423
|
*
|
|
13727
10424
|
* @type {sides: string[], query: string}[]
|
|
13728
10425
|
*/
|
|
13729
|
-
boundaries:
|
|
13730
|
-
// TODO: check if this is correct, TJ
|
|
13731
|
-
type: Array,
|
|
13732
|
-
require: true,
|
|
13733
|
-
},
|
|
10426
|
+
boundaries: Array,
|
|
13734
10427
|
/**
|
|
13735
10428
|
* Opacity of the cover. [docs]
|
|
13736
10429
|
*
|
|
@@ -13738,59 +10431,72 @@ const CElementCover = defineComponent({
|
|
|
13738
10431
|
*/
|
|
13739
10432
|
opacity: {
|
|
13740
10433
|
type: Number,
|
|
13741
|
-
|
|
10434
|
+
default: 0.4,
|
|
13742
10435
|
},
|
|
13743
10436
|
},
|
|
13744
|
-
|
|
13745
|
-
|
|
13746
|
-
|
|
10437
|
+
/**
|
|
10438
|
+
* Location for custom content.
|
|
10439
|
+
*
|
|
10440
|
+
* @slot default
|
|
10441
|
+
*/
|
|
10442
|
+
setup(props, { slots }) {
|
|
10443
|
+
const elementCoverRef = ref();
|
|
10444
|
+
const customBoundaries = ref({});
|
|
13747
10445
|
const getCustomBoundaries = () => {
|
|
13748
|
-
if (!props.boundaries ||
|
|
10446
|
+
if (!props.boundaries || elementCoverRef === null) {
|
|
13749
10447
|
return {};
|
|
13750
10448
|
}
|
|
13751
|
-
const parent =
|
|
10449
|
+
const parent = elementCoverRef.value.parentElement;
|
|
13752
10450
|
if (!parent) {
|
|
13753
10451
|
return {};
|
|
13754
10452
|
}
|
|
13755
10453
|
const parentCoords = parent.getBoundingClientRect();
|
|
13756
10454
|
const customBoundaries = {};
|
|
13757
|
-
props.boundaries.forEach((
|
|
13758
|
-
const element = parent.querySelector(
|
|
13759
|
-
if (!element || !
|
|
10455
|
+
props.boundaries.forEach(({ sides, query }) => {
|
|
10456
|
+
const element = parent.querySelector(query);
|
|
10457
|
+
if (!element || !sides) {
|
|
13760
10458
|
return;
|
|
13761
10459
|
}
|
|
13762
10460
|
const coords = element.getBoundingClientRect();
|
|
13763
|
-
|
|
10461
|
+
sides.forEach((side) => {
|
|
13764
10462
|
const sideMargin = Math.abs(coords[side] - parentCoords[side]);
|
|
13765
10463
|
customBoundaries[side] = `${sideMargin}px`;
|
|
13766
10464
|
});
|
|
13767
10465
|
});
|
|
13768
10466
|
return customBoundaries;
|
|
13769
10467
|
};
|
|
13770
|
-
|
|
13771
|
-
|
|
13772
|
-
|
|
10468
|
+
const containerCoords = {
|
|
10469
|
+
top: 0,
|
|
10470
|
+
left: 0,
|
|
10471
|
+
right: 0,
|
|
10472
|
+
bottom: 0,
|
|
10473
|
+
};
|
|
10474
|
+
const coverStyles = {
|
|
10475
|
+
...containerCoords,
|
|
10476
|
+
position: 'absolute',
|
|
10477
|
+
'background-color': `rgba(255,255,255,${props.opacity})`,
|
|
10478
|
+
};
|
|
10479
|
+
onMounted(() => {
|
|
10480
|
+
nextTick(() => {
|
|
10481
|
+
customBoundaries.value = getCustomBoundaries();
|
|
13773
10482
|
});
|
|
13774
10483
|
});
|
|
13775
10484
|
return () => h$1('div', {
|
|
13776
|
-
style: {
|
|
13777
|
-
|
|
13778
|
-
|
|
13779
|
-
|
|
13780
|
-
|
|
13781
|
-
|
|
13782
|
-
|
|
13783
|
-
|
|
13784
|
-
|
|
13785
|
-
|
|
13786
|
-
|
|
13787
|
-
|
|
13788
|
-
|
|
13789
|
-
|
|
13790
|
-
|
|
13791
|
-
variant: 'grow',
|
|
13792
|
-
color: 'primary',
|
|
13793
|
-
})));
|
|
10485
|
+
style: { ...coverStyles, ...customBoundaries.value },
|
|
10486
|
+
ref: elementCoverRef,
|
|
10487
|
+
}, slots.default
|
|
10488
|
+
? slots.default()
|
|
10489
|
+
: h$1('div', {
|
|
10490
|
+
style: {
|
|
10491
|
+
position: 'absolute',
|
|
10492
|
+
top: '50%',
|
|
10493
|
+
left: '50%',
|
|
10494
|
+
transform: 'translateX(-50%) translateY(-50%)',
|
|
10495
|
+
},
|
|
10496
|
+
}, h$1(CSpinner, {
|
|
10497
|
+
variant: 'grow',
|
|
10498
|
+
color: 'primary',
|
|
10499
|
+
})));
|
|
13794
10500
|
},
|
|
13795
10501
|
});
|
|
13796
10502
|
|
|
@@ -16685,13 +13391,13 @@ const CSidebar = defineComponent({
|
|
|
16685
13391
|
});
|
|
16686
13392
|
onMounted(() => {
|
|
16687
13393
|
mobile.value = isOnMobile(sidebarRef.value);
|
|
16688
|
-
inViewport.value =
|
|
13394
|
+
inViewport.value = isInViewport(sidebarRef.value);
|
|
16689
13395
|
window.addEventListener('resize', () => handleResize());
|
|
16690
13396
|
window.addEventListener('mouseup', handleClickOutside);
|
|
16691
13397
|
window.addEventListener('keyup', handleKeyup);
|
|
16692
13398
|
sidebarRef.value.addEventListener('mouseup', handleOnClick);
|
|
16693
13399
|
sidebarRef.value.addEventListener('transitionend', () => {
|
|
16694
|
-
inViewport.value =
|
|
13400
|
+
inViewport.value = isInViewport(sidebarRef.value);
|
|
16695
13401
|
});
|
|
16696
13402
|
});
|
|
16697
13403
|
onBeforeUnmount(() => {
|
|
@@ -16700,7 +13406,7 @@ const CSidebar = defineComponent({
|
|
|
16700
13406
|
window.removeEventListener('keyup', handleKeyup);
|
|
16701
13407
|
sidebarRef.value.removeEventListener('mouseup', handleOnClick);
|
|
16702
13408
|
sidebarRef.value.removeEventListener('transitionend', () => {
|
|
16703
|
-
inViewport.value =
|
|
13409
|
+
inViewport.value = isInViewport(sidebarRef.value);
|
|
16704
13410
|
});
|
|
16705
13411
|
});
|
|
16706
13412
|
const handleHide = () => {
|
|
@@ -16709,7 +13415,7 @@ const CSidebar = defineComponent({
|
|
|
16709
13415
|
};
|
|
16710
13416
|
const handleResize = () => {
|
|
16711
13417
|
mobile.value = isOnMobile(sidebarRef.value);
|
|
16712
|
-
inViewport.value =
|
|
13418
|
+
inViewport.value = isInViewport(sidebarRef.value);
|
|
16713
13419
|
};
|
|
16714
13420
|
const handleKeyup = (event) => {
|
|
16715
13421
|
if (mobile.value && !sidebarRef.value.contains(event.target)) {
|
|
@@ -17414,7 +14120,6 @@ const CTable = defineComponent({
|
|
|
17414
14120
|
*/
|
|
17415
14121
|
footer: {
|
|
17416
14122
|
type: Array,
|
|
17417
|
-
default: () => [],
|
|
17418
14123
|
required: false,
|
|
17419
14124
|
},
|
|
17420
14125
|
/**
|
|
@@ -17434,7 +14139,6 @@ const CTable = defineComponent({
|
|
|
17434
14139
|
*/
|
|
17435
14140
|
items: {
|
|
17436
14141
|
type: Array,
|
|
17437
|
-
default: () => [],
|
|
17438
14142
|
required: false,
|
|
17439
14143
|
},
|
|
17440
14144
|
responsive: {
|
|
@@ -17505,7 +14209,7 @@ const CTable = defineComponent({
|
|
|
17505
14209
|
else
|
|
17506
14210
|
return column;
|
|
17507
14211
|
})
|
|
17508
|
-
: Object.keys(props.items[0] || {}).filter((el) => el.charAt(0) !== '_'));
|
|
14212
|
+
: Object.keys((props.items && props.items[0]) || {}).filter((el) => el.charAt(0) !== '_'));
|
|
17509
14213
|
const table = () => h$1('table', {
|
|
17510
14214
|
class: [
|
|
17511
14215
|
'table',
|
|
@@ -17550,21 +14254,24 @@ const CTable = defineComponent({
|
|
|
17550
14254
|
props.items &&
|
|
17551
14255
|
h$1(CTableBody, {}, {
|
|
17552
14256
|
default: () => [
|
|
17553
|
-
props.items
|
|
17554
|
-
|
|
17555
|
-
|
|
17556
|
-
|
|
17557
|
-
|
|
17558
|
-
|
|
17559
|
-
|
|
17560
|
-
item._cellProps
|
|
17561
|
-
|
|
17562
|
-
item._cellProps
|
|
17563
|
-
|
|
17564
|
-
|
|
17565
|
-
|
|
17566
|
-
|
|
17567
|
-
|
|
14257
|
+
props.items &&
|
|
14258
|
+
props.items.map((item) => h$1(CTableRow, {
|
|
14259
|
+
...(item._props && { ...item._props }),
|
|
14260
|
+
}, {
|
|
14261
|
+
default: () => [
|
|
14262
|
+
rawColumnNames.value.map((colName) => item[colName] &&
|
|
14263
|
+
h$1(CTableDataCell, {
|
|
14264
|
+
...(item._cellProps &&
|
|
14265
|
+
item._cellProps['all'] && { ...item._cellProps['all'] }),
|
|
14266
|
+
...(item._cellProps &&
|
|
14267
|
+
item._cellProps[colName] && {
|
|
14268
|
+
...item._cellProps[colName],
|
|
14269
|
+
}),
|
|
14270
|
+
}, {
|
|
14271
|
+
default: () => item[colName],
|
|
14272
|
+
})),
|
|
14273
|
+
],
|
|
14274
|
+
})),
|
|
17568
14275
|
],
|
|
17569
14276
|
}),
|
|
17570
14277
|
slots.default && slots.default(),
|
|
@@ -17574,11 +14281,13 @@ const CTable = defineComponent({
|
|
|
17574
14281
|
}, {
|
|
17575
14282
|
default: () => h$1(CTableRow, {}, {
|
|
17576
14283
|
default: () => [
|
|
17577
|
-
props.footer
|
|
17578
|
-
|
|
17579
|
-
|
|
17580
|
-
|
|
17581
|
-
|
|
14284
|
+
props.footer &&
|
|
14285
|
+
props.footer.map((item) => h$1(CTableDataCell, {
|
|
14286
|
+
...(typeof item === 'object' &&
|
|
14287
|
+
item._props && { ...item._props }),
|
|
14288
|
+
}, {
|
|
14289
|
+
default: () => (typeof item === 'object' ? item.label : item),
|
|
14290
|
+
})),
|
|
17582
14291
|
],
|
|
17583
14292
|
}),
|
|
17584
14293
|
}),
|
|
@@ -18246,10 +14955,16 @@ const CSmartTable = defineComponent({
|
|
|
18246
14955
|
required: false,
|
|
18247
14956
|
},
|
|
18248
14957
|
/**
|
|
18249
|
-
* Displays table footer, which mirrors table header. (without column filter).
|
|
14958
|
+
* If `true` Displays table footer, which mirrors table header. (without column filter).
|
|
14959
|
+
* Or Array of objects or strings, where each element represents one cell in the table footer.
|
|
14960
|
+
*
|
|
14961
|
+
* Example items:
|
|
14962
|
+
* `['FooterCell', 'FooterCell', 'FooterCell']`
|
|
14963
|
+
* or
|
|
14964
|
+
* `[{ label: 'FooterCell', _props: { color: 'success' }, ...]`
|
|
18250
14965
|
*/
|
|
18251
14966
|
footer: {
|
|
18252
|
-
type: Boolean,
|
|
14967
|
+
type: [Boolean, Array],
|
|
18253
14968
|
required: false,
|
|
18254
14969
|
},
|
|
18255
14970
|
/**
|
|
@@ -18785,7 +15500,8 @@ const CSmartTable = defineComponent({
|
|
|
18785
15500
|
clickableRows: props.clickableRows,
|
|
18786
15501
|
...props.tableBodyProps,
|
|
18787
15502
|
}),
|
|
18788
|
-
props.footer &&
|
|
15503
|
+
typeof props.footer === 'boolean' &&
|
|
15504
|
+
props.footer &&
|
|
18789
15505
|
h$1(CSmartTableHead, {
|
|
18790
15506
|
component: 'footer',
|
|
18791
15507
|
...props.tableFootProps,
|
|
@@ -18796,12 +15512,28 @@ const CSmartTable = defineComponent({
|
|
|
18796
15512
|
selectAll: selectedAll.value,
|
|
18797
15513
|
onSelectAllChecked: () => handleSelectAllChecked(),
|
|
18798
15514
|
}),
|
|
15515
|
+
Array.isArray(props.footer) &&
|
|
15516
|
+
h$1(CTableFoot, {
|
|
15517
|
+
...props.tableFootProps,
|
|
15518
|
+
}, {
|
|
15519
|
+
default: () => h$1(CTableRow, {}, {
|
|
15520
|
+
default: () => [
|
|
15521
|
+
Array.isArray(props.footer) &&
|
|
15522
|
+
props.footer.map((item) => h$1(CTableDataCell, {
|
|
15523
|
+
...(typeof item === 'object' &&
|
|
15524
|
+
item._props && { ...item._props }),
|
|
15525
|
+
}, {
|
|
15526
|
+
default: () => typeof item === 'object' ? item.label : item,
|
|
15527
|
+
})),
|
|
15528
|
+
],
|
|
15529
|
+
}),
|
|
15530
|
+
}),
|
|
18799
15531
|
],
|
|
18800
15532
|
}),
|
|
18801
15533
|
props.loading &&
|
|
18802
15534
|
h$1(CElementCover, {
|
|
18803
15535
|
boundaries: [
|
|
18804
|
-
{ sides: ['top'], query: '
|
|
15536
|
+
{ sides: ['top'], query: 'tbody' },
|
|
18805
15537
|
{ sides: ['bottom'], query: 'tbody' },
|
|
18806
15538
|
],
|
|
18807
15539
|
}),
|
|
@@ -19427,7 +16159,7 @@ function isPlainObject(o) {
|
|
|
19427
16159
|
return true;
|
|
19428
16160
|
}
|
|
19429
16161
|
|
|
19430
|
-
function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var
|
|
16162
|
+
function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},t.apply(this,arguments)}function n(e,t){if(null==e)return {};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}const r={silent:!1,logLevel:"warn"},i=["validator"],o=Object.prototype,a=o.toString,s=o.hasOwnProperty,u=/^\s*function (\w+)/;function l(e){var t;const n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){const e=n.toString().match(u);return e?e[1]:""}return ""}const c=isPlainObject,d=e=>e;let f=d;if("production"!==process.env.NODE_ENV){const e="undefined"!=typeof console;f=e?function(e,t=r.logLevel){!1===r.silent&&console[t](`[VueTypes warn]: ${e}`);}:d;}const p=(e,t)=>s.call(e,t),y=Number.isInteger||function(e){return "number"==typeof e&&isFinite(e)&&Math.floor(e)===e},v=Array.isArray||function(e){return "[object Array]"===a.call(e)},h=e=>"[object Function]"===a.call(e),b=(e,t)=>c(e)&&p(e,"_vueTypes_name")&&(!t||e._vueTypes_name===t),g=e=>c(e)&&(p(e,"type")||["_vueTypes_name","validator","default","required"].some(t=>p(e,t)));function O(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function m(e,t,n=!1){let r,i=!0,o="";r=c(e)?e:{type:e};const a=b(r)?r._vueTypes_name+" - ":"";if(g(r)&&null!==r.type){if(void 0===r.type||!0===r.type)return i;if(!r.required&&void 0===t)return i;v(r.type)?(i=r.type.some(e=>!0===m(e,t,!0)),o=r.type.map(e=>l(e)).join(" or ")):(o=l(r),i="Array"===o?v(t):"Object"===o?c(t):"String"===o||"Number"===o||"Boolean"===o||"Function"===o?function(e){if(null==e)return "";const t=e.constructor.toString().match(u);return t?t[1]:""}(t)===o:t instanceof r.type);}if(!i){const e=`${a}value "${t}" should be of type "${o}"`;return !1===n?(f(e),!1):e}if(p(r,"validator")&&h(r.validator)){const e=f,o=[];if(f=e=>{o.push(e);},i=r.validator(t),f=e,!i){const e=(o.length>1?"* ":"")+o.join("\n* ");return o.length=0,!1===n?(f(e),i):e}}return i}function j(e,t){const n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(e){return void 0===e?this.type===Boolean||Array.isArray(this.type)&&this.type.includes(Boolean)?void(this.default=void 0):(p(this,"default")&&delete this.default,this):h(e)||!0===m(this,e,!0)?(this.default=v(e)?()=>[...e]:c(e)?()=>Object.assign({},e):e,this):(f(`${this._vueTypes_name} - invalid default value: "${e}"`),this)}}}),{validator:r}=n;return h(r)&&(n.validator=O(r,n)),n}function _(e,t){const n=j(e,t);return Object.defineProperty(n,"validate",{value(e){return h(this.validator)&&f(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=O(e,this),this}})}function T(e,t,r){const o=function(e){const t={};return Object.getOwnPropertyNames(e).forEach(n=>{t[n]=Object.getOwnPropertyDescriptor(e,n);}),Object.defineProperties({},t)}(t);if(o._vueTypes_name=e,!c(r))return o;const{validator:a}=r,s=n(r,i);if(h(a)){let{validator:e}=o;e&&(e=null!==(l=(u=e).__original)&&void 0!==l?l:u),o.validator=O(e?function(t){return e.call(this,t)&&a.call(this,t)}:a,o);}var u,l;return Object.assign(o,s)}function $(e){return e.replace(/^(?!\s*$)/gm," ")}const w=()=>_("any",{}),x=()=>_("function",{type:Function}),P=()=>_("boolean",{type:Boolean}),A=()=>_("string",{type:String}),E=()=>_("number",{type:Number}),S=()=>_("array",{type:Array}),N=()=>_("object",{type:Object}),V=()=>j("integer",{type:Number,validator(e){const t=y(e);return !1===t&&f(`integer - "${e}" is not an integer`),t}}),q=()=>j("symbol",{validator(e){const t="symbol"==typeof e;return !1===t&&f(`symbol - invalid value "${e}"`),t}}),k=()=>Object.defineProperty({type:null,validator(e){const t=null===e;return !1===t&&f("nullable - value should be null"),t}},"_vueTypes_name",{value:"nullable"});function D(e,t="custom validation failed"){if("function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return j(e.name||"<<anonymous function>>",{type:null,validator(n){const r=e(n);return r||f(`${this._vueTypes_name} - ${t}`),r}})}function L(e){if(!v(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.map(e=>"symbol"==typeof e?e.toString():e).join('", "')}".`,n={validator(n){const r=-1!==e.indexOf(n);return r||f(t),r}};if(-1===e.indexOf(null)){const t=e.reduce((e,t)=>{if(null!=t){const n=t.constructor;-1===e.indexOf(n)&&e.push(n);}return e},[]);t.length>0&&(n.type=t);}return j("oneOf",n)}function B(e){if(!v(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,n=!1,r=[];for(let i=0;i<e.length;i+=1){const o=e[i];if(g(o)){if(h(o.validator)&&(t=!0),b(o,"oneOf")&&o.type){r=r.concat(o.type);continue}if(b(o,"nullable")){n=!0;continue}if(!0===o.type||!o.type){f('oneOfType - invalid usage of "true" and "null" as types.');continue}r=r.concat(o.type);}else r.push(o);}r=r.filter((e,t)=>r.indexOf(e)===t);const i=!1===n&&r.length>0?r:null;return j("oneOfType",t?{type:i,validator(t){const n=[],r=e.some(e=>{const r=m(e,t,!0);return "string"==typeof r&&n.push(r),!0===r});return r||f(`oneOfType - provided value does not match any of the ${n.length} passed-in validators:\n${$(n.join("\n"))}`),r}}:{type:i})}function F(e){return j("arrayOf",{type:Array,validator(t){let n="";const r=t.every(t=>(n=m(e,t,!0),!0===n));return r||f(`arrayOf - value validation error:\n${$(n)}`),r}})}function Y(e){return j("instanceOf",{type:e})}function I(e){return j("objectOf",{type:Object,validator(t){let n="";const r=Object.keys(t).every(r=>(n=m(e,t[r],!0),!0===n));return r||f(`objectOf - value validation error:\n${$(n)}`),r}})}function J(e){const t=Object.keys(e),n=t.filter(t=>{var n;return !(null===(n=e[t])||void 0===n||!n.required)}),r=j("shape",{type:Object,validator(r){if(!c(r))return !1;const i=Object.keys(r);if(n.length>0&&n.some(e=>-1===i.indexOf(e))){const e=n.filter(e=>-1===i.indexOf(e));return f(1===e.length?`shape - required property "${e[0]}" is not defined.`:`shape - required properties "${e.join('", "')}" are not defined.`),!1}return i.every(n=>{if(-1===t.indexOf(n))return !0===this._vueTypes_isLoose||(f(`shape - shape definition does not include a "${n}" property. Allowed keys: "${t.join('", "')}".`),!1);const i=m(e[n],r[n],!0);return "string"==typeof i&&f(`shape - "${n}" property validation error:\n ${$(i)}`),!0===i})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),r}const M=["name","validate","getter"],R=/*#__PURE__*/(()=>{var e;return (e=class{static get any(){return w()}static get func(){return x().def(this.defaults.func)}static get bool(){return void 0===this.defaults.bool?P():P().def(this.defaults.bool)}static get string(){return A().def(this.defaults.string)}static get number(){return E().def(this.defaults.number)}static get array(){return S().def(this.defaults.array)}static get object(){return N().def(this.defaults.object)}static get integer(){return V().def(this.defaults.integer)}static get symbol(){return q()}static get nullable(){return k()}static extend(e){if(f("VueTypes.extend is deprecated. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."),v(e))return e.forEach(e=>this.extend(e)),this;const{name:t,validate:r=!1,getter:i=!1}=e,o=n(e,M);if(p(this,t))throw new TypeError(`[VueTypes error]: Type "${t}" already defined`);const{type:a}=o;if(b(a))return delete o.type,Object.defineProperty(this,t,i?{get:()=>T(t,a,o)}:{value(...e){const n=T(t,a,o);return n.validator&&(n.validator=n.validator.bind(n,...e)),n}});let s;return s=i?{get(){const e=Object.assign({},o);return r?_(t,e):j(t,e)},enumerable:!0}:{value(...e){const n=Object.assign({},o);let i;return i=r?_(t,n):j(t,n),n.validator&&(i.validator=n.validator.bind(i,...e)),i},enumerable:!0},Object.defineProperty(this,t,s)}}).defaults={},e.sensibleDefaults=void 0,e.config=r,e.custom=D,e.oneOf=L,e.instanceOf=Y,e.oneOfType=B,e.arrayOf=F,e.objectOf=I,e.shape=J,e.utils={validate:(e,t)=>!0===m(t,e,!0),toType:(e,t,n=!1)=>n?_(e,t):j(e,t)},e})();function U(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var n;return (n=class extends R{static get sensibleDefaults(){return t({},this.defaults)}static set sensibleDefaults(n){this.defaults=!1!==n?t({},!0!==n?n:e):{};}}).defaults=t({},e),n}class z extends(U()){}
|
|
19431
16163
|
|
|
19432
16164
|
const CWidgetStatsB = defineComponent({
|
|
19433
16165
|
name: 'CWidgetStatsB',
|
|
@@ -19823,35 +16555,35 @@ const CWidgetsStatsPlugin = {
|
|
|
19823
16555
|
|
|
19824
16556
|
var Components = /*#__PURE__*/Object.freeze({
|
|
19825
16557
|
__proto__: null,
|
|
19826
|
-
CAccordionPlugin: CAccordionPlugin,
|
|
19827
16558
|
CAccordion: CAccordion,
|
|
19828
16559
|
CAccordionBody: CAccordionBody,
|
|
19829
16560
|
CAccordionButton: CAccordionButton,
|
|
19830
16561
|
CAccordionHeader: CAccordionHeader,
|
|
19831
16562
|
CAccordionItem: CAccordionItem,
|
|
19832
|
-
|
|
16563
|
+
CAccordionPlugin: CAccordionPlugin,
|
|
19833
16564
|
CAlert: CAlert,
|
|
19834
16565
|
CAlertHeading: CAlertHeading,
|
|
19835
16566
|
CAlertLink: CAlertLink,
|
|
19836
|
-
|
|
16567
|
+
CAlertPlugin: CAlertPlugin,
|
|
19837
16568
|
CAvatar: CAvatar,
|
|
19838
|
-
|
|
16569
|
+
CAvatarPlugin: CAvatarPlugin,
|
|
19839
16570
|
CBackdrop: CBackdrop,
|
|
16571
|
+
CBackdropPlugin: CBackdropPlugin,
|
|
19840
16572
|
CBadge: CBadge,
|
|
19841
16573
|
CBadgePlugin: CBadgePlugin,
|
|
19842
|
-
CBreadcrumbPlugin: CBreadcrumbPlugin,
|
|
19843
16574
|
CBreadcrumb: CBreadcrumb,
|
|
19844
16575
|
CBreadcrumbItem: CBreadcrumbItem,
|
|
19845
|
-
|
|
16576
|
+
CBreadcrumbPlugin: CBreadcrumbPlugin,
|
|
19846
16577
|
CButton: CButton,
|
|
16578
|
+
CButtonGroup: CButtonGroup,
|
|
19847
16579
|
CButtonGroupPlugin: CButtonGroupPlugin,
|
|
16580
|
+
CButtonPlugin: CButtonPlugin,
|
|
19848
16581
|
CButtonToolbar: CButtonToolbar,
|
|
19849
|
-
|
|
16582
|
+
CCLinkPlugin: CCLinkPlugin,
|
|
19850
16583
|
CCalendar: CCalendar,
|
|
19851
16584
|
CCalendarPlugin: CCalendarPlugin,
|
|
19852
|
-
CCalloutPlugin: CCalloutPlugin,
|
|
19853
16585
|
CCallout: CCallout,
|
|
19854
|
-
|
|
16586
|
+
CCalloutPlugin: CCalloutPlugin,
|
|
19855
16587
|
CCard: CCard,
|
|
19856
16588
|
CCardBody: CCardBody,
|
|
19857
16589
|
CCardFooter: CCardFooter,
|
|
@@ -19860,118 +16592,119 @@ var Components = /*#__PURE__*/Object.freeze({
|
|
|
19860
16592
|
CCardImage: CCardImage,
|
|
19861
16593
|
CCardImageOverlay: CCardImageOverlay,
|
|
19862
16594
|
CCardLink: CCardLink,
|
|
16595
|
+
CCardPlugin: CCardPlugin,
|
|
19863
16596
|
CCardSubtitle: CCardSubtitle,
|
|
19864
16597
|
CCardText: CCardText,
|
|
19865
16598
|
CCardTitle: CCardTitle,
|
|
19866
|
-
CCarouselPlugin: CCarouselPlugin,
|
|
19867
16599
|
CCarousel: CCarousel,
|
|
19868
16600
|
CCarouselCaption: CCarouselCaption,
|
|
19869
16601
|
CCarouselItem: CCarouselItem,
|
|
19870
|
-
|
|
16602
|
+
CCarouselPlugin: CCarouselPlugin,
|
|
19871
16603
|
CCloseButton: CCloseButton,
|
|
19872
|
-
|
|
16604
|
+
CCloseButtonPlugin: CCloseButtonPlugin,
|
|
16605
|
+
CCol: CCol,
|
|
19873
16606
|
CCollapse: CCollapse,
|
|
19874
|
-
|
|
16607
|
+
CCollapsePlugin: CCollapsePlugin,
|
|
16608
|
+
CContainer: CContainer,
|
|
19875
16609
|
CDatePicker: CDatePicker,
|
|
19876
|
-
|
|
16610
|
+
CDatePickerPlugin: CDatePickerPlugin,
|
|
19877
16611
|
CDateRangePicker: CDateRangePicker,
|
|
19878
|
-
|
|
16612
|
+
CDateRangePickerPlugin: CDateRangePickerPlugin,
|
|
19879
16613
|
CDropdown: CDropdown,
|
|
19880
|
-
CDropdownItem: CDropdownItem,
|
|
19881
|
-
CDropdownHeader: CDropdownHeader,
|
|
19882
16614
|
CDropdownDivider: CDropdownDivider,
|
|
16615
|
+
CDropdownHeader: CDropdownHeader,
|
|
16616
|
+
CDropdownItem: CDropdownItem,
|
|
19883
16617
|
CDropdownMenu: CDropdownMenu,
|
|
16618
|
+
CDropdownPlugin: CDropdownPlugin,
|
|
19884
16619
|
CDropdownToggle: CDropdownToggle,
|
|
19885
|
-
CElementCoverPlugin: CElementCoverPlugin,
|
|
19886
16620
|
CElementCover: CElementCover,
|
|
19887
|
-
|
|
16621
|
+
CElementCoverPlugin: CElementCoverPlugin,
|
|
19888
16622
|
CFooter: CFooter,
|
|
19889
|
-
|
|
16623
|
+
CFooterPlugin: CFooterPlugin,
|
|
19890
16624
|
CForm: CForm,
|
|
19891
16625
|
CFormCheck: CFormCheck,
|
|
19892
16626
|
CFormFeedback: CFormFeedback,
|
|
19893
16627
|
CFormFloating: CFormFloating,
|
|
19894
16628
|
CFormInput: CFormInput,
|
|
19895
16629
|
CFormLabel: CFormLabel,
|
|
16630
|
+
CFormPlugin: CFormPlugin,
|
|
19896
16631
|
CFormRange: CFormRange,
|
|
19897
16632
|
CFormSelect: CFormSelect,
|
|
19898
16633
|
CFormSwitch: CFormSwitch,
|
|
19899
16634
|
CFormText: CFormText,
|
|
19900
16635
|
CFormTextarea: CFormTextarea,
|
|
19901
|
-
CInputGroup: CInputGroup,
|
|
19902
|
-
CInputGroupText: CInputGroupText,
|
|
19903
16636
|
CGridPlugin: CGridPlugin,
|
|
19904
|
-
CCol: CCol,
|
|
19905
|
-
CContainer: CContainer,
|
|
19906
|
-
CRow: CRow,
|
|
19907
|
-
CHeaderPlugin: CHeaderPlugin,
|
|
19908
16637
|
CHeader: CHeader,
|
|
19909
16638
|
CHeaderBrand: CHeaderBrand,
|
|
19910
16639
|
CHeaderDivider: CHeaderDivider,
|
|
19911
16640
|
CHeaderNav: CHeaderNav,
|
|
16641
|
+
CHeaderPlugin: CHeaderPlugin,
|
|
19912
16642
|
CHeaderText: CHeaderText,
|
|
19913
16643
|
CHeaderToggler: CHeaderToggler,
|
|
19914
|
-
CImagePlugin: CImagePlugin,
|
|
19915
16644
|
CImage: CImage,
|
|
19916
|
-
|
|
16645
|
+
CImagePlugin: CImagePlugin,
|
|
16646
|
+
CInputGroup: CInputGroup,
|
|
16647
|
+
CInputGroupText: CInputGroupText,
|
|
19917
16648
|
CLink: CLink,
|
|
19918
|
-
CListGroupPlugin: CListGroupPlugin,
|
|
19919
16649
|
CListGroup: CListGroup,
|
|
19920
16650
|
CListGroupItem: CListGroupItem,
|
|
19921
|
-
|
|
16651
|
+
CListGroupPlugin: CListGroupPlugin,
|
|
19922
16652
|
CLoadingButton: CLoadingButton,
|
|
19923
|
-
|
|
16653
|
+
CLoadingButtonPlugin: CLoadingButtonPlugin,
|
|
19924
16654
|
CModal: CModal,
|
|
19925
16655
|
CModalBody: CModalBody,
|
|
19926
16656
|
CModalFooter: CModalFooter,
|
|
19927
16657
|
CModalHeader: CModalHeader,
|
|
16658
|
+
CModalPlugin: CModalPlugin,
|
|
19928
16659
|
CModalTitle: CModalTitle,
|
|
19929
|
-
CMultiSelectPlugin: CMultiSelectPlugin,
|
|
19930
16660
|
CMultiSelect: CMultiSelect,
|
|
19931
|
-
|
|
16661
|
+
CMultiSelectPlugin: CMultiSelectPlugin,
|
|
19932
16662
|
CNav: CNav,
|
|
19933
16663
|
CNavGroup: CNavGroup,
|
|
19934
16664
|
CNavGroupItems: CNavGroupItems,
|
|
19935
16665
|
CNavItem: CNavItem,
|
|
19936
16666
|
CNavLink: CNavLink,
|
|
16667
|
+
CNavPlugin: CNavPlugin,
|
|
19937
16668
|
CNavTitle: CNavTitle,
|
|
19938
|
-
CNavbarPlugin: CNavbarPlugin,
|
|
19939
16669
|
CNavbar: CNavbar,
|
|
19940
16670
|
CNavbarBrand: CNavbarBrand,
|
|
19941
16671
|
CNavbarNav: CNavbarNav,
|
|
16672
|
+
CNavbarPlugin: CNavbarPlugin,
|
|
19942
16673
|
CNavbarText: CNavbarText,
|
|
19943
16674
|
CNavbarToggler: CNavbarToggler,
|
|
19944
|
-
COffcanvasPlugin: COffcanvasPlugin,
|
|
19945
16675
|
COffcanvas: COffcanvas,
|
|
19946
16676
|
COffcanvasBody: COffcanvasBody,
|
|
19947
16677
|
COffcanvasHeader: COffcanvasHeader,
|
|
16678
|
+
COffcanvasPlugin: COffcanvasPlugin,
|
|
19948
16679
|
COffcanvasTitle: COffcanvasTitle,
|
|
19949
|
-
CPaginationPlugin: CPaginationPlugin,
|
|
19950
16680
|
CPagination: CPagination,
|
|
19951
16681
|
CPaginationItem: CPaginationItem,
|
|
16682
|
+
CPaginationPlugin: CPaginationPlugin,
|
|
19952
16683
|
CPicker: CPicker,
|
|
19953
16684
|
CPickerPlugin: CPickerPlugin,
|
|
19954
|
-
CPlaceholderPlugin: CPlaceholderPlugin,
|
|
19955
16685
|
CPlaceholder: CPlaceholder,
|
|
19956
|
-
|
|
16686
|
+
CPlaceholderPlugin: CPlaceholderPlugin,
|
|
16687
|
+
CPopover: CPopover,
|
|
16688
|
+
CPopoverPlugin: CPopoverPlugin,
|
|
19957
16689
|
CProgress: CProgress,
|
|
19958
16690
|
CProgressBar: CProgressBar,
|
|
19959
|
-
|
|
19960
|
-
|
|
19961
|
-
CSidebarPlugin: CSidebarPlugin,
|
|
16691
|
+
CProgressPlugin: CProgressPlugin,
|
|
16692
|
+
CRow: CRow,
|
|
19962
16693
|
CSidebar: CSidebar,
|
|
19963
16694
|
CSidebarBrand: CSidebarBrand,
|
|
19964
16695
|
CSidebarFooter: CSidebarFooter,
|
|
19965
16696
|
CSidebarHeader: CSidebarHeader,
|
|
19966
16697
|
CSidebarNav: CSidebarNav,
|
|
16698
|
+
CSidebarPlugin: CSidebarPlugin,
|
|
19967
16699
|
CSidebarToggler: CSidebarToggler,
|
|
19968
|
-
CSmartPaginationPlugin: CSmartPaginationPlugin,
|
|
19969
16700
|
CSmartPagination: CSmartPagination,
|
|
19970
|
-
|
|
16701
|
+
CSmartPaginationPlugin: CSmartPaginationPlugin,
|
|
19971
16702
|
CSmartTable: CSmartTable,
|
|
19972
|
-
|
|
16703
|
+
CSmartTablePlugin: CSmartTablePlugin,
|
|
19973
16704
|
CSpinner: CSpinner,
|
|
19974
|
-
|
|
16705
|
+
CSpinnerPlugin: CSpinnerPlugin,
|
|
16706
|
+
CTabContent: CTabContent,
|
|
16707
|
+
CTabPane: CTabPane,
|
|
19975
16708
|
CTable: CTable,
|
|
19976
16709
|
CTableBody: CTableBody,
|
|
19977
16710
|
CTableCaption: CTableCaption,
|
|
@@ -19979,27 +16712,26 @@ var Components = /*#__PURE__*/Object.freeze({
|
|
|
19979
16712
|
CTableFoot: CTableFoot,
|
|
19980
16713
|
CTableHead: CTableHead,
|
|
19981
16714
|
CTableHeaderCell: CTableHeaderCell,
|
|
16715
|
+
CTablePlugin: CTablePlugin,
|
|
19982
16716
|
CTableRow: CTableRow,
|
|
19983
16717
|
CTabsPlugin: CTabsPlugin,
|
|
19984
|
-
CTabContent: CTabContent,
|
|
19985
|
-
CTabPane: CTabPane,
|
|
19986
16718
|
CTimePicker: CTimePicker,
|
|
19987
16719
|
CTimePickerPlugin: CTimePickerPlugin,
|
|
19988
|
-
CToastPlugin: CToastPlugin,
|
|
19989
16720
|
CToast: CToast,
|
|
19990
16721
|
CToastBody: CToastBody,
|
|
19991
16722
|
CToastClose: CToastClose,
|
|
19992
|
-
CToaster: CToaster,
|
|
19993
16723
|
CToastHeader: CToastHeader,
|
|
19994
|
-
|
|
16724
|
+
CToastPlugin: CToastPlugin,
|
|
16725
|
+
CToaster: CToaster,
|
|
19995
16726
|
CTooltip: CTooltip,
|
|
19996
|
-
|
|
16727
|
+
CTooltipPlugin: CTooltipPlugin,
|
|
19997
16728
|
CWidgetStatsA: CWidgetStatsA,
|
|
19998
16729
|
CWidgetStatsB: CWidgetStatsB,
|
|
19999
16730
|
CWidgetStatsC: CWidgetStatsC,
|
|
20000
16731
|
CWidgetStatsD: CWidgetStatsD,
|
|
20001
16732
|
CWidgetStatsE: CWidgetStatsE,
|
|
20002
|
-
CWidgetStatsF: CWidgetStatsF
|
|
16733
|
+
CWidgetStatsF: CWidgetStatsF,
|
|
16734
|
+
CWidgetsStatsPlugin: CWidgetsStatsPlugin
|
|
20003
16735
|
});
|
|
20004
16736
|
|
|
20005
16737
|
const BREAKPOINTS = [
|