@hexure/ui 1.9.4 → 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 +1529 -1832
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1530 -1833
- package/dist/esm/index.js.map +1 -1
- package/package.json +5 -11
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useRef, useDebugValue,
|
|
1
|
+
import React, { useRef, useDebugValue, createElement, useContext, useState, useEffect } from 'react';
|
|
2
2
|
import Icon, { Icon as Icon$1 } from '@mdi/react';
|
|
3
3
|
import { mdiChevronUp, mdiChevronDown, mdiLoading, mdiInformationOutline, mdiAlertOctagonOutline, mdiAlertOutline, mdiCheckboxMarkedCircleOutline, mdiDotsHorizontal, mdiClose, mdiMinusCircle, mdiFolderPlusOutline, mdiChevronRight, mdiChevronLeft, mdiCheck } from '@mdi/js';
|
|
4
4
|
import Numeral from 'numeral';
|
|
@@ -20,6 +20,16 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
20
20
|
***************************************************************************** */
|
|
21
21
|
/* global Reflect, Promise */
|
|
22
22
|
|
|
23
|
+
var __assign = function () {
|
|
24
|
+
__assign = Object.assign || function __assign(t) {
|
|
25
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
26
|
+
s = arguments[i];
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
28
|
+
}
|
|
29
|
+
return t;
|
|
30
|
+
};
|
|
31
|
+
return __assign.apply(this, arguments);
|
|
32
|
+
};
|
|
23
33
|
function __rest(s, e) {
|
|
24
34
|
var t = {};
|
|
25
35
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
@@ -28,6 +38,32 @@ function __rest(s, e) {
|
|
|
28
38
|
}
|
|
29
39
|
return t;
|
|
30
40
|
}
|
|
41
|
+
function __spreadArray(to, from, pack) {
|
|
42
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
43
|
+
if (ar || !(i in from)) {
|
|
44
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
45
|
+
ar[i] = from[i];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function memoize(fn) {
|
|
52
|
+
var cache = Object.create(null);
|
|
53
|
+
return function (arg) {
|
|
54
|
+
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
55
|
+
return cache[arg];
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
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
|
|
60
|
+
|
|
61
|
+
var isPropValid = /* #__PURE__ */memoize(function (prop) {
|
|
62
|
+
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
|
63
|
+
/* o */ && prop.charCodeAt(1) === 110
|
|
64
|
+
/* n */ && prop.charCodeAt(2) < 91;
|
|
65
|
+
}
|
|
66
|
+
/* Z+1 */);
|
|
31
67
|
|
|
32
68
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
33
69
|
|
|
@@ -35,831 +71,869 @@ function getDefaultExportFromCjs (x) {
|
|
|
35
71
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
36
72
|
}
|
|
37
73
|
|
|
38
|
-
var
|
|
74
|
+
var MS = '-ms-';
|
|
75
|
+
var MOZ = '-moz-';
|
|
76
|
+
var WEBKIT = '-webkit-';
|
|
77
|
+
var COMMENT = 'comm';
|
|
78
|
+
var RULESET = 'rule';
|
|
79
|
+
var DECLARATION = 'decl';
|
|
80
|
+
var IMPORT = '@import';
|
|
81
|
+
var KEYFRAMES = '@keyframes';
|
|
82
|
+
var LAYER = '@layer';
|
|
39
83
|
|
|
40
|
-
|
|
84
|
+
/**
|
|
85
|
+
* @param {number}
|
|
86
|
+
* @return {number}
|
|
87
|
+
*/
|
|
88
|
+
var abs = Math.abs;
|
|
41
89
|
|
|
42
90
|
/**
|
|
43
|
-
* @
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
47
|
-
*
|
|
48
|
-
* This source code is licensed under the MIT license found in the
|
|
49
|
-
* LICENSE file in the root directory of this source tree.
|
|
91
|
+
* @param {number}
|
|
92
|
+
* @return {string}
|
|
50
93
|
*/
|
|
51
|
-
var
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
94
|
+
var from = String.fromCharCode;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @param {object}
|
|
98
|
+
* @return {object}
|
|
99
|
+
*/
|
|
100
|
+
var assign = Object.assign;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @param {string} value
|
|
104
|
+
* @param {number} length
|
|
105
|
+
* @return {number}
|
|
106
|
+
*/
|
|
107
|
+
function hash(value, length) {
|
|
108
|
+
return charat(value, 0) ^ 45 ? (((length << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @param {string} value
|
|
113
|
+
* @return {string}
|
|
114
|
+
*/
|
|
115
|
+
function trim(value) {
|
|
116
|
+
return value.trim();
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @param {string} value
|
|
121
|
+
* @param {RegExp} pattern
|
|
122
|
+
* @return {string?}
|
|
123
|
+
*/
|
|
124
|
+
function match(value, pattern) {
|
|
125
|
+
return (value = pattern.exec(value)) ? value[0] : value;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @param {string} value
|
|
130
|
+
* @param {(string|RegExp)} pattern
|
|
131
|
+
* @param {string} replacement
|
|
132
|
+
* @return {string}
|
|
133
|
+
*/
|
|
134
|
+
function replace(value, pattern, replacement) {
|
|
135
|
+
return value.replace(pattern, replacement);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @param {string} value
|
|
140
|
+
* @param {string} search
|
|
141
|
+
* @param {number} position
|
|
142
|
+
* @return {number}
|
|
143
|
+
*/
|
|
144
|
+
function indexof(value, search, position) {
|
|
145
|
+
return value.indexOf(search, position);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @param {string} value
|
|
150
|
+
* @param {number} index
|
|
151
|
+
* @return {number}
|
|
152
|
+
*/
|
|
153
|
+
function charat(value, index) {
|
|
154
|
+
return value.charCodeAt(index) | 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* @param {string} value
|
|
159
|
+
* @param {number} begin
|
|
160
|
+
* @param {number} end
|
|
161
|
+
* @return {string}
|
|
162
|
+
*/
|
|
163
|
+
function substr(value, begin, end) {
|
|
164
|
+
return value.slice(begin, end);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @param {string} value
|
|
169
|
+
* @return {number}
|
|
170
|
+
*/
|
|
171
|
+
function strlen(value) {
|
|
172
|
+
return value.length;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @param {any[]} value
|
|
177
|
+
* @return {number}
|
|
178
|
+
*/
|
|
179
|
+
function sizeof(value) {
|
|
180
|
+
return value.length;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* @param {any} value
|
|
185
|
+
* @param {any[]} array
|
|
186
|
+
* @return {any}
|
|
187
|
+
*/
|
|
188
|
+
function append(value, array) {
|
|
189
|
+
return array.push(value), value;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @param {string[]} array
|
|
194
|
+
* @param {function} callback
|
|
195
|
+
* @return {string}
|
|
196
|
+
*/
|
|
197
|
+
function combine(array, callback) {
|
|
198
|
+
return array.map(callback).join('');
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @param {string[]} array
|
|
203
|
+
* @param {RegExp} pattern
|
|
204
|
+
* @return {string[]}
|
|
205
|
+
*/
|
|
206
|
+
function filter(array, pattern) {
|
|
207
|
+
return array.filter(function (value) {
|
|
208
|
+
return !match(value, pattern);
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
var line = 1;
|
|
213
|
+
var column = 1;
|
|
214
|
+
var length = 0;
|
|
215
|
+
var position = 0;
|
|
216
|
+
var character = 0;
|
|
217
|
+
var characters = '';
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* @param {string} value
|
|
221
|
+
* @param {object | null} root
|
|
222
|
+
* @param {object | null} parent
|
|
223
|
+
* @param {string} type
|
|
224
|
+
* @param {string[] | string} props
|
|
225
|
+
* @param {object[] | string} children
|
|
226
|
+
* @param {object[]} siblings
|
|
227
|
+
* @param {number} length
|
|
228
|
+
*/
|
|
229
|
+
function node(value, root, parent, type, props, children, length, siblings) {
|
|
230
|
+
return {
|
|
231
|
+
value: value,
|
|
232
|
+
root: root,
|
|
233
|
+
parent: parent,
|
|
234
|
+
type: type,
|
|
235
|
+
props: props,
|
|
236
|
+
children: children,
|
|
237
|
+
line: line,
|
|
238
|
+
column: column,
|
|
239
|
+
length: length,
|
|
240
|
+
return: '',
|
|
241
|
+
siblings: siblings
|
|
157
242
|
};
|
|
158
|
-
reactIs_production_min$1.typeOf = v;
|
|
159
|
-
return reactIs_production_min$1;
|
|
160
243
|
}
|
|
161
244
|
|
|
162
|
-
|
|
245
|
+
/**
|
|
246
|
+
* @param {object} root
|
|
247
|
+
* @param {object} props
|
|
248
|
+
* @return {object}
|
|
249
|
+
*/
|
|
250
|
+
function copy(root, props) {
|
|
251
|
+
return assign(node('', null, null, '', null, null, 0, root.siblings), root, {
|
|
252
|
+
length: -root.length
|
|
253
|
+
}, props);
|
|
254
|
+
}
|
|
163
255
|
|
|
164
256
|
/**
|
|
165
|
-
* @
|
|
166
|
-
* react-is.development.js
|
|
167
|
-
*
|
|
168
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
169
|
-
*
|
|
170
|
-
* This source code is licensed under the MIT license found in the
|
|
171
|
-
* LICENSE file in the root directory of this source tree.
|
|
257
|
+
* @param {object} root
|
|
172
258
|
*/
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
259
|
+
function lift(root) {
|
|
260
|
+
while (root.root) root = copy(root.root, {
|
|
261
|
+
children: [root]
|
|
262
|
+
});
|
|
263
|
+
append(root, root.siblings);
|
|
264
|
+
}
|
|
179
265
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
|
187
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
|
|
188
|
-
var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
|
|
189
|
-
var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
|
|
190
|
-
var REACT_CONTEXT_TYPE = Symbol.for('react.context');
|
|
191
|
-
var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
|
|
192
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
|
|
193
|
-
var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
|
|
194
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
|
|
195
|
-
var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
|
196
|
-
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
|
197
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
|
|
266
|
+
/**
|
|
267
|
+
* @return {number}
|
|
268
|
+
*/
|
|
269
|
+
function char() {
|
|
270
|
+
return character;
|
|
271
|
+
}
|
|
198
272
|
|
|
199
|
-
|
|
273
|
+
/**
|
|
274
|
+
* @return {number}
|
|
275
|
+
*/
|
|
276
|
+
function prev() {
|
|
277
|
+
character = position > 0 ? charat(characters, --position) : 0;
|
|
278
|
+
if (column--, character === 10) column = 1, line--;
|
|
279
|
+
return character;
|
|
280
|
+
}
|
|
200
281
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
282
|
+
/**
|
|
283
|
+
* @return {number}
|
|
284
|
+
*/
|
|
285
|
+
function next() {
|
|
286
|
+
character = position < length ? charat(characters, position++) : 0;
|
|
287
|
+
if (column++, character === 10) column = 1, line++;
|
|
288
|
+
return character;
|
|
289
|
+
}
|
|
204
290
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
291
|
+
/**
|
|
292
|
+
* @return {number}
|
|
293
|
+
*/
|
|
294
|
+
function peek() {
|
|
295
|
+
return charat(characters, position);
|
|
296
|
+
}
|
|
208
297
|
|
|
209
|
-
|
|
298
|
+
/**
|
|
299
|
+
* @return {number}
|
|
300
|
+
*/
|
|
301
|
+
function caret() {
|
|
302
|
+
return position;
|
|
303
|
+
}
|
|
210
304
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
305
|
+
/**
|
|
306
|
+
* @param {number} begin
|
|
307
|
+
* @param {number} end
|
|
308
|
+
* @return {string}
|
|
309
|
+
*/
|
|
310
|
+
function slice(begin, end) {
|
|
311
|
+
return substr(characters, begin, end);
|
|
312
|
+
}
|
|
219
313
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
case REACT_PORTAL_TYPE:
|
|
263
|
-
return $$typeof;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
return undefined;
|
|
267
|
-
}
|
|
268
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
269
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
270
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
271
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
272
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
273
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
274
|
-
var Memo = REACT_MEMO_TYPE;
|
|
275
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
276
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
277
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
278
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
279
|
-
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
280
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
281
|
-
var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
|
|
314
|
+
/**
|
|
315
|
+
* @param {number} type
|
|
316
|
+
* @return {number}
|
|
317
|
+
*/
|
|
318
|
+
function token(type) {
|
|
319
|
+
switch (type) {
|
|
320
|
+
// \0 \t \n \r \s whitespace token
|
|
321
|
+
case 0:
|
|
322
|
+
case 9:
|
|
323
|
+
case 10:
|
|
324
|
+
case 13:
|
|
325
|
+
case 32:
|
|
326
|
+
return 5;
|
|
327
|
+
// ! + , / > @ ~ isolate token
|
|
328
|
+
case 33:
|
|
329
|
+
case 43:
|
|
330
|
+
case 44:
|
|
331
|
+
case 47:
|
|
332
|
+
case 62:
|
|
333
|
+
case 64:
|
|
334
|
+
case 126:
|
|
335
|
+
// ; { } breakpoint token
|
|
336
|
+
case 59:
|
|
337
|
+
case 123:
|
|
338
|
+
case 125:
|
|
339
|
+
return 4;
|
|
340
|
+
// : accompanied token
|
|
341
|
+
case 58:
|
|
342
|
+
return 3;
|
|
343
|
+
// " ' ( [ opening delimit token
|
|
344
|
+
case 34:
|
|
345
|
+
case 39:
|
|
346
|
+
case 40:
|
|
347
|
+
case 91:
|
|
348
|
+
return 2;
|
|
349
|
+
// ) ] closing delimit token
|
|
350
|
+
case 41:
|
|
351
|
+
case 93:
|
|
352
|
+
return 1;
|
|
353
|
+
}
|
|
354
|
+
return 0;
|
|
355
|
+
}
|
|
282
356
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
357
|
+
/**
|
|
358
|
+
* @param {string} value
|
|
359
|
+
* @return {any[]}
|
|
360
|
+
*/
|
|
361
|
+
function alloc(value) {
|
|
362
|
+
return line = column = 1, length = strlen(characters = value), position = 0, [];
|
|
363
|
+
}
|
|
287
364
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
296
|
-
hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
365
|
+
/**
|
|
366
|
+
* @param {any} value
|
|
367
|
+
* @return {any}
|
|
368
|
+
*/
|
|
369
|
+
function dealloc(value) {
|
|
370
|
+
return characters = '', value;
|
|
371
|
+
}
|
|
297
372
|
|
|
298
|
-
|
|
299
|
-
|
|
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
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
reactIs_development$1.Suspense = Suspense;
|
|
350
|
-
reactIs_development$1.SuspenseList = SuspenseList;
|
|
351
|
-
reactIs_development$1.isAsyncMode = isAsyncMode;
|
|
352
|
-
reactIs_development$1.isConcurrentMode = isConcurrentMode;
|
|
353
|
-
reactIs_development$1.isContextConsumer = isContextConsumer;
|
|
354
|
-
reactIs_development$1.isContextProvider = isContextProvider;
|
|
355
|
-
reactIs_development$1.isElement = isElement;
|
|
356
|
-
reactIs_development$1.isForwardRef = isForwardRef;
|
|
357
|
-
reactIs_development$1.isFragment = isFragment;
|
|
358
|
-
reactIs_development$1.isLazy = isLazy;
|
|
359
|
-
reactIs_development$1.isMemo = isMemo;
|
|
360
|
-
reactIs_development$1.isPortal = isPortal;
|
|
361
|
-
reactIs_development$1.isProfiler = isProfiler;
|
|
362
|
-
reactIs_development$1.isStrictMode = isStrictMode;
|
|
363
|
-
reactIs_development$1.isSuspense = isSuspense;
|
|
364
|
-
reactIs_development$1.isSuspenseList = isSuspenseList;
|
|
365
|
-
reactIs_development$1.isValidElementType = isValidElementType;
|
|
366
|
-
reactIs_development$1.typeOf = typeOf;
|
|
367
|
-
})();
|
|
373
|
+
/**
|
|
374
|
+
* @param {number} type
|
|
375
|
+
* @return {string}
|
|
376
|
+
*/
|
|
377
|
+
function delimit(type) {
|
|
378
|
+
return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* @param {number} type
|
|
383
|
+
* @return {string}
|
|
384
|
+
*/
|
|
385
|
+
function whitespace(type) {
|
|
386
|
+
while (character = peek()) if (character < 33) next();else break;
|
|
387
|
+
return token(type) > 2 || token(character) > 3 ? '' : ' ';
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* @param {number} index
|
|
392
|
+
* @param {number} count
|
|
393
|
+
* @return {string}
|
|
394
|
+
*/
|
|
395
|
+
function escaping(index, count) {
|
|
396
|
+
while (--count && next())
|
|
397
|
+
// not 0-9 A-F a-f
|
|
398
|
+
if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97) break;
|
|
399
|
+
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* @param {number} type
|
|
404
|
+
* @return {number}
|
|
405
|
+
*/
|
|
406
|
+
function delimiter(type) {
|
|
407
|
+
while (next()) switch (character) {
|
|
408
|
+
// ] ) " '
|
|
409
|
+
case type:
|
|
410
|
+
return position;
|
|
411
|
+
// " '
|
|
412
|
+
case 34:
|
|
413
|
+
case 39:
|
|
414
|
+
if (type !== 34 && type !== 39) delimiter(character);
|
|
415
|
+
break;
|
|
416
|
+
// (
|
|
417
|
+
case 40:
|
|
418
|
+
if (type === 41) delimiter(type);
|
|
419
|
+
break;
|
|
420
|
+
// \
|
|
421
|
+
case 92:
|
|
422
|
+
next();
|
|
423
|
+
break;
|
|
368
424
|
}
|
|
369
|
-
return
|
|
425
|
+
return position;
|
|
370
426
|
}
|
|
371
427
|
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
428
|
+
/**
|
|
429
|
+
* @param {number} type
|
|
430
|
+
* @param {number} index
|
|
431
|
+
* @return {number}
|
|
432
|
+
*/
|
|
433
|
+
function commenter(type, index) {
|
|
434
|
+
while (next())
|
|
435
|
+
// //
|
|
436
|
+
if (type + character === 47 + 10) break;
|
|
437
|
+
// /*
|
|
438
|
+
else if (type + character === 42 + 42 && peek() === 47) break;
|
|
439
|
+
return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next());
|
|
376
440
|
}
|
|
377
|
-
var reactIsExports$1 = reactIs$2.exports;
|
|
378
441
|
|
|
379
|
-
|
|
380
|
-
|
|
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
|
-
l = u;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
break;
|
|
435
|
-
case 91:
|
|
436
|
-
g++;
|
|
437
|
-
case 40:
|
|
438
|
-
g++;
|
|
439
|
-
case 34:
|
|
440
|
-
case 39:
|
|
441
|
-
for (; l++ < J && e.charCodeAt(l) !== g;) {}
|
|
442
|
-
}
|
|
443
|
-
if (0 === k) break;
|
|
444
|
-
l++;
|
|
445
|
-
}
|
|
446
|
-
k = e.substring(t, l);
|
|
447
|
-
0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
|
|
448
|
-
switch (q) {
|
|
449
|
-
case 64:
|
|
450
|
-
0 < r && (f = f.replace(N, ''));
|
|
451
|
-
g = f.charCodeAt(1);
|
|
452
|
-
switch (g) {
|
|
453
|
-
case 100:
|
|
454
|
-
case 109:
|
|
455
|
-
case 115:
|
|
456
|
-
case 45:
|
|
457
|
-
r = c;
|
|
458
|
-
break;
|
|
459
|
-
default:
|
|
460
|
-
r = O;
|
|
461
|
-
}
|
|
462
|
-
k = M(c, r, k, g, a + 1);
|
|
463
|
-
t = k.length;
|
|
464
|
-
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 = ''));
|
|
465
|
-
if (0 < t) switch (g) {
|
|
466
|
-
case 115:
|
|
467
|
-
f = f.replace(da, ea);
|
|
468
|
-
case 100:
|
|
469
|
-
case 109:
|
|
470
|
-
case 45:
|
|
471
|
-
k = f + '{' + k + '}';
|
|
472
|
-
break;
|
|
473
|
-
case 107:
|
|
474
|
-
f = f.replace(fa, '$1 $2');
|
|
475
|
-
k = f + '{' + k + '}';
|
|
476
|
-
k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
|
|
477
|
-
break;
|
|
478
|
-
default:
|
|
479
|
-
k = f + k, 112 === h && (k = (p += k, ''));
|
|
480
|
-
} else k = '';
|
|
481
|
-
break;
|
|
482
|
-
default:
|
|
483
|
-
k = M(c, X(c, f, I), k, h, a + 1);
|
|
484
|
-
}
|
|
485
|
-
F += k;
|
|
486
|
-
k = I = r = u = q = 0;
|
|
487
|
-
f = '';
|
|
488
|
-
g = e.charCodeAt(++l);
|
|
489
|
-
break;
|
|
490
|
-
case 125:
|
|
491
|
-
case 59:
|
|
492
|
-
f = (0 < r ? f.replace(N, '') : f).trim();
|
|
493
|
-
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) {
|
|
494
|
-
case 0:
|
|
495
|
-
break;
|
|
496
|
-
case 64:
|
|
497
|
-
if (105 === g || 99 === g) {
|
|
498
|
-
G += f + e.charAt(l);
|
|
499
|
-
break;
|
|
500
|
-
}
|
|
501
|
-
default:
|
|
502
|
-
58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
|
|
503
|
-
}
|
|
504
|
-
I = r = u = q = 0;
|
|
505
|
-
f = '';
|
|
506
|
-
g = e.charCodeAt(++l);
|
|
507
|
-
}
|
|
442
|
+
/**
|
|
443
|
+
* @param {number} index
|
|
444
|
+
* @return {string}
|
|
445
|
+
*/
|
|
446
|
+
function identifier(index) {
|
|
447
|
+
while (!token(peek())) next();
|
|
448
|
+
return slice(index, position);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* @param {string} value
|
|
453
|
+
* @return {object[]}
|
|
454
|
+
*/
|
|
455
|
+
function compile(value) {
|
|
456
|
+
return dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value));
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* @param {string} value
|
|
461
|
+
* @param {object} root
|
|
462
|
+
* @param {object?} parent
|
|
463
|
+
* @param {string[]} rule
|
|
464
|
+
* @param {string[]} rules
|
|
465
|
+
* @param {string[]} rulesets
|
|
466
|
+
* @param {number[]} pseudo
|
|
467
|
+
* @param {number[]} points
|
|
468
|
+
* @param {string[]} declarations
|
|
469
|
+
* @return {object}
|
|
470
|
+
*/
|
|
471
|
+
function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
472
|
+
var index = 0;
|
|
473
|
+
var offset = 0;
|
|
474
|
+
var length = pseudo;
|
|
475
|
+
var atrule = 0;
|
|
476
|
+
var property = 0;
|
|
477
|
+
var previous = 0;
|
|
478
|
+
var variable = 1;
|
|
479
|
+
var scanning = 1;
|
|
480
|
+
var ampersand = 1;
|
|
481
|
+
var character = 0;
|
|
482
|
+
var type = '';
|
|
483
|
+
var props = rules;
|
|
484
|
+
var children = rulesets;
|
|
485
|
+
var reference = rule;
|
|
486
|
+
var characters = type;
|
|
487
|
+
while (scanning) switch (previous = character, character = next()) {
|
|
488
|
+
// (
|
|
489
|
+
case 40:
|
|
490
|
+
if (previous != 108 && charat(characters, length - 1) == 58) {
|
|
491
|
+
if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f', abs(index ? points[index - 1] : 0)) != -1) ampersand = -1;
|
|
492
|
+
break;
|
|
508
493
|
}
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
494
|
+
// " ' [
|
|
495
|
+
case 34:
|
|
496
|
+
case 39:
|
|
497
|
+
case 91:
|
|
498
|
+
characters += delimit(character);
|
|
499
|
+
break;
|
|
500
|
+
// \t \n \r \s
|
|
501
|
+
case 9:
|
|
502
|
+
case 10:
|
|
503
|
+
case 13:
|
|
504
|
+
case 32:
|
|
505
|
+
characters += whitespace(previous);
|
|
506
|
+
break;
|
|
507
|
+
// \
|
|
508
|
+
case 92:
|
|
509
|
+
characters += escaping(caret() - 1, 7);
|
|
510
|
+
continue;
|
|
511
|
+
// /
|
|
512
|
+
case 47:
|
|
513
|
+
switch (peek()) {
|
|
514
|
+
case 42:
|
|
515
|
+
case 47:
|
|
516
|
+
append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
|
|
516
517
|
break;
|
|
517
|
-
|
|
518
|
+
default:
|
|
519
|
+
characters += '/';
|
|
520
|
+
}
|
|
521
|
+
break;
|
|
522
|
+
// {
|
|
523
|
+
case 123 * variable:
|
|
524
|
+
points[index++] = strlen(characters) * ampersand;
|
|
525
|
+
// } ; \0
|
|
526
|
+
case 125 * variable:
|
|
527
|
+
case 59:
|
|
528
|
+
case 0:
|
|
529
|
+
switch (character) {
|
|
530
|
+
// \0 }
|
|
531
|
+
case 0:
|
|
518
532
|
case 125:
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
533
|
+
scanning = 0;
|
|
534
|
+
// ;
|
|
535
|
+
case 59 + offset:
|
|
536
|
+
if (ampersand == -1) characters = replace(characters, /\f/g, '');
|
|
537
|
+
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);
|
|
538
|
+
break;
|
|
539
|
+
// @ ;
|
|
540
|
+
case 59:
|
|
541
|
+
characters += ';';
|
|
542
|
+
// { rule/at-rule
|
|
523
543
|
default:
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
case
|
|
528
|
-
case 32:
|
|
529
|
-
if (0 === n + m + b) switch (x) {
|
|
530
|
-
case 44:
|
|
531
|
-
case 58:
|
|
532
|
-
case 9:
|
|
533
|
-
case 32:
|
|
534
|
-
y = '';
|
|
535
|
-
break;
|
|
536
|
-
default:
|
|
537
|
-
32 !== g && (y = ' ');
|
|
538
|
-
}
|
|
539
|
-
break;
|
|
540
|
-
case 0:
|
|
541
|
-
y = '\\0';
|
|
542
|
-
break;
|
|
543
|
-
case 12:
|
|
544
|
-
y = '\\f';
|
|
545
|
-
break;
|
|
546
|
-
case 11:
|
|
547
|
-
y = '\\v';
|
|
548
|
-
break;
|
|
549
|
-
case 38:
|
|
550
|
-
0 === n + b + m && (r = I = 1, y = '\f' + y);
|
|
551
|
-
break;
|
|
544
|
+
append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets);
|
|
545
|
+
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) {
|
|
546
|
+
// d l m s
|
|
547
|
+
case 100:
|
|
552
548
|
case 108:
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
case 8:
|
|
557
|
-
111 === K && (E = K);
|
|
558
|
-
}
|
|
559
|
-
break;
|
|
560
|
-
case 58:
|
|
561
|
-
0 === n + b + m && (u = l);
|
|
562
|
-
break;
|
|
563
|
-
case 44:
|
|
564
|
-
0 === b + v + n + m && (r = 1, y += '\r');
|
|
565
|
-
break;
|
|
566
|
-
case 34:
|
|
567
|
-
case 39:
|
|
568
|
-
0 === b && (n = n === g ? 0 : 0 === n ? g : n);
|
|
569
|
-
break;
|
|
570
|
-
case 91:
|
|
571
|
-
0 === n + b + v && m++;
|
|
549
|
+
case 109:
|
|
550
|
+
case 115:
|
|
551
|
+
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);
|
|
572
552
|
break;
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
break;
|
|
576
|
-
case 41:
|
|
577
|
-
0 === n + b + m && v--;
|
|
578
|
-
break;
|
|
579
|
-
case 40:
|
|
580
|
-
if (0 === n + b + m) {
|
|
581
|
-
if (0 === q) switch (2 * x + 3 * K) {
|
|
582
|
-
case 533:
|
|
583
|
-
break;
|
|
584
|
-
default:
|
|
585
|
-
q = 1;
|
|
586
|
-
}
|
|
587
|
-
v++;
|
|
588
|
-
}
|
|
589
|
-
break;
|
|
590
|
-
case 64:
|
|
591
|
-
0 === b + v + n + m + u + k && (k = 1);
|
|
592
|
-
break;
|
|
593
|
-
case 42:
|
|
594
|
-
case 47:
|
|
595
|
-
if (!(0 < n + m + v)) switch (b) {
|
|
596
|
-
case 0:
|
|
597
|
-
switch (2 * g + 3 * e.charCodeAt(l + 1)) {
|
|
598
|
-
case 235:
|
|
599
|
-
b = 47;
|
|
600
|
-
break;
|
|
601
|
-
case 220:
|
|
602
|
-
t = l, b = 42;
|
|
603
|
-
}
|
|
604
|
-
break;
|
|
605
|
-
case 42:
|
|
606
|
-
47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
|
|
607
|
-
}
|
|
553
|
+
default:
|
|
554
|
+
parse(characters, reference, reference, reference, [''], children, 0, points, children);
|
|
608
555
|
}
|
|
609
|
-
0 === b && (f += y);
|
|
610
556
|
}
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
557
|
+
index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
|
|
558
|
+
break;
|
|
559
|
+
// :
|
|
560
|
+
case 58:
|
|
561
|
+
length = 1 + strlen(characters), property = previous;
|
|
562
|
+
default:
|
|
563
|
+
if (variable < 1) if (character == 123) --variable;else if (character == 125 && variable++ == 0 && prev() == 125) continue;
|
|
564
|
+
switch (characters += from(character), character * variable) {
|
|
565
|
+
// &
|
|
566
|
+
case 38:
|
|
567
|
+
ampersand = offset > 0 ? 1 : (characters += '\f', -1);
|
|
568
|
+
break;
|
|
569
|
+
// ,
|
|
570
|
+
case 44:
|
|
571
|
+
points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1;
|
|
572
|
+
break;
|
|
573
|
+
// @
|
|
574
|
+
case 64:
|
|
575
|
+
// -
|
|
576
|
+
if (peek() === 45) characters += delimit(next());
|
|
577
|
+
atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
|
|
578
|
+
break;
|
|
579
|
+
// -
|
|
580
|
+
case 45:
|
|
581
|
+
if (previous === 45 && strlen(characters) == 2) variable = 0;
|
|
630
582
|
}
|
|
631
|
-
}
|
|
632
|
-
return G + p + F;
|
|
633
583
|
}
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
584
|
+
return rulesets;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* @param {string} value
|
|
589
|
+
* @param {object} root
|
|
590
|
+
* @param {object?} parent
|
|
591
|
+
* @param {number} index
|
|
592
|
+
* @param {number} offset
|
|
593
|
+
* @param {string[]} rules
|
|
594
|
+
* @param {number[]} points
|
|
595
|
+
* @param {string} type
|
|
596
|
+
* @param {string[]} props
|
|
597
|
+
* @param {string[]} children
|
|
598
|
+
* @param {number} length
|
|
599
|
+
* @param {object[]} siblings
|
|
600
|
+
* @return {object}
|
|
601
|
+
*/
|
|
602
|
+
function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {
|
|
603
|
+
var post = offset - 1;
|
|
604
|
+
var rule = offset === 0 ? rules : [''];
|
|
605
|
+
var size = sizeof(rule);
|
|
606
|
+
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;
|
|
607
|
+
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length, siblings);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* @param {number} value
|
|
612
|
+
* @param {object} root
|
|
613
|
+
* @param {object?} parent
|
|
614
|
+
* @param {object[]} siblings
|
|
615
|
+
* @return {object}
|
|
616
|
+
*/
|
|
617
|
+
function comment(value, root, parent, siblings) {
|
|
618
|
+
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* @param {string} value
|
|
623
|
+
* @param {object} root
|
|
624
|
+
* @param {object?} parent
|
|
625
|
+
* @param {number} length
|
|
626
|
+
* @param {object[]} siblings
|
|
627
|
+
* @return {object}
|
|
628
|
+
*/
|
|
629
|
+
function declaration(value, root, parent, length, siblings) {
|
|
630
|
+
return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length, siblings);
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* @param {string} value
|
|
635
|
+
* @param {number} length
|
|
636
|
+
* @param {object[]} children
|
|
637
|
+
* @return {string}
|
|
638
|
+
*/
|
|
639
|
+
function prefix(value, length, children) {
|
|
640
|
+
switch (hash(value, length)) {
|
|
641
|
+
// color-adjust
|
|
642
|
+
case 5103:
|
|
643
|
+
return WEBKIT + 'print-' + value + value;
|
|
644
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
645
|
+
case 5737:
|
|
646
|
+
case 4201:
|
|
647
|
+
case 3177:
|
|
648
|
+
case 3433:
|
|
649
|
+
case 1641:
|
|
650
|
+
case 4457:
|
|
651
|
+
case 2921:
|
|
652
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
653
|
+
case 5572:
|
|
654
|
+
case 6356:
|
|
655
|
+
case 5844:
|
|
656
|
+
case 3191:
|
|
657
|
+
case 6645:
|
|
658
|
+
case 3005:
|
|
659
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
660
|
+
case 6391:
|
|
661
|
+
case 5879:
|
|
662
|
+
case 5623:
|
|
663
|
+
case 6135:
|
|
664
|
+
case 4599:
|
|
665
|
+
case 4855:
|
|
666
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
667
|
+
case 4215:
|
|
668
|
+
case 6389:
|
|
669
|
+
case 5109:
|
|
670
|
+
case 5365:
|
|
671
|
+
case 5621:
|
|
672
|
+
case 3829:
|
|
673
|
+
return WEBKIT + value + value;
|
|
674
|
+
// tab-size
|
|
675
|
+
case 4789:
|
|
676
|
+
return MOZ + value + value;
|
|
677
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
678
|
+
case 5349:
|
|
679
|
+
case 4246:
|
|
680
|
+
case 4810:
|
|
681
|
+
case 6968:
|
|
682
|
+
case 2756:
|
|
683
|
+
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
684
|
+
// writing-mode
|
|
685
|
+
case 5936:
|
|
686
|
+
switch (charat(value, length + 11)) {
|
|
687
|
+
// vertical-l(r)
|
|
688
|
+
case 114:
|
|
689
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
|
690
|
+
// vertical-r(l)
|
|
691
|
+
case 108:
|
|
692
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
|
693
|
+
// horizontal(-)tb
|
|
694
|
+
case 45:
|
|
695
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
|
696
|
+
// default: fallthrough to below
|
|
697
|
+
}
|
|
698
|
+
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
699
|
+
case 6828:
|
|
700
|
+
case 4268:
|
|
701
|
+
case 2903:
|
|
702
|
+
return WEBKIT + value + MS + value + value;
|
|
703
|
+
// order
|
|
704
|
+
case 6165:
|
|
705
|
+
return WEBKIT + value + MS + 'flex-' + value + value;
|
|
706
|
+
// align-items
|
|
707
|
+
case 5187:
|
|
708
|
+
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
|
709
|
+
// align-self
|
|
710
|
+
case 5443:
|
|
711
|
+
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/g, '') + (!match(value, /flex-|baseline/) ? MS + 'grid-row-' + replace(value, /flex-|-self/g, '') : '') + value;
|
|
712
|
+
// align-content
|
|
713
|
+
case 4675:
|
|
714
|
+
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/g, '') + value;
|
|
715
|
+
// flex-shrink
|
|
716
|
+
case 5548:
|
|
717
|
+
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
|
718
|
+
// flex-basis
|
|
719
|
+
case 5292:
|
|
720
|
+
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
|
721
|
+
// flex-grow
|
|
722
|
+
case 6060:
|
|
723
|
+
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
|
724
|
+
// transition
|
|
725
|
+
case 4554:
|
|
726
|
+
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
|
727
|
+
// cursor
|
|
728
|
+
case 6187:
|
|
729
|
+
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
|
730
|
+
// background, background-image
|
|
731
|
+
case 5495:
|
|
732
|
+
case 3959:
|
|
733
|
+
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
|
734
|
+
// justify-content
|
|
735
|
+
case 4968:
|
|
736
|
+
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
|
737
|
+
// justify-self
|
|
738
|
+
case 4200:
|
|
739
|
+
if (!match(value, /flex-|baseline/)) return MS + 'grid-column-align' + substr(value, length) + value;
|
|
740
|
+
break;
|
|
741
|
+
// grid-template-(columns|rows)
|
|
742
|
+
case 2592:
|
|
743
|
+
case 3360:
|
|
744
|
+
return MS + replace(value, 'template-', '') + value;
|
|
745
|
+
// grid-(row|column)-start
|
|
746
|
+
case 4384:
|
|
747
|
+
case 3616:
|
|
748
|
+
if (children && children.some(function (element, index) {
|
|
749
|
+
return length = index, match(element.props, /grid-\w+-end/);
|
|
750
|
+
})) {
|
|
751
|
+
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+/)) + ';';
|
|
752
|
+
}
|
|
753
|
+
return MS + replace(value, '-start', '') + value;
|
|
754
|
+
// grid-(row|column)-end
|
|
755
|
+
case 4896:
|
|
756
|
+
case 4128:
|
|
757
|
+
return children && children.some(function (element) {
|
|
758
|
+
return match(element.props, /grid-\w+-start/);
|
|
759
|
+
}) ? value : MS + replace(replace(value, '-end', '-span'), 'span ', '') + value;
|
|
760
|
+
// (margin|padding)-inline-(start|end)
|
|
761
|
+
case 4095:
|
|
762
|
+
case 3583:
|
|
763
|
+
case 4068:
|
|
764
|
+
case 2532:
|
|
765
|
+
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
|
766
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
767
|
+
case 8116:
|
|
768
|
+
case 7059:
|
|
769
|
+
case 5753:
|
|
770
|
+
case 5535:
|
|
771
|
+
case 5445:
|
|
772
|
+
case 5701:
|
|
773
|
+
case 4933:
|
|
774
|
+
case 4677:
|
|
775
|
+
case 5533:
|
|
776
|
+
case 5789:
|
|
777
|
+
case 5021:
|
|
778
|
+
case 4765:
|
|
779
|
+
// stretch, max-content, min-content, fill-available
|
|
780
|
+
if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
|
|
781
|
+
// (m)ax-content, (m)in-content
|
|
782
|
+
case 109:
|
|
783
|
+
// -
|
|
784
|
+
if (charat(value, length + 4) !== 45) break;
|
|
785
|
+
// (f)ill-available, (f)it-content
|
|
786
|
+
case 102:
|
|
787
|
+
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
|
788
|
+
// (s)tretch
|
|
789
|
+
case 115:
|
|
790
|
+
return ~indexof(value, 'stretch', 0) ? prefix(replace(value, 'stretch', 'fill-available'), length, children) + value : value;
|
|
791
|
+
}
|
|
792
|
+
break;
|
|
793
|
+
// grid-(column|row)
|
|
794
|
+
case 5152:
|
|
795
|
+
case 5920:
|
|
796
|
+
return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (_, a, b, c, d, e, f) {
|
|
797
|
+
return MS + a + ':' + b + f + (c ? MS + a + '-span:' + (d ? e : +e - +b) + f : '') + value;
|
|
798
|
+
});
|
|
799
|
+
// position: sticky
|
|
800
|
+
case 4949:
|
|
801
|
+
// stick(y)?
|
|
802
|
+
if (charat(value, length + 6) === 121) return replace(value, ':', ':' + WEBKIT) + value;
|
|
803
|
+
break;
|
|
804
|
+
// display: (flex|inline-flex|grid|inline-grid)
|
|
805
|
+
case 6444:
|
|
806
|
+
switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
|
|
807
|
+
// (inline-)?fle(x)
|
|
808
|
+
case 120:
|
|
809
|
+
return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
|
810
|
+
// (inline-)?gri(d)
|
|
811
|
+
case 100:
|
|
812
|
+
return replace(value, ':', ':' + MS) + value;
|
|
813
|
+
}
|
|
814
|
+
break;
|
|
815
|
+
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
816
|
+
case 5719:
|
|
817
|
+
case 2647:
|
|
818
|
+
case 2135:
|
|
819
|
+
case 3927:
|
|
820
|
+
case 2391:
|
|
821
|
+
return replace(value, 'scroll-', 'scroll-snap-') + value;
|
|
656
822
|
}
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
823
|
+
return value;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* @param {object[]} children
|
|
828
|
+
* @param {function} callback
|
|
829
|
+
* @return {string}
|
|
830
|
+
*/
|
|
831
|
+
function serialize(children, callback) {
|
|
832
|
+
var output = '';
|
|
833
|
+
for (var i = 0; i < children.length; i++) output += callback(children[i], i, children, callback) || '';
|
|
834
|
+
return output;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* @param {object} element
|
|
839
|
+
* @param {number} index
|
|
840
|
+
* @param {object[]} children
|
|
841
|
+
* @param {function} callback
|
|
842
|
+
* @return {string}
|
|
843
|
+
*/
|
|
844
|
+
function stringify(element, index, children, callback) {
|
|
845
|
+
switch (element.type) {
|
|
846
|
+
case LAYER:
|
|
847
|
+
if (element.children.length) break;
|
|
848
|
+
case IMPORT:
|
|
849
|
+
case DECLARATION:
|
|
850
|
+
return element.return = element.return || element.value;
|
|
851
|
+
case COMMENT:
|
|
852
|
+
return '';
|
|
853
|
+
case KEYFRAMES:
|
|
854
|
+
return element.return = element.value + '{' + serialize(element.children, callback) + '}';
|
|
855
|
+
case RULESET:
|
|
856
|
+
if (!strlen(element.value = element.props.join(','))) return '';
|
|
669
857
|
}
|
|
670
|
-
|
|
671
|
-
|
|
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
|
-
case 232:
|
|
727
|
-
b = a.replace(G, 'tb-rl');
|
|
728
|
-
break;
|
|
729
|
-
case 220:
|
|
730
|
-
b = a.replace(G, 'lr');
|
|
858
|
+
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : '';
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* @param {function[]} collection
|
|
863
|
+
* @return {function}
|
|
864
|
+
*/
|
|
865
|
+
function middleware(collection) {
|
|
866
|
+
var length = sizeof(collection);
|
|
867
|
+
return function (element, index, children, callback) {
|
|
868
|
+
var output = '';
|
|
869
|
+
for (var i = 0; i < length; i++) output += collection[i](element, index, children, callback) || '';
|
|
870
|
+
return output;
|
|
871
|
+
};
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* @param {function} callback
|
|
876
|
+
* @return {function}
|
|
877
|
+
*/
|
|
878
|
+
function rulesheet(callback) {
|
|
879
|
+
return function (element) {
|
|
880
|
+
if (!element.root) if (element = element.return) callback(element);
|
|
881
|
+
};
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* @param {object} element
|
|
886
|
+
* @param {number} index
|
|
887
|
+
* @param {object[]} children
|
|
888
|
+
* @param {function} callback
|
|
889
|
+
*/
|
|
890
|
+
function prefixer(element, index, children, callback) {
|
|
891
|
+
if (element.length > -1) if (!element.return) switch (element.type) {
|
|
892
|
+
case DECLARATION:
|
|
893
|
+
element.return = prefix(element.value, element.length, children);
|
|
894
|
+
return;
|
|
895
|
+
case KEYFRAMES:
|
|
896
|
+
return serialize([copy(element, {
|
|
897
|
+
value: replace(element.value, '@', '@' + WEBKIT)
|
|
898
|
+
})], callback);
|
|
899
|
+
case RULESET:
|
|
900
|
+
if (element.length) return combine(children = element.props, function (value) {
|
|
901
|
+
switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
|
|
902
|
+
// :read-(only|write)
|
|
903
|
+
case ':read-only':
|
|
904
|
+
case ':read-write':
|
|
905
|
+
lift(copy(element, {
|
|
906
|
+
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
|
907
|
+
}));
|
|
908
|
+
lift(copy(element, {
|
|
909
|
+
props: [value]
|
|
910
|
+
}));
|
|
911
|
+
assign(element, {
|
|
912
|
+
props: filter(children, callback)
|
|
913
|
+
});
|
|
731
914
|
break;
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
915
|
+
// :placeholder
|
|
916
|
+
case '::placeholder':
|
|
917
|
+
lift(copy(element, {
|
|
918
|
+
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
|
919
|
+
}));
|
|
920
|
+
lift(copy(element, {
|
|
921
|
+
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
|
922
|
+
}));
|
|
923
|
+
lift(copy(element, {
|
|
924
|
+
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
|
925
|
+
}));
|
|
926
|
+
lift(copy(element, {
|
|
927
|
+
props: [value]
|
|
928
|
+
}));
|
|
929
|
+
assign(element, {
|
|
930
|
+
props: filter(children, callback)
|
|
931
|
+
});
|
|
746
932
|
break;
|
|
747
|
-
case 207:
|
|
748
|
-
case 102:
|
|
749
|
-
a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
|
|
750
933
|
}
|
|
751
|
-
return
|
|
752
|
-
|
|
753
|
-
if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
|
|
754
|
-
case 105:
|
|
755
|
-
return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
|
|
756
|
-
case 115:
|
|
757
|
-
return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
|
|
758
|
-
default:
|
|
759
|
-
return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
|
|
760
|
-
}
|
|
761
|
-
break;
|
|
762
|
-
case 973:
|
|
763
|
-
case 989:
|
|
764
|
-
if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
|
|
765
|
-
case 931:
|
|
766
|
-
case 953:
|
|
767
|
-
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;
|
|
768
|
-
break;
|
|
769
|
-
case 962:
|
|
770
|
-
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;
|
|
771
|
-
}
|
|
772
|
-
return a;
|
|
773
|
-
}
|
|
774
|
-
function L(d, c) {
|
|
775
|
-
var e = d.indexOf(1 === c ? ':' : '{'),
|
|
776
|
-
h = d.substring(0, 3 !== c ? e : 10);
|
|
777
|
-
e = d.substring(e + 1, d.length - 1);
|
|
778
|
-
return R(2 !== c ? h : h.replace(na, '$1'), e, c);
|
|
779
|
-
}
|
|
780
|
-
function ea(d, c) {
|
|
781
|
-
var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
|
|
782
|
-
return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
|
|
783
|
-
}
|
|
784
|
-
function H(d, c, e, h, a, m, b, v, n, q) {
|
|
785
|
-
for (var g = 0, x = c, w; g < A; ++g) {
|
|
786
|
-
switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
|
|
787
|
-
case void 0:
|
|
788
|
-
case !1:
|
|
789
|
-
case !0:
|
|
790
|
-
case null:
|
|
791
|
-
break;
|
|
792
|
-
default:
|
|
793
|
-
x = w;
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
if (x !== c) return x;
|
|
797
|
-
}
|
|
798
|
-
function T(d) {
|
|
799
|
-
switch (d) {
|
|
800
|
-
case void 0:
|
|
801
|
-
case null:
|
|
802
|
-
A = S.length = 0;
|
|
803
|
-
break;
|
|
804
|
-
default:
|
|
805
|
-
if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) {
|
|
806
|
-
T(d[c]);
|
|
807
|
-
} else Y = !!d | 0;
|
|
808
|
-
}
|
|
809
|
-
return T;
|
|
810
|
-
}
|
|
811
|
-
function U(d) {
|
|
812
|
-
d = d.prefix;
|
|
813
|
-
void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
|
|
814
|
-
return U;
|
|
815
|
-
}
|
|
816
|
-
function B(d, c) {
|
|
817
|
-
var e = d;
|
|
818
|
-
33 > e.charCodeAt(0) && (e = e.trim());
|
|
819
|
-
V = e;
|
|
820
|
-
e = [V];
|
|
821
|
-
if (0 < A) {
|
|
822
|
-
var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
|
|
823
|
-
void 0 !== h && 'string' === typeof h && (c = h);
|
|
824
|
-
}
|
|
825
|
-
var a = M(O, e, c, 0, 0);
|
|
826
|
-
0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
|
|
827
|
-
V = '';
|
|
828
|
-
E = 0;
|
|
829
|
-
z = D = 1;
|
|
830
|
-
return a;
|
|
934
|
+
return '';
|
|
935
|
+
});
|
|
831
936
|
}
|
|
832
|
-
var ca = /^\0+/g,
|
|
833
|
-
N = /[\0\r\f]/g,
|
|
834
|
-
aa = /: */g,
|
|
835
|
-
ka = /zoo|gra/,
|
|
836
|
-
ma = /([,: ])(transform)/g,
|
|
837
|
-
ia = /,\r+?/g,
|
|
838
|
-
F = /([\t\r\n ])*\f?&/g,
|
|
839
|
-
fa = /@(k\w+)\s*(\S*)\s*/,
|
|
840
|
-
Q = /::(place)/g,
|
|
841
|
-
ha = /:(read-only)/g,
|
|
842
|
-
G = /[svh]\w+-[tblr]{2}/,
|
|
843
|
-
da = /\(\s*(.*)\s*\)/g,
|
|
844
|
-
oa = /([\s\S]*?);/g,
|
|
845
|
-
ba = /-self|flex-/g,
|
|
846
|
-
na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
|
|
847
|
-
la = /stretch|:\s*\w+\-(?:conte|avail)/,
|
|
848
|
-
ja = /([^-])(image-set\()/,
|
|
849
|
-
z = 1,
|
|
850
|
-
D = 1,
|
|
851
|
-
E = 0,
|
|
852
|
-
w = 1,
|
|
853
|
-
O = [],
|
|
854
|
-
S = [],
|
|
855
|
-
A = 0,
|
|
856
|
-
R = null,
|
|
857
|
-
Y = 0,
|
|
858
|
-
V = '';
|
|
859
|
-
B.use = T;
|
|
860
|
-
B.set = U;
|
|
861
|
-
void 0 !== W && U(W);
|
|
862
|
-
return B;
|
|
863
937
|
}
|
|
864
938
|
|
|
865
939
|
var unitlessKeys = {
|
|
@@ -911,1063 +985,686 @@ var unitlessKeys = {
|
|
|
911
985
|
strokeWidth: 1
|
|
912
986
|
};
|
|
913
987
|
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
var
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
939
|
-
*
|
|
940
|
-
* This source code is licensed under the MIT license found in the
|
|
941
|
-
* LICENSE file in the root directory of this source tree.
|
|
942
|
-
*/
|
|
943
|
-
var hasRequiredReactIs_production_min;
|
|
944
|
-
function requireReactIs_production_min() {
|
|
945
|
-
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
946
|
-
hasRequiredReactIs_production_min = 1;
|
|
947
|
-
var b = "function" === typeof Symbol && Symbol.for,
|
|
948
|
-
c = b ? Symbol.for("react.element") : 60103,
|
|
949
|
-
d = b ? Symbol.for("react.portal") : 60106,
|
|
950
|
-
e = b ? Symbol.for("react.fragment") : 60107,
|
|
951
|
-
f = b ? Symbol.for("react.strict_mode") : 60108,
|
|
952
|
-
g = b ? Symbol.for("react.profiler") : 60114,
|
|
953
|
-
h = b ? Symbol.for("react.provider") : 60109,
|
|
954
|
-
k = b ? Symbol.for("react.context") : 60110,
|
|
955
|
-
l = b ? Symbol.for("react.async_mode") : 60111,
|
|
956
|
-
m = b ? Symbol.for("react.concurrent_mode") : 60111,
|
|
957
|
-
n = b ? Symbol.for("react.forward_ref") : 60112,
|
|
958
|
-
p = b ? Symbol.for("react.suspense") : 60113,
|
|
959
|
-
q = b ? Symbol.for("react.suspense_list") : 60120,
|
|
960
|
-
r = b ? Symbol.for("react.memo") : 60115,
|
|
961
|
-
t = b ? Symbol.for("react.lazy") : 60116,
|
|
962
|
-
v = b ? Symbol.for("react.block") : 60121,
|
|
963
|
-
w = b ? Symbol.for("react.fundamental") : 60117,
|
|
964
|
-
x = b ? Symbol.for("react.responder") : 60118,
|
|
965
|
-
y = b ? Symbol.for("react.scope") : 60119;
|
|
966
|
-
function z(a) {
|
|
967
|
-
if ("object" === typeof a && null !== a) {
|
|
968
|
-
var u = a.$$typeof;
|
|
969
|
-
switch (u) {
|
|
970
|
-
case c:
|
|
971
|
-
switch (a = a.type, a) {
|
|
972
|
-
case l:
|
|
973
|
-
case m:
|
|
974
|
-
case e:
|
|
975
|
-
case g:
|
|
976
|
-
case f:
|
|
977
|
-
case p:
|
|
978
|
-
return a;
|
|
979
|
-
default:
|
|
980
|
-
switch (a = a && a.$$typeof, a) {
|
|
981
|
-
case k:
|
|
982
|
-
case n:
|
|
983
|
-
case t:
|
|
984
|
-
case r:
|
|
985
|
-
case h:
|
|
986
|
-
return a;
|
|
987
|
-
default:
|
|
988
|
-
return u;
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
case d:
|
|
992
|
-
return u;
|
|
988
|
+
var f = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
|
|
989
|
+
m = "active",
|
|
990
|
+
y = "data-styled-version",
|
|
991
|
+
v = "6.1.8",
|
|
992
|
+
g = "/*!sc*/\n",
|
|
993
|
+
S = "undefined" != typeof window && "HTMLElement" in window,
|
|
994
|
+
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),
|
|
995
|
+
E = /invalid hook call/i,
|
|
996
|
+
N = new Set(),
|
|
997
|
+
P = function (t, n) {
|
|
998
|
+
if ("production" !== process.env.NODE_ENV) {
|
|
999
|
+
var o = n ? ' with the id of "'.concat(n, '"') : "",
|
|
1000
|
+
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.",
|
|
1001
|
+
i = console.error;
|
|
1002
|
+
try {
|
|
1003
|
+
var a = !0;
|
|
1004
|
+
console.error = function (t) {
|
|
1005
|
+
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1006
|
+
E.test(t) ? (a = !1, N.delete(s)) : i.apply(void 0, __spreadArray([t], n, !1));
|
|
1007
|
+
}, useRef(), a && !N.has(s) && (console.warn(s), N.add(s));
|
|
1008
|
+
} catch (e) {
|
|
1009
|
+
E.test(e.message) && N.delete(s);
|
|
1010
|
+
} finally {
|
|
1011
|
+
console.error = i;
|
|
993
1012
|
}
|
|
994
1013
|
}
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
reactIs_production_min.Suspense = p;
|
|
1012
|
-
reactIs_production_min.isAsyncMode = function (a) {
|
|
1013
|
-
return A(a) || z(a) === l;
|
|
1014
|
-
};
|
|
1015
|
-
reactIs_production_min.isConcurrentMode = A;
|
|
1016
|
-
reactIs_production_min.isContextConsumer = function (a) {
|
|
1017
|
-
return z(a) === k;
|
|
1018
|
-
};
|
|
1019
|
-
reactIs_production_min.isContextProvider = function (a) {
|
|
1020
|
-
return z(a) === h;
|
|
1021
|
-
};
|
|
1022
|
-
reactIs_production_min.isElement = function (a) {
|
|
1023
|
-
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
1024
|
-
};
|
|
1025
|
-
reactIs_production_min.isForwardRef = function (a) {
|
|
1026
|
-
return z(a) === n;
|
|
1027
|
-
};
|
|
1028
|
-
reactIs_production_min.isFragment = function (a) {
|
|
1029
|
-
return z(a) === e;
|
|
1030
|
-
};
|
|
1031
|
-
reactIs_production_min.isLazy = function (a) {
|
|
1032
|
-
return z(a) === t;
|
|
1033
|
-
};
|
|
1034
|
-
reactIs_production_min.isMemo = function (a) {
|
|
1035
|
-
return z(a) === r;
|
|
1036
|
-
};
|
|
1037
|
-
reactIs_production_min.isPortal = function (a) {
|
|
1038
|
-
return z(a) === d;
|
|
1039
|
-
};
|
|
1040
|
-
reactIs_production_min.isProfiler = function (a) {
|
|
1041
|
-
return z(a) === g;
|
|
1042
|
-
};
|
|
1043
|
-
reactIs_production_min.isStrictMode = function (a) {
|
|
1044
|
-
return z(a) === f;
|
|
1045
|
-
};
|
|
1046
|
-
reactIs_production_min.isSuspense = function (a) {
|
|
1047
|
-
return z(a) === p;
|
|
1014
|
+
},
|
|
1015
|
+
_ = Object.freeze([]),
|
|
1016
|
+
C = Object.freeze({});
|
|
1017
|
+
function I(e, t, n) {
|
|
1018
|
+
return void 0 === n && (n = C), e.theme !== n.theme && e.theme || t || n.theme;
|
|
1019
|
+
}
|
|
1020
|
+
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"]),
|
|
1021
|
+
O = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,
|
|
1022
|
+
D = /(^-|-$)/g;
|
|
1023
|
+
function R(e) {
|
|
1024
|
+
return e.replace(O, "-").replace(D, "");
|
|
1025
|
+
}
|
|
1026
|
+
var T = /(a)(d)/gi,
|
|
1027
|
+
k = 52,
|
|
1028
|
+
j = function (e) {
|
|
1029
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1048
1030
|
};
|
|
1049
|
-
|
|
1050
|
-
|
|
1031
|
+
function x(e) {
|
|
1032
|
+
var t,
|
|
1033
|
+
n = "";
|
|
1034
|
+
for (t = Math.abs(e); t > k; t = t / k | 0) n = j(t % k) + n;
|
|
1035
|
+
return (j(t % k) + n).replace(T, "$1-$2");
|
|
1036
|
+
}
|
|
1037
|
+
var V,
|
|
1038
|
+
F = 5381,
|
|
1039
|
+
M = function (e, t) {
|
|
1040
|
+
for (var n = t.length; n;) e = 33 * e ^ t.charCodeAt(--n);
|
|
1041
|
+
return e;
|
|
1042
|
+
},
|
|
1043
|
+
z = function (e) {
|
|
1044
|
+
return M(F, e);
|
|
1051
1045
|
};
|
|
1052
|
-
|
|
1053
|
-
return
|
|
1046
|
+
function $(e) {
|
|
1047
|
+
return x(z(e) >>> 0);
|
|
1054
1048
|
}
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
/** @license React v16.13.1
|
|
1059
|
-
* react-is.development.js
|
|
1060
|
-
*
|
|
1061
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1062
|
-
*
|
|
1063
|
-
* This source code is licensed under the MIT license found in the
|
|
1064
|
-
* LICENSE file in the root directory of this source tree.
|
|
1065
|
-
*/
|
|
1066
|
-
var hasRequiredReactIs_development;
|
|
1067
|
-
function requireReactIs_development() {
|
|
1068
|
-
if (hasRequiredReactIs_development) return reactIs_development;
|
|
1069
|
-
hasRequiredReactIs_development = 1;
|
|
1070
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1071
|
-
(function () {
|
|
1072
|
-
|
|
1073
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
1074
|
-
// nor polyfill, then a plain number is used for performance.
|
|
1075
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
1076
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
1077
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
1078
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
1079
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
1080
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
1081
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
1082
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
1083
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
1084
|
-
|
|
1085
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
1086
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
1087
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
1088
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
1089
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
1090
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
1091
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
1092
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
1093
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
1094
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
1095
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
1096
|
-
function isValidElementType(type) {
|
|
1097
|
-
return typeof type === 'string' || typeof type === 'function' ||
|
|
1098
|
-
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1099
|
-
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);
|
|
1100
|
-
}
|
|
1101
|
-
function typeOf(object) {
|
|
1102
|
-
if (typeof object === 'object' && object !== null) {
|
|
1103
|
-
var $$typeof = object.$$typeof;
|
|
1104
|
-
switch ($$typeof) {
|
|
1105
|
-
case REACT_ELEMENT_TYPE:
|
|
1106
|
-
var type = object.type;
|
|
1107
|
-
switch (type) {
|
|
1108
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
1109
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
1110
|
-
case REACT_FRAGMENT_TYPE:
|
|
1111
|
-
case REACT_PROFILER_TYPE:
|
|
1112
|
-
case REACT_STRICT_MODE_TYPE:
|
|
1113
|
-
case REACT_SUSPENSE_TYPE:
|
|
1114
|
-
return type;
|
|
1115
|
-
default:
|
|
1116
|
-
var $$typeofType = type && type.$$typeof;
|
|
1117
|
-
switch ($$typeofType) {
|
|
1118
|
-
case REACT_CONTEXT_TYPE:
|
|
1119
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1120
|
-
case REACT_LAZY_TYPE:
|
|
1121
|
-
case REACT_MEMO_TYPE:
|
|
1122
|
-
case REACT_PROVIDER_TYPE:
|
|
1123
|
-
return $$typeofType;
|
|
1124
|
-
default:
|
|
1125
|
-
return $$typeof;
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
case REACT_PORTAL_TYPE:
|
|
1129
|
-
return $$typeof;
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
return undefined;
|
|
1133
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
1134
|
-
|
|
1135
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
1136
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
1137
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
1138
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
1139
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
1140
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
1141
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
1142
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
1143
|
-
var Memo = REACT_MEMO_TYPE;
|
|
1144
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
1145
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
1146
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1147
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
1148
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
1149
|
-
|
|
1150
|
-
function isAsyncMode(object) {
|
|
1151
|
-
{
|
|
1152
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
1153
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
1154
|
-
|
|
1155
|
-
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.');
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
1159
|
-
}
|
|
1160
|
-
function isConcurrentMode(object) {
|
|
1161
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
1162
|
-
}
|
|
1163
|
-
function isContextConsumer(object) {
|
|
1164
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
1165
|
-
}
|
|
1166
|
-
function isContextProvider(object) {
|
|
1167
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
1168
|
-
}
|
|
1169
|
-
function isElement(object) {
|
|
1170
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1171
|
-
}
|
|
1172
|
-
function isForwardRef(object) {
|
|
1173
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
1174
|
-
}
|
|
1175
|
-
function isFragment(object) {
|
|
1176
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
1177
|
-
}
|
|
1178
|
-
function isLazy(object) {
|
|
1179
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
1180
|
-
}
|
|
1181
|
-
function isMemo(object) {
|
|
1182
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
1183
|
-
}
|
|
1184
|
-
function isPortal(object) {
|
|
1185
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
1186
|
-
}
|
|
1187
|
-
function isProfiler(object) {
|
|
1188
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
1189
|
-
}
|
|
1190
|
-
function isStrictMode(object) {
|
|
1191
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
1192
|
-
}
|
|
1193
|
-
function isSuspense(object) {
|
|
1194
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
1195
|
-
}
|
|
1196
|
-
reactIs_development.AsyncMode = AsyncMode;
|
|
1197
|
-
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
1198
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
1199
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
1200
|
-
reactIs_development.Element = Element;
|
|
1201
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
1202
|
-
reactIs_development.Fragment = Fragment;
|
|
1203
|
-
reactIs_development.Lazy = Lazy;
|
|
1204
|
-
reactIs_development.Memo = Memo;
|
|
1205
|
-
reactIs_development.Portal = Portal;
|
|
1206
|
-
reactIs_development.Profiler = Profiler;
|
|
1207
|
-
reactIs_development.StrictMode = StrictMode;
|
|
1208
|
-
reactIs_development.Suspense = Suspense;
|
|
1209
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
1210
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
1211
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
1212
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
1213
|
-
reactIs_development.isElement = isElement;
|
|
1214
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
1215
|
-
reactIs_development.isFragment = isFragment;
|
|
1216
|
-
reactIs_development.isLazy = isLazy;
|
|
1217
|
-
reactIs_development.isMemo = isMemo;
|
|
1218
|
-
reactIs_development.isPortal = isPortal;
|
|
1219
|
-
reactIs_development.isProfiler = isProfiler;
|
|
1220
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
1221
|
-
reactIs_development.isSuspense = isSuspense;
|
|
1222
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
1223
|
-
reactIs_development.typeOf = typeOf;
|
|
1224
|
-
})();
|
|
1225
|
-
}
|
|
1226
|
-
return reactIs_development;
|
|
1049
|
+
function B(e) {
|
|
1050
|
+
return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
|
|
1227
1051
|
}
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
reactIs$1.exports = requireReactIs_production_min();
|
|
1231
|
-
} else {
|
|
1232
|
-
reactIs$1.exports = requireReactIs_development();
|
|
1052
|
+
function L(e) {
|
|
1053
|
+
return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1233
1054
|
}
|
|
1234
|
-
var
|
|
1235
|
-
|
|
1236
|
-
|
|
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
|
-
type: true
|
|
1278
|
-
};
|
|
1279
|
-
var TYPE_STATICS = {};
|
|
1280
|
-
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
1281
|
-
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
1282
|
-
function getStatics(component) {
|
|
1283
|
-
// React v16.11 and below
|
|
1284
|
-
if (reactIs.isMemo(component)) {
|
|
1285
|
-
return MEMO_STATICS;
|
|
1286
|
-
} // React v16.12 and above
|
|
1287
|
-
|
|
1288
|
-
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
1055
|
+
var G = "function" == typeof Symbol && Symbol.for,
|
|
1056
|
+
Y = G ? Symbol.for("react.memo") : 60115,
|
|
1057
|
+
q = G ? Symbol.for("react.forward_ref") : 60112,
|
|
1058
|
+
W = {
|
|
1059
|
+
childContextTypes: !0,
|
|
1060
|
+
contextType: !0,
|
|
1061
|
+
contextTypes: !0,
|
|
1062
|
+
defaultProps: !0,
|
|
1063
|
+
displayName: !0,
|
|
1064
|
+
getDefaultProps: !0,
|
|
1065
|
+
getDerivedStateFromError: !0,
|
|
1066
|
+
getDerivedStateFromProps: !0,
|
|
1067
|
+
mixins: !0,
|
|
1068
|
+
propTypes: !0,
|
|
1069
|
+
type: !0
|
|
1070
|
+
},
|
|
1071
|
+
H = {
|
|
1072
|
+
name: !0,
|
|
1073
|
+
length: !0,
|
|
1074
|
+
prototype: !0,
|
|
1075
|
+
caller: !0,
|
|
1076
|
+
callee: !0,
|
|
1077
|
+
arguments: !0,
|
|
1078
|
+
arity: !0
|
|
1079
|
+
},
|
|
1080
|
+
U = {
|
|
1081
|
+
$$typeof: !0,
|
|
1082
|
+
compare: !0,
|
|
1083
|
+
defaultProps: !0,
|
|
1084
|
+
displayName: !0,
|
|
1085
|
+
propTypes: !0,
|
|
1086
|
+
type: !0
|
|
1087
|
+
},
|
|
1088
|
+
J = ((V = {})[q] = {
|
|
1089
|
+
$$typeof: !0,
|
|
1090
|
+
render: !0,
|
|
1091
|
+
defaultProps: !0,
|
|
1092
|
+
displayName: !0,
|
|
1093
|
+
propTypes: !0
|
|
1094
|
+
}, V[Y] = U, V);
|
|
1095
|
+
function X(e) {
|
|
1096
|
+
return ("type" in (t = e) && t.type.$$typeof) === Y ? U : "$$typeof" in e ? J[e.$$typeof] : W;
|
|
1097
|
+
var t;
|
|
1289
1098
|
}
|
|
1290
|
-
var
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
function
|
|
1297
|
-
if (
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
1302
|
-
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
1303
|
-
}
|
|
1304
|
-
}
|
|
1305
|
-
var keys = getOwnPropertyNames(sourceComponent);
|
|
1306
|
-
if (getOwnPropertySymbols) {
|
|
1307
|
-
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
1099
|
+
var Z = Object.defineProperty,
|
|
1100
|
+
K = Object.getOwnPropertyNames,
|
|
1101
|
+
Q = Object.getOwnPropertySymbols,
|
|
1102
|
+
ee = Object.getOwnPropertyDescriptor,
|
|
1103
|
+
te = Object.getPrototypeOf,
|
|
1104
|
+
ne = Object.prototype;
|
|
1105
|
+
function oe(e, t, n) {
|
|
1106
|
+
if ("string" != typeof t) {
|
|
1107
|
+
if (ne) {
|
|
1108
|
+
var o = te(t);
|
|
1109
|
+
o && o !== ne && oe(e, o, n);
|
|
1308
1110
|
}
|
|
1309
|
-
var
|
|
1310
|
-
|
|
1311
|
-
for (var i = 0;
|
|
1312
|
-
var
|
|
1313
|
-
if (!
|
|
1314
|
-
var
|
|
1111
|
+
var r = K(t);
|
|
1112
|
+
Q && (r = r.concat(Q(t)));
|
|
1113
|
+
for (var s = X(e), i = X(t), a = 0; a < r.length; ++a) {
|
|
1114
|
+
var c = r[a];
|
|
1115
|
+
if (!(c in H || n && n[c] || i && c in i || s && c in s)) {
|
|
1116
|
+
var l = ee(t, c);
|
|
1315
1117
|
try {
|
|
1316
|
-
|
|
1317
|
-
defineProperty(targetComponent, key, descriptor);
|
|
1118
|
+
Z(e, c, l);
|
|
1318
1119
|
} catch (e) {}
|
|
1319
1120
|
}
|
|
1320
1121
|
}
|
|
1321
1122
|
}
|
|
1322
|
-
return
|
|
1323
|
-
}
|
|
1324
|
-
var hoistNonReactStatics_cjs = hoistNonReactStatics;
|
|
1325
|
-
var m = /*@__PURE__*/getDefaultExportFromCjs(hoistNonReactStatics_cjs);
|
|
1326
|
-
|
|
1327
|
-
function y() {
|
|
1328
|
-
return (y = Object.assign || function (e) {
|
|
1329
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
1330
|
-
var n = arguments[t];
|
|
1331
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
1332
|
-
}
|
|
1333
|
-
return e;
|
|
1334
|
-
}).apply(this, arguments);
|
|
1123
|
+
return e;
|
|
1335
1124
|
}
|
|
1336
|
-
|
|
1337
|
-
for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
|
|
1338
|
-
return n;
|
|
1339
|
-
},
|
|
1340
|
-
g = function (t) {
|
|
1341
|
-
return null !== t && "object" == typeof t && "[object Object]" === (t.toString ? t.toString() : Object.prototype.toString.call(t)) && !reactIsExports$1.typeOf(t);
|
|
1342
|
-
},
|
|
1343
|
-
S = Object.freeze([]),
|
|
1344
|
-
w = Object.freeze({});
|
|
1345
|
-
function E(e) {
|
|
1125
|
+
function re(e) {
|
|
1346
1126
|
return "function" == typeof e;
|
|
1347
1127
|
}
|
|
1348
|
-
function
|
|
1349
|
-
return "
|
|
1128
|
+
function se(e) {
|
|
1129
|
+
return "object" == typeof e && "styledComponentId" in e;
|
|
1130
|
+
}
|
|
1131
|
+
function ie(e, t) {
|
|
1132
|
+
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
1133
|
+
}
|
|
1134
|
+
function ae(e, t) {
|
|
1135
|
+
if (0 === e.length) return "";
|
|
1136
|
+
for (var n = e[0], o = 1; o < e.length; o++) n += t ? t + e[o] : e[o];
|
|
1137
|
+
return n;
|
|
1350
1138
|
}
|
|
1351
|
-
function
|
|
1352
|
-
return e && "
|
|
1139
|
+
function ce(e) {
|
|
1140
|
+
return null !== e && "object" == typeof e && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
1141
|
+
}
|
|
1142
|
+
function le(e, t, n) {
|
|
1143
|
+
if (void 0 === n && (n = !1), !n && !ce(e) && !Array.isArray(e)) return t;
|
|
1144
|
+
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]);
|
|
1145
|
+
return e;
|
|
1146
|
+
}
|
|
1147
|
+
function ue(e, t) {
|
|
1148
|
+
Object.defineProperty(e, "toString", {
|
|
1149
|
+
value: t
|
|
1150
|
+
});
|
|
1353
1151
|
}
|
|
1354
|
-
var
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
}), e;
|
|
1152
|
+
var pe = "production" !== process.env.NODE_ENV ? {
|
|
1153
|
+
1: "Cannot create styled-component for component: %s.\n\n",
|
|
1154
|
+
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",
|
|
1155
|
+
3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
|
|
1156
|
+
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",
|
|
1157
|
+
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",
|
|
1158
|
+
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",
|
|
1159
|
+
7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',
|
|
1160
|
+
8: 'ThemeProvider: Please make your "theme" prop an object.\n\n',
|
|
1161
|
+
9: "Missing document `<head>`\n\n",
|
|
1162
|
+
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",
|
|
1163
|
+
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",
|
|
1164
|
+
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",
|
|
1165
|
+
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",
|
|
1166
|
+
14: 'ThemeProvider: "theme" prop is required.\n\n',
|
|
1167
|
+
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",
|
|
1168
|
+
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",
|
|
1169
|
+
17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",
|
|
1170
|
+
18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"
|
|
1171
|
+
} : {};
|
|
1172
|
+
function de() {
|
|
1173
|
+
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1174
|
+
for (var n = e[0], o = [], r = 1, s = e.length; r < s; r += 1) o.push(e[r]);
|
|
1175
|
+
return o.forEach(function (e) {
|
|
1176
|
+
n = n.replace(/%[a-z]/, e);
|
|
1177
|
+
}), n;
|
|
1381
1178
|
}
|
|
1382
|
-
function
|
|
1383
|
-
for (var
|
|
1384
|
-
|
|
1179
|
+
function he(t) {
|
|
1180
|
+
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1181
|
+
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());
|
|
1385
1182
|
}
|
|
1386
|
-
var
|
|
1183
|
+
var fe = function () {
|
|
1387
1184
|
function e(e) {
|
|
1388
1185
|
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e;
|
|
1389
1186
|
}
|
|
1390
|
-
|
|
1391
|
-
return t.indexOfGroup = function (e) {
|
|
1187
|
+
return e.prototype.indexOfGroup = function (e) {
|
|
1392
1188
|
for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n];
|
|
1393
1189
|
return t;
|
|
1394
|
-
},
|
|
1190
|
+
}, e.prototype.insertRules = function (e, t) {
|
|
1395
1191
|
if (e >= this.groupSizes.length) {
|
|
1396
|
-
for (var n = this.groupSizes,
|
|
1397
|
-
this.groupSizes = new Uint32Array(
|
|
1398
|
-
for (var s =
|
|
1192
|
+
for (var n = this.groupSizes, o = n.length, r = o; e >= r;) if ((r <<= 1) < 0) throw he(16, "".concat(e));
|
|
1193
|
+
this.groupSizes = new Uint32Array(r), this.groupSizes.set(n), this.length = r;
|
|
1194
|
+
for (var s = o; s < r; s++) this.groupSizes[s] = 0;
|
|
1399
1195
|
}
|
|
1400
|
-
for (var i = this.indexOfGroup(e + 1), a = 0,
|
|
1401
|
-
},
|
|
1196
|
+
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++);
|
|
1197
|
+
}, e.prototype.clearGroup = function (e) {
|
|
1402
1198
|
if (e < this.length) {
|
|
1403
1199
|
var t = this.groupSizes[e],
|
|
1404
1200
|
n = this.indexOfGroup(e),
|
|
1405
|
-
|
|
1201
|
+
o = n + t;
|
|
1406
1202
|
this.groupSizes[e] = 0;
|
|
1407
|
-
for (var
|
|
1203
|
+
for (var r = n; r < o; r++) this.tag.deleteRule(n);
|
|
1408
1204
|
}
|
|
1409
|
-
},
|
|
1205
|
+
}, e.prototype.getGroup = function (e) {
|
|
1410
1206
|
var t = "";
|
|
1411
1207
|
if (e >= this.length || 0 === this.groupSizes[e]) return t;
|
|
1412
|
-
for (var n = this.groupSizes[e],
|
|
1208
|
+
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);
|
|
1413
1209
|
return t;
|
|
1414
1210
|
}, e;
|
|
1415
1211
|
}(),
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
if (
|
|
1421
|
-
for (;
|
|
1422
|
-
var t =
|
|
1423
|
-
|
|
1212
|
+
me = new Map(),
|
|
1213
|
+
ye = new Map(),
|
|
1214
|
+
ve = 1,
|
|
1215
|
+
ge = function (e) {
|
|
1216
|
+
if (me.has(e)) return me.get(e);
|
|
1217
|
+
for (; ye.has(ve);) ve++;
|
|
1218
|
+
var t = ve++;
|
|
1219
|
+
if ("production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > 1073741824)) throw he(16, "".concat(t));
|
|
1220
|
+
return me.set(e, t), ye.set(t, e), t;
|
|
1424
1221
|
},
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
},
|
|
1428
|
-
B = function (e, t) {
|
|
1429
|
-
t >= k && (k = t + 1), T.set(e, t), x.set(t, e);
|
|
1222
|
+
Se = function (e, t) {
|
|
1223
|
+
ve = t + 1, me.set(e, t), ye.set(t, e);
|
|
1430
1224
|
},
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
for (var
|
|
1225
|
+
we = "style[".concat(f, "][").concat(y, '="').concat(v, '"]'),
|
|
1226
|
+
be = new RegExp("^".concat(f, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),
|
|
1227
|
+
Ee = function (e, t, n) {
|
|
1228
|
+
for (var o, r = n.split(","), s = 0, i = r.length; s < i; s++) (o = r[s]) && e.registerName(t, o);
|
|
1435
1229
|
},
|
|
1436
|
-
|
|
1437
|
-
for (var n = (t.textContent
|
|
1438
|
-
var
|
|
1439
|
-
if (
|
|
1440
|
-
var
|
|
1441
|
-
if (
|
|
1442
|
-
var
|
|
1443
|
-
u =
|
|
1444
|
-
0 !==
|
|
1445
|
-
} else r.push(
|
|
1230
|
+
Ne = function (e, t) {
|
|
1231
|
+
for (var n, o = (null !== (n = t.textContent) && void 0 !== n ? n : "").split(g), r = [], s = 0, i = o.length; s < i; s++) {
|
|
1232
|
+
var a = o[s].trim();
|
|
1233
|
+
if (a) {
|
|
1234
|
+
var c = a.match(be);
|
|
1235
|
+
if (c) {
|
|
1236
|
+
var l = 0 | parseInt(c[1], 10),
|
|
1237
|
+
u = c[2];
|
|
1238
|
+
0 !== l && (Se(u, l), Ee(e, u, c[3]), e.getTag().insertRules(l, r)), r.length = 0;
|
|
1239
|
+
} else r.push(a);
|
|
1446
1240
|
}
|
|
1447
1241
|
}
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1242
|
+
};
|
|
1243
|
+
function Pe() {
|
|
1244
|
+
return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
|
|
1245
|
+
}
|
|
1246
|
+
var _e = function (e) {
|
|
1453
1247
|
var t = document.head,
|
|
1454
1248
|
n = e || t,
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
if (r && 1 === r.nodeType && r.hasAttribute(N)) return r;
|
|
1460
|
-
}
|
|
1249
|
+
o = document.createElement("style"),
|
|
1250
|
+
r = function (e) {
|
|
1251
|
+
var t = Array.from(e.querySelectorAll("style[".concat(f, "]")));
|
|
1252
|
+
return t[t.length - 1];
|
|
1461
1253
|
}(n),
|
|
1462
|
-
s = void 0 !==
|
|
1463
|
-
|
|
1464
|
-
var i =
|
|
1465
|
-
return i &&
|
|
1254
|
+
s = void 0 !== r ? r.nextSibling : null;
|
|
1255
|
+
o.setAttribute(f, m), o.setAttribute(y, v);
|
|
1256
|
+
var i = Pe();
|
|
1257
|
+
return i && o.setAttribute("nonce", i), n.insertBefore(o, s), o;
|
|
1466
1258
|
},
|
|
1467
|
-
|
|
1259
|
+
Ce = function () {
|
|
1468
1260
|
function e(e) {
|
|
1469
|
-
|
|
1470
|
-
t.appendChild(document.createTextNode("")), this.sheet = function (e) {
|
|
1261
|
+
this.element = _e(e), this.element.appendChild(document.createTextNode("")), this.sheet = function (e) {
|
|
1471
1262
|
if (e.sheet) return e.sheet;
|
|
1472
|
-
for (var t = document.styleSheets, n = 0,
|
|
1473
|
-
var
|
|
1474
|
-
if (
|
|
1263
|
+
for (var t = document.styleSheets, n = 0, o = t.length; n < o; n++) {
|
|
1264
|
+
var r = t[n];
|
|
1265
|
+
if (r.ownerNode === e) return r;
|
|
1475
1266
|
}
|
|
1476
|
-
|
|
1477
|
-
}(
|
|
1267
|
+
throw he(17);
|
|
1268
|
+
}(this.element), this.length = 0;
|
|
1478
1269
|
}
|
|
1479
|
-
|
|
1480
|
-
return t.insertRule = function (e, t) {
|
|
1270
|
+
return e.prototype.insertRule = function (e, t) {
|
|
1481
1271
|
try {
|
|
1482
1272
|
return this.sheet.insertRule(t, e), this.length++, !0;
|
|
1483
1273
|
} catch (e) {
|
|
1484
1274
|
return !1;
|
|
1485
1275
|
}
|
|
1486
|
-
},
|
|
1276
|
+
}, e.prototype.deleteRule = function (e) {
|
|
1487
1277
|
this.sheet.deleteRule(e), this.length--;
|
|
1488
|
-
},
|
|
1278
|
+
}, e.prototype.getRule = function (e) {
|
|
1489
1279
|
var t = this.sheet.cssRules[e];
|
|
1490
|
-
return
|
|
1280
|
+
return t && t.cssText ? t.cssText : "";
|
|
1491
1281
|
}, e;
|
|
1492
1282
|
}(),
|
|
1493
|
-
|
|
1283
|
+
Ie = function () {
|
|
1494
1284
|
function e(e) {
|
|
1495
|
-
|
|
1496
|
-
this.nodes = t.childNodes, this.length = 0;
|
|
1285
|
+
this.element = _e(e), this.nodes = this.element.childNodes, this.length = 0;
|
|
1497
1286
|
}
|
|
1498
|
-
|
|
1499
|
-
return t.insertRule = function (e, t) {
|
|
1287
|
+
return e.prototype.insertRule = function (e, t) {
|
|
1500
1288
|
if (e <= this.length && e >= 0) {
|
|
1501
|
-
var n = document.createTextNode(t)
|
|
1502
|
-
|
|
1503
|
-
return this.element.insertBefore(n, r || null), this.length++, !0;
|
|
1289
|
+
var n = document.createTextNode(t);
|
|
1290
|
+
return this.element.insertBefore(n, this.nodes[e] || null), this.length++, !0;
|
|
1504
1291
|
}
|
|
1505
1292
|
return !1;
|
|
1506
|
-
},
|
|
1293
|
+
}, e.prototype.deleteRule = function (e) {
|
|
1507
1294
|
this.element.removeChild(this.nodes[e]), this.length--;
|
|
1508
|
-
},
|
|
1295
|
+
}, e.prototype.getRule = function (e) {
|
|
1509
1296
|
return e < this.length ? this.nodes[e].textContent : "";
|
|
1510
1297
|
}, e;
|
|
1511
1298
|
}(),
|
|
1512
|
-
|
|
1299
|
+
Ae = function () {
|
|
1513
1300
|
function e(e) {
|
|
1514
1301
|
this.rules = [], this.length = 0;
|
|
1515
1302
|
}
|
|
1516
|
-
|
|
1517
|
-
return t.insertRule = function (e, t) {
|
|
1303
|
+
return e.prototype.insertRule = function (e, t) {
|
|
1518
1304
|
return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0);
|
|
1519
|
-
},
|
|
1305
|
+
}, e.prototype.deleteRule = function (e) {
|
|
1520
1306
|
this.rules.splice(e, 1), this.length--;
|
|
1521
|
-
},
|
|
1307
|
+
}, e.prototype.getRule = function (e) {
|
|
1522
1308
|
return e < this.length ? this.rules[e] : "";
|
|
1523
1309
|
}, e;
|
|
1524
1310
|
}(),
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
isServer: !
|
|
1528
|
-
useCSSOMInjection: !
|
|
1311
|
+
Oe = S,
|
|
1312
|
+
De = {
|
|
1313
|
+
isServer: !S,
|
|
1314
|
+
useCSSOMInjection: !w
|
|
1529
1315
|
},
|
|
1530
|
-
|
|
1531
|
-
function e(e,
|
|
1532
|
-
void 0 === e && (e =
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1316
|
+
Re = function () {
|
|
1317
|
+
function e(e, n, o) {
|
|
1318
|
+
void 0 === e && (e = C), void 0 === n && (n = {});
|
|
1319
|
+
var r = this;
|
|
1320
|
+
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) {
|
|
1321
|
+
for (var t = document.querySelectorAll(we), n = 0, o = t.length; n < o; n++) {
|
|
1322
|
+
var r = t[n];
|
|
1323
|
+
r && r.getAttribute(f) !== m && (Ne(e, r), r.parentNode && r.parentNode.removeChild(r));
|
|
1536
1324
|
}
|
|
1537
|
-
}(this))
|
|
1325
|
+
}(this)), ue(this, function () {
|
|
1326
|
+
return function (e) {
|
|
1327
|
+
for (var t = e.getTag(), n = t.length, o = "", r = function (n) {
|
|
1328
|
+
var r = function (e) {
|
|
1329
|
+
return ye.get(e);
|
|
1330
|
+
}(n);
|
|
1331
|
+
if (void 0 === r) return "continue";
|
|
1332
|
+
var s = e.names.get(r),
|
|
1333
|
+
i = t.getGroup(n);
|
|
1334
|
+
if (void 0 === s || 0 === i.length) return "continue";
|
|
1335
|
+
var a = "".concat(f, ".g").concat(n, '[id="').concat(r, '"]'),
|
|
1336
|
+
c = "";
|
|
1337
|
+
void 0 !== s && s.forEach(function (e) {
|
|
1338
|
+
e.length > 0 && (c += "".concat(e, ","));
|
|
1339
|
+
}), o += "".concat(i).concat(a, '{content:"').concat(c, '"}').concat(g);
|
|
1340
|
+
}, s = 0; s < n; s++) r(s);
|
|
1341
|
+
return o;
|
|
1342
|
+
}(r);
|
|
1343
|
+
});
|
|
1538
1344
|
}
|
|
1539
|
-
e.registerId = function (e) {
|
|
1540
|
-
return
|
|
1541
|
-
}
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
return void 0 === n && (n = !0), new e(y({}, this.options, {}, t), this.gs, n && this.names || void 0);
|
|
1545
|
-
}, t.allocateGSInstance = function (e) {
|
|
1345
|
+
return e.registerId = function (e) {
|
|
1346
|
+
return ge(e);
|
|
1347
|
+
}, e.prototype.reconstructWithOptions = function (n, o) {
|
|
1348
|
+
return void 0 === o && (o = !0), new e(__assign(__assign({}, this.options), n), this.gs, o && this.names || void 0);
|
|
1349
|
+
}, e.prototype.allocateGSInstance = function (e) {
|
|
1546
1350
|
return this.gs[e] = (this.gs[e] || 0) + 1;
|
|
1547
|
-
},
|
|
1548
|
-
return this.tag || (this.tag = (
|
|
1549
|
-
|
|
1550
|
-
|
|
1351
|
+
}, e.prototype.getTag = function () {
|
|
1352
|
+
return this.tag || (this.tag = (e = function (e) {
|
|
1353
|
+
var t = e.useCSSOMInjection,
|
|
1354
|
+
n = e.target;
|
|
1355
|
+
return e.isServer ? new Ae(n) : t ? new Ce(n) : new Ie(n);
|
|
1356
|
+
}(this.options), new fe(e)));
|
|
1357
|
+
var e;
|
|
1358
|
+
}, e.prototype.hasNameForId = function (e, t) {
|
|
1551
1359
|
return this.names.has(e) && this.names.get(e).has(t);
|
|
1552
|
-
},
|
|
1553
|
-
if (
|
|
1360
|
+
}, e.prototype.registerName = function (e, t) {
|
|
1361
|
+
if (ge(e), this.names.has(e)) this.names.get(e).add(t);else {
|
|
1554
1362
|
var n = new Set();
|
|
1555
1363
|
n.add(t), this.names.set(e, n);
|
|
1556
1364
|
}
|
|
1557
|
-
},
|
|
1558
|
-
this.registerName(e, t), this.getTag().insertRules(
|
|
1559
|
-
},
|
|
1365
|
+
}, e.prototype.insertRules = function (e, t, n) {
|
|
1366
|
+
this.registerName(e, t), this.getTag().insertRules(ge(e), n);
|
|
1367
|
+
}, e.prototype.clearNames = function (e) {
|
|
1560
1368
|
this.names.has(e) && this.names.get(e).clear();
|
|
1561
|
-
},
|
|
1562
|
-
this.getTag().clearGroup(
|
|
1563
|
-
},
|
|
1369
|
+
}, e.prototype.clearRules = function (e) {
|
|
1370
|
+
this.getTag().clearGroup(ge(e)), this.clearNames(e);
|
|
1371
|
+
}, e.prototype.clearTag = function () {
|
|
1564
1372
|
this.tag = void 0;
|
|
1565
|
-
}, t.toString = function () {
|
|
1566
|
-
return function (e) {
|
|
1567
|
-
for (var t = e.getTag(), n = t.length, r = "", o = 0; o < n; o++) {
|
|
1568
|
-
var s = z(o);
|
|
1569
|
-
if (void 0 !== s) {
|
|
1570
|
-
var i = e.names.get(s),
|
|
1571
|
-
a = t.getGroup(o);
|
|
1572
|
-
if (i && a && i.size) {
|
|
1573
|
-
var c = N + ".g" + o + '[id="' + s + '"]',
|
|
1574
|
-
u = "";
|
|
1575
|
-
void 0 !== i && i.forEach(function (e) {
|
|
1576
|
-
e.length > 0 && (u += e + ",");
|
|
1577
|
-
}), r += "" + a + c + '{content:"' + u + '"}/*!sc*/\n';
|
|
1578
|
-
}
|
|
1579
|
-
}
|
|
1580
|
-
}
|
|
1581
|
-
return r;
|
|
1582
|
-
}(this);
|
|
1583
1373
|
}, e;
|
|
1584
1374
|
}(),
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
function
|
|
1375
|
+
Te = /&/g,
|
|
1376
|
+
ke = /^\s*\/\/.*$/gm;
|
|
1377
|
+
function je(e, t) {
|
|
1378
|
+
return e.map(function (e) {
|
|
1379
|
+
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) {
|
|
1380
|
+
return "".concat(t, " ").concat(e);
|
|
1381
|
+
})), Array.isArray(e.children) && "@keyframes" !== e.type && (e.children = je(e.children, t)), e;
|
|
1382
|
+
});
|
|
1383
|
+
}
|
|
1384
|
+
function xe(e) {
|
|
1590
1385
|
var t,
|
|
1591
|
-
n
|
|
1592
|
-
|
|
1593
|
-
|
|
1386
|
+
n,
|
|
1387
|
+
o,
|
|
1388
|
+
r = void 0 === e ? C : e,
|
|
1389
|
+
s = r.options,
|
|
1390
|
+
i = void 0 === s ? C : s,
|
|
1391
|
+
a = r.plugins,
|
|
1392
|
+
c = void 0 === a ? _ : a,
|
|
1393
|
+
l = function (e, o, r) {
|
|
1394
|
+
return r.startsWith(n) && r.endsWith(n) && r.replaceAll(n, "").length > 0 ? ".".concat(t) : e;
|
|
1395
|
+
},
|
|
1396
|
+
u = c.slice();
|
|
1397
|
+
u.push(function (e) {
|
|
1398
|
+
e.type === RULESET && e.value.includes("&") && (e.props[0] = e.props[0].replace(Te, n).replace(o, l));
|
|
1399
|
+
}), i.prefix && u.push(prefixer), u.push(stringify);
|
|
1400
|
+
var p = function (e, r, s, a) {
|
|
1401
|
+
void 0 === r && (r = ""), void 0 === s && (s = ""), void 0 === a && (a = "&"), t = a, n = r, o = new RegExp("\\".concat(n, "\\b"), "g");
|
|
1402
|
+
var c = e.replace(ke, ""),
|
|
1403
|
+
l = compile(s || r ? "".concat(s, " ").concat(r, " { ").concat(c, " }") : c);
|
|
1404
|
+
i.namespace && (l = je(l, i.namespace));
|
|
1405
|
+
var p = [];
|
|
1406
|
+
return serialize(l, middleware(u.concat(rulesheet(function (e) {
|
|
1407
|
+
return p.push(e);
|
|
1408
|
+
})))), p;
|
|
1409
|
+
};
|
|
1410
|
+
return p.hash = c.length ? c.reduce(function (e, t) {
|
|
1411
|
+
return t.name || he(15), M(e, t.name);
|
|
1412
|
+
}, F).toString() : "", p;
|
|
1594
1413
|
}
|
|
1595
|
-
var
|
|
1596
|
-
|
|
1597
|
-
|
|
1414
|
+
var Ve = new Re(),
|
|
1415
|
+
Fe = xe(),
|
|
1416
|
+
Me = React.createContext({
|
|
1417
|
+
shouldForwardProp: void 0,
|
|
1418
|
+
styleSheet: Ve,
|
|
1419
|
+
stylis: Fe
|
|
1420
|
+
});
|
|
1421
|
+
Me.Consumer;
|
|
1422
|
+
React.createContext(void 0);
|
|
1423
|
+
function Be() {
|
|
1424
|
+
return useContext(Me);
|
|
1425
|
+
}
|
|
1426
|
+
var Ge = function () {
|
|
1427
|
+
function e(e, t) {
|
|
1428
|
+
var n = this;
|
|
1429
|
+
this.inject = function (e, t) {
|
|
1430
|
+
void 0 === t && (t = Fe);
|
|
1431
|
+
var o = n.name + t.hash;
|
|
1432
|
+
e.hasNameForId(n.id, o) || e.insertRules(n.id, o, t(n.rules, o, "@keyframes"));
|
|
1433
|
+
}, this.name = e, this.id = "sc-keyframes-".concat(e), this.rules = t, ue(this, function () {
|
|
1434
|
+
throw he(12, String(n.name));
|
|
1435
|
+
});
|
|
1436
|
+
}
|
|
1437
|
+
return e.prototype.getName = function (e) {
|
|
1438
|
+
return void 0 === e && (e = Fe), this.name + e.hash;
|
|
1439
|
+
}, e;
|
|
1440
|
+
}(),
|
|
1441
|
+
Ye = function (e) {
|
|
1442
|
+
return e >= "A" && e <= "Z";
|
|
1443
|
+
};
|
|
1444
|
+
function qe(e) {
|
|
1445
|
+
for (var t = "", n = 0; n < e.length; n++) {
|
|
1446
|
+
var o = e[n];
|
|
1447
|
+
if (1 === n && "-" === o && "-" === e[0]) return e;
|
|
1448
|
+
Ye(o) ? t += "-" + o.toLowerCase() : t += o;
|
|
1449
|
+
}
|
|
1450
|
+
return t.startsWith("ms-") ? "-" + t : t;
|
|
1451
|
+
}
|
|
1452
|
+
var We = function (e) {
|
|
1453
|
+
return null == e || !1 === e || "" === e;
|
|
1598
1454
|
},
|
|
1599
|
-
|
|
1600
|
-
|
|
1455
|
+
He = function (t) {
|
|
1456
|
+
var n,
|
|
1457
|
+
o,
|
|
1458
|
+
r = [];
|
|
1459
|
+
for (var s in t) {
|
|
1460
|
+
var i = t[s];
|
|
1461
|
+
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")), ";")));
|
|
1462
|
+
}
|
|
1463
|
+
return r;
|
|
1601
1464
|
};
|
|
1602
|
-
function
|
|
1465
|
+
function Ue(e, t, n, o) {
|
|
1466
|
+
if (We(e)) return [];
|
|
1467
|
+
if (se(e)) return [".".concat(e.styledComponentId)];
|
|
1468
|
+
if (re(e)) {
|
|
1469
|
+
if (!re(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
|
|
1470
|
+
var r = e(t);
|
|
1471
|
+
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);
|
|
1472
|
+
}
|
|
1473
|
+
var s;
|
|
1474
|
+
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) {
|
|
1475
|
+
return Ue(e, t, n, o);
|
|
1476
|
+
})) : [e.toString()];
|
|
1477
|
+
}
|
|
1478
|
+
function Je(e) {
|
|
1603
1479
|
for (var t = 0; t < e.length; t += 1) {
|
|
1604
1480
|
var n = e[t];
|
|
1605
|
-
if (
|
|
1481
|
+
if (re(n) && !se(n)) return !1;
|
|
1606
1482
|
}
|
|
1607
1483
|
return !0;
|
|
1608
1484
|
}
|
|
1609
|
-
var
|
|
1610
|
-
|
|
1485
|
+
var Xe = z(v),
|
|
1486
|
+
Ze = function () {
|
|
1611
1487
|
function e(e, t, n) {
|
|
1612
|
-
this.rules = e, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) &&
|
|
1488
|
+
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);
|
|
1613
1489
|
}
|
|
1614
1490
|
return e.prototype.generateAndInjectStyles = function (e, t, n) {
|
|
1615
|
-
var
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
t.insertRules(r, i, a);
|
|
1491
|
+
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, t, n) : "";
|
|
1492
|
+
if (this.isStatic && !n.hash) {
|
|
1493
|
+
if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId)) o = ie(o, this.staticRulesId);else {
|
|
1494
|
+
var r = ae(Ue(this.rules, e, t, n)),
|
|
1495
|
+
s = x(M(this.baseHash, r) >>> 0);
|
|
1496
|
+
if (!t.hasNameForId(this.componentId, s)) {
|
|
1497
|
+
var i = n(r, ".".concat(s), void 0, this.componentId);
|
|
1498
|
+
t.insertRules(this.componentId, s, i);
|
|
1624
1499
|
}
|
|
1625
|
-
o
|
|
1500
|
+
o = ie(o, s), this.staticRulesId = s;
|
|
1626
1501
|
}
|
|
1627
1502
|
} else {
|
|
1628
|
-
for (var
|
|
1629
|
-
var
|
|
1630
|
-
if ("string" == typeof
|
|
1631
|
-
var p =
|
|
1632
|
-
|
|
1633
|
-
u = ee(u, f + d), l += f;
|
|
1503
|
+
for (var a = M(this.baseHash, n.hash), c = "", l = 0; l < this.rules.length; l++) {
|
|
1504
|
+
var u = this.rules[l];
|
|
1505
|
+
if ("string" == typeof u) c += u, "production" !== process.env.NODE_ENV && (a = M(a, u));else if (u) {
|
|
1506
|
+
var p = ae(Ue(u, e, t, n));
|
|
1507
|
+
a = M(a, p + l), c += p;
|
|
1634
1508
|
}
|
|
1635
1509
|
}
|
|
1636
|
-
if (
|
|
1637
|
-
var
|
|
1638
|
-
|
|
1639
|
-
var y = n(l, "." + m, void 0, r);
|
|
1640
|
-
t.insertRules(r, m, y);
|
|
1641
|
-
}
|
|
1642
|
-
o.push(m);
|
|
1510
|
+
if (c) {
|
|
1511
|
+
var d = x(a >>> 0);
|
|
1512
|
+
t.hasNameForId(this.componentId, d) || t.insertRules(this.componentId, d, n(c, ".".concat(d), void 0, this.componentId)), o = ie(o, d);
|
|
1643
1513
|
}
|
|
1644
1514
|
}
|
|
1645
|
-
return o
|
|
1515
|
+
return o;
|
|
1646
1516
|
}, e;
|
|
1647
1517
|
}(),
|
|
1648
|
-
|
|
1649
|
-
|
|
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
|
-
case 102:
|
|
1679
|
-
case 112:
|
|
1680
|
-
return e(o[0] + r), "";
|
|
1681
|
-
default:
|
|
1682
|
-
return r + (0 === d ? "/*|*/" : "");
|
|
1683
|
-
}
|
|
1684
|
-
case -2:
|
|
1685
|
-
r.split("/*|*/}").forEach(t);
|
|
1686
|
-
}
|
|
1518
|
+
Ke = React.createContext(void 0);
|
|
1519
|
+
Ke.Consumer;
|
|
1520
|
+
var nt = {},
|
|
1521
|
+
ot = new Set();
|
|
1522
|
+
function rt(e, r, s) {
|
|
1523
|
+
var i = se(e),
|
|
1524
|
+
a = e,
|
|
1525
|
+
c = !L(e),
|
|
1526
|
+
p = r.attrs,
|
|
1527
|
+
d = void 0 === p ? _ : p,
|
|
1528
|
+
h = r.componentId,
|
|
1529
|
+
f = void 0 === h ? function (e, t) {
|
|
1530
|
+
var n = "string" != typeof e ? "sc" : R(e);
|
|
1531
|
+
nt[n] = (nt[n] || 0) + 1;
|
|
1532
|
+
var o = "".concat(n, "-").concat($(v + n + nt[n]));
|
|
1533
|
+
return t ? "".concat(t, "-").concat(o) : o;
|
|
1534
|
+
}(r.displayName, r.parentComponentId) : h,
|
|
1535
|
+
m = r.displayName,
|
|
1536
|
+
y = void 0 === m ? function (e) {
|
|
1537
|
+
return L(e) ? "styled.".concat(e) : "Styled(".concat(B(e), ")");
|
|
1538
|
+
}(e) : m,
|
|
1539
|
+
g = r.displayName && r.componentId ? "".concat(R(r.displayName), "-").concat(r.componentId) : r.componentId || f,
|
|
1540
|
+
S = i && a.attrs ? a.attrs.concat(d).filter(Boolean) : d,
|
|
1541
|
+
w = r.shouldForwardProp;
|
|
1542
|
+
if (i && a.shouldForwardProp) {
|
|
1543
|
+
var b = a.shouldForwardProp;
|
|
1544
|
+
if (r.shouldForwardProp) {
|
|
1545
|
+
var E = r.shouldForwardProp;
|
|
1546
|
+
w = function (e, t) {
|
|
1547
|
+
return b(e, t) && E(e, t);
|
|
1687
1548
|
};
|
|
1688
|
-
}
|
|
1689
|
-
d.push(e);
|
|
1690
|
-
}),
|
|
1691
|
-
f = function (e, r, s) {
|
|
1692
|
-
return 0 === r && -1 !== ie.indexOf(s[n.length]) || s.match(o) ? e : "." + t;
|
|
1693
|
-
};
|
|
1694
|
-
function m(e, s, i, a) {
|
|
1695
|
-
void 0 === a && (a = "&");
|
|
1696
|
-
var c = e.replace(se, ""),
|
|
1697
|
-
u = s && i ? i + " " + s + " { " + c + " }" : c;
|
|
1698
|
-
return t = a, n = s, r = new RegExp("\\" + n + "\\b", "g"), o = new RegExp("(\\" + n + "\\b){2,}"), l(i || !s ? "" : s, u);
|
|
1699
|
-
}
|
|
1700
|
-
return l.use([].concat(u, [function (e, t, o) {
|
|
1701
|
-
2 === e && o.length && o[0].lastIndexOf(n) > 0 && (o[0] = o[0].replace(r, f));
|
|
1702
|
-
}, p, function (e) {
|
|
1703
|
-
if (-2 === e) {
|
|
1704
|
-
var t = d;
|
|
1705
|
-
return d = [], t;
|
|
1706
|
-
}
|
|
1707
|
-
}])), m.hash = u.length ? u.reduce(function (e, t) {
|
|
1708
|
-
return t.name || D(15), ee(e, t.name);
|
|
1709
|
-
}, 5381).toString() : "", m;
|
|
1710
|
-
}
|
|
1711
|
-
var ce = React.createContext();
|
|
1712
|
-
ce.Consumer;
|
|
1713
|
-
var le = React.createContext(),
|
|
1714
|
-
de = (le.Consumer, new X()),
|
|
1715
|
-
he = ae();
|
|
1716
|
-
function pe() {
|
|
1717
|
-
return useContext(ce) || de;
|
|
1718
|
-
}
|
|
1719
|
-
function fe() {
|
|
1720
|
-
return useContext(le) || he;
|
|
1721
|
-
}
|
|
1722
|
-
var ye = function () {
|
|
1723
|
-
function e(e, t) {
|
|
1724
|
-
var n = this;
|
|
1725
|
-
this.inject = function (e, t) {
|
|
1726
|
-
void 0 === t && (t = he);
|
|
1727
|
-
var r = n.name + t.hash;
|
|
1728
|
-
e.hasNameForId(n.id, r) || e.insertRules(n.id, r, t(n.rules, r, "@keyframes"));
|
|
1729
|
-
}, this.toString = function () {
|
|
1730
|
-
return D(12, String(n.name));
|
|
1731
|
-
}, this.name = e, this.id = "sc-keyframes-" + e, this.rules = t;
|
|
1732
|
-
}
|
|
1733
|
-
return e.prototype.getName = function (e) {
|
|
1734
|
-
return void 0 === e && (e = he), this.name + e.hash;
|
|
1735
|
-
}, e;
|
|
1736
|
-
}(),
|
|
1737
|
-
ve = /([A-Z])/,
|
|
1738
|
-
ge = /([A-Z])/g,
|
|
1739
|
-
Se = /^ms-/,
|
|
1740
|
-
we = function (e) {
|
|
1741
|
-
return "-" + e.toLowerCase();
|
|
1742
|
-
};
|
|
1743
|
-
function Ee(e) {
|
|
1744
|
-
return ve.test(e) ? e.replace(ge, we).replace(Se, "-ms-") : e;
|
|
1745
|
-
}
|
|
1746
|
-
var be = function (e) {
|
|
1747
|
-
return null == e || !1 === e || "" === e;
|
|
1748
|
-
};
|
|
1749
|
-
function _e(e, n, r, o) {
|
|
1750
|
-
if (Array.isArray(e)) {
|
|
1751
|
-
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));
|
|
1752
|
-
return i;
|
|
1549
|
+
} else w = b;
|
|
1753
1550
|
}
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
}
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
};
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
return E(e) || g(e) ? Ne(_e(v(S, [e].concat(n)))) : 0 === n.length && 1 === e.length && "string" == typeof e[0] ? e : Ne(_e(v(e, n)));
|
|
1776
|
-
}
|
|
1777
|
-
var Ce = /invalid hook call/i,
|
|
1778
|
-
Ie = new Set(),
|
|
1779
|
-
Pe = function (e, t) {
|
|
1780
|
-
if ("production" !== process.env.NODE_ENV) {
|
|
1781
|
-
var n = "The component " + e + (t ? ' with the id of "' + t + '"' : "") + " has been created dynamically.\nYou 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.",
|
|
1782
|
-
r = console.error;
|
|
1783
|
-
try {
|
|
1784
|
-
var o = !0;
|
|
1785
|
-
console.error = function (e) {
|
|
1786
|
-
if (Ce.test(e)) o = !1, Ie.delete(n);else {
|
|
1787
|
-
for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++) s[i - 1] = arguments[i];
|
|
1788
|
-
r.apply(void 0, [e].concat(s));
|
|
1551
|
+
var N = new Ze(s, g, i ? a.componentStyle : void 0);
|
|
1552
|
+
function O(e, r) {
|
|
1553
|
+
return function (e, r, s) {
|
|
1554
|
+
var i = e.attrs,
|
|
1555
|
+
a = e.componentStyle,
|
|
1556
|
+
c = e.defaultProps,
|
|
1557
|
+
p = e.foldedComponentIds,
|
|
1558
|
+
d = e.styledComponentId,
|
|
1559
|
+
h = e.target,
|
|
1560
|
+
f = React.useContext(Ke),
|
|
1561
|
+
m = Be(),
|
|
1562
|
+
y = e.shouldForwardProp || m.shouldForwardProp;
|
|
1563
|
+
"production" !== process.env.NODE_ENV && useDebugValue(d);
|
|
1564
|
+
var v = I(r, f, c) || C,
|
|
1565
|
+
g = function (e, n, o) {
|
|
1566
|
+
for (var r, s = __assign(__assign({}, n), {
|
|
1567
|
+
className: void 0,
|
|
1568
|
+
theme: o
|
|
1569
|
+
}), i = 0; i < e.length; i += 1) {
|
|
1570
|
+
var a = re(r = e[i]) ? r(s) : r;
|
|
1571
|
+
for (var c in a) s[c] = "className" === c ? ie(s[c], a[c]) : "style" === c ? __assign(__assign({}, s[c]), a[c]) : a[c];
|
|
1789
1572
|
}
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
return e.replace(Re, "-").replace(De, "");
|
|
1805
|
-
}
|
|
1806
|
-
var Te = function (e) {
|
|
1807
|
-
return Q(te(e) >>> 0);
|
|
1808
|
-
};
|
|
1809
|
-
function xe(e) {
|
|
1810
|
-
return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1811
|
-
}
|
|
1812
|
-
var ke = function (e) {
|
|
1813
|
-
return "function" == typeof e || "object" == typeof e && null !== e && !Array.isArray(e);
|
|
1814
|
-
},
|
|
1815
|
-
Ve = function (e) {
|
|
1816
|
-
return "__proto__" !== e && "constructor" !== e && "prototype" !== e;
|
|
1817
|
-
};
|
|
1818
|
-
function ze(e, t, n) {
|
|
1819
|
-
var r = e[n];
|
|
1820
|
-
ke(t) && ke(r) ? Be(r, t) : e[n] = t;
|
|
1821
|
-
}
|
|
1822
|
-
function Be(e) {
|
|
1823
|
-
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
|
|
1824
|
-
for (var o = 0, s = n; o < s.length; o++) {
|
|
1825
|
-
var i = s[o];
|
|
1826
|
-
if (ke(i)) for (var a in i) Ve(a) && ze(e, i[a], a);
|
|
1573
|
+
return n.className && (s.className = ie(s.className, n.className)), s;
|
|
1574
|
+
}(i, r, v),
|
|
1575
|
+
S = g.as || h,
|
|
1576
|
+
w = {};
|
|
1577
|
+
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.)')))));
|
|
1578
|
+
var E = function (e, t) {
|
|
1579
|
+
var n = Be(),
|
|
1580
|
+
o = e.generateAndInjectStyles(t, n.styleSheet, n.stylis);
|
|
1581
|
+
return "production" !== process.env.NODE_ENV && useDebugValue(o), o;
|
|
1582
|
+
}(a, g);
|
|
1583
|
+
"production" !== process.env.NODE_ENV && e.warnTooManyClasses && e.warnTooManyClasses(E);
|
|
1584
|
+
var N = ie(p, d);
|
|
1585
|
+
return E && (N += " " + E), g.className && (N += " " + g.className), w[L(S) && !A.has(S) ? "class" : "className"] = N, w.ref = s, createElement(S, w);
|
|
1586
|
+
}(D, e, r);
|
|
1827
1587
|
}
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
Me.Consumer;
|
|
1832
|
-
var Fe = {};
|
|
1833
|
-
function Ye(e, t, n) {
|
|
1834
|
-
var o = _(e),
|
|
1835
|
-
i = !xe(e),
|
|
1836
|
-
a = t.attrs,
|
|
1837
|
-
c = void 0 === a ? S : a,
|
|
1838
|
-
d = t.componentId,
|
|
1839
|
-
h = void 0 === d ? function (e, t) {
|
|
1840
|
-
var n = "string" != typeof e ? "sc" : je(e);
|
|
1841
|
-
Fe[n] = (Fe[n] || 0) + 1;
|
|
1842
|
-
var r = n + "-" + Te("5.3.6" + n + Fe[n]);
|
|
1843
|
-
return t ? t + "-" + r : r;
|
|
1844
|
-
}(t.displayName, t.parentComponentId) : d,
|
|
1845
|
-
p = t.displayName,
|
|
1846
|
-
v = void 0 === p ? function (e) {
|
|
1847
|
-
return xe(e) ? "styled." + e : "Styled(" + b(e) + ")";
|
|
1848
|
-
}(e) : p,
|
|
1849
|
-
g = t.displayName && t.componentId ? je(t.displayName) + "-" + t.componentId : t.componentId || h,
|
|
1850
|
-
N = o && e.attrs ? Array.prototype.concat(e.attrs, c).filter(Boolean) : c,
|
|
1851
|
-
A = t.shouldForwardProp;
|
|
1852
|
-
o && e.shouldForwardProp && (A = t.shouldForwardProp ? function (n, r, o) {
|
|
1853
|
-
return e.shouldForwardProp(n, r, o) && t.shouldForwardProp(n, r, o);
|
|
1854
|
-
} : e.shouldForwardProp);
|
|
1855
|
-
var C,
|
|
1856
|
-
I = new oe(n, g, o ? e.componentStyle : void 0),
|
|
1857
|
-
P = I.isStatic && 0 === c.length,
|
|
1858
|
-
O = function (e, t) {
|
|
1859
|
-
return function (e, t, n, r) {
|
|
1860
|
-
var o = e.attrs,
|
|
1861
|
-
i = e.componentStyle,
|
|
1862
|
-
a = e.defaultProps,
|
|
1863
|
-
c = e.foldedComponentIds,
|
|
1864
|
-
d = e.shouldForwardProp,
|
|
1865
|
-
h = e.styledComponentId,
|
|
1866
|
-
p = e.target;
|
|
1867
|
-
"production" !== process.env.NODE_ENV && useDebugValue(h);
|
|
1868
|
-
var m = function (e, t, n) {
|
|
1869
|
-
void 0 === e && (e = w);
|
|
1870
|
-
var r = y({}, t, {
|
|
1871
|
-
theme: e
|
|
1872
|
-
}),
|
|
1873
|
-
o = {};
|
|
1874
|
-
return n.forEach(function (e) {
|
|
1875
|
-
var t,
|
|
1876
|
-
n,
|
|
1877
|
-
s,
|
|
1878
|
-
i = e;
|
|
1879
|
-
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];
|
|
1880
|
-
}), [r, o];
|
|
1881
|
-
}(Oe(t, useContext(Me), a) || w, t, o),
|
|
1882
|
-
v = m[0],
|
|
1883
|
-
g = m[1],
|
|
1884
|
-
S = function (e, t, n, r) {
|
|
1885
|
-
var o = pe(),
|
|
1886
|
-
s = fe(),
|
|
1887
|
-
i = t ? e.generateAndInjectStyles(w, o, s) : e.generateAndInjectStyles(n, o, s);
|
|
1888
|
-
return "production" !== process.env.NODE_ENV && useDebugValue(i), "production" !== process.env.NODE_ENV && !t && r && r(i), i;
|
|
1889
|
-
}(i, r, v, "production" !== process.env.NODE_ENV ? e.warnTooManyClasses : void 0),
|
|
1890
|
-
b = n,
|
|
1891
|
-
_ = g.$as || t.$as || g.as || t.as || p,
|
|
1892
|
-
N = xe(_),
|
|
1893
|
-
A = g !== t ? y({}, t, {}, g) : t,
|
|
1894
|
-
C = {};
|
|
1895
|
-
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]));
|
|
1896
|
-
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, createElement(_, C);
|
|
1897
|
-
}(C, e, t, P);
|
|
1898
|
-
};
|
|
1899
|
-
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) {
|
|
1900
|
-
var r = t.componentId,
|
|
1901
|
-
o = function (e, t) {
|
|
1902
|
-
if (null == e) return {};
|
|
1903
|
-
var n,
|
|
1904
|
-
r,
|
|
1905
|
-
o = {},
|
|
1906
|
-
s = Object.keys(e);
|
|
1907
|
-
for (r = 0; r < s.length; r++) n = s[r], t.indexOf(n) >= 0 || (o[n] = e[n]);
|
|
1908
|
-
return o;
|
|
1909
|
-
}(t, ["componentId"]),
|
|
1910
|
-
s = r && r + "-" + (xe(e) ? e : je(b(e)));
|
|
1911
|
-
return Ye(e, y({}, o, {
|
|
1912
|
-
attrs: N,
|
|
1913
|
-
componentId: s
|
|
1914
|
-
}), n);
|
|
1915
|
-
}, Object.defineProperty(C, "defaultProps", {
|
|
1588
|
+
O.displayName = y;
|
|
1589
|
+
var D = React.forwardRef(O);
|
|
1590
|
+
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", {
|
|
1916
1591
|
get: function () {
|
|
1917
1592
|
return this._foldedDefaultProps;
|
|
1918
1593
|
},
|
|
1919
|
-
set: function (
|
|
1920
|
-
this._foldedDefaultProps =
|
|
1594
|
+
set: function (e) {
|
|
1595
|
+
this._foldedDefaultProps = i ? function (e) {
|
|
1596
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1597
|
+
for (var o = 0, r = t; o < r.length; o++) le(e, r[o], !0);
|
|
1598
|
+
return e;
|
|
1599
|
+
}({}, a.defaultProps, e) : e;
|
|
1921
1600
|
}
|
|
1922
|
-
}), "production" !== process.env.NODE_ENV && (
|
|
1601
|
+
}), "production" !== process.env.NODE_ENV && (P(y, g), D.warnTooManyClasses = function (e, t) {
|
|
1923
1602
|
var n = {},
|
|
1924
|
-
|
|
1925
|
-
return function (
|
|
1926
|
-
if (!
|
|
1927
|
-
var s = t ? ' with the id of "'
|
|
1928
|
-
console.warn("Over 200 classes were generated for component "
|
|
1603
|
+
o = !1;
|
|
1604
|
+
return function (r) {
|
|
1605
|
+
if (!o && (n[r] = !0, Object.keys(n).length >= 200)) {
|
|
1606
|
+
var s = t ? ' with the id of "'.concat(t, '"') : "";
|
|
1607
|
+
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 = {};
|
|
1929
1608
|
}
|
|
1930
1609
|
};
|
|
1931
|
-
}(
|
|
1932
|
-
return "."
|
|
1933
|
-
},
|
|
1610
|
+
}(y, g)), ue(D, function () {
|
|
1611
|
+
return ".".concat(D.styledComponentId);
|
|
1612
|
+
}), c && oe(D, e, {
|
|
1934
1613
|
attrs: !0,
|
|
1935
1614
|
componentStyle: !0,
|
|
1936
1615
|
displayName: !0,
|
|
1937
1616
|
foldedComponentIds: !0,
|
|
1938
1617
|
shouldForwardProp: !0,
|
|
1939
1618
|
styledComponentId: !0,
|
|
1940
|
-
target: !0
|
|
1941
|
-
|
|
1942
|
-
}), C;
|
|
1619
|
+
target: !0
|
|
1620
|
+
}), D;
|
|
1943
1621
|
}
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
}, s.attrs = function (n) {
|
|
1953
|
-
return e(t, r, y({}, o, {
|
|
1954
|
-
attrs: Array.prototype.concat(o.attrs, n).filter(Boolean)
|
|
1955
|
-
}));
|
|
1956
|
-
}, s;
|
|
1957
|
-
}(Ye, e);
|
|
1622
|
+
function st(e, t) {
|
|
1623
|
+
for (var n = [e[0]], o = 0, r = t.length; o < r; o += 1) n.push(t[o], e[o + 1]);
|
|
1624
|
+
return n;
|
|
1625
|
+
}
|
|
1626
|
+
var it = function (e) {
|
|
1627
|
+
return Object.assign(e, {
|
|
1628
|
+
isCss: !0
|
|
1629
|
+
});
|
|
1958
1630
|
};
|
|
1959
|
-
|
|
1960
|
-
|
|
1631
|
+
function at(t) {
|
|
1632
|
+
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1633
|
+
if (re(t) || ce(t)) return it(Ue(st(_, __spreadArray([t], n, !0))));
|
|
1634
|
+
var r = t;
|
|
1635
|
+
return 0 === n.length && 1 === r.length && "string" == typeof r[0] ? Ue(r) : it(Ue(st(r, n)));
|
|
1636
|
+
}
|
|
1637
|
+
function ct(n, o, r) {
|
|
1638
|
+
if (void 0 === r && (r = C), !o) throw he(1, o);
|
|
1639
|
+
var s = function (t) {
|
|
1640
|
+
for (var s = [], i = 1; i < arguments.length; i++) s[i - 1] = arguments[i];
|
|
1641
|
+
return n(o, r, at.apply(void 0, __spreadArray([t], s, !1)));
|
|
1642
|
+
};
|
|
1643
|
+
return s.attrs = function (e) {
|
|
1644
|
+
return ct(n, o, __assign(__assign({}, r), {
|
|
1645
|
+
attrs: Array.prototype.concat(r.attrs, e).filter(Boolean)
|
|
1646
|
+
}));
|
|
1647
|
+
}, s.withConfig = function (e) {
|
|
1648
|
+
return ct(n, o, __assign(__assign({}, r), e));
|
|
1649
|
+
}, s;
|
|
1650
|
+
}
|
|
1651
|
+
var lt = function (e) {
|
|
1652
|
+
return ct(rt, e);
|
|
1653
|
+
},
|
|
1654
|
+
ut = lt;
|
|
1655
|
+
A.forEach(function (e) {
|
|
1656
|
+
ut[e] = lt(e);
|
|
1961
1657
|
});
|
|
1962
|
-
function
|
|
1658
|
+
function ht(t) {
|
|
1659
|
+
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1963
1660
|
"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.");
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
return new ye(s, o);
|
|
1661
|
+
var r = ae(at.apply(void 0, __spreadArray([t], n, !1))),
|
|
1662
|
+
s = $(r);
|
|
1663
|
+
return new Ge(s, r);
|
|
1968
1664
|
}
|
|
1969
|
-
"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")
|
|
1970
|
-
var
|
|
1665
|
+
"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");
|
|
1666
|
+
var gt = "__sc-".concat(f, "__");
|
|
1667
|
+
"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);
|
|
1971
1668
|
|
|
1972
1669
|
const Colors = {
|
|
1973
1670
|
PRIMARY: {
|
|
@@ -2019,7 +1716,7 @@ const EditableTheme = {
|
|
|
2019
1716
|
PRIMARY_COLOR: Colors.PRIMARY,
|
|
2020
1717
|
};
|
|
2021
1718
|
|
|
2022
|
-
const Header$3 =
|
|
1719
|
+
const Header$3 = ut.div `
|
|
2023
1720
|
display: flex;
|
|
2024
1721
|
align-items: center;
|
|
2025
1722
|
justify-content: space-between;
|
|
@@ -2030,7 +1727,7 @@ const Header$3 = styled.div `
|
|
|
2030
1727
|
height: 50px;
|
|
2031
1728
|
cursor: pointer;
|
|
2032
1729
|
`;
|
|
2033
|
-
const Title$2 =
|
|
1730
|
+
const Title$2 = ut.div `
|
|
2034
1731
|
font-size: ${FontSizes.DEFAULT};
|
|
2035
1732
|
font-weight: 400;
|
|
2036
1733
|
color: ${Colors.BLACK.Hex};
|
|
@@ -2047,7 +1744,7 @@ const Accordion = (_a) => {
|
|
|
2047
1744
|
open ? children : null));
|
|
2048
1745
|
};
|
|
2049
1746
|
|
|
2050
|
-
const StyledButton =
|
|
1747
|
+
const StyledButton = ut.button `
|
|
2051
1748
|
height: ${props => (props.$small ? '30px' : '40px')};
|
|
2052
1749
|
line-height: 1em;
|
|
2053
1750
|
border-radius: ${props => (props.$small ? '15px' : '20px')};
|
|
@@ -2090,21 +1787,21 @@ const StyledButton = styled.button `
|
|
|
2090
1787
|
opacity: ${props => (props.$disabled ? 0.6 : 1)};
|
|
2091
1788
|
}
|
|
2092
1789
|
`;
|
|
2093
|
-
const Label$5 =
|
|
1790
|
+
const Label$5 = ut.span `
|
|
2094
1791
|
color: ${props => props.$content_color || '#fff'};
|
|
2095
1792
|
font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
2096
1793
|
font-family: ${FontStyles.DEFAULT};
|
|
2097
1794
|
font-weight: 500;
|
|
2098
1795
|
line-height: 1;
|
|
2099
1796
|
`;
|
|
2100
|
-
const StyledIcon$6 =
|
|
1797
|
+
const StyledIcon$6 = ut.span `
|
|
2101
1798
|
margin-left: ${props => (props.$hasChildren ? '6px' : '0px')};
|
|
2102
1799
|
margin-right: ${props => (props.$hasChildren ? '-4px' : '0px')};
|
|
2103
1800
|
display: flex;
|
|
2104
1801
|
align-items: center;
|
|
2105
1802
|
box-sizing: border-box;
|
|
2106
1803
|
`;
|
|
2107
|
-
const Badge$1 =
|
|
1804
|
+
const Badge$1 = ut.span `
|
|
2108
1805
|
width: ${props => (props.$small ? '20px' : '24px')};
|
|
2109
1806
|
height: ${props => (props.$small ? '20px' : '24px')};
|
|
2110
1807
|
line-height: 1;
|
|
@@ -2123,7 +1820,7 @@ const Badge$1 = styled.span `
|
|
|
2123
1820
|
`;
|
|
2124
1821
|
const Button = (_a) => {
|
|
2125
1822
|
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"]);
|
|
2126
|
-
const theme = useContext(
|
|
1823
|
+
const theme = useContext(Ke) || EditableTheme;
|
|
2127
1824
|
const has_children = children && children.length > 0;
|
|
2128
1825
|
const button_type_mapping = {
|
|
2129
1826
|
primary: {
|
|
@@ -2163,7 +1860,7 @@ const Button = (_a) => {
|
|
|
2163
1860
|
badge && !icon ? (React.createElement(Badge$1, { "$bg_color": format_styles.badge_bg_color, "$content_color": format_styles.badge_content_color, "$small": small }, badge)) : null));
|
|
2164
1861
|
};
|
|
2165
1862
|
|
|
2166
|
-
const StyledComponent =
|
|
1863
|
+
const StyledComponent = ut.p `
|
|
2167
1864
|
color: ${props => Colors[props.$color || 'BLACK'].Hex};
|
|
2168
1865
|
font-size: ${props => (props.$type === 'small' ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
2169
1866
|
line-height: ${props => (props.$type === 'small' ? '1.5em' : '1.6em')};
|
|
@@ -2184,7 +1881,7 @@ Copy.defaultProps = {
|
|
|
2184
1881
|
type: 'default',
|
|
2185
1882
|
};
|
|
2186
1883
|
|
|
2187
|
-
const H1 =
|
|
1884
|
+
const H1 = ut.h1 `
|
|
2188
1885
|
color: ${Colors.BLACK.Hex};
|
|
2189
1886
|
font-size: 30px;
|
|
2190
1887
|
font-weight: ${props => (props.$bold ? '500' : '400')};
|
|
@@ -2194,7 +1891,7 @@ const H1 = styled.h1 `
|
|
|
2194
1891
|
padding: ${props => props.$padding || '0px'};
|
|
2195
1892
|
box-sizing: border-box;
|
|
2196
1893
|
`;
|
|
2197
|
-
const H2 =
|
|
1894
|
+
const H2 = ut.h2 `
|
|
2198
1895
|
color: ${Colors.BLACK.Hex};
|
|
2199
1896
|
font-size: 24px;
|
|
2200
1897
|
font-weight: ${props => (props.$bold ? '500' : '400')};
|
|
@@ -2204,7 +1901,7 @@ const H2 = styled.h2 `
|
|
|
2204
1901
|
padding: ${props => props.$padding || '0px'};
|
|
2205
1902
|
box-sizing: border-box;
|
|
2206
1903
|
`;
|
|
2207
|
-
const H3 =
|
|
1904
|
+
const H3 = ut.h3 `
|
|
2208
1905
|
color: ${Colors.BLACK.Hex};
|
|
2209
1906
|
font-size: 18px;
|
|
2210
1907
|
font-weight: ${props => (props.$bold ? '500' : '400')};
|
|
@@ -2233,7 +1930,7 @@ Heading.defaultProps = {
|
|
|
2233
1930
|
type: 'primary',
|
|
2234
1931
|
};
|
|
2235
1932
|
|
|
2236
|
-
const Wrapper$i =
|
|
1933
|
+
const Wrapper$i = ut.div `
|
|
2237
1934
|
position: fixed;
|
|
2238
1935
|
top: 0;
|
|
2239
1936
|
right: 0;
|
|
@@ -2246,7 +1943,7 @@ const Wrapper$i = styled.div `
|
|
|
2246
1943
|
justify-content: center;
|
|
2247
1944
|
box-sizing: border-box;
|
|
2248
1945
|
`;
|
|
2249
|
-
const Container$3 =
|
|
1946
|
+
const Container$3 = ut.dialog `
|
|
2250
1947
|
max-width: 600px;
|
|
2251
1948
|
width: auto;
|
|
2252
1949
|
border-radius: 8px;
|
|
@@ -2259,7 +1956,7 @@ const Container$3 = styled.dialog `
|
|
|
2259
1956
|
text-align: center;
|
|
2260
1957
|
box-sizing: border-box;
|
|
2261
1958
|
`;
|
|
2262
|
-
const Buttons =
|
|
1959
|
+
const Buttons = ut.div `
|
|
2263
1960
|
display: flex;
|
|
2264
1961
|
gap: 10px;
|
|
2265
1962
|
align-items: center;
|
|
@@ -2279,7 +1976,7 @@ const ActionDialog = (_a) => {
|
|
|
2279
1976
|
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: primaryButton.format === 'red' ? 'red' : 'primary' }))) : null)) : null)));
|
|
2280
1977
|
};
|
|
2281
1978
|
|
|
2282
|
-
const Wrapper$h =
|
|
1979
|
+
const Wrapper$h = ut.div `
|
|
2283
1980
|
border: 1px solid #f1f1f1;
|
|
2284
1981
|
border-radius: 4px;
|
|
2285
1982
|
border-left-width: 4px;
|
|
@@ -2290,10 +1987,10 @@ const Wrapper$h = styled.div `
|
|
|
2290
1987
|
padding: ${({ $small }) => ($small ? '11px' : '20px')};
|
|
2291
1988
|
box-sizing: border-box;
|
|
2292
1989
|
`;
|
|
2293
|
-
const StyledIcon$5 =
|
|
1990
|
+
const StyledIcon$5 = ut(Icon) `
|
|
2294
1991
|
flex-shrink: 0;
|
|
2295
1992
|
`;
|
|
2296
|
-
const Action$1 =
|
|
1993
|
+
const Action$1 = ut.div `
|
|
2297
1994
|
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
2298
1995
|
font-size: ${FontSizes.DEFAULT};
|
|
2299
1996
|
font-family: ${FontStyles.DEFAULT};
|
|
@@ -2304,7 +2001,7 @@ const Action$1 = styled.div `
|
|
|
2304
2001
|
Action$1.defaultProps = { theme: EditableTheme };
|
|
2305
2002
|
const Alert = (_a) => {
|
|
2306
2003
|
var { action, type = 'info', title, description, small = false } = _a, accessibleProps = __rest(_a, ["action", "type", "title", "description", "small"]);
|
|
2307
|
-
const theme = useContext(
|
|
2004
|
+
const theme = useContext(Ke) || EditableTheme;
|
|
2308
2005
|
const type_mapping = {
|
|
2309
2006
|
info: {
|
|
2310
2007
|
color: theme.PRIMARY_COLOR.Hex,
|
|
@@ -2331,7 +2028,7 @@ const Alert = (_a) => {
|
|
|
2331
2028
|
action && !small ? React.createElement(Action$1, { onClick: action.onClick }, action.label) : null)));
|
|
2332
2029
|
};
|
|
2333
2030
|
|
|
2334
|
-
const Wrapper$g =
|
|
2031
|
+
const Wrapper$g = ut.div `
|
|
2335
2032
|
border: 1px solid ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
2336
2033
|
border-radius: 8px;
|
|
2337
2034
|
box-sizing: border-box;
|
|
@@ -2341,27 +2038,27 @@ const Wrapper$g = styled.div `
|
|
|
2341
2038
|
padding: 16px 20px;
|
|
2342
2039
|
`;
|
|
2343
2040
|
Wrapper$g.defaultProps = { theme: EditableTheme };
|
|
2344
|
-
const Left =
|
|
2041
|
+
const Left = ut.div `
|
|
2345
2042
|
box-sizing: border-box;
|
|
2346
2043
|
display: flex;
|
|
2347
2044
|
align-items: center;
|
|
2348
2045
|
justify-content: space-between;
|
|
2349
2046
|
flex-shrink: 0;
|
|
2350
2047
|
`;
|
|
2351
|
-
const Info$1 =
|
|
2048
|
+
const Info$1 = ut.div `
|
|
2352
2049
|
box-sizing: border-box;
|
|
2353
2050
|
display: flex;
|
|
2354
2051
|
align-items: center;
|
|
2355
2052
|
margin-right: 30px;
|
|
2356
2053
|
`;
|
|
2357
|
-
const Selected =
|
|
2054
|
+
const Selected = ut.span `
|
|
2358
2055
|
font-size: 14px;
|
|
2359
2056
|
font-weight: 400;
|
|
2360
2057
|
font-family: ${FontStyles.DEFAULT};
|
|
2361
2058
|
color: ${Colors.BLACK.Hex};
|
|
2362
2059
|
line-height: 1;
|
|
2363
2060
|
`;
|
|
2364
|
-
const Clear =
|
|
2061
|
+
const Clear = ut.span `
|
|
2365
2062
|
font-size: 14px;
|
|
2366
2063
|
font-weight: 400;
|
|
2367
2064
|
font-family: ${FontStyles.DEFAULT};
|
|
@@ -2373,13 +2070,13 @@ const Clear = styled.span `
|
|
|
2373
2070
|
border-left: 1px solid #ccc;
|
|
2374
2071
|
`;
|
|
2375
2072
|
Clear.defaultProps = { theme: EditableTheme };
|
|
2376
|
-
const Actions$1 =
|
|
2073
|
+
const Actions$1 = ut.div `
|
|
2377
2074
|
box-sizing: border-box;
|
|
2378
2075
|
display: flex;
|
|
2379
2076
|
align-items: center;
|
|
2380
2077
|
column-gap: 10px;
|
|
2381
2078
|
`;
|
|
2382
|
-
const Error$1 =
|
|
2079
|
+
const Error$1 = ut.div `
|
|
2383
2080
|
box-sizing: border-box;
|
|
2384
2081
|
display: flex;
|
|
2385
2082
|
align-items: center;
|
|
@@ -2391,7 +2088,7 @@ const Error$1 = styled.div `
|
|
|
2391
2088
|
overflow: hidden;
|
|
2392
2089
|
margin-left: 30px;
|
|
2393
2090
|
`;
|
|
2394
|
-
const ErrorMsg =
|
|
2091
|
+
const ErrorMsg = ut.span `
|
|
2395
2092
|
font-size: 14px;
|
|
2396
2093
|
font-weight: 500;
|
|
2397
2094
|
font-family: ${FontStyles.DEFAULT};
|
|
@@ -2414,7 +2111,7 @@ const BulkActionBar = (_a) => {
|
|
|
2414
2111
|
React.createElement(ErrorMsg, null, errorMsg))) : null));
|
|
2415
2112
|
};
|
|
2416
2113
|
|
|
2417
|
-
const Wrapper$f =
|
|
2114
|
+
const Wrapper$f = ut.div `
|
|
2418
2115
|
background: #fff;
|
|
2419
2116
|
border-radius: 8px;
|
|
2420
2117
|
box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
|
|
@@ -2425,7 +2122,7 @@ const Wrapper$f = styled.div `
|
|
|
2425
2122
|
padding: 10px;
|
|
2426
2123
|
width: 200px;
|
|
2427
2124
|
`;
|
|
2428
|
-
const MenuItem =
|
|
2125
|
+
const MenuItem = ut.div `
|
|
2429
2126
|
align-items: center;
|
|
2430
2127
|
border-radius: 8px;
|
|
2431
2128
|
border: 1px solid transparent;
|
|
@@ -2444,7 +2141,7 @@ const MenuItem = styled.div `
|
|
|
2444
2141
|
}
|
|
2445
2142
|
`;
|
|
2446
2143
|
MenuItem.defaultProps = { theme: EditableTheme };
|
|
2447
|
-
const Title$1 =
|
|
2144
|
+
const Title$1 = ut.span `
|
|
2448
2145
|
font-family: Roboto;
|
|
2449
2146
|
font-size: 14px;
|
|
2450
2147
|
font-weight: 400;
|
|
@@ -2462,11 +2159,11 @@ const MoreMenu = (_a) => {
|
|
|
2462
2159
|
})));
|
|
2463
2160
|
};
|
|
2464
2161
|
|
|
2465
|
-
const Wrapper$e =
|
|
2162
|
+
const Wrapper$e = ut.div `
|
|
2466
2163
|
position: relative;
|
|
2467
2164
|
display: inline-block;
|
|
2468
2165
|
`;
|
|
2469
|
-
const StyledMoreMenu =
|
|
2166
|
+
const StyledMoreMenu = ut(MoreMenu) `
|
|
2470
2167
|
position: absolute;
|
|
2471
2168
|
right: ${props => (props.$position === 'right' ? '0px' : 'auto')};
|
|
2472
2169
|
left: ${props => (props.$position === 'left' ? '0px' : 'auto')};
|
|
@@ -2481,7 +2178,7 @@ const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = '
|
|
|
2481
2178
|
show_menu ? (React.createElement(StyledMoreMenu, { "$menuWidth": menuWidth, "$position": position, "$small": small, maxHeight: maxHeight, menuItems: menuItems })) : null));
|
|
2482
2179
|
};
|
|
2483
2180
|
|
|
2484
|
-
const Wrapper$d =
|
|
2181
|
+
const Wrapper$d = ut.label `
|
|
2485
2182
|
border-radius: 4px;
|
|
2486
2183
|
padding: 4px 0px 4px 6px;
|
|
2487
2184
|
margin-left: -6px;
|
|
@@ -2497,13 +2194,13 @@ const Wrapper$d = styled.label `
|
|
|
2497
2194
|
}
|
|
2498
2195
|
`;
|
|
2499
2196
|
Wrapper$d.defaultProps = { theme: EditableTheme };
|
|
2500
|
-
const Input$2 =
|
|
2197
|
+
const Input$2 = ut.input `
|
|
2501
2198
|
font-size: 20px;
|
|
2502
2199
|
margin: 5px 0px 0px 0px;
|
|
2503
2200
|
line-height: 1.1em;
|
|
2504
2201
|
box-sizing: border-box;
|
|
2505
2202
|
`;
|
|
2506
|
-
const Label$4 =
|
|
2203
|
+
const Label$4 = ut.span `
|
|
2507
2204
|
font-family: ${FontStyles.DEFAULT};
|
|
2508
2205
|
font-size: ${FontSizes.DEFAULT};
|
|
2509
2206
|
font-weight: 400;
|
|
@@ -2519,12 +2216,12 @@ const Checkbox = (_a) => {
|
|
|
2519
2216
|
children ? React.createElement(Label$4, null, children) : null));
|
|
2520
2217
|
};
|
|
2521
2218
|
|
|
2522
|
-
const SelectAll =
|
|
2219
|
+
const SelectAll = ut.div `
|
|
2523
2220
|
padding: 8px 12px;
|
|
2524
2221
|
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
2525
2222
|
box-sizing: border-box;
|
|
2526
2223
|
`;
|
|
2527
|
-
const Options$1 =
|
|
2224
|
+
const Options$1 = ut.div `
|
|
2528
2225
|
padding: 12px;
|
|
2529
2226
|
box-sizing: border-box;
|
|
2530
2227
|
`;
|
|
@@ -2883,7 +2580,7 @@ var dayjs_min = {exports: {}};
|
|
|
2883
2580
|
var dayjs_minExports = dayjs_min.exports;
|
|
2884
2581
|
var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
|
|
2885
2582
|
|
|
2886
|
-
const Wrapper$c =
|
|
2583
|
+
const Wrapper$c = ut.div `
|
|
2887
2584
|
border-radius: 4px;
|
|
2888
2585
|
height: 40px;
|
|
2889
2586
|
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
@@ -2905,7 +2602,7 @@ const Wrapper$c = styled.div `
|
|
|
2905
2602
|
}
|
|
2906
2603
|
`;
|
|
2907
2604
|
Wrapper$c.defaultProps = { theme: EditableTheme };
|
|
2908
|
-
const Trigger$1 =
|
|
2605
|
+
const Trigger$1 = ut.select `
|
|
2909
2606
|
appearance: none;
|
|
2910
2607
|
box-shadow: none;
|
|
2911
2608
|
outline: none;
|
|
@@ -2925,7 +2622,7 @@ const Trigger$1 = styled.select `
|
|
|
2925
2622
|
position: relative;
|
|
2926
2623
|
z-index: 2;
|
|
2927
2624
|
`;
|
|
2928
|
-
const IconWrapper$2 =
|
|
2625
|
+
const IconWrapper$2 = ut(Icon) `
|
|
2929
2626
|
position: absolute;
|
|
2930
2627
|
right: 9px;
|
|
2931
2628
|
z-index: 1;
|
|
@@ -2948,11 +2645,11 @@ const Select = (_a) => {
|
|
|
2948
2645
|
React.createElement(IconWrapper$2, { color: Colors.BLACK.Hex, path: mdiChevronDown, size: '22px' })));
|
|
2949
2646
|
};
|
|
2950
2647
|
|
|
2951
|
-
const DatePickerWrapper =
|
|
2648
|
+
const DatePickerWrapper = ut.div `
|
|
2952
2649
|
display: flex;
|
|
2953
2650
|
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
2954
2651
|
`;
|
|
2955
|
-
const Middle =
|
|
2652
|
+
const Middle = ut.div `
|
|
2956
2653
|
margin: 0px -1px;
|
|
2957
2654
|
flex-grow: 1;
|
|
2958
2655
|
`;
|
|
@@ -3018,7 +2715,7 @@ const DatePicker = ({ readOnly = false, invalid = false, maxDate = null, minDate
|
|
|
3018
2715
|
React.createElement(Select, { invalid: invalid, onChange: handleYearChange, options: years, readOnly: readOnly, style: { borderRadius: '0px 4px 4px 0px', flexGrow: 2 }, value: dDate.format('YYYY') }))));
|
|
3019
2716
|
};
|
|
3020
2717
|
|
|
3021
|
-
const Scrim$1 =
|
|
2718
|
+
const Scrim$1 = ut.div `
|
|
3022
2719
|
position: ${({ $position }) => $position};
|
|
3023
2720
|
top: 0;
|
|
3024
2721
|
right: 0;
|
|
@@ -3027,7 +2724,7 @@ const Scrim$1 = styled.div `
|
|
|
3027
2724
|
z-index: ${({ $position }) => ($position === 'fixed' ? 9998 : 10)};
|
|
3028
2725
|
background: ${({ $scrim }) => ($scrim === 'dark' ? 'rgba(0,0,0,0.8)' : 'transparent')};
|
|
3029
2726
|
`;
|
|
3030
|
-
const Container$2 =
|
|
2727
|
+
const Container$2 = ut.div `
|
|
3031
2728
|
z-index: ${({ $position }) => ($position === 'fixed' ? 9999 : 11)};
|
|
3032
2729
|
min-width: 400px;
|
|
3033
2730
|
width: ${({ $width }) => $width || '400px'};
|
|
@@ -3045,7 +2742,7 @@ const Container$2 = styled.div `
|
|
|
3045
2742
|
box-sizing: border-box;
|
|
3046
2743
|
background: #fff;
|
|
3047
2744
|
`;
|
|
3048
|
-
const Header$2 =
|
|
2745
|
+
const Header$2 = ut.div `
|
|
3049
2746
|
padding: 30px 20px;
|
|
3050
2747
|
display: flex;
|
|
3051
2748
|
align-items: flex-start;
|
|
@@ -3053,21 +2750,21 @@ const Header$2 = styled.div `
|
|
|
3053
2750
|
flex-shrink: 0;
|
|
3054
2751
|
background: #fff;
|
|
3055
2752
|
`;
|
|
3056
|
-
const Close$1 =
|
|
2753
|
+
const Close$1 = ut.div `
|
|
3057
2754
|
margin-left: auto;
|
|
3058
2755
|
display: flex;
|
|
3059
2756
|
align-items: center;
|
|
3060
2757
|
padding-left: 20px;
|
|
3061
2758
|
cursor: pointer;
|
|
3062
2759
|
`;
|
|
3063
|
-
const ContentWrapper$1 =
|
|
2760
|
+
const ContentWrapper$1 = ut.div `
|
|
3064
2761
|
overflow-x: hidden;
|
|
3065
2762
|
overflow-y: auto;
|
|
3066
2763
|
box-sizing: border-box;
|
|
3067
2764
|
flex: 1;
|
|
3068
2765
|
background: #fff;
|
|
3069
2766
|
`;
|
|
3070
|
-
const ButtonBar$1 =
|
|
2767
|
+
const ButtonBar$1 = ut.div `
|
|
3071
2768
|
padding: 20px;
|
|
3072
2769
|
display: flex;
|
|
3073
2770
|
align-items: center;
|
|
@@ -3105,12 +2802,12 @@ const Drawer = (_a) => {
|
|
|
3105
2802
|
scrim ? React.createElement(Scrim$1, { "$position": position, "$scrim": scrim, onClick: onClose }) : null));
|
|
3106
2803
|
};
|
|
3107
2804
|
|
|
3108
|
-
const Wrapper$b =
|
|
2805
|
+
const Wrapper$b = ut.div `
|
|
3109
2806
|
display: inline-block;
|
|
3110
2807
|
position: relative;
|
|
3111
2808
|
height: 16px;
|
|
3112
2809
|
`;
|
|
3113
|
-
const StyledIcon$4 =
|
|
2810
|
+
const StyledIcon$4 = ut(Icon) `
|
|
3114
2811
|
width: 16px;
|
|
3115
2812
|
height: 16px;
|
|
3116
2813
|
margin: 0px 6px;
|
|
@@ -3146,7 +2843,7 @@ const positions = {
|
|
|
3146
2843
|
transform: 'translateY(-50%)',
|
|
3147
2844
|
},
|
|
3148
2845
|
};
|
|
3149
|
-
const Content$3 =
|
|
2846
|
+
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])));
|
|
3150
2847
|
Content$3.defaultProps = { theme: EditableTheme };
|
|
3151
2848
|
const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, }) => {
|
|
3152
2849
|
const [show_content, toggleContent] = useState(false);
|
|
@@ -3155,15 +2852,15 @@ const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, }
|
|
|
3155
2852
|
show_content ? (React.createElement(Content$3, { "$position": position, "$width": width }, children && React.createElement(Copy, { type: 'small' }, children))) : null));
|
|
3156
2853
|
};
|
|
3157
2854
|
|
|
3158
|
-
const Wrapper$a =
|
|
3159
|
-
const LabelRow =
|
|
2855
|
+
const Wrapper$a = ut.div(props => (Object.assign({ margin: '0px 0px 18px 0px' }, props.style)));
|
|
2856
|
+
const LabelRow = ut.div `
|
|
3160
2857
|
display: flex;
|
|
3161
2858
|
align-items: center;
|
|
3162
2859
|
justify-content: space-between;
|
|
3163
2860
|
margin: 0 0 4px 0;
|
|
3164
2861
|
box-sizing: border-box;
|
|
3165
2862
|
`;
|
|
3166
|
-
const Label$3 =
|
|
2863
|
+
const Label$3 = ut.label `
|
|
3167
2864
|
font-size: ${FontSizes.DEFAULT};
|
|
3168
2865
|
font-weight: 500;
|
|
3169
2866
|
line-height: 1em;
|
|
@@ -3172,11 +2869,11 @@ const Label$3 = styled.label `
|
|
|
3172
2869
|
display: flex;
|
|
3173
2870
|
align-items: center;
|
|
3174
2871
|
`;
|
|
3175
|
-
const Required =
|
|
2872
|
+
const Required = ut.span `
|
|
3176
2873
|
color: ${Colors.RED.Hex};
|
|
3177
2874
|
margin-left: 4px;
|
|
3178
2875
|
`;
|
|
3179
|
-
const Action =
|
|
2876
|
+
const Action = ut.span `
|
|
3180
2877
|
font-size: ${FontSizes.DEFAULT};
|
|
3181
2878
|
font-weight: 500;
|
|
3182
2879
|
line-height: 1em;
|
|
@@ -3185,7 +2882,7 @@ const Action = styled.span `
|
|
|
3185
2882
|
cursor: pointer;
|
|
3186
2883
|
`;
|
|
3187
2884
|
Action.defaultProps = { theme: EditableTheme };
|
|
3188
|
-
const Description =
|
|
2885
|
+
const Description = ut.div `
|
|
3189
2886
|
font-size: ${FontSizes.SMALL};
|
|
3190
2887
|
font-weight: 400;
|
|
3191
2888
|
line-height: 1.3em;
|
|
@@ -3194,7 +2891,7 @@ const Description = styled.div `
|
|
|
3194
2891
|
margin: 0 0 8px 0;
|
|
3195
2892
|
box-sizing: border-box;
|
|
3196
2893
|
`;
|
|
3197
|
-
const Validation =
|
|
2894
|
+
const Validation = ut.div `
|
|
3198
2895
|
font-size: ${FontSizes.SMALL};
|
|
3199
2896
|
font-weight: 400;
|
|
3200
2897
|
line-height: 1.3em;
|
|
@@ -3217,7 +2914,7 @@ const Field = (_a) => {
|
|
|
3217
2914
|
validationText ? React.createElement(Validation, null, validationText) : null));
|
|
3218
2915
|
};
|
|
3219
2916
|
|
|
3220
|
-
const Wrapper$9 =
|
|
2917
|
+
const Wrapper$9 = ut.fieldset `
|
|
3221
2918
|
margin-inline-start: 0px;
|
|
3222
2919
|
margin-inline-end: 0px;
|
|
3223
2920
|
padding-block-start: 0px;
|
|
@@ -3230,7 +2927,7 @@ const Wrapper$9 = styled.fieldset `
|
|
|
3230
2927
|
border-color: transparent;
|
|
3231
2928
|
border-image: none;
|
|
3232
2929
|
`;
|
|
3233
|
-
const Label$2 =
|
|
2930
|
+
const Label$2 = ut.legend `
|
|
3234
2931
|
padding-inline-start: 0px;
|
|
3235
2932
|
padding-inline-end: 0px;
|
|
3236
2933
|
|
|
@@ -3241,7 +2938,7 @@ const Label$2 = styled.legend `
|
|
|
3241
2938
|
line-height: 22px;
|
|
3242
2939
|
margin-bottom: 6px;
|
|
3243
2940
|
`;
|
|
3244
|
-
const Content$2 =
|
|
2941
|
+
const Content$2 = ut.div `
|
|
3245
2942
|
padding: 20px;
|
|
3246
2943
|
border-radius: 8px;
|
|
3247
2944
|
background: #fcfcfc;
|
|
@@ -3252,7 +2949,7 @@ const FieldGroup = ({ children, label }) => {
|
|
|
3252
2949
|
React.createElement(Content$2, null, children)));
|
|
3253
2950
|
};
|
|
3254
2951
|
|
|
3255
|
-
const Dropzone =
|
|
2952
|
+
const Dropzone = ut.div `
|
|
3256
2953
|
border-radius: 8px;
|
|
3257
2954
|
border-width: 1px;
|
|
3258
2955
|
border-style: dashed;
|
|
@@ -3261,7 +2958,7 @@ const Dropzone = styled.div `
|
|
|
3261
2958
|
cursor: copy;
|
|
3262
2959
|
`;
|
|
3263
2960
|
Dropzone.defaultProps = { theme: EditableTheme };
|
|
3264
|
-
const IconWrapper$1 =
|
|
2961
|
+
const IconWrapper$1 = ut.div `
|
|
3265
2962
|
width: 80px;
|
|
3266
2963
|
height: 80px;
|
|
3267
2964
|
border-radius: 40px;
|
|
@@ -3270,7 +2967,7 @@ const IconWrapper$1 = styled.div `
|
|
|
3270
2967
|
align-items: center;
|
|
3271
2968
|
justify-content: center;
|
|
3272
2969
|
`;
|
|
3273
|
-
const StyledIcon$3 =
|
|
2970
|
+
const StyledIcon$3 = ut(Icon) `
|
|
3274
2971
|
width: 40px !important;
|
|
3275
2972
|
height: 40px !important;
|
|
3276
2973
|
|
|
@@ -3278,27 +2975,27 @@ const StyledIcon$3 = styled(Icon) `
|
|
|
3278
2975
|
fill: ${Colors.GRAY.Hex} !important;
|
|
3279
2976
|
}
|
|
3280
2977
|
`;
|
|
3281
|
-
const ClickZone =
|
|
2978
|
+
const ClickZone = ut.div `
|
|
3282
2979
|
margin: 40px 20px;
|
|
3283
2980
|
display: flex;
|
|
3284
2981
|
flex-direction: column;
|
|
3285
2982
|
align-items: center;
|
|
3286
2983
|
gap: 16px;
|
|
3287
2984
|
`;
|
|
3288
|
-
const Content$1 =
|
|
2985
|
+
const Content$1 = ut.div `
|
|
3289
2986
|
display: flex;
|
|
3290
2987
|
flex-direction: column;
|
|
3291
2988
|
align-items: center;
|
|
3292
2989
|
gap: 2px;
|
|
3293
2990
|
`;
|
|
3294
|
-
const Files =
|
|
2991
|
+
const Files = ut.div `
|
|
3295
2992
|
display: flex;
|
|
3296
2993
|
flex-direction: column;
|
|
3297
2994
|
align-self: stretch;
|
|
3298
2995
|
gap: 10px;
|
|
3299
2996
|
margin: 20px;
|
|
3300
2997
|
`;
|
|
3301
|
-
const File =
|
|
2998
|
+
const File = ut.div `
|
|
3302
2999
|
display: flex;
|
|
3303
3000
|
padding: 10px;
|
|
3304
3001
|
align-items: center;
|
|
@@ -3308,7 +3005,7 @@ const File = styled.div `
|
|
|
3308
3005
|
border: 1px solid #cccccc;
|
|
3309
3006
|
background: #ffffff;
|
|
3310
3007
|
`;
|
|
3311
|
-
const Remove$1 =
|
|
3008
|
+
const Remove$1 = ut(Icon) `
|
|
3312
3009
|
width: 24px;
|
|
3313
3010
|
height: 24px;
|
|
3314
3011
|
cursor: pointer;
|
|
@@ -3502,7 +3199,7 @@ const formatAsSsn = (number) => {
|
|
|
3502
3199
|
return formatted_value;
|
|
3503
3200
|
};
|
|
3504
3201
|
|
|
3505
|
-
const StyledInput =
|
|
3202
|
+
const StyledInput = ut.input `
|
|
3506
3203
|
border: none !important;
|
|
3507
3204
|
background: none !important;
|
|
3508
3205
|
font-size: ${FontSizes.DEFAULT};
|
|
@@ -3523,7 +3220,7 @@ const StyledInput = styled.input `
|
|
|
3523
3220
|
display: block;
|
|
3524
3221
|
width: 100%;
|
|
3525
3222
|
`;
|
|
3526
|
-
const StyledSuffix =
|
|
3223
|
+
const StyledSuffix = ut.div `
|
|
3527
3224
|
box-sizing: border-box;
|
|
3528
3225
|
border-radius: 0px 4px 4px 0px;
|
|
3529
3226
|
display: flex;
|
|
@@ -3541,7 +3238,7 @@ const StyledSuffix = styled.div `
|
|
|
3541
3238
|
font-size: ${FontSizes.DEFAULT};
|
|
3542
3239
|
color: Colors.BLACK.Hex;
|
|
3543
3240
|
`;
|
|
3544
|
-
const StyledWrapper =
|
|
3241
|
+
const StyledWrapper = ut.div `
|
|
3545
3242
|
display: flex;
|
|
3546
3243
|
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
3547
3244
|
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
@@ -3556,7 +3253,7 @@ const StyledWrapper = styled.div `
|
|
|
3556
3253
|
}
|
|
3557
3254
|
`;
|
|
3558
3255
|
StyledWrapper.defaultProps = { theme: EditableTheme };
|
|
3559
|
-
const StyledTextarea =
|
|
3256
|
+
const StyledTextarea = ut.textarea `
|
|
3560
3257
|
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
3561
3258
|
border-radius: 4px;
|
|
3562
3259
|
border-width: 1px;
|
|
@@ -3585,7 +3282,7 @@ const StyledTextarea = styled.textarea `
|
|
|
3585
3282
|
}
|
|
3586
3283
|
`;
|
|
3587
3284
|
StyledTextarea.defaultProps = { theme: EditableTheme };
|
|
3588
|
-
const SuggestedValues =
|
|
3285
|
+
const SuggestedValues = ut.div `
|
|
3589
3286
|
background: #fff;
|
|
3590
3287
|
box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
|
|
3591
3288
|
border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
@@ -3602,7 +3299,7 @@ const SuggestedValues = styled.div `
|
|
|
3602
3299
|
overflow: auto;
|
|
3603
3300
|
`;
|
|
3604
3301
|
SuggestedValues.defaultProps = { theme: EditableTheme };
|
|
3605
|
-
const SuggestedSummary =
|
|
3302
|
+
const SuggestedSummary = ut.div `
|
|
3606
3303
|
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
3607
3304
|
font-size: 12px;
|
|
3608
3305
|
font-family: ${FontStyles.DEFAULT};
|
|
@@ -3615,7 +3312,7 @@ const SuggestedSummary = styled.div `
|
|
|
3615
3312
|
position: sticky;
|
|
3616
3313
|
top: 0px;
|
|
3617
3314
|
`;
|
|
3618
|
-
const SuggestedValue =
|
|
3315
|
+
const SuggestedValue = ut.div `
|
|
3619
3316
|
cursor: pointer;
|
|
3620
3317
|
padding: 8px 12px;
|
|
3621
3318
|
font-size: ${FontSizes.DEFAULT};
|
|
@@ -3688,7 +3385,7 @@ const Input$1 = (_a) => {
|
|
|
3688
3385
|
}))) : null));
|
|
3689
3386
|
};
|
|
3690
3387
|
|
|
3691
|
-
const Wrapper$8 =
|
|
3388
|
+
const Wrapper$8 = ut.a `
|
|
3692
3389
|
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
3693
3390
|
font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
3694
3391
|
line-height: ${props => (props.$small ? '1.5em' : '1.6em')};
|
|
@@ -3708,7 +3405,7 @@ const Link = (_a) => {
|
|
|
3708
3405
|
return (React.createElement(Wrapper$8, Object.assign({ "$small": small, onClick: onClick }, accessibleProps), children));
|
|
3709
3406
|
};
|
|
3710
3407
|
|
|
3711
|
-
const dash =
|
|
3408
|
+
const dash = ht `
|
|
3712
3409
|
0% {
|
|
3713
3410
|
stroke-dasharray: 1, 160;
|
|
3714
3411
|
stroke-dashoffset: 0;
|
|
@@ -3722,7 +3419,7 @@ const dash = We `
|
|
|
3722
3419
|
stroke-dashoffset: -124;
|
|
3723
3420
|
}
|
|
3724
3421
|
`;
|
|
3725
|
-
const Spinner =
|
|
3422
|
+
const Spinner = ut.svg `
|
|
3726
3423
|
z-index: 2;
|
|
3727
3424
|
position: absolute;
|
|
3728
3425
|
top: 50%;
|
|
@@ -3731,7 +3428,7 @@ const Spinner = styled.svg `
|
|
|
3731
3428
|
width: 40px;
|
|
3732
3429
|
height: 40px;
|
|
3733
3430
|
`;
|
|
3734
|
-
const Path =
|
|
3431
|
+
const Path = ut.path `
|
|
3735
3432
|
stroke: #0193d7;
|
|
3736
3433
|
stroke-linecap: round;
|
|
3737
3434
|
-webkit-animation: ${dash} 1.1s ease-in-out infinite;
|
|
@@ -3784,7 +3481,7 @@ const Logo = (_a) => {
|
|
|
3784
3481
|
}
|
|
3785
3482
|
};
|
|
3786
3483
|
|
|
3787
|
-
const Steps =
|
|
3484
|
+
const Steps = ut.div `
|
|
3788
3485
|
padding: 20px;
|
|
3789
3486
|
border-bottom: 1px solid #e7e6e6;
|
|
3790
3487
|
background: #f5f5f5;
|
|
@@ -3792,18 +3489,18 @@ const Steps = styled.div `
|
|
|
3792
3489
|
gap: 30px;
|
|
3793
3490
|
align-items: center;
|
|
3794
3491
|
`;
|
|
3795
|
-
const Step =
|
|
3492
|
+
const Step = ut.div `
|
|
3796
3493
|
display: flex;
|
|
3797
3494
|
align-items: center;
|
|
3798
3495
|
gap: 8px;
|
|
3799
3496
|
`;
|
|
3800
|
-
const StyledIcon$2 =
|
|
3497
|
+
const StyledIcon$2 = ut(Icon) `
|
|
3801
3498
|
> path {
|
|
3802
3499
|
fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
|
|
3803
3500
|
}
|
|
3804
3501
|
`;
|
|
3805
3502
|
StyledIcon$2.defaultProps = { theme: EditableTheme };
|
|
3806
|
-
const StepIndicator =
|
|
3503
|
+
const StepIndicator = ut.div `
|
|
3807
3504
|
width: 30px;
|
|
3808
3505
|
height: 30px;
|
|
3809
3506
|
border-radius: 15px;
|
|
@@ -3819,7 +3516,7 @@ const StepIndicator = styled.div `
|
|
|
3819
3516
|
flex-shrink: 0;
|
|
3820
3517
|
`;
|
|
3821
3518
|
StepIndicator.defaultProps = { theme: EditableTheme };
|
|
3822
|
-
const StepLabel =
|
|
3519
|
+
const StepLabel = ut.div `
|
|
3823
3520
|
color: #000;
|
|
3824
3521
|
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
3825
3522
|
font-size: 14px;
|
|
@@ -3834,7 +3531,7 @@ const ProgressBar = ({ steps }) => {
|
|
|
3834
3531
|
})));
|
|
3835
3532
|
};
|
|
3836
3533
|
|
|
3837
|
-
const Wrapper$7 =
|
|
3534
|
+
const Wrapper$7 = ut.div `
|
|
3838
3535
|
position: fixed;
|
|
3839
3536
|
top: 0;
|
|
3840
3537
|
right: 0;
|
|
@@ -3846,7 +3543,7 @@ const Wrapper$7 = styled.div `
|
|
|
3846
3543
|
align-items: center;
|
|
3847
3544
|
justify-content: center;
|
|
3848
3545
|
`;
|
|
3849
|
-
const Container$1 =
|
|
3546
|
+
const Container$1 = ut.dialog `
|
|
3850
3547
|
width: ${props => (props.$fullscreen ? 'calc(100vw - 80px)' : props.$maxWidth || '900px')};
|
|
3851
3548
|
max-width: calc(100vw - 80px);
|
|
3852
3549
|
height: ${props => (props.$fullscreen ? 'calc(100vh - 80px)' : 'auto')};
|
|
@@ -3862,7 +3559,7 @@ const Container$1 = styled.dialog `
|
|
|
3862
3559
|
display: flex;
|
|
3863
3560
|
flex-direction: column;
|
|
3864
3561
|
`;
|
|
3865
|
-
const Header$1 =
|
|
3562
|
+
const Header$1 = ut.div `
|
|
3866
3563
|
flex-shrink: 0;
|
|
3867
3564
|
padding: 20px;
|
|
3868
3565
|
border-bottom: 1px solid #e7e6e6;
|
|
@@ -3871,28 +3568,28 @@ const Header$1 = styled.div `
|
|
|
3871
3568
|
background: #ffffff;
|
|
3872
3569
|
box-sizing: border-box;
|
|
3873
3570
|
`;
|
|
3874
|
-
const Close =
|
|
3571
|
+
const Close = ut.div `
|
|
3875
3572
|
margin-left: auto;
|
|
3876
3573
|
display: flex;
|
|
3877
3574
|
align-items: center;
|
|
3878
3575
|
padding-left: 20px;
|
|
3879
3576
|
cursor: pointer;
|
|
3880
3577
|
`;
|
|
3881
|
-
const CloseMsg =
|
|
3578
|
+
const CloseMsg = ut.span `
|
|
3882
3579
|
font-size: ${FontSizes.SMALL};
|
|
3883
3580
|
font-weight: 400;
|
|
3884
3581
|
font-family: ${FontStyles.DEFAULT};
|
|
3885
3582
|
line-height: 1em;
|
|
3886
3583
|
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
3887
3584
|
`;
|
|
3888
|
-
const ContentWrapper =
|
|
3585
|
+
const ContentWrapper = ut.div `
|
|
3889
3586
|
overflow-x: hidden;
|
|
3890
3587
|
overflow-y: auto;
|
|
3891
3588
|
background: #ffffff;
|
|
3892
3589
|
flex: 1;
|
|
3893
3590
|
box-sizing: border-box;
|
|
3894
3591
|
`;
|
|
3895
|
-
const ButtonBar =
|
|
3592
|
+
const ButtonBar = ut.div `
|
|
3896
3593
|
flex-shrink: 0;
|
|
3897
3594
|
background: #ffffff;
|
|
3898
3595
|
padding: 20px;
|
|
@@ -3935,11 +3632,11 @@ const Modal = (_a) => {
|
|
|
3935
3632
|
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { format: 'primary', margin: '0px 0px 0px 10px' }))) : null)) : null)) : null)));
|
|
3936
3633
|
};
|
|
3937
3634
|
|
|
3938
|
-
const Wrapper$6 =
|
|
3635
|
+
const Wrapper$6 = ut.div `
|
|
3939
3636
|
position: relative;
|
|
3940
3637
|
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
3941
3638
|
`;
|
|
3942
|
-
const Trigger =
|
|
3639
|
+
const Trigger = ut.div `
|
|
3943
3640
|
box-sizing: border-box;
|
|
3944
3641
|
border-radius: ${props => (props.$showOptions ? '4px 4px 0px 0px' : '4px')};
|
|
3945
3642
|
height: 40px;
|
|
@@ -3968,7 +3665,7 @@ const Trigger = styled.div `
|
|
|
3968
3665
|
z-index: 1;
|
|
3969
3666
|
`;
|
|
3970
3667
|
Trigger.defaultProps = { theme: EditableTheme };
|
|
3971
|
-
const Value =
|
|
3668
|
+
const Value = ut.div `
|
|
3972
3669
|
color: ${Colors.BLACK.Hex};
|
|
3973
3670
|
font-family: ${FontStyles.DEFAULT};
|
|
3974
3671
|
font-size: ${FontSizes.DEFAULT};
|
|
@@ -3979,7 +3676,7 @@ const Value = styled.div `
|
|
|
3979
3676
|
white-space: nowrap;
|
|
3980
3677
|
width: 100%;
|
|
3981
3678
|
`;
|
|
3982
|
-
const Options =
|
|
3679
|
+
const Options = ut.div `
|
|
3983
3680
|
background: #fff;
|
|
3984
3681
|
box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
|
|
3985
3682
|
border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
@@ -3995,7 +3692,7 @@ const Options = styled.div `
|
|
|
3995
3692
|
overflow: auto;
|
|
3996
3693
|
`;
|
|
3997
3694
|
Options.defaultProps = { theme: EditableTheme };
|
|
3998
|
-
const Scrim =
|
|
3695
|
+
const Scrim = ut.div `
|
|
3999
3696
|
bottom: 0;
|
|
4000
3697
|
left: 0;
|
|
4001
3698
|
position: fixed;
|
|
@@ -4018,7 +3715,7 @@ const MultiSelect = (_a) => {
|
|
|
4018
3715
|
showOptions ? React.createElement(Scrim, { onClick: setShowOptions.bind(null, !showOptions) }) : null));
|
|
4019
3716
|
};
|
|
4020
3717
|
|
|
4021
|
-
const Wrapper$5 =
|
|
3718
|
+
const Wrapper$5 = ut.div `
|
|
4022
3719
|
display: inline-block;
|
|
4023
3720
|
border-radius: 4px;
|
|
4024
3721
|
padding: 4px 6px;
|
|
@@ -4027,18 +3724,18 @@ const Wrapper$5 = styled.div `
|
|
|
4027
3724
|
box-sizing: border-box;
|
|
4028
3725
|
cursor: ${props => (props.$removable ? 'pointer' : 'default')};
|
|
4029
3726
|
`;
|
|
4030
|
-
const Content =
|
|
3727
|
+
const Content = ut.div `
|
|
4031
3728
|
display: flex;
|
|
4032
3729
|
align-items: center;
|
|
4033
3730
|
`;
|
|
4034
|
-
const Label$1 =
|
|
3731
|
+
const Label$1 = ut.div `
|
|
4035
3732
|
color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
|
|
4036
3733
|
font-size: ${FontSizes.SMALL};
|
|
4037
3734
|
font-weight: 500;
|
|
4038
3735
|
font-family: ${FontStyles.DEFAULT};
|
|
4039
3736
|
line-height: 1.2em;
|
|
4040
3737
|
`;
|
|
4041
|
-
const Remove =
|
|
3738
|
+
const Remove = ut.div `
|
|
4042
3739
|
margin-left: 10px;
|
|
4043
3740
|
display: flex;
|
|
4044
3741
|
align-items: center;
|
|
@@ -4052,7 +3749,7 @@ const Tag = (_a) => {
|
|
|
4052
3749
|
React.createElement(Icon, { color: color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff', path: mdiClose, size: '15px' }))) : null)));
|
|
4053
3750
|
};
|
|
4054
3751
|
|
|
4055
|
-
const Wrapper$4 =
|
|
3752
|
+
const Wrapper$4 = ut.div `
|
|
4056
3753
|
display: flex;
|
|
4057
3754
|
padding: 16px 30px;
|
|
4058
3755
|
align-items: center;
|
|
@@ -4060,24 +3757,24 @@ const Wrapper$4 = styled.div `
|
|
|
4060
3757
|
align-self: stretch;
|
|
4061
3758
|
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
4062
3759
|
`;
|
|
4063
|
-
const Title =
|
|
3760
|
+
const Title = ut.div `
|
|
4064
3761
|
display: flex;
|
|
4065
3762
|
align-items: center;
|
|
4066
3763
|
gap: 20px;
|
|
4067
3764
|
`;
|
|
4068
|
-
const Info =
|
|
3765
|
+
const Info = ut.div `
|
|
4069
3766
|
display: flex;
|
|
4070
3767
|
flex-direction: column;
|
|
4071
3768
|
align-items: flex-start;
|
|
4072
3769
|
gap: 4px;
|
|
4073
3770
|
flex: 1 0 0;
|
|
4074
3771
|
`;
|
|
4075
|
-
const Breadcrumbs =
|
|
3772
|
+
const Breadcrumbs = ut.div `
|
|
4076
3773
|
display: flex;
|
|
4077
3774
|
align-items: center;
|
|
4078
3775
|
gap: 4px;
|
|
4079
3776
|
`;
|
|
4080
|
-
const Actions =
|
|
3777
|
+
const Actions = ut.div `
|
|
4081
3778
|
display: flex;
|
|
4082
3779
|
align-items: center;
|
|
4083
3780
|
gap: 8px;
|
|
@@ -4102,7 +3799,7 @@ const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu, tag }) => {
|
|
|
4102
3799
|
menuItems.length ? (React.createElement(ButtonMenu, { format: format, label: label, menuItems: menuItems, small: true })) : null)) : null));
|
|
4103
3800
|
};
|
|
4104
3801
|
|
|
4105
|
-
const Wrapper$3 =
|
|
3802
|
+
const Wrapper$3 = ut.nav `
|
|
4106
3803
|
box-sizing: border-box;
|
|
4107
3804
|
display: flex;
|
|
4108
3805
|
align-items: center;
|
|
@@ -4137,7 +3834,7 @@ const Pagination = (_a) => {
|
|
|
4137
3834
|
React.createElement(Button, { disabled: is_last_page, icon: mdiChevronRight, onClick: handleNextClick, small: true })));
|
|
4138
3835
|
};
|
|
4139
3836
|
|
|
4140
|
-
const Wrapper$2 =
|
|
3837
|
+
const Wrapper$2 = ut.label `
|
|
4141
3838
|
border-radius: 4px;
|
|
4142
3839
|
padding: 4px 0px 4px 6px;
|
|
4143
3840
|
margin-left: -6px;
|
|
@@ -4153,12 +3850,12 @@ const Wrapper$2 = styled.label `
|
|
|
4153
3850
|
}
|
|
4154
3851
|
`;
|
|
4155
3852
|
Wrapper$2.defaultProps = { theme: EditableTheme };
|
|
4156
|
-
const Input =
|
|
3853
|
+
const Input = ut.input `
|
|
4157
3854
|
font-size: 20px;
|
|
4158
3855
|
margin: 0px 0px 2px 0px;
|
|
4159
3856
|
line-height: 1.1em;
|
|
4160
3857
|
`;
|
|
4161
|
-
const Label =
|
|
3858
|
+
const Label = ut.span `
|
|
4162
3859
|
font-family: ${FontStyles.DEFAULT};
|
|
4163
3860
|
font-size: ${FontSizes.DEFAULT};
|
|
4164
3861
|
font-weight: 400;
|
|
@@ -4181,7 +3878,7 @@ const RadioList = (_a) => {
|
|
|
4181
3878
|
})));
|
|
4182
3879
|
};
|
|
4183
3880
|
|
|
4184
|
-
const StyledTable =
|
|
3881
|
+
const StyledTable = ut.table `
|
|
4185
3882
|
width: 100%;
|
|
4186
3883
|
margin-top: 1px;
|
|
4187
3884
|
table-layout: ${props => props.$tableLayout || 'auto'};
|
|
@@ -4191,7 +3888,7 @@ const StyledTable = styled.table `
|
|
|
4191
3888
|
border-color: none;
|
|
4192
3889
|
box-sizing: border-box;
|
|
4193
3890
|
`;
|
|
4194
|
-
const Header =
|
|
3891
|
+
const Header = ut.th `
|
|
4195
3892
|
padding: 12px !important;
|
|
4196
3893
|
text-align: left;
|
|
4197
3894
|
font-weight: 500;
|
|
@@ -4210,7 +3907,7 @@ const Header = styled.th `
|
|
|
4210
3907
|
color: ${props => (props.$isSortable ? props.theme.PRIMARY_COLOR.Hex : Colors.BLACK.Hex)};
|
|
4211
3908
|
`;
|
|
4212
3909
|
Header.defaultProps = { theme: EditableTheme };
|
|
4213
|
-
const Row =
|
|
3910
|
+
const Row = ut.tr `
|
|
4214
3911
|
cursor: ${props => (props.$isClickable ? 'pointer' : 'default')};
|
|
4215
3912
|
transition: all 0.2s;
|
|
4216
3913
|
background-color: ${props => props.$bgColor};
|
|
@@ -4220,7 +3917,7 @@ const Row = styled.tr `
|
|
|
4220
3917
|
}
|
|
4221
3918
|
`;
|
|
4222
3919
|
Row.defaultProps = { theme: EditableTheme };
|
|
4223
|
-
const Column =
|
|
3920
|
+
const Column = ut.td `
|
|
4224
3921
|
padding: 16px 12px !important;
|
|
4225
3922
|
font-size: ${FontSizes.DEFAULT} !important;
|
|
4226
3923
|
font-weight: 400 !important;
|
|
@@ -4231,13 +3928,13 @@ const Column = styled.td `
|
|
|
4231
3928
|
box-sizing: border-box;
|
|
4232
3929
|
width: ${props => props.$width || 'auto'};
|
|
4233
3930
|
`;
|
|
4234
|
-
const IconWrapper =
|
|
3931
|
+
const IconWrapper = ut.span `
|
|
4235
3932
|
position: absolute;
|
|
4236
3933
|
top: 50%;
|
|
4237
3934
|
transform: translateY(-50%);
|
|
4238
3935
|
margin-left: 2px;
|
|
4239
3936
|
`;
|
|
4240
|
-
const StyledIcon$1 =
|
|
3937
|
+
const StyledIcon$1 = ut(Icon) `
|
|
4241
3938
|
> path {
|
|
4242
3939
|
fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
|
|
4243
3940
|
}
|
|
@@ -4260,7 +3957,7 @@ const Table = (_a) => {
|
|
|
4260
3957
|
}))) : null));
|
|
4261
3958
|
};
|
|
4262
3959
|
|
|
4263
|
-
const Wrapper$1 =
|
|
3960
|
+
const Wrapper$1 = ut.div `
|
|
4264
3961
|
display: flex;
|
|
4265
3962
|
box-sizing: border-box;
|
|
4266
3963
|
align-items: flex-end;
|
|
@@ -4271,7 +3968,7 @@ const Wrapper$1 = styled.div `
|
|
|
4271
3968
|
padding: 0;
|
|
4272
3969
|
margin: 0;
|
|
4273
3970
|
`;
|
|
4274
|
-
const Tab =
|
|
3971
|
+
const Tab = ut.div `
|
|
4275
3972
|
display: flex;
|
|
4276
3973
|
align-items: center;
|
|
4277
3974
|
gap: 6px;
|
|
@@ -4293,7 +3990,7 @@ const Tab = styled.div `
|
|
|
4293
3990
|
}
|
|
4294
3991
|
`;
|
|
4295
3992
|
Tab.defaultProps = { theme: EditableTheme };
|
|
4296
|
-
const Badge =
|
|
3993
|
+
const Badge = ut.div `
|
|
4297
3994
|
display: flex;
|
|
4298
3995
|
width: 18px;
|
|
4299
3996
|
height: 18px;
|
|
@@ -4320,7 +4017,7 @@ const Tabs = (_a) => {
|
|
|
4320
4017
|
};
|
|
4321
4018
|
Tabs.defaultProps = {};
|
|
4322
4019
|
|
|
4323
|
-
const Track =
|
|
4020
|
+
const Track = ut.div `
|
|
4324
4021
|
height: 24px;
|
|
4325
4022
|
border-radius: 12px;
|
|
4326
4023
|
background: ${props => (props.$on ? Colors.GREEN.Hex : Colors.BLACK.Hex)};
|
|
@@ -4331,7 +4028,7 @@ const Track = styled.div `
|
|
|
4331
4028
|
padding: 2px;
|
|
4332
4029
|
box-sizing: border-box;
|
|
4333
4030
|
`;
|
|
4334
|
-
const Handle =
|
|
4031
|
+
const Handle = ut.div `
|
|
4335
4032
|
width: 20px;
|
|
4336
4033
|
height: 20px;
|
|
4337
4034
|
border-radius: 10px;
|
|
@@ -4351,7 +4048,7 @@ const Toggle = (_a) => {
|
|
|
4351
4048
|
};
|
|
4352
4049
|
Toggle.defaultProps = {};
|
|
4353
4050
|
|
|
4354
|
-
const Container =
|
|
4051
|
+
const Container = ut.div `
|
|
4355
4052
|
width: 100%;
|
|
4356
4053
|
padding: 40px auto;
|
|
4357
4054
|
gap: 20px;
|
|
@@ -4360,14 +4057,14 @@ const Container = styled.div `
|
|
|
4360
4057
|
justify-items: center;
|
|
4361
4058
|
align-items: center;
|
|
4362
4059
|
`;
|
|
4363
|
-
const Wrapper =
|
|
4060
|
+
const Wrapper = ut.div `
|
|
4364
4061
|
gap: 10px;
|
|
4365
4062
|
display: flex;
|
|
4366
4063
|
flex-direction: column;
|
|
4367
4064
|
justify-items: center;
|
|
4368
4065
|
align-items: center;
|
|
4369
4066
|
`;
|
|
4370
|
-
const StyledIcon =
|
|
4067
|
+
const StyledIcon = ut.div `
|
|
4371
4068
|
display: flex;
|
|
4372
4069
|
align-items: center;
|
|
4373
4070
|
justify-content: center;
|