@everymatrix/casino-tournament-banner 1.56.0 → 1.56.2
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/dist/casino-tournament-banner/casino-tournament-banner.esm.js +1 -1
- package/dist/casino-tournament-banner/p-6e64cd47.entry.js +9 -0
- package/dist/casino-tournament-banner/p-ac8cc1ef.js +2 -0
- package/dist/cjs/casino-tournament-banner.cjs.js +2 -2
- package/dist/cjs/casino-tournament-banner_2.cjs.entry.js +403 -405
- package/dist/cjs/{index-0b07ce8b.js → index-0c7c7ceb.js} +70 -207
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/casino-tournament-banner/casino-tournament-banner.js +26 -82
- package/dist/esm/casino-tournament-banner.js +3 -3
- package/dist/esm/casino-tournament-banner_2.entry.js +403 -405
- package/dist/esm/{index-35b94b68.js → index-4dc9a6b7.js} +70 -207
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/casino-tournament-banner/p-84129bcd.entry.js +0 -9
- package/dist/casino-tournament-banner/p-91da2a22.js +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement, c as createEvent } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement, c as createEvent } from './index-4dc9a6b7.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE$1 = 'en';
|
|
4
4
|
const TRANSLATIONS$1 = {
|
|
@@ -401,7 +401,7 @@ const getTranslations$1 = (data) => {
|
|
|
401
401
|
};
|
|
402
402
|
|
|
403
403
|
//! moment.js
|
|
404
|
-
//! version : 2.
|
|
404
|
+
//! version : 2.29.4
|
|
405
405
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
406
406
|
//! license : MIT
|
|
407
407
|
//! momentjs.com
|
|
@@ -551,25 +551,24 @@ if (Array.prototype.some) {
|
|
|
551
551
|
}
|
|
552
552
|
|
|
553
553
|
function isValid(m) {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
(!flags.meridiem || (flags.meridiem && parsedParts));
|
|
554
|
+
if (m._isValid == null) {
|
|
555
|
+
var flags = getParsingFlags(m),
|
|
556
|
+
parsedParts = some.call(flags.parsedDateParts, function (i) {
|
|
557
|
+
return i != null;
|
|
558
|
+
}),
|
|
559
|
+
isNowValid =
|
|
560
|
+
!isNaN(m._d.getTime()) &&
|
|
561
|
+
flags.overflow < 0 &&
|
|
562
|
+
!flags.empty &&
|
|
563
|
+
!flags.invalidEra &&
|
|
564
|
+
!flags.invalidMonth &&
|
|
565
|
+
!flags.invalidWeekday &&
|
|
566
|
+
!flags.weekdayMismatch &&
|
|
567
|
+
!flags.nullInput &&
|
|
568
|
+
!flags.invalidFormat &&
|
|
569
|
+
!flags.userInvalidated &&
|
|
570
|
+
(!flags.meridiem || (flags.meridiem && parsedParts));
|
|
571
|
+
|
|
573
572
|
if (m._strict) {
|
|
574
573
|
isNowValid =
|
|
575
574
|
isNowValid &&
|
|
@@ -577,11 +576,12 @@ function isValid(m) {
|
|
|
577
576
|
flags.unusedTokens.length === 0 &&
|
|
578
577
|
flags.bigHour === undefined;
|
|
579
578
|
}
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
579
|
+
|
|
580
|
+
if (Object.isFrozen == null || !Object.isFrozen(m)) {
|
|
581
|
+
m._isValid = isNowValid;
|
|
582
|
+
} else {
|
|
583
|
+
return isNowValid;
|
|
584
|
+
}
|
|
585
585
|
}
|
|
586
586
|
return m._isValid;
|
|
587
587
|
}
|
|
@@ -1026,56 +1026,12 @@ function pastFuture(diff, output) {
|
|
|
1026
1026
|
return isFunction(format) ? format(output) : format.replace(/%s/i, output);
|
|
1027
1027
|
}
|
|
1028
1028
|
|
|
1029
|
-
var aliases = {
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
day: 'day',
|
|
1036
|
-
e: 'weekday',
|
|
1037
|
-
weekdays: 'weekday',
|
|
1038
|
-
weekday: 'weekday',
|
|
1039
|
-
E: 'isoWeekday',
|
|
1040
|
-
isoweekdays: 'isoWeekday',
|
|
1041
|
-
isoweekday: 'isoWeekday',
|
|
1042
|
-
DDD: 'dayOfYear',
|
|
1043
|
-
dayofyears: 'dayOfYear',
|
|
1044
|
-
dayofyear: 'dayOfYear',
|
|
1045
|
-
h: 'hour',
|
|
1046
|
-
hours: 'hour',
|
|
1047
|
-
hour: 'hour',
|
|
1048
|
-
ms: 'millisecond',
|
|
1049
|
-
milliseconds: 'millisecond',
|
|
1050
|
-
millisecond: 'millisecond',
|
|
1051
|
-
m: 'minute',
|
|
1052
|
-
minutes: 'minute',
|
|
1053
|
-
minute: 'minute',
|
|
1054
|
-
M: 'month',
|
|
1055
|
-
months: 'month',
|
|
1056
|
-
month: 'month',
|
|
1057
|
-
Q: 'quarter',
|
|
1058
|
-
quarters: 'quarter',
|
|
1059
|
-
quarter: 'quarter',
|
|
1060
|
-
s: 'second',
|
|
1061
|
-
seconds: 'second',
|
|
1062
|
-
second: 'second',
|
|
1063
|
-
gg: 'weekYear',
|
|
1064
|
-
weekyears: 'weekYear',
|
|
1065
|
-
weekyear: 'weekYear',
|
|
1066
|
-
GG: 'isoWeekYear',
|
|
1067
|
-
isoweekyears: 'isoWeekYear',
|
|
1068
|
-
isoweekyear: 'isoWeekYear',
|
|
1069
|
-
w: 'week',
|
|
1070
|
-
weeks: 'week',
|
|
1071
|
-
week: 'week',
|
|
1072
|
-
W: 'isoWeek',
|
|
1073
|
-
isoweeks: 'isoWeek',
|
|
1074
|
-
isoweek: 'isoWeek',
|
|
1075
|
-
y: 'year',
|
|
1076
|
-
years: 'year',
|
|
1077
|
-
year: 'year',
|
|
1078
|
-
};
|
|
1029
|
+
var aliases = {};
|
|
1030
|
+
|
|
1031
|
+
function addUnitAlias(unit, shorthand) {
|
|
1032
|
+
var lowerCase = unit.toLowerCase();
|
|
1033
|
+
aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
|
|
1034
|
+
}
|
|
1079
1035
|
|
|
1080
1036
|
function normalizeUnits(units) {
|
|
1081
1037
|
return typeof units === 'string'
|
|
@@ -1100,24 +1056,11 @@ function normalizeObjectUnits(inputObject) {
|
|
|
1100
1056
|
return normalizedInput;
|
|
1101
1057
|
}
|
|
1102
1058
|
|
|
1103
|
-
var priorities = {
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
dayOfYear: 4,
|
|
1109
|
-
hour: 13,
|
|
1110
|
-
millisecond: 16,
|
|
1111
|
-
minute: 14,
|
|
1112
|
-
month: 8,
|
|
1113
|
-
quarter: 7,
|
|
1114
|
-
second: 15,
|
|
1115
|
-
weekYear: 1,
|
|
1116
|
-
isoWeekYear: 1,
|
|
1117
|
-
week: 5,
|
|
1118
|
-
isoWeek: 5,
|
|
1119
|
-
year: 1,
|
|
1120
|
-
};
|
|
1059
|
+
var priorities = {};
|
|
1060
|
+
|
|
1061
|
+
function addUnitPriority(unit, priority) {
|
|
1062
|
+
priorities[unit] = priority;
|
|
1063
|
+
}
|
|
1121
1064
|
|
|
1122
1065
|
function getPrioritizedUnits(unitsObj) {
|
|
1123
1066
|
var units = [],
|
|
@@ -1133,6 +1076,96 @@ function getPrioritizedUnits(unitsObj) {
|
|
|
1133
1076
|
return units;
|
|
1134
1077
|
}
|
|
1135
1078
|
|
|
1079
|
+
function isLeapYear(year) {
|
|
1080
|
+
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
function absFloor(number) {
|
|
1084
|
+
if (number < 0) {
|
|
1085
|
+
// -0 -> 0
|
|
1086
|
+
return Math.ceil(number) || 0;
|
|
1087
|
+
} else {
|
|
1088
|
+
return Math.floor(number);
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
function toInt(argumentForCoercion) {
|
|
1093
|
+
var coercedNumber = +argumentForCoercion,
|
|
1094
|
+
value = 0;
|
|
1095
|
+
|
|
1096
|
+
if (coercedNumber !== 0 && isFinite(coercedNumber)) {
|
|
1097
|
+
value = absFloor(coercedNumber);
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
return value;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
function makeGetSet(unit, keepTime) {
|
|
1104
|
+
return function (value) {
|
|
1105
|
+
if (value != null) {
|
|
1106
|
+
set$1(this, unit, value);
|
|
1107
|
+
hooks.updateOffset(this, keepTime);
|
|
1108
|
+
return this;
|
|
1109
|
+
} else {
|
|
1110
|
+
return get(this, unit);
|
|
1111
|
+
}
|
|
1112
|
+
};
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
function get(mom, unit) {
|
|
1116
|
+
return mom.isValid()
|
|
1117
|
+
? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()
|
|
1118
|
+
: NaN;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
function set$1(mom, unit, value) {
|
|
1122
|
+
if (mom.isValid() && !isNaN(value)) {
|
|
1123
|
+
if (
|
|
1124
|
+
unit === 'FullYear' &&
|
|
1125
|
+
isLeapYear(mom.year()) &&
|
|
1126
|
+
mom.month() === 1 &&
|
|
1127
|
+
mom.date() === 29
|
|
1128
|
+
) {
|
|
1129
|
+
value = toInt(value);
|
|
1130
|
+
mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](
|
|
1131
|
+
value,
|
|
1132
|
+
mom.month(),
|
|
1133
|
+
daysInMonth(value, mom.month())
|
|
1134
|
+
);
|
|
1135
|
+
} else {
|
|
1136
|
+
mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
// MOMENTS
|
|
1142
|
+
|
|
1143
|
+
function stringGet(units) {
|
|
1144
|
+
units = normalizeUnits(units);
|
|
1145
|
+
if (isFunction(this[units])) {
|
|
1146
|
+
return this[units]();
|
|
1147
|
+
}
|
|
1148
|
+
return this;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
function stringSet(units, value) {
|
|
1152
|
+
if (typeof units === 'object') {
|
|
1153
|
+
units = normalizeObjectUnits(units);
|
|
1154
|
+
var prioritized = getPrioritizedUnits(units),
|
|
1155
|
+
i,
|
|
1156
|
+
prioritizedLen = prioritized.length;
|
|
1157
|
+
for (i = 0; i < prioritizedLen; i++) {
|
|
1158
|
+
this[prioritized[i].unit](units[prioritized[i].unit]);
|
|
1159
|
+
}
|
|
1160
|
+
} else {
|
|
1161
|
+
units = normalizeUnits(units);
|
|
1162
|
+
if (isFunction(this[units])) {
|
|
1163
|
+
return this[units](value);
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
return this;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1136
1169
|
var match1 = /\d/, // 0 - 9
|
|
1137
1170
|
match2 = /\d\d/, // 00 - 99
|
|
1138
1171
|
match3 = /\d{3}/, // 000 - 999
|
|
@@ -1153,8 +1186,6 @@ var match1 = /\d/, // 0 - 9
|
|
|
1153
1186
|
// includes scottish gaelic two word and hyphenated months
|
|
1154
1187
|
matchWord =
|
|
1155
1188
|
/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
|
|
1156
|
-
match1to2NoLeadingZero = /^[1-9]\d?/, // 1-99
|
|
1157
|
-
match1to2HasZero = /^([1-9]\d|\d)/, // 0-99
|
|
1158
1189
|
regexes;
|
|
1159
1190
|
|
|
1160
1191
|
regexes = {};
|
|
@@ -1193,26 +1224,6 @@ function regexEscape(s) {
|
|
|
1193
1224
|
return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
1194
1225
|
}
|
|
1195
1226
|
|
|
1196
|
-
function absFloor(number) {
|
|
1197
|
-
if (number < 0) {
|
|
1198
|
-
// -0 -> 0
|
|
1199
|
-
return Math.ceil(number) || 0;
|
|
1200
|
-
} else {
|
|
1201
|
-
return Math.floor(number);
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
function toInt(argumentForCoercion) {
|
|
1206
|
-
var coercedNumber = +argumentForCoercion,
|
|
1207
|
-
value = 0;
|
|
1208
|
-
|
|
1209
|
-
if (coercedNumber !== 0 && isFinite(coercedNumber)) {
|
|
1210
|
-
value = absFloor(coercedNumber);
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
return value;
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
1227
|
var tokens = {};
|
|
1217
1228
|
|
|
1218
1229
|
function addParseToken(token, callback) {
|
|
@@ -1246,10 +1257,6 @@ function addTimeToArrayFromToken(token, input, config) {
|
|
|
1246
1257
|
}
|
|
1247
1258
|
}
|
|
1248
1259
|
|
|
1249
|
-
function isLeapYear(year) {
|
|
1250
|
-
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
|
|
1251
|
-
}
|
|
1252
|
-
|
|
1253
1260
|
var YEAR = 0,
|
|
1254
1261
|
MONTH = 1,
|
|
1255
1262
|
DATE = 2,
|
|
@@ -1260,173 +1267,6 @@ var YEAR = 0,
|
|
|
1260
1267
|
WEEK = 7,
|
|
1261
1268
|
WEEKDAY = 8;
|
|
1262
1269
|
|
|
1263
|
-
// FORMATTING
|
|
1264
|
-
|
|
1265
|
-
addFormatToken('Y', 0, 0, function () {
|
|
1266
|
-
var y = this.year();
|
|
1267
|
-
return y <= 9999 ? zeroFill(y, 4) : '+' + y;
|
|
1268
|
-
});
|
|
1269
|
-
|
|
1270
|
-
addFormatToken(0, ['YY', 2], 0, function () {
|
|
1271
|
-
return this.year() % 100;
|
|
1272
|
-
});
|
|
1273
|
-
|
|
1274
|
-
addFormatToken(0, ['YYYY', 4], 0, 'year');
|
|
1275
|
-
addFormatToken(0, ['YYYYY', 5], 0, 'year');
|
|
1276
|
-
addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
|
|
1277
|
-
|
|
1278
|
-
// PARSING
|
|
1279
|
-
|
|
1280
|
-
addRegexToken('Y', matchSigned);
|
|
1281
|
-
addRegexToken('YY', match1to2, match2);
|
|
1282
|
-
addRegexToken('YYYY', match1to4, match4);
|
|
1283
|
-
addRegexToken('YYYYY', match1to6, match6);
|
|
1284
|
-
addRegexToken('YYYYYY', match1to6, match6);
|
|
1285
|
-
|
|
1286
|
-
addParseToken(['YYYYY', 'YYYYYY'], YEAR);
|
|
1287
|
-
addParseToken('YYYY', function (input, array) {
|
|
1288
|
-
array[YEAR] =
|
|
1289
|
-
input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
|
|
1290
|
-
});
|
|
1291
|
-
addParseToken('YY', function (input, array) {
|
|
1292
|
-
array[YEAR] = hooks.parseTwoDigitYear(input);
|
|
1293
|
-
});
|
|
1294
|
-
addParseToken('Y', function (input, array) {
|
|
1295
|
-
array[YEAR] = parseInt(input, 10);
|
|
1296
|
-
});
|
|
1297
|
-
|
|
1298
|
-
// HELPERS
|
|
1299
|
-
|
|
1300
|
-
function daysInYear(year) {
|
|
1301
|
-
return isLeapYear(year) ? 366 : 365;
|
|
1302
|
-
}
|
|
1303
|
-
|
|
1304
|
-
// HOOKS
|
|
1305
|
-
|
|
1306
|
-
hooks.parseTwoDigitYear = function (input) {
|
|
1307
|
-
return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
|
|
1308
|
-
};
|
|
1309
|
-
|
|
1310
|
-
// MOMENTS
|
|
1311
|
-
|
|
1312
|
-
var getSetYear = makeGetSet('FullYear', true);
|
|
1313
|
-
|
|
1314
|
-
function getIsLeapYear() {
|
|
1315
|
-
return isLeapYear(this.year());
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
function makeGetSet(unit, keepTime) {
|
|
1319
|
-
return function (value) {
|
|
1320
|
-
if (value != null) {
|
|
1321
|
-
set$1(this, unit, value);
|
|
1322
|
-
hooks.updateOffset(this, keepTime);
|
|
1323
|
-
return this;
|
|
1324
|
-
} else {
|
|
1325
|
-
return get(this, unit);
|
|
1326
|
-
}
|
|
1327
|
-
};
|
|
1328
|
-
}
|
|
1329
|
-
|
|
1330
|
-
function get(mom, unit) {
|
|
1331
|
-
if (!mom.isValid()) {
|
|
1332
|
-
return NaN;
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
var d = mom._d,
|
|
1336
|
-
isUTC = mom._isUTC;
|
|
1337
|
-
|
|
1338
|
-
switch (unit) {
|
|
1339
|
-
case 'Milliseconds':
|
|
1340
|
-
return isUTC ? d.getUTCMilliseconds() : d.getMilliseconds();
|
|
1341
|
-
case 'Seconds':
|
|
1342
|
-
return isUTC ? d.getUTCSeconds() : d.getSeconds();
|
|
1343
|
-
case 'Minutes':
|
|
1344
|
-
return isUTC ? d.getUTCMinutes() : d.getMinutes();
|
|
1345
|
-
case 'Hours':
|
|
1346
|
-
return isUTC ? d.getUTCHours() : d.getHours();
|
|
1347
|
-
case 'Date':
|
|
1348
|
-
return isUTC ? d.getUTCDate() : d.getDate();
|
|
1349
|
-
case 'Day':
|
|
1350
|
-
return isUTC ? d.getUTCDay() : d.getDay();
|
|
1351
|
-
case 'Month':
|
|
1352
|
-
return isUTC ? d.getUTCMonth() : d.getMonth();
|
|
1353
|
-
case 'FullYear':
|
|
1354
|
-
return isUTC ? d.getUTCFullYear() : d.getFullYear();
|
|
1355
|
-
default:
|
|
1356
|
-
return NaN; // Just in case
|
|
1357
|
-
}
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
function set$1(mom, unit, value) {
|
|
1361
|
-
var d, isUTC, year, month, date;
|
|
1362
|
-
|
|
1363
|
-
if (!mom.isValid() || isNaN(value)) {
|
|
1364
|
-
return;
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
d = mom._d;
|
|
1368
|
-
isUTC = mom._isUTC;
|
|
1369
|
-
|
|
1370
|
-
switch (unit) {
|
|
1371
|
-
case 'Milliseconds':
|
|
1372
|
-
return void (isUTC
|
|
1373
|
-
? d.setUTCMilliseconds(value)
|
|
1374
|
-
: d.setMilliseconds(value));
|
|
1375
|
-
case 'Seconds':
|
|
1376
|
-
return void (isUTC ? d.setUTCSeconds(value) : d.setSeconds(value));
|
|
1377
|
-
case 'Minutes':
|
|
1378
|
-
return void (isUTC ? d.setUTCMinutes(value) : d.setMinutes(value));
|
|
1379
|
-
case 'Hours':
|
|
1380
|
-
return void (isUTC ? d.setUTCHours(value) : d.setHours(value));
|
|
1381
|
-
case 'Date':
|
|
1382
|
-
return void (isUTC ? d.setUTCDate(value) : d.setDate(value));
|
|
1383
|
-
// case 'Day': // Not real
|
|
1384
|
-
// return void (isUTC ? d.setUTCDay(value) : d.setDay(value));
|
|
1385
|
-
// case 'Month': // Not used because we need to pass two variables
|
|
1386
|
-
// return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));
|
|
1387
|
-
case 'FullYear':
|
|
1388
|
-
break; // See below ...
|
|
1389
|
-
default:
|
|
1390
|
-
return; // Just in case
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
|
-
year = value;
|
|
1394
|
-
month = mom.month();
|
|
1395
|
-
date = mom.date();
|
|
1396
|
-
date = date === 29 && month === 1 && !isLeapYear(year) ? 28 : date;
|
|
1397
|
-
void (isUTC
|
|
1398
|
-
? d.setUTCFullYear(year, month, date)
|
|
1399
|
-
: d.setFullYear(year, month, date));
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
// MOMENTS
|
|
1403
|
-
|
|
1404
|
-
function stringGet(units) {
|
|
1405
|
-
units = normalizeUnits(units);
|
|
1406
|
-
if (isFunction(this[units])) {
|
|
1407
|
-
return this[units]();
|
|
1408
|
-
}
|
|
1409
|
-
return this;
|
|
1410
|
-
}
|
|
1411
|
-
|
|
1412
|
-
function stringSet(units, value) {
|
|
1413
|
-
if (typeof units === 'object') {
|
|
1414
|
-
units = normalizeObjectUnits(units);
|
|
1415
|
-
var prioritized = getPrioritizedUnits(units),
|
|
1416
|
-
i,
|
|
1417
|
-
prioritizedLen = prioritized.length;
|
|
1418
|
-
for (i = 0; i < prioritizedLen; i++) {
|
|
1419
|
-
this[prioritized[i].unit](units[prioritized[i].unit]);
|
|
1420
|
-
}
|
|
1421
|
-
} else {
|
|
1422
|
-
units = normalizeUnits(units);
|
|
1423
|
-
if (isFunction(this[units])) {
|
|
1424
|
-
return this[units](value);
|
|
1425
|
-
}
|
|
1426
|
-
}
|
|
1427
|
-
return this;
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
1270
|
function mod(n, x) {
|
|
1431
1271
|
return ((n % x) + x) % x;
|
|
1432
1272
|
}
|
|
@@ -1475,9 +1315,17 @@ addFormatToken('MMMM', 0, 0, function (format) {
|
|
|
1475
1315
|
return this.localeData().months(this, format);
|
|
1476
1316
|
});
|
|
1477
1317
|
|
|
1318
|
+
// ALIASES
|
|
1319
|
+
|
|
1320
|
+
addUnitAlias('month', 'M');
|
|
1321
|
+
|
|
1322
|
+
// PRIORITY
|
|
1323
|
+
|
|
1324
|
+
addUnitPriority('month', 8);
|
|
1325
|
+
|
|
1478
1326
|
// PARSING
|
|
1479
1327
|
|
|
1480
|
-
addRegexToken('M', match1to2
|
|
1328
|
+
addRegexToken('M', match1to2);
|
|
1481
1329
|
addRegexToken('MM', match1to2, match2);
|
|
1482
1330
|
addRegexToken('MMM', function (isStrict, locale) {
|
|
1483
1331
|
return locale.monthsShortRegex(isStrict);
|
|
@@ -1643,6 +1491,8 @@ function localeMonthsParse(monthName, format, strict) {
|
|
|
1643
1491
|
// MOMENTS
|
|
1644
1492
|
|
|
1645
1493
|
function setMonth(mom, value) {
|
|
1494
|
+
var dayOfMonth;
|
|
1495
|
+
|
|
1646
1496
|
if (!mom.isValid()) {
|
|
1647
1497
|
// No op
|
|
1648
1498
|
return mom;
|
|
@@ -1660,13 +1510,8 @@ function setMonth(mom, value) {
|
|
|
1660
1510
|
}
|
|
1661
1511
|
}
|
|
1662
1512
|
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
date = date < 29 ? date : Math.min(date, daysInMonth(mom.year(), month));
|
|
1667
|
-
void (mom._isUTC
|
|
1668
|
-
? mom._d.setUTCMonth(month, date)
|
|
1669
|
-
: mom._d.setMonth(month, date));
|
|
1513
|
+
dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
|
|
1514
|
+
mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
|
|
1670
1515
|
return mom;
|
|
1671
1516
|
}
|
|
1672
1517
|
|
|
@@ -1733,24 +1578,27 @@ function computeMonthsParse() {
|
|
|
1733
1578
|
longPieces = [],
|
|
1734
1579
|
mixedPieces = [],
|
|
1735
1580
|
i,
|
|
1736
|
-
mom
|
|
1737
|
-
shortP,
|
|
1738
|
-
longP;
|
|
1581
|
+
mom;
|
|
1739
1582
|
for (i = 0; i < 12; i++) {
|
|
1740
1583
|
// make the regex if we don't have it already
|
|
1741
1584
|
mom = createUTC([2000, i]);
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
mixedPieces.push(longP);
|
|
1747
|
-
mixedPieces.push(shortP);
|
|
1585
|
+
shortPieces.push(this.monthsShort(mom, ''));
|
|
1586
|
+
longPieces.push(this.months(mom, ''));
|
|
1587
|
+
mixedPieces.push(this.months(mom, ''));
|
|
1588
|
+
mixedPieces.push(this.monthsShort(mom, ''));
|
|
1748
1589
|
}
|
|
1749
1590
|
// Sorting makes sure if one month (or abbr) is a prefix of another it
|
|
1750
1591
|
// will match the longer piece.
|
|
1751
1592
|
shortPieces.sort(cmpLenRev);
|
|
1752
1593
|
longPieces.sort(cmpLenRev);
|
|
1753
1594
|
mixedPieces.sort(cmpLenRev);
|
|
1595
|
+
for (i = 0; i < 12; i++) {
|
|
1596
|
+
shortPieces[i] = regexEscape(shortPieces[i]);
|
|
1597
|
+
longPieces[i] = regexEscape(longPieces[i]);
|
|
1598
|
+
}
|
|
1599
|
+
for (i = 0; i < 24; i++) {
|
|
1600
|
+
mixedPieces[i] = regexEscape(mixedPieces[i]);
|
|
1601
|
+
}
|
|
1754
1602
|
|
|
1755
1603
|
this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
|
|
1756
1604
|
this._monthsShortRegex = this._monthsRegex;
|
|
@@ -1764,6 +1612,69 @@ function computeMonthsParse() {
|
|
|
1764
1612
|
);
|
|
1765
1613
|
}
|
|
1766
1614
|
|
|
1615
|
+
// FORMATTING
|
|
1616
|
+
|
|
1617
|
+
addFormatToken('Y', 0, 0, function () {
|
|
1618
|
+
var y = this.year();
|
|
1619
|
+
return y <= 9999 ? zeroFill(y, 4) : '+' + y;
|
|
1620
|
+
});
|
|
1621
|
+
|
|
1622
|
+
addFormatToken(0, ['YY', 2], 0, function () {
|
|
1623
|
+
return this.year() % 100;
|
|
1624
|
+
});
|
|
1625
|
+
|
|
1626
|
+
addFormatToken(0, ['YYYY', 4], 0, 'year');
|
|
1627
|
+
addFormatToken(0, ['YYYYY', 5], 0, 'year');
|
|
1628
|
+
addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
|
|
1629
|
+
|
|
1630
|
+
// ALIASES
|
|
1631
|
+
|
|
1632
|
+
addUnitAlias('year', 'y');
|
|
1633
|
+
|
|
1634
|
+
// PRIORITIES
|
|
1635
|
+
|
|
1636
|
+
addUnitPriority('year', 1);
|
|
1637
|
+
|
|
1638
|
+
// PARSING
|
|
1639
|
+
|
|
1640
|
+
addRegexToken('Y', matchSigned);
|
|
1641
|
+
addRegexToken('YY', match1to2, match2);
|
|
1642
|
+
addRegexToken('YYYY', match1to4, match4);
|
|
1643
|
+
addRegexToken('YYYYY', match1to6, match6);
|
|
1644
|
+
addRegexToken('YYYYYY', match1to6, match6);
|
|
1645
|
+
|
|
1646
|
+
addParseToken(['YYYYY', 'YYYYYY'], YEAR);
|
|
1647
|
+
addParseToken('YYYY', function (input, array) {
|
|
1648
|
+
array[YEAR] =
|
|
1649
|
+
input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
|
|
1650
|
+
});
|
|
1651
|
+
addParseToken('YY', function (input, array) {
|
|
1652
|
+
array[YEAR] = hooks.parseTwoDigitYear(input);
|
|
1653
|
+
});
|
|
1654
|
+
addParseToken('Y', function (input, array) {
|
|
1655
|
+
array[YEAR] = parseInt(input, 10);
|
|
1656
|
+
});
|
|
1657
|
+
|
|
1658
|
+
// HELPERS
|
|
1659
|
+
|
|
1660
|
+
function daysInYear(year) {
|
|
1661
|
+
return isLeapYear(year) ? 366 : 365;
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
// HOOKS
|
|
1665
|
+
|
|
1666
|
+
hooks.parseTwoDigitYear = function (input) {
|
|
1667
|
+
return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
|
|
1668
|
+
};
|
|
1669
|
+
|
|
1670
|
+
// MOMENTS
|
|
1671
|
+
|
|
1672
|
+
var getSetYear = makeGetSet('FullYear', true);
|
|
1673
|
+
|
|
1674
|
+
function getIsLeapYear() {
|
|
1675
|
+
return isLeapYear(this.year());
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1767
1678
|
function createDate(y, m, d, h, M, s, ms) {
|
|
1768
1679
|
// can't just apply() to create a date:
|
|
1769
1680
|
// https://stackoverflow.com/q/181348
|
|
@@ -1869,11 +1780,21 @@ function weeksInYear(year, dow, doy) {
|
|
|
1869
1780
|
addFormatToken('w', ['ww', 2], 'wo', 'week');
|
|
1870
1781
|
addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
|
|
1871
1782
|
|
|
1783
|
+
// ALIASES
|
|
1784
|
+
|
|
1785
|
+
addUnitAlias('week', 'w');
|
|
1786
|
+
addUnitAlias('isoWeek', 'W');
|
|
1787
|
+
|
|
1788
|
+
// PRIORITIES
|
|
1789
|
+
|
|
1790
|
+
addUnitPriority('week', 5);
|
|
1791
|
+
addUnitPriority('isoWeek', 5);
|
|
1792
|
+
|
|
1872
1793
|
// PARSING
|
|
1873
1794
|
|
|
1874
|
-
addRegexToken('w', match1to2
|
|
1795
|
+
addRegexToken('w', match1to2);
|
|
1875
1796
|
addRegexToken('ww', match1to2, match2);
|
|
1876
|
-
addRegexToken('W', match1to2
|
|
1797
|
+
addRegexToken('W', match1to2);
|
|
1877
1798
|
addRegexToken('WW', match1to2, match2);
|
|
1878
1799
|
|
|
1879
1800
|
addWeekParseToken(
|
|
@@ -1935,6 +1856,17 @@ addFormatToken('dddd', 0, 0, function (format) {
|
|
|
1935
1856
|
addFormatToken('e', 0, 0, 'weekday');
|
|
1936
1857
|
addFormatToken('E', 0, 0, 'isoWeekday');
|
|
1937
1858
|
|
|
1859
|
+
// ALIASES
|
|
1860
|
+
|
|
1861
|
+
addUnitAlias('day', 'd');
|
|
1862
|
+
addUnitAlias('weekday', 'e');
|
|
1863
|
+
addUnitAlias('isoWeekday', 'E');
|
|
1864
|
+
|
|
1865
|
+
// PRIORITY
|
|
1866
|
+
addUnitPriority('day', 11);
|
|
1867
|
+
addUnitPriority('weekday', 11);
|
|
1868
|
+
addUnitPriority('isoWeekday', 11);
|
|
1869
|
+
|
|
1938
1870
|
// PARSING
|
|
1939
1871
|
|
|
1940
1872
|
addRegexToken('d', match1to2);
|
|
@@ -2014,24 +1946,24 @@ function localeWeekdays(m, format) {
|
|
|
2014
1946
|
return m === true
|
|
2015
1947
|
? shiftWeekdays(weekdays, this._week.dow)
|
|
2016
1948
|
: m
|
|
2017
|
-
|
|
2018
|
-
|
|
1949
|
+
? weekdays[m.day()]
|
|
1950
|
+
: weekdays;
|
|
2019
1951
|
}
|
|
2020
1952
|
|
|
2021
1953
|
function localeWeekdaysShort(m) {
|
|
2022
1954
|
return m === true
|
|
2023
1955
|
? shiftWeekdays(this._weekdaysShort, this._week.dow)
|
|
2024
1956
|
: m
|
|
2025
|
-
|
|
2026
|
-
|
|
1957
|
+
? this._weekdaysShort[m.day()]
|
|
1958
|
+
: this._weekdaysShort;
|
|
2027
1959
|
}
|
|
2028
1960
|
|
|
2029
1961
|
function localeWeekdaysMin(m) {
|
|
2030
1962
|
return m === true
|
|
2031
1963
|
? shiftWeekdays(this._weekdaysMin, this._week.dow)
|
|
2032
1964
|
: m
|
|
2033
|
-
|
|
2034
|
-
|
|
1965
|
+
? this._weekdaysMin[m.day()]
|
|
1966
|
+
: this._weekdaysMin;
|
|
2035
1967
|
}
|
|
2036
1968
|
|
|
2037
1969
|
function handleStrictParse$1(weekdayName, format, strict) {
|
|
@@ -2180,8 +2112,7 @@ function getSetDayOfWeek(input) {
|
|
|
2180
2112
|
if (!this.isValid()) {
|
|
2181
2113
|
return input != null ? this : NaN;
|
|
2182
2114
|
}
|
|
2183
|
-
|
|
2184
|
-
var day = get(this, 'Day');
|
|
2115
|
+
var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
|
|
2185
2116
|
if (input != null) {
|
|
2186
2117
|
input = parseWeekday(input, this.localeData());
|
|
2187
2118
|
return this.add(input - day, 'd');
|
|
@@ -2380,6 +2311,13 @@ function meridiem(token, lowercase) {
|
|
|
2380
2311
|
meridiem('a', true);
|
|
2381
2312
|
meridiem('A', false);
|
|
2382
2313
|
|
|
2314
|
+
// ALIASES
|
|
2315
|
+
|
|
2316
|
+
addUnitAlias('hour', 'h');
|
|
2317
|
+
|
|
2318
|
+
// PRIORITY
|
|
2319
|
+
addUnitPriority('hour', 13);
|
|
2320
|
+
|
|
2383
2321
|
// PARSING
|
|
2384
2322
|
|
|
2385
2323
|
function matchMeridiem(isStrict, locale) {
|
|
@@ -2388,9 +2326,9 @@ function matchMeridiem(isStrict, locale) {
|
|
|
2388
2326
|
|
|
2389
2327
|
addRegexToken('a', matchMeridiem);
|
|
2390
2328
|
addRegexToken('A', matchMeridiem);
|
|
2391
|
-
addRegexToken('H', match1to2
|
|
2392
|
-
addRegexToken('h', match1to2
|
|
2393
|
-
addRegexToken('k', match1to2
|
|
2329
|
+
addRegexToken('H', match1to2);
|
|
2330
|
+
addRegexToken('h', match1to2);
|
|
2331
|
+
addRegexToken('k', match1to2);
|
|
2394
2332
|
addRegexToken('HH', match1to2, match2);
|
|
2395
2333
|
addRegexToken('hh', match1to2, match2);
|
|
2396
2334
|
addRegexToken('kk', match1to2, match2);
|
|
@@ -2540,8 +2478,7 @@ function chooseLocale(names) {
|
|
|
2540
2478
|
|
|
2541
2479
|
function isLocaleNameSane(name) {
|
|
2542
2480
|
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
|
2543
|
-
|
|
2544
|
-
return !!(name && name.match('^[^/\\\\]*$'));
|
|
2481
|
+
return name.match('^[^/\\\\]*$') != null;
|
|
2545
2482
|
}
|
|
2546
2483
|
|
|
2547
2484
|
function loadLocale(name) {
|
|
@@ -2733,21 +2670,21 @@ function checkOverflow(m) {
|
|
|
2733
2670
|
a[MONTH] < 0 || a[MONTH] > 11
|
|
2734
2671
|
? MONTH
|
|
2735
2672
|
: a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2673
|
+
? DATE
|
|
2674
|
+
: a[HOUR] < 0 ||
|
|
2675
|
+
a[HOUR] > 24 ||
|
|
2676
|
+
(a[HOUR] === 24 &&
|
|
2677
|
+
(a[MINUTE] !== 0 ||
|
|
2678
|
+
a[SECOND] !== 0 ||
|
|
2679
|
+
a[MILLISECOND] !== 0))
|
|
2680
|
+
? HOUR
|
|
2681
|
+
: a[MINUTE] < 0 || a[MINUTE] > 59
|
|
2682
|
+
? MINUTE
|
|
2683
|
+
: a[SECOND] < 0 || a[SECOND] > 59
|
|
2684
|
+
? SECOND
|
|
2685
|
+
: a[MILLISECOND] < 0 || a[MILLISECOND] > 999
|
|
2686
|
+
? MILLISECOND
|
|
2687
|
+
: -1;
|
|
2751
2688
|
|
|
2752
2689
|
if (
|
|
2753
2690
|
getParsingFlags(m)._overflowDayOfYear &&
|
|
@@ -4188,16 +4125,16 @@ function getCalendarFormat(myMoment, now) {
|
|
|
4188
4125
|
return diff < -6
|
|
4189
4126
|
? 'sameElse'
|
|
4190
4127
|
: diff < -1
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4128
|
+
? 'lastWeek'
|
|
4129
|
+
: diff < 0
|
|
4130
|
+
? 'lastDay'
|
|
4131
|
+
: diff < 1
|
|
4132
|
+
? 'sameDay'
|
|
4133
|
+
: diff < 2
|
|
4134
|
+
? 'nextDay'
|
|
4135
|
+
: diff < 7
|
|
4136
|
+
? 'nextWeek'
|
|
4137
|
+
: 'sameElse';
|
|
4201
4138
|
}
|
|
4202
4139
|
|
|
4203
4140
|
function calendar$1(time, formats) {
|
|
@@ -5005,22 +4942,16 @@ function computeErasParse() {
|
|
|
5005
4942
|
mixedPieces = [],
|
|
5006
4943
|
i,
|
|
5007
4944
|
l,
|
|
5008
|
-
erasName,
|
|
5009
|
-
erasAbbr,
|
|
5010
|
-
erasNarrow,
|
|
5011
4945
|
eras = this.eras();
|
|
5012
4946
|
|
|
5013
4947
|
for (i = 0, l = eras.length; i < l; ++i) {
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
4948
|
+
namePieces.push(regexEscape(eras[i].name));
|
|
4949
|
+
abbrPieces.push(regexEscape(eras[i].abbr));
|
|
4950
|
+
narrowPieces.push(regexEscape(eras[i].narrow));
|
|
5017
4951
|
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
mixedPieces.push(erasName);
|
|
5022
|
-
mixedPieces.push(erasAbbr);
|
|
5023
|
-
mixedPieces.push(erasNarrow);
|
|
4952
|
+
mixedPieces.push(regexEscape(eras[i].name));
|
|
4953
|
+
mixedPieces.push(regexEscape(eras[i].abbr));
|
|
4954
|
+
mixedPieces.push(regexEscape(eras[i].narrow));
|
|
5024
4955
|
}
|
|
5025
4956
|
|
|
5026
4957
|
this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
|
|
@@ -5053,6 +4984,14 @@ addWeekYearFormatToken('GGGGG', 'isoWeekYear');
|
|
|
5053
4984
|
|
|
5054
4985
|
// ALIASES
|
|
5055
4986
|
|
|
4987
|
+
addUnitAlias('weekYear', 'gg');
|
|
4988
|
+
addUnitAlias('isoWeekYear', 'GG');
|
|
4989
|
+
|
|
4990
|
+
// PRIORITY
|
|
4991
|
+
|
|
4992
|
+
addUnitPriority('weekYear', 1);
|
|
4993
|
+
addUnitPriority('isoWeekYear', 1);
|
|
4994
|
+
|
|
5056
4995
|
// PARSING
|
|
5057
4996
|
|
|
5058
4997
|
addRegexToken('G', matchSigned);
|
|
@@ -5082,7 +5021,7 @@ function getSetWeekYear(input) {
|
|
|
5082
5021
|
this,
|
|
5083
5022
|
input,
|
|
5084
5023
|
this.week(),
|
|
5085
|
-
this.weekday()
|
|
5024
|
+
this.weekday(),
|
|
5086
5025
|
this.localeData()._week.dow,
|
|
5087
5026
|
this.localeData()._week.doy
|
|
5088
5027
|
);
|
|
@@ -5144,6 +5083,14 @@ function setWeekAll(weekYear, week, weekday, dow, doy) {
|
|
|
5144
5083
|
|
|
5145
5084
|
addFormatToken('Q', 0, 'Qo', 'quarter');
|
|
5146
5085
|
|
|
5086
|
+
// ALIASES
|
|
5087
|
+
|
|
5088
|
+
addUnitAlias('quarter', 'Q');
|
|
5089
|
+
|
|
5090
|
+
// PRIORITY
|
|
5091
|
+
|
|
5092
|
+
addUnitPriority('quarter', 7);
|
|
5093
|
+
|
|
5147
5094
|
// PARSING
|
|
5148
5095
|
|
|
5149
5096
|
addRegexToken('Q', match1);
|
|
@@ -5163,9 +5110,16 @@ function getSetQuarter(input) {
|
|
|
5163
5110
|
|
|
5164
5111
|
addFormatToken('D', ['DD', 2], 'Do', 'date');
|
|
5165
5112
|
|
|
5113
|
+
// ALIASES
|
|
5114
|
+
|
|
5115
|
+
addUnitAlias('date', 'D');
|
|
5116
|
+
|
|
5117
|
+
// PRIORITY
|
|
5118
|
+
addUnitPriority('date', 9);
|
|
5119
|
+
|
|
5166
5120
|
// PARSING
|
|
5167
5121
|
|
|
5168
|
-
addRegexToken('D', match1to2
|
|
5122
|
+
addRegexToken('D', match1to2);
|
|
5169
5123
|
addRegexToken('DD', match1to2, match2);
|
|
5170
5124
|
addRegexToken('Do', function (isStrict, locale) {
|
|
5171
5125
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
@@ -5187,6 +5141,13 @@ var getSetDayOfMonth = makeGetSet('Date', true);
|
|
|
5187
5141
|
|
|
5188
5142
|
addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
|
|
5189
5143
|
|
|
5144
|
+
// ALIASES
|
|
5145
|
+
|
|
5146
|
+
addUnitAlias('dayOfYear', 'DDD');
|
|
5147
|
+
|
|
5148
|
+
// PRIORITY
|
|
5149
|
+
addUnitPriority('dayOfYear', 4);
|
|
5150
|
+
|
|
5190
5151
|
// PARSING
|
|
5191
5152
|
|
|
5192
5153
|
addRegexToken('DDD', match1to3);
|
|
@@ -5211,9 +5172,17 @@ function getSetDayOfYear(input) {
|
|
|
5211
5172
|
|
|
5212
5173
|
addFormatToken('m', ['mm', 2], 0, 'minute');
|
|
5213
5174
|
|
|
5175
|
+
// ALIASES
|
|
5176
|
+
|
|
5177
|
+
addUnitAlias('minute', 'm');
|
|
5178
|
+
|
|
5179
|
+
// PRIORITY
|
|
5180
|
+
|
|
5181
|
+
addUnitPriority('minute', 14);
|
|
5182
|
+
|
|
5214
5183
|
// PARSING
|
|
5215
5184
|
|
|
5216
|
-
addRegexToken('m', match1to2
|
|
5185
|
+
addRegexToken('m', match1to2);
|
|
5217
5186
|
addRegexToken('mm', match1to2, match2);
|
|
5218
5187
|
addParseToken(['m', 'mm'], MINUTE);
|
|
5219
5188
|
|
|
@@ -5225,9 +5194,17 @@ var getSetMinute = makeGetSet('Minutes', false);
|
|
|
5225
5194
|
|
|
5226
5195
|
addFormatToken('s', ['ss', 2], 0, 'second');
|
|
5227
5196
|
|
|
5197
|
+
// ALIASES
|
|
5198
|
+
|
|
5199
|
+
addUnitAlias('second', 's');
|
|
5200
|
+
|
|
5201
|
+
// PRIORITY
|
|
5202
|
+
|
|
5203
|
+
addUnitPriority('second', 15);
|
|
5204
|
+
|
|
5228
5205
|
// PARSING
|
|
5229
5206
|
|
|
5230
|
-
addRegexToken('s', match1to2
|
|
5207
|
+
addRegexToken('s', match1to2);
|
|
5231
5208
|
addRegexToken('ss', match1to2, match2);
|
|
5232
5209
|
addParseToken(['s', 'ss'], SECOND);
|
|
5233
5210
|
|
|
@@ -5265,6 +5242,14 @@ addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
|
|
|
5265
5242
|
return this.millisecond() * 1000000;
|
|
5266
5243
|
});
|
|
5267
5244
|
|
|
5245
|
+
// ALIASES
|
|
5246
|
+
|
|
5247
|
+
addUnitAlias('millisecond', 'ms');
|
|
5248
|
+
|
|
5249
|
+
// PRIORITY
|
|
5250
|
+
|
|
5251
|
+
addUnitPriority('millisecond', 16);
|
|
5252
|
+
|
|
5268
5253
|
// PARSING
|
|
5269
5254
|
|
|
5270
5255
|
addRegexToken('S', match1to3, match1);
|
|
@@ -5572,12 +5557,12 @@ getSetGlobalLocale('en', {
|
|
|
5572
5557
|
toInt((number % 100) / 10) === 1
|
|
5573
5558
|
? 'th'
|
|
5574
5559
|
: b === 1
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5560
|
+
? 'st'
|
|
5561
|
+
: b === 2
|
|
5562
|
+
? 'nd'
|
|
5563
|
+
: b === 3
|
|
5564
|
+
? 'rd'
|
|
5565
|
+
: 'th';
|
|
5581
5566
|
return number + output;
|
|
5582
5567
|
},
|
|
5583
5568
|
});
|
|
@@ -5750,6 +5735,19 @@ function as(units) {
|
|
|
5750
5735
|
}
|
|
5751
5736
|
}
|
|
5752
5737
|
|
|
5738
|
+
// TODO: Use this.as('ms')?
|
|
5739
|
+
function valueOf$1() {
|
|
5740
|
+
if (!this.isValid()) {
|
|
5741
|
+
return NaN;
|
|
5742
|
+
}
|
|
5743
|
+
return (
|
|
5744
|
+
this._milliseconds +
|
|
5745
|
+
this._days * 864e5 +
|
|
5746
|
+
(this._months % 12) * 2592e6 +
|
|
5747
|
+
toInt(this._months / 12) * 31536e6
|
|
5748
|
+
);
|
|
5749
|
+
}
|
|
5750
|
+
|
|
5753
5751
|
function makeAs(alias) {
|
|
5754
5752
|
return function () {
|
|
5755
5753
|
return this.as(alias);
|
|
@@ -5764,8 +5762,7 @@ var asMilliseconds = makeAs('ms'),
|
|
|
5764
5762
|
asWeeks = makeAs('w'),
|
|
5765
5763
|
asMonths = makeAs('M'),
|
|
5766
5764
|
asQuarters = makeAs('Q'),
|
|
5767
|
-
asYears = makeAs('y')
|
|
5768
|
-
valueOf$1 = asMilliseconds;
|
|
5765
|
+
asYears = makeAs('y');
|
|
5769
5766
|
|
|
5770
5767
|
function clone$1() {
|
|
5771
5768
|
return createDuration(this);
|
|
@@ -6034,7 +6031,7 @@ addParseToken('x', function (input, array, config) {
|
|
|
6034
6031
|
|
|
6035
6032
|
//! moment.js
|
|
6036
6033
|
|
|
6037
|
-
hooks.version = '2.
|
|
6034
|
+
hooks.version = '2.29.4';
|
|
6038
6035
|
|
|
6039
6036
|
setHookCallback(createLocal);
|
|
6040
6037
|
|
|
@@ -6085,39 +6082,41 @@ const CasinoTournamentBannerStyle0 = casinoTournamentBannerCss;
|
|
|
6085
6082
|
const CasinoTournamentBanner = class {
|
|
6086
6083
|
constructor(hostRef) {
|
|
6087
6084
|
registerInstance(this, hostRef);
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6085
|
+
this.useEvent = undefined;
|
|
6086
|
+
this.endpoint = undefined;
|
|
6087
|
+
this.state = undefined;
|
|
6088
|
+
this.enrolled = undefined;
|
|
6089
|
+
this.startTime = undefined;
|
|
6090
|
+
this.endTime = undefined;
|
|
6091
|
+
this.thumbnail = undefined;
|
|
6092
|
+
this.language = undefined;
|
|
6093
|
+
this.showCalendar = undefined;
|
|
6094
|
+
this.shortStart = undefined;
|
|
6091
6095
|
this.shortstartformat = 'DD MMM YYYY';
|
|
6092
|
-
/**
|
|
6093
|
-
* Show date on widget
|
|
6094
|
-
*/
|
|
6095
6096
|
this.showDate = true;
|
|
6096
|
-
/**
|
|
6097
|
-
* Show date on running state tournament tag
|
|
6098
|
-
*/
|
|
6099
6097
|
this.showRunningDate = false;
|
|
6100
|
-
/**
|
|
6101
|
-
* Show check icon on enrolled tag
|
|
6102
|
-
*/
|
|
6103
6098
|
this.showCheck = false;
|
|
6104
|
-
/**
|
|
6105
|
-
* Widget display as a card
|
|
6106
|
-
*/
|
|
6107
6099
|
this.cardMode = false;
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6100
|
+
this.nameOrTitle = undefined;
|
|
6101
|
+
this.description = undefined;
|
|
6102
|
+
this.tournamentId = undefined;
|
|
6103
|
+
this.session = undefined;
|
|
6104
|
+
this.loginEvent = undefined;
|
|
6105
|
+
this.loginUrl = undefined;
|
|
6106
|
+
this.registerEvent = undefined;
|
|
6107
|
+
this.registerUrl = undefined;
|
|
6108
|
+
this.currency = undefined;
|
|
6109
|
+
this.bonusCode = undefined;
|
|
6111
6110
|
this.showReadMore = false;
|
|
6112
|
-
/**
|
|
6113
|
-
* Client custom styling via inline styles
|
|
6114
|
-
*/
|
|
6115
6111
|
this.clientStyling = '';
|
|
6116
|
-
/**
|
|
6117
|
-
* Client custom styling via url
|
|
6118
|
-
*/
|
|
6119
6112
|
this.clientStylingUrl = '';
|
|
6113
|
+
this.translationData = undefined;
|
|
6114
|
+
this.stateText = undefined;
|
|
6120
6115
|
this.limitStylingAppends = false;
|
|
6116
|
+
this.startdate = undefined;
|
|
6117
|
+
this.tournamentLeftDays = undefined;
|
|
6118
|
+
this.showRemain = undefined;
|
|
6119
|
+
this.durationInterval = undefined;
|
|
6121
6120
|
}
|
|
6122
6121
|
watchLanguage(newValue, oldValue) {
|
|
6123
6122
|
if (newValue && newValue != oldValue) {
|
|
@@ -6675,22 +6674,21 @@ const CasinoTournamentButtons = class {
|
|
|
6675
6674
|
constructor(hostRef) {
|
|
6676
6675
|
registerInstance(this, hostRef);
|
|
6677
6676
|
this.userEnrolled = createEvent(this, "TournamentUserEnrolled", 7);
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6677
|
+
this.language = undefined;
|
|
6678
|
+
this.tournamentId = undefined;
|
|
6679
|
+
this.session = undefined;
|
|
6680
|
+
this.loginEvent = undefined;
|
|
6681
|
+
this.loginUrl = undefined;
|
|
6682
|
+
this.registerEvent = undefined;
|
|
6683
|
+
this.registerUrl = undefined;
|
|
6684
|
+
this.endpoint = undefined;
|
|
6685
|
+
this.currency = undefined;
|
|
6686
|
+
this.bonusCode = undefined;
|
|
6681
6687
|
this.enrolled = false;
|
|
6682
|
-
/**
|
|
6683
|
-
* Show read more button
|
|
6684
|
-
*/
|
|
6685
6688
|
this.showReadMore = false;
|
|
6686
|
-
/**
|
|
6687
|
-
* Client custom styling via inline styles
|
|
6688
|
-
*/
|
|
6689
6689
|
this.clientStyling = '';
|
|
6690
|
-
/**
|
|
6691
|
-
* Client custom styling via url
|
|
6692
|
-
*/
|
|
6693
6690
|
this.clientStylingUrl = '';
|
|
6691
|
+
this.translationData = undefined;
|
|
6694
6692
|
this.limitStylingAppends = false;
|
|
6695
6693
|
this.joinButtonLoading = false;
|
|
6696
6694
|
this.errorJoin = false;
|