@veripass/react-sdk 1.0.2 → 1.0.3

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.
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import React__default, { useState, createContext, useMemo, useContext, forwardRef, Children, isValidElement, cloneElement, useEffect } from 'react';
2
+ import React__default, { useState, createContext, useMemo, useContext, useRef, useDebugValue, createElement, forwardRef, Children, isValidElement, cloneElement, useEffect } from 'react';
3
3
  import { jsx, jsxs } from 'react/jsx-runtime';
4
4
 
5
5
  function _arrayLikeToArray(r, a) {
@@ -56,6 +56,14 @@ function _createClass(e, r, t) {
56
56
  writable: !1
57
57
  }), e;
58
58
  }
59
+ function _defineProperty(e, r, t) {
60
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
61
+ value: t,
62
+ enumerable: !0,
63
+ configurable: !0,
64
+ writable: !0
65
+ }) : e[r] = t, e;
66
+ }
59
67
  function _get() {
60
68
  return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
61
69
  var p = _superPropBase(e, t);
@@ -120,6 +128,27 @@ function _iterableToArrayLimit(r, l) {
120
128
  function _nonIterableRest() {
121
129
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
122
130
  }
131
+ function ownKeys(e, r) {
132
+ var t = Object.keys(e);
133
+ if (Object.getOwnPropertySymbols) {
134
+ var o = Object.getOwnPropertySymbols(e);
135
+ r && (o = o.filter(function (r) {
136
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
137
+ })), t.push.apply(t, o);
138
+ }
139
+ return t;
140
+ }
141
+ function _objectSpread2(e) {
142
+ for (var r = 1; r < arguments.length; r++) {
143
+ var t = null != arguments[r] ? arguments[r] : {};
144
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
145
+ _defineProperty(e, r, t[r]);
146
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
147
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
148
+ });
149
+ }
150
+ return e;
151
+ }
123
152
  function _possibleConstructorReturn(t, e) {
124
153
  if (e && ("object" == typeof e || "function" == typeof e)) return e;
125
154
  if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
@@ -438,6 +467,13 @@ function _superPropBase(t, o) {
438
467
  for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
439
468
  return t;
440
469
  }
470
+ function _taggedTemplateLiteral(e, t) {
471
+ return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
472
+ raw: {
473
+ value: Object.freeze(t)
474
+ }
475
+ }));
476
+ }
441
477
  function _toPrimitive(t, r) {
442
478
  if ("object" != typeof t || !t) return t;
443
479
  var e = t[Symbol.toPrimitive];
@@ -37484,6 +37520,918 @@ function requireClient () {
37484
37520
  var sweetalert2ReactContent_umdExports = sweetalert2ReactContent_umd.exports;
37485
37521
  var withReactContent = /*@__PURE__*/getDefaultExportFromCjs(sweetalert2ReactContent_umdExports);
37486
37522
 
37523
+ /******************************************************************************
37524
+ Copyright (c) Microsoft Corporation.
37525
+
37526
+ Permission to use, copy, modify, and/or distribute this software for any
37527
+ purpose with or without fee is hereby granted.
37528
+
37529
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
37530
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
37531
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
37532
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
37533
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
37534
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
37535
+ PERFORMANCE OF THIS SOFTWARE.
37536
+ ***************************************************************************** */
37537
+ /* global Reflect, Promise */
37538
+
37539
+
37540
+ var __assign = function() {
37541
+ __assign = Object.assign || function __assign(t) {
37542
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
37543
+ s = arguments[i];
37544
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
37545
+ }
37546
+ return t;
37547
+ };
37548
+ return __assign.apply(this, arguments);
37549
+ };
37550
+
37551
+ function __spreadArray(to, from, pack) {
37552
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
37553
+ if (ar || !(i in from)) {
37554
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
37555
+ ar[i] = from[i];
37556
+ }
37557
+ }
37558
+ return to.concat(ar || Array.prototype.slice.call(from));
37559
+ }
37560
+
37561
+ function memoize$3(fn) {
37562
+ var cache = Object.create(null);
37563
+ return function (arg) {
37564
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
37565
+ return cache[arg];
37566
+ };
37567
+ }
37568
+
37569
+ var reactPropsRegex$1 = /^((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
37570
+
37571
+ var isPropValid$1 = /* #__PURE__ */memoize$3(function (prop) {
37572
+ return reactPropsRegex$1.test(prop) || prop.charCodeAt(0) === 111
37573
+ /* o */
37574
+ && prop.charCodeAt(1) === 110
37575
+ /* n */
37576
+ && prop.charCodeAt(2) < 91;
37577
+ }
37578
+ /* Z+1 */
37579
+ );
37580
+
37581
+ var MS$1 = '-ms-';
37582
+ var MOZ$1 = '-moz-';
37583
+ var WEBKIT$1 = '-webkit-';
37584
+
37585
+ var COMMENT$1 = 'comm';
37586
+ var RULESET$1 = 'rule';
37587
+ var DECLARATION$1 = 'decl';
37588
+ var IMPORT$1 = '@import';
37589
+ var KEYFRAMES$1 = '@keyframes';
37590
+ var LAYER$1 = '@layer';
37591
+
37592
+ /**
37593
+ * @param {number}
37594
+ * @return {number}
37595
+ */
37596
+ var abs$1 = Math.abs;
37597
+
37598
+ /**
37599
+ * @param {number}
37600
+ * @return {string}
37601
+ */
37602
+ var from$1 = String.fromCharCode;
37603
+
37604
+ /**
37605
+ * @param {object}
37606
+ * @return {object}
37607
+ */
37608
+ var assign$1 = Object.assign;
37609
+
37610
+ /**
37611
+ * @param {string} value
37612
+ * @param {number} length
37613
+ * @return {number}
37614
+ */
37615
+ function hash$1 (value, length) {
37616
+ return charat$1(value, 0) ^ 45 ? (((((((length << 2) ^ charat$1(value, 0)) << 2) ^ charat$1(value, 1)) << 2) ^ charat$1(value, 2)) << 2) ^ charat$1(value, 3) : 0
37617
+ }
37618
+
37619
+ /**
37620
+ * @param {string} value
37621
+ * @return {string}
37622
+ */
37623
+ function trim$2 (value) {
37624
+ return value.trim()
37625
+ }
37626
+
37627
+ /**
37628
+ * @param {string} value
37629
+ * @param {RegExp} pattern
37630
+ * @return {string?}
37631
+ */
37632
+ function match$1 (value, pattern) {
37633
+ return (value = pattern.exec(value)) ? value[0] : value
37634
+ }
37635
+
37636
+ /**
37637
+ * @param {string} value
37638
+ * @param {(string|RegExp)} pattern
37639
+ * @param {string} replacement
37640
+ * @return {string}
37641
+ */
37642
+ function replace$1 (value, pattern, replacement) {
37643
+ return value.replace(pattern, replacement)
37644
+ }
37645
+
37646
+ /**
37647
+ * @param {string} value
37648
+ * @param {string} search
37649
+ * @param {number} position
37650
+ * @return {number}
37651
+ */
37652
+ function indexof$1 (value, search, position) {
37653
+ return value.indexOf(search, position)
37654
+ }
37655
+
37656
+ /**
37657
+ * @param {string} value
37658
+ * @param {number} index
37659
+ * @return {number}
37660
+ */
37661
+ function charat$1 (value, index) {
37662
+ return value.charCodeAt(index) | 0
37663
+ }
37664
+
37665
+ /**
37666
+ * @param {string} value
37667
+ * @param {number} begin
37668
+ * @param {number} end
37669
+ * @return {string}
37670
+ */
37671
+ function substr$1 (value, begin, end) {
37672
+ return value.slice(begin, end)
37673
+ }
37674
+
37675
+ /**
37676
+ * @param {string} value
37677
+ * @return {number}
37678
+ */
37679
+ function strlen$1 (value) {
37680
+ return value.length
37681
+ }
37682
+
37683
+ /**
37684
+ * @param {any[]} value
37685
+ * @return {number}
37686
+ */
37687
+ function sizeof$1 (value) {
37688
+ return value.length
37689
+ }
37690
+
37691
+ /**
37692
+ * @param {any} value
37693
+ * @param {any[]} array
37694
+ * @return {any}
37695
+ */
37696
+ function append$1 (value, array) {
37697
+ return array.push(value), value
37698
+ }
37699
+
37700
+ /**
37701
+ * @param {string[]} array
37702
+ * @param {function} callback
37703
+ * @return {string}
37704
+ */
37705
+ function combine$1 (array, callback) {
37706
+ return array.map(callback).join('')
37707
+ }
37708
+
37709
+ /**
37710
+ * @param {string[]} array
37711
+ * @param {RegExp} pattern
37712
+ * @return {string[]}
37713
+ */
37714
+ function filter (array, pattern) {
37715
+ return array.filter(function (value) { return !match$1(value, pattern) })
37716
+ }
37717
+
37718
+ var line$1 = 1;
37719
+ var column$1 = 1;
37720
+ var length$1 = 0;
37721
+ var position$1 = 0;
37722
+ var character$1 = 0;
37723
+ var characters$1 = '';
37724
+
37725
+ /**
37726
+ * @param {string} value
37727
+ * @param {object | null} root
37728
+ * @param {object | null} parent
37729
+ * @param {string} type
37730
+ * @param {string[] | string} props
37731
+ * @param {object[] | string} children
37732
+ * @param {object[]} siblings
37733
+ * @param {number} length
37734
+ */
37735
+ function node$1 (value, root, parent, type, props, children, length, siblings) {
37736
+ return {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line$1, column: column$1, length: length, return: '', siblings: siblings}
37737
+ }
37738
+
37739
+ /**
37740
+ * @param {object} root
37741
+ * @param {object} props
37742
+ * @return {object}
37743
+ */
37744
+ function copy$1 (root, props) {
37745
+ return assign$1(node$1('', null, null, '', null, null, 0, root.siblings), root, {length: -root.length}, props)
37746
+ }
37747
+
37748
+ /**
37749
+ * @param {object} root
37750
+ */
37751
+ function lift (root) {
37752
+ while (root.root)
37753
+ root = copy$1(root.root, {children: [root]});
37754
+
37755
+ append$1(root, root.siblings);
37756
+ }
37757
+
37758
+ /**
37759
+ * @return {number}
37760
+ */
37761
+ function char$1 () {
37762
+ return character$1
37763
+ }
37764
+
37765
+ /**
37766
+ * @return {number}
37767
+ */
37768
+ function prev$1 () {
37769
+ character$1 = position$1 > 0 ? charat$1(characters$1, --position$1) : 0;
37770
+
37771
+ if (column$1--, character$1 === 10)
37772
+ column$1 = 1, line$1--;
37773
+
37774
+ return character$1
37775
+ }
37776
+
37777
+ /**
37778
+ * @return {number}
37779
+ */
37780
+ function next$1 () {
37781
+ character$1 = position$1 < length$1 ? charat$1(characters$1, position$1++) : 0;
37782
+
37783
+ if (column$1++, character$1 === 10)
37784
+ column$1 = 1, line$1++;
37785
+
37786
+ return character$1
37787
+ }
37788
+
37789
+ /**
37790
+ * @return {number}
37791
+ */
37792
+ function peek$1 () {
37793
+ return charat$1(characters$1, position$1)
37794
+ }
37795
+
37796
+ /**
37797
+ * @return {number}
37798
+ */
37799
+ function caret$1 () {
37800
+ return position$1
37801
+ }
37802
+
37803
+ /**
37804
+ * @param {number} begin
37805
+ * @param {number} end
37806
+ * @return {string}
37807
+ */
37808
+ function slice$1 (begin, end) {
37809
+ return substr$1(characters$1, begin, end)
37810
+ }
37811
+
37812
+ /**
37813
+ * @param {number} type
37814
+ * @return {number}
37815
+ */
37816
+ function token$1 (type) {
37817
+ switch (type) {
37818
+ // \0 \t \n \r \s whitespace token
37819
+ case 0: case 9: case 10: case 13: case 32:
37820
+ return 5
37821
+ // ! + , / > @ ~ isolate token
37822
+ case 33: case 43: case 44: case 47: case 62: case 64: case 126:
37823
+ // ; { } breakpoint token
37824
+ case 59: case 123: case 125:
37825
+ return 4
37826
+ // : accompanied token
37827
+ case 58:
37828
+ return 3
37829
+ // " ' ( [ opening delimit token
37830
+ case 34: case 39: case 40: case 91:
37831
+ return 2
37832
+ // ) ] closing delimit token
37833
+ case 41: case 93:
37834
+ return 1
37835
+ }
37836
+
37837
+ return 0
37838
+ }
37839
+
37840
+ /**
37841
+ * @param {string} value
37842
+ * @return {any[]}
37843
+ */
37844
+ function alloc$1 (value) {
37845
+ return line$1 = column$1 = 1, length$1 = strlen$1(characters$1 = value), position$1 = 0, []
37846
+ }
37847
+
37848
+ /**
37849
+ * @param {any} value
37850
+ * @return {any}
37851
+ */
37852
+ function dealloc$1 (value) {
37853
+ return characters$1 = '', value
37854
+ }
37855
+
37856
+ /**
37857
+ * @param {number} type
37858
+ * @return {string}
37859
+ */
37860
+ function delimit$1 (type) {
37861
+ return trim$2(slice$1(position$1 - 1, delimiter$1(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
37862
+ }
37863
+
37864
+ /**
37865
+ * @param {number} type
37866
+ * @return {string}
37867
+ */
37868
+ function whitespace$1 (type) {
37869
+ while (character$1 = peek$1())
37870
+ if (character$1 < 33)
37871
+ next$1();
37872
+ else
37873
+ break
37874
+
37875
+ return token$1(type) > 2 || token$1(character$1) > 3 ? '' : ' '
37876
+ }
37877
+
37878
+ /**
37879
+ * @param {number} index
37880
+ * @param {number} count
37881
+ * @return {string}
37882
+ */
37883
+ function escaping$1 (index, count) {
37884
+ while (--count && next$1())
37885
+ // not 0-9 A-F a-f
37886
+ if (character$1 < 48 || character$1 > 102 || (character$1 > 57 && character$1 < 65) || (character$1 > 70 && character$1 < 97))
37887
+ break
37888
+
37889
+ return slice$1(index, caret$1() + (count < 6 && peek$1() == 32 && next$1() == 32))
37890
+ }
37891
+
37892
+ /**
37893
+ * @param {number} type
37894
+ * @return {number}
37895
+ */
37896
+ function delimiter$1 (type) {
37897
+ while (next$1())
37898
+ switch (character$1) {
37899
+ // ] ) " '
37900
+ case type:
37901
+ return position$1
37902
+ // " '
37903
+ case 34: case 39:
37904
+ if (type !== 34 && type !== 39)
37905
+ delimiter$1(character$1);
37906
+ break
37907
+ // (
37908
+ case 40:
37909
+ if (type === 41)
37910
+ delimiter$1(type);
37911
+ break
37912
+ // \
37913
+ case 92:
37914
+ next$1();
37915
+ break
37916
+ }
37917
+
37918
+ return position$1
37919
+ }
37920
+
37921
+ /**
37922
+ * @param {number} type
37923
+ * @param {number} index
37924
+ * @return {number}
37925
+ */
37926
+ function commenter$1 (type, index) {
37927
+ while (next$1())
37928
+ // //
37929
+ if (type + character$1 === 47 + 10)
37930
+ break
37931
+ // /*
37932
+ else if (type + character$1 === 42 + 42 && peek$1() === 47)
37933
+ break
37934
+
37935
+ return '/*' + slice$1(index, position$1 - 1) + '*' + from$1(type === 47 ? type : next$1())
37936
+ }
37937
+
37938
+ /**
37939
+ * @param {number} index
37940
+ * @return {string}
37941
+ */
37942
+ function identifier$1 (index) {
37943
+ while (!token$1(peek$1()))
37944
+ next$1();
37945
+
37946
+ return slice$1(index, position$1)
37947
+ }
37948
+
37949
+ /**
37950
+ * @param {string} value
37951
+ * @return {object[]}
37952
+ */
37953
+ function compile$1 (value) {
37954
+ return dealloc$1(parse$1('', null, null, null, [''], value = alloc$1(value), 0, [0], value))
37955
+ }
37956
+
37957
+ /**
37958
+ * @param {string} value
37959
+ * @param {object} root
37960
+ * @param {object?} parent
37961
+ * @param {string[]} rule
37962
+ * @param {string[]} rules
37963
+ * @param {string[]} rulesets
37964
+ * @param {number[]} pseudo
37965
+ * @param {number[]} points
37966
+ * @param {string[]} declarations
37967
+ * @return {object}
37968
+ */
37969
+ function parse$1 (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
37970
+ var index = 0;
37971
+ var offset = 0;
37972
+ var length = pseudo;
37973
+ var atrule = 0;
37974
+ var property = 0;
37975
+ var previous = 0;
37976
+ var variable = 1;
37977
+ var scanning = 1;
37978
+ var ampersand = 1;
37979
+ var character = 0;
37980
+ var type = '';
37981
+ var props = rules;
37982
+ var children = rulesets;
37983
+ var reference = rule;
37984
+ var characters = type;
37985
+
37986
+ while (scanning)
37987
+ switch (previous = character, character = next$1()) {
37988
+ // (
37989
+ case 40:
37990
+ if (previous != 108 && charat$1(characters, length - 1) == 58) {
37991
+ if (indexof$1(characters += replace$1(delimit$1(character), '&', '&\f'), '&\f', abs$1(index ? points[index - 1] : 0)) != -1)
37992
+ ampersand = -1;
37993
+ break
37994
+ }
37995
+ // " ' [
37996
+ case 34: case 39: case 91:
37997
+ characters += delimit$1(character);
37998
+ break
37999
+ // \t \n \r \s
38000
+ case 9: case 10: case 13: case 32:
38001
+ characters += whitespace$1(previous);
38002
+ break
38003
+ // \
38004
+ case 92:
38005
+ characters += escaping$1(caret$1() - 1, 7);
38006
+ continue
38007
+ // /
38008
+ case 47:
38009
+ switch (peek$1()) {
38010
+ case 42: case 47:
38011
+ append$1(comment$1(commenter$1(next$1(), caret$1()), root, parent, declarations), declarations);
38012
+ break
38013
+ default:
38014
+ characters += '/';
38015
+ }
38016
+ break
38017
+ // {
38018
+ case 123 * variable:
38019
+ points[index++] = strlen$1(characters) * ampersand;
38020
+ // } ; \0
38021
+ case 125 * variable: case 59: case 0:
38022
+ switch (character) {
38023
+ // \0 }
38024
+ case 0: case 125: scanning = 0;
38025
+ // ;
38026
+ case 59 + offset: if (ampersand == -1) characters = replace$1(characters, /\f/g, '');
38027
+ if (property > 0 && (strlen$1(characters) - length))
38028
+ append$1(property > 32 ? declaration$1(characters + ';', rule, parent, length - 1, declarations) : declaration$1(replace$1(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations);
38029
+ break
38030
+ // @ ;
38031
+ case 59: characters += ';';
38032
+ // { rule/at-rule
38033
+ default:
38034
+ append$1(reference = ruleset$1(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets);
38035
+
38036
+ if (character === 123)
38037
+ if (offset === 0)
38038
+ parse$1(characters, root, reference, reference, props, rulesets, length, points, children);
38039
+ else
38040
+ switch (atrule === 99 && charat$1(characters, 3) === 110 ? 100 : atrule) {
38041
+ // d l m s
38042
+ case 100: case 108: case 109: case 115:
38043
+ parse$1(value, reference, reference, rule && append$1(ruleset$1(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children);
38044
+ break
38045
+ default:
38046
+ parse$1(characters, reference, reference, reference, [''], children, 0, points, children);
38047
+ }
38048
+ }
38049
+
38050
+ index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
38051
+ break
38052
+ // :
38053
+ case 58:
38054
+ length = 1 + strlen$1(characters), property = previous;
38055
+ default:
38056
+ if (variable < 1)
38057
+ if (character == 123)
38058
+ --variable;
38059
+ else if (character == 125 && variable++ == 0 && prev$1() == 125)
38060
+ continue
38061
+
38062
+ switch (characters += from$1(character), character * variable) {
38063
+ // &
38064
+ case 38:
38065
+ ampersand = offset > 0 ? 1 : (characters += '\f', -1);
38066
+ break
38067
+ // ,
38068
+ case 44:
38069
+ points[index++] = (strlen$1(characters) - 1) * ampersand, ampersand = 1;
38070
+ break
38071
+ // @
38072
+ case 64:
38073
+ // -
38074
+ if (peek$1() === 45)
38075
+ characters += delimit$1(next$1());
38076
+
38077
+ atrule = peek$1(), offset = length = strlen$1(type = characters += identifier$1(caret$1())), character++;
38078
+ break
38079
+ // -
38080
+ case 45:
38081
+ if (previous === 45 && strlen$1(characters) == 2)
38082
+ variable = 0;
38083
+ }
38084
+ }
38085
+
38086
+ return rulesets
38087
+ }
38088
+
38089
+ /**
38090
+ * @param {string} value
38091
+ * @param {object} root
38092
+ * @param {object?} parent
38093
+ * @param {number} index
38094
+ * @param {number} offset
38095
+ * @param {string[]} rules
38096
+ * @param {number[]} points
38097
+ * @param {string} type
38098
+ * @param {string[]} props
38099
+ * @param {string[]} children
38100
+ * @param {number} length
38101
+ * @param {object[]} siblings
38102
+ * @return {object}
38103
+ */
38104
+ function ruleset$1 (value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {
38105
+ var post = offset - 1;
38106
+ var rule = offset === 0 ? rules : [''];
38107
+ var size = sizeof$1(rule);
38108
+
38109
+ for (var i = 0, j = 0, k = 0; i < index; ++i)
38110
+ for (var x = 0, y = substr$1(value, post + 1, post = abs$1(j = points[i])), z = value; x < size; ++x)
38111
+ if (z = trim$2(j > 0 ? rule[x] + ' ' + y : replace$1(y, /&\f/g, rule[x])))
38112
+ props[k++] = z;
38113
+
38114
+ return node$1(value, root, parent, offset === 0 ? RULESET$1 : type, props, children, length, siblings)
38115
+ }
38116
+
38117
+ /**
38118
+ * @param {number} value
38119
+ * @param {object} root
38120
+ * @param {object?} parent
38121
+ * @param {object[]} siblings
38122
+ * @return {object}
38123
+ */
38124
+ function comment$1 (value, root, parent, siblings) {
38125
+ return node$1(value, root, parent, COMMENT$1, from$1(char$1()), substr$1(value, 2, -2), 0, siblings)
38126
+ }
38127
+
38128
+ /**
38129
+ * @param {string} value
38130
+ * @param {object} root
38131
+ * @param {object?} parent
38132
+ * @param {number} length
38133
+ * @param {object[]} siblings
38134
+ * @return {object}
38135
+ */
38136
+ function declaration$1 (value, root, parent, length, siblings) {
38137
+ return node$1(value, root, parent, DECLARATION$1, substr$1(value, 0, length), substr$1(value, length + 1, -1), length, siblings)
38138
+ }
38139
+
38140
+ /**
38141
+ * @param {string} value
38142
+ * @param {number} length
38143
+ * @param {object[]} children
38144
+ * @return {string}
38145
+ */
38146
+ function prefix$1 (value, length, children) {
38147
+ switch (hash$1(value, length)) {
38148
+ // color-adjust
38149
+ case 5103:
38150
+ return WEBKIT$1 + 'print-' + value + value
38151
+ // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
38152
+ case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921:
38153
+ // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
38154
+ case 5572: case 6356: case 5844: case 3191: case 6645: case 3005:
38155
+ // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
38156
+ case 6391: case 5879: case 5623: case 6135: case 4599: case 4855:
38157
+ // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
38158
+ case 4215: case 6389: case 5109: case 5365: case 5621: case 3829:
38159
+ return WEBKIT$1 + value + value
38160
+ // tab-size
38161
+ case 4789:
38162
+ return MOZ$1 + value + value
38163
+ // appearance, user-select, transform, hyphens, text-size-adjust
38164
+ case 5349: case 4246: case 4810: case 6968: case 2756:
38165
+ return WEBKIT$1 + value + MOZ$1 + value + MS$1 + value + value
38166
+ // writing-mode
38167
+ case 5936:
38168
+ switch (charat$1(value, length + 11)) {
38169
+ // vertical-l(r)
38170
+ case 114:
38171
+ return WEBKIT$1 + value + MS$1 + replace$1(value, /[svh]\w+-[tblr]{2}/, 'tb') + value
38172
+ // vertical-r(l)
38173
+ case 108:
38174
+ return WEBKIT$1 + value + MS$1 + replace$1(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value
38175
+ // horizontal(-)tb
38176
+ case 45:
38177
+ return WEBKIT$1 + value + MS$1 + replace$1(value, /[svh]\w+-[tblr]{2}/, 'lr') + value
38178
+ // default: fallthrough to below
38179
+ }
38180
+ // flex, flex-direction, scroll-snap-type, writing-mode
38181
+ case 6828: case 4268: case 2903:
38182
+ return WEBKIT$1 + value + MS$1 + value + value
38183
+ // order
38184
+ case 6165:
38185
+ return WEBKIT$1 + value + MS$1 + 'flex-' + value + value
38186
+ // align-items
38187
+ case 5187:
38188
+ return WEBKIT$1 + value + replace$1(value, /(\w+).+(:[^]+)/, WEBKIT$1 + 'box-$1$2' + MS$1 + 'flex-$1$2') + value
38189
+ // align-self
38190
+ case 5443:
38191
+ return WEBKIT$1 + value + MS$1 + 'flex-item-' + replace$1(value, /flex-|-self/g, '') + (!match$1(value, /flex-|baseline/) ? MS$1 + 'grid-row-' + replace$1(value, /flex-|-self/g, '') : '') + value
38192
+ // align-content
38193
+ case 4675:
38194
+ return WEBKIT$1 + value + MS$1 + 'flex-line-pack' + replace$1(value, /align-content|flex-|-self/g, '') + value
38195
+ // flex-shrink
38196
+ case 5548:
38197
+ return WEBKIT$1 + value + MS$1 + replace$1(value, 'shrink', 'negative') + value
38198
+ // flex-basis
38199
+ case 5292:
38200
+ return WEBKIT$1 + value + MS$1 + replace$1(value, 'basis', 'preferred-size') + value
38201
+ // flex-grow
38202
+ case 6060:
38203
+ return WEBKIT$1 + 'box-' + replace$1(value, '-grow', '') + WEBKIT$1 + value + MS$1 + replace$1(value, 'grow', 'positive') + value
38204
+ // transition
38205
+ case 4554:
38206
+ return WEBKIT$1 + replace$1(value, /([^-])(transform)/g, '$1' + WEBKIT$1 + '$2') + value
38207
+ // cursor
38208
+ case 6187:
38209
+ return replace$1(replace$1(replace$1(value, /(zoom-|grab)/, WEBKIT$1 + '$1'), /(image-set)/, WEBKIT$1 + '$1'), value, '') + value
38210
+ // background, background-image
38211
+ case 5495: case 3959:
38212
+ return replace$1(value, /(image-set\([^]*)/, WEBKIT$1 + '$1' + '$`$1')
38213
+ // justify-content
38214
+ case 4968:
38215
+ return replace$1(replace$1(value, /(.+:)(flex-)?(.*)/, WEBKIT$1 + 'box-pack:$3' + MS$1 + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT$1 + value + value
38216
+ // justify-self
38217
+ case 4200:
38218
+ if (!match$1(value, /flex-|baseline/)) return MS$1 + 'grid-column-align' + substr$1(value, length) + value
38219
+ break
38220
+ // grid-template-(columns|rows)
38221
+ case 2592: case 3360:
38222
+ return MS$1 + replace$1(value, 'template-', '') + value
38223
+ // grid-(row|column)-start
38224
+ case 4384: case 3616:
38225
+ if (children && children.some(function (element, index) { return length = index, match$1(element.props, /grid-\w+-end/) })) {
38226
+ return ~indexof$1(value + (children = children[length].value), 'span', 0) ? value : (MS$1 + replace$1(value, '-start', '') + value + MS$1 + 'grid-row-span:' + (~indexof$1(children, 'span', 0) ? match$1(children, /\d+/) : +match$1(children, /\d+/) - +match$1(value, /\d+/)) + ';')
38227
+ }
38228
+ return MS$1 + replace$1(value, '-start', '') + value
38229
+ // grid-(row|column)-end
38230
+ case 4896: case 4128:
38231
+ return (children && children.some(function (element) { return match$1(element.props, /grid-\w+-start/) })) ? value : MS$1 + replace$1(replace$1(value, '-end', '-span'), 'span ', '') + value
38232
+ // (margin|padding)-inline-(start|end)
38233
+ case 4095: case 3583: case 4068: case 2532:
38234
+ return replace$1(value, /(.+)-inline(.+)/, WEBKIT$1 + '$1$2') + value
38235
+ // (min|max)?(width|height|inline-size|block-size)
38236
+ case 8116: case 7059: case 5753: case 5535:
38237
+ case 5445: case 5701: case 4933: case 4677:
38238
+ case 5533: case 5789: case 5021: case 4765:
38239
+ // stretch, max-content, min-content, fill-available
38240
+ if (strlen$1(value) - 1 - length > 6)
38241
+ switch (charat$1(value, length + 1)) {
38242
+ // (m)ax-content, (m)in-content
38243
+ case 109:
38244
+ // -
38245
+ if (charat$1(value, length + 4) !== 45)
38246
+ break
38247
+ // (f)ill-available, (f)it-content
38248
+ case 102:
38249
+ return replace$1(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT$1 + '$2-$3' + '$1' + MOZ$1 + (charat$1(value, length + 3) == 108 ? '$3' : '$2-$3')) + value
38250
+ // (s)tretch
38251
+ case 115:
38252
+ return ~indexof$1(value, 'stretch', 0) ? prefix$1(replace$1(value, 'stretch', 'fill-available'), length, children) + value : value
38253
+ }
38254
+ break
38255
+ // grid-(column|row)
38256
+ case 5152: case 5920:
38257
+ return replace$1(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (_, a, b, c, d, e, f) { return (MS$1 + a + ':' + b + f) + (c ? (MS$1 + a + '-span:' + (d ? e : +e - +b)) + f : '') + value })
38258
+ // position: sticky
38259
+ case 4949:
38260
+ // stick(y)?
38261
+ if (charat$1(value, length + 6) === 121)
38262
+ return replace$1(value, ':', ':' + WEBKIT$1) + value
38263
+ break
38264
+ // display: (flex|inline-flex|grid|inline-grid)
38265
+ case 6444:
38266
+ switch (charat$1(value, charat$1(value, 14) === 45 ? 18 : 11)) {
38267
+ // (inline-)?fle(x)
38268
+ case 120:
38269
+ return replace$1(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, '$1' + WEBKIT$1 + (charat$1(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT$1 + '$2$3' + '$1' + MS$1 + '$2box$3') + value
38270
+ // (inline-)?gri(d)
38271
+ case 100:
38272
+ return replace$1(value, ':', ':' + MS$1) + value
38273
+ }
38274
+ break
38275
+ // scroll-margin, scroll-margin-(top|right|bottom|left)
38276
+ case 5719: case 2647: case 2135: case 3927: case 2391:
38277
+ return replace$1(value, 'scroll-', 'scroll-snap-') + value
38278
+ }
38279
+
38280
+ return value
38281
+ }
38282
+
38283
+ /**
38284
+ * @param {object[]} children
38285
+ * @param {function} callback
38286
+ * @return {string}
38287
+ */
38288
+ function serialize$1 (children, callback) {
38289
+ var output = '';
38290
+
38291
+ for (var i = 0; i < children.length; i++)
38292
+ output += callback(children[i], i, children, callback) || '';
38293
+
38294
+ return output
38295
+ }
38296
+
38297
+ /**
38298
+ * @param {object} element
38299
+ * @param {number} index
38300
+ * @param {object[]} children
38301
+ * @param {function} callback
38302
+ * @return {string}
38303
+ */
38304
+ function stringify$1 (element, index, children, callback) {
38305
+ switch (element.type) {
38306
+ case LAYER$1: if (element.children.length) break
38307
+ case IMPORT$1: case DECLARATION$1: return element.return = element.return || element.value
38308
+ case COMMENT$1: return ''
38309
+ case KEYFRAMES$1: return element.return = element.value + '{' + serialize$1(element.children, callback) + '}'
38310
+ case RULESET$1: if (!strlen$1(element.value = element.props.join(','))) return ''
38311
+ }
38312
+
38313
+ return strlen$1(children = serialize$1(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
38314
+ }
38315
+
38316
+ /**
38317
+ * @param {function[]} collection
38318
+ * @return {function}
38319
+ */
38320
+ function middleware$1 (collection) {
38321
+ var length = sizeof$1(collection);
38322
+
38323
+ return function (element, index, children, callback) {
38324
+ var output = '';
38325
+
38326
+ for (var i = 0; i < length; i++)
38327
+ output += collection[i](element, index, children, callback) || '';
38328
+
38329
+ return output
38330
+ }
38331
+ }
38332
+
38333
+ /**
38334
+ * @param {function} callback
38335
+ * @return {function}
38336
+ */
38337
+ function rulesheet$1 (callback) {
38338
+ return function (element) {
38339
+ if (!element.root)
38340
+ if (element = element.return)
38341
+ callback(element);
38342
+ }
38343
+ }
38344
+
38345
+ /**
38346
+ * @param {object} element
38347
+ * @param {number} index
38348
+ * @param {object[]} children
38349
+ * @param {function} callback
38350
+ */
38351
+ function prefixer$1 (element, index, children, callback) {
38352
+ if (element.length > -1)
38353
+ if (!element.return)
38354
+ switch (element.type) {
38355
+ case DECLARATION$1: element.return = prefix$1(element.value, element.length, children);
38356
+ return
38357
+ case KEYFRAMES$1:
38358
+ return serialize$1([copy$1(element, {value: replace$1(element.value, '@', '@' + WEBKIT$1)})], callback)
38359
+ case RULESET$1:
38360
+ if (element.length)
38361
+ return combine$1(children = element.props, function (value) {
38362
+ switch (match$1(value, callback = /(::plac\w+|:read-\w+)/)) {
38363
+ // :read-(only|write)
38364
+ case ':read-only': case ':read-write':
38365
+ lift(copy$1(element, {props: [replace$1(value, /:(read-\w+)/, ':' + MOZ$1 + '$1')]}));
38366
+ lift(copy$1(element, {props: [value]}));
38367
+ assign$1(element, {props: filter(children, callback)});
38368
+ break
38369
+ // :placeholder
38370
+ case '::placeholder':
38371
+ lift(copy$1(element, {props: [replace$1(value, /:(plac\w+)/, ':' + WEBKIT$1 + 'input-$1')]}));
38372
+ lift(copy$1(element, {props: [replace$1(value, /:(plac\w+)/, ':' + MOZ$1 + '$1')]}));
38373
+ lift(copy$1(element, {props: [replace$1(value, /:(plac\w+)/, MS$1 + 'input-$1')]}));
38374
+ lift(copy$1(element, {props: [value]}));
38375
+ assign$1(element, {props: filter(children, callback)});
38376
+ break
38377
+ }
38378
+
38379
+ return ''
38380
+ })
38381
+ }
38382
+ }
38383
+
38384
+ var unitlessKeys$1 = {
38385
+ animationIterationCount: 1,
38386
+ borderImageOutset: 1,
38387
+ borderImageSlice: 1,
38388
+ borderImageWidth: 1,
38389
+ boxFlex: 1,
38390
+ boxFlexGroup: 1,
38391
+ boxOrdinalGroup: 1,
38392
+ columnCount: 1,
38393
+ columns: 1,
38394
+ flex: 1,
38395
+ flexGrow: 1,
38396
+ flexPositive: 1,
38397
+ flexShrink: 1,
38398
+ flexNegative: 1,
38399
+ flexOrder: 1,
38400
+ gridRow: 1,
38401
+ gridRowEnd: 1,
38402
+ gridRowSpan: 1,
38403
+ gridRowStart: 1,
38404
+ gridColumn: 1,
38405
+ gridColumnEnd: 1,
38406
+ gridColumnSpan: 1,
38407
+ gridColumnStart: 1,
38408
+ msGridRow: 1,
38409
+ msGridRowSpan: 1,
38410
+ msGridColumn: 1,
38411
+ msGridColumnSpan: 1,
38412
+ fontWeight: 1,
38413
+ lineHeight: 1,
38414
+ opacity: 1,
38415
+ order: 1,
38416
+ orphans: 1,
38417
+ tabSize: 1,
38418
+ widows: 1,
38419
+ zIndex: 1,
38420
+ zoom: 1,
38421
+ WebkitLineClamp: 1,
38422
+ // SVG-related properties
38423
+ fillOpacity: 1,
38424
+ floodOpacity: 1,
38425
+ stopOpacity: 1,
38426
+ strokeDasharray: 1,
38427
+ strokeDashoffset: 1,
38428
+ strokeMiterlimit: 1,
38429
+ strokeOpacity: 1,
38430
+ strokeWidth: 1
38431
+ };
38432
+
38433
+ 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.8",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));},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},$=function(e){return M(F,e)};function z(e){return x($(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=new Map,ye=new Map,ve=1,ge=function(e){if(me.has(e))return me.get(e);for(;ye.has(ve);)ve++;var t=ve++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw he(16,"".concat(t));return me.set(e,t),ye.set(t,e),t},Se=function(e,t){ve=t+1,me.set(e,t),ye.set(t,e);},we="style[".concat(f,"][").concat(y,'="').concat(v,'"]'),be=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ee=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);},Ne=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(be);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(Se(u,l),Ee(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}};function Pe(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var _e=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=Pe();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ce=function(){function e(e){this.element=_e(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}(),Ie=function(){function e(e){this.element=_e(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}(),Ae=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}(),Oe=S,De={isServer:!S,useCSSOMInjection:!w},Re=function(){function e(e,n,o){void 0===e&&(e=C),void 0===n&&(n={});var r=this;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){for(var t=document.querySelectorAll(we),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(f)!==m&&(Ne(e,r),r.parentNode&&r.parentNode.removeChild(r));}}(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ye.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||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 ge(e)},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 Ae(n):t?new Ce(n):new Ie(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(ge(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(ge(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(ge(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),Te=/&/g,ke=/^\s*\/\/.*$/gm;function je(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=je(e.children,t)),e})}function xe(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$1&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Te,n).replace(o,l));}),i.prefix&&u.push(prefixer$1),u.push(stringify$1);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(ke,""),l=compile$1(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=je(l,i.namespace));var p=[];return serialize$1(l,middleware$1(u.concat(rulesheet$1(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 Ve=new Re,Fe=xe(),Me=React__default.createContext({shouldForwardProp:void 0,styleSheet:Ve,stylis:Fe});Me.Consumer;React__default.createContext(void 0);function Be(){return useContext(Me)}var Ge=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Fe);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=Fe),this.name+e.hash},e}(),Ye=function(e){return e>="A"&&e<="Z"};function We(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;Ye(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var qe=function(e){return null==e||!1===e||""===e},He=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!qe(i)&&(Array.isArray(i)&&i.isCss||re(i)?r.push("".concat(We(s),":"),i,";"):ce(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],He(i),!1),["}"],!1)):r.push("".concat(We(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys$1||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Ue(e,t,n,o){if(qe(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 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)}var s;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){return Ue(e,t,n,o)})):[e.toString()]}function Je(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re(n)&&!se(n))return !1}return !0}var Xe=$(v),Ze=function(){function e(e,t,n){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);}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(Ue(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(Ue(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}(),Ke=React__default.createContext(void 0);Ke.Consumer;var nt={},ot=new Set;function rt(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);nt[n]=(nt[n]||0)+1;var o="".concat(n,"-").concat(z(v+n+nt[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 Ze(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__default.useContext(Ke),m=Be(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&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$1(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.)')))));var E=function(e,t){var n=Be(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&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,w.ref=s,createElement(S,w)}(D,e,r)}O.displayName=y;var D=React__default.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 st(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 it=function(e){return Object.assign(e,{isCss:!0})};function at(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(re(t)||ce(t))return it(Ue(st(_,__spreadArray([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Ue(r):it(Ue(st(r,n)))}function ct(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,at.apply(void 0,__spreadArray([t],s,!1)))};return s.attrs=function(e){return ct(n,o,__assign(__assign({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ct(n,o,__assign(__assign({},r),e))},s}var lt=function(e){return ct(rt,e)},ut=lt;A.forEach(function(e){ut[e]=lt(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 vt="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[vt]||(window[vt]=0),1===window[vt]&&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[vt]+=1);
38434
+
37487
38435
  const common = {
37488
38436
  black: '#000',
37489
38437
  white: '#fff'
@@ -57907,6 +58855,18 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes /* remove-proptypes
57907
58855
  } : void 0;
57908
58856
  var TextField$1 = TextField;
57909
58857
 
58858
+ var VisibilityIcon = createSvgIcon( /*#__PURE__*/jsx("path", {
58859
+ d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"
58860
+ }), 'Visibility');
58861
+
58862
+ var VisibilityOffIcon = createSvgIcon( /*#__PURE__*/jsx("path", {
58863
+ d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"
58864
+ }), 'VisibilityOff');
58865
+
58866
+ var LockIcon = createSvgIcon( /*#__PURE__*/jsx("path", {
58867
+ d: "M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"
58868
+ }), 'Lock');
58869
+
57910
58870
  function bind(fn, thisArg) {
57911
58871
  return function wrap() {
57912
58872
  return fn.apply(thisArg, arguments);
@@ -61923,7 +62883,7 @@ var BaseApi = /*#__PURE__*/function () {
61923
62883
  key: "post",
61924
62884
  value: (function () {
61925
62885
  var _post = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(payload, settings) {
61926
- var result;
62886
+ var endpoint, result;
61927
62887
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
61928
62888
  while (1) switch (_context5.prev = _context5.next) {
61929
62889
  case 0:
@@ -61934,21 +62894,22 @@ var BaseApi = /*#__PURE__*/function () {
61934
62894
  }
61935
62895
  return _context5.abrupt("return", null);
61936
62896
  case 3:
61937
- _context5.next = 5;
61938
- return this.request().post("".concat(settings !== null && settings !== void 0 && settings.debug ? this.serviceEndpoints.baseUrlDev : this.serviceEndpoints.baseUrlProd).concat((settings === null || settings === void 0 ? void 0 : settings.endpoint) || this.serviceEndpoints.post), payload);
61939
- case 5:
62897
+ endpoint = "".concat(settings !== null && settings !== void 0 && settings.debug ? this.serviceEndpoints.baseUrlDev : this.serviceEndpoints.baseUrlProd).concat((settings === null || settings === void 0 ? void 0 : settings.endpoint) || this.serviceEndpoints.post);
62898
+ _context5.next = 6;
62899
+ return this.request().post(endpoint, payload);
62900
+ case 6:
61940
62901
  result = _context5.sent;
61941
62902
  return _context5.abrupt("return", result.data);
61942
- case 9:
61943
- _context5.prev = 9;
62903
+ case 10:
62904
+ _context5.prev = 10;
61944
62905
  _context5.t0 = _context5["catch"](0);
61945
62906
  console.error(_context5.t0);
61946
62907
  return _context5.abrupt("return", _context5.t0.response.data);
61947
- case 13:
62908
+ case 14:
61948
62909
  case "end":
61949
62910
  return _context5.stop();
61950
62911
  }
61951
- }, _callee5, this, [[0, 9]]);
62912
+ }, _callee5, this, [[0, 10]]);
61952
62913
  }));
61953
62914
  function post(_x5, _x6) {
61954
62915
  return _post.apply(this, arguments);
@@ -62096,6 +63057,7 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
62096
63057
  _this.api_key = (args === null || args === void 0 ? void 0 : args.apiKey) || '';
62097
63058
  _this.serviceEndpoints = {
62098
63059
  baseUrlProd: undefined,
63060
+ baseUrlDev: undefined,
62099
63061
  signUpWithPassword: '/security/signup/standard',
62100
63062
  signInStandard: '/security/signin/standard',
62101
63063
  emailRecoverPassword: '/security/password/reset/standard',
@@ -62113,10 +63075,9 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
62113
63075
  return _regeneratorRuntime().wrap(function _callee$(_context) {
62114
63076
  while (1) switch (_context.prev = _context.next) {
62115
63077
  case 0:
62116
- return _context.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, {
62117
- endpoint: this.serviceEndpoints.signUpWithPassword,
62118
- settings: this.settings
62119
- }));
63078
+ return _context.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, _objectSpread2({
63079
+ endpoint: this.serviceEndpoints.signUpWithPassword
63080
+ }, this.settings)));
62120
63081
  case 1:
62121
63082
  case "end":
62122
63083
  return _context.stop();
@@ -62135,10 +63096,9 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
62135
63096
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
62136
63097
  while (1) switch (_context2.prev = _context2.next) {
62137
63098
  case 0:
62138
- return _context2.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, {
62139
- endpoint: this.serviceEndpoints.signInStandard,
62140
- settings: this.settings
62141
- }));
63099
+ return _context2.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, _objectSpread2({
63100
+ endpoint: this.serviceEndpoints.signInStandard
63101
+ }, this.settings)));
62142
63102
  case 1:
62143
63103
  case "end":
62144
63104
  return _context2.stop();
@@ -62157,10 +63117,9 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
62157
63117
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
62158
63118
  while (1) switch (_context3.prev = _context3.next) {
62159
63119
  case 0:
62160
- return _context3.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, {
62161
- endpoint: this.serviceEndpoints.logout,
62162
- settings: this.settings
62163
- }));
63120
+ return _context3.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, _objectSpread2({
63121
+ endpoint: this.serviceEndpoints.logout
63122
+ }, this.settings)));
62164
63123
  case 1:
62165
63124
  case "end":
62166
63125
  return _context3.stop();
@@ -62179,10 +63138,9 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
62179
63138
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
62180
63139
  while (1) switch (_context4.prev = _context4.next) {
62181
63140
  case 0:
62182
- return _context4.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, {
62183
- endpoint: this.serviceEndpoints.emailRecoverPassword,
62184
- settings: this.settings
62185
- }));
63141
+ return _context4.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, _objectSpread2({
63142
+ endpoint: this.serviceEndpoints.emailRecoverPassword
63143
+ }, this.settings)));
62186
63144
  case 1:
62187
63145
  case "end":
62188
63146
  return _context4.stop();
@@ -62216,12 +63174,16 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
62216
63174
  }]);
62217
63175
  }(BaseApi);
62218
63176
 
63177
+ var _templateObject, _templateObject2;
63178
+ var StandarSigninContainer = ut.section(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin: 0 auto;\n min-width: 400px;\n\n @media (min-width: 768px) {\n max-width: 66.6667%; /* 8/12 */\n }\n\n @media (min-width: 992px) {\n max-width: 50%; /* 6/12 */\n }\n\n @media (min-width: 1200px) {\n max-width: 41.6667%; /* 5/12 */\n }\n"])));
63179
+ var KarlaTypography = ut(Typography$1)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-family: 'Karla', 'Roboto', sans-serif !important;\n font-weight: 600;\n"])));
62219
63180
  var swal = withReactContent(Swal);
62220
63181
  var statusCodeMessages = {
62221
63182
  461: 'The data provided does not match any registered application',
62222
63183
  462: 'Unauthorized user. After 3 failed attempts, your account will be locked for 24 hours.',
62223
63184
  463: 'The user is not registered in this application, needs to register',
62224
63185
  464: 'Unauthorized. After 3 failed attempts, your account will be locked for 24 hours.',
63186
+ 465: 'API key is missing or invalid',
62225
63187
  401: 'Error authenticating'
62226
63188
  };
62227
63189
  function signInStandard(_x) {
@@ -62277,7 +63239,9 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
62277
63239
  _ref2$redirectUrl = _ref2.redirectUrl,
62278
63240
  redirectUrl = _ref2$redirectUrl === void 0 ? '' : _ref2$redirectUrl,
62279
63241
  _ref2$debug = _ref2.debug,
62280
- debug = _ref2$debug === void 0 ? false : _ref2$debug;
63242
+ debug = _ref2$debug === void 0 ? false : _ref2$debug,
63243
+ _ref2$apiKey = _ref2.apiKey,
63244
+ apiKey = _ref2$apiKey === void 0 ? '' : _ref2$apiKey;
62281
63245
  // Hooks
62282
63246
  var authProvider = useAuth();
62283
63247
  var location = useLocation();
@@ -62295,7 +63259,7 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
62295
63259
  setShowPassword = _React$useState2[1];
62296
63260
 
62297
63261
  // Entity states
62298
- var _useState3 = useState(null),
63262
+ var _useState3 = useState(''),
62299
63263
  _useState4 = _slicedToArray(_useState3, 2),
62300
63264
  email = _useState4[0],
62301
63265
  setEmail = _useState4[1];
@@ -62334,9 +63298,6 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
62334
63298
  break;
62335
63299
  }
62336
63300
  };
62337
- var initializeComponent = function initializeComponent() {
62338
- setErrors();
62339
- };
62340
63301
  var handleSubmit = /*#__PURE__*/function () {
62341
63302
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(event) {
62342
63303
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -62379,6 +63340,7 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
62379
63340
  },
62380
63341
  authProvider: authProvider,
62381
63342
  redirectUrl: redirectUrl,
63343
+ apiKey: apiKey,
62382
63344
  debug: debug
62383
63345
  });
62384
63346
  case 13:
@@ -62402,15 +63364,13 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
62402
63364
  return _ref4.apply(this, arguments);
62403
63365
  };
62404
63366
  }();
63367
+ var initializeComponent = function initializeComponent() {
63368
+ setErrors();
63369
+ };
62405
63370
  useEffect(function () {
62406
63371
  initializeComponent();
62407
63372
  }, []);
62408
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("section", {
62409
- style: {
62410
- maxWidth: '600px',
62411
- margin: '0 auto'
62412
- }
62413
- }, /*#__PURE__*/React__default.createElement("header", {
63373
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StandarSigninContainer, null, /*#__PURE__*/React__default.createElement("header", {
62414
63374
  style: {
62415
63375
  textAlign: 'center'
62416
63376
  }
@@ -62426,25 +63386,25 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
62426
63386
  }
62427
63387
  })), /*#__PURE__*/React__default.createElement(Typography$1, {
62428
63388
  variant: "body2",
62429
- color: "textSecondary",
62430
63389
  style: {
62431
63390
  marginTop: '16px',
62432
- marginBottom: '24px'
63391
+ marginBottom: '24px',
63392
+ color: '#98a6ad',
63393
+ fontWeight: 300
62433
63394
  }
62434
63395
  }, organizationSlogan)), /*#__PURE__*/React__default.createElement("section", {
62435
63396
  style: {
62436
- border: '1px solid #ccc',
63397
+ border: '1px solid #f2f2f2',
62437
63398
  borderRadius: '8px',
62438
- padding: '16px'
63399
+ padding: '16px',
63400
+ boxShadow: '0 .75rem 6rem rgba(56, 65, 74, 0.03)'
62439
63401
  }
62440
63402
  }, /*#__PURE__*/React__default.createElement("div", {
62441
63403
  style: {
62442
63404
  textAlign: 'center',
62443
63405
  marginBottom: '32px'
62444
63406
  }
62445
- }, /*#__PURE__*/React__default.createElement(Typography$1, {
62446
- variant: "h6"
62447
- }, "Log in using email address")), /*#__PURE__*/React__default.createElement("form", {
63407
+ }, /*#__PURE__*/React__default.createElement(KarlaTypography, null, "Log in using email address")), /*#__PURE__*/React__default.createElement("form", {
62448
63408
  onSubmit: handleSubmit,
62449
63409
  autoComplete: "off"
62450
63410
  }, /*#__PURE__*/React__default.createElement("section", {
@@ -62492,50 +63452,59 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
62492
63452
  event.preventDefault();
62493
63453
  },
62494
63454
  edge: "end"
62495
- }, showPassword ? /*#__PURE__*/React__default.createElement("i", {
62496
- className: "fe-eye-off"
62497
- }) : /*#__PURE__*/React__default.createElement("i", {
62498
- className: "fe-eye"
62499
- })))
63455
+ }, showPassword ? /*#__PURE__*/React__default.createElement(VisibilityIcon, null) : /*#__PURE__*/React__default.createElement(VisibilityOffIcon, null)))
62500
63456
  },
62501
63457
  InputLabelProps: {
62502
63458
  shrink: true
62503
63459
  }
62504
63460
  })), /*#__PURE__*/React__default.createElement("section", {
62505
63461
  style: {
62506
- display: 'flex',
62507
- justifyContent: 'flex-end',
62508
- marginBottom: '16px'
63462
+ marginBottom: '16px',
63463
+ width: '100%'
62509
63464
  }
62510
63465
  }, /*#__PURE__*/React__default.createElement(Link, {
62511
63466
  to: "recover-password",
63467
+ underline: "hover",
62512
63468
  style: {
62513
63469
  marginLeft: '8px',
62514
- color: 'gray'
63470
+ color: 'gray',
63471
+ width: '100%',
63472
+ display: 'flex',
63473
+ justifyContent: 'flex-end',
63474
+ textDecoration: 'none'
62515
63475
  }
62516
- }, /*#__PURE__*/React__default.createElement("i", {
62517
- className: "fa fa-lock",
63476
+ }, /*#__PURE__*/React__default.createElement(LockIcon, {
62518
63477
  style: {
62519
- marginRight: '4px'
63478
+ marginRight: '5px',
63479
+ color: '#98a6ad',
63480
+ fontSize: '18px'
62520
63481
  }
62521
- }), "Forgot password?")), /*#__PURE__*/React__default.createElement("footer", {
63482
+ }), /*#__PURE__*/React__default.createElement(Typography$1, {
63483
+ variant: "body2",
63484
+ style: {
63485
+ color: '#98a6ad',
63486
+ fontWeight: '400'
63487
+ }
63488
+ }, "Forgot password?"))), /*#__PURE__*/React__default.createElement("footer", {
62522
63489
  style: {
62523
63490
  marginBottom: '16px',
62524
63491
  display: 'flex',
62525
63492
  justifyContent: 'center'
62526
63493
  }
62527
63494
  }, /*#__PURE__*/React__default.createElement(Button$1, {
62528
- variant: "outlined",
63495
+ type: "submit",
63496
+ variant: "contained",
62529
63497
  disabled: isLoading,
62530
63498
  sx: {
62531
63499
  display: 'flex',
62532
63500
  alignItems: 'center',
62533
63501
  border: '2px solid #232931',
62534
- backgroundColor: isLoading ? '#323a46' : 'transparent',
62535
- color: isLoading ? '#fff' : '#000',
63502
+ backgroundColor: '#323a46',
63503
+ color: '#fff',
62536
63504
  '&:hover': {
62537
- backgroundColor: isLoading ? '#2b323b' : 'transparent'
62538
- }
63505
+ backgroundColor: '#3d4c61'
63506
+ },
63507
+ width: '100%'
62539
63508
  }
62540
63509
  }, isLoading && /*#__PURE__*/React__default.createElement(CircularProgress$1, {
62541
63510
  size: 20,