jrs-react 1.1.29 → 1.1.30

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/build/index.js CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var styled = require('styled-components');
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
10
+
5
11
  function getDefaultExportFromCjs (x) {
6
12
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
7
13
  }
@@ -3031,7 +3037,7 @@ const isURLSearchParams = kindOfTest('URLSearchParams');
3031
3037
  *
3032
3038
  * @returns {String} The String freed of excess whitespace
3033
3039
  */
3034
- const trim$1 = (str) => str.trim ?
3040
+ const trim = (str) => str.trim ?
3035
3041
  str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
3036
3042
 
3037
3043
  /**
@@ -3507,7 +3513,7 @@ var utils$1 = {
3507
3513
  forEach,
3508
3514
  merge,
3509
3515
  extend,
3510
- trim: trim$1,
3516
+ trim,
3511
3517
  stripBOM,
3512
3518
  inherits,
3513
3519
  toFlatObject,
@@ -6059,925 +6065,9 @@ const flexType = (type, me, payload, doElse) => {
6059
6065
  return result;
6060
6066
  };
6061
6067
 
6062
- /******************************************************************************
6063
- Copyright (c) Microsoft Corporation.
6064
-
6065
- Permission to use, copy, modify, and/or distribute this software for any
6066
- purpose with or without fee is hereby granted.
6067
-
6068
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
6069
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
6070
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
6071
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
6072
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
6073
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
6074
- PERFORMANCE OF THIS SOFTWARE.
6075
- ***************************************************************************** */
6076
-
6077
- var __assign = function() {
6078
- __assign = Object.assign || function __assign(t) {
6079
- for (var s, i = 1, n = arguments.length; i < n; i++) {
6080
- s = arguments[i];
6081
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
6082
- }
6083
- return t;
6084
- };
6085
- return __assign.apply(this, arguments);
6086
- };
6087
-
6088
- function __spreadArray(to, from, pack) {
6089
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
6090
- if (ar || !(i in from)) {
6091
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6092
- ar[i] = from[i];
6093
- }
6094
- }
6095
- return to.concat(ar || Array.prototype.slice.call(from));
6096
- }
6097
-
6098
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
6099
- var e = new Error(message);
6100
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
6101
- };
6102
-
6103
- function memoize(fn) {
6104
- var cache = Object.create(null);
6105
- return function (arg) {
6106
- if (cache[arg] === undefined) cache[arg] = fn(arg);
6107
- return cache[arg];
6108
- };
6109
- }
6110
-
6111
- 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|disableRemotePlayback|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
6112
-
6113
- var isPropValid = /* #__PURE__ */memoize(function (prop) {
6114
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
6115
- /* o */
6116
- && prop.charCodeAt(1) === 110
6117
- /* n */
6118
- && prop.charCodeAt(2) < 91;
6119
- }
6120
- /* Z+1 */
6121
- );
6122
-
6123
- var MS = '-ms-';
6124
- var MOZ = '-moz-';
6125
- var WEBKIT = '-webkit-';
6126
-
6127
- var COMMENT = 'comm';
6128
- var RULESET = 'rule';
6129
- var DECLARATION = 'decl';
6130
- var IMPORT = '@import';
6131
- var KEYFRAMES = '@keyframes';
6132
- var LAYER = '@layer';
6133
-
6134
- /**
6135
- * @param {number}
6136
- * @return {number}
6137
- */
6138
- var abs = Math.abs;
6139
-
6140
- /**
6141
- * @param {number}
6142
- * @return {string}
6143
- */
6144
- var from = String.fromCharCode;
6145
-
6146
- /**
6147
- * @param {object}
6148
- * @return {object}
6149
- */
6150
- var assign = Object.assign;
6151
-
6152
- /**
6153
- * @param {string} value
6154
- * @param {number} length
6155
- * @return {number}
6156
- */
6157
- function hash (value, length) {
6158
- return charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0
6159
- }
6160
-
6161
- /**
6162
- * @param {string} value
6163
- * @return {string}
6164
- */
6165
- function trim (value) {
6166
- return value.trim()
6167
- }
6168
-
6169
- /**
6170
- * @param {string} value
6171
- * @param {RegExp} pattern
6172
- * @return {string?}
6173
- */
6174
- function match (value, pattern) {
6175
- return (value = pattern.exec(value)) ? value[0] : value
6176
- }
6177
-
6178
- /**
6179
- * @param {string} value
6180
- * @param {(string|RegExp)} pattern
6181
- * @param {string} replacement
6182
- * @return {string}
6183
- */
6184
- function replace (value, pattern, replacement) {
6185
- return value.replace(pattern, replacement)
6186
- }
6187
-
6188
- /**
6189
- * @param {string} value
6190
- * @param {string} search
6191
- * @param {number} position
6192
- * @return {number}
6193
- */
6194
- function indexof (value, search, position) {
6195
- return value.indexOf(search, position)
6196
- }
6197
-
6198
- /**
6199
- * @param {string} value
6200
- * @param {number} index
6201
- * @return {number}
6202
- */
6203
- function charat (value, index) {
6204
- return value.charCodeAt(index) | 0
6205
- }
6206
-
6207
- /**
6208
- * @param {string} value
6209
- * @param {number} begin
6210
- * @param {number} end
6211
- * @return {string}
6212
- */
6213
- function substr (value, begin, end) {
6214
- return value.slice(begin, end)
6215
- }
6216
-
6217
- /**
6218
- * @param {string} value
6219
- * @return {number}
6220
- */
6221
- function strlen (value) {
6222
- return value.length
6223
- }
6224
-
6225
- /**
6226
- * @param {any[]} value
6227
- * @return {number}
6228
- */
6229
- function sizeof (value) {
6230
- return value.length
6231
- }
6232
-
6233
- /**
6234
- * @param {any} value
6235
- * @param {any[]} array
6236
- * @return {any}
6237
- */
6238
- function append (value, array) {
6239
- return array.push(value), value
6240
- }
6241
-
6242
- /**
6243
- * @param {string[]} array
6244
- * @param {function} callback
6245
- * @return {string}
6246
- */
6247
- function combine (array, callback) {
6248
- return array.map(callback).join('')
6249
- }
6250
-
6251
- /**
6252
- * @param {string[]} array
6253
- * @param {RegExp} pattern
6254
- * @return {string[]}
6255
- */
6256
- function filter (array, pattern) {
6257
- return array.filter(function (value) { return !match(value, pattern) })
6258
- }
6259
-
6260
- var line = 1;
6261
- var column = 1;
6262
- var length = 0;
6263
- var position = 0;
6264
- var character = 0;
6265
- var characters = '';
6266
-
6267
- /**
6268
- * @param {string} value
6269
- * @param {object | null} root
6270
- * @param {object | null} parent
6271
- * @param {string} type
6272
- * @param {string[] | string} props
6273
- * @param {object[] | string} children
6274
- * @param {object[]} siblings
6275
- * @param {number} length
6276
- */
6277
- function node (value, root, parent, type, props, children, length, siblings) {
6278
- return {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: '', siblings: siblings}
6279
- }
6280
-
6281
- /**
6282
- * @param {object} root
6283
- * @param {object} props
6284
- * @return {object}
6285
- */
6286
- function copy (root, props) {
6287
- return assign(node('', null, null, '', null, null, 0, root.siblings), root, {length: -root.length}, props)
6288
- }
6289
-
6290
- /**
6291
- * @param {object} root
6292
- */
6293
- function lift (root) {
6294
- while (root.root)
6295
- root = copy(root.root, {children: [root]});
6296
-
6297
- append(root, root.siblings);
6298
- }
6299
-
6300
- /**
6301
- * @return {number}
6302
- */
6303
- function char () {
6304
- return character
6305
- }
6306
-
6307
- /**
6308
- * @return {number}
6309
- */
6310
- function prev () {
6311
- character = position > 0 ? charat(characters, --position) : 0;
6312
-
6313
- if (column--, character === 10)
6314
- column = 1, line--;
6315
-
6316
- return character
6317
- }
6318
-
6319
- /**
6320
- * @return {number}
6321
- */
6322
- function next () {
6323
- character = position < length ? charat(characters, position++) : 0;
6324
-
6325
- if (column++, character === 10)
6326
- column = 1, line++;
6327
-
6328
- return character
6329
- }
6330
-
6331
- /**
6332
- * @return {number}
6333
- */
6334
- function peek () {
6335
- return charat(characters, position)
6336
- }
6337
-
6338
- /**
6339
- * @return {number}
6340
- */
6341
- function caret () {
6342
- return position
6343
- }
6344
-
6345
- /**
6346
- * @param {number} begin
6347
- * @param {number} end
6348
- * @return {string}
6349
- */
6350
- function slice (begin, end) {
6351
- return substr(characters, begin, end)
6352
- }
6353
-
6354
- /**
6355
- * @param {number} type
6356
- * @return {number}
6357
- */
6358
- function token (type) {
6359
- switch (type) {
6360
- // \0 \t \n \r \s whitespace token
6361
- case 0: case 9: case 10: case 13: case 32:
6362
- return 5
6363
- // ! + , / > @ ~ isolate token
6364
- case 33: case 43: case 44: case 47: case 62: case 64: case 126:
6365
- // ; { } breakpoint token
6366
- case 59: case 123: case 125:
6367
- return 4
6368
- // : accompanied token
6369
- case 58:
6370
- return 3
6371
- // " ' ( [ opening delimit token
6372
- case 34: case 39: case 40: case 91:
6373
- return 2
6374
- // ) ] closing delimit token
6375
- case 41: case 93:
6376
- return 1
6377
- }
6378
-
6379
- return 0
6380
- }
6381
-
6382
- /**
6383
- * @param {string} value
6384
- * @return {any[]}
6385
- */
6386
- function alloc (value) {
6387
- return line = column = 1, length = strlen(characters = value), position = 0, []
6388
- }
6389
-
6390
- /**
6391
- * @param {any} value
6392
- * @return {any}
6393
- */
6394
- function dealloc (value) {
6395
- return characters = '', value
6396
- }
6397
-
6398
- /**
6399
- * @param {number} type
6400
- * @return {string}
6401
- */
6402
- function delimit (type) {
6403
- return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
6404
- }
6405
-
6406
- /**
6407
- * @param {number} type
6408
- * @return {string}
6409
- */
6410
- function whitespace (type) {
6411
- while (character = peek())
6412
- if (character < 33)
6413
- next();
6414
- else
6415
- break
6416
-
6417
- return token(type) > 2 || token(character) > 3 ? '' : ' '
6418
- }
6419
-
6420
- /**
6421
- * @param {number} index
6422
- * @param {number} count
6423
- * @return {string}
6424
- */
6425
- function escaping (index, count) {
6426
- while (--count && next())
6427
- // not 0-9 A-F a-f
6428
- if (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))
6429
- break
6430
-
6431
- return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))
6432
- }
6433
-
6434
- /**
6435
- * @param {number} type
6436
- * @return {number}
6437
- */
6438
- function delimiter (type) {
6439
- while (next())
6440
- switch (character) {
6441
- // ] ) " '
6442
- case type:
6443
- return position
6444
- // " '
6445
- case 34: case 39:
6446
- if (type !== 34 && type !== 39)
6447
- delimiter(character);
6448
- break
6449
- // (
6450
- case 40:
6451
- if (type === 41)
6452
- delimiter(type);
6453
- break
6454
- // \
6455
- case 92:
6456
- next();
6457
- break
6458
- }
6459
-
6460
- return position
6461
- }
6462
-
6463
- /**
6464
- * @param {number} type
6465
- * @param {number} index
6466
- * @return {number}
6467
- */
6468
- function commenter (type, index) {
6469
- while (next())
6470
- // //
6471
- if (type + character === 47 + 10)
6472
- break
6473
- // /*
6474
- else if (type + character === 42 + 42 && peek() === 47)
6475
- break
6476
-
6477
- return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())
6478
- }
6479
-
6480
- /**
6481
- * @param {number} index
6482
- * @return {string}
6483
- */
6484
- function identifier (index) {
6485
- while (!token(peek()))
6486
- next();
6487
-
6488
- return slice(index, position)
6489
- }
6490
-
6491
- /**
6492
- * @param {string} value
6493
- * @return {object[]}
6494
- */
6495
- function compile (value) {
6496
- return dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))
6497
- }
6498
-
6499
- /**
6500
- * @param {string} value
6501
- * @param {object} root
6502
- * @param {object?} parent
6503
- * @param {string[]} rule
6504
- * @param {string[]} rules
6505
- * @param {string[]} rulesets
6506
- * @param {number[]} pseudo
6507
- * @param {number[]} points
6508
- * @param {string[]} declarations
6509
- * @return {object}
6510
- */
6511
- function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
6512
- var index = 0;
6513
- var offset = 0;
6514
- var length = pseudo;
6515
- var atrule = 0;
6516
- var property = 0;
6517
- var previous = 0;
6518
- var variable = 1;
6519
- var scanning = 1;
6520
- var ampersand = 1;
6521
- var character = 0;
6522
- var type = '';
6523
- var props = rules;
6524
- var children = rulesets;
6525
- var reference = rule;
6526
- var characters = type;
6527
-
6528
- while (scanning)
6529
- switch (previous = character, character = next()) {
6530
- // (
6531
- case 40:
6532
- if (previous != 108 && charat(characters, length - 1) == 58) {
6533
- if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f', abs(index ? points[index - 1] : 0)) != -1)
6534
- ampersand = -1;
6535
- break
6536
- }
6537
- // " ' [
6538
- case 34: case 39: case 91:
6539
- characters += delimit(character);
6540
- break
6541
- // \t \n \r \s
6542
- case 9: case 10: case 13: case 32:
6543
- characters += whitespace(previous);
6544
- break
6545
- // \
6546
- case 92:
6547
- characters += escaping(caret() - 1, 7);
6548
- continue
6549
- // /
6550
- case 47:
6551
- switch (peek()) {
6552
- case 42: case 47:
6553
- append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
6554
- break
6555
- default:
6556
- characters += '/';
6557
- }
6558
- break
6559
- // {
6560
- case 123 * variable:
6561
- points[index++] = strlen(characters) * ampersand;
6562
- // } ; \0
6563
- case 125 * variable: case 59: case 0:
6564
- switch (character) {
6565
- // \0 }
6566
- case 0: case 125: scanning = 0;
6567
- // ;
6568
- case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '');
6569
- if (property > 0 && (strlen(characters) - length))
6570
- append(property > 32 ? declaration(characters + ';', rule, parent, length - 1, declarations) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations);
6571
- break
6572
- // @ ;
6573
- case 59: characters += ';';
6574
- // { rule/at-rule
6575
- default:
6576
- append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets);
6577
-
6578
- if (character === 123)
6579
- if (offset === 0)
6580
- parse(characters, root, reference, reference, props, rulesets, length, points, children);
6581
- else
6582
- switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
6583
- // d l m s
6584
- case 100: case 108: case 109: case 115:
6585
- 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);
6586
- break
6587
- default:
6588
- parse(characters, reference, reference, reference, [''], children, 0, points, children);
6589
- }
6590
- }
6591
-
6592
- index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
6593
- break
6594
- // :
6595
- case 58:
6596
- length = 1 + strlen(characters), property = previous;
6597
- default:
6598
- if (variable < 1)
6599
- if (character == 123)
6600
- --variable;
6601
- else if (character == 125 && variable++ == 0 && prev() == 125)
6602
- continue
6603
-
6604
- switch (characters += from(character), character * variable) {
6605
- // &
6606
- case 38:
6607
- ampersand = offset > 0 ? 1 : (characters += '\f', -1);
6608
- break
6609
- // ,
6610
- case 44:
6611
- points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1;
6612
- break
6613
- // @
6614
- case 64:
6615
- // -
6616
- if (peek() === 45)
6617
- characters += delimit(next());
6618
-
6619
- atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
6620
- break
6621
- // -
6622
- case 45:
6623
- if (previous === 45 && strlen(characters) == 2)
6624
- variable = 0;
6625
- }
6626
- }
6627
-
6628
- return rulesets
6629
- }
6630
-
6631
- /**
6632
- * @param {string} value
6633
- * @param {object} root
6634
- * @param {object?} parent
6635
- * @param {number} index
6636
- * @param {number} offset
6637
- * @param {string[]} rules
6638
- * @param {number[]} points
6639
- * @param {string} type
6640
- * @param {string[]} props
6641
- * @param {string[]} children
6642
- * @param {number} length
6643
- * @param {object[]} siblings
6644
- * @return {object}
6645
- */
6646
- function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {
6647
- var post = offset - 1;
6648
- var rule = offset === 0 ? rules : [''];
6649
- var size = sizeof(rule);
6650
-
6651
- for (var i = 0, j = 0, k = 0; i < index; ++i)
6652
- for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
6653
- if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x])))
6654
- props[k++] = z;
6655
-
6656
- return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length, siblings)
6657
- }
6658
-
6659
- /**
6660
- * @param {number} value
6661
- * @param {object} root
6662
- * @param {object?} parent
6663
- * @param {object[]} siblings
6664
- * @return {object}
6665
- */
6666
- function comment (value, root, parent, siblings) {
6667
- return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings)
6668
- }
6669
-
6670
- /**
6671
- * @param {string} value
6672
- * @param {object} root
6673
- * @param {object?} parent
6674
- * @param {number} length
6675
- * @param {object[]} siblings
6676
- * @return {object}
6677
- */
6678
- function declaration (value, root, parent, length, siblings) {
6679
- return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length, siblings)
6680
- }
6681
-
6682
- /**
6683
- * @param {string} value
6684
- * @param {number} length
6685
- * @param {object[]} children
6686
- * @return {string}
6687
- */
6688
- function prefix (value, length, children) {
6689
- switch (hash(value, length)) {
6690
- // color-adjust
6691
- case 5103:
6692
- return WEBKIT + 'print-' + value + value
6693
- // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
6694
- case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921:
6695
- // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
6696
- case 5572: case 6356: case 5844: case 3191: case 6645: case 3005:
6697
- // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
6698
- case 6391: case 5879: case 5623: case 6135: case 4599: case 4855:
6699
- // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
6700
- case 4215: case 6389: case 5109: case 5365: case 5621: case 3829:
6701
- return WEBKIT + value + value
6702
- // tab-size
6703
- case 4789:
6704
- return MOZ + value + value
6705
- // appearance, user-select, transform, hyphens, text-size-adjust
6706
- case 5349: case 4246: case 4810: case 6968: case 2756:
6707
- return WEBKIT + value + MOZ + value + MS + value + value
6708
- // writing-mode
6709
- case 5936:
6710
- switch (charat(value, length + 11)) {
6711
- // vertical-l(r)
6712
- case 114:
6713
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value
6714
- // vertical-r(l)
6715
- case 108:
6716
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value
6717
- // horizontal(-)tb
6718
- case 45:
6719
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value
6720
- // default: fallthrough to below
6721
- }
6722
- // flex, flex-direction, scroll-snap-type, writing-mode
6723
- case 6828: case 4268: case 2903:
6724
- return WEBKIT + value + MS + value + value
6725
- // order
6726
- case 6165:
6727
- return WEBKIT + value + MS + 'flex-' + value + value
6728
- // align-items
6729
- case 5187:
6730
- return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value
6731
- // align-self
6732
- case 5443:
6733
- return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/g, '') + (!match(value, /flex-|baseline/) ? MS + 'grid-row-' + replace(value, /flex-|-self/g, '') : '') + value
6734
- // align-content
6735
- case 4675:
6736
- return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/g, '') + value
6737
- // flex-shrink
6738
- case 5548:
6739
- return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value
6740
- // flex-basis
6741
- case 5292:
6742
- return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value
6743
- // flex-grow
6744
- case 6060:
6745
- return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value
6746
- // transition
6747
- case 4554:
6748
- return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value
6749
- // cursor
6750
- case 6187:
6751
- return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value
6752
- // background, background-image
6753
- case 5495: case 3959:
6754
- return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1')
6755
- // justify-content
6756
- case 4968:
6757
- return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value
6758
- // justify-self
6759
- case 4200:
6760
- if (!match(value, /flex-|baseline/)) return MS + 'grid-column-align' + substr(value, length) + value
6761
- break
6762
- // grid-template-(columns|rows)
6763
- case 2592: case 3360:
6764
- return MS + replace(value, 'template-', '') + value
6765
- // grid-(row|column)-start
6766
- case 4384: case 3616:
6767
- if (children && children.some(function (element, index) { return length = index, match(element.props, /grid-\w+-end/) })) {
6768
- 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+/)) + ';')
6769
- }
6770
- return MS + replace(value, '-start', '') + value
6771
- // grid-(row|column)-end
6772
- case 4896: case 4128:
6773
- return (children && children.some(function (element) { return match(element.props, /grid-\w+-start/) })) ? value : MS + replace(replace(value, '-end', '-span'), 'span ', '') + value
6774
- // (margin|padding)-inline-(start|end)
6775
- case 4095: case 3583: case 4068: case 2532:
6776
- return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value
6777
- // (min|max)?(width|height|inline-size|block-size)
6778
- case 8116: case 7059: case 5753: case 5535:
6779
- case 5445: case 5701: case 4933: case 4677:
6780
- case 5533: case 5789: case 5021: case 4765:
6781
- // stretch, max-content, min-content, fill-available
6782
- if (strlen(value) - 1 - length > 6)
6783
- switch (charat(value, length + 1)) {
6784
- // (m)ax-content, (m)in-content
6785
- case 109:
6786
- // -
6787
- if (charat(value, length + 4) !== 45)
6788
- break
6789
- // (f)ill-available, (f)it-content
6790
- case 102:
6791
- return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value
6792
- // (s)tretch
6793
- case 115:
6794
- return ~indexof(value, 'stretch', 0) ? prefix(replace(value, 'stretch', 'fill-available'), length, children) + value : value
6795
- }
6796
- break
6797
- // grid-(column|row)
6798
- case 5152: case 5920:
6799
- return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (_, a, b, c, d, e, f) { return (MS + a + ':' + b + f) + (c ? (MS + a + '-span:' + (d ? e : +e - +b)) + f : '') + value })
6800
- // position: sticky
6801
- case 4949:
6802
- // stick(y)?
6803
- if (charat(value, length + 6) === 121)
6804
- return replace(value, ':', ':' + WEBKIT) + value
6805
- break
6806
- // display: (flex|inline-flex|grid|inline-grid)
6807
- case 6444:
6808
- switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
6809
- // (inline-)?fle(x)
6810
- case 120:
6811
- return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value
6812
- // (inline-)?gri(d)
6813
- case 100:
6814
- return replace(value, ':', ':' + MS) + value
6815
- }
6816
- break
6817
- // scroll-margin, scroll-margin-(top|right|bottom|left)
6818
- case 5719: case 2647: case 2135: case 3927: case 2391:
6819
- return replace(value, 'scroll-', 'scroll-snap-') + value
6820
- }
6821
-
6822
- return value
6823
- }
6824
-
6825
- /**
6826
- * @param {object[]} children
6827
- * @param {function} callback
6828
- * @return {string}
6829
- */
6830
- function serialize (children, callback) {
6831
- var output = '';
6832
-
6833
- for (var i = 0; i < children.length; i++)
6834
- output += callback(children[i], i, children, callback) || '';
6835
-
6836
- return output
6837
- }
6838
-
6839
- /**
6840
- * @param {object} element
6841
- * @param {number} index
6842
- * @param {object[]} children
6843
- * @param {function} callback
6844
- * @return {string}
6845
- */
6846
- function stringify (element, index, children, callback) {
6847
- switch (element.type) {
6848
- case LAYER: if (element.children.length) break
6849
- case IMPORT: case DECLARATION: return element.return = element.return || element.value
6850
- case COMMENT: return ''
6851
- case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
6852
- case RULESET: if (!strlen(element.value = element.props.join(','))) return ''
6853
- }
6854
-
6855
- return strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
6856
- }
6857
-
6858
- /**
6859
- * @param {function[]} collection
6860
- * @return {function}
6861
- */
6862
- function middleware (collection) {
6863
- var length = sizeof(collection);
6864
-
6865
- return function (element, index, children, callback) {
6866
- var output = '';
6867
-
6868
- for (var i = 0; i < length; i++)
6869
- output += collection[i](element, index, children, callback) || '';
6870
-
6871
- return output
6872
- }
6873
- }
6874
-
6875
- /**
6876
- * @param {function} callback
6877
- * @return {function}
6878
- */
6879
- function rulesheet (callback) {
6880
- return function (element) {
6881
- if (!element.root)
6882
- if (element = element.return)
6883
- callback(element);
6884
- }
6885
- }
6886
-
6887
- /**
6888
- * @param {object} element
6889
- * @param {number} index
6890
- * @param {object[]} children
6891
- * @param {function} callback
6892
- */
6893
- function prefixer (element, index, children, callback) {
6894
- if (element.length > -1)
6895
- if (!element.return)
6896
- switch (element.type) {
6897
- case DECLARATION: element.return = prefix(element.value, element.length, children);
6898
- return
6899
- case KEYFRAMES:
6900
- return serialize([copy(element, {value: replace(element.value, '@', '@' + WEBKIT)})], callback)
6901
- case RULESET:
6902
- if (element.length)
6903
- return combine(children = element.props, function (value) {
6904
- switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
6905
- // :read-(only|write)
6906
- case ':read-only': case ':read-write':
6907
- lift(copy(element, {props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]}));
6908
- lift(copy(element, {props: [value]}));
6909
- assign(element, {props: filter(children, callback)});
6910
- break
6911
- // :placeholder
6912
- case '::placeholder':
6913
- lift(copy(element, {props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]}));
6914
- lift(copy(element, {props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]}));
6915
- lift(copy(element, {props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]}));
6916
- lift(copy(element, {props: [value]}));
6917
- assign(element, {props: filter(children, callback)});
6918
- break
6919
- }
6920
-
6921
- return ''
6922
- })
6923
- }
6924
- }
6925
-
6926
- var unitlessKeys = {
6927
- animationIterationCount: 1,
6928
- aspectRatio: 1,
6929
- borderImageOutset: 1,
6930
- borderImageSlice: 1,
6931
- borderImageWidth: 1,
6932
- boxFlex: 1,
6933
- boxFlexGroup: 1,
6934
- boxOrdinalGroup: 1,
6935
- columnCount: 1,
6936
- columns: 1,
6937
- flex: 1,
6938
- flexGrow: 1,
6939
- flexPositive: 1,
6940
- flexShrink: 1,
6941
- flexNegative: 1,
6942
- flexOrder: 1,
6943
- gridRow: 1,
6944
- gridRowEnd: 1,
6945
- gridRowSpan: 1,
6946
- gridRowStart: 1,
6947
- gridColumn: 1,
6948
- gridColumnEnd: 1,
6949
- gridColumnSpan: 1,
6950
- gridColumnStart: 1,
6951
- msGridRow: 1,
6952
- msGridRowSpan: 1,
6953
- msGridColumn: 1,
6954
- msGridColumnSpan: 1,
6955
- fontWeight: 1,
6956
- lineHeight: 1,
6957
- opacity: 1,
6958
- order: 1,
6959
- orphans: 1,
6960
- tabSize: 1,
6961
- widows: 1,
6962
- zIndex: 1,
6963
- zoom: 1,
6964
- WebkitLineClamp: 1,
6965
- // SVG-related properties
6966
- fillOpacity: 1,
6967
- floodOpacity: 1,
6968
- stopOpacity: 1,
6969
- strokeDasharray: 1,
6970
- strokeDashoffset: 1,
6971
- strokeMiterlimit: 1,
6972
- strokeOpacity: 1,
6973
- strokeWidth: 1
6974
- };
6975
-
6976
- var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.1.15",g="/*!sc*/\n",S="undefined"!=typeof window&&"HTMLElement"in window,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),E=/invalid hook call/i,N=new Set,P=function(t,n){if("production"!==process.env.NODE_ENV){var o=n?' with the id of "'.concat(n,'"'):"",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.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];E.test(t)?(a=!1,N.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},reactExports.useRef(),a&&!N.has(s)&&(console.warn(s),N.add(s));}catch(e){E.test(e.message)&&N.delete(s);}finally{console.error=i;}}},_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}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"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j(t%k)+n;return (j(t%k)+n).replace(T,"$1-$2")}var V,F=5381,M=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},z=function(e){return M(F,e)};function $(e){return x(z(e)>>>0)}function B(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function L(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var G="function"==typeof Symbol&&Symbol.for,Y=G?Symbol.for("react.memo"):60115,W=G?Symbol.for("react.forward_ref"):60112,q={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J=((V={})[W]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[Y]=U,V);function X(e){return ("type"in(t=e)&&t.type.$$typeof)===Y?U:"$$typeof"in e?J[e.$$typeof]:q;var t;}var Z=Object.defineProperty,K=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function oe(e,t,n){if("string"!=typeof t){if(ne){var o=te(t);o&&o!==ne&&oe(e,o,n);}var r=K(t);Q&&(r=r.concat(Q(t)));for(var s=X(e),i=X(t),a=0;a<r.length;++a){var c=r[a];if(!(c in H||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z(e,c,l);}catch(e){}}}}return e}function re(e){return "function"==typeof e}function se(e){return "object"==typeof e&&"styledComponentId"in e}function ie(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ce(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le(e,t,n){if(void 0===n&&(n=!1),!n&&!ce(e)&&!Array.isArray(e))return t;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]);return e}function ue(e,t){Object.defineProperty(e,"toString",{value:t});}var pe="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function he(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];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())}var fe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw he(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}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++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;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);return t},e}(),me=1<<30,ye=new Map,ve=new Map,ge=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve.has(ge);)ge++;var t=ge++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>me))throw he(16,"".concat(t));return ye.set(e,t),ve.set(t,e),t},we=function(e,t){ge=t+1,ye.set(e,t),ve.set(t,e);},be="style[".concat(f,"][").concat(y,'="').concat(v,'"]'),Ee=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},Pe=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(Ee);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(we(u,l),Ne(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}},_e=function(e){for(var t=document.querySelectorAll(be),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(f)!==m&&(Pe(e,r),r.parentNode&&r.parentNode.removeChild(r));}};function Ce(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ie=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,m),o.setAttribute(y,v);var i=Ce();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ae=function(){function e(e){this.element=Ie(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw he(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Oe=function(){function e(e){this.element=Ie(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),De=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Re=S,Te={isServer:!S,useCSSOMInjection:!w},ke=function(){function e(e,n,o){void 0===e&&(e=C),void 0===n&&(n={});var r=this;this.options=__assign(__assign({},Te),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S&&Re&&(Re=!1,_e(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ve.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g);},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return Se(e)},e.prototype.rehydrate=function(){!this.server&&S&&_e(this);},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(__assign(__assign({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new De(n):t?new Ae(n):new Oe(n)}(this.options),new fe(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),je=/&/g,xe=/^\s*\/\/.*$/gm;function Ve(e,t){return e.map(function(e){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){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ve(e.children,t)),e})}function Fe(e){var t,n,o,r=void 0===e?C:e,s=r.options,i=void 0===s?C:s,a=r.plugins,c=void 0===a?_:a,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(je,n).replace(o,l));}),i.prefix&&u.push(prefixer),u.push(stringify);var p=function(e,r,s,a){void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(xe,""),l=compile(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=Ve(l,i.namespace));var p=[];return serialize(l,middleware(u.concat(rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||he(15),M(e,t.name)},F).toString():"",p}var Me=new ke,ze=Fe(),$e=React.createContext({shouldForwardProp:void 0,styleSheet:Me,stylis:ze});$e.Consumer;React.createContext(void 0);function Ge(){return reactExports.useContext($e)}var We=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ze);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue(this,function(){throw he(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=ze),this.name+e.hash},e}(),qe=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;qe(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||!1===e||""===e},Je=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ue(i)&&(Array.isArray(i)&&i.isCss||re(i)?r.push("".concat(He(s),":"),i,";"):ce(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],Je(i),!1),["}"],!1)):r.push("".concat(He(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")),";")));}return r};function Xe(e,t,n,o){if(Ue(e))return [];if(se(e))return [".".concat(e.styledComponentId)];if(re(e)){if(!re(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return "production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof We||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.")),Xe(r,t,n,o)}var s;return e instanceof We?n?(e.inject(n,o),[e.getName(o)]):[e]:ce(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(_,e.map(function(e){return Xe(e,t,n,o)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re(n)&&!se(n))return !1}return !0}var Ke=z(v),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=M(Ke,t),this.baseStyle=n,ke.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=ie(o,this.staticRulesId);else {var r=ae(Xe(this.rules,e,t,n)),s=x(M(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=ie(o,s),this.staticRulesId=s;}else {for(var a=M(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=M(a,u));else if(u){var p=ae(Xe(u,e,t,n));a=M(a,p+l),c+=p;}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=ie(o,d);}}return o},e}(),et=React.createContext(void 0);et.Consumer;var rt={},st=new Set;function it(e,r,s){var i=se(e),a=e,c=!L(e),p=r.attrs,d=void 0===p?_:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R(e);rt[n]=(rt[n]||0)+1;var o="".concat(n,"-").concat($(v+n+rt[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return L(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):m,g=r.displayName&&r.componentId?"".concat(R(r.displayName),"-").concat(r.componentId):r.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var E=r.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Qe(s,g,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=React.useContext(et),m=Ge(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&reactExports.useDebugValue(d);var v=I(r,f,c)||C,g=function(e,n,o){for(var r,s=__assign(__assign({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=re(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?ie(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie(s.className,n.className)),s}(i,r,v),S=g.as||h,w={};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)||st.has(b)||!A.has(S)||(st.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.)')))));var E=function(e,t){var n=Ge(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&reactExports.useDebugValue(o),o}(a,g);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(E);var N=ie(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[L(S)&&!A.has(S)?"class":"className"]=N,s&&(w.ref=s),reactExports.createElement(S,w)}(D,e,r)}O.displayName=y;var D=React.forwardRef(O);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",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)le(e,r[o],!0);return e}({},a.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(P(y,g),D.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";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={};}}}(y,g)),ue(D,function(){return ".".concat(D.styledComponentId)}),c&&oe(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function at(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var ct=function(e){return Object.assign(e,{isCss:!0})};function lt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(re(t)||ce(t))return ct(Xe(at(_,__spreadArray([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Xe(r):ct(Xe(at(r,n)))}function ut(n,o,r){if(void 0===r&&(r=C),!o)throw he(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,lt.apply(void 0,__spreadArray([t],s,!1)))};return s.attrs=function(e){return ut(n,o,__assign(__assign({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ut(n,o,__assign(__assign({},r),e))},s}var pt=function(e){return ut(it,e)},dt=pt;A.forEach(function(e){dt[e]=pt(e);});"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");var St="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[St]||(window[St]=0),1===window[St]&&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[St]+=1);
6977
-
6978
6068
  // import { IconSpinner } from '../assets/image';
6979
6069
 
6980
- dt.div`
6070
+ styled__default["default"].div`
6981
6071
  user-select: none;
6982
6072
  cursor: wait;
6983
6073
  display: none;
@@ -7110,7 +6200,7 @@ const axiosSubmit = axios$1.create({
7110
6200
  ,
7111
6201
  maxContentLength: 104857600 //100mb
7112
6202
  });
7113
- const StyledCover = dt.div`
6203
+ const StyledCover = styled__default["default"].div`
7114
6204
  border:2px solid red;
7115
6205
  `;
7116
6206
  const Cover = ({
@@ -7377,7 +6467,106 @@ class JRSubmit extends React.Component {
7377
6467
  }
7378
6468
  }
7379
6469
 
7380
- const StyledJRFrame = dt.div`
6470
+ const FreeType$1 = ({
6471
+ tag: Tag,
6472
+ config,
6473
+ me,
6474
+ className
6475
+ }) => {
6476
+ if (typeof config === 'function') {
6477
+ let style;
6478
+ const setStyle = function (_style) {
6479
+ style = _style;
6480
+ };
6481
+ const content = config.bind(me)({
6482
+ setStyle
6483
+ });
6484
+ return /*#__PURE__*/React.createElement(Tag, {
6485
+ className: className,
6486
+ style: style
6487
+ }, content);
6488
+ }
6489
+ };
6490
+ const StyledJRFrame$1 = styled__default["default"].div`
6491
+ display:flex;
6492
+ flex:1;
6493
+ overflow:hidden;
6494
+
6495
+ > *{
6496
+ Xborder:1px solid gray;
6497
+ }
6498
+ >main{
6499
+ display:flex;
6500
+ flex:1;
6501
+ overflow:overlay;
6502
+ flex-direction: column;
6503
+ > *{
6504
+ XXborder:1px solid gray;
6505
+ min-height:30px;
6506
+ }
6507
+
6508
+ >header{
6509
+ XXborder:1px solid red;
6510
+ XXoverflow: overlay;
6511
+ }
6512
+ >main{
6513
+ display:flex;
6514
+ flex:1;
6515
+ overflow:hidden;
6516
+ }
6517
+ >footer{
6518
+ XXborder:1px solid blue;
6519
+ overflow: overlay;
6520
+ }
6521
+
6522
+ }
6523
+
6524
+ `;
6525
+ class JRFrame extends JRSubmit {
6526
+ renderer() {
6527
+ return /*#__PURE__*/React.createElement(StyledJRFrame$1, {
6528
+ style: this.props.style,
6529
+ className: `${this.props.className} jr-frame`
6530
+ }, /*#__PURE__*/React.createElement(FreeType$1, {
6531
+ tag: "div",
6532
+ config: this.props.start,
6533
+ me: this,
6534
+ className: 'start'
6535
+ }), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType$1, {
6536
+ tag: "header",
6537
+ config: this.props.top,
6538
+ me: this
6539
+ }), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType$1, {
6540
+ tag: "div",
6541
+ config: this.props.left,
6542
+ me: this,
6543
+ className: 'left'
6544
+ }), this.renderMe(), /*#__PURE__*/React.createElement(FreeType$1, {
6545
+ tag: "div",
6546
+ config: this.props.right,
6547
+ me: this,
6548
+ className: 'right'
6549
+ })), /*#__PURE__*/React.createElement(FreeType$1, {
6550
+ tag: "footer",
6551
+ config: this.props.bottom,
6552
+ me: this
6553
+ })), /*#__PURE__*/React.createElement(FreeType$1, {
6554
+ tag: "div",
6555
+ config: this.props.end,
6556
+ me: this,
6557
+ className: 'end'
6558
+ }));
6559
+ }
6560
+ renderMe() {
6561
+ return /*#__PURE__*/React.createElement("div", {
6562
+ style: {
6563
+ flex: 1
6564
+ }
6565
+ }, "Render me");
6566
+ }
6567
+ }
6568
+
6569
+ const StyledJRFrame = styled__default["default"].div`
7381
6570
  display:flex;
7382
6571
  flex:1;
7383
6572
  overflow:hidden;
@@ -7476,5 +6665,6 @@ class JRTestReact extends JRSubmit {
7476
6665
  }
7477
6666
  }
7478
6667
 
6668
+ exports.JRFrame = JRFrame;
7479
6669
  exports.JRSubmit = JRSubmit;
7480
6670
  exports.JRTestReact = JRTestReact;