@procore/saved-views 1.1.0-alpha.7 → 1.1.0-alpha.9
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/legacy/index.d.mts +3 -3
- package/dist/legacy/index.d.ts +3 -3
- package/dist/legacy/index.js +291 -356
- package/dist/legacy/index.mjs +287 -353
- package/dist/modern/index.d.mts +3 -3
- package/dist/modern/index.d.ts +3 -3
- package/dist/modern/index.js +291 -356
- package/dist/modern/index.mjs +287 -353
- package/package.json +3 -3
package/dist/modern/index.js
CHANGED
|
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
));
|
|
31
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
32
|
|
|
33
|
-
//
|
|
33
|
+
// node_modules/lodash/lodash.js
|
|
34
34
|
var require_lodash = __commonJS({
|
|
35
|
-
"
|
|
35
|
+
"node_modules/lodash/lodash.js"(exports2, module2) {
|
|
36
36
|
"use strict";
|
|
37
37
|
(function() {
|
|
38
38
|
var undefined2;
|
|
@@ -361,11 +361,11 @@ var require_lodash = __commonJS({
|
|
|
361
361
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
362
362
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
363
363
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
364
|
-
var freeExports = typeof
|
|
364
|
+
var freeExports = typeof exports2 == "object" && exports2 && !exports2.nodeType && exports2;
|
|
365
365
|
var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2;
|
|
366
366
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
367
367
|
var freeProcess = moduleExports && freeGlobal.process;
|
|
368
|
-
var nodeUtil = function() {
|
|
368
|
+
var nodeUtil = (function() {
|
|
369
369
|
try {
|
|
370
370
|
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
371
371
|
if (types) {
|
|
@@ -374,7 +374,7 @@ var require_lodash = __commonJS({
|
|
|
374
374
|
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
375
375
|
} catch (e) {
|
|
376
376
|
}
|
|
377
|
-
}();
|
|
377
|
+
})();
|
|
378
378
|
var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer, nodeIsDate = nodeUtil && nodeUtil.isDate, nodeIsMap = nodeUtil && nodeUtil.isMap, nodeIsRegExp = nodeUtil && nodeUtil.isRegExp, nodeIsSet = nodeUtil && nodeUtil.isSet, nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
379
379
|
function apply(func, thisArg, args) {
|
|
380
380
|
switch (args.length) {
|
|
@@ -720,7 +720,7 @@ var require_lodash = __commonJS({
|
|
|
720
720
|
function unicodeWords(string3) {
|
|
721
721
|
return string3.match(reUnicodeWord) || [];
|
|
722
722
|
}
|
|
723
|
-
var runInContext = function runInContext2(context) {
|
|
723
|
+
var runInContext = (function runInContext2(context) {
|
|
724
724
|
context = context == null ? root : _3.defaults(root.Object(), context, _3.pick(root, contextProps));
|
|
725
725
|
var Array2 = context.Array, Date = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
|
|
726
726
|
var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
|
|
@@ -728,10 +728,10 @@ var require_lodash = __commonJS({
|
|
|
728
728
|
var funcToString = funcProto.toString;
|
|
729
729
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
730
730
|
var idCounter = 0;
|
|
731
|
-
var maskSrcKey = function() {
|
|
731
|
+
var maskSrcKey = (function() {
|
|
732
732
|
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
733
733
|
return uid ? "Symbol(src)_1." + uid : "";
|
|
734
|
-
}();
|
|
734
|
+
})();
|
|
735
735
|
var nativeObjectToString = objectProto.toString;
|
|
736
736
|
var objectCtorString = funcToString.call(Object2);
|
|
737
737
|
var oldDash = root._;
|
|
@@ -739,14 +739,14 @@ var require_lodash = __commonJS({
|
|
|
739
739
|
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
740
740
|
);
|
|
741
741
|
var Buffer2 = moduleExports ? context.Buffer : undefined2, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined2, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined2, symIterator = Symbol2 ? Symbol2.iterator : undefined2, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined2;
|
|
742
|
-
var defineProperty = function() {
|
|
742
|
+
var defineProperty = (function() {
|
|
743
743
|
try {
|
|
744
744
|
var func = getNative(Object2, "defineProperty");
|
|
745
745
|
func({}, "", {});
|
|
746
746
|
return func;
|
|
747
747
|
} catch (e) {
|
|
748
748
|
}
|
|
749
|
-
}();
|
|
749
|
+
})();
|
|
750
750
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date && Date.now !== root.Date.now && Date.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
751
751
|
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined2, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
|
|
752
752
|
var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap2 = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
|
|
@@ -765,7 +765,7 @@ var require_lodash = __commonJS({
|
|
|
765
765
|
}
|
|
766
766
|
return new LodashWrapper(value);
|
|
767
767
|
}
|
|
768
|
-
var baseCreate = function() {
|
|
768
|
+
var baseCreate = /* @__PURE__ */ (function() {
|
|
769
769
|
function object3() {
|
|
770
770
|
}
|
|
771
771
|
return function(proto) {
|
|
@@ -780,7 +780,7 @@ var require_lodash = __commonJS({
|
|
|
780
780
|
object3.prototype = undefined2;
|
|
781
781
|
return result2;
|
|
782
782
|
};
|
|
783
|
-
}();
|
|
783
|
+
})();
|
|
784
784
|
function baseLodash() {
|
|
785
785
|
}
|
|
786
786
|
function LodashWrapper(value, chainAll) {
|
|
@@ -4092,9 +4092,9 @@ var require_lodash = __commonJS({
|
|
|
4092
4092
|
var gte = createRelationalOperation(function(value, other) {
|
|
4093
4093
|
return value >= other;
|
|
4094
4094
|
});
|
|
4095
|
-
var isArguments = baseIsArguments(function() {
|
|
4095
|
+
var isArguments = baseIsArguments(/* @__PURE__ */ (function() {
|
|
4096
4096
|
return arguments;
|
|
4097
|
-
}()) ? baseIsArguments : function(value) {
|
|
4097
|
+
})()) ? baseIsArguments : function(value) {
|
|
4098
4098
|
return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
4099
4099
|
};
|
|
4100
4100
|
var isArray = Array2.isArray;
|
|
@@ -5346,7 +5346,7 @@ var require_lodash = __commonJS({
|
|
|
5346
5346
|
lodash.each = forEach;
|
|
5347
5347
|
lodash.eachRight = forEachRight;
|
|
5348
5348
|
lodash.first = head;
|
|
5349
|
-
mixin(lodash, function() {
|
|
5349
|
+
mixin(lodash, (function() {
|
|
5350
5350
|
var source = {};
|
|
5351
5351
|
baseForOwn(lodash, function(func, methodName) {
|
|
5352
5352
|
if (!hasOwnProperty.call(lodash.prototype, methodName)) {
|
|
@@ -5354,7 +5354,7 @@ var require_lodash = __commonJS({
|
|
|
5354
5354
|
}
|
|
5355
5355
|
});
|
|
5356
5356
|
return source;
|
|
5357
|
-
}(), { "chain": false });
|
|
5357
|
+
})(), { "chain": false });
|
|
5358
5358
|
lodash.VERSION = VERSION;
|
|
5359
5359
|
arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
|
|
5360
5360
|
lodash[methodName].placeholder = lodash;
|
|
@@ -5514,7 +5514,7 @@ var require_lodash = __commonJS({
|
|
|
5514
5514
|
lodash.prototype[symIterator] = wrapperToIterator;
|
|
5515
5515
|
}
|
|
5516
5516
|
return lodash;
|
|
5517
|
-
};
|
|
5517
|
+
});
|
|
5518
5518
|
var _3 = runInContext();
|
|
5519
5519
|
if (typeof define == "function" && typeof define.amd == "object" && define.amd) {
|
|
5520
5520
|
root._ = _3;
|
|
@@ -5527,13 +5527,13 @@ var require_lodash = __commonJS({
|
|
|
5527
5527
|
} else {
|
|
5528
5528
|
root._ = _3;
|
|
5529
5529
|
}
|
|
5530
|
-
}).call(
|
|
5530
|
+
}).call(exports2);
|
|
5531
5531
|
}
|
|
5532
5532
|
});
|
|
5533
5533
|
|
|
5534
5534
|
// src/index.ts
|
|
5535
|
-
var
|
|
5536
|
-
__export(
|
|
5535
|
+
var index_exports = {};
|
|
5536
|
+
__export(index_exports, {
|
|
5537
5537
|
DataTableSavedViews: () => DataTableSavedViews,
|
|
5538
5538
|
ExpandedPanel: () => ExpandedPanel,
|
|
5539
5539
|
FormModal: () => FormModal,
|
|
@@ -5545,7 +5545,7 @@ __export(src_exports, {
|
|
|
5545
5545
|
getTranslations: () => getTranslations,
|
|
5546
5546
|
useSavedViewsPanel: () => useSavedViewsPanel_default
|
|
5547
5547
|
});
|
|
5548
|
-
module.exports = __toCommonJS(
|
|
5548
|
+
module.exports = __toCommonJS(index_exports);
|
|
5549
5549
|
|
|
5550
5550
|
// src/utils/translations/translations.ts
|
|
5551
5551
|
var import_globalization_toolkit = require("@procore/globalization-toolkit");
|
|
@@ -7112,9 +7112,7 @@ var __assign = function() {
|
|
|
7112
7112
|
__assign = Object.assign || function __assign2(t) {
|
|
7113
7113
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
7114
7114
|
s = arguments[i];
|
|
7115
|
-
for (var p2 in s)
|
|
7116
|
-
if (Object.prototype.hasOwnProperty.call(s, p2))
|
|
7117
|
-
t[p2] = s[p2];
|
|
7115
|
+
for (var p2 in s) if (Object.prototype.hasOwnProperty.call(s, p2)) t[p2] = s[p2];
|
|
7118
7116
|
}
|
|
7119
7117
|
return t;
|
|
7120
7118
|
};
|
|
@@ -7122,9 +7120,8 @@ var __assign = function() {
|
|
|
7122
7120
|
};
|
|
7123
7121
|
function __rest(s, e) {
|
|
7124
7122
|
var t = {};
|
|
7125
|
-
for (var p2 in s)
|
|
7126
|
-
|
|
7127
|
-
t[p2] = s[p2];
|
|
7123
|
+
for (var p2 in s) if (Object.prototype.hasOwnProperty.call(s, p2) && e.indexOf(p2) < 0)
|
|
7124
|
+
t[p2] = s[p2];
|
|
7128
7125
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7129
7126
|
for (var i = 0, p2 = Object.getOwnPropertySymbols(s); i < p2.length; i++) {
|
|
7130
7127
|
if (e.indexOf(p2[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p2[i]))
|
|
@@ -7133,14 +7130,12 @@ function __rest(s, e) {
|
|
|
7133
7130
|
return t;
|
|
7134
7131
|
}
|
|
7135
7132
|
function __spreadArray(to, from2, pack) {
|
|
7136
|
-
if (pack || arguments.length === 2)
|
|
7137
|
-
|
|
7138
|
-
if (ar
|
|
7139
|
-
|
|
7140
|
-
ar = Array.prototype.slice.call(from2, 0, i);
|
|
7141
|
-
ar[i] = from2[i];
|
|
7142
|
-
}
|
|
7133
|
+
if (pack || arguments.length === 2) for (var i = 0, l2 = from2.length, ar; i < l2; i++) {
|
|
7134
|
+
if (ar || !(i in from2)) {
|
|
7135
|
+
if (!ar) ar = Array.prototype.slice.call(from2, 0, i);
|
|
7136
|
+
ar[i] = from2[i];
|
|
7143
7137
|
}
|
|
7138
|
+
}
|
|
7144
7139
|
return to.concat(ar || Array.prototype.slice.call(from2));
|
|
7145
7140
|
}
|
|
7146
7141
|
|
|
@@ -7335,8 +7330,7 @@ var import_react3 = __toESM(require("react"));
|
|
|
7335
7330
|
function memoize(fn) {
|
|
7336
7331
|
var cache = /* @__PURE__ */ Object.create(null);
|
|
7337
7332
|
return function(arg) {
|
|
7338
|
-
if (cache[arg] === void 0)
|
|
7339
|
-
cache[arg] = fn(arg);
|
|
7333
|
+
if (cache[arg] === void 0) cache[arg] = fn(arg);
|
|
7340
7334
|
return cache[arg];
|
|
7341
7335
|
};
|
|
7342
7336
|
}
|
|
@@ -7504,12 +7498,14 @@ function slice(begin, end) {
|
|
|
7504
7498
|
}
|
|
7505
7499
|
function token(type) {
|
|
7506
7500
|
switch (type) {
|
|
7501
|
+
// \0 \t \n \r \s whitespace token
|
|
7507
7502
|
case 0:
|
|
7508
7503
|
case 9:
|
|
7509
7504
|
case 10:
|
|
7510
7505
|
case 13:
|
|
7511
7506
|
case 32:
|
|
7512
7507
|
return 5;
|
|
7508
|
+
// ! + , / > @ ~ isolate token
|
|
7513
7509
|
case 33:
|
|
7514
7510
|
case 43:
|
|
7515
7511
|
case 44:
|
|
@@ -7517,17 +7513,21 @@ function token(type) {
|
|
|
7517
7513
|
case 62:
|
|
7518
7514
|
case 64:
|
|
7519
7515
|
case 126:
|
|
7516
|
+
// ; { } breakpoint token
|
|
7520
7517
|
case 59:
|
|
7521
7518
|
case 123:
|
|
7522
7519
|
case 125:
|
|
7523
7520
|
return 4;
|
|
7521
|
+
// : accompanied token
|
|
7524
7522
|
case 58:
|
|
7525
7523
|
return 3;
|
|
7524
|
+
// " ' ( [ opening delimit token
|
|
7526
7525
|
case 34:
|
|
7527
7526
|
case 39:
|
|
7528
7527
|
case 40:
|
|
7529
7528
|
case 91:
|
|
7530
7529
|
return 2;
|
|
7530
|
+
// ) ] closing delimit token
|
|
7531
7531
|
case 41:
|
|
7532
7532
|
case 93:
|
|
7533
7533
|
return 1;
|
|
@@ -7560,17 +7560,21 @@ function escaping(index, count) {
|
|
|
7560
7560
|
function delimiter(type) {
|
|
7561
7561
|
while (next())
|
|
7562
7562
|
switch (character) {
|
|
7563
|
+
// ] ) " '
|
|
7563
7564
|
case type:
|
|
7564
7565
|
return position;
|
|
7566
|
+
// " '
|
|
7565
7567
|
case 34:
|
|
7566
7568
|
case 39:
|
|
7567
7569
|
if (type !== 34 && type !== 39)
|
|
7568
7570
|
delimiter(character);
|
|
7569
7571
|
break;
|
|
7572
|
+
// (
|
|
7570
7573
|
case 40:
|
|
7571
7574
|
if (type === 41)
|
|
7572
7575
|
delimiter(type);
|
|
7573
7576
|
break;
|
|
7577
|
+
// \
|
|
7574
7578
|
case 92:
|
|
7575
7579
|
next();
|
|
7576
7580
|
break;
|
|
@@ -7613,55 +7617,64 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
|
|
|
7613
7617
|
var characters2 = type;
|
|
7614
7618
|
while (scanning)
|
|
7615
7619
|
switch (previous = character2, character2 = next()) {
|
|
7620
|
+
// (
|
|
7616
7621
|
case 40:
|
|
7617
7622
|
if (previous != 108 && charat(characters2, length2 - 1) == 58) {
|
|
7618
7623
|
if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f", abs(index ? points[index - 1] : 0)) != -1)
|
|
7619
7624
|
ampersand = -1;
|
|
7620
7625
|
break;
|
|
7621
7626
|
}
|
|
7627
|
+
// " ' [
|
|
7622
7628
|
case 34:
|
|
7623
7629
|
case 39:
|
|
7624
7630
|
case 91:
|
|
7625
7631
|
characters2 += delimit(character2);
|
|
7626
7632
|
break;
|
|
7633
|
+
// \t \n \r \s
|
|
7627
7634
|
case 9:
|
|
7628
7635
|
case 10:
|
|
7629
7636
|
case 13:
|
|
7630
7637
|
case 32:
|
|
7631
7638
|
characters2 += whitespace(previous);
|
|
7632
7639
|
break;
|
|
7640
|
+
// \
|
|
7633
7641
|
case 92:
|
|
7634
7642
|
characters2 += escaping(caret() - 1, 7);
|
|
7635
7643
|
continue;
|
|
7644
|
+
// /
|
|
7636
7645
|
case 47:
|
|
7637
7646
|
switch (peek()) {
|
|
7638
7647
|
case 42:
|
|
7639
7648
|
case 47:
|
|
7640
7649
|
append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
|
|
7641
|
-
if ((token(previous || 1) == 5 || token(peek() || 1) == 5) && strlen(characters2) && substr(characters2, -1, void 0) !== " ")
|
|
7642
|
-
characters2 += " ";
|
|
7650
|
+
if ((token(previous || 1) == 5 || token(peek() || 1) == 5) && strlen(characters2) && substr(characters2, -1, void 0) !== " ") characters2 += " ";
|
|
7643
7651
|
break;
|
|
7644
7652
|
default:
|
|
7645
7653
|
characters2 += "/";
|
|
7646
7654
|
}
|
|
7647
7655
|
break;
|
|
7656
|
+
// {
|
|
7648
7657
|
case 123 * variable:
|
|
7649
7658
|
points[index++] = strlen(characters2) * ampersand;
|
|
7659
|
+
// } ; \0
|
|
7650
7660
|
case 125 * variable:
|
|
7651
7661
|
case 59:
|
|
7652
7662
|
case 0:
|
|
7653
7663
|
switch (character2) {
|
|
7664
|
+
// \0 }
|
|
7654
7665
|
case 0:
|
|
7655
7666
|
case 125:
|
|
7656
7667
|
scanning = 0;
|
|
7668
|
+
// ;
|
|
7657
7669
|
case 59 + offset:
|
|
7658
|
-
if (ampersand == -1)
|
|
7659
|
-
characters2 = replace(characters2, /\f/g, "");
|
|
7670
|
+
if (ampersand == -1) characters2 = replace(characters2, /\f/g, "");
|
|
7660
7671
|
if (property > 0 && (strlen(characters2) - length2 || variable === 0 && previous === 47))
|
|
7661
7672
|
append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1, declarations) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2, declarations), declarations);
|
|
7662
7673
|
break;
|
|
7674
|
+
// @ ;
|
|
7663
7675
|
case 59:
|
|
7664
7676
|
characters2 += ";";
|
|
7677
|
+
// { rule/at-rule
|
|
7665
7678
|
default:
|
|
7666
7679
|
append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2, rulesets), rulesets);
|
|
7667
7680
|
if (character2 === 123)
|
|
@@ -7669,26 +7682,26 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
|
|
|
7669
7682
|
parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
|
|
7670
7683
|
else {
|
|
7671
7684
|
switch (atrule) {
|
|
7685
|
+
// c(ontainer)
|
|
7672
7686
|
case 99:
|
|
7673
|
-
if (charat(characters2, 3) === 110)
|
|
7674
|
-
|
|
7687
|
+
if (charat(characters2, 3) === 110) break;
|
|
7688
|
+
// l(ayer)
|
|
7675
7689
|
case 108:
|
|
7676
|
-
if (charat(characters2, 2) === 97)
|
|
7677
|
-
break;
|
|
7690
|
+
if (charat(characters2, 2) === 97) break;
|
|
7678
7691
|
default:
|
|
7679
7692
|
offset = 0;
|
|
7693
|
+
// d(ocument) m(edia) s(upports)
|
|
7680
7694
|
case 100:
|
|
7681
7695
|
case 109:
|
|
7682
7696
|
case 115:
|
|
7683
7697
|
}
|
|
7684
|
-
if (offset)
|
|
7685
|
-
|
|
7686
|
-
else
|
|
7687
|
-
parse(characters2, reference, reference, reference, [""], children, 0, points, children);
|
|
7698
|
+
if (offset) parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2, children), children), rules, children, length2, points, rule ? props : children);
|
|
7699
|
+
else parse(characters2, reference, reference, reference, [""], children, 0, points, children);
|
|
7688
7700
|
}
|
|
7689
7701
|
}
|
|
7690
7702
|
index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
|
|
7691
7703
|
break;
|
|
7704
|
+
// :
|
|
7692
7705
|
case 58:
|
|
7693
7706
|
length2 = 1 + strlen(characters2), property = previous;
|
|
7694
7707
|
default:
|
|
@@ -7699,17 +7712,21 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
|
|
|
7699
7712
|
continue;
|
|
7700
7713
|
}
|
|
7701
7714
|
switch (characters2 += from(character2), character2 * variable) {
|
|
7715
|
+
// &
|
|
7702
7716
|
case 38:
|
|
7703
7717
|
ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
|
|
7704
7718
|
break;
|
|
7719
|
+
// ,
|
|
7705
7720
|
case 44:
|
|
7706
7721
|
points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
|
|
7707
7722
|
break;
|
|
7723
|
+
// @
|
|
7708
7724
|
case 64:
|
|
7709
7725
|
if (peek() === 45)
|
|
7710
7726
|
characters2 += delimit(next());
|
|
7711
7727
|
atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
|
|
7712
7728
|
break;
|
|
7729
|
+
// -
|
|
7713
7730
|
case 45:
|
|
7714
7731
|
if (previous === 45 && strlen(characters2) == 2)
|
|
7715
7732
|
variable = 0;
|
|
@@ -7737,8 +7754,10 @@ function declaration(value, root, parent, length2, siblings) {
|
|
|
7737
7754
|
// ../../node_modules/stylis/src/Prefixer.js
|
|
7738
7755
|
function prefix(value, length2, children) {
|
|
7739
7756
|
switch (hash(value, length2)) {
|
|
7757
|
+
// color-adjust
|
|
7740
7758
|
case 5103:
|
|
7741
7759
|
return WEBKIT + "print-" + value + value;
|
|
7760
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
7742
7761
|
case 5737:
|
|
7743
7762
|
case 4201:
|
|
7744
7763
|
case 3177:
|
|
@@ -7746,77 +7765,101 @@ function prefix(value, length2, children) {
|
|
|
7746
7765
|
case 1641:
|
|
7747
7766
|
case 4457:
|
|
7748
7767
|
case 2921:
|
|
7768
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
7749
7769
|
case 5572:
|
|
7750
7770
|
case 6356:
|
|
7751
7771
|
case 5844:
|
|
7752
7772
|
case 3191:
|
|
7753
7773
|
case 6645:
|
|
7754
7774
|
case 3005:
|
|
7775
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
7755
7776
|
case 4215:
|
|
7756
7777
|
case 6389:
|
|
7757
7778
|
case 5109:
|
|
7758
7779
|
case 5365:
|
|
7759
7780
|
case 5621:
|
|
7760
7781
|
case 3829:
|
|
7782
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position
|
|
7761
7783
|
case 6391:
|
|
7762
7784
|
case 5879:
|
|
7763
7785
|
case 5623:
|
|
7764
7786
|
case 6135:
|
|
7765
7787
|
case 4599:
|
|
7766
7788
|
return WEBKIT + value + value;
|
|
7789
|
+
// mask-composite
|
|
7767
7790
|
case 4855:
|
|
7768
7791
|
return WEBKIT + value.replace("add", "source-over").replace("substract", "source-out").replace("intersect", "source-in").replace("exclude", "xor") + value;
|
|
7792
|
+
// tab-size
|
|
7769
7793
|
case 4789:
|
|
7770
7794
|
return MOZ + value + value;
|
|
7795
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
7771
7796
|
case 5349:
|
|
7772
7797
|
case 4246:
|
|
7773
7798
|
case 4810:
|
|
7774
7799
|
case 6968:
|
|
7775
7800
|
case 2756:
|
|
7776
7801
|
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
7802
|
+
// writing-mode
|
|
7777
7803
|
case 5936:
|
|
7778
7804
|
switch (charat(value, length2 + 11)) {
|
|
7805
|
+
// vertical-l(r)
|
|
7779
7806
|
case 114:
|
|
7780
7807
|
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
|
|
7808
|
+
// vertical-r(l)
|
|
7781
7809
|
case 108:
|
|
7782
7810
|
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
|
|
7811
|
+
// horizontal(-)tb
|
|
7783
7812
|
case 45:
|
|
7784
7813
|
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
|
|
7785
7814
|
}
|
|
7815
|
+
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
7786
7816
|
case 6828:
|
|
7787
7817
|
case 4268:
|
|
7788
7818
|
case 2903:
|
|
7789
7819
|
return WEBKIT + value + MS + value + value;
|
|
7820
|
+
// order
|
|
7790
7821
|
case 6165:
|
|
7791
7822
|
return WEBKIT + value + MS + "flex-" + value + value;
|
|
7823
|
+
// align-items
|
|
7792
7824
|
case 5187:
|
|
7793
7825
|
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
|
|
7826
|
+
// align-self
|
|
7794
7827
|
case 5443:
|
|
7795
7828
|
return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/g, "") + (!match(value, /flex-|baseline/) ? MS + "grid-row-" + replace(value, /flex-|-self/g, "") : "") + value;
|
|
7829
|
+
// align-content
|
|
7796
7830
|
case 4675:
|
|
7797
7831
|
return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/g, "") + value;
|
|
7832
|
+
// flex-shrink
|
|
7798
7833
|
case 5548:
|
|
7799
7834
|
return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
|
|
7835
|
+
// flex-basis
|
|
7800
7836
|
case 5292:
|
|
7801
7837
|
return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
|
|
7838
|
+
// flex-grow
|
|
7802
7839
|
case 6060:
|
|
7803
7840
|
return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
|
|
7841
|
+
// transition
|
|
7804
7842
|
case 4554:
|
|
7805
7843
|
return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
|
|
7844
|
+
// cursor
|
|
7806
7845
|
case 6187:
|
|
7807
7846
|
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
|
|
7847
|
+
// background, background-image
|
|
7808
7848
|
case 5495:
|
|
7809
7849
|
case 3959:
|
|
7810
7850
|
return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
|
|
7851
|
+
// justify-content
|
|
7811
7852
|
case 4968:
|
|
7812
7853
|
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /space-between/, "justify") + WEBKIT + value + value;
|
|
7854
|
+
// justify-self
|
|
7813
7855
|
case 4200:
|
|
7814
|
-
if (!match(value, /flex-|baseline/))
|
|
7815
|
-
return MS + "grid-column-align" + substr(value, length2) + value;
|
|
7856
|
+
if (!match(value, /flex-|baseline/)) return MS + "grid-column-align" + substr(value, length2) + value;
|
|
7816
7857
|
break;
|
|
7858
|
+
// grid-template-(columns|rows)
|
|
7817
7859
|
case 2592:
|
|
7818
7860
|
case 3360:
|
|
7819
7861
|
return MS + replace(value, "template-", "") + value;
|
|
7862
|
+
// grid-(row|column)-start
|
|
7820
7863
|
case 4384:
|
|
7821
7864
|
case 3616:
|
|
7822
7865
|
if (children && children.some(function(element, index) {
|
|
@@ -7825,16 +7868,19 @@ function prefix(value, length2, children) {
|
|
|
7825
7868
|
return ~indexof(value + (children = children[length2].value), "span", 0) ? value : MS + replace(value, "-start", "") + value + MS + "grid-row-span:" + (~indexof(children, "span", 0) ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ";";
|
|
7826
7869
|
}
|
|
7827
7870
|
return MS + replace(value, "-start", "") + value;
|
|
7871
|
+
// grid-(row|column)-end
|
|
7828
7872
|
case 4896:
|
|
7829
7873
|
case 4128:
|
|
7830
7874
|
return children && children.some(function(element) {
|
|
7831
7875
|
return match(element.props, /grid-\w+-start/);
|
|
7832
7876
|
}) ? value : MS + replace(replace(value, "-end", "-span"), "span ", "") + value;
|
|
7877
|
+
// (margin|padding)-inline-(start|end)
|
|
7833
7878
|
case 4095:
|
|
7834
7879
|
case 3583:
|
|
7835
7880
|
case 4068:
|
|
7836
7881
|
case 2532:
|
|
7837
7882
|
return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
|
|
7883
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
7838
7884
|
case 8116:
|
|
7839
7885
|
case 7059:
|
|
7840
7886
|
case 5753:
|
|
@@ -7849,32 +7895,41 @@ function prefix(value, length2, children) {
|
|
|
7849
7895
|
case 4765:
|
|
7850
7896
|
if (strlen(value) - 1 - length2 > 6)
|
|
7851
7897
|
switch (charat(value, length2 + 1)) {
|
|
7898
|
+
// (m)ax-content, (m)in-content
|
|
7852
7899
|
case 109:
|
|
7853
7900
|
if (charat(value, length2 + 4) !== 45)
|
|
7854
7901
|
break;
|
|
7902
|
+
// (f)ill-available, (f)it-content
|
|
7855
7903
|
case 102:
|
|
7856
7904
|
return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
|
|
7905
|
+
// (s)tretch
|
|
7857
7906
|
case 115:
|
|
7858
7907
|
return ~indexof(value, "stretch", 0) ? prefix(replace(value, "stretch", "fill-available"), length2, children) + value : value;
|
|
7859
7908
|
}
|
|
7860
7909
|
break;
|
|
7910
|
+
// grid-(column|row)
|
|
7861
7911
|
case 5152:
|
|
7862
7912
|
case 5920:
|
|
7863
7913
|
return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_3, a2, b2, c2, d2, e, f2) {
|
|
7864
7914
|
return MS + a2 + ":" + b2 + f2 + (c2 ? MS + a2 + "-span:" + (d2 ? e : +e - +b2) + f2 : "") + value;
|
|
7865
7915
|
});
|
|
7916
|
+
// position: sticky
|
|
7866
7917
|
case 4949:
|
|
7867
7918
|
if (charat(value, length2 + 6) === 121)
|
|
7868
7919
|
return replace(value, ":", ":" + WEBKIT) + value;
|
|
7869
7920
|
break;
|
|
7921
|
+
// display: (flex|inline-flex|grid|inline-grid)
|
|
7870
7922
|
case 6444:
|
|
7871
7923
|
switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
|
|
7924
|
+
// (inline-)?fle(x)
|
|
7872
7925
|
case 120:
|
|
7873
7926
|
return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
|
|
7927
|
+
// (inline-)?gri(d)
|
|
7874
7928
|
case 100:
|
|
7875
7929
|
return replace(value, ":", ":" + MS) + value;
|
|
7876
7930
|
}
|
|
7877
7931
|
break;
|
|
7932
|
+
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
7878
7933
|
case 5719:
|
|
7879
7934
|
case 2647:
|
|
7880
7935
|
case 2135:
|
|
@@ -7895,8 +7950,7 @@ function serialize(children, callback) {
|
|
|
7895
7950
|
function stringify(element, index, children, callback) {
|
|
7896
7951
|
switch (element.type) {
|
|
7897
7952
|
case LAYER:
|
|
7898
|
-
if (element.children.length)
|
|
7899
|
-
break;
|
|
7953
|
+
if (element.children.length) break;
|
|
7900
7954
|
case IMPORT:
|
|
7901
7955
|
case NAMESPACE:
|
|
7902
7956
|
case DECLARATION:
|
|
@@ -7906,8 +7960,7 @@ function stringify(element, index, children, callback) {
|
|
|
7906
7960
|
case KEYFRAMES:
|
|
7907
7961
|
return element.return = element.value + "{" + serialize(element.children, callback) + "}";
|
|
7908
7962
|
case RULESET:
|
|
7909
|
-
if (!strlen(element.value = element.props.join(",")))
|
|
7910
|
-
return "";
|
|
7963
|
+
if (!strlen(element.value = element.props.join(","))) return "";
|
|
7911
7964
|
}
|
|
7912
7965
|
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
|
|
7913
7966
|
}
|
|
@@ -7943,12 +7996,14 @@ function prefixer(element, index, children, callback) {
|
|
|
7943
7996
|
if (element.length)
|
|
7944
7997
|
return combine(children = element.props, function(value) {
|
|
7945
7998
|
switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
|
|
7999
|
+
// :read-(only|write)
|
|
7946
8000
|
case ":read-only":
|
|
7947
8001
|
case ":read-write":
|
|
7948
8002
|
lift(copy(element, { props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] }));
|
|
7949
8003
|
lift(copy(element, { props: [value] }));
|
|
7950
8004
|
assign(element, { props: filter(children, callback) });
|
|
7951
8005
|
break;
|
|
8006
|
+
// :placeholder
|
|
7952
8007
|
case "::placeholder":
|
|
7953
8008
|
lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] }));
|
|
7954
8009
|
lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] }));
|
|
@@ -7974,17 +8029,14 @@ var h = void 0 === import_react.default.createContext;
|
|
|
7974
8029
|
var f = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV);
|
|
7975
8030
|
var y = "production" !== process.env.NODE_ENV ? { 1: "Cannot create styled-component for component: %s.\n\n", 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n", 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
7976
8031
|
function v() {
|
|
7977
|
-
for (var e = [], t = 0; t < arguments.length; t++)
|
|
7978
|
-
|
|
7979
|
-
for (var n = e[0], r2 = [], o2 = 1, s = e.length; o2 < s; o2 += 1)
|
|
7980
|
-
r2.push(e[o2]);
|
|
8032
|
+
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
8033
|
+
for (var n = e[0], r2 = [], o2 = 1, s = e.length; o2 < s; o2 += 1) r2.push(e[o2]);
|
|
7981
8034
|
return r2.forEach(function(e2) {
|
|
7982
8035
|
n = n.replace(/%[a-z]/, e2);
|
|
7983
8036
|
}), n;
|
|
7984
8037
|
}
|
|
7985
8038
|
function g(t) {
|
|
7986
|
-
for (var n = [], r2 = 1; r2 < arguments.length; r2++)
|
|
7987
|
-
n[r2 - 1] = arguments[r2];
|
|
8039
|
+
for (var n = [], r2 = 1; r2 < arguments.length; r2++) n[r2 - 1] = arguments[r2];
|
|
7988
8040
|
return "production" === process.env.NODE_ENV ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(v.apply(void 0, __spreadArray([y[t]], n, false)).trim());
|
|
7989
8041
|
}
|
|
7990
8042
|
var S = 1 << 30;
|
|
@@ -7992,13 +8044,10 @@ var w = /* @__PURE__ */ new Map();
|
|
|
7992
8044
|
var b = /* @__PURE__ */ new Map();
|
|
7993
8045
|
var N = 1;
|
|
7994
8046
|
var C = function(e) {
|
|
7995
|
-
if (w.has(e))
|
|
7996
|
-
|
|
7997
|
-
for (; b.has(N); )
|
|
7998
|
-
N++;
|
|
8047
|
+
if (w.has(e)) return w.get(e);
|
|
8048
|
+
for (; b.has(N); ) N++;
|
|
7999
8049
|
var t = N++;
|
|
8000
|
-
if ("production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > S))
|
|
8001
|
-
throw g(16, "".concat(t));
|
|
8050
|
+
if ("production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > S)) throw g(16, "".concat(t));
|
|
8002
8051
|
return w.set(e, t), b.set(t, e), t;
|
|
8003
8052
|
};
|
|
8004
8053
|
var E = function(e, t) {
|
|
@@ -8008,14 +8057,12 @@ var _ = /invalid hook call/i;
|
|
|
8008
8057
|
var A = /* @__PURE__ */ new Set();
|
|
8009
8058
|
var I = function(t, n) {
|
|
8010
8059
|
if ("production" !== process.env.NODE_ENV) {
|
|
8011
|
-
if (h)
|
|
8012
|
-
return;
|
|
8060
|
+
if (h) return;
|
|
8013
8061
|
var o2 = n ? ' with the id of "'.concat(n, '"') : "", s = "The component ".concat(t).concat(o2, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", i = console.error;
|
|
8014
8062
|
try {
|
|
8015
8063
|
var a2 = true;
|
|
8016
8064
|
console.error = function(t2) {
|
|
8017
|
-
for (var n2 = [], r2 = 1; r2 < arguments.length; r2++)
|
|
8018
|
-
n2[r2 - 1] = arguments[r2];
|
|
8065
|
+
for (var n2 = [], r2 = 1; r2 < arguments.length; r2++) n2[r2 - 1] = arguments[r2];
|
|
8019
8066
|
_.test(t2) ? (a2 = false, A.delete(s)) : i.apply(void 0, __spreadArray([t2], n2, false));
|
|
8020
8067
|
}, "function" == typeof import_react.default.useState && import_react.default.useState(null), a2 && !A.has(s) && (console.warn(s), A.add(s));
|
|
8021
8068
|
} catch (e) {
|
|
@@ -8042,14 +8089,12 @@ var M = function(e) {
|
|
|
8042
8089
|
};
|
|
8043
8090
|
function V(e) {
|
|
8044
8091
|
var t, n = "";
|
|
8045
|
-
for (t = Math.abs(e); t > 52; t = t / 52 | 0)
|
|
8046
|
-
n = M(t % 52) + n;
|
|
8092
|
+
for (t = Math.abs(e); t > 52; t = t / 52 | 0) n = M(t % 52) + n;
|
|
8047
8093
|
return (M(t % 52) + n).replace(k, "$1-$2");
|
|
8048
8094
|
}
|
|
8049
8095
|
var F;
|
|
8050
8096
|
var G = function(e, t) {
|
|
8051
|
-
for (var n = t.length; n; )
|
|
8052
|
-
e = 33 * e ^ t.charCodeAt(--n);
|
|
8097
|
+
for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
|
|
8053
8098
|
return e;
|
|
8054
8099
|
};
|
|
8055
8100
|
var z = function(e) {
|
|
@@ -8065,8 +8110,8 @@ function $(e) {
|
|
|
8065
8110
|
return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
8066
8111
|
}
|
|
8067
8112
|
var Y = "function" == typeof Symbol && Symbol.for;
|
|
8068
|
-
var W = Y ? Symbol.for("react.memo") : 60115;
|
|
8069
|
-
var q = Y ? Symbol.for("react.forward_ref") : 60112;
|
|
8113
|
+
var W = Y ? /* @__PURE__ */ Symbol.for("react.memo") : 60115;
|
|
8114
|
+
var q = Y ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112;
|
|
8070
8115
|
var H = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true };
|
|
8071
8116
|
var U = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true };
|
|
8072
8117
|
var J = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true };
|
|
@@ -8118,83 +8163,62 @@ function ue(e) {
|
|
|
8118
8163
|
return null !== e && "object" == typeof e && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
8119
8164
|
}
|
|
8120
8165
|
function le(e, t, n) {
|
|
8121
|
-
if (void 0 === n && (n = false), !n && !ue(e) && !Array.isArray(e))
|
|
8122
|
-
|
|
8123
|
-
if (
|
|
8124
|
-
for (var r2 = 0; r2 < t.length; r2++)
|
|
8125
|
-
e[r2] = le(e[r2], t[r2]);
|
|
8126
|
-
else if (ue(t))
|
|
8127
|
-
for (var r2 in t)
|
|
8128
|
-
e[r2] = le(e[r2], t[r2]);
|
|
8166
|
+
if (void 0 === n && (n = false), !n && !ue(e) && !Array.isArray(e)) return t;
|
|
8167
|
+
if (Array.isArray(t)) for (var r2 = 0; r2 < t.length; r2++) e[r2] = le(e[r2], t[r2]);
|
|
8168
|
+
else if (ue(t)) for (var r2 in t) e[r2] = le(e[r2], t[r2]);
|
|
8129
8169
|
return e;
|
|
8130
8170
|
}
|
|
8131
8171
|
function pe(e, t) {
|
|
8132
8172
|
Object.defineProperty(e, "toString", { value: t });
|
|
8133
8173
|
}
|
|
8134
|
-
var de = function() {
|
|
8174
|
+
var de = (function() {
|
|
8135
8175
|
function e(e2) {
|
|
8136
8176
|
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e2, this._cGroup = 0, this._cIndex = 0;
|
|
8137
8177
|
}
|
|
8138
8178
|
return e.prototype.indexOfGroup = function(e2) {
|
|
8139
|
-
if (e2 === this._cGroup)
|
|
8140
|
-
return this._cIndex;
|
|
8179
|
+
if (e2 === this._cGroup) return this._cIndex;
|
|
8141
8180
|
var t = this._cIndex;
|
|
8142
|
-
if (e2 > this._cGroup)
|
|
8143
|
-
|
|
8144
|
-
t += this.groupSizes[n];
|
|
8145
|
-
else
|
|
8146
|
-
for (n = this._cGroup - 1; n >= e2; n--)
|
|
8147
|
-
t -= this.groupSizes[n];
|
|
8181
|
+
if (e2 > this._cGroup) for (var n = this._cGroup; n < e2; n++) t += this.groupSizes[n];
|
|
8182
|
+
else for (n = this._cGroup - 1; n >= e2; n--) t -= this.groupSizes[n];
|
|
8148
8183
|
return this._cGroup = e2, this._cIndex = t, t;
|
|
8149
8184
|
}, e.prototype.insertRules = function(e2, t) {
|
|
8150
8185
|
if (e2 >= this.groupSizes.length) {
|
|
8151
|
-
for (var n = this.groupSizes, r2 = n.length, o2 = r2; e2 >= o2; )
|
|
8152
|
-
if ((o2 <<= 1) < 0)
|
|
8153
|
-
throw g(16, "".concat(e2));
|
|
8186
|
+
for (var n = this.groupSizes, r2 = n.length, o2 = r2; e2 >= o2; ) if ((o2 <<= 1) < 0) throw g(16, "".concat(e2));
|
|
8154
8187
|
this.groupSizes = new Uint32Array(o2), this.groupSizes.set(n), this.length = o2;
|
|
8155
|
-
for (var s = r2; s < o2; s++)
|
|
8156
|
-
this.groupSizes[s] = 0;
|
|
8188
|
+
for (var s = r2; s < o2; s++) this.groupSizes[s] = 0;
|
|
8157
8189
|
}
|
|
8158
|
-
for (var i = this.indexOfGroup(e2 + 1), a2 = 0, c2 = (s = 0, t.length); s < c2; s++)
|
|
8159
|
-
this.tag.insertRule(i, t[s]) && (this.groupSizes[e2]++, i++, a2++);
|
|
8190
|
+
for (var i = this.indexOfGroup(e2 + 1), a2 = 0, c2 = (s = 0, t.length); s < c2; s++) this.tag.insertRule(i, t[s]) && (this.groupSizes[e2]++, i++, a2++);
|
|
8160
8191
|
a2 > 0 && this._cGroup > e2 && (this._cIndex += a2);
|
|
8161
8192
|
}, e.prototype.clearGroup = function(e2) {
|
|
8162
8193
|
if (e2 < this.length) {
|
|
8163
8194
|
var t = this.groupSizes[e2], n = this.indexOfGroup(e2), r2 = n + t;
|
|
8164
8195
|
this.groupSizes[e2] = 0;
|
|
8165
|
-
for (var o2 = n; o2 < r2; o2++)
|
|
8166
|
-
this.tag.deleteRule(n);
|
|
8196
|
+
for (var o2 = n; o2 < r2; o2++) this.tag.deleteRule(n);
|
|
8167
8197
|
t > 0 && this._cGroup > e2 && (this._cIndex -= t);
|
|
8168
8198
|
}
|
|
8169
8199
|
}, e.prototype.getGroup = function(e2) {
|
|
8170
8200
|
var t = "";
|
|
8171
|
-
if (e2 >= this.length || 0 === this.groupSizes[e2])
|
|
8172
|
-
|
|
8173
|
-
for (var n = this.groupSizes[e2], r2 = this.indexOfGroup(e2), o2 = r2 + n, s = r2; s < o2; s++)
|
|
8174
|
-
t += this.tag.getRule(s) + p;
|
|
8201
|
+
if (e2 >= this.length || 0 === this.groupSizes[e2]) return t;
|
|
8202
|
+
for (var n = this.groupSizes[e2], r2 = this.indexOfGroup(e2), o2 = r2 + n, s = r2; s < o2; s++) t += this.tag.getRule(s) + p;
|
|
8175
8203
|
return t;
|
|
8176
8204
|
}, e;
|
|
8177
|
-
}();
|
|
8205
|
+
})();
|
|
8178
8206
|
var he = "style[".concat(a, "][").concat(u, '="').concat(l, '"]');
|
|
8179
8207
|
var fe = new RegExp("^".concat(a, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'));
|
|
8180
8208
|
var me = function(e) {
|
|
8181
8209
|
return "undefined" != typeof ShadowRoot && e instanceof ShadowRoot || "host" in e && 11 === e.nodeType;
|
|
8182
8210
|
};
|
|
8183
8211
|
var ye = function(e) {
|
|
8184
|
-
if (!e)
|
|
8185
|
-
|
|
8186
|
-
if (me(e))
|
|
8187
|
-
return e;
|
|
8212
|
+
if (!e) return document;
|
|
8213
|
+
if (me(e)) return e;
|
|
8188
8214
|
if ("getRootNode" in e) {
|
|
8189
8215
|
var t = e.getRootNode();
|
|
8190
|
-
if (me(t))
|
|
8191
|
-
return t;
|
|
8216
|
+
if (me(t)) return t;
|
|
8192
8217
|
}
|
|
8193
8218
|
return document;
|
|
8194
8219
|
};
|
|
8195
8220
|
var ve = function(e, t, n) {
|
|
8196
|
-
for (var r2, o2 = n.split(","), s = 0, i = o2.length; s < i; s++)
|
|
8197
|
-
(r2 = o2[s]) && e.registerName(t, r2);
|
|
8221
|
+
for (var r2, o2 = n.split(","), s = 0, i = o2.length; s < i; s++) (r2 = o2[s]) && e.registerName(t, r2);
|
|
8198
8222
|
};
|
|
8199
8223
|
var ge = function(e, t) {
|
|
8200
8224
|
for (var n, r2 = (null !== (n = t.textContent) && void 0 !== n ? n : "").split(p), o2 = [], s = 0, i = r2.length; s < i; s++) {
|
|
@@ -8204,8 +8228,7 @@ var ge = function(e, t) {
|
|
|
8204
8228
|
if (c2) {
|
|
8205
8229
|
var u2 = 0 | parseInt(c2[1], 10), l2 = c2[2];
|
|
8206
8230
|
0 !== u2 && (E(l2, u2), ve(e, l2, c2[3]), e.getTag().insertRules(u2, o2)), o2.length = 0;
|
|
8207
|
-
} else
|
|
8208
|
-
o2.push(a2);
|
|
8231
|
+
} else o2.push(a2);
|
|
8209
8232
|
}
|
|
8210
8233
|
}
|
|
8211
8234
|
};
|
|
@@ -8219,27 +8242,25 @@ function we() {
|
|
|
8219
8242
|
return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
|
|
8220
8243
|
}
|
|
8221
8244
|
var be = function(e) {
|
|
8222
|
-
var t = document.head, n = e || t, r2 = document.createElement("style"), o2 = function(e2) {
|
|
8245
|
+
var t = document.head, n = e || t, r2 = document.createElement("style"), o2 = (function(e2) {
|
|
8223
8246
|
var t2 = Array.from(e2.querySelectorAll("style[".concat(a, "]")));
|
|
8224
8247
|
return t2[t2.length - 1];
|
|
8225
|
-
}(n), s = void 0 !== o2 ? o2.nextSibling : null;
|
|
8248
|
+
})(n), s = void 0 !== o2 ? o2.nextSibling : null;
|
|
8226
8249
|
r2.setAttribute(a, c), r2.setAttribute(u, l);
|
|
8227
8250
|
var i = we();
|
|
8228
8251
|
return i && r2.setAttribute("nonce", i), n.insertBefore(r2, s), r2;
|
|
8229
8252
|
};
|
|
8230
|
-
var Ne = function() {
|
|
8253
|
+
var Ne = (function() {
|
|
8231
8254
|
function e(e2) {
|
|
8232
|
-
this.element = be(e2), this.element.appendChild(document.createTextNode("")), this.sheet = function(e3) {
|
|
8255
|
+
this.element = be(e2), this.element.appendChild(document.createTextNode("")), this.sheet = (function(e3) {
|
|
8233
8256
|
var t;
|
|
8234
|
-
if (e3.sheet)
|
|
8235
|
-
return e3.sheet;
|
|
8257
|
+
if (e3.sheet) return e3.sheet;
|
|
8236
8258
|
for (var n = null !== (t = e3.getRootNode().styleSheets) && void 0 !== t ? t : document.styleSheets, r2 = 0, o2 = n.length; r2 < o2; r2++) {
|
|
8237
8259
|
var s = n[r2];
|
|
8238
|
-
if (s.ownerNode === e3)
|
|
8239
|
-
return s;
|
|
8260
|
+
if (s.ownerNode === e3) return s;
|
|
8240
8261
|
}
|
|
8241
8262
|
throw g(17);
|
|
8242
|
-
}(this.element), this.length = 0;
|
|
8263
|
+
})(this.element), this.length = 0;
|
|
8243
8264
|
}
|
|
8244
8265
|
return e.prototype.insertRule = function(e2, t) {
|
|
8245
8266
|
try {
|
|
@@ -8253,8 +8274,8 @@ var Ne = function() {
|
|
|
8253
8274
|
var t = this.sheet.cssRules[e2];
|
|
8254
8275
|
return t && t.cssText ? t.cssText : "";
|
|
8255
8276
|
}, e;
|
|
8256
|
-
}();
|
|
8257
|
-
var Ce = function() {
|
|
8277
|
+
})();
|
|
8278
|
+
var Ce = (function() {
|
|
8258
8279
|
function e(e2) {
|
|
8259
8280
|
this.element = be(e2), this.nodes = this.element.childNodes, this.length = 0;
|
|
8260
8281
|
}
|
|
@@ -8269,8 +8290,8 @@ var Ce = function() {
|
|
|
8269
8290
|
}, e.prototype.getRule = function(e2) {
|
|
8270
8291
|
return e2 < this.length ? this.nodes[e2].textContent : "";
|
|
8271
8292
|
}, e;
|
|
8272
|
-
}();
|
|
8273
|
-
var Ee = function() {
|
|
8293
|
+
})();
|
|
8294
|
+
var Ee = (function() {
|
|
8274
8295
|
function e(e2) {
|
|
8275
8296
|
this.rules = [], this.length = 0;
|
|
8276
8297
|
}
|
|
@@ -8281,35 +8302,31 @@ var Ee = function() {
|
|
|
8281
8302
|
}, e.prototype.getRule = function(e2) {
|
|
8282
8303
|
return e2 < this.length ? this.rules[e2] : "";
|
|
8283
8304
|
}, e;
|
|
8284
|
-
}();
|
|
8305
|
+
})();
|
|
8285
8306
|
var _e = d;
|
|
8286
8307
|
var Ae = { isServer: !d, useCSSOMInjection: !f };
|
|
8287
|
-
var Ie = function() {
|
|
8308
|
+
var Ie = (function() {
|
|
8288
8309
|
function e(e2, n, r2) {
|
|
8289
8310
|
void 0 === e2 && (e2 = O), void 0 === n && (n = {});
|
|
8290
8311
|
var o2 = this;
|
|
8291
8312
|
this.options = __assign(__assign({}, Ae), e2), this.gs = n, this.names = new Map(r2), this.server = !!e2.isServer, !this.server && d && _e && (_e = false, Se(this)), pe(this, function() {
|
|
8292
|
-
return function(e3) {
|
|
8313
|
+
return (function(e3) {
|
|
8293
8314
|
for (var t = e3.getTag(), n2 = t.length, r3 = "", o3 = function(n3) {
|
|
8294
|
-
var o4 = function(e4) {
|
|
8315
|
+
var o4 = (function(e4) {
|
|
8295
8316
|
return b.get(e4);
|
|
8296
|
-
}(n3);
|
|
8297
|
-
if (void 0 === o4)
|
|
8298
|
-
return "continue";
|
|
8317
|
+
})(n3);
|
|
8318
|
+
if (void 0 === o4) return "continue";
|
|
8299
8319
|
var s2 = e3.names.get(o4);
|
|
8300
|
-
if (void 0 === s2 || !s2.size)
|
|
8301
|
-
return "continue";
|
|
8320
|
+
if (void 0 === s2 || !s2.size) return "continue";
|
|
8302
8321
|
var i = t.getGroup(n3);
|
|
8303
|
-
if (0 === i.length)
|
|
8304
|
-
return "continue";
|
|
8322
|
+
if (0 === i.length) return "continue";
|
|
8305
8323
|
var c2 = a + ".g" + n3 + '[id="' + o4 + '"]', u2 = "";
|
|
8306
8324
|
s2.forEach(function(e4) {
|
|
8307
8325
|
e4.length > 0 && (u2 += e4 + ",");
|
|
8308
8326
|
}), r3 += i + c2 + '{content:"' + u2 + '"}' + p;
|
|
8309
|
-
}, s = 0; s < n2; s++)
|
|
8310
|
-
o3(s);
|
|
8327
|
+
}, s = 0; s < n2; s++) o3(s);
|
|
8311
8328
|
return r3;
|
|
8312
|
-
}(o2);
|
|
8329
|
+
})(o2);
|
|
8313
8330
|
});
|
|
8314
8331
|
}
|
|
8315
8332
|
return e.registerId = function(e2) {
|
|
@@ -8323,10 +8340,10 @@ var Ie = function() {
|
|
|
8323
8340
|
}, e.prototype.allocateGSInstance = function(e2) {
|
|
8324
8341
|
return this.gs[e2] = (this.gs[e2] || 0) + 1;
|
|
8325
8342
|
}, e.prototype.getTag = function() {
|
|
8326
|
-
return this.tag || (this.tag = (e2 = function(e3) {
|
|
8343
|
+
return this.tag || (this.tag = (e2 = (function(e3) {
|
|
8327
8344
|
var t = e3.useCSSOMInjection, n = e3.target;
|
|
8328
8345
|
return e3.isServer ? new Ee(n) : t ? new Ne(n) : new Ce(n);
|
|
8329
|
-
}(this.options), new de(e2)));
|
|
8346
|
+
})(this.options), new de(e2)));
|
|
8330
8347
|
var e2;
|
|
8331
8348
|
}, e.prototype.hasNameForId = function(e2, t) {
|
|
8332
8349
|
var n, r2;
|
|
@@ -8344,7 +8361,7 @@ var Ie = function() {
|
|
|
8344
8361
|
}, e.prototype.clearTag = function() {
|
|
8345
8362
|
this.tag = void 0;
|
|
8346
8363
|
}, e;
|
|
8347
|
-
}();
|
|
8364
|
+
})();
|
|
8348
8365
|
function Pe(e, t) {
|
|
8349
8366
|
return null == t || "boolean" == typeof t || "" === t ? "" : "number" != typeof t || 0 === t || e in unitlessKeys || e.startsWith("--") ? String(t).trim() : "".concat(t, "px");
|
|
8350
8367
|
}
|
|
@@ -8354,13 +8371,12 @@ var Oe = function(e) {
|
|
|
8354
8371
|
function De(e) {
|
|
8355
8372
|
for (var t = "", n = 0; n < e.length; n++) {
|
|
8356
8373
|
var r2 = e[n];
|
|
8357
|
-
if (1 === n && "-" === r2 && "-" === e[0])
|
|
8358
|
-
return e;
|
|
8374
|
+
if (1 === n && "-" === r2 && "-" === e[0]) return e;
|
|
8359
8375
|
Oe(r2) ? t += "-" + r2.toLowerCase() : t += r2;
|
|
8360
8376
|
}
|
|
8361
8377
|
return t.startsWith("ms-") ? "-" + t : t;
|
|
8362
8378
|
}
|
|
8363
|
-
var Te = Symbol.for("sc-keyframes");
|
|
8379
|
+
var Te = /* @__PURE__ */ Symbol.for("sc-keyframes");
|
|
8364
8380
|
function Re(e) {
|
|
8365
8381
|
return "object" == typeof e && null !== e && Te in e;
|
|
8366
8382
|
}
|
|
@@ -8376,63 +8392,51 @@ var je = function(t) {
|
|
|
8376
8392
|
return n;
|
|
8377
8393
|
};
|
|
8378
8394
|
function ke(e, t, n, r2, o2) {
|
|
8379
|
-
if (void 0 === o2 && (o2 = []), "string" == typeof e)
|
|
8380
|
-
|
|
8381
|
-
if (
|
|
8382
|
-
return o2;
|
|
8383
|
-
if (ie(e))
|
|
8384
|
-
return o2.push(".".concat(e.styledComponentId)), o2;
|
|
8395
|
+
if (void 0 === o2 && (o2 = []), "string" == typeof e) return e && o2.push(e), o2;
|
|
8396
|
+
if (xe(e)) return o2;
|
|
8397
|
+
if (ie(e)) return o2.push(".".concat(e.styledComponentId)), o2;
|
|
8385
8398
|
if (se(e)) {
|
|
8386
|
-
if (!se(i = e) || i.prototype && i.prototype.isReactComponent || !t)
|
|
8387
|
-
return o2.push(e), o2;
|
|
8399
|
+
if (!se(i = e) || i.prototype && i.prototype.isReactComponent || !t) return o2.push(e), o2;
|
|
8388
8400
|
var s = e(t);
|
|
8389
8401
|
return "production" === process.env.NODE_ENV || "object" != typeof s || Array.isArray(s) || Re(s) || ue(s) || null === s || console.error("".concat(L(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), ke(s, t, n, r2, o2);
|
|
8390
8402
|
}
|
|
8391
8403
|
var i;
|
|
8392
|
-
if (Re(e))
|
|
8393
|
-
return n ? (e.inject(n, r2), o2.push(e.getName(r2))) : o2.push(e), o2;
|
|
8404
|
+
if (Re(e)) return n ? (e.inject(n, r2), o2.push(e.getName(r2))) : o2.push(e), o2;
|
|
8394
8405
|
if (ue(e)) {
|
|
8395
|
-
for (var a2 = je(e), c2 = 0; c2 < a2.length; c2++)
|
|
8396
|
-
o2.push(a2[c2]);
|
|
8406
|
+
for (var a2 = je(e), c2 = 0; c2 < a2.length; c2++) o2.push(a2[c2]);
|
|
8397
8407
|
return o2;
|
|
8398
8408
|
}
|
|
8399
|
-
if (!Array.isArray(e))
|
|
8400
|
-
|
|
8401
|
-
for (c2 = 0; c2 < e.length; c2++)
|
|
8402
|
-
ke(e[c2], t, n, r2, o2);
|
|
8409
|
+
if (!Array.isArray(e)) return o2.push(e.toString()), o2;
|
|
8410
|
+
for (c2 = 0; c2 < e.length; c2++) ke(e[c2], t, n, r2, o2);
|
|
8403
8411
|
return o2;
|
|
8404
8412
|
}
|
|
8405
8413
|
function Me(e) {
|
|
8406
8414
|
for (var t = 0; t < e.length; t += 1) {
|
|
8407
8415
|
var n = e[t];
|
|
8408
|
-
if (se(n) && !ie(n))
|
|
8409
|
-
return false;
|
|
8416
|
+
if (se(n) && !ie(n)) return false;
|
|
8410
8417
|
}
|
|
8411
8418
|
return true;
|
|
8412
8419
|
}
|
|
8413
8420
|
var Ve = z(l);
|
|
8414
|
-
var Fe = function() {
|
|
8421
|
+
var Fe = (function() {
|
|
8415
8422
|
function e(e2, t, n) {
|
|
8416
8423
|
this.rules = e2, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && Me(e2), this.componentId = t, this.baseHash = G(Ve, t), this.baseStyle = n, Ie.registerId(t);
|
|
8417
8424
|
}
|
|
8418
8425
|
return e.prototype.generateAndInjectStyles = function(e2, t, n) {
|
|
8419
8426
|
var r2 = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e2, t, n).className : "";
|
|
8420
|
-
if (this.isStatic && !n.hash)
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
var
|
|
8425
|
-
|
|
8426
|
-
var i = n(o2, ".".concat(s), void 0, this.componentId);
|
|
8427
|
-
t.insertRules(this.componentId, s, i);
|
|
8428
|
-
}
|
|
8429
|
-
r2 = ae(r2, s), this.staticRulesId = s;
|
|
8427
|
+
if (this.isStatic && !n.hash) if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId)) r2 = ae(r2, this.staticRulesId);
|
|
8428
|
+
else {
|
|
8429
|
+
var o2 = ce(ke(this.rules, e2, t, n)), s = V(G(this.baseHash, o2) >>> 0);
|
|
8430
|
+
if (!t.hasNameForId(this.componentId, s)) {
|
|
8431
|
+
var i = n(o2, ".".concat(s), void 0, this.componentId);
|
|
8432
|
+
t.insertRules(this.componentId, s, i);
|
|
8430
8433
|
}
|
|
8434
|
+
r2 = ae(r2, s), this.staticRulesId = s;
|
|
8435
|
+
}
|
|
8431
8436
|
else {
|
|
8432
8437
|
for (var a2 = G(this.baseHash, n.hash), c2 = "", u2 = 0; u2 < this.rules.length; u2++) {
|
|
8433
8438
|
var l2 = this.rules[u2];
|
|
8434
|
-
if ("string" == typeof l2)
|
|
8435
|
-
c2 += l2, "production" !== process.env.NODE_ENV && (a2 = G(a2, l2));
|
|
8439
|
+
if ("string" == typeof l2) c2 += l2, "production" !== process.env.NODE_ENV && (a2 = G(a2, l2));
|
|
8436
8440
|
else if (l2) {
|
|
8437
8441
|
var p2 = ce(ke(l2, e2, t, n));
|
|
8438
8442
|
a2 = G(G(a2, String(u2)), p2), c2 += p2;
|
|
@@ -8449,29 +8453,22 @@ var Fe = function() {
|
|
|
8449
8453
|
}
|
|
8450
8454
|
return { className: r2, css: "undefined" == typeof window ? t.getTag().getGroup(C(this.componentId)) : "" };
|
|
8451
8455
|
}, e;
|
|
8452
|
-
}();
|
|
8456
|
+
})();
|
|
8453
8457
|
var Ge = /&/g;
|
|
8454
8458
|
var ze = 47;
|
|
8455
8459
|
var Be = 42;
|
|
8456
8460
|
function Le(e) {
|
|
8457
|
-
if (-1 === e.indexOf("}"))
|
|
8458
|
-
return false;
|
|
8461
|
+
if (-1 === e.indexOf("}")) return false;
|
|
8459
8462
|
for (var t = e.length, n = 0, r2 = 0, o2 = false, s = 0; s < t; s++) {
|
|
8460
8463
|
var i = e.charCodeAt(s);
|
|
8461
|
-
if (0 !== r2 || o2 || i !== ze || e.charCodeAt(s + 1) !== Be)
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
if (
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
return true;
|
|
8470
|
-
}
|
|
8471
|
-
} else
|
|
8472
|
-
0 === r2 ? r2 = i : r2 === i && (r2 = 0);
|
|
8473
|
-
else
|
|
8474
|
-
o2 = true, s++;
|
|
8464
|
+
if (0 !== r2 || o2 || i !== ze || e.charCodeAt(s + 1) !== Be) if (o2) i === Be && e.charCodeAt(s + 1) === ze && (o2 = false, s++);
|
|
8465
|
+
else if (34 !== i && 39 !== i || 0 !== s && 92 === e.charCodeAt(s - 1)) {
|
|
8466
|
+
if (0 === r2) {
|
|
8467
|
+
if (123 === i) n++;
|
|
8468
|
+
else if (125 === i && --n < 0) return true;
|
|
8469
|
+
}
|
|
8470
|
+
} else 0 === r2 ? r2 = i : r2 === i && (r2 = 0);
|
|
8471
|
+
else o2 = true, s++;
|
|
8475
8472
|
}
|
|
8476
8473
|
return 0 !== n || 0 !== r2;
|
|
8477
8474
|
}
|
|
@@ -8493,72 +8490,52 @@ function Ye(e) {
|
|
|
8493
8490
|
return d2.push(e2);
|
|
8494
8491
|
}))), f2 = function(e2, o3, s2, c3) {
|
|
8495
8492
|
void 0 === o3 && (o3 = ""), void 0 === s2 && (s2 = ""), void 0 === c3 && (c3 = "&"), t = c3, n = o3, r2 = void 0;
|
|
8496
|
-
var u3 = function(e3) {
|
|
8497
|
-
if (!Le(e3))
|
|
8498
|
-
return e3;
|
|
8493
|
+
var u3 = (function(e3) {
|
|
8494
|
+
if (!Le(e3)) return e3;
|
|
8499
8495
|
for (var t2 = e3.length, n2 = "", r3 = 0, o4 = 0, s3 = 0, i = false, a3 = 0; a3 < t2; a3++) {
|
|
8500
8496
|
var c4 = e3.charCodeAt(a3);
|
|
8501
|
-
if (0 !== s3 || i || c4 !== ze || e3.charCodeAt(a3 + 1) !== Be)
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
else if (
|
|
8505
|
-
if (
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
}
|
|
8519
|
-
0 === o4 && (n2 += e3.substring(r3, a3 + 1), r3 = a3 + 1);
|
|
8520
|
-
} else
|
|
8521
|
-
59 === c4 && 0 === o4 && (n2 += e3.substring(r3, a3 + 1), r3 = a3 + 1);
|
|
8522
|
-
} else
|
|
8523
|
-
0 === s3 ? s3 = c4 : s3 === c4 && (s3 = 0);
|
|
8524
|
-
else
|
|
8525
|
-
i = true, a3++;
|
|
8497
|
+
if (0 !== s3 || i || c4 !== ze || e3.charCodeAt(a3 + 1) !== Be) if (i) c4 === Be && e3.charCodeAt(a3 + 1) === ze && (i = false, a3++);
|
|
8498
|
+
else if (34 !== c4 && 39 !== c4 || 0 !== a3 && 92 === e3.charCodeAt(a3 - 1)) {
|
|
8499
|
+
if (0 === s3) if (123 === c4) o4++;
|
|
8500
|
+
else if (125 === c4) {
|
|
8501
|
+
if (--o4 < 0) {
|
|
8502
|
+
for (var u4 = a3 + 1; u4 < t2; ) {
|
|
8503
|
+
var l4 = e3.charCodeAt(u4);
|
|
8504
|
+
if (59 === l4 || 10 === l4) break;
|
|
8505
|
+
u4++;
|
|
8506
|
+
}
|
|
8507
|
+
u4 < t2 && 59 === e3.charCodeAt(u4) && u4++, o4 = 0, a3 = u4 - 1, r3 = u4;
|
|
8508
|
+
continue;
|
|
8509
|
+
}
|
|
8510
|
+
0 === o4 && (n2 += e3.substring(r3, a3 + 1), r3 = a3 + 1);
|
|
8511
|
+
} else 59 === c4 && 0 === o4 && (n2 += e3.substring(r3, a3 + 1), r3 = a3 + 1);
|
|
8512
|
+
} else 0 === s3 ? s3 = c4 : s3 === c4 && (s3 = 0);
|
|
8513
|
+
else i = true, a3++;
|
|
8526
8514
|
}
|
|
8527
8515
|
if (r3 < t2) {
|
|
8528
8516
|
var p3 = e3.substring(r3);
|
|
8529
8517
|
Le(p3) || (n2 += p3);
|
|
8530
8518
|
}
|
|
8531
8519
|
return n2;
|
|
8532
|
-
}(function(e3) {
|
|
8533
|
-
if (-1 === e3.indexOf("//"))
|
|
8534
|
-
return e3;
|
|
8520
|
+
})((function(e3) {
|
|
8521
|
+
if (-1 === e3.indexOf("//")) return e3;
|
|
8535
8522
|
for (var t2 = e3.length, n2 = [], r3 = 0, o4 = 0, s3 = 0, i = 0; o4 < t2; ) {
|
|
8536
8523
|
var a3 = e3.charCodeAt(o4);
|
|
8537
|
-
if (34 !== a3 && 39 !== a3 || 0 !== o4 && 92 === e3.charCodeAt(o4 - 1))
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
else if (a3 === ze && o4 + 1 < t2 && e3.charCodeAt(o4 + 1) === ze) {
|
|
8550
|
-
for (o4 > r3 && n2.push(e3.substring(r3, o4)); o4 < t2 && 10 !== e3.charCodeAt(o4); )
|
|
8551
|
-
o4++;
|
|
8552
|
-
r3 = o4;
|
|
8553
|
-
} else
|
|
8554
|
-
o4++;
|
|
8555
|
-
else
|
|
8556
|
-
o4++;
|
|
8557
|
-
else
|
|
8558
|
-
0 === s3 ? s3 = a3 : s3 === a3 && (s3 = 0), o4++;
|
|
8524
|
+
if (34 !== a3 && 39 !== a3 || 0 !== o4 && 92 === e3.charCodeAt(o4 - 1)) if (0 === s3) if (a3 === ze && o4 + 1 < t2 && e3.charCodeAt(o4 + 1) === Be) {
|
|
8525
|
+
for (o4 += 2; o4 + 1 < t2 && (e3.charCodeAt(o4) !== Be || e3.charCodeAt(o4 + 1) !== ze); ) o4++;
|
|
8526
|
+
o4 += 2;
|
|
8527
|
+
} else if (40 === a3 && o4 >= 3 && 108 == (32 | e3.charCodeAt(o4 - 1)) && 114 == (32 | e3.charCodeAt(o4 - 2)) && 117 == (32 | e3.charCodeAt(o4 - 3))) i = 1, o4++;
|
|
8528
|
+
else if (i > 0) 41 === a3 ? i-- : 40 === a3 && i++, o4++;
|
|
8529
|
+
else if (a3 === Be && o4 + 1 < t2 && e3.charCodeAt(o4 + 1) === ze) o4 > r3 && n2.push(e3.substring(r3, o4)), r3 = o4 += 2;
|
|
8530
|
+
else if (a3 === ze && o4 + 1 < t2 && e3.charCodeAt(o4 + 1) === ze) {
|
|
8531
|
+
for (o4 > r3 && n2.push(e3.substring(r3, o4)); o4 < t2 && 10 !== e3.charCodeAt(o4); ) o4++;
|
|
8532
|
+
r3 = o4;
|
|
8533
|
+
} else o4++;
|
|
8534
|
+
else o4++;
|
|
8535
|
+
else 0 === s3 ? s3 = a3 : s3 === a3 && (s3 = 0), o4++;
|
|
8559
8536
|
}
|
|
8560
8537
|
return 0 === r3 ? e3 : (r3 < t2 && n2.push(e3.substring(r3)), n2.join(""));
|
|
8561
|
-
}(e2)), l3 = compile(s2 || o3 ? "".concat(s2, " ").concat(o3, " { ").concat(u3, " }") : u3);
|
|
8538
|
+
})(e2)), l3 = compile(s2 || o3 ? "".concat(s2, " ").concat(o3, " { ").concat(u3, " }") : u3);
|
|
8562
8539
|
return a2.namespace && (l3 = $e(l3, a2.namespace)), d2 = [], serialize(l3, h2), d2;
|
|
8563
8540
|
};
|
|
8564
8541
|
return f2.hash = u2.length ? u2.reduce(function(e2, t2) {
|
|
@@ -8583,8 +8560,7 @@ function Ze() {
|
|
|
8583
8560
|
return h ? He : import_react.default.useContext(Ue);
|
|
8584
8561
|
}
|
|
8585
8562
|
function Ke(e) {
|
|
8586
|
-
if (h || !import_react.default.useMemo)
|
|
8587
|
-
return e.children;
|
|
8563
|
+
if (h || !import_react.default.useMemo) return e.children;
|
|
8588
8564
|
var t = Ze().styleSheet, n = import_react.default.useMemo(function() {
|
|
8589
8565
|
var n2 = t;
|
|
8590
8566
|
return e.sheet ? n2 = e.sheet : e.target && (n2 = n2.reconstructWithOptions({ target: e.target }, false)), e.disableCSSOMInjection && (n2 = n2.reconstructWithOptions({ useCSSOMInjection: false })), n2;
|
|
@@ -8604,14 +8580,14 @@ var et = Qe.Consumer;
|
|
|
8604
8580
|
var rt = {};
|
|
8605
8581
|
var ot = /* @__PURE__ */ new Set();
|
|
8606
8582
|
function st(s, i, a2) {
|
|
8607
|
-
var c2 = ie(s), u2 = s, p2 = !$(s), d2 = i.attrs, f2 = void 0 === d2 ? P : d2, m = i.componentId, y2 = void 0 === m ? function(e, t) {
|
|
8583
|
+
var c2 = ie(s), u2 = s, p2 = !$(s), d2 = i.attrs, f2 = void 0 === d2 ? P : d2, m = i.componentId, y2 = void 0 === m ? (function(e, t) {
|
|
8608
8584
|
var n = "string" != typeof e ? "sc" : j(e);
|
|
8609
8585
|
rt[n] = (rt[n] || 0) + 1;
|
|
8610
8586
|
var r2 = "".concat(n, "-").concat(B(l + n + rt[n]));
|
|
8611
8587
|
return t ? "".concat(t, "-").concat(r2) : r2;
|
|
8612
|
-
}(i.displayName, i.parentComponentId) : m, v2 = i.displayName, g2 = void 0 === v2 ? function(e) {
|
|
8588
|
+
})(i.displayName, i.parentComponentId) : m, v2 = i.displayName, g2 = void 0 === v2 ? (function(e) {
|
|
8613
8589
|
return $(e) ? "styled.".concat(e) : "Styled(".concat(L(e), ")");
|
|
8614
|
-
}(s) : v2, S2 = i.displayName && i.componentId ? "".concat(j(i.displayName), "-").concat(i.componentId) : i.componentId || y2, w2 = c2 && u2.attrs ? u2.attrs.concat(f2).filter(Boolean) : f2, b2 = i.shouldForwardProp;
|
|
8590
|
+
})(s) : v2, S2 = i.displayName && i.componentId ? "".concat(j(i.displayName), "-").concat(i.componentId) : i.componentId || y2, w2 = c2 && u2.attrs ? u2.attrs.concat(f2).filter(Boolean) : f2, b2 = i.shouldForwardProp;
|
|
8615
8591
|
if (c2 && u2.shouldForwardProp) {
|
|
8616
8592
|
var N2 = u2.shouldForwardProp;
|
|
8617
8593
|
if (i.shouldForwardProp) {
|
|
@@ -8619,28 +8595,25 @@ function st(s, i, a2) {
|
|
|
8619
8595
|
b2 = function(e, t) {
|
|
8620
8596
|
return N2(e, t) && E2(e, t);
|
|
8621
8597
|
};
|
|
8622
|
-
} else
|
|
8623
|
-
b2 = N2;
|
|
8598
|
+
} else b2 = N2;
|
|
8624
8599
|
}
|
|
8625
8600
|
var _3 = new Fe(a2, S2, c2 ? u2.componentStyle : void 0);
|
|
8626
8601
|
function A2(s2, i2) {
|
|
8627
|
-
return function(s3, i3, a3) {
|
|
8602
|
+
return (function(s3, i3, a3) {
|
|
8628
8603
|
var c3 = s3.attrs, u3 = s3.componentStyle, l2 = s3.defaultProps, p3 = s3.foldedComponentIds, d3 = s3.styledComponentId, f3 = s3.target, m2 = h ? void 0 : import_react.default.useContext(Qe), y3 = Ze(), v3 = s3.shouldForwardProp || y3.shouldForwardProp;
|
|
8629
8604
|
"production" !== process.env.NODE_ENV && import_react.default.useDebugValue && import_react.default.useDebugValue(d3);
|
|
8630
|
-
var g3 = D(i3, m2, l2) || (h ? void 0 : O), S3 = function(e, n, r2) {
|
|
8605
|
+
var g3 = D(i3, m2, l2) || (h ? void 0 : O), S3 = (function(e, n, r2) {
|
|
8631
8606
|
for (var o2, s4 = __assign(__assign({}, n), { className: void 0, theme: r2 }), i4 = 0; i4 < e.length; i4 += 1) {
|
|
8632
8607
|
var a4 = se(o2 = e[i4]) ? o2(s4) : o2;
|
|
8633
|
-
for (var c4 in a4)
|
|
8634
|
-
"className" === c4 ? s4.className = ae(s4.className, a4[c4]) : "style" === c4 ? s4.style = __assign(__assign({}, s4.style), a4[c4]) : c4 in n && void 0 === n[c4] || (s4[c4] = a4[c4]);
|
|
8608
|
+
for (var c4 in a4) "className" === c4 ? s4.className = ae(s4.className, a4[c4]) : "style" === c4 ? s4.style = __assign(__assign({}, s4.style), a4[c4]) : c4 in n && void 0 === n[c4] || (s4[c4] = a4[c4]);
|
|
8635
8609
|
}
|
|
8636
8610
|
return "className" in n && "string" == typeof n.className && (s4.className = ae(s4.className, n.className)), s4;
|
|
8637
|
-
}(c3, i3, g3), w3 = S3.as || f3, b3 = {};
|
|
8638
|
-
for (var N3 in S3)
|
|
8639
|
-
|
|
8640
|
-
var E3 = function(e, t) {
|
|
8611
|
+
})(c3, i3, g3), w3 = S3.as || f3, b3 = {};
|
|
8612
|
+
for (var N3 in S3) void 0 === S3[N3] || "$" === N3[0] || "as" === N3 || "theme" === N3 && S3.theme === g3 || ("forwardedAs" === N3 ? b3.as = S3.forwardedAs : v3 && !v3(N3, w3) || (b3[N3] = S3[N3], v3 || "development" !== process.env.NODE_ENV || isPropValid(N3) || ot.has(N3) || !T.has(w3) || (ot.add(N3), console.warn('styled-components: it looks like an unknown prop "'.concat(N3, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
8613
|
+
var E3 = (function(e, t) {
|
|
8641
8614
|
var n = Ze(), o2 = e.generateAndInjectStyles(t, n.styleSheet, n.stylis);
|
|
8642
8615
|
return "production" !== process.env.NODE_ENV && import_react.default.useDebugValue && import_react.default.useDebugValue(o2.className), o2;
|
|
8643
|
-
}(u3, S3), _4 = E3.className;
|
|
8616
|
+
})(u3, S3), _4 = E3.className;
|
|
8644
8617
|
"production" !== process.env.NODE_ENV && s3.warnTooManyClasses && s3.warnTooManyClasses(_4);
|
|
8645
8618
|
var A3 = ae(p3, d3);
|
|
8646
8619
|
_4 && (A3 += " " + _4), S3.className && (A3 += " " + S3.className), b3[$(w3) && !T.has(w3) ? "class" : "className"] = A3, a3 && (b3.ref = a3);
|
|
@@ -8655,27 +8628,23 @@ function st(s, i, a2) {
|
|
|
8655
8628
|
}), P4.push(import_react.default.createElement("style", { key: "sc-".concat(R3.componentId), precedence: "styled-components", href: "sc-".concat(R3.componentId, "-").concat(t), children: e }));
|
|
8656
8629
|
}
|
|
8657
8630
|
R3 = R3.baseStyle;
|
|
8658
|
-
}; R3; )
|
|
8659
|
-
|
|
8660
|
-
if (P4.length)
|
|
8661
|
-
return P4.reverse(), import_react.default.createElement.apply(import_react.default, __spreadArray(__spreadArray([import_react.default.Fragment, null], P4, false), [I2], false));
|
|
8631
|
+
}; R3; ) x2();
|
|
8632
|
+
if (P4.length) return P4.reverse(), import_react.default.createElement.apply(import_react.default, __spreadArray(__spreadArray([import_react.default.Fragment, null], P4, false), [I2], false));
|
|
8662
8633
|
}
|
|
8663
8634
|
return I2;
|
|
8664
|
-
}(R2, s2, i2);
|
|
8635
|
+
})(R2, s2, i2);
|
|
8665
8636
|
}
|
|
8666
8637
|
A2.displayName = g2;
|
|
8667
8638
|
var R2 = import_react.default.forwardRef(A2);
|
|
8668
8639
|
return R2.attrs = w2, R2.componentStyle = _3, R2.displayName = g2, R2.shouldForwardProp = b2, R2.foldedComponentIds = c2 ? ae(u2.foldedComponentIds, u2.styledComponentId) : "", R2.styledComponentId = S2, R2.target = c2 ? u2.target : s, Object.defineProperty(R2, "defaultProps", { get: function() {
|
|
8669
8640
|
return this._foldedDefaultProps;
|
|
8670
8641
|
}, set: function(e) {
|
|
8671
|
-
this._foldedDefaultProps = c2 ? function(e2) {
|
|
8672
|
-
for (var t = [], n = 1; n < arguments.length; n++)
|
|
8673
|
-
|
|
8674
|
-
for (var r2 = 0, o2 = t; r2 < o2.length; r2++)
|
|
8675
|
-
le(e2, o2[r2], true);
|
|
8642
|
+
this._foldedDefaultProps = c2 ? (function(e2) {
|
|
8643
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
8644
|
+
for (var r2 = 0, o2 = t; r2 < o2.length; r2++) le(e2, o2[r2], true);
|
|
8676
8645
|
return e2;
|
|
8677
|
-
}({}, u2.defaultProps, e) : e;
|
|
8678
|
-
} }), "production" !== process.env.NODE_ENV && (I(g2, S2), R2.warnTooManyClasses = function(e, t) {
|
|
8646
|
+
})({}, u2.defaultProps, e) : e;
|
|
8647
|
+
} }), "production" !== process.env.NODE_ENV && (I(g2, S2), R2.warnTooManyClasses = /* @__PURE__ */ (function(e, t) {
|
|
8679
8648
|
var n = {}, r2 = false;
|
|
8680
8649
|
return function(o2) {
|
|
8681
8650
|
if (!r2 && (n[o2] = true, Object.keys(n).length >= 200)) {
|
|
@@ -8683,32 +8652,27 @@ function st(s, i, a2) {
|
|
|
8683
8652
|
console.warn("Over ".concat(200, " classes were generated for component ").concat(e).concat(s2, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), r2 = true, n = {};
|
|
8684
8653
|
}
|
|
8685
8654
|
};
|
|
8686
|
-
}(g2, S2)), pe(R2, function() {
|
|
8655
|
+
})(g2, S2)), pe(R2, function() {
|
|
8687
8656
|
return ".".concat(R2.styledComponentId);
|
|
8688
8657
|
}), p2 && oe(R2, s, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), R2;
|
|
8689
8658
|
}
|
|
8690
8659
|
function it(e, t) {
|
|
8691
|
-
for (var n = [e[0]], r2 = 0, o2 = t.length; r2 < o2; r2 += 1)
|
|
8692
|
-
n.push(t[r2], e[r2 + 1]);
|
|
8660
|
+
for (var n = [e[0]], r2 = 0, o2 = t.length; r2 < o2; r2 += 1) n.push(t[r2], e[r2 + 1]);
|
|
8693
8661
|
return n;
|
|
8694
8662
|
}
|
|
8695
8663
|
var at = function(e) {
|
|
8696
8664
|
return Object.assign(e, { isCss: true });
|
|
8697
8665
|
};
|
|
8698
8666
|
function ct(t) {
|
|
8699
|
-
for (var n = [], r2 = 1; r2 < arguments.length; r2++)
|
|
8700
|
-
|
|
8701
|
-
if (se(t) || ue(t))
|
|
8702
|
-
return at(ke(it(P, __spreadArray([t], n, true))));
|
|
8667
|
+
for (var n = [], r2 = 1; r2 < arguments.length; r2++) n[r2 - 1] = arguments[r2];
|
|
8668
|
+
if (se(t) || ue(t)) return at(ke(it(P, __spreadArray([t], n, true))));
|
|
8703
8669
|
var o2 = t;
|
|
8704
8670
|
return 0 === n.length && 1 === o2.length && "string" == typeof o2[0] ? ke(o2) : at(ke(it(o2, n)));
|
|
8705
8671
|
}
|
|
8706
8672
|
function ut(n, r2, o2) {
|
|
8707
|
-
if (void 0 === o2 && (o2 = O), !r2)
|
|
8708
|
-
throw g(1, r2);
|
|
8673
|
+
if (void 0 === o2 && (o2 = O), !r2) throw g(1, r2);
|
|
8709
8674
|
var s = function(t) {
|
|
8710
|
-
for (var s2 = [], i = 1; i < arguments.length; i++)
|
|
8711
|
-
s2[i - 1] = arguments[i];
|
|
8675
|
+
for (var s2 = [], i = 1; i < arguments.length; i++) s2[i - 1] = arguments[i];
|
|
8712
8676
|
return n(r2, o2, ct.apply(void 0, __spreadArray([t], s2, false)));
|
|
8713
8677
|
};
|
|
8714
8678
|
return s.attrs = function(e) {
|
|
@@ -8725,7 +8689,7 @@ T.forEach(function(e) {
|
|
|
8725
8689
|
pt[e] = lt(e);
|
|
8726
8690
|
});
|
|
8727
8691
|
var dt;
|
|
8728
|
-
var ht = function() {
|
|
8692
|
+
var ht = (function() {
|
|
8729
8693
|
function e(e2, t) {
|
|
8730
8694
|
this.rules = e2, this.componentId = t, this.isStatic = Me(e2), Ie.registerId(this.componentId + 1);
|
|
8731
8695
|
}
|
|
@@ -8739,8 +8703,8 @@ var ht = function() {
|
|
|
8739
8703
|
var o2 = this.componentId + e2;
|
|
8740
8704
|
this.isStatic ? n.hasNameForId(o2, o2) || this.createStyles(e2, t, n, r2) : (this.removeStyles(e2, n), this.createStyles(e2, t, n, r2));
|
|
8741
8705
|
}, e;
|
|
8742
|
-
}();
|
|
8743
|
-
var mt = function() {
|
|
8706
|
+
})();
|
|
8707
|
+
var mt = (function() {
|
|
8744
8708
|
function e(e2, t) {
|
|
8745
8709
|
var n = this;
|
|
8746
8710
|
this[dt] = true, this.inject = function(e3, t2) {
|
|
@@ -8754,29 +8718,25 @@ var mt = function() {
|
|
|
8754
8718
|
return e.prototype.getName = function(e2) {
|
|
8755
8719
|
return void 0 === e2 && (e2 = qe), this.name + e2.hash;
|
|
8756
8720
|
}, e;
|
|
8757
|
-
}();
|
|
8721
|
+
})();
|
|
8758
8722
|
dt = Te;
|
|
8759
8723
|
var gt = /^\s*<\/[a-z]/i;
|
|
8760
|
-
var St = function() {
|
|
8724
|
+
var St = (function() {
|
|
8761
8725
|
function e() {
|
|
8762
8726
|
var e2 = this;
|
|
8763
8727
|
this._emitSheetCSS = function() {
|
|
8764
8728
|
var t = e2.instance.toString();
|
|
8765
|
-
if (!t)
|
|
8766
|
-
return "";
|
|
8729
|
+
if (!t) return "";
|
|
8767
8730
|
var n = we(), r2 = ce([n && 'nonce="'.concat(n, '"'), "".concat(a, '="true"'), "".concat(u, '="').concat(l, '"')].filter(Boolean), " ");
|
|
8768
8731
|
return "<style ".concat(r2, ">").concat(t, "</style>");
|
|
8769
8732
|
}, this.getStyleTags = function() {
|
|
8770
|
-
if (e2.sealed)
|
|
8771
|
-
throw g(2);
|
|
8733
|
+
if (e2.sealed) throw g(2);
|
|
8772
8734
|
return e2._emitSheetCSS();
|
|
8773
8735
|
}, this.getStyleElement = function() {
|
|
8774
8736
|
var n;
|
|
8775
|
-
if (e2.sealed)
|
|
8776
|
-
throw g(2);
|
|
8737
|
+
if (e2.sealed) throw g(2);
|
|
8777
8738
|
var o2 = e2.instance.toString();
|
|
8778
|
-
if (!o2)
|
|
8779
|
-
return [];
|
|
8739
|
+
if (!o2) return [];
|
|
8780
8740
|
var s = ((n = {})[a] = "", n[u] = l, n.dangerouslySetInnerHTML = { __html: o2 }, n), i = we();
|
|
8781
8741
|
return i && (s.nonce = i), [import_react.default.createElement("style", __assign({}, s, { key: "sc-0-0" }))];
|
|
8782
8742
|
}, this.seal = function() {
|
|
@@ -8784,20 +8744,17 @@ var St = function() {
|
|
|
8784
8744
|
}, this.instance = new Ie({ isServer: true }), this.sealed = false;
|
|
8785
8745
|
}
|
|
8786
8746
|
return e.prototype.collectStyles = function(e2) {
|
|
8787
|
-
if (this.sealed)
|
|
8788
|
-
throw g(2);
|
|
8747
|
+
if (this.sealed) throw g(2);
|
|
8789
8748
|
return import_react.default.createElement(Ke, { sheet: this.instance }, e2);
|
|
8790
8749
|
}, e.prototype.interleaveWithNodeStream = function(e2) {
|
|
8791
|
-
if (this.sealed)
|
|
8792
|
-
throw g(2);
|
|
8750
|
+
if (this.sealed) throw g(2);
|
|
8793
8751
|
this.seal();
|
|
8794
8752
|
var t = require("stream").Transform, n = this.instance, r2 = this._emitSheetCSS, o2 = new t({ transform: function(e3, t2, o3) {
|
|
8795
8753
|
var s2 = e3.toString(), i = r2();
|
|
8796
8754
|
if (n.clearTag(), gt.test(s2)) {
|
|
8797
8755
|
var a2 = s2.indexOf(">") + 1, c2 = s2.slice(0, a2), u2 = s2.slice(a2);
|
|
8798
8756
|
this.push(c2 + i + u2);
|
|
8799
|
-
} else
|
|
8800
|
-
this.push(i + s2);
|
|
8757
|
+
} else this.push(i + s2);
|
|
8801
8758
|
o3();
|
|
8802
8759
|
} });
|
|
8803
8760
|
if ("on" in e2 && "function" == typeof e2.on && "pipe" in e2) {
|
|
@@ -8806,11 +8763,10 @@ var St = function() {
|
|
|
8806
8763
|
o2.emit("error", e3);
|
|
8807
8764
|
}), s.pipe(o2);
|
|
8808
8765
|
}
|
|
8809
|
-
if ("pipe" in e2 && "function" == typeof e2.pipe)
|
|
8810
|
-
return e2.pipe(o2);
|
|
8766
|
+
if ("pipe" in e2 && "function" == typeof e2.pipe) return e2.pipe(o2);
|
|
8811
8767
|
throw new Error("Unsupported stream type");
|
|
8812
8768
|
}, e;
|
|
8813
|
-
}();
|
|
8769
|
+
})();
|
|
8814
8770
|
"production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");
|
|
8815
8771
|
var bt = "__sc-".concat(a, "__");
|
|
8816
8772
|
"production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[bt] || (window[bt] = 0), 1 === window[bt] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."), window[bt] += 1);
|
|
@@ -9113,8 +9069,7 @@ var useApiRequest = (props, method, mutationKey) => {
|
|
|
9113
9069
|
}
|
|
9114
9070
|
}
|
|
9115
9071
|
queryClient2.setQueryData(queryKey, (oldData) => {
|
|
9116
|
-
if (!oldData)
|
|
9117
|
-
return [savedView];
|
|
9072
|
+
if (!oldData) return [savedView];
|
|
9118
9073
|
return oldData.map(
|
|
9119
9074
|
(item) => item.share_token === savedView.share_token ? savedView : item
|
|
9120
9075
|
);
|
|
@@ -9233,12 +9188,9 @@ function setSmartGridConfig(api, config) {
|
|
|
9233
9188
|
|
|
9234
9189
|
// src/components/saved-views/SavedViewsUtils.ts
|
|
9235
9190
|
var customAndConfigSync = (viewTableConfig, defaultTableConfig) => {
|
|
9236
|
-
if (!viewTableConfig && !defaultTableConfig)
|
|
9237
|
-
|
|
9238
|
-
if (!
|
|
9239
|
-
return defaultTableConfig;
|
|
9240
|
-
if (!defaultTableConfig?.columnState)
|
|
9241
|
-
return viewTableConfig;
|
|
9191
|
+
if (!viewTableConfig && !defaultTableConfig) return void 0;
|
|
9192
|
+
if (!viewTableConfig?.columnState) return defaultTableConfig;
|
|
9193
|
+
if (!defaultTableConfig?.columnState) return viewTableConfig;
|
|
9242
9194
|
const viewColumns = viewTableConfig.columnState;
|
|
9243
9195
|
const defaultViewColumns = defaultTableConfig.columnState;
|
|
9244
9196
|
if (!Array.isArray(viewColumns) || !Array.isArray(defaultViewColumns))
|
|
@@ -9292,8 +9244,7 @@ var updateTableConfig = (view, tableApi, provider) => {
|
|
|
9292
9244
|
|
|
9293
9245
|
// src/components/panels/PanelContentUtils.ts
|
|
9294
9246
|
var getOrderedVisibleColumns = (columns, idKey) => {
|
|
9295
|
-
if (!columns)
|
|
9296
|
-
return [];
|
|
9247
|
+
if (!columns) return [];
|
|
9297
9248
|
const isConfigSchema = idKey === "field";
|
|
9298
9249
|
const isHidden = (col) => {
|
|
9299
9250
|
if (isConfigSchema) {
|
|
@@ -9352,8 +9303,7 @@ var cleanObject = (table_config, provider) => {
|
|
|
9352
9303
|
};
|
|
9353
9304
|
} else {
|
|
9354
9305
|
const dataTableConfig = table_config;
|
|
9355
|
-
if (!dataTableConfig?.serverFilters)
|
|
9356
|
-
return table_config;
|
|
9306
|
+
if (!dataTableConfig?.serverFilters) return table_config;
|
|
9357
9307
|
const orderedColumns = getOrderedVisibleColumns(
|
|
9358
9308
|
dataTableConfig.columnState,
|
|
9359
9309
|
"field"
|
|
@@ -9370,8 +9320,7 @@ var cleanObject = (table_config, provider) => {
|
|
|
9370
9320
|
}
|
|
9371
9321
|
};
|
|
9372
9322
|
var normalizeForComparison = (config) => {
|
|
9373
|
-
if (!config?.columnState)
|
|
9374
|
-
return config;
|
|
9323
|
+
if (!config?.columnState) return config;
|
|
9375
9324
|
return {
|
|
9376
9325
|
...config,
|
|
9377
9326
|
columnState: config.columnState.map((col) => {
|
|
@@ -9383,8 +9332,7 @@ var normalizeForComparison = (config) => {
|
|
|
9383
9332
|
};
|
|
9384
9333
|
};
|
|
9385
9334
|
var isEqual = (viewTableConfig, tableConfig, defaultViewConfig, provider) => {
|
|
9386
|
-
if (!viewTableConfig || !tableConfig)
|
|
9387
|
-
return false;
|
|
9335
|
+
if (!viewTableConfig || !tableConfig) return false;
|
|
9388
9336
|
const syncedViewTableConfig = customAndConfigSync(
|
|
9389
9337
|
viewTableConfig,
|
|
9390
9338
|
defaultViewConfig
|
|
@@ -9469,7 +9417,7 @@ var useScrollToRef = (dependency) => {
|
|
|
9469
9417
|
const ref = (0, import_react8.useRef)(null);
|
|
9470
9418
|
(0, import_react8.useEffect)(() => {
|
|
9471
9419
|
if (ref.current) {
|
|
9472
|
-
ref.current.scrollIntoView({ behavior: "smooth" });
|
|
9420
|
+
ref.current.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
9473
9421
|
}
|
|
9474
9422
|
}, [dependency]);
|
|
9475
9423
|
return ref;
|
|
@@ -9696,16 +9644,14 @@ var getViewLevelOptions = (permissions, i18n, isProjectLevelTool = true) => {
|
|
|
9696
9644
|
if (isProjectLevelTool && permissions?.can_create_project_saved_views) {
|
|
9697
9645
|
options.push("project");
|
|
9698
9646
|
}
|
|
9699
|
-
if (permissions?.can_create_company_saved_views)
|
|
9700
|
-
options.push("company");
|
|
9647
|
+
if (permissions?.can_create_company_saved_views) options.push("company");
|
|
9701
9648
|
return options.map((option) => ({
|
|
9702
9649
|
label: i18n.t(`savedViews.modal.fields.viewLevels.${option}`),
|
|
9703
9650
|
id: option
|
|
9704
9651
|
}));
|
|
9705
9652
|
};
|
|
9706
9653
|
function extractMessage(error, I18n) {
|
|
9707
|
-
if (!error)
|
|
9708
|
-
return void 0;
|
|
9654
|
+
if (!error) return void 0;
|
|
9709
9655
|
const { message } = error;
|
|
9710
9656
|
if (message === null || message === void 0) {
|
|
9711
9657
|
return { form: I18n.t("savedViews.modal.errors.unknown") };
|
|
@@ -10110,11 +10056,9 @@ var ViewStorage = {
|
|
|
10110
10056
|
load(key, defaultView) {
|
|
10111
10057
|
try {
|
|
10112
10058
|
const stored = localStorage.getItem(key);
|
|
10113
|
-
if (!stored)
|
|
10114
|
-
return defaultView;
|
|
10059
|
+
if (!stored) return defaultView;
|
|
10115
10060
|
const parsed = JSON.parse(stored);
|
|
10116
|
-
if (!parsed)
|
|
10117
|
-
return defaultView;
|
|
10061
|
+
if (!parsed) return defaultView;
|
|
10118
10062
|
const isTableConfigOnly = !parsed.id && !parsed.share_token;
|
|
10119
10063
|
return isTableConfigOnly ? { ...defaultView, table_config: parsed } : parsed;
|
|
10120
10064
|
} catch {
|
|
@@ -10131,12 +10075,9 @@ var isSmartGridConfig = (config) => {
|
|
|
10131
10075
|
return config != null && "rowGroupState" in config;
|
|
10132
10076
|
};
|
|
10133
10077
|
var areRowGroupStatesEqual = (a2, b2) => {
|
|
10134
|
-
if (!a2 && !b2)
|
|
10135
|
-
|
|
10136
|
-
if (
|
|
10137
|
-
return false;
|
|
10138
|
-
if (a2.length !== b2.length)
|
|
10139
|
-
return false;
|
|
10078
|
+
if (!a2 && !b2) return true;
|
|
10079
|
+
if (!a2 || !b2) return false;
|
|
10080
|
+
if (a2.length !== b2.length) return false;
|
|
10140
10081
|
return a2.every((val, idx) => val === b2[idx]);
|
|
10141
10082
|
};
|
|
10142
10083
|
var getUpdatedSearchParams = (currentParams, view) => {
|
|
@@ -10273,15 +10214,12 @@ var useViewSelection = (config, savedViews, presetViews, openSharedViewModal, ta
|
|
|
10273
10214
|
const defaultViewRef = (0, import_react12.useRef)(config.defaultView);
|
|
10274
10215
|
defaultViewRef.current = config.defaultView;
|
|
10275
10216
|
(0, import_react12.useEffect)(() => {
|
|
10276
|
-
if (!isSmartGridConfig(tableConfig) || !presetViews?.length)
|
|
10277
|
-
return;
|
|
10217
|
+
if (!isSmartGridConfig(tableConfig) || !presetViews?.length) return;
|
|
10278
10218
|
const currentView = selectedViewRef.current;
|
|
10279
10219
|
const isPresetSelected = !currentView || currentView.view_level === "default";
|
|
10280
|
-
if (!isPresetSelected)
|
|
10281
|
-
return;
|
|
10220
|
+
if (!isPresetSelected) return;
|
|
10282
10221
|
const currentRowGroupState = tableConfig.rowGroupState;
|
|
10283
|
-
if (!currentRowGroupState)
|
|
10284
|
-
return;
|
|
10222
|
+
if (!currentRowGroupState) return;
|
|
10285
10223
|
if (areRowGroupStatesEqual(
|
|
10286
10224
|
previousRowGroupStateRef.current,
|
|
10287
10225
|
currentRowGroupState
|
|
@@ -10540,8 +10478,7 @@ var DEFAULT_COLUMN_STATE = {
|
|
|
10540
10478
|
var getColumnStateFromDefs = (columnDefs) => {
|
|
10541
10479
|
return columnDefs.map((colDef) => {
|
|
10542
10480
|
const field = colDef.field ?? colDef.colId;
|
|
10543
|
-
if (!field)
|
|
10544
|
-
return null;
|
|
10481
|
+
if (!field) return null;
|
|
10545
10482
|
return {
|
|
10546
10483
|
colId: field,
|
|
10547
10484
|
hide: colDef.hide ?? false,
|
|
@@ -10603,8 +10540,7 @@ var useSmartGridConfig = (gridApi) => {
|
|
|
10603
10540
|
() => getSmartGridConfig(gridApi)
|
|
10604
10541
|
);
|
|
10605
10542
|
(0, import_react15.useEffect)(() => {
|
|
10606
|
-
if (!gridApi)
|
|
10607
|
-
return;
|
|
10543
|
+
if (!gridApi) return;
|
|
10608
10544
|
const updateConfig = () => {
|
|
10609
10545
|
setConfig(getSmartGridConfig(gridApi));
|
|
10610
10546
|
};
|
|
@@ -10628,8 +10564,7 @@ var SmartGridSavedViews = (props) => {
|
|
|
10628
10564
|
const defaultView = presetViews.find((view) => view.id === "default") ?? presetViews[0];
|
|
10629
10565
|
const onSelect = (0, import_react16.useCallback)(
|
|
10630
10566
|
({ item }) => {
|
|
10631
|
-
if (!gridApi)
|
|
10632
|
-
return item;
|
|
10567
|
+
if (!gridApi) return item;
|
|
10633
10568
|
const isPresetView = item.view_level === "default";
|
|
10634
10569
|
if (isPresetView) {
|
|
10635
10570
|
updateTableConfig(item, gridApi, "smart-grid");
|