@hexure/ui 1.9.3 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1553 -1834
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1554 -1835
- package/dist/esm/index.js.map +1 -1
- package/package.json +5 -11
package/dist/cjs/index.js
CHANGED
|
@@ -22,6 +22,16 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
22
22
|
***************************************************************************** */
|
|
23
23
|
/* global Reflect, Promise */
|
|
24
24
|
|
|
25
|
+
var __assign = function () {
|
|
26
|
+
__assign = Object.assign || function __assign(t) {
|
|
27
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28
|
+
s = arguments[i];
|
|
29
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
30
|
+
}
|
|
31
|
+
return t;
|
|
32
|
+
};
|
|
33
|
+
return __assign.apply(this, arguments);
|
|
34
|
+
};
|
|
25
35
|
function __rest(s, e) {
|
|
26
36
|
var t = {};
|
|
27
37
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
@@ -30,6 +40,32 @@ function __rest(s, e) {
|
|
|
30
40
|
}
|
|
31
41
|
return t;
|
|
32
42
|
}
|
|
43
|
+
function __spreadArray(to, from, pack) {
|
|
44
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
45
|
+
if (ar || !(i in from)) {
|
|
46
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
47
|
+
ar[i] = from[i];
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function memoize(fn) {
|
|
54
|
+
var cache = Object.create(null);
|
|
55
|
+
return function (arg) {
|
|
56
|
+
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
57
|
+
return cache[arg];
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
|
62
|
+
|
|
63
|
+
var isPropValid = /* #__PURE__ */memoize(function (prop) {
|
|
64
|
+
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
|
65
|
+
/* o */ && prop.charCodeAt(1) === 110
|
|
66
|
+
/* n */ && prop.charCodeAt(2) < 91;
|
|
67
|
+
}
|
|
68
|
+
/* Z+1 */);
|
|
33
69
|
|
|
34
70
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
35
71
|
|
|
@@ -37,831 +73,869 @@ function getDefaultExportFromCjs (x) {
|
|
|
37
73
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
38
74
|
}
|
|
39
75
|
|
|
40
|
-
var
|
|
76
|
+
var MS = '-ms-';
|
|
77
|
+
var MOZ = '-moz-';
|
|
78
|
+
var WEBKIT = '-webkit-';
|
|
79
|
+
var COMMENT = 'comm';
|
|
80
|
+
var RULESET = 'rule';
|
|
81
|
+
var DECLARATION = 'decl';
|
|
82
|
+
var IMPORT = '@import';
|
|
83
|
+
var KEYFRAMES = '@keyframes';
|
|
84
|
+
var LAYER = '@layer';
|
|
41
85
|
|
|
42
|
-
|
|
86
|
+
/**
|
|
87
|
+
* @param {number}
|
|
88
|
+
* @return {number}
|
|
89
|
+
*/
|
|
90
|
+
var abs = Math.abs;
|
|
43
91
|
|
|
44
92
|
/**
|
|
45
|
-
* @
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
49
|
-
*
|
|
50
|
-
* This source code is licensed under the MIT license found in the
|
|
51
|
-
* LICENSE file in the root directory of this source tree.
|
|
93
|
+
* @param {number}
|
|
94
|
+
* @return {string}
|
|
52
95
|
*/
|
|
53
|
-
var
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
96
|
+
var from = String.fromCharCode;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @param {object}
|
|
100
|
+
* @return {object}
|
|
101
|
+
*/
|
|
102
|
+
var assign = Object.assign;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @param {string} value
|
|
106
|
+
* @param {number} length
|
|
107
|
+
* @return {number}
|
|
108
|
+
*/
|
|
109
|
+
function hash(value, length) {
|
|
110
|
+
return charat(value, 0) ^ 45 ? (((length << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @param {string} value
|
|
115
|
+
* @return {string}
|
|
116
|
+
*/
|
|
117
|
+
function trim(value) {
|
|
118
|
+
return value.trim();
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @param {string} value
|
|
123
|
+
* @param {RegExp} pattern
|
|
124
|
+
* @return {string?}
|
|
125
|
+
*/
|
|
126
|
+
function match(value, pattern) {
|
|
127
|
+
return (value = pattern.exec(value)) ? value[0] : value;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @param {string} value
|
|
132
|
+
* @param {(string|RegExp)} pattern
|
|
133
|
+
* @param {string} replacement
|
|
134
|
+
* @return {string}
|
|
135
|
+
*/
|
|
136
|
+
function replace(value, pattern, replacement) {
|
|
137
|
+
return value.replace(pattern, replacement);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @param {string} value
|
|
142
|
+
* @param {string} search
|
|
143
|
+
* @param {number} position
|
|
144
|
+
* @return {number}
|
|
145
|
+
*/
|
|
146
|
+
function indexof(value, search, position) {
|
|
147
|
+
return value.indexOf(search, position);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @param {string} value
|
|
152
|
+
* @param {number} index
|
|
153
|
+
* @return {number}
|
|
154
|
+
*/
|
|
155
|
+
function charat(value, index) {
|
|
156
|
+
return value.charCodeAt(index) | 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @param {string} value
|
|
161
|
+
* @param {number} begin
|
|
162
|
+
* @param {number} end
|
|
163
|
+
* @return {string}
|
|
164
|
+
*/
|
|
165
|
+
function substr(value, begin, end) {
|
|
166
|
+
return value.slice(begin, end);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @param {string} value
|
|
171
|
+
* @return {number}
|
|
172
|
+
*/
|
|
173
|
+
function strlen(value) {
|
|
174
|
+
return value.length;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* @param {any[]} value
|
|
179
|
+
* @return {number}
|
|
180
|
+
*/
|
|
181
|
+
function sizeof(value) {
|
|
182
|
+
return value.length;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @param {any} value
|
|
187
|
+
* @param {any[]} array
|
|
188
|
+
* @return {any}
|
|
189
|
+
*/
|
|
190
|
+
function append(value, array) {
|
|
191
|
+
return array.push(value), value;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @param {string[]} array
|
|
196
|
+
* @param {function} callback
|
|
197
|
+
* @return {string}
|
|
198
|
+
*/
|
|
199
|
+
function combine(array, callback) {
|
|
200
|
+
return array.map(callback).join('');
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @param {string[]} array
|
|
205
|
+
* @param {RegExp} pattern
|
|
206
|
+
* @return {string[]}
|
|
207
|
+
*/
|
|
208
|
+
function filter(array, pattern) {
|
|
209
|
+
return array.filter(function (value) {
|
|
210
|
+
return !match(value, pattern);
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
var line = 1;
|
|
215
|
+
var column = 1;
|
|
216
|
+
var length = 0;
|
|
217
|
+
var position = 0;
|
|
218
|
+
var character = 0;
|
|
219
|
+
var characters = '';
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @param {string} value
|
|
223
|
+
* @param {object | null} root
|
|
224
|
+
* @param {object | null} parent
|
|
225
|
+
* @param {string} type
|
|
226
|
+
* @param {string[] | string} props
|
|
227
|
+
* @param {object[] | string} children
|
|
228
|
+
* @param {object[]} siblings
|
|
229
|
+
* @param {number} length
|
|
230
|
+
*/
|
|
231
|
+
function node(value, root, parent, type, props, children, length, siblings) {
|
|
232
|
+
return {
|
|
233
|
+
value: value,
|
|
234
|
+
root: root,
|
|
235
|
+
parent: parent,
|
|
236
|
+
type: type,
|
|
237
|
+
props: props,
|
|
238
|
+
children: children,
|
|
239
|
+
line: line,
|
|
240
|
+
column: column,
|
|
241
|
+
length: length,
|
|
242
|
+
return: '',
|
|
243
|
+
siblings: siblings
|
|
159
244
|
};
|
|
160
|
-
reactIs_production_min$1.typeOf = v;
|
|
161
|
-
return reactIs_production_min$1;
|
|
162
245
|
}
|
|
163
246
|
|
|
164
|
-
|
|
247
|
+
/**
|
|
248
|
+
* @param {object} root
|
|
249
|
+
* @param {object} props
|
|
250
|
+
* @return {object}
|
|
251
|
+
*/
|
|
252
|
+
function copy(root, props) {
|
|
253
|
+
return assign(node('', null, null, '', null, null, 0, root.siblings), root, {
|
|
254
|
+
length: -root.length
|
|
255
|
+
}, props);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* @param {object} root
|
|
260
|
+
*/
|
|
261
|
+
function lift(root) {
|
|
262
|
+
while (root.root) root = copy(root.root, {
|
|
263
|
+
children: [root]
|
|
264
|
+
});
|
|
265
|
+
append(root, root.siblings);
|
|
266
|
+
}
|
|
165
267
|
|
|
166
268
|
/**
|
|
167
|
-
* @
|
|
168
|
-
* react-is.development.js
|
|
169
|
-
*
|
|
170
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
171
|
-
*
|
|
172
|
-
* This source code is licensed under the MIT license found in the
|
|
173
|
-
* LICENSE file in the root directory of this source tree.
|
|
269
|
+
* @return {number}
|
|
174
270
|
*/
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
hasRequiredReactIs_development$1 = 1;
|
|
179
|
-
if (process.env.NODE_ENV !== "production") {
|
|
180
|
-
(function () {
|
|
271
|
+
function char() {
|
|
272
|
+
return character;
|
|
273
|
+
}
|
|
181
274
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
|
|
191
|
-
var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
|
|
192
|
-
var REACT_CONTEXT_TYPE = Symbol.for('react.context');
|
|
193
|
-
var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
|
|
194
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
|
|
195
|
-
var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
|
|
196
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
|
|
197
|
-
var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
|
198
|
-
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
|
199
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
|
|
275
|
+
/**
|
|
276
|
+
* @return {number}
|
|
277
|
+
*/
|
|
278
|
+
function prev() {
|
|
279
|
+
character = position > 0 ? charat(characters, --position) : 0;
|
|
280
|
+
if (column--, character === 10) column = 1, line--;
|
|
281
|
+
return character;
|
|
282
|
+
}
|
|
200
283
|
|
|
201
|
-
|
|
284
|
+
/**
|
|
285
|
+
* @return {number}
|
|
286
|
+
*/
|
|
287
|
+
function next() {
|
|
288
|
+
character = position < length ? charat(characters, position++) : 0;
|
|
289
|
+
if (column++, character === 10) column = 1, line++;
|
|
290
|
+
return character;
|
|
291
|
+
}
|
|
202
292
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
293
|
+
/**
|
|
294
|
+
* @return {number}
|
|
295
|
+
*/
|
|
296
|
+
function peek() {
|
|
297
|
+
return charat(characters, position);
|
|
298
|
+
}
|
|
206
299
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
300
|
+
/**
|
|
301
|
+
* @return {number}
|
|
302
|
+
*/
|
|
303
|
+
function caret() {
|
|
304
|
+
return position;
|
|
305
|
+
}
|
|
210
306
|
|
|
211
|
-
|
|
307
|
+
/**
|
|
308
|
+
* @param {number} begin
|
|
309
|
+
* @param {number} end
|
|
310
|
+
* @return {string}
|
|
311
|
+
*/
|
|
312
|
+
function slice(begin, end) {
|
|
313
|
+
return substr(characters, begin, end);
|
|
314
|
+
}
|
|
212
315
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
316
|
+
/**
|
|
317
|
+
* @param {number} type
|
|
318
|
+
* @return {number}
|
|
319
|
+
*/
|
|
320
|
+
function token(type) {
|
|
321
|
+
switch (type) {
|
|
322
|
+
// \0 \t \n \r \s whitespace token
|
|
323
|
+
case 0:
|
|
324
|
+
case 9:
|
|
325
|
+
case 10:
|
|
326
|
+
case 13:
|
|
327
|
+
case 32:
|
|
328
|
+
return 5;
|
|
329
|
+
// ! + , / > @ ~ isolate token
|
|
330
|
+
case 33:
|
|
331
|
+
case 43:
|
|
332
|
+
case 44:
|
|
333
|
+
case 47:
|
|
334
|
+
case 62:
|
|
335
|
+
case 64:
|
|
336
|
+
case 126:
|
|
337
|
+
// ; { } breakpoint token
|
|
338
|
+
case 59:
|
|
339
|
+
case 123:
|
|
340
|
+
case 125:
|
|
341
|
+
return 4;
|
|
342
|
+
// : accompanied token
|
|
343
|
+
case 58:
|
|
344
|
+
return 3;
|
|
345
|
+
// " ' ( [ opening delimit token
|
|
346
|
+
case 34:
|
|
347
|
+
case 39:
|
|
348
|
+
case 40:
|
|
349
|
+
case 91:
|
|
350
|
+
return 2;
|
|
351
|
+
// ) ] closing delimit token
|
|
352
|
+
case 41:
|
|
353
|
+
case 93:
|
|
354
|
+
return 1;
|
|
355
|
+
}
|
|
356
|
+
return 0;
|
|
357
|
+
}
|
|
221
358
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
// we don't know which Flight build this will end up being used
|
|
230
|
-
// with.
|
|
231
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
|
232
|
-
return true;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
return false;
|
|
236
|
-
}
|
|
237
|
-
function typeOf(object) {
|
|
238
|
-
if (typeof object === 'object' && object !== null) {
|
|
239
|
-
var $$typeof = object.$$typeof;
|
|
240
|
-
switch ($$typeof) {
|
|
241
|
-
case REACT_ELEMENT_TYPE:
|
|
242
|
-
var type = object.type;
|
|
243
|
-
switch (type) {
|
|
244
|
-
case REACT_FRAGMENT_TYPE:
|
|
245
|
-
case REACT_PROFILER_TYPE:
|
|
246
|
-
case REACT_STRICT_MODE_TYPE:
|
|
247
|
-
case REACT_SUSPENSE_TYPE:
|
|
248
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
249
|
-
return type;
|
|
250
|
-
default:
|
|
251
|
-
var $$typeofType = type && type.$$typeof;
|
|
252
|
-
switch ($$typeofType) {
|
|
253
|
-
case REACT_SERVER_CONTEXT_TYPE:
|
|
254
|
-
case REACT_CONTEXT_TYPE:
|
|
255
|
-
case REACT_FORWARD_REF_TYPE:
|
|
256
|
-
case REACT_LAZY_TYPE:
|
|
257
|
-
case REACT_MEMO_TYPE:
|
|
258
|
-
case REACT_PROVIDER_TYPE:
|
|
259
|
-
return $$typeofType;
|
|
260
|
-
default:
|
|
261
|
-
return $$typeof;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
case REACT_PORTAL_TYPE:
|
|
265
|
-
return $$typeof;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
return undefined;
|
|
269
|
-
}
|
|
270
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
271
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
272
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
273
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
274
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
275
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
276
|
-
var Memo = REACT_MEMO_TYPE;
|
|
277
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
278
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
279
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
280
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
281
|
-
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
282
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
283
|
-
var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
|
|
359
|
+
/**
|
|
360
|
+
* @param {string} value
|
|
361
|
+
* @return {any[]}
|
|
362
|
+
*/
|
|
363
|
+
function alloc(value) {
|
|
364
|
+
return line = column = 1, length = strlen(characters = value), position = 0, [];
|
|
365
|
+
}
|
|
284
366
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
367
|
+
/**
|
|
368
|
+
* @param {any} value
|
|
369
|
+
* @return {any}
|
|
370
|
+
*/
|
|
371
|
+
function dealloc(value) {
|
|
372
|
+
return characters = '', value;
|
|
373
|
+
}
|
|
289
374
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
298
|
-
hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
375
|
+
/**
|
|
376
|
+
* @param {number} type
|
|
377
|
+
* @return {string}
|
|
378
|
+
*/
|
|
379
|
+
function delimit(type) {
|
|
380
|
+
return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
|
|
381
|
+
}
|
|
299
382
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
reactIs_development$1.Element = Element;
|
|
344
|
-
reactIs_development$1.ForwardRef = ForwardRef;
|
|
345
|
-
reactIs_development$1.Fragment = Fragment;
|
|
346
|
-
reactIs_development$1.Lazy = Lazy;
|
|
347
|
-
reactIs_development$1.Memo = Memo;
|
|
348
|
-
reactIs_development$1.Portal = Portal;
|
|
349
|
-
reactIs_development$1.Profiler = Profiler;
|
|
350
|
-
reactIs_development$1.StrictMode = StrictMode;
|
|
351
|
-
reactIs_development$1.Suspense = Suspense;
|
|
352
|
-
reactIs_development$1.SuspenseList = SuspenseList;
|
|
353
|
-
reactIs_development$1.isAsyncMode = isAsyncMode;
|
|
354
|
-
reactIs_development$1.isConcurrentMode = isConcurrentMode;
|
|
355
|
-
reactIs_development$1.isContextConsumer = isContextConsumer;
|
|
356
|
-
reactIs_development$1.isContextProvider = isContextProvider;
|
|
357
|
-
reactIs_development$1.isElement = isElement;
|
|
358
|
-
reactIs_development$1.isForwardRef = isForwardRef;
|
|
359
|
-
reactIs_development$1.isFragment = isFragment;
|
|
360
|
-
reactIs_development$1.isLazy = isLazy;
|
|
361
|
-
reactIs_development$1.isMemo = isMemo;
|
|
362
|
-
reactIs_development$1.isPortal = isPortal;
|
|
363
|
-
reactIs_development$1.isProfiler = isProfiler;
|
|
364
|
-
reactIs_development$1.isStrictMode = isStrictMode;
|
|
365
|
-
reactIs_development$1.isSuspense = isSuspense;
|
|
366
|
-
reactIs_development$1.isSuspenseList = isSuspenseList;
|
|
367
|
-
reactIs_development$1.isValidElementType = isValidElementType;
|
|
368
|
-
reactIs_development$1.typeOf = typeOf;
|
|
369
|
-
})();
|
|
383
|
+
/**
|
|
384
|
+
* @param {number} type
|
|
385
|
+
* @return {string}
|
|
386
|
+
*/
|
|
387
|
+
function whitespace(type) {
|
|
388
|
+
while (character = peek()) if (character < 33) next();else break;
|
|
389
|
+
return token(type) > 2 || token(character) > 3 ? '' : ' ';
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* @param {number} index
|
|
394
|
+
* @param {number} count
|
|
395
|
+
* @return {string}
|
|
396
|
+
*/
|
|
397
|
+
function escaping(index, count) {
|
|
398
|
+
while (--count && next())
|
|
399
|
+
// not 0-9 A-F a-f
|
|
400
|
+
if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97) break;
|
|
401
|
+
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* @param {number} type
|
|
406
|
+
* @return {number}
|
|
407
|
+
*/
|
|
408
|
+
function delimiter(type) {
|
|
409
|
+
while (next()) switch (character) {
|
|
410
|
+
// ] ) " '
|
|
411
|
+
case type:
|
|
412
|
+
return position;
|
|
413
|
+
// " '
|
|
414
|
+
case 34:
|
|
415
|
+
case 39:
|
|
416
|
+
if (type !== 34 && type !== 39) delimiter(character);
|
|
417
|
+
break;
|
|
418
|
+
// (
|
|
419
|
+
case 40:
|
|
420
|
+
if (type === 41) delimiter(type);
|
|
421
|
+
break;
|
|
422
|
+
// \
|
|
423
|
+
case 92:
|
|
424
|
+
next();
|
|
425
|
+
break;
|
|
370
426
|
}
|
|
371
|
-
return
|
|
427
|
+
return position;
|
|
372
428
|
}
|
|
373
429
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
430
|
+
/**
|
|
431
|
+
* @param {number} type
|
|
432
|
+
* @param {number} index
|
|
433
|
+
* @return {number}
|
|
434
|
+
*/
|
|
435
|
+
function commenter(type, index) {
|
|
436
|
+
while (next())
|
|
437
|
+
// //
|
|
438
|
+
if (type + character === 47 + 10) break;
|
|
439
|
+
// /*
|
|
440
|
+
else if (type + character === 42 + 42 && peek() === 47) break;
|
|
441
|
+
return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next());
|
|
378
442
|
}
|
|
379
|
-
var reactIsExports$1 = reactIs$2.exports;
|
|
380
443
|
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
}
|
|
433
|
-
l = u;
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
break;
|
|
437
|
-
case 91:
|
|
438
|
-
g++;
|
|
439
|
-
case 40:
|
|
440
|
-
g++;
|
|
441
|
-
case 34:
|
|
442
|
-
case 39:
|
|
443
|
-
for (; l++ < J && e.charCodeAt(l) !== g;) {}
|
|
444
|
-
}
|
|
445
|
-
if (0 === k) break;
|
|
446
|
-
l++;
|
|
447
|
-
}
|
|
448
|
-
k = e.substring(t, l);
|
|
449
|
-
0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
|
|
450
|
-
switch (q) {
|
|
451
|
-
case 64:
|
|
452
|
-
0 < r && (f = f.replace(N, ''));
|
|
453
|
-
g = f.charCodeAt(1);
|
|
454
|
-
switch (g) {
|
|
455
|
-
case 100:
|
|
456
|
-
case 109:
|
|
457
|
-
case 115:
|
|
458
|
-
case 45:
|
|
459
|
-
r = c;
|
|
460
|
-
break;
|
|
461
|
-
default:
|
|
462
|
-
r = O;
|
|
463
|
-
}
|
|
464
|
-
k = M(c, r, k, g, a + 1);
|
|
465
|
-
t = k.length;
|
|
466
|
-
0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));
|
|
467
|
-
if (0 < t) switch (g) {
|
|
468
|
-
case 115:
|
|
469
|
-
f = f.replace(da, ea);
|
|
470
|
-
case 100:
|
|
471
|
-
case 109:
|
|
472
|
-
case 45:
|
|
473
|
-
k = f + '{' + k + '}';
|
|
474
|
-
break;
|
|
475
|
-
case 107:
|
|
476
|
-
f = f.replace(fa, '$1 $2');
|
|
477
|
-
k = f + '{' + k + '}';
|
|
478
|
-
k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
|
|
479
|
-
break;
|
|
480
|
-
default:
|
|
481
|
-
k = f + k, 112 === h && (k = (p += k, ''));
|
|
482
|
-
} else k = '';
|
|
483
|
-
break;
|
|
484
|
-
default:
|
|
485
|
-
k = M(c, X(c, f, I), k, h, a + 1);
|
|
486
|
-
}
|
|
487
|
-
F += k;
|
|
488
|
-
k = I = r = u = q = 0;
|
|
489
|
-
f = '';
|
|
490
|
-
g = e.charCodeAt(++l);
|
|
491
|
-
break;
|
|
492
|
-
case 125:
|
|
493
|
-
case 59:
|
|
494
|
-
f = (0 < r ? f.replace(N, '') : f).trim();
|
|
495
|
-
if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) {
|
|
496
|
-
case 0:
|
|
497
|
-
break;
|
|
498
|
-
case 64:
|
|
499
|
-
if (105 === g || 99 === g) {
|
|
500
|
-
G += f + e.charAt(l);
|
|
501
|
-
break;
|
|
502
|
-
}
|
|
503
|
-
default:
|
|
504
|
-
58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
|
|
505
|
-
}
|
|
506
|
-
I = r = u = q = 0;
|
|
507
|
-
f = '';
|
|
508
|
-
g = e.charCodeAt(++l);
|
|
509
|
-
}
|
|
444
|
+
/**
|
|
445
|
+
* @param {number} index
|
|
446
|
+
* @return {string}
|
|
447
|
+
*/
|
|
448
|
+
function identifier(index) {
|
|
449
|
+
while (!token(peek())) next();
|
|
450
|
+
return slice(index, position);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* @param {string} value
|
|
455
|
+
* @return {object[]}
|
|
456
|
+
*/
|
|
457
|
+
function compile(value) {
|
|
458
|
+
return dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value));
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* @param {string} value
|
|
463
|
+
* @param {object} root
|
|
464
|
+
* @param {object?} parent
|
|
465
|
+
* @param {string[]} rule
|
|
466
|
+
* @param {string[]} rules
|
|
467
|
+
* @param {string[]} rulesets
|
|
468
|
+
* @param {number[]} pseudo
|
|
469
|
+
* @param {number[]} points
|
|
470
|
+
* @param {string[]} declarations
|
|
471
|
+
* @return {object}
|
|
472
|
+
*/
|
|
473
|
+
function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
474
|
+
var index = 0;
|
|
475
|
+
var offset = 0;
|
|
476
|
+
var length = pseudo;
|
|
477
|
+
var atrule = 0;
|
|
478
|
+
var property = 0;
|
|
479
|
+
var previous = 0;
|
|
480
|
+
var variable = 1;
|
|
481
|
+
var scanning = 1;
|
|
482
|
+
var ampersand = 1;
|
|
483
|
+
var character = 0;
|
|
484
|
+
var type = '';
|
|
485
|
+
var props = rules;
|
|
486
|
+
var children = rulesets;
|
|
487
|
+
var reference = rule;
|
|
488
|
+
var characters = type;
|
|
489
|
+
while (scanning) switch (previous = character, character = next()) {
|
|
490
|
+
// (
|
|
491
|
+
case 40:
|
|
492
|
+
if (previous != 108 && charat(characters, length - 1) == 58) {
|
|
493
|
+
if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f', abs(index ? points[index - 1] : 0)) != -1) ampersand = -1;
|
|
494
|
+
break;
|
|
510
495
|
}
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
496
|
+
// " ' [
|
|
497
|
+
case 34:
|
|
498
|
+
case 39:
|
|
499
|
+
case 91:
|
|
500
|
+
characters += delimit(character);
|
|
501
|
+
break;
|
|
502
|
+
// \t \n \r \s
|
|
503
|
+
case 9:
|
|
504
|
+
case 10:
|
|
505
|
+
case 13:
|
|
506
|
+
case 32:
|
|
507
|
+
characters += whitespace(previous);
|
|
508
|
+
break;
|
|
509
|
+
// \
|
|
510
|
+
case 92:
|
|
511
|
+
characters += escaping(caret() - 1, 7);
|
|
512
|
+
continue;
|
|
513
|
+
// /
|
|
514
|
+
case 47:
|
|
515
|
+
switch (peek()) {
|
|
516
|
+
case 42:
|
|
517
|
+
case 47:
|
|
518
|
+
append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
|
|
518
519
|
break;
|
|
519
|
-
|
|
520
|
+
default:
|
|
521
|
+
characters += '/';
|
|
522
|
+
}
|
|
523
|
+
break;
|
|
524
|
+
// {
|
|
525
|
+
case 123 * variable:
|
|
526
|
+
points[index++] = strlen(characters) * ampersand;
|
|
527
|
+
// } ; \0
|
|
528
|
+
case 125 * variable:
|
|
529
|
+
case 59:
|
|
530
|
+
case 0:
|
|
531
|
+
switch (character) {
|
|
532
|
+
// \0 }
|
|
533
|
+
case 0:
|
|
520
534
|
case 125:
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
535
|
+
scanning = 0;
|
|
536
|
+
// ;
|
|
537
|
+
case 59 + offset:
|
|
538
|
+
if (ampersand == -1) characters = replace(characters, /\f/g, '');
|
|
539
|
+
if (property > 0 && strlen(characters) - length) append(property > 32 ? declaration(characters + ';', rule, parent, length - 1, declarations) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations);
|
|
540
|
+
break;
|
|
541
|
+
// @ ;
|
|
542
|
+
case 59:
|
|
543
|
+
characters += ';';
|
|
544
|
+
// { rule/at-rule
|
|
525
545
|
default:
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
case
|
|
530
|
-
case 32:
|
|
531
|
-
if (0 === n + m + b) switch (x) {
|
|
532
|
-
case 44:
|
|
533
|
-
case 58:
|
|
534
|
-
case 9:
|
|
535
|
-
case 32:
|
|
536
|
-
y = '';
|
|
537
|
-
break;
|
|
538
|
-
default:
|
|
539
|
-
32 !== g && (y = ' ');
|
|
540
|
-
}
|
|
541
|
-
break;
|
|
542
|
-
case 0:
|
|
543
|
-
y = '\\0';
|
|
544
|
-
break;
|
|
545
|
-
case 12:
|
|
546
|
-
y = '\\f';
|
|
547
|
-
break;
|
|
548
|
-
case 11:
|
|
549
|
-
y = '\\v';
|
|
550
|
-
break;
|
|
551
|
-
case 38:
|
|
552
|
-
0 === n + b + m && (r = I = 1, y = '\f' + y);
|
|
553
|
-
break;
|
|
546
|
+
append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets);
|
|
547
|
+
if (character === 123) if (offset === 0) parse(characters, root, reference, reference, props, rulesets, length, points, children);else switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
|
|
548
|
+
// d l m s
|
|
549
|
+
case 100:
|
|
554
550
|
case 108:
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
case 8:
|
|
559
|
-
111 === K && (E = K);
|
|
560
|
-
}
|
|
561
|
-
break;
|
|
562
|
-
case 58:
|
|
563
|
-
0 === n + b + m && (u = l);
|
|
564
|
-
break;
|
|
565
|
-
case 44:
|
|
566
|
-
0 === b + v + n + m && (r = 1, y += '\r');
|
|
567
|
-
break;
|
|
568
|
-
case 34:
|
|
569
|
-
case 39:
|
|
570
|
-
0 === b && (n = n === g ? 0 : 0 === n ? g : n);
|
|
571
|
-
break;
|
|
572
|
-
case 91:
|
|
573
|
-
0 === n + b + v && m++;
|
|
574
|
-
break;
|
|
575
|
-
case 93:
|
|
576
|
-
0 === n + b + v && m--;
|
|
551
|
+
case 109:
|
|
552
|
+
case 115:
|
|
553
|
+
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children);
|
|
577
554
|
break;
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
break;
|
|
581
|
-
case 40:
|
|
582
|
-
if (0 === n + b + m) {
|
|
583
|
-
if (0 === q) switch (2 * x + 3 * K) {
|
|
584
|
-
case 533:
|
|
585
|
-
break;
|
|
586
|
-
default:
|
|
587
|
-
q = 1;
|
|
588
|
-
}
|
|
589
|
-
v++;
|
|
590
|
-
}
|
|
591
|
-
break;
|
|
592
|
-
case 64:
|
|
593
|
-
0 === b + v + n + m + u + k && (k = 1);
|
|
594
|
-
break;
|
|
595
|
-
case 42:
|
|
596
|
-
case 47:
|
|
597
|
-
if (!(0 < n + m + v)) switch (b) {
|
|
598
|
-
case 0:
|
|
599
|
-
switch (2 * g + 3 * e.charCodeAt(l + 1)) {
|
|
600
|
-
case 235:
|
|
601
|
-
b = 47;
|
|
602
|
-
break;
|
|
603
|
-
case 220:
|
|
604
|
-
t = l, b = 42;
|
|
605
|
-
}
|
|
606
|
-
break;
|
|
607
|
-
case 42:
|
|
608
|
-
47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
|
|
609
|
-
}
|
|
555
|
+
default:
|
|
556
|
+
parse(characters, reference, reference, reference, [''], children, 0, points, children);
|
|
610
557
|
}
|
|
611
|
-
0 === b && (f += y);
|
|
612
558
|
}
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
559
|
+
index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
|
|
560
|
+
break;
|
|
561
|
+
// :
|
|
562
|
+
case 58:
|
|
563
|
+
length = 1 + strlen(characters), property = previous;
|
|
564
|
+
default:
|
|
565
|
+
if (variable < 1) if (character == 123) --variable;else if (character == 125 && variable++ == 0 && prev() == 125) continue;
|
|
566
|
+
switch (characters += from(character), character * variable) {
|
|
567
|
+
// &
|
|
568
|
+
case 38:
|
|
569
|
+
ampersand = offset > 0 ? 1 : (characters += '\f', -1);
|
|
570
|
+
break;
|
|
571
|
+
// ,
|
|
572
|
+
case 44:
|
|
573
|
+
points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1;
|
|
574
|
+
break;
|
|
575
|
+
// @
|
|
576
|
+
case 64:
|
|
577
|
+
// -
|
|
578
|
+
if (peek() === 45) characters += delimit(next());
|
|
579
|
+
atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
|
|
580
|
+
break;
|
|
581
|
+
// -
|
|
582
|
+
case 45:
|
|
583
|
+
if (previous === 45 && strlen(characters) == 2) variable = 0;
|
|
632
584
|
}
|
|
633
|
-
}
|
|
634
|
-
return G + p + F;
|
|
635
585
|
}
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
586
|
+
return rulesets;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* @param {string} value
|
|
591
|
+
* @param {object} root
|
|
592
|
+
* @param {object?} parent
|
|
593
|
+
* @param {number} index
|
|
594
|
+
* @param {number} offset
|
|
595
|
+
* @param {string[]} rules
|
|
596
|
+
* @param {number[]} points
|
|
597
|
+
* @param {string} type
|
|
598
|
+
* @param {string[]} props
|
|
599
|
+
* @param {string[]} children
|
|
600
|
+
* @param {number} length
|
|
601
|
+
* @param {object[]} siblings
|
|
602
|
+
* @return {object}
|
|
603
|
+
*/
|
|
604
|
+
function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {
|
|
605
|
+
var post = offset - 1;
|
|
606
|
+
var rule = offset === 0 ? rules : [''];
|
|
607
|
+
var size = sizeof(rule);
|
|
608
|
+
for (var i = 0, j = 0, k = 0; i < index; ++i) for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x) if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x]))) props[k++] = z;
|
|
609
|
+
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length, siblings);
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* @param {number} value
|
|
614
|
+
* @param {object} root
|
|
615
|
+
* @param {object?} parent
|
|
616
|
+
* @param {object[]} siblings
|
|
617
|
+
* @return {object}
|
|
618
|
+
*/
|
|
619
|
+
function comment(value, root, parent, siblings) {
|
|
620
|
+
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings);
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* @param {string} value
|
|
625
|
+
* @param {object} root
|
|
626
|
+
* @param {object?} parent
|
|
627
|
+
* @param {number} length
|
|
628
|
+
* @param {object[]} siblings
|
|
629
|
+
* @return {object}
|
|
630
|
+
*/
|
|
631
|
+
function declaration(value, root, parent, length, siblings) {
|
|
632
|
+
return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length, siblings);
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* @param {string} value
|
|
637
|
+
* @param {number} length
|
|
638
|
+
* @param {object[]} children
|
|
639
|
+
* @return {string}
|
|
640
|
+
*/
|
|
641
|
+
function prefix(value, length, children) {
|
|
642
|
+
switch (hash(value, length)) {
|
|
643
|
+
// color-adjust
|
|
644
|
+
case 5103:
|
|
645
|
+
return WEBKIT + 'print-' + value + value;
|
|
646
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
647
|
+
case 5737:
|
|
648
|
+
case 4201:
|
|
649
|
+
case 3177:
|
|
650
|
+
case 3433:
|
|
651
|
+
case 1641:
|
|
652
|
+
case 4457:
|
|
653
|
+
case 2921:
|
|
654
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
655
|
+
case 5572:
|
|
656
|
+
case 6356:
|
|
657
|
+
case 5844:
|
|
658
|
+
case 3191:
|
|
659
|
+
case 6645:
|
|
660
|
+
case 3005:
|
|
661
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
662
|
+
case 6391:
|
|
663
|
+
case 5879:
|
|
664
|
+
case 5623:
|
|
665
|
+
case 6135:
|
|
666
|
+
case 4599:
|
|
667
|
+
case 4855:
|
|
668
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
669
|
+
case 4215:
|
|
670
|
+
case 6389:
|
|
671
|
+
case 5109:
|
|
672
|
+
case 5365:
|
|
673
|
+
case 5621:
|
|
674
|
+
case 3829:
|
|
675
|
+
return WEBKIT + value + value;
|
|
676
|
+
// tab-size
|
|
677
|
+
case 4789:
|
|
678
|
+
return MOZ + value + value;
|
|
679
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
680
|
+
case 5349:
|
|
681
|
+
case 4246:
|
|
682
|
+
case 4810:
|
|
683
|
+
case 6968:
|
|
684
|
+
case 2756:
|
|
685
|
+
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
686
|
+
// writing-mode
|
|
687
|
+
case 5936:
|
|
688
|
+
switch (charat(value, length + 11)) {
|
|
689
|
+
// vertical-l(r)
|
|
690
|
+
case 114:
|
|
691
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
|
692
|
+
// vertical-r(l)
|
|
693
|
+
case 108:
|
|
694
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
|
695
|
+
// horizontal(-)tb
|
|
696
|
+
case 45:
|
|
697
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
|
698
|
+
// default: fallthrough to below
|
|
699
|
+
}
|
|
700
|
+
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
701
|
+
case 6828:
|
|
702
|
+
case 4268:
|
|
703
|
+
case 2903:
|
|
704
|
+
return WEBKIT + value + MS + value + value;
|
|
705
|
+
// order
|
|
706
|
+
case 6165:
|
|
707
|
+
return WEBKIT + value + MS + 'flex-' + value + value;
|
|
708
|
+
// align-items
|
|
709
|
+
case 5187:
|
|
710
|
+
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
|
711
|
+
// align-self
|
|
712
|
+
case 5443:
|
|
713
|
+
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/g, '') + (!match(value, /flex-|baseline/) ? MS + 'grid-row-' + replace(value, /flex-|-self/g, '') : '') + value;
|
|
714
|
+
// align-content
|
|
715
|
+
case 4675:
|
|
716
|
+
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/g, '') + value;
|
|
717
|
+
// flex-shrink
|
|
718
|
+
case 5548:
|
|
719
|
+
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
|
720
|
+
// flex-basis
|
|
721
|
+
case 5292:
|
|
722
|
+
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
|
723
|
+
// flex-grow
|
|
724
|
+
case 6060:
|
|
725
|
+
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
|
726
|
+
// transition
|
|
727
|
+
case 4554:
|
|
728
|
+
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
|
729
|
+
// cursor
|
|
730
|
+
case 6187:
|
|
731
|
+
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
|
732
|
+
// background, background-image
|
|
733
|
+
case 5495:
|
|
734
|
+
case 3959:
|
|
735
|
+
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
|
736
|
+
// justify-content
|
|
737
|
+
case 4968:
|
|
738
|
+
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
|
739
|
+
// justify-self
|
|
740
|
+
case 4200:
|
|
741
|
+
if (!match(value, /flex-|baseline/)) return MS + 'grid-column-align' + substr(value, length) + value;
|
|
742
|
+
break;
|
|
743
|
+
// grid-template-(columns|rows)
|
|
744
|
+
case 2592:
|
|
745
|
+
case 3360:
|
|
746
|
+
return MS + replace(value, 'template-', '') + value;
|
|
747
|
+
// grid-(row|column)-start
|
|
748
|
+
case 4384:
|
|
749
|
+
case 3616:
|
|
750
|
+
if (children && children.some(function (element, index) {
|
|
751
|
+
return length = index, match(element.props, /grid-\w+-end/);
|
|
752
|
+
})) {
|
|
753
|
+
return ~indexof(value + (children = children[length].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+/)) + ';';
|
|
754
|
+
}
|
|
755
|
+
return MS + replace(value, '-start', '') + value;
|
|
756
|
+
// grid-(row|column)-end
|
|
757
|
+
case 4896:
|
|
758
|
+
case 4128:
|
|
759
|
+
return children && children.some(function (element) {
|
|
760
|
+
return match(element.props, /grid-\w+-start/);
|
|
761
|
+
}) ? value : MS + replace(replace(value, '-end', '-span'), 'span ', '') + value;
|
|
762
|
+
// (margin|padding)-inline-(start|end)
|
|
763
|
+
case 4095:
|
|
764
|
+
case 3583:
|
|
765
|
+
case 4068:
|
|
766
|
+
case 2532:
|
|
767
|
+
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
|
768
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
769
|
+
case 8116:
|
|
770
|
+
case 7059:
|
|
771
|
+
case 5753:
|
|
772
|
+
case 5535:
|
|
773
|
+
case 5445:
|
|
774
|
+
case 5701:
|
|
775
|
+
case 4933:
|
|
776
|
+
case 4677:
|
|
777
|
+
case 5533:
|
|
778
|
+
case 5789:
|
|
779
|
+
case 5021:
|
|
780
|
+
case 4765:
|
|
781
|
+
// stretch, max-content, min-content, fill-available
|
|
782
|
+
if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
|
|
783
|
+
// (m)ax-content, (m)in-content
|
|
784
|
+
case 109:
|
|
785
|
+
// -
|
|
786
|
+
if (charat(value, length + 4) !== 45) break;
|
|
787
|
+
// (f)ill-available, (f)it-content
|
|
788
|
+
case 102:
|
|
789
|
+
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
|
790
|
+
// (s)tretch
|
|
791
|
+
case 115:
|
|
792
|
+
return ~indexof(value, 'stretch', 0) ? prefix(replace(value, 'stretch', 'fill-available'), length, children) + value : value;
|
|
793
|
+
}
|
|
794
|
+
break;
|
|
795
|
+
// grid-(column|row)
|
|
796
|
+
case 5152:
|
|
797
|
+
case 5920:
|
|
798
|
+
return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (_, a, b, c, d, e, f) {
|
|
799
|
+
return MS + a + ':' + b + f + (c ? MS + a + '-span:' + (d ? e : +e - +b) + f : '') + value;
|
|
800
|
+
});
|
|
801
|
+
// position: sticky
|
|
802
|
+
case 4949:
|
|
803
|
+
// stick(y)?
|
|
804
|
+
if (charat(value, length + 6) === 121) return replace(value, ':', ':' + WEBKIT) + value;
|
|
805
|
+
break;
|
|
806
|
+
// display: (flex|inline-flex|grid|inline-grid)
|
|
807
|
+
case 6444:
|
|
808
|
+
switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
|
|
809
|
+
// (inline-)?fle(x)
|
|
810
|
+
case 120:
|
|
811
|
+
return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
|
812
|
+
// (inline-)?gri(d)
|
|
813
|
+
case 100:
|
|
814
|
+
return replace(value, ':', ':' + MS) + value;
|
|
815
|
+
}
|
|
816
|
+
break;
|
|
817
|
+
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
818
|
+
case 5719:
|
|
819
|
+
case 2647:
|
|
820
|
+
case 2135:
|
|
821
|
+
case 3927:
|
|
822
|
+
case 2391:
|
|
823
|
+
return replace(value, 'scroll-', 'scroll-snap-') + value;
|
|
658
824
|
}
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
825
|
+
return value;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* @param {object[]} children
|
|
830
|
+
* @param {function} callback
|
|
831
|
+
* @return {string}
|
|
832
|
+
*/
|
|
833
|
+
function serialize(children, callback) {
|
|
834
|
+
var output = '';
|
|
835
|
+
for (var i = 0; i < children.length; i++) output += callback(children[i], i, children, callback) || '';
|
|
836
|
+
return output;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* @param {object} element
|
|
841
|
+
* @param {number} index
|
|
842
|
+
* @param {object[]} children
|
|
843
|
+
* @param {function} callback
|
|
844
|
+
* @return {string}
|
|
845
|
+
*/
|
|
846
|
+
function stringify(element, index, children, callback) {
|
|
847
|
+
switch (element.type) {
|
|
848
|
+
case LAYER:
|
|
849
|
+
if (element.children.length) break;
|
|
850
|
+
case IMPORT:
|
|
851
|
+
case DECLARATION:
|
|
852
|
+
return element.return = element.return || element.value;
|
|
853
|
+
case COMMENT:
|
|
854
|
+
return '';
|
|
855
|
+
case KEYFRAMES:
|
|
856
|
+
return element.return = element.value + '{' + serialize(element.children, callback) + '}';
|
|
857
|
+
case RULESET:
|
|
858
|
+
if (!strlen(element.value = element.props.join(','))) return '';
|
|
671
859
|
}
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
case 232:
|
|
729
|
-
b = a.replace(G, 'tb-rl');
|
|
730
|
-
break;
|
|
731
|
-
case 220:
|
|
732
|
-
b = a.replace(G, 'lr');
|
|
860
|
+
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : '';
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* @param {function[]} collection
|
|
865
|
+
* @return {function}
|
|
866
|
+
*/
|
|
867
|
+
function middleware(collection) {
|
|
868
|
+
var length = sizeof(collection);
|
|
869
|
+
return function (element, index, children, callback) {
|
|
870
|
+
var output = '';
|
|
871
|
+
for (var i = 0; i < length; i++) output += collection[i](element, index, children, callback) || '';
|
|
872
|
+
return output;
|
|
873
|
+
};
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* @param {function} callback
|
|
878
|
+
* @return {function}
|
|
879
|
+
*/
|
|
880
|
+
function rulesheet(callback) {
|
|
881
|
+
return function (element) {
|
|
882
|
+
if (!element.root) if (element = element.return) callback(element);
|
|
883
|
+
};
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* @param {object} element
|
|
888
|
+
* @param {number} index
|
|
889
|
+
* @param {object[]} children
|
|
890
|
+
* @param {function} callback
|
|
891
|
+
*/
|
|
892
|
+
function prefixer(element, index, children, callback) {
|
|
893
|
+
if (element.length > -1) if (!element.return) switch (element.type) {
|
|
894
|
+
case DECLARATION:
|
|
895
|
+
element.return = prefix(element.value, element.length, children);
|
|
896
|
+
return;
|
|
897
|
+
case KEYFRAMES:
|
|
898
|
+
return serialize([copy(element, {
|
|
899
|
+
value: replace(element.value, '@', '@' + WEBKIT)
|
|
900
|
+
})], callback);
|
|
901
|
+
case RULESET:
|
|
902
|
+
if (element.length) return combine(children = element.props, function (value) {
|
|
903
|
+
switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
|
|
904
|
+
// :read-(only|write)
|
|
905
|
+
case ':read-only':
|
|
906
|
+
case ':read-write':
|
|
907
|
+
lift(copy(element, {
|
|
908
|
+
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
|
909
|
+
}));
|
|
910
|
+
lift(copy(element, {
|
|
911
|
+
props: [value]
|
|
912
|
+
}));
|
|
913
|
+
assign(element, {
|
|
914
|
+
props: filter(children, callback)
|
|
915
|
+
});
|
|
733
916
|
break;
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
917
|
+
// :placeholder
|
|
918
|
+
case '::placeholder':
|
|
919
|
+
lift(copy(element, {
|
|
920
|
+
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
|
921
|
+
}));
|
|
922
|
+
lift(copy(element, {
|
|
923
|
+
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
|
924
|
+
}));
|
|
925
|
+
lift(copy(element, {
|
|
926
|
+
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
|
927
|
+
}));
|
|
928
|
+
lift(copy(element, {
|
|
929
|
+
props: [value]
|
|
930
|
+
}));
|
|
931
|
+
assign(element, {
|
|
932
|
+
props: filter(children, callback)
|
|
933
|
+
});
|
|
748
934
|
break;
|
|
749
|
-
case 207:
|
|
750
|
-
case 102:
|
|
751
|
-
a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
|
|
752
|
-
}
|
|
753
|
-
return a + ';';
|
|
754
|
-
case 938:
|
|
755
|
-
if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
|
|
756
|
-
case 105:
|
|
757
|
-
return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
|
|
758
|
-
case 115:
|
|
759
|
-
return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
|
|
760
|
-
default:
|
|
761
|
-
return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
|
|
762
935
|
}
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
case 989:
|
|
766
|
-
if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
|
|
767
|
-
case 931:
|
|
768
|
-
case 953:
|
|
769
|
-
if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;
|
|
770
|
-
break;
|
|
771
|
-
case 962:
|
|
772
|
-
if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;
|
|
773
|
-
}
|
|
774
|
-
return a;
|
|
775
|
-
}
|
|
776
|
-
function L(d, c) {
|
|
777
|
-
var e = d.indexOf(1 === c ? ':' : '{'),
|
|
778
|
-
h = d.substring(0, 3 !== c ? e : 10);
|
|
779
|
-
e = d.substring(e + 1, d.length - 1);
|
|
780
|
-
return R(2 !== c ? h : h.replace(na, '$1'), e, c);
|
|
781
|
-
}
|
|
782
|
-
function ea(d, c) {
|
|
783
|
-
var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
|
|
784
|
-
return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
|
|
785
|
-
}
|
|
786
|
-
function H(d, c, e, h, a, m, b, v, n, q) {
|
|
787
|
-
for (var g = 0, x = c, w; g < A; ++g) {
|
|
788
|
-
switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
|
|
789
|
-
case void 0:
|
|
790
|
-
case !1:
|
|
791
|
-
case !0:
|
|
792
|
-
case null:
|
|
793
|
-
break;
|
|
794
|
-
default:
|
|
795
|
-
x = w;
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
if (x !== c) return x;
|
|
799
|
-
}
|
|
800
|
-
function T(d) {
|
|
801
|
-
switch (d) {
|
|
802
|
-
case void 0:
|
|
803
|
-
case null:
|
|
804
|
-
A = S.length = 0;
|
|
805
|
-
break;
|
|
806
|
-
default:
|
|
807
|
-
if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) {
|
|
808
|
-
T(d[c]);
|
|
809
|
-
} else Y = !!d | 0;
|
|
810
|
-
}
|
|
811
|
-
return T;
|
|
812
|
-
}
|
|
813
|
-
function U(d) {
|
|
814
|
-
d = d.prefix;
|
|
815
|
-
void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
|
|
816
|
-
return U;
|
|
817
|
-
}
|
|
818
|
-
function B(d, c) {
|
|
819
|
-
var e = d;
|
|
820
|
-
33 > e.charCodeAt(0) && (e = e.trim());
|
|
821
|
-
V = e;
|
|
822
|
-
e = [V];
|
|
823
|
-
if (0 < A) {
|
|
824
|
-
var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
|
|
825
|
-
void 0 !== h && 'string' === typeof h && (c = h);
|
|
826
|
-
}
|
|
827
|
-
var a = M(O, e, c, 0, 0);
|
|
828
|
-
0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
|
|
829
|
-
V = '';
|
|
830
|
-
E = 0;
|
|
831
|
-
z = D = 1;
|
|
832
|
-
return a;
|
|
936
|
+
return '';
|
|
937
|
+
});
|
|
833
938
|
}
|
|
834
|
-
var ca = /^\0+/g,
|
|
835
|
-
N = /[\0\r\f]/g,
|
|
836
|
-
aa = /: */g,
|
|
837
|
-
ka = /zoo|gra/,
|
|
838
|
-
ma = /([,: ])(transform)/g,
|
|
839
|
-
ia = /,\r+?/g,
|
|
840
|
-
F = /([\t\r\n ])*\f?&/g,
|
|
841
|
-
fa = /@(k\w+)\s*(\S*)\s*/,
|
|
842
|
-
Q = /::(place)/g,
|
|
843
|
-
ha = /:(read-only)/g,
|
|
844
|
-
G = /[svh]\w+-[tblr]{2}/,
|
|
845
|
-
da = /\(\s*(.*)\s*\)/g,
|
|
846
|
-
oa = /([\s\S]*?);/g,
|
|
847
|
-
ba = /-self|flex-/g,
|
|
848
|
-
na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
|
|
849
|
-
la = /stretch|:\s*\w+\-(?:conte|avail)/,
|
|
850
|
-
ja = /([^-])(image-set\()/,
|
|
851
|
-
z = 1,
|
|
852
|
-
D = 1,
|
|
853
|
-
E = 0,
|
|
854
|
-
w = 1,
|
|
855
|
-
O = [],
|
|
856
|
-
S = [],
|
|
857
|
-
A = 0,
|
|
858
|
-
R = null,
|
|
859
|
-
Y = 0,
|
|
860
|
-
V = '';
|
|
861
|
-
B.use = T;
|
|
862
|
-
B.set = U;
|
|
863
|
-
void 0 !== W && U(W);
|
|
864
|
-
return B;
|
|
865
939
|
}
|
|
866
940
|
|
|
867
941
|
var unitlessKeys = {
|
|
@@ -913,1063 +987,686 @@ var unitlessKeys = {
|
|
|
913
987
|
strokeWidth: 1
|
|
914
988
|
};
|
|
915
989
|
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
var
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
941
|
-
*
|
|
942
|
-
* This source code is licensed under the MIT license found in the
|
|
943
|
-
* LICENSE file in the root directory of this source tree.
|
|
944
|
-
*/
|
|
945
|
-
var hasRequiredReactIs_production_min;
|
|
946
|
-
function requireReactIs_production_min() {
|
|
947
|
-
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
948
|
-
hasRequiredReactIs_production_min = 1;
|
|
949
|
-
var b = "function" === typeof Symbol && Symbol.for,
|
|
950
|
-
c = b ? Symbol.for("react.element") : 60103,
|
|
951
|
-
d = b ? Symbol.for("react.portal") : 60106,
|
|
952
|
-
e = b ? Symbol.for("react.fragment") : 60107,
|
|
953
|
-
f = b ? Symbol.for("react.strict_mode") : 60108,
|
|
954
|
-
g = b ? Symbol.for("react.profiler") : 60114,
|
|
955
|
-
h = b ? Symbol.for("react.provider") : 60109,
|
|
956
|
-
k = b ? Symbol.for("react.context") : 60110,
|
|
957
|
-
l = b ? Symbol.for("react.async_mode") : 60111,
|
|
958
|
-
m = b ? Symbol.for("react.concurrent_mode") : 60111,
|
|
959
|
-
n = b ? Symbol.for("react.forward_ref") : 60112,
|
|
960
|
-
p = b ? Symbol.for("react.suspense") : 60113,
|
|
961
|
-
q = b ? Symbol.for("react.suspense_list") : 60120,
|
|
962
|
-
r = b ? Symbol.for("react.memo") : 60115,
|
|
963
|
-
t = b ? Symbol.for("react.lazy") : 60116,
|
|
964
|
-
v = b ? Symbol.for("react.block") : 60121,
|
|
965
|
-
w = b ? Symbol.for("react.fundamental") : 60117,
|
|
966
|
-
x = b ? Symbol.for("react.responder") : 60118,
|
|
967
|
-
y = b ? Symbol.for("react.scope") : 60119;
|
|
968
|
-
function z(a) {
|
|
969
|
-
if ("object" === typeof a && null !== a) {
|
|
970
|
-
var u = a.$$typeof;
|
|
971
|
-
switch (u) {
|
|
972
|
-
case c:
|
|
973
|
-
switch (a = a.type, a) {
|
|
974
|
-
case l:
|
|
975
|
-
case m:
|
|
976
|
-
case e:
|
|
977
|
-
case g:
|
|
978
|
-
case f:
|
|
979
|
-
case p:
|
|
980
|
-
return a;
|
|
981
|
-
default:
|
|
982
|
-
switch (a = a && a.$$typeof, a) {
|
|
983
|
-
case k:
|
|
984
|
-
case n:
|
|
985
|
-
case t:
|
|
986
|
-
case r:
|
|
987
|
-
case h:
|
|
988
|
-
return a;
|
|
989
|
-
default:
|
|
990
|
-
return u;
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
case d:
|
|
994
|
-
return u;
|
|
990
|
+
var f = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
|
|
991
|
+
m = "active",
|
|
992
|
+
y = "data-styled-version",
|
|
993
|
+
v = "6.1.8",
|
|
994
|
+
g = "/*!sc*/\n",
|
|
995
|
+
S = "undefined" != typeof window && "HTMLElement" in window,
|
|
996
|
+
w = 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),
|
|
997
|
+
E = /invalid hook call/i,
|
|
998
|
+
N = new Set(),
|
|
999
|
+
P = function (t, n) {
|
|
1000
|
+
if ("production" !== process.env.NODE_ENV) {
|
|
1001
|
+
var o = n ? ' with the id of "'.concat(n, '"') : "",
|
|
1002
|
+
s = "The component ".concat(t).concat(o, " 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.",
|
|
1003
|
+
i = console.error;
|
|
1004
|
+
try {
|
|
1005
|
+
var a = !0;
|
|
1006
|
+
console.error = function (t) {
|
|
1007
|
+
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1008
|
+
E.test(t) ? (a = !1, N.delete(s)) : i.apply(void 0, __spreadArray([t], n, !1));
|
|
1009
|
+
}, React.useRef(), a && !N.has(s) && (console.warn(s), N.add(s));
|
|
1010
|
+
} catch (e) {
|
|
1011
|
+
E.test(e.message) && N.delete(s);
|
|
1012
|
+
} finally {
|
|
1013
|
+
console.error = i;
|
|
995
1014
|
}
|
|
996
1015
|
}
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
reactIs_production_min.Suspense = p;
|
|
1014
|
-
reactIs_production_min.isAsyncMode = function (a) {
|
|
1015
|
-
return A(a) || z(a) === l;
|
|
1016
|
-
};
|
|
1017
|
-
reactIs_production_min.isConcurrentMode = A;
|
|
1018
|
-
reactIs_production_min.isContextConsumer = function (a) {
|
|
1019
|
-
return z(a) === k;
|
|
1020
|
-
};
|
|
1021
|
-
reactIs_production_min.isContextProvider = function (a) {
|
|
1022
|
-
return z(a) === h;
|
|
1023
|
-
};
|
|
1024
|
-
reactIs_production_min.isElement = function (a) {
|
|
1025
|
-
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
1026
|
-
};
|
|
1027
|
-
reactIs_production_min.isForwardRef = function (a) {
|
|
1028
|
-
return z(a) === n;
|
|
1029
|
-
};
|
|
1030
|
-
reactIs_production_min.isFragment = function (a) {
|
|
1031
|
-
return z(a) === e;
|
|
1032
|
-
};
|
|
1033
|
-
reactIs_production_min.isLazy = function (a) {
|
|
1034
|
-
return z(a) === t;
|
|
1035
|
-
};
|
|
1036
|
-
reactIs_production_min.isMemo = function (a) {
|
|
1037
|
-
return z(a) === r;
|
|
1038
|
-
};
|
|
1039
|
-
reactIs_production_min.isPortal = function (a) {
|
|
1040
|
-
return z(a) === d;
|
|
1041
|
-
};
|
|
1042
|
-
reactIs_production_min.isProfiler = function (a) {
|
|
1043
|
-
return z(a) === g;
|
|
1044
|
-
};
|
|
1045
|
-
reactIs_production_min.isStrictMode = function (a) {
|
|
1046
|
-
return z(a) === f;
|
|
1047
|
-
};
|
|
1048
|
-
reactIs_production_min.isSuspense = function (a) {
|
|
1049
|
-
return z(a) === p;
|
|
1016
|
+
},
|
|
1017
|
+
_ = Object.freeze([]),
|
|
1018
|
+
C = Object.freeze({});
|
|
1019
|
+
function I(e, t, n) {
|
|
1020
|
+
return void 0 === n && (n = C), e.theme !== n.theme && e.theme || t || n.theme;
|
|
1021
|
+
}
|
|
1022
|
+
var A = new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]),
|
|
1023
|
+
O = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,
|
|
1024
|
+
D = /(^-|-$)/g;
|
|
1025
|
+
function R(e) {
|
|
1026
|
+
return e.replace(O, "-").replace(D, "");
|
|
1027
|
+
}
|
|
1028
|
+
var T = /(a)(d)/gi,
|
|
1029
|
+
k = 52,
|
|
1030
|
+
j = function (e) {
|
|
1031
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1050
1032
|
};
|
|
1051
|
-
|
|
1052
|
-
|
|
1033
|
+
function x(e) {
|
|
1034
|
+
var t,
|
|
1035
|
+
n = "";
|
|
1036
|
+
for (t = Math.abs(e); t > k; t = t / k | 0) n = j(t % k) + n;
|
|
1037
|
+
return (j(t % k) + n).replace(T, "$1-$2");
|
|
1038
|
+
}
|
|
1039
|
+
var V,
|
|
1040
|
+
F = 5381,
|
|
1041
|
+
M = function (e, t) {
|
|
1042
|
+
for (var n = t.length; n;) e = 33 * e ^ t.charCodeAt(--n);
|
|
1043
|
+
return e;
|
|
1044
|
+
},
|
|
1045
|
+
z = function (e) {
|
|
1046
|
+
return M(F, e);
|
|
1053
1047
|
};
|
|
1054
|
-
|
|
1055
|
-
return
|
|
1048
|
+
function $(e) {
|
|
1049
|
+
return x(z(e) >>> 0);
|
|
1056
1050
|
}
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
/** @license React v16.13.1
|
|
1061
|
-
* react-is.development.js
|
|
1062
|
-
*
|
|
1063
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1064
|
-
*
|
|
1065
|
-
* This source code is licensed under the MIT license found in the
|
|
1066
|
-
* LICENSE file in the root directory of this source tree.
|
|
1067
|
-
*/
|
|
1068
|
-
var hasRequiredReactIs_development;
|
|
1069
|
-
function requireReactIs_development() {
|
|
1070
|
-
if (hasRequiredReactIs_development) return reactIs_development;
|
|
1071
|
-
hasRequiredReactIs_development = 1;
|
|
1072
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1073
|
-
(function () {
|
|
1074
|
-
|
|
1075
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
1076
|
-
// nor polyfill, then a plain number is used for performance.
|
|
1077
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
1078
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
1079
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
1080
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
1081
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
1082
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
1083
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
1084
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
1085
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
1086
|
-
|
|
1087
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
1088
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
1089
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
1090
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
1091
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
1092
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
1093
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
1094
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
1095
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
1096
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
1097
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
1098
|
-
function isValidElementType(type) {
|
|
1099
|
-
return typeof type === 'string' || typeof type === 'function' ||
|
|
1100
|
-
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1101
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
1102
|
-
}
|
|
1103
|
-
function typeOf(object) {
|
|
1104
|
-
if (typeof object === 'object' && object !== null) {
|
|
1105
|
-
var $$typeof = object.$$typeof;
|
|
1106
|
-
switch ($$typeof) {
|
|
1107
|
-
case REACT_ELEMENT_TYPE:
|
|
1108
|
-
var type = object.type;
|
|
1109
|
-
switch (type) {
|
|
1110
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
1111
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
1112
|
-
case REACT_FRAGMENT_TYPE:
|
|
1113
|
-
case REACT_PROFILER_TYPE:
|
|
1114
|
-
case REACT_STRICT_MODE_TYPE:
|
|
1115
|
-
case REACT_SUSPENSE_TYPE:
|
|
1116
|
-
return type;
|
|
1117
|
-
default:
|
|
1118
|
-
var $$typeofType = type && type.$$typeof;
|
|
1119
|
-
switch ($$typeofType) {
|
|
1120
|
-
case REACT_CONTEXT_TYPE:
|
|
1121
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1122
|
-
case REACT_LAZY_TYPE:
|
|
1123
|
-
case REACT_MEMO_TYPE:
|
|
1124
|
-
case REACT_PROVIDER_TYPE:
|
|
1125
|
-
return $$typeofType;
|
|
1126
|
-
default:
|
|
1127
|
-
return $$typeof;
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
case REACT_PORTAL_TYPE:
|
|
1131
|
-
return $$typeof;
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
return undefined;
|
|
1135
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
1136
|
-
|
|
1137
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
1138
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
1139
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
1140
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
1141
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
1142
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
1143
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
1144
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
1145
|
-
var Memo = REACT_MEMO_TYPE;
|
|
1146
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
1147
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
1148
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1149
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
1150
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
1151
|
-
|
|
1152
|
-
function isAsyncMode(object) {
|
|
1153
|
-
{
|
|
1154
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
1155
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
1156
|
-
|
|
1157
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
1158
|
-
}
|
|
1159
|
-
}
|
|
1160
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
1161
|
-
}
|
|
1162
|
-
function isConcurrentMode(object) {
|
|
1163
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
1164
|
-
}
|
|
1165
|
-
function isContextConsumer(object) {
|
|
1166
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
1167
|
-
}
|
|
1168
|
-
function isContextProvider(object) {
|
|
1169
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
1170
|
-
}
|
|
1171
|
-
function isElement(object) {
|
|
1172
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1173
|
-
}
|
|
1174
|
-
function isForwardRef(object) {
|
|
1175
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
1176
|
-
}
|
|
1177
|
-
function isFragment(object) {
|
|
1178
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
1179
|
-
}
|
|
1180
|
-
function isLazy(object) {
|
|
1181
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
1182
|
-
}
|
|
1183
|
-
function isMemo(object) {
|
|
1184
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
1185
|
-
}
|
|
1186
|
-
function isPortal(object) {
|
|
1187
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
1188
|
-
}
|
|
1189
|
-
function isProfiler(object) {
|
|
1190
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
1191
|
-
}
|
|
1192
|
-
function isStrictMode(object) {
|
|
1193
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
1194
|
-
}
|
|
1195
|
-
function isSuspense(object) {
|
|
1196
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
1197
|
-
}
|
|
1198
|
-
reactIs_development.AsyncMode = AsyncMode;
|
|
1199
|
-
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
1200
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
1201
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
1202
|
-
reactIs_development.Element = Element;
|
|
1203
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
1204
|
-
reactIs_development.Fragment = Fragment;
|
|
1205
|
-
reactIs_development.Lazy = Lazy;
|
|
1206
|
-
reactIs_development.Memo = Memo;
|
|
1207
|
-
reactIs_development.Portal = Portal;
|
|
1208
|
-
reactIs_development.Profiler = Profiler;
|
|
1209
|
-
reactIs_development.StrictMode = StrictMode;
|
|
1210
|
-
reactIs_development.Suspense = Suspense;
|
|
1211
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
1212
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
1213
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
1214
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
1215
|
-
reactIs_development.isElement = isElement;
|
|
1216
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
1217
|
-
reactIs_development.isFragment = isFragment;
|
|
1218
|
-
reactIs_development.isLazy = isLazy;
|
|
1219
|
-
reactIs_development.isMemo = isMemo;
|
|
1220
|
-
reactIs_development.isPortal = isPortal;
|
|
1221
|
-
reactIs_development.isProfiler = isProfiler;
|
|
1222
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
1223
|
-
reactIs_development.isSuspense = isSuspense;
|
|
1224
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
1225
|
-
reactIs_development.typeOf = typeOf;
|
|
1226
|
-
})();
|
|
1227
|
-
}
|
|
1228
|
-
return reactIs_development;
|
|
1051
|
+
function B(e) {
|
|
1052
|
+
return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
|
|
1229
1053
|
}
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
reactIs$1.exports = requireReactIs_production_min();
|
|
1233
|
-
} else {
|
|
1234
|
-
reactIs$1.exports = requireReactIs_development();
|
|
1054
|
+
function L(e) {
|
|
1055
|
+
return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1235
1056
|
}
|
|
1236
|
-
var
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
type: true
|
|
1280
|
-
};
|
|
1281
|
-
var TYPE_STATICS = {};
|
|
1282
|
-
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
1283
|
-
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
1284
|
-
function getStatics(component) {
|
|
1285
|
-
// React v16.11 and below
|
|
1286
|
-
if (reactIs.isMemo(component)) {
|
|
1287
|
-
return MEMO_STATICS;
|
|
1288
|
-
} // React v16.12 and above
|
|
1289
|
-
|
|
1290
|
-
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
1057
|
+
var G = "function" == typeof Symbol && Symbol.for,
|
|
1058
|
+
Y = G ? Symbol.for("react.memo") : 60115,
|
|
1059
|
+
q = G ? Symbol.for("react.forward_ref") : 60112,
|
|
1060
|
+
W = {
|
|
1061
|
+
childContextTypes: !0,
|
|
1062
|
+
contextType: !0,
|
|
1063
|
+
contextTypes: !0,
|
|
1064
|
+
defaultProps: !0,
|
|
1065
|
+
displayName: !0,
|
|
1066
|
+
getDefaultProps: !0,
|
|
1067
|
+
getDerivedStateFromError: !0,
|
|
1068
|
+
getDerivedStateFromProps: !0,
|
|
1069
|
+
mixins: !0,
|
|
1070
|
+
propTypes: !0,
|
|
1071
|
+
type: !0
|
|
1072
|
+
},
|
|
1073
|
+
H = {
|
|
1074
|
+
name: !0,
|
|
1075
|
+
length: !0,
|
|
1076
|
+
prototype: !0,
|
|
1077
|
+
caller: !0,
|
|
1078
|
+
callee: !0,
|
|
1079
|
+
arguments: !0,
|
|
1080
|
+
arity: !0
|
|
1081
|
+
},
|
|
1082
|
+
U = {
|
|
1083
|
+
$$typeof: !0,
|
|
1084
|
+
compare: !0,
|
|
1085
|
+
defaultProps: !0,
|
|
1086
|
+
displayName: !0,
|
|
1087
|
+
propTypes: !0,
|
|
1088
|
+
type: !0
|
|
1089
|
+
},
|
|
1090
|
+
J = ((V = {})[q] = {
|
|
1091
|
+
$$typeof: !0,
|
|
1092
|
+
render: !0,
|
|
1093
|
+
defaultProps: !0,
|
|
1094
|
+
displayName: !0,
|
|
1095
|
+
propTypes: !0
|
|
1096
|
+
}, V[Y] = U, V);
|
|
1097
|
+
function X(e) {
|
|
1098
|
+
return ("type" in (t = e) && t.type.$$typeof) === Y ? U : "$$typeof" in e ? J[e.$$typeof] : W;
|
|
1099
|
+
var t;
|
|
1291
1100
|
}
|
|
1292
|
-
var
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
function
|
|
1299
|
-
if (
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
1304
|
-
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
1305
|
-
}
|
|
1101
|
+
var Z = Object.defineProperty,
|
|
1102
|
+
K = Object.getOwnPropertyNames,
|
|
1103
|
+
Q = Object.getOwnPropertySymbols,
|
|
1104
|
+
ee = Object.getOwnPropertyDescriptor,
|
|
1105
|
+
te = Object.getPrototypeOf,
|
|
1106
|
+
ne = Object.prototype;
|
|
1107
|
+
function oe(e, t, n) {
|
|
1108
|
+
if ("string" != typeof t) {
|
|
1109
|
+
if (ne) {
|
|
1110
|
+
var o = te(t);
|
|
1111
|
+
o && o !== ne && oe(e, o, n);
|
|
1306
1112
|
}
|
|
1307
|
-
var
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
1314
|
-
var key = keys[i];
|
|
1315
|
-
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
1316
|
-
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
1113
|
+
var r = K(t);
|
|
1114
|
+
Q && (r = r.concat(Q(t)));
|
|
1115
|
+
for (var s = X(e), i = X(t), a = 0; a < r.length; ++a) {
|
|
1116
|
+
var c = r[a];
|
|
1117
|
+
if (!(c in H || n && n[c] || i && c in i || s && c in s)) {
|
|
1118
|
+
var l = ee(t, c);
|
|
1317
1119
|
try {
|
|
1318
|
-
|
|
1319
|
-
defineProperty(targetComponent, key, descriptor);
|
|
1120
|
+
Z(e, c, l);
|
|
1320
1121
|
} catch (e) {}
|
|
1321
1122
|
}
|
|
1322
1123
|
}
|
|
1323
1124
|
}
|
|
1324
|
-
return
|
|
1325
|
-
}
|
|
1326
|
-
var hoistNonReactStatics_cjs = hoistNonReactStatics;
|
|
1327
|
-
var m = /*@__PURE__*/getDefaultExportFromCjs(hoistNonReactStatics_cjs);
|
|
1328
|
-
|
|
1329
|
-
function y() {
|
|
1330
|
-
return (y = Object.assign || function (e) {
|
|
1331
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
1332
|
-
var n = arguments[t];
|
|
1333
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
1334
|
-
}
|
|
1335
|
-
return e;
|
|
1336
|
-
}).apply(this, arguments);
|
|
1125
|
+
return e;
|
|
1337
1126
|
}
|
|
1338
|
-
|
|
1339
|
-
for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
|
|
1340
|
-
return n;
|
|
1341
|
-
},
|
|
1342
|
-
g = function (t) {
|
|
1343
|
-
return null !== t && "object" == typeof t && "[object Object]" === (t.toString ? t.toString() : Object.prototype.toString.call(t)) && !reactIsExports$1.typeOf(t);
|
|
1344
|
-
},
|
|
1345
|
-
S = Object.freeze([]),
|
|
1346
|
-
w = Object.freeze({});
|
|
1347
|
-
function E(e) {
|
|
1127
|
+
function re(e) {
|
|
1348
1128
|
return "function" == typeof e;
|
|
1349
1129
|
}
|
|
1350
|
-
function
|
|
1351
|
-
return "
|
|
1130
|
+
function se(e) {
|
|
1131
|
+
return "object" == typeof e && "styledComponentId" in e;
|
|
1132
|
+
}
|
|
1133
|
+
function ie(e, t) {
|
|
1134
|
+
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
1135
|
+
}
|
|
1136
|
+
function ae(e, t) {
|
|
1137
|
+
if (0 === e.length) return "";
|
|
1138
|
+
for (var n = e[0], o = 1; o < e.length; o++) n += t ? t + e[o] : e[o];
|
|
1139
|
+
return n;
|
|
1140
|
+
}
|
|
1141
|
+
function ce(e) {
|
|
1142
|
+
return null !== e && "object" == typeof e && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
1352
1143
|
}
|
|
1353
|
-
function
|
|
1354
|
-
|
|
1144
|
+
function le(e, t, n) {
|
|
1145
|
+
if (void 0 === n && (n = !1), !n && !ce(e) && !Array.isArray(e)) return t;
|
|
1146
|
+
if (Array.isArray(t)) for (var o = 0; o < t.length; o++) e[o] = le(e[o], t[o]);else if (ce(t)) for (var o in t) e[o] = le(e[o], t[o]);
|
|
1147
|
+
return e;
|
|
1148
|
+
}
|
|
1149
|
+
function ue(e, t) {
|
|
1150
|
+
Object.defineProperty(e, "toString", {
|
|
1151
|
+
value: t
|
|
1152
|
+
});
|
|
1355
1153
|
}
|
|
1356
|
-
var
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
}), e;
|
|
1154
|
+
var pe = "production" !== process.env.NODE_ENV ? {
|
|
1155
|
+
1: "Cannot create styled-component for component: %s.\n\n",
|
|
1156
|
+
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",
|
|
1157
|
+
3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
|
|
1158
|
+
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",
|
|
1159
|
+
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",
|
|
1160
|
+
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",
|
|
1161
|
+
7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',
|
|
1162
|
+
8: 'ThemeProvider: Please make your "theme" prop an object.\n\n',
|
|
1163
|
+
9: "Missing document `<head>`\n\n",
|
|
1164
|
+
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",
|
|
1165
|
+
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",
|
|
1166
|
+
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",
|
|
1167
|
+
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",
|
|
1168
|
+
14: 'ThemeProvider: "theme" prop is required.\n\n',
|
|
1169
|
+
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",
|
|
1170
|
+
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",
|
|
1171
|
+
17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",
|
|
1172
|
+
18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"
|
|
1173
|
+
} : {};
|
|
1174
|
+
function de() {
|
|
1175
|
+
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1176
|
+
for (var n = e[0], o = [], r = 1, s = e.length; r < s; r += 1) o.push(e[r]);
|
|
1177
|
+
return o.forEach(function (e) {
|
|
1178
|
+
n = n.replace(/%[a-z]/, e);
|
|
1179
|
+
}), n;
|
|
1383
1180
|
}
|
|
1384
|
-
function
|
|
1385
|
-
for (var
|
|
1386
|
-
|
|
1181
|
+
function he(t) {
|
|
1182
|
+
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1183
|
+
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(de.apply(void 0, __spreadArray([pe[t]], n, !1)).trim());
|
|
1387
1184
|
}
|
|
1388
|
-
var
|
|
1185
|
+
var fe = function () {
|
|
1389
1186
|
function e(e) {
|
|
1390
1187
|
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e;
|
|
1391
1188
|
}
|
|
1392
|
-
|
|
1393
|
-
return t.indexOfGroup = function (e) {
|
|
1189
|
+
return e.prototype.indexOfGroup = function (e) {
|
|
1394
1190
|
for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n];
|
|
1395
1191
|
return t;
|
|
1396
|
-
},
|
|
1192
|
+
}, e.prototype.insertRules = function (e, t) {
|
|
1397
1193
|
if (e >= this.groupSizes.length) {
|
|
1398
|
-
for (var n = this.groupSizes,
|
|
1399
|
-
this.groupSizes = new Uint32Array(
|
|
1400
|
-
for (var s =
|
|
1194
|
+
for (var n = this.groupSizes, o = n.length, r = o; e >= r;) if ((r <<= 1) < 0) throw he(16, "".concat(e));
|
|
1195
|
+
this.groupSizes = new Uint32Array(r), this.groupSizes.set(n), this.length = r;
|
|
1196
|
+
for (var s = o; s < r; s++) this.groupSizes[s] = 0;
|
|
1401
1197
|
}
|
|
1402
|
-
for (var i = this.indexOfGroup(e + 1), a = 0,
|
|
1403
|
-
},
|
|
1198
|
+
for (var i = this.indexOfGroup(e + 1), a = (s = 0, t.length); s < a; s++) this.tag.insertRule(i, t[s]) && (this.groupSizes[e]++, i++);
|
|
1199
|
+
}, e.prototype.clearGroup = function (e) {
|
|
1404
1200
|
if (e < this.length) {
|
|
1405
1201
|
var t = this.groupSizes[e],
|
|
1406
1202
|
n = this.indexOfGroup(e),
|
|
1407
|
-
|
|
1203
|
+
o = n + t;
|
|
1408
1204
|
this.groupSizes[e] = 0;
|
|
1409
|
-
for (var
|
|
1205
|
+
for (var r = n; r < o; r++) this.tag.deleteRule(n);
|
|
1410
1206
|
}
|
|
1411
|
-
},
|
|
1207
|
+
}, e.prototype.getGroup = function (e) {
|
|
1412
1208
|
var t = "";
|
|
1413
1209
|
if (e >= this.length || 0 === this.groupSizes[e]) return t;
|
|
1414
|
-
for (var n = this.groupSizes[e],
|
|
1210
|
+
for (var n = this.groupSizes[e], o = this.indexOfGroup(e), r = o + n, s = o; s < r; s++) t += "".concat(this.tag.getRule(s)).concat(g);
|
|
1415
1211
|
return t;
|
|
1416
1212
|
}, e;
|
|
1417
1213
|
}(),
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
if (
|
|
1423
|
-
for (;
|
|
1424
|
-
var t =
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
z = function (e) {
|
|
1428
|
-
return x.get(e);
|
|
1214
|
+
me = new Map(),
|
|
1215
|
+
ye = new Map(),
|
|
1216
|
+
ve = 1,
|
|
1217
|
+
ge = function (e) {
|
|
1218
|
+
if (me.has(e)) return me.get(e);
|
|
1219
|
+
for (; ye.has(ve);) ve++;
|
|
1220
|
+
var t = ve++;
|
|
1221
|
+
if ("production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > 1073741824)) throw he(16, "".concat(t));
|
|
1222
|
+
return me.set(e, t), ye.set(t, e), t;
|
|
1429
1223
|
},
|
|
1430
|
-
|
|
1431
|
-
|
|
1224
|
+
Se = function (e, t) {
|
|
1225
|
+
ve = t + 1, me.set(e, t), ye.set(t, e);
|
|
1432
1226
|
},
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
for (var
|
|
1227
|
+
we = "style[".concat(f, "][").concat(y, '="').concat(v, '"]'),
|
|
1228
|
+
be = new RegExp("^".concat(f, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),
|
|
1229
|
+
Ee = function (e, t, n) {
|
|
1230
|
+
for (var o, r = n.split(","), s = 0, i = r.length; s < i; s++) (o = r[s]) && e.registerName(t, o);
|
|
1437
1231
|
},
|
|
1438
|
-
|
|
1439
|
-
for (var n = (t.textContent
|
|
1440
|
-
var
|
|
1441
|
-
if (
|
|
1442
|
-
var
|
|
1443
|
-
if (
|
|
1444
|
-
var
|
|
1445
|
-
u =
|
|
1446
|
-
0 !==
|
|
1447
|
-
} else r.push(
|
|
1232
|
+
Ne = function (e, t) {
|
|
1233
|
+
for (var n, o = (null !== (n = t.textContent) && void 0 !== n ? n : "").split(g), r = [], s = 0, i = o.length; s < i; s++) {
|
|
1234
|
+
var a = o[s].trim();
|
|
1235
|
+
if (a) {
|
|
1236
|
+
var c = a.match(be);
|
|
1237
|
+
if (c) {
|
|
1238
|
+
var l = 0 | parseInt(c[1], 10),
|
|
1239
|
+
u = c[2];
|
|
1240
|
+
0 !== l && (Se(u, l), Ee(e, u, c[3]), e.getTag().insertRules(l, r)), r.length = 0;
|
|
1241
|
+
} else r.push(a);
|
|
1448
1242
|
}
|
|
1449
1243
|
}
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1244
|
+
};
|
|
1245
|
+
function Pe() {
|
|
1246
|
+
return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
|
|
1247
|
+
}
|
|
1248
|
+
var _e = function (e) {
|
|
1455
1249
|
var t = document.head,
|
|
1456
1250
|
n = e || t,
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
if (r && 1 === r.nodeType && r.hasAttribute(N)) return r;
|
|
1462
|
-
}
|
|
1251
|
+
o = document.createElement("style"),
|
|
1252
|
+
r = function (e) {
|
|
1253
|
+
var t = Array.from(e.querySelectorAll("style[".concat(f, "]")));
|
|
1254
|
+
return t[t.length - 1];
|
|
1463
1255
|
}(n),
|
|
1464
|
-
s = void 0 !==
|
|
1465
|
-
|
|
1466
|
-
var i =
|
|
1467
|
-
return i &&
|
|
1256
|
+
s = void 0 !== r ? r.nextSibling : null;
|
|
1257
|
+
o.setAttribute(f, m), o.setAttribute(y, v);
|
|
1258
|
+
var i = Pe();
|
|
1259
|
+
return i && o.setAttribute("nonce", i), n.insertBefore(o, s), o;
|
|
1468
1260
|
},
|
|
1469
|
-
|
|
1261
|
+
Ce = function () {
|
|
1470
1262
|
function e(e) {
|
|
1471
|
-
|
|
1472
|
-
t.appendChild(document.createTextNode("")), this.sheet = function (e) {
|
|
1263
|
+
this.element = _e(e), this.element.appendChild(document.createTextNode("")), this.sheet = function (e) {
|
|
1473
1264
|
if (e.sheet) return e.sheet;
|
|
1474
|
-
for (var t = document.styleSheets, n = 0,
|
|
1475
|
-
var
|
|
1476
|
-
if (
|
|
1265
|
+
for (var t = document.styleSheets, n = 0, o = t.length; n < o; n++) {
|
|
1266
|
+
var r = t[n];
|
|
1267
|
+
if (r.ownerNode === e) return r;
|
|
1477
1268
|
}
|
|
1478
|
-
|
|
1479
|
-
}(
|
|
1269
|
+
throw he(17);
|
|
1270
|
+
}(this.element), this.length = 0;
|
|
1480
1271
|
}
|
|
1481
|
-
|
|
1482
|
-
return t.insertRule = function (e, t) {
|
|
1272
|
+
return e.prototype.insertRule = function (e, t) {
|
|
1483
1273
|
try {
|
|
1484
1274
|
return this.sheet.insertRule(t, e), this.length++, !0;
|
|
1485
1275
|
} catch (e) {
|
|
1486
1276
|
return !1;
|
|
1487
1277
|
}
|
|
1488
|
-
},
|
|
1278
|
+
}, e.prototype.deleteRule = function (e) {
|
|
1489
1279
|
this.sheet.deleteRule(e), this.length--;
|
|
1490
|
-
},
|
|
1280
|
+
}, e.prototype.getRule = function (e) {
|
|
1491
1281
|
var t = this.sheet.cssRules[e];
|
|
1492
|
-
return
|
|
1282
|
+
return t && t.cssText ? t.cssText : "";
|
|
1493
1283
|
}, e;
|
|
1494
1284
|
}(),
|
|
1495
|
-
|
|
1285
|
+
Ie = function () {
|
|
1496
1286
|
function e(e) {
|
|
1497
|
-
|
|
1498
|
-
this.nodes = t.childNodes, this.length = 0;
|
|
1287
|
+
this.element = _e(e), this.nodes = this.element.childNodes, this.length = 0;
|
|
1499
1288
|
}
|
|
1500
|
-
|
|
1501
|
-
return t.insertRule = function (e, t) {
|
|
1289
|
+
return e.prototype.insertRule = function (e, t) {
|
|
1502
1290
|
if (e <= this.length && e >= 0) {
|
|
1503
|
-
var n = document.createTextNode(t)
|
|
1504
|
-
|
|
1505
|
-
return this.element.insertBefore(n, r || null), this.length++, !0;
|
|
1291
|
+
var n = document.createTextNode(t);
|
|
1292
|
+
return this.element.insertBefore(n, this.nodes[e] || null), this.length++, !0;
|
|
1506
1293
|
}
|
|
1507
1294
|
return !1;
|
|
1508
|
-
},
|
|
1295
|
+
}, e.prototype.deleteRule = function (e) {
|
|
1509
1296
|
this.element.removeChild(this.nodes[e]), this.length--;
|
|
1510
|
-
},
|
|
1297
|
+
}, e.prototype.getRule = function (e) {
|
|
1511
1298
|
return e < this.length ? this.nodes[e].textContent : "";
|
|
1512
1299
|
}, e;
|
|
1513
1300
|
}(),
|
|
1514
|
-
|
|
1301
|
+
Ae = function () {
|
|
1515
1302
|
function e(e) {
|
|
1516
1303
|
this.rules = [], this.length = 0;
|
|
1517
1304
|
}
|
|
1518
|
-
|
|
1519
|
-
return t.insertRule = function (e, t) {
|
|
1305
|
+
return e.prototype.insertRule = function (e, t) {
|
|
1520
1306
|
return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0);
|
|
1521
|
-
},
|
|
1307
|
+
}, e.prototype.deleteRule = function (e) {
|
|
1522
1308
|
this.rules.splice(e, 1), this.length--;
|
|
1523
|
-
},
|
|
1309
|
+
}, e.prototype.getRule = function (e) {
|
|
1524
1310
|
return e < this.length ? this.rules[e] : "";
|
|
1525
1311
|
}, e;
|
|
1526
1312
|
}(),
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
isServer: !
|
|
1530
|
-
useCSSOMInjection: !
|
|
1313
|
+
Oe = S,
|
|
1314
|
+
De = {
|
|
1315
|
+
isServer: !S,
|
|
1316
|
+
useCSSOMInjection: !w
|
|
1531
1317
|
},
|
|
1532
|
-
|
|
1533
|
-
function e(e,
|
|
1534
|
-
void 0 === e && (e =
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1318
|
+
Re = function () {
|
|
1319
|
+
function e(e, n, o) {
|
|
1320
|
+
void 0 === e && (e = C), void 0 === n && (n = {});
|
|
1321
|
+
var r = this;
|
|
1322
|
+
this.options = __assign(__assign({}, De), e), this.gs = n, this.names = new Map(o), this.server = !!e.isServer, !this.server && S && Oe && (Oe = !1, function (e) {
|
|
1323
|
+
for (var t = document.querySelectorAll(we), n = 0, o = t.length; n < o; n++) {
|
|
1324
|
+
var r = t[n];
|
|
1325
|
+
r && r.getAttribute(f) !== m && (Ne(e, r), r.parentNode && r.parentNode.removeChild(r));
|
|
1538
1326
|
}
|
|
1539
|
-
}(this))
|
|
1327
|
+
}(this)), ue(this, function () {
|
|
1328
|
+
return function (e) {
|
|
1329
|
+
for (var t = e.getTag(), n = t.length, o = "", r = function (n) {
|
|
1330
|
+
var r = function (e) {
|
|
1331
|
+
return ye.get(e);
|
|
1332
|
+
}(n);
|
|
1333
|
+
if (void 0 === r) return "continue";
|
|
1334
|
+
var s = e.names.get(r),
|
|
1335
|
+
i = t.getGroup(n);
|
|
1336
|
+
if (void 0 === s || 0 === i.length) return "continue";
|
|
1337
|
+
var a = "".concat(f, ".g").concat(n, '[id="').concat(r, '"]'),
|
|
1338
|
+
c = "";
|
|
1339
|
+
void 0 !== s && s.forEach(function (e) {
|
|
1340
|
+
e.length > 0 && (c += "".concat(e, ","));
|
|
1341
|
+
}), o += "".concat(i).concat(a, '{content:"').concat(c, '"}').concat(g);
|
|
1342
|
+
}, s = 0; s < n; s++) r(s);
|
|
1343
|
+
return o;
|
|
1344
|
+
}(r);
|
|
1345
|
+
});
|
|
1540
1346
|
}
|
|
1541
|
-
e.registerId = function (e) {
|
|
1542
|
-
return
|
|
1543
|
-
}
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
return void 0 === n && (n = !0), new e(y({}, this.options, {}, t), this.gs, n && this.names || void 0);
|
|
1547
|
-
}, t.allocateGSInstance = function (e) {
|
|
1347
|
+
return e.registerId = function (e) {
|
|
1348
|
+
return ge(e);
|
|
1349
|
+
}, e.prototype.reconstructWithOptions = function (n, o) {
|
|
1350
|
+
return void 0 === o && (o = !0), new e(__assign(__assign({}, this.options), n), this.gs, o && this.names || void 0);
|
|
1351
|
+
}, e.prototype.allocateGSInstance = function (e) {
|
|
1548
1352
|
return this.gs[e] = (this.gs[e] || 0) + 1;
|
|
1549
|
-
},
|
|
1550
|
-
return this.tag || (this.tag = (
|
|
1551
|
-
|
|
1552
|
-
|
|
1353
|
+
}, e.prototype.getTag = function () {
|
|
1354
|
+
return this.tag || (this.tag = (e = function (e) {
|
|
1355
|
+
var t = e.useCSSOMInjection,
|
|
1356
|
+
n = e.target;
|
|
1357
|
+
return e.isServer ? new Ae(n) : t ? new Ce(n) : new Ie(n);
|
|
1358
|
+
}(this.options), new fe(e)));
|
|
1359
|
+
var e;
|
|
1360
|
+
}, e.prototype.hasNameForId = function (e, t) {
|
|
1553
1361
|
return this.names.has(e) && this.names.get(e).has(t);
|
|
1554
|
-
},
|
|
1555
|
-
if (
|
|
1362
|
+
}, e.prototype.registerName = function (e, t) {
|
|
1363
|
+
if (ge(e), this.names.has(e)) this.names.get(e).add(t);else {
|
|
1556
1364
|
var n = new Set();
|
|
1557
1365
|
n.add(t), this.names.set(e, n);
|
|
1558
1366
|
}
|
|
1559
|
-
},
|
|
1560
|
-
this.registerName(e, t), this.getTag().insertRules(
|
|
1561
|
-
},
|
|
1367
|
+
}, e.prototype.insertRules = function (e, t, n) {
|
|
1368
|
+
this.registerName(e, t), this.getTag().insertRules(ge(e), n);
|
|
1369
|
+
}, e.prototype.clearNames = function (e) {
|
|
1562
1370
|
this.names.has(e) && this.names.get(e).clear();
|
|
1563
|
-
},
|
|
1564
|
-
this.getTag().clearGroup(
|
|
1565
|
-
},
|
|
1371
|
+
}, e.prototype.clearRules = function (e) {
|
|
1372
|
+
this.getTag().clearGroup(ge(e)), this.clearNames(e);
|
|
1373
|
+
}, e.prototype.clearTag = function () {
|
|
1566
1374
|
this.tag = void 0;
|
|
1567
|
-
}, t.toString = function () {
|
|
1568
|
-
return function (e) {
|
|
1569
|
-
for (var t = e.getTag(), n = t.length, r = "", o = 0; o < n; o++) {
|
|
1570
|
-
var s = z(o);
|
|
1571
|
-
if (void 0 !== s) {
|
|
1572
|
-
var i = e.names.get(s),
|
|
1573
|
-
a = t.getGroup(o);
|
|
1574
|
-
if (i && a && i.size) {
|
|
1575
|
-
var c = N + ".g" + o + '[id="' + s + '"]',
|
|
1576
|
-
u = "";
|
|
1577
|
-
void 0 !== i && i.forEach(function (e) {
|
|
1578
|
-
e.length > 0 && (u += e + ",");
|
|
1579
|
-
}), r += "" + a + c + '{content:"' + u + '"}/*!sc*/\n';
|
|
1580
|
-
}
|
|
1581
|
-
}
|
|
1582
|
-
}
|
|
1583
|
-
return r;
|
|
1584
|
-
}(this);
|
|
1585
1375
|
}, e;
|
|
1586
1376
|
}(),
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
function
|
|
1377
|
+
Te = /&/g,
|
|
1378
|
+
ke = /^\s*\/\/.*$/gm;
|
|
1379
|
+
function je(e, t) {
|
|
1380
|
+
return e.map(function (e) {
|
|
1381
|
+
return "rule" === e.type && (e.value = "".concat(t, " ").concat(e.value), e.value = e.value.replaceAll(",", ",".concat(t, " ")), e.props = e.props.map(function (e) {
|
|
1382
|
+
return "".concat(t, " ").concat(e);
|
|
1383
|
+
})), Array.isArray(e.children) && "@keyframes" !== e.type && (e.children = je(e.children, t)), e;
|
|
1384
|
+
});
|
|
1385
|
+
}
|
|
1386
|
+
function xe(e) {
|
|
1592
1387
|
var t,
|
|
1593
|
-
n
|
|
1594
|
-
|
|
1595
|
-
|
|
1388
|
+
n,
|
|
1389
|
+
o,
|
|
1390
|
+
r = void 0 === e ? C : e,
|
|
1391
|
+
s = r.options,
|
|
1392
|
+
i = void 0 === s ? C : s,
|
|
1393
|
+
a = r.plugins,
|
|
1394
|
+
c = void 0 === a ? _ : a,
|
|
1395
|
+
l = function (e, o, r) {
|
|
1396
|
+
return r.startsWith(n) && r.endsWith(n) && r.replaceAll(n, "").length > 0 ? ".".concat(t) : e;
|
|
1397
|
+
},
|
|
1398
|
+
u = c.slice();
|
|
1399
|
+
u.push(function (e) {
|
|
1400
|
+
e.type === RULESET && e.value.includes("&") && (e.props[0] = e.props[0].replace(Te, n).replace(o, l));
|
|
1401
|
+
}), i.prefix && u.push(prefixer), u.push(stringify);
|
|
1402
|
+
var p = function (e, r, s, a) {
|
|
1403
|
+
void 0 === r && (r = ""), void 0 === s && (s = ""), void 0 === a && (a = "&"), t = a, n = r, o = new RegExp("\\".concat(n, "\\b"), "g");
|
|
1404
|
+
var c = e.replace(ke, ""),
|
|
1405
|
+
l = compile(s || r ? "".concat(s, " ").concat(r, " { ").concat(c, " }") : c);
|
|
1406
|
+
i.namespace && (l = je(l, i.namespace));
|
|
1407
|
+
var p = [];
|
|
1408
|
+
return serialize(l, middleware(u.concat(rulesheet(function (e) {
|
|
1409
|
+
return p.push(e);
|
|
1410
|
+
})))), p;
|
|
1411
|
+
};
|
|
1412
|
+
return p.hash = c.length ? c.reduce(function (e, t) {
|
|
1413
|
+
return t.name || he(15), M(e, t.name);
|
|
1414
|
+
}, F).toString() : "", p;
|
|
1596
1415
|
}
|
|
1597
|
-
var
|
|
1598
|
-
|
|
1599
|
-
|
|
1416
|
+
var Ve = new Re(),
|
|
1417
|
+
Fe = xe(),
|
|
1418
|
+
Me = React.createContext({
|
|
1419
|
+
shouldForwardProp: void 0,
|
|
1420
|
+
styleSheet: Ve,
|
|
1421
|
+
stylis: Fe
|
|
1422
|
+
});
|
|
1423
|
+
Me.Consumer;
|
|
1424
|
+
React.createContext(void 0);
|
|
1425
|
+
function Be() {
|
|
1426
|
+
return React.useContext(Me);
|
|
1427
|
+
}
|
|
1428
|
+
var Ge = function () {
|
|
1429
|
+
function e(e, t) {
|
|
1430
|
+
var n = this;
|
|
1431
|
+
this.inject = function (e, t) {
|
|
1432
|
+
void 0 === t && (t = Fe);
|
|
1433
|
+
var o = n.name + t.hash;
|
|
1434
|
+
e.hasNameForId(n.id, o) || e.insertRules(n.id, o, t(n.rules, o, "@keyframes"));
|
|
1435
|
+
}, this.name = e, this.id = "sc-keyframes-".concat(e), this.rules = t, ue(this, function () {
|
|
1436
|
+
throw he(12, String(n.name));
|
|
1437
|
+
});
|
|
1438
|
+
}
|
|
1439
|
+
return e.prototype.getName = function (e) {
|
|
1440
|
+
return void 0 === e && (e = Fe), this.name + e.hash;
|
|
1441
|
+
}, e;
|
|
1442
|
+
}(),
|
|
1443
|
+
Ye = function (e) {
|
|
1444
|
+
return e >= "A" && e <= "Z";
|
|
1445
|
+
};
|
|
1446
|
+
function qe(e) {
|
|
1447
|
+
for (var t = "", n = 0; n < e.length; n++) {
|
|
1448
|
+
var o = e[n];
|
|
1449
|
+
if (1 === n && "-" === o && "-" === e[0]) return e;
|
|
1450
|
+
Ye(o) ? t += "-" + o.toLowerCase() : t += o;
|
|
1451
|
+
}
|
|
1452
|
+
return t.startsWith("ms-") ? "-" + t : t;
|
|
1453
|
+
}
|
|
1454
|
+
var We = function (e) {
|
|
1455
|
+
return null == e || !1 === e || "" === e;
|
|
1600
1456
|
},
|
|
1601
|
-
|
|
1602
|
-
|
|
1457
|
+
He = function (t) {
|
|
1458
|
+
var n,
|
|
1459
|
+
o,
|
|
1460
|
+
r = [];
|
|
1461
|
+
for (var s in t) {
|
|
1462
|
+
var i = t[s];
|
|
1463
|
+
t.hasOwnProperty(s) && !We(i) && (Array.isArray(i) && i.isCss || re(i) ? r.push("".concat(qe(s), ":"), i, ";") : ce(i) ? r.push.apply(r, __spreadArray(__spreadArray(["".concat(s, " {")], He(i), !1), ["}"], !1)) : r.push("".concat(qe(s), ": ").concat((n = s, null == (o = i) || "boolean" == typeof o || "" === o ? "" : "number" != typeof o || 0 === o || n in unitlessKeys || n.startsWith("--") ? String(o).trim() : "".concat(o, "px")), ";")));
|
|
1464
|
+
}
|
|
1465
|
+
return r;
|
|
1603
1466
|
};
|
|
1604
|
-
function
|
|
1467
|
+
function Ue(e, t, n, o) {
|
|
1468
|
+
if (We(e)) return [];
|
|
1469
|
+
if (se(e)) return [".".concat(e.styledComponentId)];
|
|
1470
|
+
if (re(e)) {
|
|
1471
|
+
if (!re(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
|
|
1472
|
+
var r = e(t);
|
|
1473
|
+
return "production" === process.env.NODE_ENV || "object" != typeof r || Array.isArray(r) || r instanceof Ge || ce(r) || null === r || console.error("".concat(B(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.")), Ue(r, t, n, o);
|
|
1474
|
+
}
|
|
1475
|
+
var s;
|
|
1476
|
+
return e instanceof Ge ? n ? (e.inject(n, o), [e.getName(o)]) : [e] : ce(e) ? He(e) : Array.isArray(e) ? Array.prototype.concat.apply(_, e.map(function (e) {
|
|
1477
|
+
return Ue(e, t, n, o);
|
|
1478
|
+
})) : [e.toString()];
|
|
1479
|
+
}
|
|
1480
|
+
function Je(e) {
|
|
1605
1481
|
for (var t = 0; t < e.length; t += 1) {
|
|
1606
1482
|
var n = e[t];
|
|
1607
|
-
if (
|
|
1483
|
+
if (re(n) && !se(n)) return !1;
|
|
1608
1484
|
}
|
|
1609
1485
|
return !0;
|
|
1610
1486
|
}
|
|
1611
|
-
var
|
|
1612
|
-
|
|
1487
|
+
var Xe = z(v),
|
|
1488
|
+
Ze = function () {
|
|
1613
1489
|
function e(e, t, n) {
|
|
1614
|
-
this.rules = e, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) &&
|
|
1490
|
+
this.rules = e, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && Je(e), this.componentId = t, this.baseHash = M(Xe, t), this.baseStyle = n, Re.registerId(t);
|
|
1615
1491
|
}
|
|
1616
1492
|
return e.prototype.generateAndInjectStyles = function (e, t, n) {
|
|
1617
|
-
var
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
t.insertRules(r, i, a);
|
|
1493
|
+
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, t, n) : "";
|
|
1494
|
+
if (this.isStatic && !n.hash) {
|
|
1495
|
+
if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId)) o = ie(o, this.staticRulesId);else {
|
|
1496
|
+
var r = ae(Ue(this.rules, e, t, n)),
|
|
1497
|
+
s = x(M(this.baseHash, r) >>> 0);
|
|
1498
|
+
if (!t.hasNameForId(this.componentId, s)) {
|
|
1499
|
+
var i = n(r, ".".concat(s), void 0, this.componentId);
|
|
1500
|
+
t.insertRules(this.componentId, s, i);
|
|
1626
1501
|
}
|
|
1627
|
-
o
|
|
1502
|
+
o = ie(o, s), this.staticRulesId = s;
|
|
1628
1503
|
}
|
|
1629
1504
|
} else {
|
|
1630
|
-
for (var
|
|
1631
|
-
var
|
|
1632
|
-
if ("string" == typeof
|
|
1633
|
-
var p =
|
|
1634
|
-
|
|
1635
|
-
u = ee(u, f + d), l += f;
|
|
1505
|
+
for (var a = M(this.baseHash, n.hash), c = "", l = 0; l < this.rules.length; l++) {
|
|
1506
|
+
var u = this.rules[l];
|
|
1507
|
+
if ("string" == typeof u) c += u, "production" !== process.env.NODE_ENV && (a = M(a, u));else if (u) {
|
|
1508
|
+
var p = ae(Ue(u, e, t, n));
|
|
1509
|
+
a = M(a, p + l), c += p;
|
|
1636
1510
|
}
|
|
1637
1511
|
}
|
|
1638
|
-
if (
|
|
1639
|
-
var
|
|
1640
|
-
|
|
1641
|
-
var y = n(l, "." + m, void 0, r);
|
|
1642
|
-
t.insertRules(r, m, y);
|
|
1643
|
-
}
|
|
1644
|
-
o.push(m);
|
|
1512
|
+
if (c) {
|
|
1513
|
+
var d = x(a >>> 0);
|
|
1514
|
+
t.hasNameForId(this.componentId, d) || t.insertRules(this.componentId, d, n(c, ".".concat(d), void 0, this.componentId)), o = ie(o, d);
|
|
1645
1515
|
}
|
|
1646
1516
|
}
|
|
1647
|
-
return o
|
|
1517
|
+
return o;
|
|
1648
1518
|
}, e;
|
|
1649
1519
|
}(),
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
case 102:
|
|
1681
|
-
case 112:
|
|
1682
|
-
return e(o[0] + r), "";
|
|
1683
|
-
default:
|
|
1684
|
-
return r + (0 === d ? "/*|*/" : "");
|
|
1685
|
-
}
|
|
1686
|
-
case -2:
|
|
1687
|
-
r.split("/*|*/}").forEach(t);
|
|
1688
|
-
}
|
|
1520
|
+
Ke = React.createContext(void 0);
|
|
1521
|
+
Ke.Consumer;
|
|
1522
|
+
var nt = {},
|
|
1523
|
+
ot = new Set();
|
|
1524
|
+
function rt(e, r, s) {
|
|
1525
|
+
var i = se(e),
|
|
1526
|
+
a = e,
|
|
1527
|
+
c = !L(e),
|
|
1528
|
+
p = r.attrs,
|
|
1529
|
+
d = void 0 === p ? _ : p,
|
|
1530
|
+
h = r.componentId,
|
|
1531
|
+
f = void 0 === h ? function (e, t) {
|
|
1532
|
+
var n = "string" != typeof e ? "sc" : R(e);
|
|
1533
|
+
nt[n] = (nt[n] || 0) + 1;
|
|
1534
|
+
var o = "".concat(n, "-").concat($(v + n + nt[n]));
|
|
1535
|
+
return t ? "".concat(t, "-").concat(o) : o;
|
|
1536
|
+
}(r.displayName, r.parentComponentId) : h,
|
|
1537
|
+
m = r.displayName,
|
|
1538
|
+
y = void 0 === m ? function (e) {
|
|
1539
|
+
return L(e) ? "styled.".concat(e) : "Styled(".concat(B(e), ")");
|
|
1540
|
+
}(e) : m,
|
|
1541
|
+
g = r.displayName && r.componentId ? "".concat(R(r.displayName), "-").concat(r.componentId) : r.componentId || f,
|
|
1542
|
+
S = i && a.attrs ? a.attrs.concat(d).filter(Boolean) : d,
|
|
1543
|
+
w = r.shouldForwardProp;
|
|
1544
|
+
if (i && a.shouldForwardProp) {
|
|
1545
|
+
var b = a.shouldForwardProp;
|
|
1546
|
+
if (r.shouldForwardProp) {
|
|
1547
|
+
var E = r.shouldForwardProp;
|
|
1548
|
+
w = function (e, t) {
|
|
1549
|
+
return b(e, t) && E(e, t);
|
|
1689
1550
|
};
|
|
1690
|
-
}
|
|
1691
|
-
d.push(e);
|
|
1692
|
-
}),
|
|
1693
|
-
f = function (e, r, s) {
|
|
1694
|
-
return 0 === r && -1 !== ie.indexOf(s[n.length]) || s.match(o) ? e : "." + t;
|
|
1695
|
-
};
|
|
1696
|
-
function m(e, s, i, a) {
|
|
1697
|
-
void 0 === a && (a = "&");
|
|
1698
|
-
var c = e.replace(se, ""),
|
|
1699
|
-
u = s && i ? i + " " + s + " { " + c + " }" : c;
|
|
1700
|
-
return t = a, n = s, r = new RegExp("\\" + n + "\\b", "g"), o = new RegExp("(\\" + n + "\\b){2,}"), l(i || !s ? "" : s, u);
|
|
1701
|
-
}
|
|
1702
|
-
return l.use([].concat(u, [function (e, t, o) {
|
|
1703
|
-
2 === e && o.length && o[0].lastIndexOf(n) > 0 && (o[0] = o[0].replace(r, f));
|
|
1704
|
-
}, p, function (e) {
|
|
1705
|
-
if (-2 === e) {
|
|
1706
|
-
var t = d;
|
|
1707
|
-
return d = [], t;
|
|
1708
|
-
}
|
|
1709
|
-
}])), m.hash = u.length ? u.reduce(function (e, t) {
|
|
1710
|
-
return t.name || D(15), ee(e, t.name);
|
|
1711
|
-
}, 5381).toString() : "", m;
|
|
1712
|
-
}
|
|
1713
|
-
var ce = React.createContext();
|
|
1714
|
-
ce.Consumer;
|
|
1715
|
-
var le = React.createContext(),
|
|
1716
|
-
de = (le.Consumer, new X()),
|
|
1717
|
-
he = ae();
|
|
1718
|
-
function pe() {
|
|
1719
|
-
return React.useContext(ce) || de;
|
|
1720
|
-
}
|
|
1721
|
-
function fe() {
|
|
1722
|
-
return React.useContext(le) || he;
|
|
1723
|
-
}
|
|
1724
|
-
var ye = function () {
|
|
1725
|
-
function e(e, t) {
|
|
1726
|
-
var n = this;
|
|
1727
|
-
this.inject = function (e, t) {
|
|
1728
|
-
void 0 === t && (t = he);
|
|
1729
|
-
var r = n.name + t.hash;
|
|
1730
|
-
e.hasNameForId(n.id, r) || e.insertRules(n.id, r, t(n.rules, r, "@keyframes"));
|
|
1731
|
-
}, this.toString = function () {
|
|
1732
|
-
return D(12, String(n.name));
|
|
1733
|
-
}, this.name = e, this.id = "sc-keyframes-" + e, this.rules = t;
|
|
1734
|
-
}
|
|
1735
|
-
return e.prototype.getName = function (e) {
|
|
1736
|
-
return void 0 === e && (e = he), this.name + e.hash;
|
|
1737
|
-
}, e;
|
|
1738
|
-
}(),
|
|
1739
|
-
ve = /([A-Z])/,
|
|
1740
|
-
ge = /([A-Z])/g,
|
|
1741
|
-
Se = /^ms-/,
|
|
1742
|
-
we = function (e) {
|
|
1743
|
-
return "-" + e.toLowerCase();
|
|
1744
|
-
};
|
|
1745
|
-
function Ee(e) {
|
|
1746
|
-
return ve.test(e) ? e.replace(ge, we).replace(Se, "-ms-") : e;
|
|
1747
|
-
}
|
|
1748
|
-
var be = function (e) {
|
|
1749
|
-
return null == e || !1 === e || "" === e;
|
|
1750
|
-
};
|
|
1751
|
-
function _e(e, n, r, o) {
|
|
1752
|
-
if (Array.isArray(e)) {
|
|
1753
|
-
for (var s, i = [], a = 0, c = e.length; a < c; a += 1) "" !== (s = _e(e[a], n, r, o)) && (Array.isArray(s) ? i.push.apply(i, s) : i.push(s));
|
|
1754
|
-
return i;
|
|
1755
|
-
}
|
|
1756
|
-
if (be(e)) return "";
|
|
1757
|
-
if (_(e)) return "." + e.styledComponentId;
|
|
1758
|
-
if (E(e)) {
|
|
1759
|
-
if ("function" != typeof (l = e) || l.prototype && l.prototype.isReactComponent || !n) return e;
|
|
1760
|
-
var u = e(n);
|
|
1761
|
-
return "production" !== process.env.NODE_ENV && reactIsExports$1.isElement(u) && console.warn(b(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."), _e(u, n, r, o);
|
|
1551
|
+
} else w = b;
|
|
1762
1552
|
}
|
|
1763
|
-
var
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
r = console.error;
|
|
1785
|
-
try {
|
|
1786
|
-
var o = !0;
|
|
1787
|
-
console.error = function (e) {
|
|
1788
|
-
if (Ce.test(e)) o = !1, Ie.delete(n);else {
|
|
1789
|
-
for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++) s[i - 1] = arguments[i];
|
|
1790
|
-
r.apply(void 0, [e].concat(s));
|
|
1553
|
+
var N = new Ze(s, g, i ? a.componentStyle : void 0);
|
|
1554
|
+
function O(e, r) {
|
|
1555
|
+
return function (e, r, s) {
|
|
1556
|
+
var i = e.attrs,
|
|
1557
|
+
a = e.componentStyle,
|
|
1558
|
+
c = e.defaultProps,
|
|
1559
|
+
p = e.foldedComponentIds,
|
|
1560
|
+
d = e.styledComponentId,
|
|
1561
|
+
h = e.target,
|
|
1562
|
+
f = React.useContext(Ke),
|
|
1563
|
+
m = Be(),
|
|
1564
|
+
y = e.shouldForwardProp || m.shouldForwardProp;
|
|
1565
|
+
"production" !== process.env.NODE_ENV && React.useDebugValue(d);
|
|
1566
|
+
var v = I(r, f, c) || C,
|
|
1567
|
+
g = function (e, n, o) {
|
|
1568
|
+
for (var r, s = __assign(__assign({}, n), {
|
|
1569
|
+
className: void 0,
|
|
1570
|
+
theme: o
|
|
1571
|
+
}), i = 0; i < e.length; i += 1) {
|
|
1572
|
+
var a = re(r = e[i]) ? r(s) : r;
|
|
1573
|
+
for (var c in a) s[c] = "className" === c ? ie(s[c], a[c]) : "style" === c ? __assign(__assign({}, s[c]), a[c]) : a[c];
|
|
1791
1574
|
}
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
return e.replace(Re, "-").replace(De, "");
|
|
1807
|
-
}
|
|
1808
|
-
var Te = function (e) {
|
|
1809
|
-
return Q(te(e) >>> 0);
|
|
1810
|
-
};
|
|
1811
|
-
function xe(e) {
|
|
1812
|
-
return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1813
|
-
}
|
|
1814
|
-
var ke = function (e) {
|
|
1815
|
-
return "function" == typeof e || "object" == typeof e && null !== e && !Array.isArray(e);
|
|
1816
|
-
},
|
|
1817
|
-
Ve = function (e) {
|
|
1818
|
-
return "__proto__" !== e && "constructor" !== e && "prototype" !== e;
|
|
1819
|
-
};
|
|
1820
|
-
function ze(e, t, n) {
|
|
1821
|
-
var r = e[n];
|
|
1822
|
-
ke(t) && ke(r) ? Be(r, t) : e[n] = t;
|
|
1823
|
-
}
|
|
1824
|
-
function Be(e) {
|
|
1825
|
-
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
|
|
1826
|
-
for (var o = 0, s = n; o < s.length; o++) {
|
|
1827
|
-
var i = s[o];
|
|
1828
|
-
if (ke(i)) for (var a in i) Ve(a) && ze(e, i[a], a);
|
|
1575
|
+
return n.className && (s.className = ie(s.className, n.className)), s;
|
|
1576
|
+
}(i, r, v),
|
|
1577
|
+
S = g.as || h,
|
|
1578
|
+
w = {};
|
|
1579
|
+
for (var b in g) void 0 === g[b] || "$" === b[0] || "as" === b || "theme" === b && g.theme === v || ("forwardedAs" === b ? w.as = g.forwardedAs : y && !y(b, S) || (w[b] = g[b], y || "development" !== process.env.NODE_ENV || isPropValid(b) || ot.has(b) || !A.has(S) || (ot.add(b), console.warn('styled-components: it looks like an unknown prop "'.concat(b, '" 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.)')))));
|
|
1580
|
+
var E = function (e, t) {
|
|
1581
|
+
var n = Be(),
|
|
1582
|
+
o = e.generateAndInjectStyles(t, n.styleSheet, n.stylis);
|
|
1583
|
+
return "production" !== process.env.NODE_ENV && React.useDebugValue(o), o;
|
|
1584
|
+
}(a, g);
|
|
1585
|
+
"production" !== process.env.NODE_ENV && e.warnTooManyClasses && e.warnTooManyClasses(E);
|
|
1586
|
+
var N = ie(p, d);
|
|
1587
|
+
return E && (N += " " + E), g.className && (N += " " + g.className), w[L(S) && !A.has(S) ? "class" : "className"] = N, w.ref = s, React.createElement(S, w);
|
|
1588
|
+
}(D, e, r);
|
|
1829
1589
|
}
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
Me.Consumer;
|
|
1834
|
-
var Fe = {};
|
|
1835
|
-
function Ye(e, t, n) {
|
|
1836
|
-
var o = _(e),
|
|
1837
|
-
i = !xe(e),
|
|
1838
|
-
a = t.attrs,
|
|
1839
|
-
c = void 0 === a ? S : a,
|
|
1840
|
-
d = t.componentId,
|
|
1841
|
-
h = void 0 === d ? function (e, t) {
|
|
1842
|
-
var n = "string" != typeof e ? "sc" : je(e);
|
|
1843
|
-
Fe[n] = (Fe[n] || 0) + 1;
|
|
1844
|
-
var r = n + "-" + Te("5.3.6" + n + Fe[n]);
|
|
1845
|
-
return t ? t + "-" + r : r;
|
|
1846
|
-
}(t.displayName, t.parentComponentId) : d,
|
|
1847
|
-
p = t.displayName,
|
|
1848
|
-
v = void 0 === p ? function (e) {
|
|
1849
|
-
return xe(e) ? "styled." + e : "Styled(" + b(e) + ")";
|
|
1850
|
-
}(e) : p,
|
|
1851
|
-
g = t.displayName && t.componentId ? je(t.displayName) + "-" + t.componentId : t.componentId || h,
|
|
1852
|
-
N = o && e.attrs ? Array.prototype.concat(e.attrs, c).filter(Boolean) : c,
|
|
1853
|
-
A = t.shouldForwardProp;
|
|
1854
|
-
o && e.shouldForwardProp && (A = t.shouldForwardProp ? function (n, r, o) {
|
|
1855
|
-
return e.shouldForwardProp(n, r, o) && t.shouldForwardProp(n, r, o);
|
|
1856
|
-
} : e.shouldForwardProp);
|
|
1857
|
-
var C,
|
|
1858
|
-
I = new oe(n, g, o ? e.componentStyle : void 0),
|
|
1859
|
-
P = I.isStatic && 0 === c.length,
|
|
1860
|
-
O = function (e, t) {
|
|
1861
|
-
return function (e, t, n, r) {
|
|
1862
|
-
var o = e.attrs,
|
|
1863
|
-
i = e.componentStyle,
|
|
1864
|
-
a = e.defaultProps,
|
|
1865
|
-
c = e.foldedComponentIds,
|
|
1866
|
-
d = e.shouldForwardProp,
|
|
1867
|
-
h = e.styledComponentId,
|
|
1868
|
-
p = e.target;
|
|
1869
|
-
"production" !== process.env.NODE_ENV && React.useDebugValue(h);
|
|
1870
|
-
var m = function (e, t, n) {
|
|
1871
|
-
void 0 === e && (e = w);
|
|
1872
|
-
var r = y({}, t, {
|
|
1873
|
-
theme: e
|
|
1874
|
-
}),
|
|
1875
|
-
o = {};
|
|
1876
|
-
return n.forEach(function (e) {
|
|
1877
|
-
var t,
|
|
1878
|
-
n,
|
|
1879
|
-
s,
|
|
1880
|
-
i = e;
|
|
1881
|
-
for (t in E(i) && (i = i(r)), i) r[t] = o[t] = "className" === t ? (n = o[t], s = i[t], n && s ? n + " " + s : n || s) : i[t];
|
|
1882
|
-
}), [r, o];
|
|
1883
|
-
}(Oe(t, React.useContext(Me), a) || w, t, o),
|
|
1884
|
-
v = m[0],
|
|
1885
|
-
g = m[1],
|
|
1886
|
-
S = function (e, t, n, r) {
|
|
1887
|
-
var o = pe(),
|
|
1888
|
-
s = fe(),
|
|
1889
|
-
i = t ? e.generateAndInjectStyles(w, o, s) : e.generateAndInjectStyles(n, o, s);
|
|
1890
|
-
return "production" !== process.env.NODE_ENV && React.useDebugValue(i), "production" !== process.env.NODE_ENV && !t && r && r(i), i;
|
|
1891
|
-
}(i, r, v, "production" !== process.env.NODE_ENV ? e.warnTooManyClasses : void 0),
|
|
1892
|
-
b = n,
|
|
1893
|
-
_ = g.$as || t.$as || g.as || t.as || p,
|
|
1894
|
-
N = xe(_),
|
|
1895
|
-
A = g !== t ? y({}, t, {}, g) : t,
|
|
1896
|
-
C = {};
|
|
1897
|
-
for (var I in A) "$" !== I[0] && "as" !== I && ("forwardedAs" === I ? C.as = A[I] : (d ? d(I, isPropValid, _) : !N || isPropValid(I)) && (C[I] = A[I]));
|
|
1898
|
-
return t.style && g.style !== t.style && (C.style = y({}, t.style, {}, g.style)), C.className = Array.prototype.concat(c, h, S !== h ? S : null, t.className, g.className).filter(Boolean).join(" "), C.ref = b, React.createElement(_, C);
|
|
1899
|
-
}(C, e, t, P);
|
|
1900
|
-
};
|
|
1901
|
-
return O.displayName = v, (C = React.forwardRef(O)).attrs = N, C.componentStyle = I, C.displayName = v, C.shouldForwardProp = A, C.foldedComponentIds = o ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : S, C.styledComponentId = g, C.target = o ? e.target : e, C.withComponent = function (e) {
|
|
1902
|
-
var r = t.componentId,
|
|
1903
|
-
o = function (e, t) {
|
|
1904
|
-
if (null == e) return {};
|
|
1905
|
-
var n,
|
|
1906
|
-
r,
|
|
1907
|
-
o = {},
|
|
1908
|
-
s = Object.keys(e);
|
|
1909
|
-
for (r = 0; r < s.length; r++) n = s[r], t.indexOf(n) >= 0 || (o[n] = e[n]);
|
|
1910
|
-
return o;
|
|
1911
|
-
}(t, ["componentId"]),
|
|
1912
|
-
s = r && r + "-" + (xe(e) ? e : je(b(e)));
|
|
1913
|
-
return Ye(e, y({}, o, {
|
|
1914
|
-
attrs: N,
|
|
1915
|
-
componentId: s
|
|
1916
|
-
}), n);
|
|
1917
|
-
}, Object.defineProperty(C, "defaultProps", {
|
|
1590
|
+
O.displayName = y;
|
|
1591
|
+
var D = React.forwardRef(O);
|
|
1592
|
+
return D.attrs = S, D.componentStyle = N, D.displayName = y, D.shouldForwardProp = w, D.foldedComponentIds = i ? ie(a.foldedComponentIds, a.styledComponentId) : "", D.styledComponentId = g, D.target = i ? a.target : e, Object.defineProperty(D, "defaultProps", {
|
|
1918
1593
|
get: function () {
|
|
1919
1594
|
return this._foldedDefaultProps;
|
|
1920
1595
|
},
|
|
1921
|
-
set: function (
|
|
1922
|
-
this._foldedDefaultProps =
|
|
1596
|
+
set: function (e) {
|
|
1597
|
+
this._foldedDefaultProps = i ? function (e) {
|
|
1598
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1599
|
+
for (var o = 0, r = t; o < r.length; o++) le(e, r[o], !0);
|
|
1600
|
+
return e;
|
|
1601
|
+
}({}, a.defaultProps, e) : e;
|
|
1923
1602
|
}
|
|
1924
|
-
}), "production" !== process.env.NODE_ENV && (
|
|
1603
|
+
}), "production" !== process.env.NODE_ENV && (P(y, g), D.warnTooManyClasses = function (e, t) {
|
|
1925
1604
|
var n = {},
|
|
1926
|
-
|
|
1927
|
-
return function (
|
|
1928
|
-
if (!
|
|
1929
|
-
var s = t ? ' with the id of "'
|
|
1930
|
-
console.warn("Over 200 classes were generated for component "
|
|
1605
|
+
o = !1;
|
|
1606
|
+
return function (r) {
|
|
1607
|
+
if (!o && (n[r] = !0, Object.keys(n).length >= 200)) {
|
|
1608
|
+
var s = t ? ' with the id of "'.concat(t, '"') : "";
|
|
1609
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(e).concat(s, ".\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 />"), o = !0, n = {};
|
|
1931
1610
|
}
|
|
1932
1611
|
};
|
|
1933
|
-
}(
|
|
1934
|
-
return "."
|
|
1935
|
-
},
|
|
1612
|
+
}(y, g)), ue(D, function () {
|
|
1613
|
+
return ".".concat(D.styledComponentId);
|
|
1614
|
+
}), c && oe(D, e, {
|
|
1936
1615
|
attrs: !0,
|
|
1937
1616
|
componentStyle: !0,
|
|
1938
1617
|
displayName: !0,
|
|
1939
1618
|
foldedComponentIds: !0,
|
|
1940
1619
|
shouldForwardProp: !0,
|
|
1941
1620
|
styledComponentId: !0,
|
|
1942
|
-
target: !0
|
|
1943
|
-
|
|
1944
|
-
}), C;
|
|
1621
|
+
target: !0
|
|
1622
|
+
}), D;
|
|
1945
1623
|
}
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
}, s.attrs = function (n) {
|
|
1955
|
-
return e(t, r, y({}, o, {
|
|
1956
|
-
attrs: Array.prototype.concat(o.attrs, n).filter(Boolean)
|
|
1957
|
-
}));
|
|
1958
|
-
}, s;
|
|
1959
|
-
}(Ye, e);
|
|
1624
|
+
function st(e, t) {
|
|
1625
|
+
for (var n = [e[0]], o = 0, r = t.length; o < r; o += 1) n.push(t[o], e[o + 1]);
|
|
1626
|
+
return n;
|
|
1627
|
+
}
|
|
1628
|
+
var it = function (e) {
|
|
1629
|
+
return Object.assign(e, {
|
|
1630
|
+
isCss: !0
|
|
1631
|
+
});
|
|
1960
1632
|
};
|
|
1961
|
-
|
|
1962
|
-
|
|
1633
|
+
function at(t) {
|
|
1634
|
+
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1635
|
+
if (re(t) || ce(t)) return it(Ue(st(_, __spreadArray([t], n, !0))));
|
|
1636
|
+
var r = t;
|
|
1637
|
+
return 0 === n.length && 1 === r.length && "string" == typeof r[0] ? Ue(r) : it(Ue(st(r, n)));
|
|
1638
|
+
}
|
|
1639
|
+
function ct(n, o, r) {
|
|
1640
|
+
if (void 0 === r && (r = C), !o) throw he(1, o);
|
|
1641
|
+
var s = function (t) {
|
|
1642
|
+
for (var s = [], i = 1; i < arguments.length; i++) s[i - 1] = arguments[i];
|
|
1643
|
+
return n(o, r, at.apply(void 0, __spreadArray([t], s, !1)));
|
|
1644
|
+
};
|
|
1645
|
+
return s.attrs = function (e) {
|
|
1646
|
+
return ct(n, o, __assign(__assign({}, r), {
|
|
1647
|
+
attrs: Array.prototype.concat(r.attrs, e).filter(Boolean)
|
|
1648
|
+
}));
|
|
1649
|
+
}, s.withConfig = function (e) {
|
|
1650
|
+
return ct(n, o, __assign(__assign({}, r), e));
|
|
1651
|
+
}, s;
|
|
1652
|
+
}
|
|
1653
|
+
var lt = function (e) {
|
|
1654
|
+
return ct(rt, e);
|
|
1655
|
+
},
|
|
1656
|
+
ut = lt;
|
|
1657
|
+
A.forEach(function (e) {
|
|
1658
|
+
ut[e] = lt(e);
|
|
1963
1659
|
});
|
|
1964
|
-
function
|
|
1660
|
+
function ht(t) {
|
|
1661
|
+
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1965
1662
|
"production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
return new ye(s, o);
|
|
1663
|
+
var r = ae(at.apply(void 0, __spreadArray([t], n, !1))),
|
|
1664
|
+
s = $(r);
|
|
1665
|
+
return new Ge(s, r);
|
|
1970
1666
|
}
|
|
1971
|
-
"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")
|
|
1972
|
-
var
|
|
1667
|
+
"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");
|
|
1668
|
+
var gt = "__sc-".concat(f, "__");
|
|
1669
|
+
"production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[gt] || (window[gt] = 0), 1 === window[gt] && 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://s-c.sh/2BAXzed for more info."), window[gt] += 1);
|
|
1973
1670
|
|
|
1974
1671
|
const Colors = {
|
|
1975
1672
|
PRIMARY: {
|
|
@@ -2021,7 +1718,7 @@ const EditableTheme = {
|
|
|
2021
1718
|
PRIMARY_COLOR: Colors.PRIMARY,
|
|
2022
1719
|
};
|
|
2023
1720
|
|
|
2024
|
-
const Header$3 =
|
|
1721
|
+
const Header$3 = ut.div `
|
|
2025
1722
|
display: flex;
|
|
2026
1723
|
align-items: center;
|
|
2027
1724
|
justify-content: space-between;
|
|
@@ -2032,7 +1729,7 @@ const Header$3 = styled.div `
|
|
|
2032
1729
|
height: 50px;
|
|
2033
1730
|
cursor: pointer;
|
|
2034
1731
|
`;
|
|
2035
|
-
const Title$2 =
|
|
1732
|
+
const Title$2 = ut.div `
|
|
2036
1733
|
font-size: ${FontSizes.DEFAULT};
|
|
2037
1734
|
font-weight: 400;
|
|
2038
1735
|
color: ${Colors.BLACK.Hex};
|
|
@@ -2049,7 +1746,7 @@ const Accordion = (_a) => {
|
|
|
2049
1746
|
open ? children : null));
|
|
2050
1747
|
};
|
|
2051
1748
|
|
|
2052
|
-
const StyledButton =
|
|
1749
|
+
const StyledButton = ut.button `
|
|
2053
1750
|
height: ${props => (props.$small ? '30px' : '40px')};
|
|
2054
1751
|
line-height: 1em;
|
|
2055
1752
|
border-radius: ${props => (props.$small ? '15px' : '20px')};
|
|
@@ -2085,25 +1782,28 @@ const StyledButton = styled.button `
|
|
|
2085
1782
|
border-style: solid;
|
|
2086
1783
|
border-color: ${props => props.$border_color || props.theme.PRIMARY_COLOR.Hex};
|
|
2087
1784
|
box-sizing: border-box;
|
|
1785
|
+
|
|
1786
|
+
&:active,
|
|
1787
|
+
&:focus,
|
|
2088
1788
|
&:hover {
|
|
2089
1789
|
opacity: ${props => (props.$disabled ? 0.6 : 1)};
|
|
2090
1790
|
}
|
|
2091
1791
|
`;
|
|
2092
|
-
const Label$5 =
|
|
1792
|
+
const Label$5 = ut.span `
|
|
2093
1793
|
color: ${props => props.$content_color || '#fff'};
|
|
2094
1794
|
font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
2095
1795
|
font-family: ${FontStyles.DEFAULT};
|
|
2096
1796
|
font-weight: 500;
|
|
2097
1797
|
line-height: 1;
|
|
2098
1798
|
`;
|
|
2099
|
-
const StyledIcon$6 =
|
|
1799
|
+
const StyledIcon$6 = ut.span `
|
|
2100
1800
|
margin-left: ${props => (props.$hasChildren ? '6px' : '0px')};
|
|
2101
1801
|
margin-right: ${props => (props.$hasChildren ? '-4px' : '0px')};
|
|
2102
1802
|
display: flex;
|
|
2103
1803
|
align-items: center;
|
|
2104
1804
|
box-sizing: border-box;
|
|
2105
1805
|
`;
|
|
2106
|
-
const Badge$1 =
|
|
1806
|
+
const Badge$1 = ut.span `
|
|
2107
1807
|
width: ${props => (props.$small ? '20px' : '24px')};
|
|
2108
1808
|
height: ${props => (props.$small ? '20px' : '24px')};
|
|
2109
1809
|
line-height: 1;
|
|
@@ -2122,7 +1822,7 @@ const Badge$1 = styled.span `
|
|
|
2122
1822
|
`;
|
|
2123
1823
|
const Button = (_a) => {
|
|
2124
1824
|
var { badge, children, disabled = false, icon, isForm = false, loading = false, margin = '', onClick, small = false, format = 'primary' } = _a, accessibleProps = __rest(_a, ["badge", "children", "disabled", "icon", "isForm", "loading", "margin", "onClick", "small", "format"]);
|
|
2125
|
-
const theme = React.useContext(
|
|
1825
|
+
const theme = React.useContext(Ke) || EditableTheme;
|
|
2126
1826
|
const has_children = children && children.length > 0;
|
|
2127
1827
|
const button_type_mapping = {
|
|
2128
1828
|
primary: {
|
|
@@ -2162,7 +1862,7 @@ const Button = (_a) => {
|
|
|
2162
1862
|
badge && !icon ? (React.createElement(Badge$1, { "$bg_color": format_styles.badge_bg_color, "$content_color": format_styles.badge_content_color, "$small": small }, badge)) : null));
|
|
2163
1863
|
};
|
|
2164
1864
|
|
|
2165
|
-
const StyledComponent =
|
|
1865
|
+
const StyledComponent = ut.p `
|
|
2166
1866
|
color: ${props => Colors[props.$color || 'BLACK'].Hex};
|
|
2167
1867
|
font-size: ${props => (props.$type === 'small' ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
2168
1868
|
line-height: ${props => (props.$type === 'small' ? '1.5em' : '1.6em')};
|
|
@@ -2183,7 +1883,7 @@ Copy.defaultProps = {
|
|
|
2183
1883
|
type: 'default',
|
|
2184
1884
|
};
|
|
2185
1885
|
|
|
2186
|
-
const H1 =
|
|
1886
|
+
const H1 = ut.h1 `
|
|
2187
1887
|
color: ${Colors.BLACK.Hex};
|
|
2188
1888
|
font-size: 30px;
|
|
2189
1889
|
font-weight: ${props => (props.$bold ? '500' : '400')};
|
|
@@ -2193,7 +1893,7 @@ const H1 = styled.h1 `
|
|
|
2193
1893
|
padding: ${props => props.$padding || '0px'};
|
|
2194
1894
|
box-sizing: border-box;
|
|
2195
1895
|
`;
|
|
2196
|
-
const H2 =
|
|
1896
|
+
const H2 = ut.h2 `
|
|
2197
1897
|
color: ${Colors.BLACK.Hex};
|
|
2198
1898
|
font-size: 24px;
|
|
2199
1899
|
font-weight: ${props => (props.$bold ? '500' : '400')};
|
|
@@ -2203,7 +1903,7 @@ const H2 = styled.h2 `
|
|
|
2203
1903
|
padding: ${props => props.$padding || '0px'};
|
|
2204
1904
|
box-sizing: border-box;
|
|
2205
1905
|
`;
|
|
2206
|
-
const H3 =
|
|
1906
|
+
const H3 = ut.h3 `
|
|
2207
1907
|
color: ${Colors.BLACK.Hex};
|
|
2208
1908
|
font-size: 18px;
|
|
2209
1909
|
font-weight: ${props => (props.$bold ? '500' : '400')};
|
|
@@ -2232,7 +1932,7 @@ Heading.defaultProps = {
|
|
|
2232
1932
|
type: 'primary',
|
|
2233
1933
|
};
|
|
2234
1934
|
|
|
2235
|
-
const Wrapper$i =
|
|
1935
|
+
const Wrapper$i = ut.div `
|
|
2236
1936
|
position: fixed;
|
|
2237
1937
|
top: 0;
|
|
2238
1938
|
right: 0;
|
|
@@ -2245,7 +1945,7 @@ const Wrapper$i = styled.div `
|
|
|
2245
1945
|
justify-content: center;
|
|
2246
1946
|
box-sizing: border-box;
|
|
2247
1947
|
`;
|
|
2248
|
-
const Container$3 =
|
|
1948
|
+
const Container$3 = ut.dialog `
|
|
2249
1949
|
max-width: 600px;
|
|
2250
1950
|
width: auto;
|
|
2251
1951
|
border-radius: 8px;
|
|
@@ -2258,7 +1958,7 @@ const Container$3 = styled.dialog `
|
|
|
2258
1958
|
text-align: center;
|
|
2259
1959
|
box-sizing: border-box;
|
|
2260
1960
|
`;
|
|
2261
|
-
const Buttons =
|
|
1961
|
+
const Buttons = ut.div `
|
|
2262
1962
|
display: flex;
|
|
2263
1963
|
gap: 10px;
|
|
2264
1964
|
align-items: center;
|
|
@@ -2278,7 +1978,7 @@ const ActionDialog = (_a) => {
|
|
|
2278
1978
|
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format === 'red' ? 'red' : 'primary' }))) : null)) : null)));
|
|
2279
1979
|
};
|
|
2280
1980
|
|
|
2281
|
-
const Wrapper$h =
|
|
1981
|
+
const Wrapper$h = ut.div `
|
|
2282
1982
|
border: 1px solid #f1f1f1;
|
|
2283
1983
|
border-radius: 4px;
|
|
2284
1984
|
border-left-width: 4px;
|
|
@@ -2289,10 +1989,10 @@ const Wrapper$h = styled.div `
|
|
|
2289
1989
|
padding: ${({ $small }) => ($small ? '11px' : '20px')};
|
|
2290
1990
|
box-sizing: border-box;
|
|
2291
1991
|
`;
|
|
2292
|
-
const StyledIcon$5 =
|
|
1992
|
+
const StyledIcon$5 = ut(Icon) `
|
|
2293
1993
|
flex-shrink: 0;
|
|
2294
1994
|
`;
|
|
2295
|
-
const Action$1 =
|
|
1995
|
+
const Action$1 = ut.div `
|
|
2296
1996
|
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
2297
1997
|
font-size: ${FontSizes.DEFAULT};
|
|
2298
1998
|
font-family: ${FontStyles.DEFAULT};
|
|
@@ -2303,7 +2003,7 @@ const Action$1 = styled.div `
|
|
|
2303
2003
|
Action$1.defaultProps = { theme: EditableTheme };
|
|
2304
2004
|
const Alert = (_a) => {
|
|
2305
2005
|
var { action, type = 'info', title, description, small = false } = _a, accessibleProps = __rest(_a, ["action", "type", "title", "description", "small"]);
|
|
2306
|
-
const theme = React.useContext(
|
|
2006
|
+
const theme = React.useContext(Ke) || EditableTheme;
|
|
2307
2007
|
const type_mapping = {
|
|
2308
2008
|
info: {
|
|
2309
2009
|
color: theme.PRIMARY_COLOR.Hex,
|
|
@@ -2330,7 +2030,7 @@ const Alert = (_a) => {
|
|
|
2330
2030
|
action && !small ? React.createElement(Action$1, { onClick: action.onClick }, action.label) : null)));
|
|
2331
2031
|
};
|
|
2332
2032
|
|
|
2333
|
-
const Wrapper$g =
|
|
2033
|
+
const Wrapper$g = ut.div `
|
|
2334
2034
|
border: 1px solid ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
2335
2035
|
border-radius: 8px;
|
|
2336
2036
|
box-sizing: border-box;
|
|
@@ -2340,27 +2040,27 @@ const Wrapper$g = styled.div `
|
|
|
2340
2040
|
padding: 16px 20px;
|
|
2341
2041
|
`;
|
|
2342
2042
|
Wrapper$g.defaultProps = { theme: EditableTheme };
|
|
2343
|
-
const Left =
|
|
2043
|
+
const Left = ut.div `
|
|
2344
2044
|
box-sizing: border-box;
|
|
2345
2045
|
display: flex;
|
|
2346
2046
|
align-items: center;
|
|
2347
2047
|
justify-content: space-between;
|
|
2348
2048
|
flex-shrink: 0;
|
|
2349
2049
|
`;
|
|
2350
|
-
const Info$1 =
|
|
2050
|
+
const Info$1 = ut.div `
|
|
2351
2051
|
box-sizing: border-box;
|
|
2352
2052
|
display: flex;
|
|
2353
2053
|
align-items: center;
|
|
2354
2054
|
margin-right: 30px;
|
|
2355
2055
|
`;
|
|
2356
|
-
const Selected =
|
|
2056
|
+
const Selected = ut.span `
|
|
2357
2057
|
font-size: 14px;
|
|
2358
2058
|
font-weight: 400;
|
|
2359
2059
|
font-family: ${FontStyles.DEFAULT};
|
|
2360
2060
|
color: ${Colors.BLACK.Hex};
|
|
2361
2061
|
line-height: 1;
|
|
2362
2062
|
`;
|
|
2363
|
-
const Clear =
|
|
2063
|
+
const Clear = ut.span `
|
|
2364
2064
|
font-size: 14px;
|
|
2365
2065
|
font-weight: 400;
|
|
2366
2066
|
font-family: ${FontStyles.DEFAULT};
|
|
@@ -2372,13 +2072,13 @@ const Clear = styled.span `
|
|
|
2372
2072
|
border-left: 1px solid #ccc;
|
|
2373
2073
|
`;
|
|
2374
2074
|
Clear.defaultProps = { theme: EditableTheme };
|
|
2375
|
-
const Actions$1 =
|
|
2075
|
+
const Actions$1 = ut.div `
|
|
2376
2076
|
box-sizing: border-box;
|
|
2377
2077
|
display: flex;
|
|
2378
2078
|
align-items: center;
|
|
2379
2079
|
column-gap: 10px;
|
|
2380
2080
|
`;
|
|
2381
|
-
const Error$1 =
|
|
2081
|
+
const Error$1 = ut.div `
|
|
2382
2082
|
box-sizing: border-box;
|
|
2383
2083
|
display: flex;
|
|
2384
2084
|
align-items: center;
|
|
@@ -2390,7 +2090,7 @@ const Error$1 = styled.div `
|
|
|
2390
2090
|
overflow: hidden;
|
|
2391
2091
|
margin-left: 30px;
|
|
2392
2092
|
`;
|
|
2393
|
-
const ErrorMsg =
|
|
2093
|
+
const ErrorMsg = ut.span `
|
|
2394
2094
|
font-size: 14px;
|
|
2395
2095
|
font-weight: 500;
|
|
2396
2096
|
font-family: ${FontStyles.DEFAULT};
|
|
@@ -2413,7 +2113,7 @@ const BulkActionBar = (_a) => {
|
|
|
2413
2113
|
React.createElement(ErrorMsg, null, errorMsg))) : null));
|
|
2414
2114
|
};
|
|
2415
2115
|
|
|
2416
|
-
const Wrapper$f =
|
|
2116
|
+
const Wrapper$f = ut.div `
|
|
2417
2117
|
background: #fff;
|
|
2418
2118
|
border-radius: 8px;
|
|
2419
2119
|
box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
|
|
@@ -2424,7 +2124,7 @@ const Wrapper$f = styled.div `
|
|
|
2424
2124
|
padding: 10px;
|
|
2425
2125
|
width: 200px;
|
|
2426
2126
|
`;
|
|
2427
|
-
const MenuItem =
|
|
2127
|
+
const MenuItem = ut.div `
|
|
2428
2128
|
align-items: center;
|
|
2429
2129
|
border-radius: 8px;
|
|
2430
2130
|
border: 1px solid transparent;
|
|
@@ -2443,7 +2143,7 @@ const MenuItem = styled.div `
|
|
|
2443
2143
|
}
|
|
2444
2144
|
`;
|
|
2445
2145
|
MenuItem.defaultProps = { theme: EditableTheme };
|
|
2446
|
-
const Title$1 =
|
|
2146
|
+
const Title$1 = ut.span `
|
|
2447
2147
|
font-family: Roboto;
|
|
2448
2148
|
font-size: 14px;
|
|
2449
2149
|
font-weight: 400;
|
|
@@ -2461,11 +2161,11 @@ const MoreMenu = (_a) => {
|
|
|
2461
2161
|
})));
|
|
2462
2162
|
};
|
|
2463
2163
|
|
|
2464
|
-
const Wrapper$e =
|
|
2164
|
+
const Wrapper$e = ut.div `
|
|
2465
2165
|
position: relative;
|
|
2466
2166
|
display: inline-block;
|
|
2467
2167
|
`;
|
|
2468
|
-
const StyledMoreMenu =
|
|
2168
|
+
const StyledMoreMenu = ut(MoreMenu) `
|
|
2469
2169
|
position: absolute;
|
|
2470
2170
|
right: ${props => (props.$position === 'right' ? '0px' : 'auto')};
|
|
2471
2171
|
left: ${props => (props.$position === 'left' ? '0px' : 'auto')};
|
|
@@ -2480,22 +2180,29 @@ const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = '
|
|
|
2480
2180
|
show_menu ? (React.createElement(StyledMoreMenu, { "$menuWidth": menuWidth, "$position": position, "$small": small, maxHeight: maxHeight, menuItems: menuItems })) : null));
|
|
2481
2181
|
};
|
|
2482
2182
|
|
|
2483
|
-
const Wrapper$d =
|
|
2484
|
-
|
|
2183
|
+
const Wrapper$d = ut.label `
|
|
2184
|
+
border-radius: 4px;
|
|
2185
|
+
padding: 4px 0px 4px 6px;
|
|
2186
|
+
margin-left: -6px;
|
|
2485
2187
|
cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
|
|
2486
2188
|
display: flex;
|
|
2487
2189
|
align-items: flex-start;
|
|
2488
2190
|
font-size: ${FontSizes.DEFAULT};
|
|
2489
2191
|
line-height: 1.6em;
|
|
2490
2192
|
box-sizing: border-box;
|
|
2193
|
+
|
|
2194
|
+
&:focus-within {
|
|
2195
|
+
background: ${props => `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)`};
|
|
2196
|
+
}
|
|
2491
2197
|
`;
|
|
2492
|
-
|
|
2198
|
+
Wrapper$d.defaultProps = { theme: EditableTheme };
|
|
2199
|
+
const Input$2 = ut.input `
|
|
2493
2200
|
font-size: 20px;
|
|
2494
2201
|
margin: 5px 0px 0px 0px;
|
|
2495
2202
|
line-height: 1.1em;
|
|
2496
2203
|
box-sizing: border-box;
|
|
2497
2204
|
`;
|
|
2498
|
-
const Label$4 =
|
|
2205
|
+
const Label$4 = ut.span `
|
|
2499
2206
|
font-family: ${FontStyles.DEFAULT};
|
|
2500
2207
|
font-size: ${FontSizes.DEFAULT};
|
|
2501
2208
|
font-weight: 400;
|
|
@@ -2511,12 +2218,12 @@ const Checkbox = (_a) => {
|
|
|
2511
2218
|
children ? React.createElement(Label$4, null, children) : null));
|
|
2512
2219
|
};
|
|
2513
2220
|
|
|
2514
|
-
const SelectAll =
|
|
2221
|
+
const SelectAll = ut.div `
|
|
2515
2222
|
padding: 8px 12px;
|
|
2516
2223
|
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
2517
2224
|
box-sizing: border-box;
|
|
2518
2225
|
`;
|
|
2519
|
-
const Options$1 =
|
|
2226
|
+
const Options$1 = ut.div `
|
|
2520
2227
|
padding: 12px;
|
|
2521
2228
|
box-sizing: border-box;
|
|
2522
2229
|
`;
|
|
@@ -2875,7 +2582,7 @@ var dayjs_min = {exports: {}};
|
|
|
2875
2582
|
var dayjs_minExports = dayjs_min.exports;
|
|
2876
2583
|
var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
|
|
2877
2584
|
|
|
2878
|
-
const Wrapper$c =
|
|
2585
|
+
const Wrapper$c = ut.div `
|
|
2879
2586
|
border-radius: 4px;
|
|
2880
2587
|
height: 40px;
|
|
2881
2588
|
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
@@ -2891,8 +2598,13 @@ const Wrapper$c = styled.div `
|
|
|
2891
2598
|
display: flex;
|
|
2892
2599
|
align-items: center;
|
|
2893
2600
|
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
2601
|
+
|
|
2602
|
+
&:focus-within {
|
|
2603
|
+
border-color: ${props => (props.$readOnly ? '#cccccc' : props.theme.PRIMARY_COLOR.Hex)};
|
|
2604
|
+
}
|
|
2894
2605
|
`;
|
|
2895
|
-
|
|
2606
|
+
Wrapper$c.defaultProps = { theme: EditableTheme };
|
|
2607
|
+
const Trigger$1 = ut.select `
|
|
2896
2608
|
appearance: none;
|
|
2897
2609
|
box-shadow: none;
|
|
2898
2610
|
outline: none;
|
|
@@ -2912,7 +2624,7 @@ const Trigger$1 = styled.select `
|
|
|
2912
2624
|
position: relative;
|
|
2913
2625
|
z-index: 2;
|
|
2914
2626
|
`;
|
|
2915
|
-
const IconWrapper$2 =
|
|
2627
|
+
const IconWrapper$2 = ut(Icon) `
|
|
2916
2628
|
position: absolute;
|
|
2917
2629
|
right: 9px;
|
|
2918
2630
|
z-index: 1;
|
|
@@ -2935,11 +2647,11 @@ const Select = (_a) => {
|
|
|
2935
2647
|
React.createElement(IconWrapper$2, { color: Colors.BLACK.Hex, path: js.mdiChevronDown, size: '22px' })));
|
|
2936
2648
|
};
|
|
2937
2649
|
|
|
2938
|
-
const DatePickerWrapper =
|
|
2650
|
+
const DatePickerWrapper = ut.div `
|
|
2939
2651
|
display: flex;
|
|
2940
2652
|
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
2941
2653
|
`;
|
|
2942
|
-
const Middle =
|
|
2654
|
+
const Middle = ut.div `
|
|
2943
2655
|
margin: 0px -1px;
|
|
2944
2656
|
flex-grow: 1;
|
|
2945
2657
|
`;
|
|
@@ -3005,7 +2717,7 @@ const DatePicker = ({ readOnly = false, invalid = false, maxDate = null, minDate
|
|
|
3005
2717
|
React.createElement(Select, { invalid: invalid, onChange: handleYearChange, options: years, readOnly: readOnly, style: { borderRadius: '0px 4px 4px 0px', flexGrow: 2 }, value: dDate.format('YYYY') }))));
|
|
3006
2718
|
};
|
|
3007
2719
|
|
|
3008
|
-
const Scrim$1 =
|
|
2720
|
+
const Scrim$1 = ut.div `
|
|
3009
2721
|
position: ${({ $position }) => $position};
|
|
3010
2722
|
top: 0;
|
|
3011
2723
|
right: 0;
|
|
@@ -3014,7 +2726,7 @@ const Scrim$1 = styled.div `
|
|
|
3014
2726
|
z-index: ${({ $position }) => ($position === 'fixed' ? 9998 : 10)};
|
|
3015
2727
|
background: ${({ $scrim }) => ($scrim === 'dark' ? 'rgba(0,0,0,0.8)' : 'transparent')};
|
|
3016
2728
|
`;
|
|
3017
|
-
const Container$2 =
|
|
2729
|
+
const Container$2 = ut.div `
|
|
3018
2730
|
z-index: ${({ $position }) => ($position === 'fixed' ? 9999 : 11)};
|
|
3019
2731
|
min-width: 400px;
|
|
3020
2732
|
width: ${({ $width }) => $width || '400px'};
|
|
@@ -3032,7 +2744,7 @@ const Container$2 = styled.div `
|
|
|
3032
2744
|
box-sizing: border-box;
|
|
3033
2745
|
background: #fff;
|
|
3034
2746
|
`;
|
|
3035
|
-
const Header$2 =
|
|
2747
|
+
const Header$2 = ut.div `
|
|
3036
2748
|
padding: 30px 20px;
|
|
3037
2749
|
display: flex;
|
|
3038
2750
|
align-items: flex-start;
|
|
@@ -3040,21 +2752,21 @@ const Header$2 = styled.div `
|
|
|
3040
2752
|
flex-shrink: 0;
|
|
3041
2753
|
background: #fff;
|
|
3042
2754
|
`;
|
|
3043
|
-
const Close$1 =
|
|
2755
|
+
const Close$1 = ut.div `
|
|
3044
2756
|
margin-left: auto;
|
|
3045
2757
|
display: flex;
|
|
3046
2758
|
align-items: center;
|
|
3047
2759
|
padding-left: 20px;
|
|
3048
2760
|
cursor: pointer;
|
|
3049
2761
|
`;
|
|
3050
|
-
const ContentWrapper$1 =
|
|
2762
|
+
const ContentWrapper$1 = ut.div `
|
|
3051
2763
|
overflow-x: hidden;
|
|
3052
2764
|
overflow-y: auto;
|
|
3053
2765
|
box-sizing: border-box;
|
|
3054
2766
|
flex: 1;
|
|
3055
2767
|
background: #fff;
|
|
3056
2768
|
`;
|
|
3057
|
-
const ButtonBar$1 =
|
|
2769
|
+
const ButtonBar$1 = ut.div `
|
|
3058
2770
|
padding: 20px;
|
|
3059
2771
|
display: flex;
|
|
3060
2772
|
align-items: center;
|
|
@@ -3092,12 +2804,12 @@ const Drawer = (_a) => {
|
|
|
3092
2804
|
scrim ? React.createElement(Scrim$1, { "$position": position, "$scrim": scrim, onClick: onClose }) : null));
|
|
3093
2805
|
};
|
|
3094
2806
|
|
|
3095
|
-
const Wrapper$b =
|
|
2807
|
+
const Wrapper$b = ut.div `
|
|
3096
2808
|
display: inline-block;
|
|
3097
2809
|
position: relative;
|
|
3098
2810
|
height: 16px;
|
|
3099
2811
|
`;
|
|
3100
|
-
const StyledIcon$4 =
|
|
2812
|
+
const StyledIcon$4 = ut(Icon) `
|
|
3101
2813
|
width: 16px;
|
|
3102
2814
|
height: 16px;
|
|
3103
2815
|
margin: 0px 6px;
|
|
@@ -3133,7 +2845,7 @@ const positions = {
|
|
|
3133
2845
|
transform: 'translateY(-50%)',
|
|
3134
2846
|
},
|
|
3135
2847
|
};
|
|
3136
|
-
const Content$3 =
|
|
2848
|
+
const Content$3 = ut.div(props => (Object.assign({ position: 'absolute', borderRadius: '4px', borderWidth: '1px', borderStyle: 'solid', borderColor: props.theme.PRIMARY_COLOR.Hex, background: '#ffffff', boxShadow: '0px 5px 30px -10px rgba(0, 0, 0, 0.5)', width: props.$width || '240px', padding: '10px 12px', zIndex: 10 }, positions[props.$position])));
|
|
3137
2849
|
Content$3.defaultProps = { theme: EditableTheme };
|
|
3138
2850
|
const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, }) => {
|
|
3139
2851
|
const [show_content, toggleContent] = React.useState(false);
|
|
@@ -3142,15 +2854,15 @@ const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, }
|
|
|
3142
2854
|
show_content ? (React.createElement(Content$3, { "$position": position, "$width": width }, children && React.createElement(Copy, { type: 'small' }, children))) : null));
|
|
3143
2855
|
};
|
|
3144
2856
|
|
|
3145
|
-
const Wrapper$a =
|
|
3146
|
-
const LabelRow =
|
|
2857
|
+
const Wrapper$a = ut.div(props => (Object.assign({ margin: '0px 0px 18px 0px' }, props.style)));
|
|
2858
|
+
const LabelRow = ut.div `
|
|
3147
2859
|
display: flex;
|
|
3148
2860
|
align-items: center;
|
|
3149
2861
|
justify-content: space-between;
|
|
3150
2862
|
margin: 0 0 4px 0;
|
|
3151
2863
|
box-sizing: border-box;
|
|
3152
2864
|
`;
|
|
3153
|
-
const Label$3 =
|
|
2865
|
+
const Label$3 = ut.label `
|
|
3154
2866
|
font-size: ${FontSizes.DEFAULT};
|
|
3155
2867
|
font-weight: 500;
|
|
3156
2868
|
line-height: 1em;
|
|
@@ -3159,11 +2871,11 @@ const Label$3 = styled.label `
|
|
|
3159
2871
|
display: flex;
|
|
3160
2872
|
align-items: center;
|
|
3161
2873
|
`;
|
|
3162
|
-
const Required =
|
|
2874
|
+
const Required = ut.span `
|
|
3163
2875
|
color: ${Colors.RED.Hex};
|
|
3164
2876
|
margin-left: 4px;
|
|
3165
2877
|
`;
|
|
3166
|
-
const Action =
|
|
2878
|
+
const Action = ut.span `
|
|
3167
2879
|
font-size: ${FontSizes.DEFAULT};
|
|
3168
2880
|
font-weight: 500;
|
|
3169
2881
|
line-height: 1em;
|
|
@@ -3172,7 +2884,7 @@ const Action = styled.span `
|
|
|
3172
2884
|
cursor: pointer;
|
|
3173
2885
|
`;
|
|
3174
2886
|
Action.defaultProps = { theme: EditableTheme };
|
|
3175
|
-
const Description =
|
|
2887
|
+
const Description = ut.div `
|
|
3176
2888
|
font-size: ${FontSizes.SMALL};
|
|
3177
2889
|
font-weight: 400;
|
|
3178
2890
|
line-height: 1.3em;
|
|
@@ -3181,7 +2893,7 @@ const Description = styled.div `
|
|
|
3181
2893
|
margin: 0 0 8px 0;
|
|
3182
2894
|
box-sizing: border-box;
|
|
3183
2895
|
`;
|
|
3184
|
-
const Validation =
|
|
2896
|
+
const Validation = ut.div `
|
|
3185
2897
|
font-size: ${FontSizes.SMALL};
|
|
3186
2898
|
font-weight: 400;
|
|
3187
2899
|
line-height: 1.3em;
|
|
@@ -3204,7 +2916,7 @@ const Field = (_a) => {
|
|
|
3204
2916
|
validationText ? React.createElement(Validation, null, validationText) : null));
|
|
3205
2917
|
};
|
|
3206
2918
|
|
|
3207
|
-
const Wrapper$9 =
|
|
2919
|
+
const Wrapper$9 = ut.fieldset `
|
|
3208
2920
|
margin-inline-start: 0px;
|
|
3209
2921
|
margin-inline-end: 0px;
|
|
3210
2922
|
padding-block-start: 0px;
|
|
@@ -3217,7 +2929,7 @@ const Wrapper$9 = styled.fieldset `
|
|
|
3217
2929
|
border-color: transparent;
|
|
3218
2930
|
border-image: none;
|
|
3219
2931
|
`;
|
|
3220
|
-
const Label$2 =
|
|
2932
|
+
const Label$2 = ut.legend `
|
|
3221
2933
|
padding-inline-start: 0px;
|
|
3222
2934
|
padding-inline-end: 0px;
|
|
3223
2935
|
|
|
@@ -3228,7 +2940,7 @@ const Label$2 = styled.legend `
|
|
|
3228
2940
|
line-height: 22px;
|
|
3229
2941
|
margin-bottom: 6px;
|
|
3230
2942
|
`;
|
|
3231
|
-
const Content$2 =
|
|
2943
|
+
const Content$2 = ut.div `
|
|
3232
2944
|
padding: 20px;
|
|
3233
2945
|
border-radius: 8px;
|
|
3234
2946
|
background: #fcfcfc;
|
|
@@ -3239,7 +2951,7 @@ const FieldGroup = ({ children, label }) => {
|
|
|
3239
2951
|
React.createElement(Content$2, null, children)));
|
|
3240
2952
|
};
|
|
3241
2953
|
|
|
3242
|
-
const Dropzone =
|
|
2954
|
+
const Dropzone = ut.div `
|
|
3243
2955
|
border-radius: 8px;
|
|
3244
2956
|
border-width: 1px;
|
|
3245
2957
|
border-style: dashed;
|
|
@@ -3248,7 +2960,7 @@ const Dropzone = styled.div `
|
|
|
3248
2960
|
cursor: copy;
|
|
3249
2961
|
`;
|
|
3250
2962
|
Dropzone.defaultProps = { theme: EditableTheme };
|
|
3251
|
-
const IconWrapper$1 =
|
|
2963
|
+
const IconWrapper$1 = ut.div `
|
|
3252
2964
|
width: 80px;
|
|
3253
2965
|
height: 80px;
|
|
3254
2966
|
border-radius: 40px;
|
|
@@ -3257,7 +2969,7 @@ const IconWrapper$1 = styled.div `
|
|
|
3257
2969
|
align-items: center;
|
|
3258
2970
|
justify-content: center;
|
|
3259
2971
|
`;
|
|
3260
|
-
const StyledIcon$3 =
|
|
2972
|
+
const StyledIcon$3 = ut(Icon) `
|
|
3261
2973
|
width: 40px !important;
|
|
3262
2974
|
height: 40px !important;
|
|
3263
2975
|
|
|
@@ -3265,27 +2977,27 @@ const StyledIcon$3 = styled(Icon) `
|
|
|
3265
2977
|
fill: ${Colors.GRAY.Hex} !important;
|
|
3266
2978
|
}
|
|
3267
2979
|
`;
|
|
3268
|
-
const ClickZone =
|
|
2980
|
+
const ClickZone = ut.div `
|
|
3269
2981
|
margin: 40px 20px;
|
|
3270
2982
|
display: flex;
|
|
3271
2983
|
flex-direction: column;
|
|
3272
2984
|
align-items: center;
|
|
3273
2985
|
gap: 16px;
|
|
3274
2986
|
`;
|
|
3275
|
-
const Content$1 =
|
|
2987
|
+
const Content$1 = ut.div `
|
|
3276
2988
|
display: flex;
|
|
3277
2989
|
flex-direction: column;
|
|
3278
2990
|
align-items: center;
|
|
3279
2991
|
gap: 2px;
|
|
3280
2992
|
`;
|
|
3281
|
-
const Files =
|
|
2993
|
+
const Files = ut.div `
|
|
3282
2994
|
display: flex;
|
|
3283
2995
|
flex-direction: column;
|
|
3284
2996
|
align-self: stretch;
|
|
3285
2997
|
gap: 10px;
|
|
3286
2998
|
margin: 20px;
|
|
3287
2999
|
`;
|
|
3288
|
-
const File =
|
|
3000
|
+
const File = ut.div `
|
|
3289
3001
|
display: flex;
|
|
3290
3002
|
padding: 10px;
|
|
3291
3003
|
align-items: center;
|
|
@@ -3295,7 +3007,7 @@ const File = styled.div `
|
|
|
3295
3007
|
border: 1px solid #cccccc;
|
|
3296
3008
|
background: #ffffff;
|
|
3297
3009
|
`;
|
|
3298
|
-
const Remove$1 =
|
|
3010
|
+
const Remove$1 = ut(Icon) `
|
|
3299
3011
|
width: 24px;
|
|
3300
3012
|
height: 24px;
|
|
3301
3013
|
cursor: pointer;
|
|
@@ -3489,7 +3201,7 @@ const formatAsSsn = (number) => {
|
|
|
3489
3201
|
return formatted_value;
|
|
3490
3202
|
};
|
|
3491
3203
|
|
|
3492
|
-
const StyledInput =
|
|
3204
|
+
const StyledInput = ut.input `
|
|
3493
3205
|
border: none !important;
|
|
3494
3206
|
background: none !important;
|
|
3495
3207
|
font-size: ${FontSizes.DEFAULT};
|
|
@@ -3510,7 +3222,7 @@ const StyledInput = styled.input `
|
|
|
3510
3222
|
display: block;
|
|
3511
3223
|
width: 100%;
|
|
3512
3224
|
`;
|
|
3513
|
-
const StyledSuffix =
|
|
3225
|
+
const StyledSuffix = ut.div `
|
|
3514
3226
|
box-sizing: border-box;
|
|
3515
3227
|
border-radius: 0px 4px 4px 0px;
|
|
3516
3228
|
display: flex;
|
|
@@ -3528,7 +3240,7 @@ const StyledSuffix = styled.div `
|
|
|
3528
3240
|
font-size: ${FontSizes.DEFAULT};
|
|
3529
3241
|
color: Colors.BLACK.Hex;
|
|
3530
3242
|
`;
|
|
3531
|
-
const StyledWrapper =
|
|
3243
|
+
const StyledWrapper = ut.div `
|
|
3532
3244
|
display: flex;
|
|
3533
3245
|
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
3534
3246
|
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
@@ -3543,7 +3255,7 @@ const StyledWrapper = styled.div `
|
|
|
3543
3255
|
}
|
|
3544
3256
|
`;
|
|
3545
3257
|
StyledWrapper.defaultProps = { theme: EditableTheme };
|
|
3546
|
-
const StyledTextarea =
|
|
3258
|
+
const StyledTextarea = ut.textarea `
|
|
3547
3259
|
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
3548
3260
|
border-radius: 4px;
|
|
3549
3261
|
border-width: 1px;
|
|
@@ -3572,7 +3284,7 @@ const StyledTextarea = styled.textarea `
|
|
|
3572
3284
|
}
|
|
3573
3285
|
`;
|
|
3574
3286
|
StyledTextarea.defaultProps = { theme: EditableTheme };
|
|
3575
|
-
const SuggestedValues =
|
|
3287
|
+
const SuggestedValues = ut.div `
|
|
3576
3288
|
background: #fff;
|
|
3577
3289
|
box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
|
|
3578
3290
|
border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
@@ -3589,7 +3301,7 @@ const SuggestedValues = styled.div `
|
|
|
3589
3301
|
overflow: auto;
|
|
3590
3302
|
`;
|
|
3591
3303
|
SuggestedValues.defaultProps = { theme: EditableTheme };
|
|
3592
|
-
const SuggestedSummary =
|
|
3304
|
+
const SuggestedSummary = ut.div `
|
|
3593
3305
|
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
3594
3306
|
font-size: 12px;
|
|
3595
3307
|
font-family: ${FontStyles.DEFAULT};
|
|
@@ -3602,7 +3314,7 @@ const SuggestedSummary = styled.div `
|
|
|
3602
3314
|
position: sticky;
|
|
3603
3315
|
top: 0px;
|
|
3604
3316
|
`;
|
|
3605
|
-
const SuggestedValue =
|
|
3317
|
+
const SuggestedValue = ut.div `
|
|
3606
3318
|
cursor: pointer;
|
|
3607
3319
|
padding: 8px 12px;
|
|
3608
3320
|
font-size: ${FontSizes.DEFAULT};
|
|
@@ -3675,7 +3387,7 @@ const Input$1 = (_a) => {
|
|
|
3675
3387
|
}))) : null));
|
|
3676
3388
|
};
|
|
3677
3389
|
|
|
3678
|
-
const Wrapper$8 =
|
|
3390
|
+
const Wrapper$8 = ut.a `
|
|
3679
3391
|
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
3680
3392
|
font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
3681
3393
|
line-height: ${props => (props.$small ? '1.5em' : '1.6em')};
|
|
@@ -3695,7 +3407,7 @@ const Link = (_a) => {
|
|
|
3695
3407
|
return (React.createElement(Wrapper$8, Object.assign({ "$small": small, onClick: onClick }, accessibleProps), children));
|
|
3696
3408
|
};
|
|
3697
3409
|
|
|
3698
|
-
const dash =
|
|
3410
|
+
const dash = ht `
|
|
3699
3411
|
0% {
|
|
3700
3412
|
stroke-dasharray: 1, 160;
|
|
3701
3413
|
stroke-dashoffset: 0;
|
|
@@ -3709,7 +3421,7 @@ const dash = We `
|
|
|
3709
3421
|
stroke-dashoffset: -124;
|
|
3710
3422
|
}
|
|
3711
3423
|
`;
|
|
3712
|
-
const Spinner =
|
|
3424
|
+
const Spinner = ut.svg `
|
|
3713
3425
|
z-index: 2;
|
|
3714
3426
|
position: absolute;
|
|
3715
3427
|
top: 50%;
|
|
@@ -3718,7 +3430,7 @@ const Spinner = styled.svg `
|
|
|
3718
3430
|
width: 40px;
|
|
3719
3431
|
height: 40px;
|
|
3720
3432
|
`;
|
|
3721
|
-
const Path =
|
|
3433
|
+
const Path = ut.path `
|
|
3722
3434
|
stroke: #0193d7;
|
|
3723
3435
|
stroke-linecap: round;
|
|
3724
3436
|
-webkit-animation: ${dash} 1.1s ease-in-out infinite;
|
|
@@ -3771,7 +3483,7 @@ const Logo = (_a) => {
|
|
|
3771
3483
|
}
|
|
3772
3484
|
};
|
|
3773
3485
|
|
|
3774
|
-
const Steps =
|
|
3486
|
+
const Steps = ut.div `
|
|
3775
3487
|
padding: 20px;
|
|
3776
3488
|
border-bottom: 1px solid #e7e6e6;
|
|
3777
3489
|
background: #f5f5f5;
|
|
@@ -3779,18 +3491,18 @@ const Steps = styled.div `
|
|
|
3779
3491
|
gap: 30px;
|
|
3780
3492
|
align-items: center;
|
|
3781
3493
|
`;
|
|
3782
|
-
const Step =
|
|
3494
|
+
const Step = ut.div `
|
|
3783
3495
|
display: flex;
|
|
3784
3496
|
align-items: center;
|
|
3785
3497
|
gap: 8px;
|
|
3786
3498
|
`;
|
|
3787
|
-
const StyledIcon$2 =
|
|
3499
|
+
const StyledIcon$2 = ut(Icon) `
|
|
3788
3500
|
> path {
|
|
3789
3501
|
fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
|
|
3790
3502
|
}
|
|
3791
3503
|
`;
|
|
3792
3504
|
StyledIcon$2.defaultProps = { theme: EditableTheme };
|
|
3793
|
-
const StepIndicator =
|
|
3505
|
+
const StepIndicator = ut.div `
|
|
3794
3506
|
width: 30px;
|
|
3795
3507
|
height: 30px;
|
|
3796
3508
|
border-radius: 15px;
|
|
@@ -3806,7 +3518,7 @@ const StepIndicator = styled.div `
|
|
|
3806
3518
|
flex-shrink: 0;
|
|
3807
3519
|
`;
|
|
3808
3520
|
StepIndicator.defaultProps = { theme: EditableTheme };
|
|
3809
|
-
const StepLabel =
|
|
3521
|
+
const StepLabel = ut.div `
|
|
3810
3522
|
color: #000;
|
|
3811
3523
|
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
3812
3524
|
font-size: 14px;
|
|
@@ -3821,7 +3533,7 @@ const ProgressBar = ({ steps }) => {
|
|
|
3821
3533
|
})));
|
|
3822
3534
|
};
|
|
3823
3535
|
|
|
3824
|
-
const Wrapper$7 =
|
|
3536
|
+
const Wrapper$7 = ut.div `
|
|
3825
3537
|
position: fixed;
|
|
3826
3538
|
top: 0;
|
|
3827
3539
|
right: 0;
|
|
@@ -3833,7 +3545,7 @@ const Wrapper$7 = styled.div `
|
|
|
3833
3545
|
align-items: center;
|
|
3834
3546
|
justify-content: center;
|
|
3835
3547
|
`;
|
|
3836
|
-
const Container$1 =
|
|
3548
|
+
const Container$1 = ut.dialog `
|
|
3837
3549
|
width: ${props => (props.$fullscreen ? 'calc(100vw - 80px)' : props.$maxWidth || '900px')};
|
|
3838
3550
|
max-width: calc(100vw - 80px);
|
|
3839
3551
|
height: ${props => (props.$fullscreen ? 'calc(100vh - 80px)' : 'auto')};
|
|
@@ -3849,7 +3561,7 @@ const Container$1 = styled.dialog `
|
|
|
3849
3561
|
display: flex;
|
|
3850
3562
|
flex-direction: column;
|
|
3851
3563
|
`;
|
|
3852
|
-
const Header$1 =
|
|
3564
|
+
const Header$1 = ut.div `
|
|
3853
3565
|
flex-shrink: 0;
|
|
3854
3566
|
padding: 20px;
|
|
3855
3567
|
border-bottom: 1px solid #e7e6e6;
|
|
@@ -3858,28 +3570,28 @@ const Header$1 = styled.div `
|
|
|
3858
3570
|
background: #ffffff;
|
|
3859
3571
|
box-sizing: border-box;
|
|
3860
3572
|
`;
|
|
3861
|
-
const Close =
|
|
3573
|
+
const Close = ut.div `
|
|
3862
3574
|
margin-left: auto;
|
|
3863
3575
|
display: flex;
|
|
3864
3576
|
align-items: center;
|
|
3865
3577
|
padding-left: 20px;
|
|
3866
3578
|
cursor: pointer;
|
|
3867
3579
|
`;
|
|
3868
|
-
const CloseMsg =
|
|
3580
|
+
const CloseMsg = ut.span `
|
|
3869
3581
|
font-size: ${FontSizes.SMALL};
|
|
3870
3582
|
font-weight: 400;
|
|
3871
3583
|
font-family: ${FontStyles.DEFAULT};
|
|
3872
3584
|
line-height: 1em;
|
|
3873
3585
|
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
3874
3586
|
`;
|
|
3875
|
-
const ContentWrapper =
|
|
3587
|
+
const ContentWrapper = ut.div `
|
|
3876
3588
|
overflow-x: hidden;
|
|
3877
3589
|
overflow-y: auto;
|
|
3878
3590
|
background: #ffffff;
|
|
3879
3591
|
flex: 1;
|
|
3880
3592
|
box-sizing: border-box;
|
|
3881
3593
|
`;
|
|
3882
|
-
const ButtonBar =
|
|
3594
|
+
const ButtonBar = ut.div `
|
|
3883
3595
|
flex-shrink: 0;
|
|
3884
3596
|
background: #ffffff;
|
|
3885
3597
|
padding: 20px;
|
|
@@ -3922,11 +3634,11 @@ const Modal = (_a) => {
|
|
|
3922
3634
|
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: 'primary', margin: '0px 0px 0px 10px' }))) : null)) : null)) : null)));
|
|
3923
3635
|
};
|
|
3924
3636
|
|
|
3925
|
-
const Wrapper$6 =
|
|
3637
|
+
const Wrapper$6 = ut.div `
|
|
3926
3638
|
position: relative;
|
|
3927
3639
|
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
3928
3640
|
`;
|
|
3929
|
-
const Trigger =
|
|
3641
|
+
const Trigger = ut.div `
|
|
3930
3642
|
box-sizing: border-box;
|
|
3931
3643
|
border-radius: ${props => (props.$showOptions ? '4px 4px 0px 0px' : '4px')};
|
|
3932
3644
|
height: 40px;
|
|
@@ -3955,7 +3667,7 @@ const Trigger = styled.div `
|
|
|
3955
3667
|
z-index: 1;
|
|
3956
3668
|
`;
|
|
3957
3669
|
Trigger.defaultProps = { theme: EditableTheme };
|
|
3958
|
-
const Value =
|
|
3670
|
+
const Value = ut.div `
|
|
3959
3671
|
color: ${Colors.BLACK.Hex};
|
|
3960
3672
|
font-family: ${FontStyles.DEFAULT};
|
|
3961
3673
|
font-size: ${FontSizes.DEFAULT};
|
|
@@ -3966,7 +3678,7 @@ const Value = styled.div `
|
|
|
3966
3678
|
white-space: nowrap;
|
|
3967
3679
|
width: 100%;
|
|
3968
3680
|
`;
|
|
3969
|
-
const Options =
|
|
3681
|
+
const Options = ut.div `
|
|
3970
3682
|
background: #fff;
|
|
3971
3683
|
box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
|
|
3972
3684
|
border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
@@ -3982,7 +3694,7 @@ const Options = styled.div `
|
|
|
3982
3694
|
overflow: auto;
|
|
3983
3695
|
`;
|
|
3984
3696
|
Options.defaultProps = { theme: EditableTheme };
|
|
3985
|
-
const Scrim =
|
|
3697
|
+
const Scrim = ut.div `
|
|
3986
3698
|
bottom: 0;
|
|
3987
3699
|
left: 0;
|
|
3988
3700
|
position: fixed;
|
|
@@ -4005,7 +3717,7 @@ const MultiSelect = (_a) => {
|
|
|
4005
3717
|
showOptions ? React.createElement(Scrim, { onClick: setShowOptions.bind(null, !showOptions) }) : null));
|
|
4006
3718
|
};
|
|
4007
3719
|
|
|
4008
|
-
const Wrapper$5 =
|
|
3720
|
+
const Wrapper$5 = ut.div `
|
|
4009
3721
|
display: inline-block;
|
|
4010
3722
|
border-radius: 4px;
|
|
4011
3723
|
padding: 4px 6px;
|
|
@@ -4014,18 +3726,18 @@ const Wrapper$5 = styled.div `
|
|
|
4014
3726
|
box-sizing: border-box;
|
|
4015
3727
|
cursor: ${props => (props.$removable ? 'pointer' : 'default')};
|
|
4016
3728
|
`;
|
|
4017
|
-
const Content =
|
|
3729
|
+
const Content = ut.div `
|
|
4018
3730
|
display: flex;
|
|
4019
3731
|
align-items: center;
|
|
4020
3732
|
`;
|
|
4021
|
-
const Label$1 =
|
|
3733
|
+
const Label$1 = ut.div `
|
|
4022
3734
|
color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
|
|
4023
3735
|
font-size: ${FontSizes.SMALL};
|
|
4024
3736
|
font-weight: 500;
|
|
4025
3737
|
font-family: ${FontStyles.DEFAULT};
|
|
4026
3738
|
line-height: 1.2em;
|
|
4027
3739
|
`;
|
|
4028
|
-
const Remove =
|
|
3740
|
+
const Remove = ut.div `
|
|
4029
3741
|
margin-left: 10px;
|
|
4030
3742
|
display: flex;
|
|
4031
3743
|
align-items: center;
|
|
@@ -4039,7 +3751,7 @@ const Tag = (_a) => {
|
|
|
4039
3751
|
React.createElement(Icon, { color: color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff', path: js.mdiClose, size: '15px' }))) : null)));
|
|
4040
3752
|
};
|
|
4041
3753
|
|
|
4042
|
-
const Wrapper$4 =
|
|
3754
|
+
const Wrapper$4 = ut.div `
|
|
4043
3755
|
display: flex;
|
|
4044
3756
|
padding: 16px 30px;
|
|
4045
3757
|
align-items: center;
|
|
@@ -4047,24 +3759,24 @@ const Wrapper$4 = styled.div `
|
|
|
4047
3759
|
align-self: stretch;
|
|
4048
3760
|
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
4049
3761
|
`;
|
|
4050
|
-
const Title =
|
|
3762
|
+
const Title = ut.div `
|
|
4051
3763
|
display: flex;
|
|
4052
3764
|
align-items: center;
|
|
4053
3765
|
gap: 20px;
|
|
4054
3766
|
`;
|
|
4055
|
-
const Info =
|
|
3767
|
+
const Info = ut.div `
|
|
4056
3768
|
display: flex;
|
|
4057
3769
|
flex-direction: column;
|
|
4058
3770
|
align-items: flex-start;
|
|
4059
3771
|
gap: 4px;
|
|
4060
3772
|
flex: 1 0 0;
|
|
4061
3773
|
`;
|
|
4062
|
-
const Breadcrumbs =
|
|
3774
|
+
const Breadcrumbs = ut.div `
|
|
4063
3775
|
display: flex;
|
|
4064
3776
|
align-items: center;
|
|
4065
3777
|
gap: 4px;
|
|
4066
3778
|
`;
|
|
4067
|
-
const Actions =
|
|
3779
|
+
const Actions = ut.div `
|
|
4068
3780
|
display: flex;
|
|
4069
3781
|
align-items: center;
|
|
4070
3782
|
gap: 8px;
|
|
@@ -4089,7 +3801,7 @@ const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu, tag }) => {
|
|
|
4089
3801
|
menuItems.length ? (React.createElement(ButtonMenu, { format: format, label: label, menuItems: menuItems, small: true })) : null)) : null));
|
|
4090
3802
|
};
|
|
4091
3803
|
|
|
4092
|
-
const Wrapper$3 =
|
|
3804
|
+
const Wrapper$3 = ut.nav `
|
|
4093
3805
|
box-sizing: border-box;
|
|
4094
3806
|
display: flex;
|
|
4095
3807
|
align-items: center;
|
|
@@ -4124,21 +3836,28 @@ const Pagination = (_a) => {
|
|
|
4124
3836
|
React.createElement(Button, { disabled: is_last_page, icon: js.mdiChevronRight, onClick: handleNextClick, small: true })));
|
|
4125
3837
|
};
|
|
4126
3838
|
|
|
4127
|
-
const Wrapper$2 =
|
|
4128
|
-
|
|
3839
|
+
const Wrapper$2 = ut.label `
|
|
3840
|
+
border-radius: 4px;
|
|
3841
|
+
padding: 4px 0px 4px 6px;
|
|
3842
|
+
margin-left: -6px;
|
|
4129
3843
|
cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
|
|
4130
3844
|
display: flex;
|
|
4131
3845
|
align-items: center;
|
|
4132
3846
|
font-size: ${FontSizes.DEFAULT};
|
|
4133
3847
|
line-height: 1.6rm;
|
|
4134
3848
|
box-sizing: border-box;
|
|
3849
|
+
|
|
3850
|
+
&:focus-within {
|
|
3851
|
+
background: ${props => `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)`};
|
|
3852
|
+
}
|
|
4135
3853
|
`;
|
|
4136
|
-
|
|
3854
|
+
Wrapper$2.defaultProps = { theme: EditableTheme };
|
|
3855
|
+
const Input = ut.input `
|
|
4137
3856
|
font-size: 20px;
|
|
4138
3857
|
margin: 0px 0px 2px 0px;
|
|
4139
3858
|
line-height: 1.1em;
|
|
4140
3859
|
`;
|
|
4141
|
-
const Label =
|
|
3860
|
+
const Label = ut.span `
|
|
4142
3861
|
font-family: ${FontStyles.DEFAULT};
|
|
4143
3862
|
font-size: ${FontSizes.DEFAULT};
|
|
4144
3863
|
font-weight: 400;
|
|
@@ -4161,7 +3880,7 @@ const RadioList = (_a) => {
|
|
|
4161
3880
|
})));
|
|
4162
3881
|
};
|
|
4163
3882
|
|
|
4164
|
-
const StyledTable =
|
|
3883
|
+
const StyledTable = ut.table `
|
|
4165
3884
|
width: 100%;
|
|
4166
3885
|
margin-top: 1px;
|
|
4167
3886
|
table-layout: ${props => props.$tableLayout || 'auto'};
|
|
@@ -4171,7 +3890,7 @@ const StyledTable = styled.table `
|
|
|
4171
3890
|
border-color: none;
|
|
4172
3891
|
box-sizing: border-box;
|
|
4173
3892
|
`;
|
|
4174
|
-
const Header =
|
|
3893
|
+
const Header = ut.th `
|
|
4175
3894
|
padding: 12px !important;
|
|
4176
3895
|
text-align: left;
|
|
4177
3896
|
font-weight: 500;
|
|
@@ -4190,7 +3909,7 @@ const Header = styled.th `
|
|
|
4190
3909
|
color: ${props => (props.$isSortable ? props.theme.PRIMARY_COLOR.Hex : Colors.BLACK.Hex)};
|
|
4191
3910
|
`;
|
|
4192
3911
|
Header.defaultProps = { theme: EditableTheme };
|
|
4193
|
-
const Row =
|
|
3912
|
+
const Row = ut.tr `
|
|
4194
3913
|
cursor: ${props => (props.$isClickable ? 'pointer' : 'default')};
|
|
4195
3914
|
transition: all 0.2s;
|
|
4196
3915
|
background-color: ${props => props.$bgColor};
|
|
@@ -4200,7 +3919,7 @@ const Row = styled.tr `
|
|
|
4200
3919
|
}
|
|
4201
3920
|
`;
|
|
4202
3921
|
Row.defaultProps = { theme: EditableTheme };
|
|
4203
|
-
const Column =
|
|
3922
|
+
const Column = ut.td `
|
|
4204
3923
|
padding: 16px 12px !important;
|
|
4205
3924
|
font-size: ${FontSizes.DEFAULT} !important;
|
|
4206
3925
|
font-weight: 400 !important;
|
|
@@ -4211,13 +3930,13 @@ const Column = styled.td `
|
|
|
4211
3930
|
box-sizing: border-box;
|
|
4212
3931
|
width: ${props => props.$width || 'auto'};
|
|
4213
3932
|
`;
|
|
4214
|
-
const IconWrapper =
|
|
3933
|
+
const IconWrapper = ut.span `
|
|
4215
3934
|
position: absolute;
|
|
4216
3935
|
top: 50%;
|
|
4217
3936
|
transform: translateY(-50%);
|
|
4218
3937
|
margin-left: 2px;
|
|
4219
3938
|
`;
|
|
4220
|
-
const StyledIcon$1 =
|
|
3939
|
+
const StyledIcon$1 = ut(Icon) `
|
|
4221
3940
|
> path {
|
|
4222
3941
|
fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
|
|
4223
3942
|
}
|
|
@@ -4240,7 +3959,7 @@ const Table = (_a) => {
|
|
|
4240
3959
|
}))) : null));
|
|
4241
3960
|
};
|
|
4242
3961
|
|
|
4243
|
-
const Wrapper$1 =
|
|
3962
|
+
const Wrapper$1 = ut.div `
|
|
4244
3963
|
display: flex;
|
|
4245
3964
|
box-sizing: border-box;
|
|
4246
3965
|
align-items: flex-end;
|
|
@@ -4251,7 +3970,7 @@ const Wrapper$1 = styled.div `
|
|
|
4251
3970
|
padding: 0;
|
|
4252
3971
|
margin: 0;
|
|
4253
3972
|
`;
|
|
4254
|
-
const Tab =
|
|
3973
|
+
const Tab = ut.div `
|
|
4255
3974
|
display: flex;
|
|
4256
3975
|
align-items: center;
|
|
4257
3976
|
gap: 6px;
|
|
@@ -4273,7 +3992,7 @@ const Tab = styled.div `
|
|
|
4273
3992
|
}
|
|
4274
3993
|
`;
|
|
4275
3994
|
Tab.defaultProps = { theme: EditableTheme };
|
|
4276
|
-
const Badge =
|
|
3995
|
+
const Badge = ut.div `
|
|
4277
3996
|
display: flex;
|
|
4278
3997
|
width: 18px;
|
|
4279
3998
|
height: 18px;
|
|
@@ -4300,7 +4019,7 @@ const Tabs = (_a) => {
|
|
|
4300
4019
|
};
|
|
4301
4020
|
Tabs.defaultProps = {};
|
|
4302
4021
|
|
|
4303
|
-
const Track =
|
|
4022
|
+
const Track = ut.div `
|
|
4304
4023
|
height: 24px;
|
|
4305
4024
|
border-radius: 12px;
|
|
4306
4025
|
background: ${props => (props.$on ? Colors.GREEN.Hex : Colors.BLACK.Hex)};
|
|
@@ -4311,7 +4030,7 @@ const Track = styled.div `
|
|
|
4311
4030
|
padding: 2px;
|
|
4312
4031
|
box-sizing: border-box;
|
|
4313
4032
|
`;
|
|
4314
|
-
const Handle =
|
|
4033
|
+
const Handle = ut.div `
|
|
4315
4034
|
width: 20px;
|
|
4316
4035
|
height: 20px;
|
|
4317
4036
|
border-radius: 10px;
|
|
@@ -4331,7 +4050,7 @@ const Toggle = (_a) => {
|
|
|
4331
4050
|
};
|
|
4332
4051
|
Toggle.defaultProps = {};
|
|
4333
4052
|
|
|
4334
|
-
const Container =
|
|
4053
|
+
const Container = ut.div `
|
|
4335
4054
|
width: 100%;
|
|
4336
4055
|
padding: 40px auto;
|
|
4337
4056
|
gap: 20px;
|
|
@@ -4340,14 +4059,14 @@ const Container = styled.div `
|
|
|
4340
4059
|
justify-items: center;
|
|
4341
4060
|
align-items: center;
|
|
4342
4061
|
`;
|
|
4343
|
-
const Wrapper =
|
|
4062
|
+
const Wrapper = ut.div `
|
|
4344
4063
|
gap: 10px;
|
|
4345
4064
|
display: flex;
|
|
4346
4065
|
flex-direction: column;
|
|
4347
4066
|
justify-items: center;
|
|
4348
4067
|
align-items: center;
|
|
4349
4068
|
`;
|
|
4350
|
-
const StyledIcon =
|
|
4069
|
+
const StyledIcon = ut.div `
|
|
4351
4070
|
display: flex;
|
|
4352
4071
|
align-items: center;
|
|
4353
4072
|
justify-content: center;
|