sixseconds-modules 1.6.176 → 1.6.178
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/index.cjs.js +339 -1128
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +339 -1128
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -2
package/dist/index.cjs.js
CHANGED
|
@@ -5,6 +5,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
5
5
|
const React = require("react");
|
|
6
6
|
const axios = require("axios");
|
|
7
7
|
const Cookies = require("js-cookie");
|
|
8
|
+
const createCache = require("@emotion/cache");
|
|
8
9
|
const react = require("@emotion/react");
|
|
9
10
|
const material = require("@mui/material");
|
|
10
11
|
const MenuIcon = require("@mui/icons-material/Menu");
|
|
@@ -381,8 +382,8 @@ deepmerge.all = function deepmergeAll(array2, options) {
|
|
|
381
382
|
if (!Array.isArray(array2)) {
|
|
382
383
|
throw new Error("first argument should be an array");
|
|
383
384
|
}
|
|
384
|
-
return array2.reduce(function(
|
|
385
|
-
return deepmerge(
|
|
385
|
+
return array2.reduce(function(prev, next) {
|
|
386
|
+
return deepmerge(prev, next, options);
|
|
386
387
|
}, {});
|
|
387
388
|
};
|
|
388
389
|
var deepmerge_1 = deepmerge;
|
|
@@ -457,10 +458,10 @@ function eq(value, other) {
|
|
|
457
458
|
return value === other || value !== value && other !== other;
|
|
458
459
|
}
|
|
459
460
|
function assocIndexOf(array2, key) {
|
|
460
|
-
var
|
|
461
|
-
while (
|
|
462
|
-
if (eq(array2[
|
|
463
|
-
return
|
|
461
|
+
var length = array2.length;
|
|
462
|
+
while (length--) {
|
|
463
|
+
if (eq(array2[length][0], key)) {
|
|
464
|
+
return length;
|
|
464
465
|
}
|
|
465
466
|
}
|
|
466
467
|
return -1;
|
|
@@ -499,9 +500,9 @@ function listCacheSet(key, value) {
|
|
|
499
500
|
return this;
|
|
500
501
|
}
|
|
501
502
|
function ListCache(entries) {
|
|
502
|
-
var index = -1,
|
|
503
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
503
504
|
this.clear();
|
|
504
|
-
while (++index <
|
|
505
|
+
while (++index < length) {
|
|
505
506
|
var entry = entries[index];
|
|
506
507
|
this.set(entry[0], entry[1]);
|
|
507
508
|
}
|
|
@@ -619,9 +620,9 @@ function hashSet(key, value) {
|
|
|
619
620
|
return this;
|
|
620
621
|
}
|
|
621
622
|
function Hash(entries) {
|
|
622
|
-
var index = -1,
|
|
623
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
623
624
|
this.clear();
|
|
624
|
-
while (++index <
|
|
625
|
+
while (++index < length) {
|
|
625
626
|
var entry = entries[index];
|
|
626
627
|
this.set(entry[0], entry[1]);
|
|
627
628
|
}
|
|
@@ -665,9 +666,9 @@ function mapCacheSet(key, value) {
|
|
|
665
666
|
return this;
|
|
666
667
|
}
|
|
667
668
|
function MapCache(entries) {
|
|
668
|
-
var index = -1,
|
|
669
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
669
670
|
this.clear();
|
|
670
|
-
while (++index <
|
|
671
|
+
while (++index < length) {
|
|
671
672
|
var entry = entries[index];
|
|
672
673
|
this.set(entry[0], entry[1]);
|
|
673
674
|
}
|
|
@@ -703,8 +704,8 @@ Stack.prototype.get = stackGet;
|
|
|
703
704
|
Stack.prototype.has = stackHas;
|
|
704
705
|
Stack.prototype.set = stackSet;
|
|
705
706
|
function arrayEach(array2, iteratee) {
|
|
706
|
-
var index = -1,
|
|
707
|
-
while (++index <
|
|
707
|
+
var index = -1, length = array2 == null ? 0 : array2.length;
|
|
708
|
+
while (++index < length) {
|
|
708
709
|
if (iteratee(array2[index], index, array2) === false) {
|
|
709
710
|
break;
|
|
710
711
|
}
|
|
@@ -742,8 +743,8 @@ function assignValue(object2, key, value) {
|
|
|
742
743
|
function copyObject(source, props, object2, customizer) {
|
|
743
744
|
var isNew = !object2;
|
|
744
745
|
object2 || (object2 = {});
|
|
745
|
-
var index = -1,
|
|
746
|
-
while (++index <
|
|
746
|
+
var index = -1, length = props.length;
|
|
747
|
+
while (++index < length) {
|
|
747
748
|
var key = props[index];
|
|
748
749
|
var newValue = void 0;
|
|
749
750
|
if (newValue === void 0) {
|
|
@@ -788,10 +789,10 @@ var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : void 0;
|
|
|
788
789
|
var isBuffer = nativeIsBuffer || stubFalse;
|
|
789
790
|
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
790
791
|
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
791
|
-
function isIndex(value,
|
|
792
|
+
function isIndex(value, length) {
|
|
792
793
|
var type = typeof value;
|
|
793
|
-
|
|
794
|
-
return !!
|
|
794
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
795
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
795
796
|
}
|
|
796
797
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
797
798
|
function isLength(value) {
|
|
@@ -829,13 +830,13 @@ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedA
|
|
|
829
830
|
var objectProto$5 = Object.prototype;
|
|
830
831
|
var hasOwnProperty$3 = objectProto$5.hasOwnProperty;
|
|
831
832
|
function arrayLikeKeys(value, inherited) {
|
|
832
|
-
var isArr = isArray$1(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [],
|
|
833
|
+
var isArr = isArray$1(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
833
834
|
for (var key in value) {
|
|
834
835
|
if ((inherited || hasOwnProperty$3.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
835
836
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
836
837
|
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
837
838
|
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
838
|
-
isIndex(key,
|
|
839
|
+
isIndex(key, length)))) {
|
|
839
840
|
result.push(key);
|
|
840
841
|
}
|
|
841
842
|
}
|
|
@@ -907,21 +908,21 @@ function cloneBuffer(buffer, isDeep) {
|
|
|
907
908
|
if (isDeep) {
|
|
908
909
|
return buffer.slice();
|
|
909
910
|
}
|
|
910
|
-
var
|
|
911
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
911
912
|
buffer.copy(result);
|
|
912
913
|
return result;
|
|
913
914
|
}
|
|
914
915
|
function copyArray(source, array2) {
|
|
915
|
-
var index = -1,
|
|
916
|
-
array2 || (array2 = Array(
|
|
917
|
-
while (++index <
|
|
916
|
+
var index = -1, length = source.length;
|
|
917
|
+
array2 || (array2 = Array(length));
|
|
918
|
+
while (++index < length) {
|
|
918
919
|
array2[index] = source[index];
|
|
919
920
|
}
|
|
920
921
|
return array2;
|
|
921
922
|
}
|
|
922
923
|
function arrayFilter(array2, predicate) {
|
|
923
|
-
var index = -1,
|
|
924
|
-
while (++index <
|
|
924
|
+
var index = -1, length = array2 == null ? 0 : array2.length, resIndex = 0, result = [];
|
|
925
|
+
while (++index < length) {
|
|
925
926
|
var value = array2[index];
|
|
926
927
|
if (predicate(value, index, array2)) {
|
|
927
928
|
result[resIndex++] = value;
|
|
@@ -948,8 +949,8 @@ function copySymbols(source, object2) {
|
|
|
948
949
|
return copyObject(source, getSymbols(source), object2);
|
|
949
950
|
}
|
|
950
951
|
function arrayPush(array2, values) {
|
|
951
|
-
var index = -1,
|
|
952
|
-
while (++index <
|
|
952
|
+
var index = -1, length = values.length, offset2 = array2.length;
|
|
953
|
+
while (++index < length) {
|
|
953
954
|
array2[offset2 + index] = values[index];
|
|
954
955
|
}
|
|
955
956
|
return array2;
|
|
@@ -1007,8 +1008,8 @@ if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag$2 || Map
|
|
|
1007
1008
|
var objectProto = Object.prototype;
|
|
1008
1009
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1009
1010
|
function initCloneArray(array2) {
|
|
1010
|
-
var
|
|
1011
|
-
if (
|
|
1011
|
+
var length = array2.length, result = new array2.constructor(length);
|
|
1012
|
+
if (length && typeof array2[0] == "string" && hasOwnProperty.call(array2, "index")) {
|
|
1012
1013
|
result.index = array2.index;
|
|
1013
1014
|
result.input = array2.input;
|
|
1014
1015
|
}
|
|
@@ -1187,11 +1188,11 @@ function requireReactFastCompare() {
|
|
|
1187
1188
|
function equal(a, b) {
|
|
1188
1189
|
if (a === b) return true;
|
|
1189
1190
|
if (a && b && typeof a == "object" && typeof b == "object") {
|
|
1190
|
-
var arrA = isArray2(a), arrB = isArray2(b), i,
|
|
1191
|
+
var arrA = isArray2(a), arrB = isArray2(b), i, length, key;
|
|
1191
1192
|
if (arrA && arrB) {
|
|
1192
|
-
|
|
1193
|
-
if (
|
|
1194
|
-
for (i =
|
|
1193
|
+
length = a.length;
|
|
1194
|
+
if (length != b.length) return false;
|
|
1195
|
+
for (i = length; i-- !== 0; )
|
|
1195
1196
|
if (!equal(a[i], b[i])) return false;
|
|
1196
1197
|
return true;
|
|
1197
1198
|
}
|
|
@@ -1203,14 +1204,14 @@ function requireReactFastCompare() {
|
|
|
1203
1204
|
if (regexpA != regexpB) return false;
|
|
1204
1205
|
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
1205
1206
|
var keys2 = keyList(a);
|
|
1206
|
-
|
|
1207
|
-
if (
|
|
1207
|
+
length = keys2.length;
|
|
1208
|
+
if (length !== keyList(b).length)
|
|
1208
1209
|
return false;
|
|
1209
|
-
for (i =
|
|
1210
|
+
for (i = length; i-- !== 0; )
|
|
1210
1211
|
if (!hasProp.call(b, keys2[i])) return false;
|
|
1211
1212
|
if (hasElementType && a instanceof Element && b instanceof Element)
|
|
1212
1213
|
return a === b;
|
|
1213
|
-
for (i =
|
|
1214
|
+
for (i = length; i-- !== 0; ) {
|
|
1214
1215
|
key = keys2[i];
|
|
1215
1216
|
if (key === "_owner" && a.$$typeof) {
|
|
1216
1217
|
continue;
|
|
@@ -1255,8 +1256,8 @@ function clone$2(value) {
|
|
|
1255
1256
|
return baseClone(value, CLONE_SYMBOLS_FLAG);
|
|
1256
1257
|
}
|
|
1257
1258
|
function arrayMap(array2, iteratee) {
|
|
1258
|
-
var index = -1,
|
|
1259
|
-
while (++index <
|
|
1259
|
+
var index = -1, length = array2 == null ? 0 : array2.length, result = Array(length);
|
|
1260
|
+
while (++index < length) {
|
|
1260
1261
|
result[index] = iteratee(array2[index], index, array2);
|
|
1261
1262
|
}
|
|
1262
1263
|
return result;
|
|
@@ -1301,8 +1302,8 @@ var stringToPath = memoizeCapped(function(string2) {
|
|
|
1301
1302
|
if (string2.charCodeAt(0) === 46) {
|
|
1302
1303
|
result.push("");
|
|
1303
1304
|
}
|
|
1304
|
-
string2.replace(rePropName, function(
|
|
1305
|
-
result.push(quote ? subString.replace(reEscapeChar, "$1") : number2 ||
|
|
1305
|
+
string2.replace(rePropName, function(match, number2, quote, subString) {
|
|
1306
|
+
result.push(quote ? subString.replace(reEscapeChar, "$1") : number2 || match);
|
|
1306
1307
|
});
|
|
1307
1308
|
return result;
|
|
1308
1309
|
});
|
|
@@ -1928,9 +1929,9 @@ function useFormik(_ref) {
|
|
|
1928
1929
|
});
|
|
1929
1930
|
var state = stateRef.current;
|
|
1930
1931
|
var dispatch = React.useCallback(function(action) {
|
|
1931
|
-
var
|
|
1932
|
-
stateRef.current = formikReducer(
|
|
1933
|
-
if (
|
|
1932
|
+
var prev = stateRef.current;
|
|
1933
|
+
stateRef.current = formikReducer(prev, action);
|
|
1934
|
+
if (prev !== stateRef.current) setIteration(function(x) {
|
|
1934
1935
|
return x + 1;
|
|
1935
1936
|
});
|
|
1936
1937
|
}, []);
|
|
@@ -1985,14 +1986,14 @@ function useFormik(_ref) {
|
|
|
1985
1986
|
return runSingleFieldLevelValidation(f, getIn$1(values, f));
|
|
1986
1987
|
}) : [Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];
|
|
1987
1988
|
return Promise.all(fieldValidations).then(function(fieldErrorsList) {
|
|
1988
|
-
return fieldErrorsList.reduce(function(
|
|
1989
|
+
return fieldErrorsList.reduce(function(prev, curr, index) {
|
|
1989
1990
|
if (curr === "DO_NOT_DELETE_YOU_WILL_BE_FIRED") {
|
|
1990
|
-
return
|
|
1991
|
+
return prev;
|
|
1991
1992
|
}
|
|
1992
1993
|
if (curr) {
|
|
1993
|
-
|
|
1994
|
+
prev = setIn(prev, fieldKeysWithValidation[index], curr);
|
|
1994
1995
|
}
|
|
1995
|
-
return
|
|
1996
|
+
return prev;
|
|
1996
1997
|
}, {});
|
|
1997
1998
|
});
|
|
1998
1999
|
}, [runSingleFieldLevelValidation]);
|
|
@@ -6785,8 +6786,8 @@ function removeFormattingTokens(input) {
|
|
|
6785
6786
|
return input.replace(/\\/g, "");
|
|
6786
6787
|
}
|
|
6787
6788
|
function makeFormatFunction(format2) {
|
|
6788
|
-
var array2 = format2.match(formattingTokens), i,
|
|
6789
|
-
for (i = 0,
|
|
6789
|
+
var array2 = format2.match(formattingTokens), i, length;
|
|
6790
|
+
for (i = 0, length = array2.length; i < length; i++) {
|
|
6790
6791
|
if (formatTokenFunctions[array2[i]]) {
|
|
6791
6792
|
array2[i] = formatTokenFunctions[array2[i]];
|
|
6792
6793
|
} else {
|
|
@@ -6795,7 +6796,7 @@ function makeFormatFunction(format2) {
|
|
|
6795
6796
|
}
|
|
6796
6797
|
return function(mom) {
|
|
6797
6798
|
var output = "", i2;
|
|
6798
|
-
for (i2 = 0; i2 <
|
|
6799
|
+
for (i2 = 0; i2 < length; i2++) {
|
|
6799
6800
|
output += isFunction2(array2[i2]) ? array2[i2].call(mom, format2) : array2[i2];
|
|
6800
6801
|
}
|
|
6801
6802
|
return output;
|
|
@@ -7933,18 +7934,18 @@ function normalizeLocale(key) {
|
|
|
7933
7934
|
return key ? key.toLowerCase().replace("_", "-") : key;
|
|
7934
7935
|
}
|
|
7935
7936
|
function chooseLocale(names) {
|
|
7936
|
-
var i = 0, j,
|
|
7937
|
+
var i = 0, j, next, locale2, split;
|
|
7937
7938
|
while (i < names.length) {
|
|
7938
7939
|
split = normalizeLocale(names[i]).split("-");
|
|
7939
7940
|
j = split.length;
|
|
7940
|
-
|
|
7941
|
-
|
|
7941
|
+
next = normalizeLocale(names[i + 1]);
|
|
7942
|
+
next = next ? next.split("-") : null;
|
|
7942
7943
|
while (j > 0) {
|
|
7943
7944
|
locale2 = loadLocale(split.slice(0, j).join("-"));
|
|
7944
7945
|
if (locale2) {
|
|
7945
7946
|
return locale2;
|
|
7946
7947
|
}
|
|
7947
|
-
if (
|
|
7948
|
+
if (next && next.length >= j && commonPrefix(split, next) >= j - 1) {
|
|
7948
7949
|
break;
|
|
7949
7950
|
}
|
|
7950
7951
|
j--;
|
|
@@ -8139,11 +8140,11 @@ var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\
|
|
|
8139
8140
|
PST: -8 * 60
|
|
8140
8141
|
};
|
|
8141
8142
|
function configFromISO(config) {
|
|
8142
|
-
var i, l, string2 = config._i,
|
|
8143
|
-
if (
|
|
8143
|
+
var i, l, string2 = config._i, match = extendedIsoRegex.exec(string2) || basicIsoRegex.exec(string2), allowTime, dateFormat, timeFormat, tzFormat, isoDatesLen = isoDates.length, isoTimesLen = isoTimes.length;
|
|
8144
|
+
if (match) {
|
|
8144
8145
|
getParsingFlags(config).iso = true;
|
|
8145
8146
|
for (i = 0, l = isoDatesLen; i < l; i++) {
|
|
8146
|
-
if (isoDates[i][1].exec(
|
|
8147
|
+
if (isoDates[i][1].exec(match[1])) {
|
|
8147
8148
|
dateFormat = isoDates[i][0];
|
|
8148
8149
|
allowTime = isoDates[i][2] !== false;
|
|
8149
8150
|
break;
|
|
@@ -8153,10 +8154,10 @@ function configFromISO(config) {
|
|
|
8153
8154
|
config._isValid = false;
|
|
8154
8155
|
return;
|
|
8155
8156
|
}
|
|
8156
|
-
if (
|
|
8157
|
+
if (match[3]) {
|
|
8157
8158
|
for (i = 0, l = isoTimesLen; i < l; i++) {
|
|
8158
|
-
if (isoTimes[i][1].exec(
|
|
8159
|
-
timeFormat = (
|
|
8159
|
+
if (isoTimes[i][1].exec(match[3])) {
|
|
8160
|
+
timeFormat = (match[2] || " ") + isoTimes[i][0];
|
|
8160
8161
|
break;
|
|
8161
8162
|
}
|
|
8162
8163
|
}
|
|
@@ -8169,8 +8170,8 @@ function configFromISO(config) {
|
|
|
8169
8170
|
config._isValid = false;
|
|
8170
8171
|
return;
|
|
8171
8172
|
}
|
|
8172
|
-
if (
|
|
8173
|
-
if (tzRegex.exec(
|
|
8173
|
+
if (match[4]) {
|
|
8174
|
+
if (tzRegex.exec(match[4])) {
|
|
8174
8175
|
tzFormat = "Z";
|
|
8175
8176
|
} else {
|
|
8176
8177
|
config._isValid = false;
|
|
@@ -8234,21 +8235,21 @@ function calculateOffset(obsOffset, militaryOffset, numOffset) {
|
|
|
8234
8235
|
}
|
|
8235
8236
|
}
|
|
8236
8237
|
function configFromRFC2822(config) {
|
|
8237
|
-
var
|
|
8238
|
-
if (
|
|
8238
|
+
var match = rfc2822.exec(preprocessRFC2822(config._i)), parsedArray;
|
|
8239
|
+
if (match) {
|
|
8239
8240
|
parsedArray = extractFromRFC2822Strings(
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
|
|
8241
|
+
match[4],
|
|
8242
|
+
match[3],
|
|
8243
|
+
match[2],
|
|
8244
|
+
match[5],
|
|
8245
|
+
match[6],
|
|
8246
|
+
match[7]
|
|
8246
8247
|
);
|
|
8247
|
-
if (!checkWeekday(
|
|
8248
|
+
if (!checkWeekday(match[1], parsedArray, config)) {
|
|
8248
8249
|
return;
|
|
8249
8250
|
}
|
|
8250
8251
|
config._a = parsedArray;
|
|
8251
|
-
config._tzm = calculateOffset(
|
|
8252
|
+
config._tzm = calculateOffset(match[8], match[9], match[10]);
|
|
8252
8253
|
config._d = createUTCDate.apply(null, config._a);
|
|
8253
8254
|
config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
|
|
8254
8255
|
getParsingFlags(config).rfc2822 = true;
|
|
@@ -8883,7 +8884,7 @@ function isUtc() {
|
|
|
8883
8884
|
}
|
|
8884
8885
|
var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
|
8885
8886
|
function createDuration(input, key) {
|
|
8886
|
-
var duration = input,
|
|
8887
|
+
var duration = input, match = null, sign2, ret, diffRes;
|
|
8887
8888
|
if (isDuration(input)) {
|
|
8888
8889
|
duration = {
|
|
8889
8890
|
ms: input._milliseconds,
|
|
@@ -8897,27 +8898,27 @@ function createDuration(input, key) {
|
|
|
8897
8898
|
} else {
|
|
8898
8899
|
duration.milliseconds = +input;
|
|
8899
8900
|
}
|
|
8900
|
-
} else if (
|
|
8901
|
-
sign2 =
|
|
8901
|
+
} else if (match = aspNetRegex.exec(input)) {
|
|
8902
|
+
sign2 = match[1] === "-" ? -1 : 1;
|
|
8902
8903
|
duration = {
|
|
8903
8904
|
y: 0,
|
|
8904
|
-
d: toInt(
|
|
8905
|
-
h: toInt(
|
|
8906
|
-
m: toInt(
|
|
8907
|
-
s: toInt(
|
|
8908
|
-
ms: toInt(absRound(
|
|
8905
|
+
d: toInt(match[DATE]) * sign2,
|
|
8906
|
+
h: toInt(match[HOUR]) * sign2,
|
|
8907
|
+
m: toInt(match[MINUTE]) * sign2,
|
|
8908
|
+
s: toInt(match[SECOND]) * sign2,
|
|
8909
|
+
ms: toInt(absRound(match[MILLISECOND] * 1e3)) * sign2
|
|
8909
8910
|
// the millisecond decimal point is included in the match
|
|
8910
8911
|
};
|
|
8911
|
-
} else if (
|
|
8912
|
-
sign2 =
|
|
8912
|
+
} else if (match = isoRegex.exec(input)) {
|
|
8913
|
+
sign2 = match[1] === "-" ? -1 : 1;
|
|
8913
8914
|
duration = {
|
|
8914
|
-
y: parseIso(
|
|
8915
|
-
M: parseIso(
|
|
8916
|
-
w: parseIso(
|
|
8917
|
-
d: parseIso(
|
|
8918
|
-
h: parseIso(
|
|
8919
|
-
m: parseIso(
|
|
8920
|
-
s: parseIso(
|
|
8915
|
+
y: parseIso(match[2], sign2),
|
|
8916
|
+
M: parseIso(match[3], sign2),
|
|
8917
|
+
w: parseIso(match[4], sign2),
|
|
8918
|
+
d: parseIso(match[5], sign2),
|
|
8919
|
+
h: parseIso(match[6], sign2),
|
|
8920
|
+
m: parseIso(match[7], sign2),
|
|
8921
|
+
s: parseIso(match[8], sign2)
|
|
8921
8922
|
};
|
|
8922
8923
|
} else if (duration == null) {
|
|
8923
8924
|
duration = {};
|
|
@@ -9237,16 +9238,16 @@ function inspect() {
|
|
|
9237
9238
|
if (!this.isValid()) {
|
|
9238
9239
|
return "moment.invalid(/* " + this._i + " */)";
|
|
9239
9240
|
}
|
|
9240
|
-
var func = "moment", zone = "",
|
|
9241
|
+
var func = "moment", zone = "", prefix, year, datetime, suffix;
|
|
9241
9242
|
if (!this.isLocal()) {
|
|
9242
9243
|
func = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone";
|
|
9243
9244
|
zone = "Z";
|
|
9244
9245
|
}
|
|
9245
|
-
|
|
9246
|
+
prefix = "[" + func + '("]';
|
|
9246
9247
|
year = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY";
|
|
9247
9248
|
datetime = "-MM-DD[T]HH:mm:ss.SSS";
|
|
9248
9249
|
suffix = zone + '[")]';
|
|
9249
|
-
return this.format(
|
|
9250
|
+
return this.format(prefix + year + datetime + suffix);
|
|
9250
9251
|
}
|
|
9251
9252
|
function format(inputString) {
|
|
9252
9253
|
if (!inputString) {
|
|
@@ -9255,7 +9256,7 @@ function format(inputString) {
|
|
|
9255
9256
|
var output = formatMoment(this, inputString);
|
|
9256
9257
|
return this.localeData().postformat(output);
|
|
9257
9258
|
}
|
|
9258
|
-
function from
|
|
9259
|
+
function from(time, withoutSuffix) {
|
|
9259
9260
|
if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) {
|
|
9260
9261
|
return createDuration({ to: this, from: time }).locale(this.locale()).humanize(!withoutSuffix);
|
|
9261
9262
|
} else {
|
|
@@ -9522,12 +9523,12 @@ addRegexToken("yyyy", matchUnsigned);
|
|
|
9522
9523
|
addRegexToken("yo", matchEraYearOrdinal);
|
|
9523
9524
|
addParseToken(["y", "yy", "yyy", "yyyy"], YEAR);
|
|
9524
9525
|
addParseToken(["yo"], function(input, array2, config, token2) {
|
|
9525
|
-
var
|
|
9526
|
+
var match;
|
|
9526
9527
|
if (config._locale._eraYearOrdinalRegex) {
|
|
9527
|
-
|
|
9528
|
+
match = input.match(config._locale._eraYearOrdinalRegex);
|
|
9528
9529
|
}
|
|
9529
9530
|
if (config._locale.eraYearOrdinalParse) {
|
|
9530
|
-
array2[YEAR] = config._locale.eraYearOrdinalParse(input,
|
|
9531
|
+
array2[YEAR] = config._locale.eraYearOrdinalParse(input, match);
|
|
9531
9532
|
} else {
|
|
9532
9533
|
array2[YEAR] = parseInt(input, 10);
|
|
9533
9534
|
}
|
|
@@ -9846,15 +9847,15 @@ addFormatToken(0, ["SSSSSSSSS", 9], 0, function() {
|
|
|
9846
9847
|
addRegexToken("S", match1to3, match1);
|
|
9847
9848
|
addRegexToken("SS", match1to3, match2);
|
|
9848
9849
|
addRegexToken("SSS", match1to3, match3);
|
|
9849
|
-
var token
|
|
9850
|
-
for (token
|
|
9851
|
-
addRegexToken(token
|
|
9850
|
+
var token, getSetMillisecond;
|
|
9851
|
+
for (token = "SSSS"; token.length <= 9; token += "S") {
|
|
9852
|
+
addRegexToken(token, matchUnsigned);
|
|
9852
9853
|
}
|
|
9853
9854
|
function parseMs(input, array2) {
|
|
9854
9855
|
array2[MILLISECOND] = toInt(("0." + input) * 1e3);
|
|
9855
9856
|
}
|
|
9856
|
-
for (token
|
|
9857
|
-
addParseToken(token
|
|
9857
|
+
for (token = "S"; token.length <= 9; token += "S") {
|
|
9858
|
+
addParseToken(token, parseMs);
|
|
9858
9859
|
}
|
|
9859
9860
|
getSetMillisecond = makeGetSet("Milliseconds", false);
|
|
9860
9861
|
addFormatToken("z", 0, 0, "zoneAbbr");
|
|
@@ -9872,7 +9873,7 @@ proto.clone = clone$1;
|
|
|
9872
9873
|
proto.diff = diff;
|
|
9873
9874
|
proto.endOf = endOf;
|
|
9874
9875
|
proto.format = format;
|
|
9875
|
-
proto.from = from
|
|
9876
|
+
proto.from = from;
|
|
9876
9877
|
proto.fromNow = fromNow;
|
|
9877
9878
|
proto.to = to;
|
|
9878
9879
|
proto.toNow = toNow;
|
|
@@ -10103,7 +10104,7 @@ hooks.langData = deprecate(
|
|
|
10103
10104
|
getLocale
|
|
10104
10105
|
);
|
|
10105
10106
|
var mathAbs = Math.abs;
|
|
10106
|
-
function abs
|
|
10107
|
+
function abs() {
|
|
10107
10108
|
var data = this._data;
|
|
10108
10109
|
this._milliseconds = mathAbs(this._milliseconds);
|
|
10109
10110
|
this._days = mathAbs(this._days);
|
|
@@ -10305,7 +10306,7 @@ function humanize(argWithSuffix, argThresholds) {
|
|
|
10305
10306
|
}
|
|
10306
10307
|
return locale2.postformat(output);
|
|
10307
10308
|
}
|
|
10308
|
-
var abs$1
|
|
10309
|
+
var abs$1 = Math.abs;
|
|
10309
10310
|
function sign(x) {
|
|
10310
10311
|
return (x > 0) - (x < 0) || +x;
|
|
10311
10312
|
}
|
|
@@ -10313,7 +10314,7 @@ function toISOString$1() {
|
|
|
10313
10314
|
if (!this.isValid()) {
|
|
10314
10315
|
return this.localeData().invalidDate();
|
|
10315
10316
|
}
|
|
10316
|
-
var seconds2 = abs$1
|
|
10317
|
+
var seconds2 = abs$1(this._milliseconds) / 1e3, days2 = abs$1(this._days), months2 = abs$1(this._months), minutes2, hours2, years2, s, total = this.asSeconds(), totalSign, ymSign, daysSign, hmsSign;
|
|
10317
10318
|
if (!total) {
|
|
10318
10319
|
return "P0D";
|
|
10319
10320
|
}
|
|
@@ -10332,7 +10333,7 @@ function toISOString$1() {
|
|
|
10332
10333
|
}
|
|
10333
10334
|
var proto$2 = Duration.prototype;
|
|
10334
10335
|
proto$2.isValid = isValid$1;
|
|
10335
|
-
proto$2.abs = abs
|
|
10336
|
+
proto$2.abs = abs;
|
|
10336
10337
|
proto$2.add = add$1;
|
|
10337
10338
|
proto$2.subtract = subtract$1;
|
|
10338
10339
|
proto$2.as = as;
|
|
@@ -10545,7 +10546,7 @@ function requireTinyCase() {
|
|
|
10545
10546
|
const upperFirst = (str) => str[0].toUpperCase() + str.slice(1);
|
|
10546
10547
|
const join = (str, d) => words(str).join(d).toLowerCase();
|
|
10547
10548
|
const camelCase = (str) => words(str).reduce(
|
|
10548
|
-
(acc,
|
|
10549
|
+
(acc, next) => `${acc}${!acc ? next.toLowerCase() : next[0].toUpperCase() + next.slice(1).toLowerCase()}`,
|
|
10549
10550
|
""
|
|
10550
10551
|
);
|
|
10551
10552
|
const pascalCase = (str) => upperFirst(camelCase(str));
|
|
@@ -10586,32 +10587,32 @@ function requireToposort() {
|
|
|
10586
10587
|
if (!visited[i]) visit(nodes[i], i, /* @__PURE__ */ new Set());
|
|
10587
10588
|
}
|
|
10588
10589
|
return sorted;
|
|
10589
|
-
function visit(
|
|
10590
|
-
if (predecessors.has(
|
|
10590
|
+
function visit(node, i2, predecessors) {
|
|
10591
|
+
if (predecessors.has(node)) {
|
|
10591
10592
|
var nodeRep;
|
|
10592
10593
|
try {
|
|
10593
|
-
nodeRep = ", node was:" + JSON.stringify(
|
|
10594
|
+
nodeRep = ", node was:" + JSON.stringify(node);
|
|
10594
10595
|
} catch (e) {
|
|
10595
10596
|
nodeRep = "";
|
|
10596
10597
|
}
|
|
10597
10598
|
throw new Error("Cyclic dependency" + nodeRep);
|
|
10598
10599
|
}
|
|
10599
|
-
if (!nodesHash.has(
|
|
10600
|
-
throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: " + JSON.stringify(
|
|
10600
|
+
if (!nodesHash.has(node)) {
|
|
10601
|
+
throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: " + JSON.stringify(node));
|
|
10601
10602
|
}
|
|
10602
10603
|
if (visited[i2]) return;
|
|
10603
10604
|
visited[i2] = true;
|
|
10604
|
-
var outgoing = outgoingEdges.get(
|
|
10605
|
+
var outgoing = outgoingEdges.get(node) || /* @__PURE__ */ new Set();
|
|
10605
10606
|
outgoing = Array.from(outgoing);
|
|
10606
10607
|
if (i2 = outgoing.length) {
|
|
10607
|
-
predecessors.add(
|
|
10608
|
+
predecessors.add(node);
|
|
10608
10609
|
do {
|
|
10609
10610
|
var child = outgoing[--i2];
|
|
10610
10611
|
visit(child, nodesHash.get(child), predecessors);
|
|
10611
10612
|
} while (i2);
|
|
10612
|
-
predecessors.delete(
|
|
10613
|
+
predecessors.delete(node);
|
|
10613
10614
|
}
|
|
10614
|
-
sorted[--cursor] =
|
|
10615
|
+
sorted[--cursor] = node;
|
|
10615
10616
|
}
|
|
10616
10617
|
}
|
|
10617
10618
|
function uniqueNodes(arr) {
|
|
@@ -10892,8 +10893,8 @@ class Reference {
|
|
|
10892
10893
|
this.isContext = this.key[0] === prefixes.context;
|
|
10893
10894
|
this.isValue = this.key[0] === prefixes.value;
|
|
10894
10895
|
this.isSibling = !this.isContext && !this.isValue;
|
|
10895
|
-
let
|
|
10896
|
-
this.path = this.key.slice(
|
|
10896
|
+
let prefix = this.isContext ? prefixes.context : this.isValue ? prefixes.value : "";
|
|
10897
|
+
this.path = this.key.slice(prefix.length);
|
|
10897
10898
|
this.getter = this.path && propertyExprExports.getter(this.path, true);
|
|
10898
10899
|
this.map = options.map;
|
|
10899
10900
|
}
|
|
@@ -10938,7 +10939,7 @@ function createValidation(config) {
|
|
|
10938
10939
|
options,
|
|
10939
10940
|
originalValue,
|
|
10940
10941
|
schema
|
|
10941
|
-
}, panic,
|
|
10942
|
+
}, panic, next) {
|
|
10942
10943
|
const {
|
|
10943
10944
|
name,
|
|
10944
10945
|
test,
|
|
@@ -10970,7 +10971,7 @@ function createValidation(config) {
|
|
|
10970
10971
|
error.params = nextParams;
|
|
10971
10972
|
return error;
|
|
10972
10973
|
}
|
|
10973
|
-
const invalid = abortEarly ? panic :
|
|
10974
|
+
const invalid = abortEarly ? panic : next;
|
|
10974
10975
|
let ctx = {
|
|
10975
10976
|
path,
|
|
10976
10977
|
parent,
|
|
@@ -10987,7 +10988,7 @@ function createValidation(config) {
|
|
|
10987
10988
|
const handleResult2 = (validOrError) => {
|
|
10988
10989
|
if (ValidationError.isError(validOrError)) invalid(validOrError);
|
|
10989
10990
|
else if (!validOrError) invalid(createError());
|
|
10990
|
-
else
|
|
10991
|
+
else next(null);
|
|
10991
10992
|
};
|
|
10992
10993
|
const handleError = (err) => {
|
|
10993
10994
|
if (ValidationError.isError(err)) invalid(err);
|
|
@@ -11085,42 +11086,42 @@ class ReferenceSet extends Set {
|
|
|
11085
11086
|
return new ReferenceSet(this.values());
|
|
11086
11087
|
}
|
|
11087
11088
|
merge(newItems, removeItems) {
|
|
11088
|
-
const
|
|
11089
|
-
newItems.forEach((value) =>
|
|
11090
|
-
removeItems.forEach((value) =>
|
|
11091
|
-
return
|
|
11089
|
+
const next = this.clone();
|
|
11090
|
+
newItems.forEach((value) => next.add(value));
|
|
11091
|
+
removeItems.forEach((value) => next.delete(value));
|
|
11092
|
+
return next;
|
|
11092
11093
|
}
|
|
11093
11094
|
}
|
|
11094
11095
|
function clone(src, seen = /* @__PURE__ */ new Map()) {
|
|
11095
11096
|
if (isSchema(src) || !src || typeof src !== "object") return src;
|
|
11096
11097
|
if (seen.has(src)) return seen.get(src);
|
|
11097
|
-
let
|
|
11098
|
+
let copy;
|
|
11098
11099
|
if (src instanceof Date) {
|
|
11099
|
-
|
|
11100
|
-
seen.set(src,
|
|
11100
|
+
copy = new Date(src.getTime());
|
|
11101
|
+
seen.set(src, copy);
|
|
11101
11102
|
} else if (src instanceof RegExp) {
|
|
11102
|
-
|
|
11103
|
-
seen.set(src,
|
|
11103
|
+
copy = new RegExp(src);
|
|
11104
|
+
seen.set(src, copy);
|
|
11104
11105
|
} else if (Array.isArray(src)) {
|
|
11105
|
-
|
|
11106
|
-
seen.set(src,
|
|
11107
|
-
for (let i = 0; i < src.length; i++)
|
|
11106
|
+
copy = new Array(src.length);
|
|
11107
|
+
seen.set(src, copy);
|
|
11108
|
+
for (let i = 0; i < src.length; i++) copy[i] = clone(src[i], seen);
|
|
11108
11109
|
} else if (src instanceof Map) {
|
|
11109
|
-
|
|
11110
|
-
seen.set(src,
|
|
11111
|
-
for (const [k, v] of src.entries())
|
|
11110
|
+
copy = /* @__PURE__ */ new Map();
|
|
11111
|
+
seen.set(src, copy);
|
|
11112
|
+
for (const [k, v] of src.entries()) copy.set(k, clone(v, seen));
|
|
11112
11113
|
} else if (src instanceof Set) {
|
|
11113
|
-
|
|
11114
|
-
seen.set(src,
|
|
11115
|
-
for (const v of src)
|
|
11114
|
+
copy = /* @__PURE__ */ new Set();
|
|
11115
|
+
seen.set(src, copy);
|
|
11116
|
+
for (const v of src) copy.add(clone(v, seen));
|
|
11116
11117
|
} else if (src instanceof Object) {
|
|
11117
|
-
|
|
11118
|
-
seen.set(src,
|
|
11119
|
-
for (const [k, v] of Object.entries(src))
|
|
11118
|
+
copy = {};
|
|
11119
|
+
seen.set(src, copy);
|
|
11120
|
+
for (const [k, v] of Object.entries(src)) copy[k] = clone(v, seen);
|
|
11120
11121
|
} else {
|
|
11121
11122
|
throw Error(`Unable to clone ${src}`);
|
|
11122
11123
|
}
|
|
11123
|
-
return
|
|
11124
|
+
return copy;
|
|
11124
11125
|
}
|
|
11125
11126
|
function createStandardPath(path) {
|
|
11126
11127
|
if (!(path != null && path.length)) {
|
|
@@ -11131,8 +11132,8 @@ function createStandardPath(path) {
|
|
|
11131
11132
|
let inBrackets = false;
|
|
11132
11133
|
let inQuotes = false;
|
|
11133
11134
|
for (let i = 0; i < path.length; i++) {
|
|
11134
|
-
const
|
|
11135
|
-
if (
|
|
11135
|
+
const char = path[i];
|
|
11136
|
+
if (char === "[" && !inQuotes) {
|
|
11136
11137
|
if (currentSegment) {
|
|
11137
11138
|
segments.push(...currentSegment.split(".").filter(Boolean));
|
|
11138
11139
|
currentSegment = "";
|
|
@@ -11140,7 +11141,7 @@ function createStandardPath(path) {
|
|
|
11140
11141
|
inBrackets = true;
|
|
11141
11142
|
continue;
|
|
11142
11143
|
}
|
|
11143
|
-
if (
|
|
11144
|
+
if (char === "]" && !inQuotes) {
|
|
11144
11145
|
if (currentSegment) {
|
|
11145
11146
|
if (/^\d+$/.test(currentSegment)) {
|
|
11146
11147
|
segments.push(currentSegment);
|
|
@@ -11152,18 +11153,18 @@ function createStandardPath(path) {
|
|
|
11152
11153
|
inBrackets = false;
|
|
11153
11154
|
continue;
|
|
11154
11155
|
}
|
|
11155
|
-
if (
|
|
11156
|
+
if (char === '"') {
|
|
11156
11157
|
inQuotes = !inQuotes;
|
|
11157
11158
|
continue;
|
|
11158
11159
|
}
|
|
11159
|
-
if (
|
|
11160
|
+
if (char === "." && !inBrackets && !inQuotes) {
|
|
11160
11161
|
if (currentSegment) {
|
|
11161
11162
|
segments.push(currentSegment);
|
|
11162
11163
|
currentSegment = "";
|
|
11163
11164
|
}
|
|
11164
11165
|
continue;
|
|
11165
11166
|
}
|
|
11166
|
-
currentSegment +=
|
|
11167
|
+
currentSegment += char;
|
|
11167
11168
|
}
|
|
11168
11169
|
if (currentSegment) {
|
|
11169
11170
|
segments.push(...currentSegment.split(".").filter(Boolean));
|
|
@@ -11229,30 +11230,30 @@ class Schema {
|
|
|
11229
11230
|
if (spec) Object.assign(this.spec, spec);
|
|
11230
11231
|
return this;
|
|
11231
11232
|
}
|
|
11232
|
-
const
|
|
11233
|
-
|
|
11234
|
-
|
|
11235
|
-
|
|
11236
|
-
|
|
11237
|
-
|
|
11238
|
-
|
|
11239
|
-
|
|
11240
|
-
|
|
11241
|
-
|
|
11242
|
-
|
|
11243
|
-
|
|
11244
|
-
return
|
|
11233
|
+
const next = Object.create(Object.getPrototypeOf(this));
|
|
11234
|
+
next.type = this.type;
|
|
11235
|
+
next._typeCheck = this._typeCheck;
|
|
11236
|
+
next._whitelist = this._whitelist.clone();
|
|
11237
|
+
next._blacklist = this._blacklist.clone();
|
|
11238
|
+
next.internalTests = Object.assign({}, this.internalTests);
|
|
11239
|
+
next.exclusiveTests = Object.assign({}, this.exclusiveTests);
|
|
11240
|
+
next.deps = [...this.deps];
|
|
11241
|
+
next.conditions = [...this.conditions];
|
|
11242
|
+
next.tests = [...this.tests];
|
|
11243
|
+
next.transforms = [...this.transforms];
|
|
11244
|
+
next.spec = clone(Object.assign({}, this.spec, spec));
|
|
11245
|
+
return next;
|
|
11245
11246
|
}
|
|
11246
11247
|
label(label) {
|
|
11247
|
-
let
|
|
11248
|
-
|
|
11249
|
-
return
|
|
11248
|
+
let next = this.clone();
|
|
11249
|
+
next.spec.label = label;
|
|
11250
|
+
return next;
|
|
11250
11251
|
}
|
|
11251
11252
|
meta(...args) {
|
|
11252
11253
|
if (args.length === 0) return this.spec.meta;
|
|
11253
|
-
let
|
|
11254
|
-
|
|
11255
|
-
return
|
|
11254
|
+
let next = this.clone();
|
|
11255
|
+
next.spec.meta = Object.assign(next.spec.meta || {}, args[0]);
|
|
11256
|
+
return next;
|
|
11256
11257
|
}
|
|
11257
11258
|
withMutation(fn) {
|
|
11258
11259
|
let before = this._mutate;
|
|
@@ -11273,9 +11274,9 @@ class Schema {
|
|
|
11273
11274
|
combined._blacklist = base._blacklist.merge(schema._blacklist, schema._whitelist);
|
|
11274
11275
|
combined.tests = base.tests;
|
|
11275
11276
|
combined.exclusiveTests = base.exclusiveTests;
|
|
11276
|
-
combined.withMutation((
|
|
11277
|
+
combined.withMutation((next) => {
|
|
11277
11278
|
schema.tests.forEach((fn) => {
|
|
11278
|
-
|
|
11279
|
+
next.test(fn.OPTIONS);
|
|
11279
11280
|
});
|
|
11280
11281
|
});
|
|
11281
11282
|
combined.transforms = [...base.transforms, ...combined.transforms];
|
|
@@ -11341,7 +11342,7 @@ attempted value: ${formattedValue}
|
|
|
11341
11342
|
}
|
|
11342
11343
|
return value;
|
|
11343
11344
|
}
|
|
11344
|
-
_validate(_value, options = {}, panic,
|
|
11345
|
+
_validate(_value, options = {}, panic, next) {
|
|
11345
11346
|
let {
|
|
11346
11347
|
path,
|
|
11347
11348
|
originalValue = _value,
|
|
@@ -11365,7 +11366,7 @@ attempted value: ${formattedValue}
|
|
|
11365
11366
|
tests: initialTests
|
|
11366
11367
|
}, panic, (initialErrors) => {
|
|
11367
11368
|
if (initialErrors.length) {
|
|
11368
|
-
return
|
|
11369
|
+
return next(initialErrors, value);
|
|
11369
11370
|
}
|
|
11370
11371
|
this.runTests({
|
|
11371
11372
|
path,
|
|
@@ -11373,14 +11374,14 @@ attempted value: ${formattedValue}
|
|
|
11373
11374
|
originalValue,
|
|
11374
11375
|
options,
|
|
11375
11376
|
tests: this.tests
|
|
11376
|
-
}, panic,
|
|
11377
|
+
}, panic, next);
|
|
11377
11378
|
});
|
|
11378
11379
|
}
|
|
11379
11380
|
/**
|
|
11380
11381
|
* Executes a set of validations, either schema, produced Tests or a nested
|
|
11381
11382
|
* schema validate result.
|
|
11382
11383
|
*/
|
|
11383
|
-
runTests(runOptions, panic,
|
|
11384
|
+
runTests(runOptions, panic, next) {
|
|
11384
11385
|
let fired = false;
|
|
11385
11386
|
let {
|
|
11386
11387
|
tests,
|
|
@@ -11397,7 +11398,7 @@ attempted value: ${formattedValue}
|
|
|
11397
11398
|
let nextOnce = (arg) => {
|
|
11398
11399
|
if (fired) return;
|
|
11399
11400
|
fired = true;
|
|
11400
|
-
|
|
11401
|
+
next(arg, value);
|
|
11401
11402
|
};
|
|
11402
11403
|
let count = tests.length;
|
|
11403
11404
|
let nestedErrors = [];
|
|
@@ -11450,7 +11451,7 @@ attempted value: ${formattedValue}
|
|
|
11450
11451
|
[isIndex2 ? "index" : "key"]: k,
|
|
11451
11452
|
path: isIndex2 || k.includes(".") ? `${parentPath || ""}[${isIndex2 ? k : `"${k}"`}]` : (parentPath ? `${parentPath}.` : "") + key
|
|
11452
11453
|
});
|
|
11453
|
-
return (_, panic,
|
|
11454
|
+
return (_, panic, next) => this.resolve(testOptions)._validate(value, testOptions, panic, next);
|
|
11454
11455
|
}
|
|
11455
11456
|
validate(value, options) {
|
|
11456
11457
|
var _options$disableStack2;
|
|
@@ -11514,10 +11515,10 @@ attempted value: ${formattedValue}
|
|
|
11514
11515
|
if (arguments.length === 0) {
|
|
11515
11516
|
return this._getDefault();
|
|
11516
11517
|
}
|
|
11517
|
-
let
|
|
11518
|
+
let next = this.clone({
|
|
11518
11519
|
default: def
|
|
11519
11520
|
});
|
|
11520
|
-
return
|
|
11521
|
+
return next;
|
|
11521
11522
|
}
|
|
11522
11523
|
strict(isStrict = true) {
|
|
11523
11524
|
return this.clone({
|
|
@@ -11525,30 +11526,30 @@ attempted value: ${formattedValue}
|
|
|
11525
11526
|
});
|
|
11526
11527
|
}
|
|
11527
11528
|
nullability(nullable, message) {
|
|
11528
|
-
const
|
|
11529
|
+
const next = this.clone({
|
|
11529
11530
|
nullable
|
|
11530
11531
|
});
|
|
11531
|
-
|
|
11532
|
+
next.internalTests.nullable = createValidation({
|
|
11532
11533
|
message,
|
|
11533
11534
|
name: "nullable",
|
|
11534
11535
|
test(value) {
|
|
11535
11536
|
return value === null ? this.schema.spec.nullable : true;
|
|
11536
11537
|
}
|
|
11537
11538
|
});
|
|
11538
|
-
return
|
|
11539
|
+
return next;
|
|
11539
11540
|
}
|
|
11540
11541
|
optionality(optional, message) {
|
|
11541
|
-
const
|
|
11542
|
+
const next = this.clone({
|
|
11542
11543
|
optional
|
|
11543
11544
|
});
|
|
11544
|
-
|
|
11545
|
+
next.internalTests.optionality = createValidation({
|
|
11545
11546
|
message,
|
|
11546
11547
|
name: "optionality",
|
|
11547
11548
|
test(value) {
|
|
11548
11549
|
return value === void 0 ? this.schema.spec.optional : true;
|
|
11549
11550
|
}
|
|
11550
11551
|
});
|
|
11551
|
-
return
|
|
11552
|
+
return next;
|
|
11552
11553
|
}
|
|
11553
11554
|
optional() {
|
|
11554
11555
|
return this.optionality(true);
|
|
@@ -11563,15 +11564,15 @@ attempted value: ${formattedValue}
|
|
|
11563
11564
|
return this.nullability(false, message);
|
|
11564
11565
|
}
|
|
11565
11566
|
required(message = mixed.required) {
|
|
11566
|
-
return this.clone().withMutation((
|
|
11567
|
+
return this.clone().withMutation((next) => next.nonNullable(message).defined(message));
|
|
11567
11568
|
}
|
|
11568
11569
|
notRequired() {
|
|
11569
|
-
return this.clone().withMutation((
|
|
11570
|
+
return this.clone().withMutation((next) => next.nullable().optional());
|
|
11570
11571
|
}
|
|
11571
11572
|
transform(fn) {
|
|
11572
|
-
let
|
|
11573
|
-
|
|
11574
|
-
return
|
|
11573
|
+
let next = this.clone();
|
|
11574
|
+
next.transforms.push(fn);
|
|
11575
|
+
return next;
|
|
11575
11576
|
}
|
|
11576
11577
|
/**
|
|
11577
11578
|
* Adds a test function to the schema's queue of tests.
|
|
@@ -11610,39 +11611,39 @@ attempted value: ${formattedValue}
|
|
|
11610
11611
|
}
|
|
11611
11612
|
if (opts.message === void 0) opts.message = mixed.default;
|
|
11612
11613
|
if (typeof opts.test !== "function") throw new TypeError("`test` is a required parameters");
|
|
11613
|
-
let
|
|
11614
|
+
let next = this.clone();
|
|
11614
11615
|
let validate = createValidation(opts);
|
|
11615
|
-
let isExclusive = opts.exclusive || opts.name &&
|
|
11616
|
+
let isExclusive = opts.exclusive || opts.name && next.exclusiveTests[opts.name] === true;
|
|
11616
11617
|
if (opts.exclusive) {
|
|
11617
11618
|
if (!opts.name) throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");
|
|
11618
11619
|
}
|
|
11619
|
-
if (opts.name)
|
|
11620
|
-
|
|
11620
|
+
if (opts.name) next.exclusiveTests[opts.name] = !!opts.exclusive;
|
|
11621
|
+
next.tests = next.tests.filter((fn) => {
|
|
11621
11622
|
if (fn.OPTIONS.name === opts.name) {
|
|
11622
11623
|
if (isExclusive) return false;
|
|
11623
11624
|
if (fn.OPTIONS.test === validate.OPTIONS.test) return false;
|
|
11624
11625
|
}
|
|
11625
11626
|
return true;
|
|
11626
11627
|
});
|
|
11627
|
-
|
|
11628
|
-
return
|
|
11628
|
+
next.tests.push(validate);
|
|
11629
|
+
return next;
|
|
11629
11630
|
}
|
|
11630
11631
|
when(keys2, options) {
|
|
11631
11632
|
if (!Array.isArray(keys2) && typeof keys2 !== "string") {
|
|
11632
11633
|
options = keys2;
|
|
11633
11634
|
keys2 = ".";
|
|
11634
11635
|
}
|
|
11635
|
-
let
|
|
11636
|
+
let next = this.clone();
|
|
11636
11637
|
let deps = toArray(keys2).map((key) => new Reference(key));
|
|
11637
11638
|
deps.forEach((dep) => {
|
|
11638
|
-
if (dep.isSibling)
|
|
11639
|
+
if (dep.isSibling) next.deps.push(dep.key);
|
|
11639
11640
|
});
|
|
11640
|
-
|
|
11641
|
-
return
|
|
11641
|
+
next.conditions.push(typeof options === "function" ? new Condition(deps, options) : Condition.fromOptions(deps, options));
|
|
11642
|
+
return next;
|
|
11642
11643
|
}
|
|
11643
11644
|
typeError(message) {
|
|
11644
|
-
let
|
|
11645
|
-
|
|
11645
|
+
let next = this.clone();
|
|
11646
|
+
next.internalTests.typeError = createValidation({
|
|
11646
11647
|
message,
|
|
11647
11648
|
name: "typeError",
|
|
11648
11649
|
skipAbsent: true,
|
|
@@ -11655,15 +11656,15 @@ attempted value: ${formattedValue}
|
|
|
11655
11656
|
return true;
|
|
11656
11657
|
}
|
|
11657
11658
|
});
|
|
11658
|
-
return
|
|
11659
|
+
return next;
|
|
11659
11660
|
}
|
|
11660
11661
|
oneOf(enums, message = mixed.oneOf) {
|
|
11661
|
-
let
|
|
11662
|
+
let next = this.clone();
|
|
11662
11663
|
enums.forEach((val) => {
|
|
11663
|
-
|
|
11664
|
-
|
|
11664
|
+
next._whitelist.add(val);
|
|
11665
|
+
next._blacklist.delete(val);
|
|
11665
11666
|
});
|
|
11666
|
-
|
|
11667
|
+
next.internalTests.whiteList = createValidation({
|
|
11667
11668
|
message,
|
|
11668
11669
|
name: "oneOf",
|
|
11669
11670
|
skipAbsent: true,
|
|
@@ -11678,15 +11679,15 @@ attempted value: ${formattedValue}
|
|
|
11678
11679
|
});
|
|
11679
11680
|
}
|
|
11680
11681
|
});
|
|
11681
|
-
return
|
|
11682
|
+
return next;
|
|
11682
11683
|
}
|
|
11683
11684
|
notOneOf(enums, message = mixed.notOneOf) {
|
|
11684
|
-
let
|
|
11685
|
+
let next = this.clone();
|
|
11685
11686
|
enums.forEach((val) => {
|
|
11686
|
-
|
|
11687
|
-
|
|
11687
|
+
next._blacklist.add(val);
|
|
11688
|
+
next._whitelist.delete(val);
|
|
11688
11689
|
});
|
|
11689
|
-
|
|
11690
|
+
next.internalTests.blacklist = createValidation({
|
|
11690
11691
|
message,
|
|
11691
11692
|
name: "notOneOf",
|
|
11692
11693
|
test(value) {
|
|
@@ -11701,12 +11702,12 @@ attempted value: ${formattedValue}
|
|
|
11701
11702
|
return true;
|
|
11702
11703
|
}
|
|
11703
11704
|
});
|
|
11704
|
-
return
|
|
11705
|
+
return next;
|
|
11705
11706
|
}
|
|
11706
11707
|
strip(strip = true) {
|
|
11707
|
-
let
|
|
11708
|
-
|
|
11709
|
-
return
|
|
11708
|
+
let next = this.clone();
|
|
11709
|
+
next.spec.strip = strip;
|
|
11710
|
+
return next;
|
|
11710
11711
|
}
|
|
11711
11712
|
/**
|
|
11712
11713
|
* Return a serialized description of the schema including validations, flags, types etc.
|
|
@@ -11714,23 +11715,23 @@ attempted value: ${formattedValue}
|
|
|
11714
11715
|
* @param options Provide any needed context for resolving runtime schema alterations (lazy, when conditions, etc).
|
|
11715
11716
|
*/
|
|
11716
11717
|
describe(options) {
|
|
11717
|
-
const
|
|
11718
|
+
const next = (options ? this.resolve(options) : this).clone();
|
|
11718
11719
|
const {
|
|
11719
11720
|
label,
|
|
11720
11721
|
meta,
|
|
11721
11722
|
optional,
|
|
11722
11723
|
nullable
|
|
11723
|
-
} =
|
|
11724
|
+
} = next.spec;
|
|
11724
11725
|
const description = {
|
|
11725
11726
|
meta,
|
|
11726
11727
|
label,
|
|
11727
11728
|
optional,
|
|
11728
11729
|
nullable,
|
|
11729
|
-
default:
|
|
11730
|
-
type:
|
|
11731
|
-
oneOf:
|
|
11732
|
-
notOneOf:
|
|
11733
|
-
tests:
|
|
11730
|
+
default: next.getDefault(options),
|
|
11731
|
+
type: next.type,
|
|
11732
|
+
oneOf: next._whitelist.describe(),
|
|
11733
|
+
notOneOf: next._blacklist.describe(),
|
|
11734
|
+
tests: next.tests.filter((n, idx, list) => list.findIndex((c) => c.OPTIONS.name === n.OPTIONS.name) === idx).map((fn) => {
|
|
11734
11735
|
const params = fn.OPTIONS.params && options ? resolveParams(Object.assign({}, fn.OPTIONS.params), options) : fn.OPTIONS.params;
|
|
11735
11736
|
return {
|
|
11736
11737
|
name: fn.OPTIONS.name,
|
|
@@ -11886,17 +11887,17 @@ class StringSchema extends Schema {
|
|
|
11886
11887
|
return schema;
|
|
11887
11888
|
});
|
|
11888
11889
|
}
|
|
11889
|
-
length(
|
|
11890
|
+
length(length, message = string.length) {
|
|
11890
11891
|
return this.test({
|
|
11891
11892
|
message,
|
|
11892
11893
|
name: "length",
|
|
11893
11894
|
exclusive: true,
|
|
11894
11895
|
params: {
|
|
11895
|
-
length
|
|
11896
|
+
length
|
|
11896
11897
|
},
|
|
11897
11898
|
skipAbsent: true,
|
|
11898
11899
|
test(value) {
|
|
11899
|
-
return value.length === this.resolve(
|
|
11900
|
+
return value.length === this.resolve(length);
|
|
11900
11901
|
}
|
|
11901
11902
|
});
|
|
11902
11903
|
}
|
|
@@ -12228,9 +12229,9 @@ function sortFields(fields, excludedEdges = []) {
|
|
|
12228
12229
|
let nodes = /* @__PURE__ */ new Set();
|
|
12229
12230
|
let excludes = new Set(excludedEdges.map(([a, b]) => `${a}-${b}`));
|
|
12230
12231
|
function addNode(depPath, key) {
|
|
12231
|
-
let
|
|
12232
|
-
nodes.add(
|
|
12233
|
-
if (!excludes.has(`${key}-${
|
|
12232
|
+
let node = propertyExprExports.split(depPath)[0];
|
|
12233
|
+
nodes.add(node);
|
|
12234
|
+
if (!excludes.has(`${key}-${node}`)) edges.push([key, node]);
|
|
12234
12235
|
}
|
|
12235
12236
|
for (const key of Object.keys(fields)) {
|
|
12236
12237
|
let value = fields[key];
|
|
@@ -12369,7 +12370,7 @@ class ObjectSchema extends Schema {
|
|
|
12369
12370
|
}
|
|
12370
12371
|
return isChanged ? intermediateValue : value;
|
|
12371
12372
|
}
|
|
12372
|
-
_validate(_value, options = {}, panic,
|
|
12373
|
+
_validate(_value, options = {}, panic, next) {
|
|
12373
12374
|
let {
|
|
12374
12375
|
from: from2 = [],
|
|
12375
12376
|
originalValue = _value,
|
|
@@ -12383,7 +12384,7 @@ class ObjectSchema extends Schema {
|
|
|
12383
12384
|
options.originalValue = originalValue;
|
|
12384
12385
|
super._validate(_value, options, panic, (objectErrors, value) => {
|
|
12385
12386
|
if (!recursive || !isObject2(value)) {
|
|
12386
|
-
|
|
12387
|
+
next(objectErrors, value);
|
|
12387
12388
|
return;
|
|
12388
12389
|
}
|
|
12389
12390
|
originalValue = originalValue || value;
|
|
@@ -12407,26 +12408,26 @@ class ObjectSchema extends Schema {
|
|
|
12407
12408
|
originalValue,
|
|
12408
12409
|
options
|
|
12409
12410
|
}, panic, (fieldErrors) => {
|
|
12410
|
-
|
|
12411
|
+
next(fieldErrors.sort(this._sortErrors).concat(objectErrors), value);
|
|
12411
12412
|
});
|
|
12412
12413
|
});
|
|
12413
12414
|
}
|
|
12414
12415
|
clone(spec) {
|
|
12415
|
-
const
|
|
12416
|
-
|
|
12417
|
-
|
|
12418
|
-
|
|
12419
|
-
|
|
12420
|
-
return
|
|
12416
|
+
const next = super.clone(spec);
|
|
12417
|
+
next.fields = Object.assign({}, this.fields);
|
|
12418
|
+
next._nodes = this._nodes;
|
|
12419
|
+
next._excludedEdges = this._excludedEdges;
|
|
12420
|
+
next._sortErrors = this._sortErrors;
|
|
12421
|
+
return next;
|
|
12421
12422
|
}
|
|
12422
12423
|
concat(schema) {
|
|
12423
|
-
let
|
|
12424
|
-
let nextFields =
|
|
12424
|
+
let next = super.concat(schema);
|
|
12425
|
+
let nextFields = next.fields;
|
|
12425
12426
|
for (let [field, schemaOrRef] of Object.entries(this.fields)) {
|
|
12426
12427
|
const target = nextFields[field];
|
|
12427
12428
|
nextFields[field] = target === void 0 ? schemaOrRef : target;
|
|
12428
12429
|
}
|
|
12429
|
-
return
|
|
12430
|
+
return next.withMutation((s) => (
|
|
12430
12431
|
// XXX: excludes here is wrong
|
|
12431
12432
|
s.setFields(nextFields, [...this._excludedEdges, ...schema._excludedEdges])
|
|
12432
12433
|
));
|
|
@@ -12454,21 +12455,21 @@ class ObjectSchema extends Schema {
|
|
|
12454
12455
|
return dft;
|
|
12455
12456
|
}
|
|
12456
12457
|
setFields(shape, excludedEdges) {
|
|
12457
|
-
let
|
|
12458
|
-
|
|
12459
|
-
|
|
12460
|
-
|
|
12461
|
-
if (excludedEdges)
|
|
12462
|
-
return
|
|
12458
|
+
let next = this.clone();
|
|
12459
|
+
next.fields = shape;
|
|
12460
|
+
next._nodes = sortFields(shape, excludedEdges);
|
|
12461
|
+
next._sortErrors = sortByKeyOrder(Object.keys(shape));
|
|
12462
|
+
if (excludedEdges) next._excludedEdges = excludedEdges;
|
|
12463
|
+
return next;
|
|
12463
12464
|
}
|
|
12464
12465
|
shape(additions, excludes = []) {
|
|
12465
|
-
return this.clone().withMutation((
|
|
12466
|
-
let edges =
|
|
12466
|
+
return this.clone().withMutation((next) => {
|
|
12467
|
+
let edges = next._excludedEdges;
|
|
12467
12468
|
if (excludes.length) {
|
|
12468
12469
|
if (!Array.isArray(excludes[0])) excludes = [excludes];
|
|
12469
|
-
edges = [...
|
|
12470
|
+
edges = [...next._excludedEdges, ...excludes];
|
|
12470
12471
|
}
|
|
12471
|
-
return
|
|
12472
|
+
return next.setFields(Object.assign(next.fields, additions), edges);
|
|
12472
12473
|
});
|
|
12473
12474
|
}
|
|
12474
12475
|
partial() {
|
|
@@ -12479,8 +12480,8 @@ class ObjectSchema extends Schema {
|
|
|
12479
12480
|
return this.setFields(partial);
|
|
12480
12481
|
}
|
|
12481
12482
|
deepPartial() {
|
|
12482
|
-
const
|
|
12483
|
-
return
|
|
12483
|
+
const next = deepPartial(this);
|
|
12484
|
+
return next;
|
|
12484
12485
|
}
|
|
12485
12486
|
pick(keys2) {
|
|
12486
12487
|
const picked = {};
|
|
@@ -12543,7 +12544,7 @@ class ObjectSchema extends Schema {
|
|
|
12543
12544
|
message = noAllow;
|
|
12544
12545
|
noAllow = true;
|
|
12545
12546
|
}
|
|
12546
|
-
let
|
|
12547
|
+
let next = this.test({
|
|
12547
12548
|
name: "noUnknown",
|
|
12548
12549
|
exclusive: true,
|
|
12549
12550
|
message,
|
|
@@ -12557,8 +12558,8 @@ class ObjectSchema extends Schema {
|
|
|
12557
12558
|
});
|
|
12558
12559
|
}
|
|
12559
12560
|
});
|
|
12560
|
-
|
|
12561
|
-
return
|
|
12561
|
+
next.spec.noUnknown = noAllow;
|
|
12562
|
+
return next;
|
|
12562
12563
|
}
|
|
12563
12564
|
unknown(allow = true, message = object.noUnknown) {
|
|
12564
12565
|
return this.noUnknown(!allow, message);
|
|
@@ -12581,10 +12582,10 @@ class ObjectSchema extends Schema {
|
|
|
12581
12582
|
return this.transformKeys((key) => tinyCaseExports.snakeCase(key).toUpperCase());
|
|
12582
12583
|
}
|
|
12583
12584
|
describe(options) {
|
|
12584
|
-
const
|
|
12585
|
+
const next = (options ? this.resolve(options) : this).clone();
|
|
12585
12586
|
const base = super.describe(options);
|
|
12586
12587
|
base.fields = {};
|
|
12587
|
-
for (const [key, value] of Object.entries(
|
|
12588
|
+
for (const [key, value] of Object.entries(next.fields)) {
|
|
12588
12589
|
var _innerOptions2;
|
|
12589
12590
|
let innerOptions = options;
|
|
12590
12591
|
if ((_innerOptions2 = innerOptions) != null && _innerOptions2.value) {
|
|
@@ -12869,806 +12870,22 @@ const IMAGES = {
|
|
|
12869
12870
|
Us,
|
|
12870
12871
|
DefaultLang
|
|
12871
12872
|
};
|
|
12872
|
-
function sheetForTag(tag) {
|
|
12873
|
-
if (tag.sheet) {
|
|
12874
|
-
return tag.sheet;
|
|
12875
|
-
}
|
|
12876
|
-
for (var i = 0; i < document.styleSheets.length; i++) {
|
|
12877
|
-
if (document.styleSheets[i].ownerNode === tag) {
|
|
12878
|
-
return document.styleSheets[i];
|
|
12879
|
-
}
|
|
12880
|
-
}
|
|
12881
|
-
return void 0;
|
|
12882
|
-
}
|
|
12883
|
-
function createStyleElement(options) {
|
|
12884
|
-
var tag = document.createElement("style");
|
|
12885
|
-
tag.setAttribute("data-emotion", options.key);
|
|
12886
|
-
if (options.nonce !== void 0) {
|
|
12887
|
-
tag.setAttribute("nonce", options.nonce);
|
|
12888
|
-
}
|
|
12889
|
-
tag.appendChild(document.createTextNode(""));
|
|
12890
|
-
tag.setAttribute("data-s", "");
|
|
12891
|
-
return tag;
|
|
12892
|
-
}
|
|
12893
|
-
var StyleSheet = /* @__PURE__ */ (function() {
|
|
12894
|
-
function StyleSheet2(options) {
|
|
12895
|
-
var _this = this;
|
|
12896
|
-
this._insertTag = function(tag) {
|
|
12897
|
-
var before;
|
|
12898
|
-
if (_this.tags.length === 0) {
|
|
12899
|
-
if (_this.insertionPoint) {
|
|
12900
|
-
before = _this.insertionPoint.nextSibling;
|
|
12901
|
-
} else if (_this.prepend) {
|
|
12902
|
-
before = _this.container.firstChild;
|
|
12903
|
-
} else {
|
|
12904
|
-
before = _this.before;
|
|
12905
|
-
}
|
|
12906
|
-
} else {
|
|
12907
|
-
before = _this.tags[_this.tags.length - 1].nextSibling;
|
|
12908
|
-
}
|
|
12909
|
-
_this.container.insertBefore(tag, before);
|
|
12910
|
-
_this.tags.push(tag);
|
|
12911
|
-
};
|
|
12912
|
-
this.isSpeedy = options.speedy === void 0 ? true : options.speedy;
|
|
12913
|
-
this.tags = [];
|
|
12914
|
-
this.ctr = 0;
|
|
12915
|
-
this.nonce = options.nonce;
|
|
12916
|
-
this.key = options.key;
|
|
12917
|
-
this.container = options.container;
|
|
12918
|
-
this.prepend = options.prepend;
|
|
12919
|
-
this.insertionPoint = options.insertionPoint;
|
|
12920
|
-
this.before = null;
|
|
12921
|
-
}
|
|
12922
|
-
var _proto = StyleSheet2.prototype;
|
|
12923
|
-
_proto.hydrate = function hydrate(nodes) {
|
|
12924
|
-
nodes.forEach(this._insertTag);
|
|
12925
|
-
};
|
|
12926
|
-
_proto.insert = function insert(rule) {
|
|
12927
|
-
if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) {
|
|
12928
|
-
this._insertTag(createStyleElement(this));
|
|
12929
|
-
}
|
|
12930
|
-
var tag = this.tags[this.tags.length - 1];
|
|
12931
|
-
if (this.isSpeedy) {
|
|
12932
|
-
var sheet = sheetForTag(tag);
|
|
12933
|
-
try {
|
|
12934
|
-
sheet.insertRule(rule, sheet.cssRules.length);
|
|
12935
|
-
} catch (e) {
|
|
12936
|
-
}
|
|
12937
|
-
} else {
|
|
12938
|
-
tag.appendChild(document.createTextNode(rule));
|
|
12939
|
-
}
|
|
12940
|
-
this.ctr++;
|
|
12941
|
-
};
|
|
12942
|
-
_proto.flush = function flush() {
|
|
12943
|
-
this.tags.forEach(function(tag) {
|
|
12944
|
-
var _tag$parentNode;
|
|
12945
|
-
return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
|
|
12946
|
-
});
|
|
12947
|
-
this.tags = [];
|
|
12948
|
-
this.ctr = 0;
|
|
12949
|
-
};
|
|
12950
|
-
return StyleSheet2;
|
|
12951
|
-
})();
|
|
12952
|
-
var MS = "-ms-";
|
|
12953
|
-
var MOZ = "-moz-";
|
|
12954
|
-
var WEBKIT = "-webkit-";
|
|
12955
|
-
var COMMENT = "comm";
|
|
12956
|
-
var RULESET = "rule";
|
|
12957
|
-
var DECLARATION = "decl";
|
|
12958
|
-
var IMPORT = "@import";
|
|
12959
|
-
var KEYFRAMES = "@keyframes";
|
|
12960
|
-
var LAYER = "@layer";
|
|
12961
|
-
var abs = Math.abs;
|
|
12962
|
-
var from = String.fromCharCode;
|
|
12963
|
-
var assign = Object.assign;
|
|
12964
|
-
function hash(value, length2) {
|
|
12965
|
-
return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
|
12966
|
-
}
|
|
12967
|
-
function trim(value) {
|
|
12968
|
-
return value.trim();
|
|
12969
|
-
}
|
|
12970
|
-
function match(value, pattern) {
|
|
12971
|
-
return (value = pattern.exec(value)) ? value[0] : value;
|
|
12972
|
-
}
|
|
12973
|
-
function replace(value, pattern, replacement) {
|
|
12974
|
-
return value.replace(pattern, replacement);
|
|
12975
|
-
}
|
|
12976
|
-
function indexof(value, search) {
|
|
12977
|
-
return value.indexOf(search);
|
|
12978
|
-
}
|
|
12979
|
-
function charat(value, index) {
|
|
12980
|
-
return value.charCodeAt(index) | 0;
|
|
12981
|
-
}
|
|
12982
|
-
function substr(value, begin, end) {
|
|
12983
|
-
return value.slice(begin, end);
|
|
12984
|
-
}
|
|
12985
|
-
function strlen(value) {
|
|
12986
|
-
return value.length;
|
|
12987
|
-
}
|
|
12988
|
-
function sizeof(value) {
|
|
12989
|
-
return value.length;
|
|
12990
|
-
}
|
|
12991
|
-
function append(value, array2) {
|
|
12992
|
-
return array2.push(value), value;
|
|
12993
|
-
}
|
|
12994
|
-
function combine(array2, callback) {
|
|
12995
|
-
return array2.map(callback).join("");
|
|
12996
|
-
}
|
|
12997
|
-
var line = 1;
|
|
12998
|
-
var column = 1;
|
|
12999
|
-
var length = 0;
|
|
13000
|
-
var position = 0;
|
|
13001
|
-
var character = 0;
|
|
13002
|
-
var characters = "";
|
|
13003
|
-
function node(value, root2, parent, type, props, children, length2) {
|
|
13004
|
-
return { value, root: root2, parent, type, props, children, line, column, length: length2, return: "" };
|
|
13005
|
-
}
|
|
13006
|
-
function copy(root2, props) {
|
|
13007
|
-
return assign(node("", null, null, "", null, null, 0), root2, { length: -root2.length }, props);
|
|
13008
|
-
}
|
|
13009
|
-
function char() {
|
|
13010
|
-
return character;
|
|
13011
|
-
}
|
|
13012
|
-
function prev() {
|
|
13013
|
-
character = position > 0 ? charat(characters, --position) : 0;
|
|
13014
|
-
if (column--, character === 10)
|
|
13015
|
-
column = 1, line--;
|
|
13016
|
-
return character;
|
|
13017
|
-
}
|
|
13018
|
-
function next() {
|
|
13019
|
-
character = position < length ? charat(characters, position++) : 0;
|
|
13020
|
-
if (column++, character === 10)
|
|
13021
|
-
column = 1, line++;
|
|
13022
|
-
return character;
|
|
13023
|
-
}
|
|
13024
|
-
function peek() {
|
|
13025
|
-
return charat(characters, position);
|
|
13026
|
-
}
|
|
13027
|
-
function caret() {
|
|
13028
|
-
return position;
|
|
13029
|
-
}
|
|
13030
|
-
function slice(begin, end) {
|
|
13031
|
-
return substr(characters, begin, end);
|
|
13032
|
-
}
|
|
13033
|
-
function token(type) {
|
|
13034
|
-
switch (type) {
|
|
13035
|
-
// \0 \t \n \r \s whitespace token
|
|
13036
|
-
case 0:
|
|
13037
|
-
case 9:
|
|
13038
|
-
case 10:
|
|
13039
|
-
case 13:
|
|
13040
|
-
case 32:
|
|
13041
|
-
return 5;
|
|
13042
|
-
// ! + , / > @ ~ isolate token
|
|
13043
|
-
case 33:
|
|
13044
|
-
case 43:
|
|
13045
|
-
case 44:
|
|
13046
|
-
case 47:
|
|
13047
|
-
case 62:
|
|
13048
|
-
case 64:
|
|
13049
|
-
case 126:
|
|
13050
|
-
// ; { } breakpoint token
|
|
13051
|
-
case 59:
|
|
13052
|
-
case 123:
|
|
13053
|
-
case 125:
|
|
13054
|
-
return 4;
|
|
13055
|
-
// : accompanied token
|
|
13056
|
-
case 58:
|
|
13057
|
-
return 3;
|
|
13058
|
-
// " ' ( [ opening delimit token
|
|
13059
|
-
case 34:
|
|
13060
|
-
case 39:
|
|
13061
|
-
case 40:
|
|
13062
|
-
case 91:
|
|
13063
|
-
return 2;
|
|
13064
|
-
// ) ] closing delimit token
|
|
13065
|
-
case 41:
|
|
13066
|
-
case 93:
|
|
13067
|
-
return 1;
|
|
13068
|
-
}
|
|
13069
|
-
return 0;
|
|
13070
|
-
}
|
|
13071
|
-
function alloc(value) {
|
|
13072
|
-
return line = column = 1, length = strlen(characters = value), position = 0, [];
|
|
13073
|
-
}
|
|
13074
|
-
function dealloc(value) {
|
|
13075
|
-
return characters = "", value;
|
|
13076
|
-
}
|
|
13077
|
-
function delimit(type) {
|
|
13078
|
-
return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
|
|
13079
|
-
}
|
|
13080
|
-
function whitespace(type) {
|
|
13081
|
-
while (character = peek())
|
|
13082
|
-
if (character < 33)
|
|
13083
|
-
next();
|
|
13084
|
-
else
|
|
13085
|
-
break;
|
|
13086
|
-
return token(type) > 2 || token(character) > 3 ? "" : " ";
|
|
13087
|
-
}
|
|
13088
|
-
function escaping(index, count) {
|
|
13089
|
-
while (--count && next())
|
|
13090
|
-
if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
|
|
13091
|
-
break;
|
|
13092
|
-
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
|
|
13093
|
-
}
|
|
13094
|
-
function delimiter(type) {
|
|
13095
|
-
while (next())
|
|
13096
|
-
switch (character) {
|
|
13097
|
-
// ] ) " '
|
|
13098
|
-
case type:
|
|
13099
|
-
return position;
|
|
13100
|
-
// " '
|
|
13101
|
-
case 34:
|
|
13102
|
-
case 39:
|
|
13103
|
-
if (type !== 34 && type !== 39)
|
|
13104
|
-
delimiter(character);
|
|
13105
|
-
break;
|
|
13106
|
-
// (
|
|
13107
|
-
case 40:
|
|
13108
|
-
if (type === 41)
|
|
13109
|
-
delimiter(type);
|
|
13110
|
-
break;
|
|
13111
|
-
// \
|
|
13112
|
-
case 92:
|
|
13113
|
-
next();
|
|
13114
|
-
break;
|
|
13115
|
-
}
|
|
13116
|
-
return position;
|
|
13117
|
-
}
|
|
13118
|
-
function commenter(type, index) {
|
|
13119
|
-
while (next())
|
|
13120
|
-
if (type + character === 47 + 10)
|
|
13121
|
-
break;
|
|
13122
|
-
else if (type + character === 42 + 42 && peek() === 47)
|
|
13123
|
-
break;
|
|
13124
|
-
return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
|
|
13125
|
-
}
|
|
13126
|
-
function identifier(index) {
|
|
13127
|
-
while (!token(peek()))
|
|
13128
|
-
next();
|
|
13129
|
-
return slice(index, position);
|
|
13130
|
-
}
|
|
13131
|
-
function compile(value) {
|
|
13132
|
-
return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
|
|
13133
|
-
}
|
|
13134
|
-
function parse(value, root2, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
13135
|
-
var index = 0;
|
|
13136
|
-
var offset2 = 0;
|
|
13137
|
-
var length2 = pseudo;
|
|
13138
|
-
var atrule = 0;
|
|
13139
|
-
var property = 0;
|
|
13140
|
-
var previous = 0;
|
|
13141
|
-
var variable = 1;
|
|
13142
|
-
var scanning = 1;
|
|
13143
|
-
var ampersand = 1;
|
|
13144
|
-
var character2 = 0;
|
|
13145
|
-
var type = "";
|
|
13146
|
-
var props = rules;
|
|
13147
|
-
var children = rulesets;
|
|
13148
|
-
var reference = rule;
|
|
13149
|
-
var characters2 = type;
|
|
13150
|
-
while (scanning)
|
|
13151
|
-
switch (previous = character2, character2 = next()) {
|
|
13152
|
-
// (
|
|
13153
|
-
case 40:
|
|
13154
|
-
if (previous != 108 && charat(characters2, length2 - 1) == 58) {
|
|
13155
|
-
if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1)
|
|
13156
|
-
ampersand = -1;
|
|
13157
|
-
break;
|
|
13158
|
-
}
|
|
13159
|
-
// " ' [
|
|
13160
|
-
case 34:
|
|
13161
|
-
case 39:
|
|
13162
|
-
case 91:
|
|
13163
|
-
characters2 += delimit(character2);
|
|
13164
|
-
break;
|
|
13165
|
-
// \t \n \r \s
|
|
13166
|
-
case 9:
|
|
13167
|
-
case 10:
|
|
13168
|
-
case 13:
|
|
13169
|
-
case 32:
|
|
13170
|
-
characters2 += whitespace(previous);
|
|
13171
|
-
break;
|
|
13172
|
-
// \
|
|
13173
|
-
case 92:
|
|
13174
|
-
characters2 += escaping(caret() - 1, 7);
|
|
13175
|
-
continue;
|
|
13176
|
-
// /
|
|
13177
|
-
case 47:
|
|
13178
|
-
switch (peek()) {
|
|
13179
|
-
case 42:
|
|
13180
|
-
case 47:
|
|
13181
|
-
append(comment(commenter(next(), caret()), root2, parent), declarations);
|
|
13182
|
-
break;
|
|
13183
|
-
default:
|
|
13184
|
-
characters2 += "/";
|
|
13185
|
-
}
|
|
13186
|
-
break;
|
|
13187
|
-
// {
|
|
13188
|
-
case 123 * variable:
|
|
13189
|
-
points[index++] = strlen(characters2) * ampersand;
|
|
13190
|
-
// } ; \0
|
|
13191
|
-
case 125 * variable:
|
|
13192
|
-
case 59:
|
|
13193
|
-
case 0:
|
|
13194
|
-
switch (character2) {
|
|
13195
|
-
// \0 }
|
|
13196
|
-
case 0:
|
|
13197
|
-
case 125:
|
|
13198
|
-
scanning = 0;
|
|
13199
|
-
// ;
|
|
13200
|
-
case 59 + offset2:
|
|
13201
|
-
if (ampersand == -1) characters2 = replace(characters2, /\f/g, "");
|
|
13202
|
-
if (property > 0 && strlen(characters2) - length2)
|
|
13203
|
-
append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
|
|
13204
|
-
break;
|
|
13205
|
-
// @ ;
|
|
13206
|
-
case 59:
|
|
13207
|
-
characters2 += ";";
|
|
13208
|
-
// { rule/at-rule
|
|
13209
|
-
default:
|
|
13210
|
-
append(reference = ruleset(characters2, root2, parent, index, offset2, rules, points, type, props = [], children = [], length2), rulesets);
|
|
13211
|
-
if (character2 === 123)
|
|
13212
|
-
if (offset2 === 0)
|
|
13213
|
-
parse(characters2, root2, reference, reference, props, rulesets, length2, points, children);
|
|
13214
|
-
else
|
|
13215
|
-
switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
|
|
13216
|
-
// d l m s
|
|
13217
|
-
case 100:
|
|
13218
|
-
case 108:
|
|
13219
|
-
case 109:
|
|
13220
|
-
case 115:
|
|
13221
|
-
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2), children), rules, children, length2, points, rule ? props : children);
|
|
13222
|
-
break;
|
|
13223
|
-
default:
|
|
13224
|
-
parse(characters2, reference, reference, reference, [""], children, 0, points, children);
|
|
13225
|
-
}
|
|
13226
|
-
}
|
|
13227
|
-
index = offset2 = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
|
|
13228
|
-
break;
|
|
13229
|
-
// :
|
|
13230
|
-
case 58:
|
|
13231
|
-
length2 = 1 + strlen(characters2), property = previous;
|
|
13232
|
-
default:
|
|
13233
|
-
if (variable < 1) {
|
|
13234
|
-
if (character2 == 123)
|
|
13235
|
-
--variable;
|
|
13236
|
-
else if (character2 == 125 && variable++ == 0 && prev() == 125)
|
|
13237
|
-
continue;
|
|
13238
|
-
}
|
|
13239
|
-
switch (characters2 += from(character2), character2 * variable) {
|
|
13240
|
-
// &
|
|
13241
|
-
case 38:
|
|
13242
|
-
ampersand = offset2 > 0 ? 1 : (characters2 += "\f", -1);
|
|
13243
|
-
break;
|
|
13244
|
-
// ,
|
|
13245
|
-
case 44:
|
|
13246
|
-
points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
|
|
13247
|
-
break;
|
|
13248
|
-
// @
|
|
13249
|
-
case 64:
|
|
13250
|
-
if (peek() === 45)
|
|
13251
|
-
characters2 += delimit(next());
|
|
13252
|
-
atrule = peek(), offset2 = length2 = strlen(type = characters2 += identifier(caret())), character2++;
|
|
13253
|
-
break;
|
|
13254
|
-
// -
|
|
13255
|
-
case 45:
|
|
13256
|
-
if (previous === 45 && strlen(characters2) == 2)
|
|
13257
|
-
variable = 0;
|
|
13258
|
-
}
|
|
13259
|
-
}
|
|
13260
|
-
return rulesets;
|
|
13261
|
-
}
|
|
13262
|
-
function ruleset(value, root2, parent, index, offset2, rules, points, type, props, children, length2) {
|
|
13263
|
-
var post = offset2 - 1;
|
|
13264
|
-
var rule = offset2 === 0 ? rules : [""];
|
|
13265
|
-
var size = sizeof(rule);
|
|
13266
|
-
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
|
13267
|
-
for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
|
|
13268
|
-
if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
|
|
13269
|
-
props[k++] = z;
|
|
13270
|
-
return node(value, root2, parent, offset2 === 0 ? RULESET : type, props, children, length2);
|
|
13271
|
-
}
|
|
13272
|
-
function comment(value, root2, parent) {
|
|
13273
|
-
return node(value, root2, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
|
|
13274
|
-
}
|
|
13275
|
-
function declaration(value, root2, parent, length2) {
|
|
13276
|
-
return node(value, root2, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
|
|
13277
|
-
}
|
|
13278
|
-
function serialize(children, callback) {
|
|
13279
|
-
var output = "";
|
|
13280
|
-
var length2 = sizeof(children);
|
|
13281
|
-
for (var i = 0; i < length2; i++)
|
|
13282
|
-
output += callback(children[i], i, children, callback) || "";
|
|
13283
|
-
return output;
|
|
13284
|
-
}
|
|
13285
|
-
function stringify(element, index, children, callback) {
|
|
13286
|
-
switch (element.type) {
|
|
13287
|
-
case LAYER:
|
|
13288
|
-
if (element.children.length) break;
|
|
13289
|
-
case IMPORT:
|
|
13290
|
-
case DECLARATION:
|
|
13291
|
-
return element.return = element.return || element.value;
|
|
13292
|
-
case COMMENT:
|
|
13293
|
-
return "";
|
|
13294
|
-
case KEYFRAMES:
|
|
13295
|
-
return element.return = element.value + "{" + serialize(element.children, callback) + "}";
|
|
13296
|
-
case RULESET:
|
|
13297
|
-
element.value = element.props.join(",");
|
|
13298
|
-
}
|
|
13299
|
-
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
|
|
13300
|
-
}
|
|
13301
|
-
function middleware(collection) {
|
|
13302
|
-
var length2 = sizeof(collection);
|
|
13303
|
-
return function(element, index, children, callback) {
|
|
13304
|
-
var output = "";
|
|
13305
|
-
for (var i = 0; i < length2; i++)
|
|
13306
|
-
output += collection[i](element, index, children, callback) || "";
|
|
13307
|
-
return output;
|
|
13308
|
-
};
|
|
13309
|
-
}
|
|
13310
|
-
function rulesheet(callback) {
|
|
13311
|
-
return function(element) {
|
|
13312
|
-
if (!element.root) {
|
|
13313
|
-
if (element = element.return)
|
|
13314
|
-
callback(element);
|
|
13315
|
-
}
|
|
13316
|
-
};
|
|
13317
|
-
}
|
|
13318
|
-
var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index) {
|
|
13319
|
-
var previous = 0;
|
|
13320
|
-
var character2 = 0;
|
|
13321
|
-
while (true) {
|
|
13322
|
-
previous = character2;
|
|
13323
|
-
character2 = peek();
|
|
13324
|
-
if (previous === 38 && character2 === 12) {
|
|
13325
|
-
points[index] = 1;
|
|
13326
|
-
}
|
|
13327
|
-
if (token(character2)) {
|
|
13328
|
-
break;
|
|
13329
|
-
}
|
|
13330
|
-
next();
|
|
13331
|
-
}
|
|
13332
|
-
return slice(begin, position);
|
|
13333
|
-
};
|
|
13334
|
-
var toRules = function toRules2(parsed, points) {
|
|
13335
|
-
var index = -1;
|
|
13336
|
-
var character2 = 44;
|
|
13337
|
-
do {
|
|
13338
|
-
switch (token(character2)) {
|
|
13339
|
-
case 0:
|
|
13340
|
-
if (character2 === 38 && peek() === 12) {
|
|
13341
|
-
points[index] = 1;
|
|
13342
|
-
}
|
|
13343
|
-
parsed[index] += identifierWithPointTracking(position - 1, points, index);
|
|
13344
|
-
break;
|
|
13345
|
-
case 2:
|
|
13346
|
-
parsed[index] += delimit(character2);
|
|
13347
|
-
break;
|
|
13348
|
-
case 4:
|
|
13349
|
-
if (character2 === 44) {
|
|
13350
|
-
parsed[++index] = peek() === 58 ? "&\f" : "";
|
|
13351
|
-
points[index] = parsed[index].length;
|
|
13352
|
-
break;
|
|
13353
|
-
}
|
|
13354
|
-
// fallthrough
|
|
13355
|
-
default:
|
|
13356
|
-
parsed[index] += from(character2);
|
|
13357
|
-
}
|
|
13358
|
-
} while (character2 = next());
|
|
13359
|
-
return parsed;
|
|
13360
|
-
};
|
|
13361
|
-
var getRules = function getRules2(value, points) {
|
|
13362
|
-
return dealloc(toRules(alloc(value), points));
|
|
13363
|
-
};
|
|
13364
|
-
var fixedElements = /* @__PURE__ */ new WeakMap();
|
|
13365
|
-
var compat = function compat2(element) {
|
|
13366
|
-
if (element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo
|
|
13367
|
-
// negative .length indicates that this rule has been already prefixed
|
|
13368
|
-
element.length < 1) {
|
|
13369
|
-
return;
|
|
13370
|
-
}
|
|
13371
|
-
var value = element.value;
|
|
13372
|
-
var parent = element.parent;
|
|
13373
|
-
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
|
13374
|
-
while (parent.type !== "rule") {
|
|
13375
|
-
parent = parent.parent;
|
|
13376
|
-
if (!parent) return;
|
|
13377
|
-
}
|
|
13378
|
-
if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) {
|
|
13379
|
-
return;
|
|
13380
|
-
}
|
|
13381
|
-
if (isImplicitRule) {
|
|
13382
|
-
return;
|
|
13383
|
-
}
|
|
13384
|
-
fixedElements.set(element, true);
|
|
13385
|
-
var points = [];
|
|
13386
|
-
var rules = getRules(value, points);
|
|
13387
|
-
var parentRules = parent.props;
|
|
13388
|
-
for (var i = 0, k = 0; i < rules.length; i++) {
|
|
13389
|
-
for (var j = 0; j < parentRules.length; j++, k++) {
|
|
13390
|
-
element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
|
|
13391
|
-
}
|
|
13392
|
-
}
|
|
13393
|
-
};
|
|
13394
|
-
var removeLabel = function removeLabel2(element) {
|
|
13395
|
-
if (element.type === "decl") {
|
|
13396
|
-
var value = element.value;
|
|
13397
|
-
if (
|
|
13398
|
-
// charcode for l
|
|
13399
|
-
value.charCodeAt(0) === 108 && // charcode for b
|
|
13400
|
-
value.charCodeAt(2) === 98
|
|
13401
|
-
) {
|
|
13402
|
-
element["return"] = "";
|
|
13403
|
-
element.value = "";
|
|
13404
|
-
}
|
|
13405
|
-
}
|
|
13406
|
-
};
|
|
13407
|
-
function prefix(value, length2) {
|
|
13408
|
-
switch (hash(value, length2)) {
|
|
13409
|
-
// color-adjust
|
|
13410
|
-
case 5103:
|
|
13411
|
-
return WEBKIT + "print-" + value + value;
|
|
13412
|
-
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
13413
|
-
case 5737:
|
|
13414
|
-
case 4201:
|
|
13415
|
-
case 3177:
|
|
13416
|
-
case 3433:
|
|
13417
|
-
case 1641:
|
|
13418
|
-
case 4457:
|
|
13419
|
-
case 2921:
|
|
13420
|
-
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
13421
|
-
case 5572:
|
|
13422
|
-
case 6356:
|
|
13423
|
-
case 5844:
|
|
13424
|
-
case 3191:
|
|
13425
|
-
case 6645:
|
|
13426
|
-
case 3005:
|
|
13427
|
-
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
13428
|
-
case 6391:
|
|
13429
|
-
case 5879:
|
|
13430
|
-
case 5623:
|
|
13431
|
-
case 6135:
|
|
13432
|
-
case 4599:
|
|
13433
|
-
case 4855:
|
|
13434
|
-
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
13435
|
-
case 4215:
|
|
13436
|
-
case 6389:
|
|
13437
|
-
case 5109:
|
|
13438
|
-
case 5365:
|
|
13439
|
-
case 5621:
|
|
13440
|
-
case 3829:
|
|
13441
|
-
return WEBKIT + value + value;
|
|
13442
|
-
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
13443
|
-
case 5349:
|
|
13444
|
-
case 4246:
|
|
13445
|
-
case 4810:
|
|
13446
|
-
case 6968:
|
|
13447
|
-
case 2756:
|
|
13448
|
-
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
13449
|
-
// flex, flex-direction
|
|
13450
|
-
case 6828:
|
|
13451
|
-
case 4268:
|
|
13452
|
-
return WEBKIT + value + MS + value + value;
|
|
13453
|
-
// order
|
|
13454
|
-
case 6165:
|
|
13455
|
-
return WEBKIT + value + MS + "flex-" + value + value;
|
|
13456
|
-
// align-items
|
|
13457
|
-
case 5187:
|
|
13458
|
-
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
|
|
13459
|
-
// align-self
|
|
13460
|
-
case 5443:
|
|
13461
|
-
return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
|
|
13462
|
-
// align-content
|
|
13463
|
-
case 4675:
|
|
13464
|
-
return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
|
|
13465
|
-
// flex-shrink
|
|
13466
|
-
case 5548:
|
|
13467
|
-
return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
|
|
13468
|
-
// flex-basis
|
|
13469
|
-
case 5292:
|
|
13470
|
-
return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
|
|
13471
|
-
// flex-grow
|
|
13472
|
-
case 6060:
|
|
13473
|
-
return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
|
|
13474
|
-
// transition
|
|
13475
|
-
case 4554:
|
|
13476
|
-
return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
|
|
13477
|
-
// cursor
|
|
13478
|
-
case 6187:
|
|
13479
|
-
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
|
|
13480
|
-
// background, background-image
|
|
13481
|
-
case 5495:
|
|
13482
|
-
case 3959:
|
|
13483
|
-
return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
|
|
13484
|
-
// justify-content
|
|
13485
|
-
case 4968:
|
|
13486
|
-
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
|
|
13487
|
-
// (margin|padding)-inline-(start|end)
|
|
13488
|
-
case 4095:
|
|
13489
|
-
case 3583:
|
|
13490
|
-
case 4068:
|
|
13491
|
-
case 2532:
|
|
13492
|
-
return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
|
|
13493
|
-
// (min|max)?(width|height|inline-size|block-size)
|
|
13494
|
-
case 8116:
|
|
13495
|
-
case 7059:
|
|
13496
|
-
case 5753:
|
|
13497
|
-
case 5535:
|
|
13498
|
-
case 5445:
|
|
13499
|
-
case 5701:
|
|
13500
|
-
case 4933:
|
|
13501
|
-
case 4677:
|
|
13502
|
-
case 5533:
|
|
13503
|
-
case 5789:
|
|
13504
|
-
case 5021:
|
|
13505
|
-
case 4765:
|
|
13506
|
-
if (strlen(value) - 1 - length2 > 6) switch (charat(value, length2 + 1)) {
|
|
13507
|
-
// (m)ax-content, (m)in-content
|
|
13508
|
-
case 109:
|
|
13509
|
-
if (charat(value, length2 + 4) !== 45) break;
|
|
13510
|
-
// (f)ill-available, (f)it-content
|
|
13511
|
-
case 102:
|
|
13512
|
-
return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
|
|
13513
|
-
// (s)tretch
|
|
13514
|
-
case 115:
|
|
13515
|
-
return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2) + value : value;
|
|
13516
|
-
}
|
|
13517
|
-
break;
|
|
13518
|
-
// position: sticky
|
|
13519
|
-
case 4949:
|
|
13520
|
-
if (charat(value, length2 + 1) !== 115) break;
|
|
13521
|
-
// display: (flex|inline-flex)
|
|
13522
|
-
case 6444:
|
|
13523
|
-
switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
|
|
13524
|
-
// stic(k)y
|
|
13525
|
-
case 107:
|
|
13526
|
-
return replace(value, ":", ":" + WEBKIT) + value;
|
|
13527
|
-
// (inline-)?fl(e)x
|
|
13528
|
-
case 101:
|
|
13529
|
-
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
|
|
13530
|
-
}
|
|
13531
|
-
break;
|
|
13532
|
-
// writing-mode
|
|
13533
|
-
case 5936:
|
|
13534
|
-
switch (charat(value, length2 + 11)) {
|
|
13535
|
-
// vertical-l(r)
|
|
13536
|
-
case 114:
|
|
13537
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
|
|
13538
|
-
// vertical-r(l)
|
|
13539
|
-
case 108:
|
|
13540
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
|
|
13541
|
-
// horizontal(-)tb
|
|
13542
|
-
case 45:
|
|
13543
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
|
|
13544
|
-
}
|
|
13545
|
-
return WEBKIT + value + MS + value + value;
|
|
13546
|
-
}
|
|
13547
|
-
return value;
|
|
13548
|
-
}
|
|
13549
|
-
var prefixer = function prefixer2(element, index, children, callback) {
|
|
13550
|
-
if (element.length > -1) {
|
|
13551
|
-
if (!element["return"]) switch (element.type) {
|
|
13552
|
-
case DECLARATION:
|
|
13553
|
-
element["return"] = prefix(element.value, element.length);
|
|
13554
|
-
break;
|
|
13555
|
-
case KEYFRAMES:
|
|
13556
|
-
return serialize([copy(element, {
|
|
13557
|
-
value: replace(element.value, "@", "@" + WEBKIT)
|
|
13558
|
-
})], callback);
|
|
13559
|
-
case RULESET:
|
|
13560
|
-
if (element.length) return combine(element.props, function(value) {
|
|
13561
|
-
switch (match(value, /(::plac\w+|:read-\w+)/)) {
|
|
13562
|
-
// :read-(only|write)
|
|
13563
|
-
case ":read-only":
|
|
13564
|
-
case ":read-write":
|
|
13565
|
-
return serialize([copy(element, {
|
|
13566
|
-
props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")]
|
|
13567
|
-
})], callback);
|
|
13568
|
-
// :placeholder
|
|
13569
|
-
case "::placeholder":
|
|
13570
|
-
return serialize([copy(element, {
|
|
13571
|
-
props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")]
|
|
13572
|
-
}), copy(element, {
|
|
13573
|
-
props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")]
|
|
13574
|
-
}), copy(element, {
|
|
13575
|
-
props: [replace(value, /:(plac\w+)/, MS + "input-$1")]
|
|
13576
|
-
})], callback);
|
|
13577
|
-
}
|
|
13578
|
-
return "";
|
|
13579
|
-
});
|
|
13580
|
-
}
|
|
13581
|
-
}
|
|
13582
|
-
};
|
|
13583
|
-
var defaultStylisPlugins = [prefixer];
|
|
13584
|
-
var createCache = function createCache2(options) {
|
|
13585
|
-
var key = options.key;
|
|
13586
|
-
if (key === "css") {
|
|
13587
|
-
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
13588
|
-
Array.prototype.forEach.call(ssrStyles, function(node2) {
|
|
13589
|
-
var dataEmotionAttribute = node2.getAttribute("data-emotion");
|
|
13590
|
-
if (dataEmotionAttribute.indexOf(" ") === -1) {
|
|
13591
|
-
return;
|
|
13592
|
-
}
|
|
13593
|
-
document.head.appendChild(node2);
|
|
13594
|
-
node2.setAttribute("data-s", "");
|
|
13595
|
-
});
|
|
13596
|
-
}
|
|
13597
|
-
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
|
13598
|
-
var inserted = {};
|
|
13599
|
-
var container;
|
|
13600
|
-
var nodesToHydrate = [];
|
|
13601
|
-
{
|
|
13602
|
-
container = options.container || document.head;
|
|
13603
|
-
Array.prototype.forEach.call(
|
|
13604
|
-
// this means we will ignore elements which don't have a space in them which
|
|
13605
|
-
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
13606
|
-
document.querySelectorAll('style[data-emotion^="' + key + ' "]'),
|
|
13607
|
-
function(node2) {
|
|
13608
|
-
var attrib = node2.getAttribute("data-emotion").split(" ");
|
|
13609
|
-
for (var i = 1; i < attrib.length; i++) {
|
|
13610
|
-
inserted[attrib[i]] = true;
|
|
13611
|
-
}
|
|
13612
|
-
nodesToHydrate.push(node2);
|
|
13613
|
-
}
|
|
13614
|
-
);
|
|
13615
|
-
}
|
|
13616
|
-
var _insert;
|
|
13617
|
-
var omnipresentPlugins = [compat, removeLabel];
|
|
13618
|
-
{
|
|
13619
|
-
var currentSheet;
|
|
13620
|
-
var finalizingPlugins = [stringify, rulesheet(function(rule) {
|
|
13621
|
-
currentSheet.insert(rule);
|
|
13622
|
-
})];
|
|
13623
|
-
var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
13624
|
-
var stylis = function stylis2(styles2) {
|
|
13625
|
-
return serialize(compile(styles2), serializer);
|
|
13626
|
-
};
|
|
13627
|
-
_insert = function insert(selector, serialized, sheet, shouldCache) {
|
|
13628
|
-
currentSheet = sheet;
|
|
13629
|
-
stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
|
13630
|
-
if (shouldCache) {
|
|
13631
|
-
cache.inserted[serialized.name] = true;
|
|
13632
|
-
}
|
|
13633
|
-
};
|
|
13634
|
-
}
|
|
13635
|
-
var cache = {
|
|
13636
|
-
key,
|
|
13637
|
-
sheet: new StyleSheet({
|
|
13638
|
-
key,
|
|
13639
|
-
container,
|
|
13640
|
-
nonce: options.nonce,
|
|
13641
|
-
speedy: options.speedy,
|
|
13642
|
-
prepend: options.prepend,
|
|
13643
|
-
insertionPoint: options.insertionPoint
|
|
13644
|
-
}),
|
|
13645
|
-
nonce: options.nonce,
|
|
13646
|
-
inserted,
|
|
13647
|
-
registered: {},
|
|
13648
|
-
insert: _insert
|
|
13649
|
-
};
|
|
13650
|
-
cache.sheet.hydrate(nodesToHydrate);
|
|
13651
|
-
return cache;
|
|
13652
|
-
};
|
|
13653
12873
|
const isolatedTheme = material.createTheme({
|
|
13654
12874
|
typography: {
|
|
13655
|
-
fontFamily: "'
|
|
12875
|
+
fontFamily: "'Inter', sans-serif"
|
|
13656
12876
|
}
|
|
13657
12877
|
});
|
|
13658
12878
|
function createEmotionCache() {
|
|
13659
|
-
|
|
13660
|
-
|
|
12879
|
+
const isBrowser = typeof document !== "undefined";
|
|
12880
|
+
if (!isBrowser) {
|
|
12881
|
+
return createCache({ key: "sixseconds" });
|
|
13661
12882
|
}
|
|
13662
|
-
let insertionPoint;
|
|
13663
12883
|
const metaTag = document.querySelector('meta[name="sixseconds-insertion-point"]');
|
|
13664
|
-
|
|
13665
|
-
insertionPoint = metaTag;
|
|
13666
|
-
}
|
|
12884
|
+
const insertionPoint = metaTag || void 0;
|
|
13667
12885
|
return createCache({
|
|
13668
12886
|
key: "sixseconds",
|
|
13669
|
-
|
|
13670
|
-
|
|
13671
|
-
...insertionPoint ? { insertionPoint } : { prepend: true }
|
|
12887
|
+
insertionPoint,
|
|
12888
|
+
prepend: !insertionPoint
|
|
13672
12889
|
});
|
|
13673
12890
|
}
|
|
13674
12891
|
function MuiProvider({ children }) {
|
|
@@ -13705,17 +12922,11 @@ const DangerDialog = ({
|
|
|
13705
12922
|
material.Typography,
|
|
13706
12923
|
{
|
|
13707
12924
|
variant: "h5",
|
|
13708
|
-
sx: { fontSize: "20px", fontWeight: "600", color: "#1a1c1e", fontFamily: "'
|
|
12925
|
+
sx: { fontSize: "20px", fontWeight: "600", color: "#1a1c1e", fontFamily: "'Inter', sans-serif" },
|
|
13709
12926
|
children: title
|
|
13710
12927
|
}
|
|
13711
12928
|
),
|
|
13712
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13713
|
-
material.Typography,
|
|
13714
|
-
{
|
|
13715
|
-
sx: { fontSize: "15px", fontWeight: "400", color: "#5f6368", fontFamily: "'IBM Plex Sans', sans-serif" },
|
|
13716
|
-
children: description
|
|
13717
|
-
}
|
|
13718
|
-
)
|
|
12929
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Typography, { sx: { fontSize: "15px", fontWeight: "400", color: "#5f6368", fontFamily: "'Inter', sans-serif" }, children: description })
|
|
13719
12930
|
] }),
|
|
13720
12931
|
/* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { direction: "row", alignItems: "center", spacing: 2, sx: { mt: 3 }, children: [
|
|
13721
12932
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -13732,7 +12943,7 @@ const DangerDialog = ({
|
|
|
13732
12943
|
fontSize: "14px",
|
|
13733
12944
|
fontWeight: 500,
|
|
13734
12945
|
padding: "10px",
|
|
13735
|
-
fontFamily: "'
|
|
12946
|
+
fontFamily: "'Inter', sans-serif",
|
|
13736
12947
|
"&:hover": { borderColor: "#0073b1", color: "#0073b1", background: "rgba(0, 115, 177, 0.04)" }
|
|
13737
12948
|
},
|
|
13738
12949
|
children: "Cancel"
|
|
@@ -13755,7 +12966,7 @@ const DangerDialog = ({
|
|
|
13755
12966
|
fontSize: "14px",
|
|
13756
12967
|
fontWeight: 500,
|
|
13757
12968
|
padding: "10px",
|
|
13758
|
-
fontFamily: "'
|
|
12969
|
+
fontFamily: "'Inter', sans-serif",
|
|
13759
12970
|
"&:hover": { background: "#b71c1c" }
|
|
13760
12971
|
},
|
|
13761
12972
|
children: isLoading ? ALERT_MESSAGES.commonLoadingMessage : buttonTitle
|
|
@@ -13777,7 +12988,7 @@ const ChangePasswordStyled = styles.styled("div")(() => ({
|
|
|
13777
12988
|
padding: "16px",
|
|
13778
12989
|
borderRadius: "12px",
|
|
13779
12990
|
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.05)",
|
|
13780
|
-
fontFamily: "'
|
|
12991
|
+
fontFamily: "'Inter', sans-serif",
|
|
13781
12992
|
width: "100%",
|
|
13782
12993
|
boxSizing: "border-box"
|
|
13783
12994
|
},
|
|
@@ -13787,7 +12998,7 @@ const ChangePasswordStyled = styles.styled("div")(() => ({
|
|
|
13787
12998
|
borderRadius: "12px",
|
|
13788
12999
|
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.05)",
|
|
13789
13000
|
height: "729px",
|
|
13790
|
-
fontFamily: "'
|
|
13001
|
+
fontFamily: "'Inter', sans-serif",
|
|
13791
13002
|
overflow: "auto"
|
|
13792
13003
|
},
|
|
13793
13004
|
"& .dashboard": {
|
|
@@ -13795,45 +13006,45 @@ const ChangePasswordStyled = styles.styled("div")(() => ({
|
|
|
13795
13006
|
gap: "16px",
|
|
13796
13007
|
width: "100%",
|
|
13797
13008
|
alignItems: "center",
|
|
13798
|
-
fontFamily: "'
|
|
13009
|
+
fontFamily: "'Inter', sans-serif"
|
|
13799
13010
|
},
|
|
13800
13011
|
"& .product": {
|
|
13801
13012
|
display: "flex",
|
|
13802
|
-
fontFamily: "'
|
|
13013
|
+
fontFamily: "'Inter', sans-serif",
|
|
13803
13014
|
gap: "16px"
|
|
13804
13015
|
},
|
|
13805
13016
|
"& .project": {
|
|
13806
13017
|
fontSize: "14px",
|
|
13807
13018
|
fontWeight: "400",
|
|
13808
13019
|
color: "#5f6368",
|
|
13809
|
-
fontFamily: "'
|
|
13020
|
+
fontFamily: "'Inter', sans-serif"
|
|
13810
13021
|
},
|
|
13811
13022
|
"& .seiDetail": {
|
|
13812
13023
|
background: "#f0f7ff",
|
|
13813
13024
|
padding: "12px",
|
|
13814
13025
|
borderRadius: "12px",
|
|
13815
13026
|
height: "100%",
|
|
13816
|
-
fontFamily: "'
|
|
13027
|
+
fontFamily: "'Inter', sans-serif"
|
|
13817
13028
|
},
|
|
13818
13029
|
"& .vsDetail": {
|
|
13819
13030
|
background: "#fff9f2",
|
|
13820
13031
|
padding: "12px",
|
|
13821
13032
|
borderRadius: "12px",
|
|
13822
13033
|
height: " 100%",
|
|
13823
|
-
fontFamily: "'
|
|
13034
|
+
fontFamily: "'Inter', sans-serif"
|
|
13824
13035
|
},
|
|
13825
13036
|
"& .emotional": {
|
|
13826
13037
|
fontSize: "16px",
|
|
13827
13038
|
fontWeight: "600",
|
|
13828
13039
|
color: "#1a1c1e",
|
|
13829
|
-
fontFamily: "'
|
|
13040
|
+
fontFamily: "'Inter', sans-serif"
|
|
13830
13041
|
},
|
|
13831
13042
|
"& .Detail": {
|
|
13832
13043
|
fontSize: "14px",
|
|
13833
13044
|
fontWeight: "400",
|
|
13834
13045
|
color: "#5f6368",
|
|
13835
13046
|
margin: "10px 0px",
|
|
13836
|
-
fontFamily: "'
|
|
13047
|
+
fontFamily: "'Inter', sans-serif"
|
|
13837
13048
|
},
|
|
13838
13049
|
"& .link": {
|
|
13839
13050
|
fontSize: "16px",
|
|
@@ -13841,39 +13052,39 @@ const ChangePasswordStyled = styles.styled("div")(() => ({
|
|
|
13841
13052
|
fontWeight: "500",
|
|
13842
13053
|
marginTop: "4%",
|
|
13843
13054
|
padding: "12px 5px 0px",
|
|
13844
|
-
fontFamily: "'
|
|
13055
|
+
fontFamily: "'Inter', sans-serif"
|
|
13845
13056
|
},
|
|
13846
13057
|
"& .group": {
|
|
13847
13058
|
paddingTop: "12px",
|
|
13848
|
-
fontFamily: "'
|
|
13059
|
+
fontFamily: "'Inter', sans-serif"
|
|
13849
13060
|
},
|
|
13850
13061
|
"& .creation": {
|
|
13851
13062
|
display: "flex",
|
|
13852
13063
|
paddingBottom: "10px",
|
|
13853
|
-
fontFamily: "'
|
|
13064
|
+
fontFamily: "'Inter', sans-serif"
|
|
13854
13065
|
},
|
|
13855
13066
|
"& .groupDetailData": {
|
|
13856
13067
|
fontSize: "14px",
|
|
13857
13068
|
fontWeight: "400",
|
|
13858
13069
|
color: "#5f6368",
|
|
13859
13070
|
margin: "0px 13px 0px 0px",
|
|
13860
|
-
fontFamily: "'
|
|
13071
|
+
fontFamily: "'Inter', sans-serif"
|
|
13861
13072
|
},
|
|
13862
13073
|
"& .title": {
|
|
13863
13074
|
color: "#1a1c1e",
|
|
13864
13075
|
fontSize: "16px",
|
|
13865
13076
|
fontWeight: "600",
|
|
13866
|
-
fontFamily: "'
|
|
13077
|
+
fontFamily: "'Inter', sans-serif"
|
|
13867
13078
|
},
|
|
13868
13079
|
"& .reportActivityDetail": {
|
|
13869
13080
|
display: "flex",
|
|
13870
13081
|
alignItems: "center",
|
|
13871
13082
|
margin: "0px 0px 7px 0px",
|
|
13872
|
-
fontFamily: "'
|
|
13083
|
+
fontFamily: "'Inter', sans-serif"
|
|
13873
13084
|
},
|
|
13874
13085
|
"& .reportActivityDetail svg": {
|
|
13875
13086
|
margin: "0px 13px 0px 0px",
|
|
13876
|
-
fontFamily: "'
|
|
13087
|
+
fontFamily: "'Inter', sans-serif"
|
|
13877
13088
|
},
|
|
13878
13089
|
"& .version": {
|
|
13879
13090
|
display: "flex",
|
|
@@ -13881,42 +13092,42 @@ const ChangePasswordStyled = styles.styled("div")(() => ({
|
|
|
13881
13092
|
width: "98%",
|
|
13882
13093
|
alignItems: "center",
|
|
13883
13094
|
margin: "8px 0px 8px 0px",
|
|
13884
|
-
fontFamily: "'
|
|
13095
|
+
fontFamily: "'Inter', sans-serif"
|
|
13885
13096
|
},
|
|
13886
13097
|
"& .dotted": {
|
|
13887
13098
|
fontSize: "14px",
|
|
13888
13099
|
fontWeight: "500",
|
|
13889
13100
|
display: "flex",
|
|
13890
13101
|
alignItems: "center",
|
|
13891
|
-
fontFamily: "'
|
|
13102
|
+
fontFamily: "'Inter', sans-serif"
|
|
13892
13103
|
},
|
|
13893
13104
|
"& .seiDetail .dotted": {
|
|
13894
13105
|
color: "#0073b1",
|
|
13895
|
-
fontFamily: "'
|
|
13106
|
+
fontFamily: "'Inter', sans-serif"
|
|
13896
13107
|
},
|
|
13897
13108
|
"& .vsDetail .dotted": {
|
|
13898
13109
|
color: "#f68926",
|
|
13899
|
-
fontFamily: "'
|
|
13110
|
+
fontFamily: "'Inter', sans-serif"
|
|
13900
13111
|
},
|
|
13901
13112
|
"& .seiDetail .version svg": {
|
|
13902
13113
|
color: "#0073b1",
|
|
13903
|
-
fontFamily: "'
|
|
13114
|
+
fontFamily: "'Inter', sans-serif"
|
|
13904
13115
|
},
|
|
13905
13116
|
"& .vsDetail .version svg": {
|
|
13906
13117
|
color: "#f68926",
|
|
13907
|
-
fontFamily: "'
|
|
13118
|
+
fontFamily: "'Inter', sans-serif"
|
|
13908
13119
|
},
|
|
13909
13120
|
"& .seiDetail .accordionTitle": {
|
|
13910
13121
|
color: "#0073b1",
|
|
13911
13122
|
fontSize: "14px",
|
|
13912
13123
|
fontWeight: "500",
|
|
13913
|
-
fontFamily: "'
|
|
13124
|
+
fontFamily: "'Inter', sans-serif"
|
|
13914
13125
|
},
|
|
13915
13126
|
"& .vsDetail .accordionTitle": {
|
|
13916
13127
|
color: "#f68926",
|
|
13917
13128
|
fontSize: "14px",
|
|
13918
13129
|
fontWeight: "500",
|
|
13919
|
-
fontFamily: "'
|
|
13130
|
+
fontFamily: "'Inter', sans-serif"
|
|
13920
13131
|
},
|
|
13921
13132
|
"& .seiDetail .toggle svg": {
|
|
13922
13133
|
color: "#0073b1"
|
|
@@ -13929,14 +13140,14 @@ const ChangePasswordStyled = styles.styled("div")(() => ({
|
|
|
13929
13140
|
color: "#5f6368",
|
|
13930
13141
|
fontWeight: "400",
|
|
13931
13142
|
margin: "3px 3px",
|
|
13932
|
-
fontFamily: "'
|
|
13143
|
+
fontFamily: "'Inter', sans-serif"
|
|
13933
13144
|
},
|
|
13934
13145
|
"& .recant": {
|
|
13935
13146
|
fontSize: "16px",
|
|
13936
13147
|
fontWeight: "600",
|
|
13937
13148
|
color: "#1a1c1e",
|
|
13938
13149
|
padding: "9px 4px",
|
|
13939
|
-
fontFamily: "'
|
|
13150
|
+
fontFamily: "'Inter', sans-serif"
|
|
13940
13151
|
},
|
|
13941
13152
|
"& .viewFile": {
|
|
13942
13153
|
color: "#5f6368",
|
|
@@ -13972,7 +13183,7 @@ const ProfileStyled = styles.styled("div")(() => ({
|
|
|
13972
13183
|
margin: "10px 0px",
|
|
13973
13184
|
padding: "16px",
|
|
13974
13185
|
borderRadius: "12px",
|
|
13975
|
-
fontFamily: "'
|
|
13186
|
+
fontFamily: "'Inter', sans-serif",
|
|
13976
13187
|
width: "100%",
|
|
13977
13188
|
boxSizing: "border-box"
|
|
13978
13189
|
},
|
|
@@ -13981,7 +13192,7 @@ const ProfileStyled = styles.styled("div")(() => ({
|
|
|
13981
13192
|
padding: "12px",
|
|
13982
13193
|
borderRadius: "12px",
|
|
13983
13194
|
height: "729px",
|
|
13984
|
-
fontFamily: "'
|
|
13195
|
+
fontFamily: "'Inter', sans-serif",
|
|
13985
13196
|
overflow: "auto"
|
|
13986
13197
|
},
|
|
13987
13198
|
"& .dashboard": {
|
|
@@ -13989,45 +13200,45 @@ const ProfileStyled = styles.styled("div")(() => ({
|
|
|
13989
13200
|
gap: "16px",
|
|
13990
13201
|
width: "100%",
|
|
13991
13202
|
alignItems: "center",
|
|
13992
|
-
fontFamily: "'
|
|
13203
|
+
fontFamily: "'Inter', sans-serif"
|
|
13993
13204
|
},
|
|
13994
13205
|
"& .product": {
|
|
13995
13206
|
display: "flex",
|
|
13996
|
-
fontFamily: "'
|
|
13207
|
+
fontFamily: "'Inter', sans-serif",
|
|
13997
13208
|
gap: "16px"
|
|
13998
13209
|
},
|
|
13999
13210
|
"& .project": {
|
|
14000
13211
|
fontSize: "14px",
|
|
14001
13212
|
fontWeight: "400",
|
|
14002
13213
|
color: "#5f6368",
|
|
14003
|
-
fontFamily: "'
|
|
13214
|
+
fontFamily: "'Inter', sans-serif"
|
|
14004
13215
|
},
|
|
14005
13216
|
"& .seiDetail": {
|
|
14006
13217
|
background: "#f0f7ff",
|
|
14007
13218
|
padding: "12px",
|
|
14008
13219
|
borderRadius: "12px",
|
|
14009
13220
|
height: "100%",
|
|
14010
|
-
fontFamily: "'
|
|
13221
|
+
fontFamily: "'Inter', sans-serif"
|
|
14011
13222
|
},
|
|
14012
13223
|
"& .vsDetail": {
|
|
14013
13224
|
background: "#fff9f2",
|
|
14014
13225
|
padding: "12px",
|
|
14015
13226
|
borderRadius: "12px",
|
|
14016
13227
|
height: " 100%",
|
|
14017
|
-
fontFamily: "'
|
|
13228
|
+
fontFamily: "'Inter', sans-serif"
|
|
14018
13229
|
},
|
|
14019
13230
|
"& .emotional": {
|
|
14020
13231
|
fontSize: "16px",
|
|
14021
13232
|
fontWeight: "600",
|
|
14022
13233
|
color: "#1a1c1e",
|
|
14023
|
-
fontFamily: "'
|
|
13234
|
+
fontFamily: "'Inter', sans-serif"
|
|
14024
13235
|
},
|
|
14025
13236
|
"& .Detail": {
|
|
14026
13237
|
fontSize: "14px",
|
|
14027
13238
|
fontWeight: "400",
|
|
14028
13239
|
color: "#5f6368",
|
|
14029
13240
|
margin: "10px 0px",
|
|
14030
|
-
fontFamily: "'
|
|
13241
|
+
fontFamily: "'Inter', sans-serif"
|
|
14031
13242
|
},
|
|
14032
13243
|
"& .link": {
|
|
14033
13244
|
fontSize: "16px",
|
|
@@ -14035,39 +13246,39 @@ const ProfileStyled = styles.styled("div")(() => ({
|
|
|
14035
13246
|
fontWeight: "500",
|
|
14036
13247
|
marginTop: "4%",
|
|
14037
13248
|
padding: "12px 5px 0px",
|
|
14038
|
-
fontFamily: "'
|
|
13249
|
+
fontFamily: "'Inter', sans-serif"
|
|
14039
13250
|
},
|
|
14040
13251
|
"& .group": {
|
|
14041
13252
|
paddingTop: "12px",
|
|
14042
|
-
fontFamily: "'
|
|
13253
|
+
fontFamily: "'Inter', sans-serif"
|
|
14043
13254
|
},
|
|
14044
13255
|
"& .creation": {
|
|
14045
13256
|
display: "flex",
|
|
14046
13257
|
paddingBottom: "10px",
|
|
14047
|
-
fontFamily: "'
|
|
13258
|
+
fontFamily: "'Inter', sans-serif"
|
|
14048
13259
|
},
|
|
14049
13260
|
"& .groupDetailData": {
|
|
14050
13261
|
fontSize: "14px",
|
|
14051
13262
|
fontWeight: "400",
|
|
14052
13263
|
color: "#5f6368",
|
|
14053
13264
|
margin: "0px 13px 0px 0px",
|
|
14054
|
-
fontFamily: "'
|
|
13265
|
+
fontFamily: "'Inter', sans-serif"
|
|
14055
13266
|
},
|
|
14056
13267
|
"& .title": {
|
|
14057
13268
|
color: "#1a1c1e",
|
|
14058
13269
|
fontSize: "16px",
|
|
14059
13270
|
fontWeight: "600",
|
|
14060
|
-
fontFamily: "'
|
|
13271
|
+
fontFamily: "'Inter', sans-serif"
|
|
14061
13272
|
},
|
|
14062
13273
|
"& .reportActivityDetail": {
|
|
14063
13274
|
display: "flex",
|
|
14064
13275
|
alignItems: "center",
|
|
14065
13276
|
margin: "0px 0px 7px 0px",
|
|
14066
|
-
fontFamily: "'
|
|
13277
|
+
fontFamily: "'Inter', sans-serif"
|
|
14067
13278
|
},
|
|
14068
13279
|
"& .reportActivityDetail svg": {
|
|
14069
13280
|
margin: "0px 13px 0px 0px",
|
|
14070
|
-
fontFamily: "'
|
|
13281
|
+
fontFamily: "'Inter', sans-serif"
|
|
14071
13282
|
},
|
|
14072
13283
|
"& .version": {
|
|
14073
13284
|
display: "flex",
|
|
@@ -14075,42 +13286,42 @@ const ProfileStyled = styles.styled("div")(() => ({
|
|
|
14075
13286
|
width: "98%",
|
|
14076
13287
|
alignItems: "center",
|
|
14077
13288
|
margin: "8px 0px 8px 0px",
|
|
14078
|
-
fontFamily: "'
|
|
13289
|
+
fontFamily: "'Inter', sans-serif"
|
|
14079
13290
|
},
|
|
14080
13291
|
"& .dotted": {
|
|
14081
13292
|
fontSize: "14px",
|
|
14082
13293
|
fontWeight: "500",
|
|
14083
13294
|
display: "flex",
|
|
14084
13295
|
alignItems: "center",
|
|
14085
|
-
fontFamily: "'
|
|
13296
|
+
fontFamily: "'Inter', sans-serif"
|
|
14086
13297
|
},
|
|
14087
13298
|
"& .seiDetail .dotted": {
|
|
14088
13299
|
color: "#0073b1",
|
|
14089
|
-
fontFamily: "'
|
|
13300
|
+
fontFamily: "'Inter', sans-serif"
|
|
14090
13301
|
},
|
|
14091
13302
|
"& .vsDetail .dotted": {
|
|
14092
13303
|
color: "#f68926",
|
|
14093
|
-
fontFamily: "'
|
|
13304
|
+
fontFamily: "'Inter', sans-serif"
|
|
14094
13305
|
},
|
|
14095
13306
|
"& .seiDetail .version svg": {
|
|
14096
13307
|
color: "#0073b1",
|
|
14097
|
-
fontFamily: "'
|
|
13308
|
+
fontFamily: "'Inter', sans-serif"
|
|
14098
13309
|
},
|
|
14099
13310
|
"& .vsDetail .version svg": {
|
|
14100
13311
|
color: "#f68926",
|
|
14101
|
-
fontFamily: "'
|
|
13312
|
+
fontFamily: "'Inter', sans-serif"
|
|
14102
13313
|
},
|
|
14103
13314
|
"& .seiDetail .accordionTitle": {
|
|
14104
13315
|
color: "#0073b1",
|
|
14105
13316
|
fontSize: "14px",
|
|
14106
13317
|
fontWeight: "500",
|
|
14107
|
-
fontFamily: "'
|
|
13318
|
+
fontFamily: "'Inter', sans-serif"
|
|
14108
13319
|
},
|
|
14109
13320
|
"& .vsDetail .accordionTitle": {
|
|
14110
13321
|
color: "#f68926",
|
|
14111
13322
|
fontSize: "14px",
|
|
14112
13323
|
fontWeight: "500",
|
|
14113
|
-
fontFamily: "'
|
|
13324
|
+
fontFamily: "'Inter', sans-serif"
|
|
14114
13325
|
},
|
|
14115
13326
|
"& .seiDetail .toggle svg": {
|
|
14116
13327
|
color: "#0073b1"
|
|
@@ -14123,14 +13334,14 @@ const ProfileStyled = styles.styled("div")(() => ({
|
|
|
14123
13334
|
color: "#5f6368",
|
|
14124
13335
|
fontWeight: "400",
|
|
14125
13336
|
// margin: "3px 3px",
|
|
14126
|
-
fontFamily: "'
|
|
13337
|
+
fontFamily: "'Inter', sans-serif"
|
|
14127
13338
|
},
|
|
14128
13339
|
"& .recant": {
|
|
14129
13340
|
fontSize: "16px",
|
|
14130
13341
|
fontWeight: "600",
|
|
14131
13342
|
color: "#1a1c1e",
|
|
14132
13343
|
padding: "9px 4px",
|
|
14133
|
-
fontFamily: "'
|
|
13344
|
+
fontFamily: "'Inter', sans-serif"
|
|
14134
13345
|
},
|
|
14135
13346
|
"& .viewFile": {
|
|
14136
13347
|
color: "#5f6368",
|
|
@@ -14320,7 +13531,7 @@ function ViewProfileDialog({ userData, setInitialState, isOpen }) {
|
|
|
14320
13531
|
fontWeight: "800",
|
|
14321
13532
|
color: "#1a1c1e",
|
|
14322
13533
|
mb: 2,
|
|
14323
|
-
fontFamily: "'
|
|
13534
|
+
fontFamily: "'Inter', sans-serif"
|
|
14324
13535
|
},
|
|
14325
13536
|
children: userData?.fullName
|
|
14326
13537
|
}
|
|
@@ -14434,7 +13645,7 @@ function ChangePasswordDialog({ isOpen, email, t: t2, setInitialState }) {
|
|
|
14434
13645
|
fontWeight: 700,
|
|
14435
13646
|
color: "#1a1c1e",
|
|
14436
13647
|
mb: 3,
|
|
14437
|
-
fontFamily: "'
|
|
13648
|
+
fontFamily: "'Inter', sans-serif",
|
|
14438
13649
|
textAlign: "start"
|
|
14439
13650
|
},
|
|
14440
13651
|
children: t2("Change Password")
|
|
@@ -14581,9 +13792,9 @@ const AppMenus = ({ menuItems, setInitialState, t: t2, appName, router }) => {
|
|
|
14581
13792
|
)) }) }) });
|
|
14582
13793
|
};
|
|
14583
13794
|
const DropdownMenu = ({ headerMenuArray, initialState }) => {
|
|
14584
|
-
const pathname = window.location.pathname;
|
|
13795
|
+
const pathname = typeof window !== "undefined" ? window.location.pathname : "";
|
|
14585
13796
|
const isMobile = material.useMediaQuery("(max-width: 1324px)");
|
|
14586
|
-
return /* @__PURE__ */ jsxRuntime.jsx("nav", {
|
|
13797
|
+
return /* @__PURE__ */ jsxRuntime.jsx("nav", { className: "sixseconds-header-nav", children: !isMobile ? /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "sixseconds-header-main-list-menu sixseconds-header-desktop-menu", children: headerMenuArray.map((items, index) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "sixseconds-header-menu-item", style: { listStyle: "none" }, children: [
|
|
14587
13798
|
/* @__PURE__ */ jsxRuntime.jsx("a", { href: items.value || "", target: items.target, className: `sixseconds-header-menu-link`, children: items.label }),
|
|
14588
13799
|
Boolean(items.children.length) && /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "sixseconds-header-submenu-data", children: items.children?.map((child, index2) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: child.value || "", target: child.target, className: "sixseconds-header-submenu-link", children: child.label }) }, index2)) })
|
|
14589
13800
|
] }, index)) }) : initialState.toggles.dropDownMenu && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "lg:hidden sixseconds-header-small-device-menu", id: "mobile-menu", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sixseconds-header-layout-mobile-menu", children: headerMenuArray.map((items, index) => /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
@@ -15084,8 +14295,8 @@ const Notification = ({ setInitialState, notificationAccessApps, initialState, t
|
|
|
15084
14295
|
return;
|
|
15085
14296
|
}
|
|
15086
14297
|
const newNotifications = pager?.data?.map((itm) => transformNotifications(itm));
|
|
15087
|
-
setNotifications((
|
|
15088
|
-
setPage((
|
|
14298
|
+
setNotifications((prev) => [...prev, ...newNotifications]);
|
|
14299
|
+
setPage((prev) => prev + 1);
|
|
15089
14300
|
}
|
|
15090
14301
|
};
|
|
15091
14302
|
return /* @__PURE__ */ jsxRuntime.jsx(material.ClickAwayListener, { onClickAway: () => handleCloseUtil(setInitialState), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -15205,7 +14416,7 @@ const SubHeaderStyled = styles.styled(material.AppBar)(() => ({
|
|
|
15205
14416
|
color: "#1a1c1e",
|
|
15206
14417
|
height: "64px",
|
|
15207
14418
|
width: "100%",
|
|
15208
|
-
fontFamily: "'
|
|
14419
|
+
fontFamily: "'Inter', sans-serif",
|
|
15209
14420
|
position: "fixed",
|
|
15210
14421
|
zIndex: "1000",
|
|
15211
14422
|
right: "0px",
|
|
@@ -15220,7 +14431,7 @@ const SubHeaderStyled = styles.styled(material.AppBar)(() => ({
|
|
|
15220
14431
|
justifyContent: "space-between",
|
|
15221
14432
|
alignItems: "center",
|
|
15222
14433
|
margin: "0px",
|
|
15223
|
-
fontFamily: "'
|
|
14434
|
+
fontFamily: "'Inter', sans-serif"
|
|
15224
14435
|
},
|
|
15225
14436
|
"& .sixseconds-header-profile": {
|
|
15226
14437
|
position: "absolute",
|
|
@@ -15231,7 +14442,7 @@ const SubHeaderStyled = styles.styled(material.AppBar)(() => ({
|
|
|
15231
14442
|
borderRadius: "12px",
|
|
15232
14443
|
zIndex: "1100",
|
|
15233
14444
|
boxShadow: "0px 4px 20px rgba(0, 0, 0, 0.1)",
|
|
15234
|
-
fontFamily: "'
|
|
14445
|
+
fontFamily: "'Inter', sans-serif",
|
|
15235
14446
|
border: "1px solid #e0e0e0",
|
|
15236
14447
|
overflow: "hidden",
|
|
15237
14448
|
"& ul": {
|
|
@@ -15253,11 +14464,11 @@ const SubHeaderStyled = styles.styled(material.AppBar)(() => ({
|
|
|
15253
14464
|
"& .sixseconds-header-notification": {
|
|
15254
14465
|
display: "flex",
|
|
15255
14466
|
alignItems: "center",
|
|
15256
|
-
fontFamily: "'
|
|
14467
|
+
fontFamily: "'Inter', sans-serif"
|
|
15257
14468
|
},
|
|
15258
14469
|
"& .sixseconds-header-notification h6, & .sixseconds-header-notification p": {
|
|
15259
14470
|
margin: "10px",
|
|
15260
|
-
fontFamily: "'
|
|
14471
|
+
fontFamily: "'Inter', sans-serif"
|
|
15261
14472
|
},
|
|
15262
14473
|
"& .sixseconds-header-total": {
|
|
15263
14474
|
border: "1px solid #e0e0e0",
|
|
@@ -15267,7 +14478,7 @@ const SubHeaderStyled = styles.styled(material.AppBar)(() => ({
|
|
|
15267
14478
|
fontSize: "14px",
|
|
15268
14479
|
fontWeight: "500",
|
|
15269
14480
|
display: "flex",
|
|
15270
|
-
fontFamily: "'
|
|
14481
|
+
fontFamily: "'Inter', sans-serif"
|
|
15271
14482
|
}
|
|
15272
14483
|
}));
|
|
15273
14484
|
const UserProfile = ({ t: t2, userData, setInitialState, extraMenuOptions, router }) => {
|
|
@@ -16134,7 +15345,7 @@ const App = () => {
|
|
|
16134
15345
|
id: 1,
|
|
16135
15346
|
label: "Chinese",
|
|
16136
15347
|
value: "zh",
|
|
16137
|
-
flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/
|
|
15348
|
+
flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/1736568764.png"
|
|
16138
15349
|
},
|
|
16139
15350
|
{
|
|
16140
15351
|
id: 1,
|
|
@@ -16153,7 +15364,7 @@ const App = () => {
|
|
|
16153
15364
|
id: 1,
|
|
16154
15365
|
label: "Chinese",
|
|
16155
15366
|
value: "zh",
|
|
16156
|
-
flag: ""
|
|
15367
|
+
flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/1736568764.png"
|
|
16157
15368
|
},
|
|
16158
15369
|
isMainLogo: true,
|
|
16159
15370
|
isNotification: true,
|
|
@@ -16190,7 +15401,7 @@ exports.default = App;
|
|
|
16190
15401
|
try {
|
|
16191
15402
|
if (typeof document != "undefined") {
|
|
16192
15403
|
var elementStyle = document.createElement("style");
|
|
16193
|
-
elementStyle.appendChild(document.createTextNode('@import url("https://fonts.googleapis.com/css2?family=
|
|
15404
|
+
elementStyle.appendChild(document.createTextNode('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");\n\n.sixseconds-header-root blockquote,\n.sixseconds-header-root dl,\n.sixseconds-header-root dd,\n.sixseconds-header-root h1,\n.sixseconds-header-root h2,\n.sixseconds-header-root h3,\n.sixseconds-header-root h4,\n.sixseconds-header-root h5,\n.sixseconds-header-root h6,\n.sixseconds-header-root hr,\n.sixseconds-header-root figure,\n.sixseconds-header-root p,\n.sixseconds-header-root pre,\n.sixseconds-header-root span,\n.sixseconds-header-root a,\n.sixseconds-header-root div,\n.sixseconds-header-root li,\n.sixseconds-header-root button {\n font-family: "Inter", sans-serif !important;\n}\n\n.sixseconds-header-main-list-menu {\n display: flex;\n}\n\n.sixseconds-header-main-list-menu li {\n padding: 0.5rem 0.5rem;\n}\n\n.sixseconds-header-main-list-menu li a {\n padding: 0 0.25rem;\n font-weight: 500;\n font-size: 14px;\n}\n\n.sixseconds-header-main-list-menu .sixseconds-header-menu-item {\n position: relative;\n padding: 0 16px;\n display: flex;\n align-items: center;\n height: 100%;\n}\n\n.sixseconds-header-main-list-menu .sixseconds-header-menu-link {\n text-decoration: none;\n color: #2a2a2a; /* Closer to 6seconds */\n font-weight: 500;\n font-size: 15px;\n padding: 12px 4px;\n transition: color 0.2s ease;\n font-family: "Inter", sans-serif;\n}\n\n.sixseconds-header-main-list-menu .sixseconds-header-menu-link:hover {\n color: #0073b1;\n}\n\n/* Submenu (Dropdown) */\n\n.sixseconds-header-main-list-menu .sixseconds-header-submenu-data {\n position: absolute;\n top: 100%;\n left: 50%;\n background: white;\n border: 1px solid #f1f1f1;\n box-shadow: 0px 12px 48px rgba(0, 0, 0, 0.1); /* Even more premium shadow */\n display: block;\n opacity: 0;\n visibility: hidden;\n transform: translateX(-50%) translateY(12px);\n min-width: 260px;\n z-index: 1000;\n border-radius: 4px; /* More angular per 6seconds style */\n padding: 16px 0;\n transition:\n opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),\n transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),\n visibility 0.25s;\n}\n\n.sixseconds-header-main-list-menu .sixseconds-header-submenu-data li {\n list-style: none;\n padding: 0;\n}\n\n.sixseconds-header-main-list-menu .sixseconds-header-submenu-link {\n display: block;\n padding: 12px 28px;\n text-decoration: none;\n color: #2a2a2a; /* Darker grey */\n font-weight: 400;\n font-size: 14.5px;\n line-height: 1.4;\n transition: all 0.2s ease;\n}\n\n.sixseconds-header-main-list-menu .sixseconds-header-submenu-link:hover {\n background: #fbfbfc;\n color: #0073b1;\n padding-left: 32px; /* Slight nudge */\n}\n\n/* Show dropdown on hover */\n\n.sixseconds-header-main-list-menu .sixseconds-header-menu-item:hover .sixseconds-header-submenu-data {\n opacity: 1;\n visibility: visible;\n transform: translateX(-50%) translateY(0);\n}\n\n.sixseconds-header-small-device-menu {\n display: none;\n width: 100%;\n left: 0;\n top: 64px;\n background-color: #fff;\n position: fixed;\n overflow-y: auto;\n height: 95vh;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);\n}\n\n.sixseconds-header-small-device-menu a.sixseconds-header-bg-main-menu {\n display: block;\n text-decoration: none;\n}\n\n.sixseconds-header-submenu-child li {\n padding: 0.5rem 0;\n}\n\n.sixseconds-header-submenu-child li a {\n text-decoration: none;\n}\n\n.sixseconds-header-layout-mobile-menu {\n padding-bottom: 12px;\n padding-inline: 0;\n height: 95vh;\n overflow-y: auto;\n padding-top: 8px;\n}\n\n.sixseconds-header-small-device-menu a {\n background-color: transparent;\n font-size: 16px; /* Slightly larger */\n font-weight: 600; /* Bolder for parent items */\n color: #1a1c1e;\n margin-bottom: 4px;\n padding: 16px 20px;\n border-bottom: 1px solid #f1f3f4;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.sixseconds-header-small-device-menu .sixseconds-header-submenu-child {\n padding-left: 0px;\n min-width: 100%;\n max-width: 100%;\n margin-top: 0;\n background-color: #fbfbfc; /* Slightly different background for sub-items */\n color: #1a1c1e;\n}\n\n.sixseconds-header-small-device-menu ul li .sixseconds-header-submenu-child-link {\n padding: 12px 32px; /* Indent more */\n font-weight: 400; /* Regular weight for sub-links */\n font-size: 14px;\n}\n\n.sixseconds-header-small-device-menu ul li a {\n background-color: transparent;\n color: #4a4d50;\n}\n\n.sixseconds-header-small-device-menu ul {\n padding-left: 15px;\n}\n\n.sixseconds-header-desktop-menu {\n display: flex;\n}\n\n.sixseconds-header-button-hamburger {\n display: none;\n position: absolute;\n right: 20px;\n top: 18px;\n z-index: 9;\n}\n\n.sixseconds-header-root .tox-editor-header {\n background-color: transparent;\n}\n\n.sixseconds-header-hamburger-icon-btn {\n padding: 8px;\n color: #5f6368;\n}\n\n.sixseconds-header-desktop-menu .sixseconds-header-menu-item .sixseconds-header-menu-link {\n font-size: 14px;\n font-weight: 500;\n}\n\n.sixseconds-header-small-device-menu {\n padding-inline: 20px;\n}\n\n@media screen and (max-width: 600px) and (min-width: 320px) {\n .sixseconds-header-notification-icon-error .MuiBadge-badge {\n font-size: 10px;\n padding: 0 4px;\n min-width: 16px;\n right: 5px;\n background-color: #d32f2f;\n }\n\n .sixseconds-header-submenu nav {\n padding: 0 !important;\n }\n\n .sixseconds-header-root .MuiPagination-root.MuiPagination-outlined {\n display: flex;\n justify-content: center;\n margin-left: 0;\n }\n\n .sixseconds-header-toggle-btn-menu {\n position: absolute;\n right: 20px;\n top: 12px;\n z-index: 99;\n }\n\n .sixseconds-header-right-icons {\n padding-right: 25px;\n }\n\n .sixseconds-header-button-hamburger {\n display: block;\n }\n\n .sixseconds-header-desktop-menu {\n display: none;\n }\n\n .sixseconds-header-small-device-menu {\n display: block;\n width: 100%;\n position: fixed;\n left: 0;\n background: #fff;\n top: 64px;\n }\n\n .main.sixseconds-header-login-page .sixseconds-header-login-body {\n width: 90% !important;\n }\n\n .sixseconds-header-submenu {\n width: 100%;\n max-width: 100% !important;\n }\n\n .sixseconds-header-sidebar {\n width: 280px !important;\n background-color: #f9fafb;\n z-index: 99;\n border-right: 1px solid #e0e0e0;\n }\n\n .sixseconds-header-sidemenu {\n width: 280px;\n background-color: #f9fafb;\n }\n\n .sixseconds-header-logo {\n opacity: 1;\n }\n\n .sixseconds-header-profile .sixseconds-header-menu {\n min-width: 280px;\n width: 100% !important;\n }\n}\n\n@media screen and (max-width: 1024px) and (min-width: 600px) {\n .sixseconds-header-toggle-btn-menu {\n position: absolute;\n right: 20px;\n top: 12px;\n }\n\n .sixseconds-header-right-icons {\n padding-right: 25px;\n }\n\n .sixseconds-header-button-hamburger {\n display: block;\n }\n\n .sixseconds-header-desktop-menu {\n display: none;\n }\n\n .sixseconds-header-small-device-menu {\n display: block;\n }\n\n .main.sixseconds-header-login-page .sixseconds-header-login-body {\n width: 450px !important;\n }\n\n .sixseconds-header-banner {\n margin-left: 0 !important;\n }\n\n .sixseconds-header-submenu {\n width: 100%;\n max-width: 100% !important;\n }\n\n .sixseconds-header-sidebar {\n width: 280px !important;\n background-color: #f9fafb;\n z-index: 99;\n }\n\n .sixseconds-header-sidemenu {\n width: 280px;\n background-color: #f9fafb;\n }\n\n .sixseconds-header-logo {\n opacity: 1;\n }\n\n .sixseconds-header-profile .sixseconds-header-menu {\n min-width: 280px;\n width: 100% !important;\n }\n}\n\n@media screen and (max-width: 1380px) and (min-width: 1024px) {\n .sixseconds-header-right-icons {\n padding-right: 25px;\n }\n\n .sixseconds-header-button-hamburger {\n display: block;\n }\n\n .sixseconds-header-desktop-menu {\n display: none;\n }\n\n .sixseconds-header-small-device-menu {\n display: block;\n width: 100%;\n position: fixed;\n left: 0;\n background: #fff;\n top: 64px;\n }\n\n .sixseconds-header-button-hamburger {\n display: block;\n }\n\n .sixseconds-header-right-icons {\n padding-right: 25px;\n }\n}'));
|
|
16194
15405
|
document.head.appendChild(elementStyle);
|
|
16195
15406
|
}
|
|
16196
15407
|
} catch (e) {
|