gantri-components 1.0.7 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/dist/index.cjs.js +1564 -3
  2. package/lib/components/icon/generated/30DaysReturn.d.ts +3 -0
  3. package/lib/components/icon/generated/Address.d.ts +3 -0
  4. package/lib/components/icon/generated/Affirm.d.ts +3 -0
  5. package/lib/components/icon/generated/AffirmBlue.d.ts +3 -0
  6. package/lib/components/icon/generated/Amex.d.ts +3 -0
  7. package/lib/components/icon/generated/ApplePay.d.ts +3 -0
  8. package/lib/components/icon/generated/Ar.d.ts +3 -0
  9. package/lib/components/icon/generated/ArrowCircle.d.ts +3 -0
  10. package/lib/components/icon/generated/ArrowDown.d.ts +3 -0
  11. package/lib/components/icon/generated/ArrowLeft.d.ts +3 -0
  12. package/lib/components/icon/generated/ArrowRight.d.ts +3 -0
  13. package/lib/components/icon/generated/Behance.d.ts +3 -0
  14. package/lib/components/icon/generated/Bell.d.ts +3 -0
  15. package/lib/components/icon/generated/BellTransparent.d.ts +3 -0
  16. package/lib/components/icon/generated/BlankCard.d.ts +3 -0
  17. package/lib/components/icon/generated/Box.d.ts +3 -0
  18. package/lib/components/icon/generated/Branch.d.ts +3 -0
  19. package/lib/components/icon/generated/Bulb.d.ts +3 -0
  20. package/lib/components/icon/generated/Calendar.d.ts +3 -0
  21. package/lib/components/icon/generated/California.d.ts +3 -0
  22. package/lib/components/icon/generated/Camera.d.ts +3 -0
  23. package/lib/components/icon/generated/CameraSquare.d.ts +3 -0
  24. package/lib/components/icon/generated/Cart.d.ts +3 -0
  25. package/lib/components/icon/generated/Chain.d.ts +3 -0
  26. package/lib/components/icon/generated/Check.d.ts +3 -0
  27. package/lib/components/icon/generated/CheckFill.d.ts +3 -0
  28. package/lib/components/icon/generated/CheckReverse.d.ts +3 -0
  29. package/lib/components/icon/generated/CheckRound.d.ts +3 -0
  30. package/lib/components/icon/generated/ChevronDown.d.ts +3 -0
  31. package/lib/components/icon/generated/ChevronLeft.d.ts +3 -0
  32. package/lib/components/icon/generated/ChevronRight.d.ts +3 -0
  33. package/lib/components/icon/generated/Clip.d.ts +3 -0
  34. package/lib/components/icon/generated/Close.d.ts +3 -0
  35. package/lib/components/icon/generated/Cloud.d.ts +3 -0
  36. package/lib/components/icon/generated/Dashboard.d.ts +3 -0
  37. package/lib/components/icon/generated/DashboardChart.d.ts +3 -0
  38. package/lib/components/icon/generated/Design.d.ts +3 -0
  39. package/lib/components/icon/generated/Dimming.d.ts +3 -0
  40. package/lib/components/icon/generated/DisabledArrows.d.ts +3 -0
  41. package/lib/components/icon/generated/DisabledInputArrow.d.ts +3 -0
  42. package/lib/components/icon/generated/Discover.d.ts +3 -0
  43. package/lib/components/icon/generated/Docs.d.ts +3 -0
  44. package/lib/components/icon/generated/Dollar.d.ts +3 -0
  45. package/lib/components/icon/generated/Dots.d.ts +3 -0
  46. package/lib/components/icon/generated/DotsAnimated.d.ts +3 -0
  47. package/lib/components/icon/generated/Download.d.ts +3 -0
  48. package/lib/components/icon/generated/Drag.d.ts +3 -0
  49. package/lib/components/icon/generated/DragHandler.d.ts +3 -0
  50. package/lib/components/icon/generated/ElkLogo.d.ts +3 -0
  51. package/lib/components/icon/generated/Email.d.ts +3 -0
  52. package/lib/components/icon/generated/EmailRound.d.ts +3 -0
  53. package/lib/components/icon/generated/Error.d.ts +3 -0
  54. package/lib/components/icon/generated/FacebookBlack.d.ts +3 -0
  55. package/lib/components/icon/generated/FacebookTransparent.d.ts +3 -0
  56. package/lib/components/icon/generated/Flower.d.ts +3 -0
  57. package/lib/components/icon/generated/FreeShipping.d.ts +3 -0
  58. package/lib/components/icon/generated/Gift.d.ts +3 -0
  59. package/lib/components/icon/generated/GiftCard.d.ts +3 -0
  60. package/lib/components/icon/generated/GiftGold.d.ts +3 -0
  61. package/lib/components/icon/generated/GiftTeal.d.ts +3 -0
  62. package/lib/components/icon/generated/Google.d.ts +3 -0
  63. package/lib/components/icon/generated/Guarantee.d.ts +3 -0
  64. package/lib/components/icon/generated/Hand.d.ts +3 -0
  65. package/lib/components/icon/generated/Heart.d.ts +3 -0
  66. package/lib/components/icon/generated/HeartOutlined.d.ts +3 -0
  67. package/lib/components/icon/generated/Help.d.ts +3 -0
  68. package/lib/components/icon/generated/House.d.ts +3 -0
  69. package/lib/components/icon/generated/IconBell.d.ts +3 -0
  70. package/lib/components/icon/generated/IconCheck.d.ts +3 -0
  71. package/lib/components/icon/generated/IconDotArrow.d.ts +3 -0
  72. package/lib/components/icon/generated/IconDotModalClose.d.ts +3 -0
  73. package/lib/components/icon/generated/IconDownload.d.ts +3 -0
  74. package/lib/components/icon/generated/IconInfo.d.ts +3 -0
  75. package/lib/components/icon/generated/IconJobsAssemble.d.ts +3 -0
  76. package/lib/components/icon/generated/IconJobsBondo.d.ts +3 -0
  77. package/lib/components/icon/generated/IconJobsPack.d.ts +3 -0
  78. package/lib/components/icon/generated/IconJobsPrint.d.ts +3 -0
  79. package/lib/components/icon/generated/IconJobsQa.d.ts +3 -0
  80. package/lib/components/icon/generated/IconJobsSand.d.ts +3 -0
  81. package/lib/components/icon/generated/IconMenu.d.ts +3 -0
  82. package/lib/components/icon/generated/IconMenuClose.d.ts +3 -0
  83. package/lib/components/icon/generated/IconMore.d.ts +3 -0
  84. package/lib/components/icon/generated/IconReorderOff.d.ts +3 -0
  85. package/lib/components/icon/generated/IconReorderOn.d.ts +3 -0
  86. package/lib/components/icon/generated/IconSequence.d.ts +3 -0
  87. package/lib/components/icon/generated/IconStar.d.ts +3 -0
  88. package/lib/components/icon/generated/IconStarFilled.d.ts +3 -0
  89. package/lib/components/icon/generated/IconUpload.d.ts +3 -0
  90. package/lib/components/icon/generated/IconUserProfile.d.ts +3 -0
  91. package/lib/components/icon/generated/IconUserStats.d.ts +3 -0
  92. package/lib/components/icon/generated/Info.d.ts +3 -0
  93. package/lib/components/icon/generated/InputArrow.d.ts +3 -0
  94. package/lib/components/icon/generated/Instagram.d.ts +3 -0
  95. package/lib/components/icon/generated/InstagramColored.d.ts +3 -0
  96. package/lib/components/icon/generated/Lamp.d.ts +3 -0
  97. package/lib/components/icon/generated/Leaf.d.ts +3 -0
  98. package/lib/components/icon/generated/Led.d.ts +3 -0
  99. package/lib/components/icon/generated/LeftQuote.d.ts +3 -0
  100. package/lib/components/icon/generated/Letter.d.ts +3 -0
  101. package/lib/components/icon/generated/Link.d.ts +3 -0
  102. package/lib/components/icon/generated/LiveTracking.d.ts +3 -0
  103. package/lib/components/icon/generated/Loader.d.ts +3 -0
  104. package/lib/components/icon/generated/Logo.d.ts +3 -0
  105. package/lib/components/icon/generated/Mastercard.d.ts +3 -0
  106. package/lib/components/icon/generated/Menu.d.ts +3 -0
  107. package/lib/components/icon/generated/MenuDown.d.ts +3 -0
  108. package/lib/components/icon/generated/MinusCircle.d.ts +3 -0
  109. package/lib/components/icon/generated/Moon.d.ts +3 -0
  110. package/lib/components/icon/generated/NavHelp.d.ts +3 -0
  111. package/lib/components/icon/generated/Next.d.ts +3 -0
  112. package/lib/components/icon/generated/One.d.ts +3 -0
  113. package/lib/components/icon/generated/Paint.d.ts +3 -0
  114. package/lib/components/icon/generated/Pencil.d.ts +3 -0
  115. package/lib/components/icon/generated/Pinterest.d.ts +3 -0
  116. package/lib/components/icon/generated/PinterestColored.d.ts +3 -0
  117. package/lib/components/icon/generated/Play.d.ts +3 -0
  118. package/lib/components/icon/generated/PlayFull.d.ts +3 -0
  119. package/lib/components/icon/generated/Plus.d.ts +3 -0
  120. package/lib/components/icon/generated/PlusCircle.d.ts +3 -0
  121. package/lib/components/icon/generated/PlusCircleBold.d.ts +3 -0
  122. package/lib/components/icon/generated/Pointing.d.ts +3 -0
  123. package/lib/components/icon/generated/Previous.d.ts +3 -0
  124. package/lib/components/icon/generated/Ray.d.ts +3 -0
  125. package/lib/components/icon/generated/Reach.d.ts +3 -0
  126. package/lib/components/icon/generated/ReachLogo.d.ts +3 -0
  127. package/lib/components/icon/generated/Returns.d.ts +3 -0
  128. package/lib/components/icon/generated/RightArrow.d.ts +3 -0
  129. package/lib/components/icon/generated/Ruler.d.ts +3 -0
  130. package/lib/components/icon/generated/Search.d.ts +3 -0
  131. package/lib/components/icon/generated/Settings.d.ts +3 -0
  132. package/lib/components/icon/generated/Share.d.ts +3 -0
  133. package/lib/components/icon/generated/SprkLogo.d.ts +3 -0
  134. package/lib/components/icon/generated/Star.d.ts +3 -0
  135. package/lib/components/icon/generated/StarHalf.d.ts +3 -0
  136. package/lib/components/icon/generated/StarOutlined.d.ts +3 -0
  137. package/lib/components/icon/generated/Sun.d.ts +3 -0
  138. package/lib/components/icon/generated/Tip.d.ts +3 -0
  139. package/lib/components/icon/generated/Trash.d.ts +3 -0
  140. package/lib/components/icon/generated/TrashRound.d.ts +3 -0
  141. package/lib/components/icon/generated/Trunk.d.ts +3 -0
  142. package/lib/components/icon/generated/Twitter.d.ts +3 -0
  143. package/lib/components/icon/generated/TwitterTransparent.d.ts +3 -0
  144. package/lib/components/icon/generated/User.d.ts +3 -0
  145. package/lib/components/icon/generated/UserSmiling.d.ts +3 -0
  146. package/lib/components/icon/generated/Visa.d.ts +3 -0
  147. package/lib/components/icon/generated/Warranty.d.ts +3 -0
  148. package/lib/components/icon/generated/Website.d.ts +3 -0
  149. package/lib/components/icon/generated/Windows.d.ts +3 -0
  150. package/lib/components/icon/generated/Wishlist.d.ts +3 -0
  151. package/lib/components/icon/generated/World.d.ts +3 -0
  152. package/lib/components/icon/generated/Yotpo.d.ts +3 -0
  153. package/lib/components/icon/generated/index.d.ts +151 -0
  154. package/lib/components/icon/icon.d.ts +3 -0
  155. package/lib/components/icon/icon.hooks.d.ts +1 -0
  156. package/lib/components/icon/icon.presets.d.ts +2 -0
  157. package/lib/components/icon/icon.props.d.ts +20 -0
  158. package/lib/components/icon/icon.styles.d.ts +1 -0
  159. package/lib/components/icon/icon.type.d.ts +1 -0
  160. package/lib/components/icon/index.d.ts +1 -0
  161. package/lib/helpers/layout.helpers.d.ts +16 -0
  162. package/lib/index.d.ts +3 -1
  163. package/lib/{theme → styles}/index.d.ts +1 -0
  164. package/lib/styles/media.d.ts +10 -0
  165. package/lib/{theme → styles}/theme-provider.d.ts +1 -1
  166. package/lib/{theme → styles}/theme.d.ts +1 -1
  167. package/lib/types/layout.d.ts +8 -0
  168. package/package.json +21 -3
  169. package/lib/components/Button/Button.stories.d.ts +0 -7
package/dist/index.cjs.js CHANGED
@@ -23,11 +23,46 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23
23
  PERFORMANCE OF THIS SOFTWARE.
24
24
  ***************************************************************************** */
25
25
 
26
+ var __assign = function() {
27
+ __assign = Object.assign || function __assign(t) {
28
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
29
+ s = arguments[i];
30
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
31
+ }
32
+ return t;
33
+ };
34
+ return __assign.apply(this, arguments);
35
+ };
36
+
37
+ function __rest(s, e) {
38
+ var t = {};
39
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
40
+ t[p] = s[p];
41
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
42
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
43
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
44
+ t[p[i]] = s[p[i]];
45
+ }
46
+ return t;
47
+ }
48
+
49
+ function __spreadArray(to, from, pack) {
50
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
51
+ if (ar || !(i in from)) {
52
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
53
+ ar[i] = from[i];
54
+ }
55
+ }
56
+ return to.concat(ar || Array.prototype.slice.call(from));
57
+ }
58
+
26
59
  function __makeTemplateObject(cooked, raw) {
27
60
  if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
28
61
  return cooked;
29
62
  }
30
63
 
64
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
65
+
31
66
  var reactIs$2 = {exports: {}};
32
67
 
33
68
  var reactIs_production_min$1 = {};
@@ -1267,9 +1302,9 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
1267
1302
 
1268
1303
  var hoistNonReactStatics_cjs = hoistNonReactStatics;
1269
1304
 
1270
- function y(){return (y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e}).apply(this,arguments)}var v=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},g=function(t){return null!==t&&"object"==typeof t&&"[object Object]"===(t.toString?t.toString():Object.prototype.toString.call(t))&&!reactIs$2.exports.typeOf(t)},S=Object.freeze([]),w=Object.freeze({});function E(e){return "function"==typeof e}function b(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function _(e){return e&&"string"==typeof e.styledComponentId}var N="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",C="undefined"!=typeof window&&"HTMLElement"in window,I=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&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.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),O="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"}:{};function R(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t);})),e}function D(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw "production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(R.apply(void 0,[O[e]].concat(n)).trim())}var j=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&D(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=0,c=t.length;a<c;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++);},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n);}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+=this.tag.getRule(s)+"/*!sc*/\n";return t},e}(),T=new Map,x=new Map,k=1,V=function(e){if(T.has(e))return T.get(e);for(;x.has(k);)k++;var t=k++;return "production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&D(16,""+t),T.set(e,t),x.set(t,e),t},z=function(e){return x.get(e)},B=function(e,t){t>=k&&(k=t+1),T.set(e,t),x.set(t,e);},M="style["+N+'][data-styled-version="5.3.3"]',G=new RegExp("^"+N+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r);},F=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,s=n.length;o<s;o++){var i=n[o].trim();if(i){var a=i.match(G);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(B(u,c),L(e,u,a[3]),e.getTag().insertRules(c,r)),r.length=0;}else r.push(i);}}},Y=function(){return "undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},q=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(N))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(N,"active"),r.setAttribute("data-styled-version","5.3.3");var i=Y();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},H=function(){function e(e){var t=this.element=q(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}D(17);}(t),this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),$=function(){function e(e){var t=this.element=q(e);this.nodes=t.childNodes,this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return !1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),W=function(){function e(e){this.rules=[],this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--;},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=C,J={isServer:!C,useCSSOMInjection:!I},X=function(){function e(e,t,n){void 0===e&&(e=w),void 0===t&&(t={}),this.options=y({},J,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&C&&U&&(U=!1,function(e){for(var t=document.querySelectorAll(M),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(N)&&(F(e,o),o.parentNode&&o.parentNode.removeChild(o));}}(this));}e.registerId=function(e){return V(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(y({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new W(o):r?new H(o):new $(o),new j(e)));var e,t,n,r,o;},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(V(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(V(e),n);},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},t.clearRules=function(e){this.getTag().clearGroup(V(e)),this.clearNames(e);},t.clearTag=function(){this.tag=void 0;},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var s=z(o);if(void 0!==s){var i=e.names.get(s),a=t.getGroup(o);if(i&&a&&i.size){var c=N+".g"+o+'[id="'+s+'"]',u="";void 0!==i&&i.forEach((function(e){e.length>0&&(u+=e+",");})),r+=""+a+c+'{content:"'+u+'"}/*!sc*/\n';}}}return r}(this)},e}(),Z=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=K(t%52)+n;return (K(t%52)+n).replace(Z,"$1-$2")}var ee=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},te=function(e){return ee(5381,e)};function ne(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(E(n)&&!_(n))return !1}return !0}var re=te("5.3.3"),oe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&ne(e),this.componentId=t,this.baseHash=ee(re,t),this.baseStyle=n,X.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else {var s=_e(this.rules,e,t,n).join(""),i=Q(ee(this.baseHash,s)>>>0);if(!t.hasNameForId(r,i)){var a=n(s,"."+i,void 0,r);t.insertRules(r,i,a);}o.push(i),this.staticRulesId=i;}else {for(var c=this.rules.length,u=ee(this.baseHash,n.hash),l="",d=0;d<c;d++){var h=this.rules[d];if("string"==typeof h)l+=h,"production"!==process.env.NODE_ENV&&(u=ee(u,h+d));else if(h){var p=_e(h,e,t,n),f=Array.isArray(p)?p.join(""):p;u=ee(u,f+d),l+=f;}}if(l){var m=Q(u>>>0);if(!t.hasNameForId(r,m)){var y=n(l,"."+m,void 0,r);t.insertRules(r,m,y);}o.push(m);}}return o.join(" ")},e}(),se=/^\s*\/\/.*$/gm,ie=[":","[",".","#"];function ae(e){var t,n,r,o,s=void 0===e?w:e,i=s.options,a=void 0===i?w:i,c=s.plugins,u=void 0===c?S:c,l=new stylis_min(a),d=[],p=function(e){function t(t){if(t)try{e(t+"}");}catch(e){}}return function(n,r,o,s,i,a,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t);}}}((function(e){d.push(e);})),f=function(e,r,s){return 0===r&&-1!==ie.indexOf(s[n.length])||s.match(o)?e:"."+t};function m(e,s,i,a){void 0===a&&(a="&");var c=e.replace(se,""),u=s&&i?i+" "+s+" { "+c+" }":c;return t=a,n=s,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),l(i||!s?"":s,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f));},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||D(15),ee(e,t.name)}),5381).toString():"",m}var ce=r__default["default"].createContext();ce.Consumer;var le=r__default["default"].createContext(),de=(le.Consumer,new X),he=ae();function pe(){return r$2.useContext(ce)||de}function fe(){return r$2.useContext(le)||he}var ye=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=he);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"));},this.toString=function(){return D(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t;}return e.prototype.getName=function(e){return void 0===e&&(e=he),this.name+e.hash},e}(),ve=/([A-Z])/,ge=/([A-Z])/g,Se=/^ms-/,we=function(e){return "-"+e.toLowerCase()};function Ee(e){return ve.test(e)?e.replace(ge,we).replace(Se,"-ms-"):e}var be=function(e){return null==e||!1===e||""===e};function _e(e,n,r,o){if(Array.isArray(e)){for(var s,i=[],a=0,c=e.length;a<c;a+=1)""!==(s=_e(e[a],n,r,o))&&(Array.isArray(s)?i.push.apply(i,s):i.push(s));return i}if(be(e))return "";if(_(e))return "."+e.styledComponentId;if(E(e)){if("function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!n)return e;var u=e(n);return "production"!==process.env.NODE_ENV&&reactIs$2.exports.isElement(u)&&console.warn(b(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),_e(u,n,r,o)}var l;return e instanceof ye?r?(e.inject(r,o),e.getName(o)):e:g(e)?function e(t,n){var r,o,s=[];for(var i in t)t.hasOwnProperty(i)&&!be(t[i])&&(Array.isArray(t[i])&&t[i].isCss||E(t[i])?s.push(Ee(i)+":",t[i],";"):g(t[i])?s.push.apply(s,e(t[i],i)):s.push(Ee(i)+": "+(r=i,null==(o=t[i])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in unitlessKeys?String(o).trim():o+"px")+";"));return n?[n+" {"].concat(s,["}"]):s}(e):e.toString()}var Ne=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return E(e)||g(e)?Ne(_e(v(S,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Ne(_e(v(e,n)))}var Ce=/invalid hook call/i,Ie=new Set,Pe=function(e,t){if("production"!==process.env.NODE_ENV){var n="The component "+e+(t?' with the id of "'+t+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",r=console.error;try{var o=!0;console.error=function(e){if(Ce.test(e))o=!1,Ie.delete(n);else {for(var t=arguments.length,s=new Array(t>1?t-1:0),i=1;i<t;i++)s[i-1]=arguments[i];r.apply(void 0,[e].concat(s));}},r$2.useRef(),o&&!Ie.has(n)&&(console.warn(n),Ie.add(n));}catch(e){Ce.test(e.message)&&Ie.delete(n);}finally{console.error=r;}}},Oe=function(e,t,n){return void 0===n&&(n=w),e.theme!==n.theme&&e.theme||t||n.theme},Re=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,De=/(^-|-$)/g;function je(e){return e.replace(Re,"-").replace(De,"")}var Te=function(e){return Q(te(e)>>>0)};function xe(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var ke=function(e){return "function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ve=function(e){return "__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ze(e,t,n){var r=e[n];ke(t)&&ke(r)?Be(r,t):e[n]=t;}function Be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,s=n;o<s.length;o++){var i=s[o];if(ke(i))for(var a in i)Ve(a)&&ze(e,i[a],a);}return e}var Me=r__default["default"].createContext();Me.Consumer;var Fe={};function Ye(e,t,n){var o=_(e),i=!xe(e),a=t.attrs,c=void 0===a?S:a,d=t.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":je(e);Fe[n]=(Fe[n]||0)+1;var r=n+"-"+Te("5.3.3"+n+Fe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):d,p=t.displayName,v=void 0===p?function(e){return xe(e)?"styled."+e:"Styled("+b(e)+")"}(e):p,g=t.displayName&&t.componentId?je(t.displayName)+"-"+t.componentId:t.componentId||h,N=o&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,A=t.shouldForwardProp;o&&e.shouldForwardProp&&(A=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var C,I=new oe(n,g,o?e.componentStyle:void 0),P=I.isStatic&&0===c.length,O=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,c=e.foldedComponentIds,d=e.shouldForwardProp,h=e.styledComponentId,p=e.target;"production"!==process.env.NODE_ENV&&r$2.useDebugValue(h);var m=function(e,t,n){void 0===e&&(e=w);var r=y({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,s,i=e;for(t in E(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],s=i[t],n&&s?n+" "+s:n||s):i[t];})),[r,o]}(Oe(t,r$2.useContext(Me),a)||w,t,o),v=m[0],g=m[1],S=function(e,t,n,r){var o=pe(),s=fe(),i=t?e.generateAndInjectStyles(w,o,s):e.generateAndInjectStyles(n,o,s);return "production"!==process.env.NODE_ENV&&r$2.useDebugValue(i),"production"!==process.env.NODE_ENV&&!t&&r&&r(i),i}(i,r,v,"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),b=n,_=g.$as||t.$as||g.as||t.as||p,N=xe(_),A=g!==t?y({},t,{},g):t,C={};for(var I in A)"$"!==I[0]&&"as"!==I&&("forwardedAs"===I?C.as=A[I]:(d?d(I,index,_):!N||index(I))&&(C[I]=A[I]));return t.style&&g.style!==t.style&&(C.style=y({},t.style,{},g.style)),C.className=Array.prototype.concat(c,h,S!==h?S:null,t.className,g.className).filter(Boolean).join(" "),C.ref=b,r$2.createElement(_,C)}(C,e,t,P)};return O.displayName=v,(C=r__default["default"].forwardRef(O)).attrs=N,C.componentStyle=I,C.displayName=v,C.shouldForwardProp=A,C.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):S,C.styledComponentId=g,C.target=o?e.target:e,C.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return {};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),s=r&&r+"-"+(xe(e)?e:je(b(e)));return Ye(e,y({},o,{attrs:N,componentId:s}),n)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Be({},e.defaultProps,t):t;}}),"production"!==process.env.NODE_ENV&&(Pe(v,g),C.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+s+".\nConsider 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 />"),r=!0,n={};}}}(v,g)),C.toString=function(){return "."+C.styledComponentId},i&&hoistNonReactStatics_cjs(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var qe=function(e){return function e(t,r,o){if(void 0===o&&(o=w),!reactIs$2.exports.isValidElementType(r))return D(1,String(r));var s=function(){return t(r,o,Ae.apply(void 0,arguments))};return s.withConfig=function(n){return e(t,r,y({},o,{},n))},s.attrs=function(n){return e(t,r,y({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},s}(Ye,e)};["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","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","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","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){qe[e]=qe(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"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&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["__styled-components-init__"]+=1);var styled = qe;
1305
+ function y(){return (y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e}).apply(this,arguments)}var v=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},g=function(t){return null!==t&&"object"==typeof t&&"[object Object]"===(t.toString?t.toString():Object.prototype.toString.call(t))&&!reactIs$2.exports.typeOf(t)},S=Object.freeze([]),w=Object.freeze({});function E(e){return "function"==typeof e}function b(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function _(e){return e&&"string"==typeof e.styledComponentId}var N="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",C="undefined"!=typeof window&&"HTMLElement"in window,I=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&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.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),O="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"}:{};function R(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t);})),e}function D(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw "production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(R.apply(void 0,[O[e]].concat(n)).trim())}var j=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&D(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=0,c=t.length;a<c;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++);},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n);}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+=this.tag.getRule(s)+"/*!sc*/\n";return t},e}(),T=new Map,x=new Map,k=1,V=function(e){if(T.has(e))return T.get(e);for(;x.has(k);)k++;var t=k++;return "production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&D(16,""+t),T.set(e,t),x.set(t,e),t},z=function(e){return x.get(e)},B=function(e,t){t>=k&&(k=t+1),T.set(e,t),x.set(t,e);},M="style["+N+'][data-styled-version="5.3.3"]',G=new RegExp("^"+N+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r);},F=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,s=n.length;o<s;o++){var i=n[o].trim();if(i){var a=i.match(G);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(B(u,c),L(e,u,a[3]),e.getTag().insertRules(c,r)),r.length=0;}else r.push(i);}}},Y=function(){return "undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},q=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(N))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(N,"active"),r.setAttribute("data-styled-version","5.3.3");var i=Y();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},H=function(){function e(e){var t=this.element=q(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}D(17);}(t),this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),$=function(){function e(e){var t=this.element=q(e);this.nodes=t.childNodes,this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return !1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),W=function(){function e(e){this.rules=[],this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--;},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=C,J={isServer:!C,useCSSOMInjection:!I},X=function(){function e(e,t,n){void 0===e&&(e=w),void 0===t&&(t={}),this.options=y({},J,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&C&&U&&(U=!1,function(e){for(var t=document.querySelectorAll(M),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(N)&&(F(e,o),o.parentNode&&o.parentNode.removeChild(o));}}(this));}e.registerId=function(e){return V(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(y({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new W(o):r?new H(o):new $(o),new j(e)));var e,t,n,r,o;},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(V(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(V(e),n);},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},t.clearRules=function(e){this.getTag().clearGroup(V(e)),this.clearNames(e);},t.clearTag=function(){this.tag=void 0;},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var s=z(o);if(void 0!==s){var i=e.names.get(s),a=t.getGroup(o);if(i&&a&&i.size){var c=N+".g"+o+'[id="'+s+'"]',u="";void 0!==i&&i.forEach((function(e){e.length>0&&(u+=e+",");})),r+=""+a+c+'{content:"'+u+'"}/*!sc*/\n';}}}return r}(this)},e}(),Z=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=K(t%52)+n;return (K(t%52)+n).replace(Z,"$1-$2")}var ee=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},te=function(e){return ee(5381,e)};function ne(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(E(n)&&!_(n))return !1}return !0}var re=te("5.3.3"),oe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&ne(e),this.componentId=t,this.baseHash=ee(re,t),this.baseStyle=n,X.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else {var s=_e(this.rules,e,t,n).join(""),i=Q(ee(this.baseHash,s)>>>0);if(!t.hasNameForId(r,i)){var a=n(s,"."+i,void 0,r);t.insertRules(r,i,a);}o.push(i),this.staticRulesId=i;}else {for(var c=this.rules.length,u=ee(this.baseHash,n.hash),l="",d=0;d<c;d++){var h=this.rules[d];if("string"==typeof h)l+=h,"production"!==process.env.NODE_ENV&&(u=ee(u,h+d));else if(h){var p=_e(h,e,t,n),f=Array.isArray(p)?p.join(""):p;u=ee(u,f+d),l+=f;}}if(l){var m=Q(u>>>0);if(!t.hasNameForId(r,m)){var y=n(l,"."+m,void 0,r);t.insertRules(r,m,y);}o.push(m);}}return o.join(" ")},e}(),se=/^\s*\/\/.*$/gm,ie=[":","[",".","#"];function ae(e){var t,n,r,o,s=void 0===e?w:e,i=s.options,a=void 0===i?w:i,c=s.plugins,u=void 0===c?S:c,l=new stylis_min(a),d=[],p=function(e){function t(t){if(t)try{e(t+"}");}catch(e){}}return function(n,r,o,s,i,a,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t);}}}((function(e){d.push(e);})),f=function(e,r,s){return 0===r&&-1!==ie.indexOf(s[n.length])||s.match(o)?e:"."+t};function m(e,s,i,a){void 0===a&&(a="&");var c=e.replace(se,""),u=s&&i?i+" "+s+" { "+c+" }":c;return t=a,n=s,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),l(i||!s?"":s,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f));},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||D(15),ee(e,t.name)}),5381).toString():"",m}var ce=r__default["default"].createContext();ce.Consumer;var le=r__default["default"].createContext(),de=(le.Consumer,new X),he=ae();function pe(){return r$2.useContext(ce)||de}function fe(){return r$2.useContext(le)||he}var ye=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=he);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"));},this.toString=function(){return D(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t;}return e.prototype.getName=function(e){return void 0===e&&(e=he),this.name+e.hash},e}(),ve=/([A-Z])/,ge=/([A-Z])/g,Se=/^ms-/,we=function(e){return "-"+e.toLowerCase()};function Ee(e){return ve.test(e)?e.replace(ge,we).replace(Se,"-ms-"):e}var be=function(e){return null==e||!1===e||""===e};function _e(e,n,r,o){if(Array.isArray(e)){for(var s,i=[],a=0,c=e.length;a<c;a+=1)""!==(s=_e(e[a],n,r,o))&&(Array.isArray(s)?i.push.apply(i,s):i.push(s));return i}if(be(e))return "";if(_(e))return "."+e.styledComponentId;if(E(e)){if("function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!n)return e;var u=e(n);return "production"!==process.env.NODE_ENV&&reactIs$2.exports.isElement(u)&&console.warn(b(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),_e(u,n,r,o)}var l;return e instanceof ye?r?(e.inject(r,o),e.getName(o)):e:g(e)?function e(t,n){var r,o,s=[];for(var i in t)t.hasOwnProperty(i)&&!be(t[i])&&(Array.isArray(t[i])&&t[i].isCss||E(t[i])?s.push(Ee(i)+":",t[i],";"):g(t[i])?s.push.apply(s,e(t[i],i)):s.push(Ee(i)+": "+(r=i,null==(o=t[i])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in unitlessKeys?String(o).trim():o+"px")+";"));return n?[n+" {"].concat(s,["}"]):s}(e):e.toString()}var Ne=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return E(e)||g(e)?Ne(_e(v(S,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Ne(_e(v(e,n)))}var Ce=/invalid hook call/i,Ie=new Set,Pe=function(e,t){if("production"!==process.env.NODE_ENV){var n="The component "+e+(t?' with the id of "'+t+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",r=console.error;try{var o=!0;console.error=function(e){if(Ce.test(e))o=!1,Ie.delete(n);else {for(var t=arguments.length,s=new Array(t>1?t-1:0),i=1;i<t;i++)s[i-1]=arguments[i];r.apply(void 0,[e].concat(s));}},r$2.useRef(),o&&!Ie.has(n)&&(console.warn(n),Ie.add(n));}catch(e){Ce.test(e.message)&&Ie.delete(n);}finally{console.error=r;}}},Oe=function(e,t,n){return void 0===n&&(n=w),e.theme!==n.theme&&e.theme||t||n.theme},Re=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,De=/(^-|-$)/g;function je(e){return e.replace(Re,"-").replace(De,"")}var Te=function(e){return Q(te(e)>>>0)};function xe(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var ke=function(e){return "function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ve=function(e){return "__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ze(e,t,n){var r=e[n];ke(t)&&ke(r)?Be(r,t):e[n]=t;}function Be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,s=n;o<s.length;o++){var i=s[o];if(ke(i))for(var a in i)Ve(a)&&ze(e,i[a],a);}return e}var Me=r__default["default"].createContext();Me.Consumer;function Le(e){var t=r$2.useContext(Me),n=r$2.useMemo((function(){return function(e,t){if(!e)return D(14);if(E(e)){var n=e(t);return "production"===process.env.NODE_ENV||null!==n&&!Array.isArray(n)&&"object"==typeof n?n:D(7)}return Array.isArray(e)||"object"!=typeof e?D(8):t?y({},t,{},e):e}(e.theme,t)}),[e.theme,t]);return e.children?r__default["default"].createElement(Me.Provider,{value:n},e.children):null}var Fe={};function Ye(e,t,n){var o=_(e),i=!xe(e),a=t.attrs,c=void 0===a?S:a,d=t.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":je(e);Fe[n]=(Fe[n]||0)+1;var r=n+"-"+Te("5.3.3"+n+Fe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):d,p=t.displayName,v=void 0===p?function(e){return xe(e)?"styled."+e:"Styled("+b(e)+")"}(e):p,g=t.displayName&&t.componentId?je(t.displayName)+"-"+t.componentId:t.componentId||h,N=o&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,A=t.shouldForwardProp;o&&e.shouldForwardProp&&(A=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var C,I=new oe(n,g,o?e.componentStyle:void 0),P=I.isStatic&&0===c.length,O=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,c=e.foldedComponentIds,d=e.shouldForwardProp,h=e.styledComponentId,p=e.target;"production"!==process.env.NODE_ENV&&r$2.useDebugValue(h);var m=function(e,t,n){void 0===e&&(e=w);var r=y({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,s,i=e;for(t in E(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],s=i[t],n&&s?n+" "+s:n||s):i[t];})),[r,o]}(Oe(t,r$2.useContext(Me),a)||w,t,o),v=m[0],g=m[1],S=function(e,t,n,r){var o=pe(),s=fe(),i=t?e.generateAndInjectStyles(w,o,s):e.generateAndInjectStyles(n,o,s);return "production"!==process.env.NODE_ENV&&r$2.useDebugValue(i),"production"!==process.env.NODE_ENV&&!t&&r&&r(i),i}(i,r,v,"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),b=n,_=g.$as||t.$as||g.as||t.as||p,N=xe(_),A=g!==t?y({},t,{},g):t,C={};for(var I in A)"$"!==I[0]&&"as"!==I&&("forwardedAs"===I?C.as=A[I]:(d?d(I,index,_):!N||index(I))&&(C[I]=A[I]));return t.style&&g.style!==t.style&&(C.style=y({},t.style,{},g.style)),C.className=Array.prototype.concat(c,h,S!==h?S:null,t.className,g.className).filter(Boolean).join(" "),C.ref=b,r$2.createElement(_,C)}(C,e,t,P)};return O.displayName=v,(C=r__default["default"].forwardRef(O)).attrs=N,C.componentStyle=I,C.displayName=v,C.shouldForwardProp=A,C.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):S,C.styledComponentId=g,C.target=o?e.target:e,C.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return {};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),s=r&&r+"-"+(xe(e)?e:je(b(e)));return Ye(e,y({},o,{attrs:N,componentId:s}),n)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Be({},e.defaultProps,t):t;}}),"production"!==process.env.NODE_ENV&&(Pe(v,g),C.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+s+".\nConsider 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 />"),r=!0,n={};}}}(v,g)),C.toString=function(){return "."+C.styledComponentId},i&&hoistNonReactStatics_cjs(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var qe=function(e){return function e(t,r,o){if(void 0===o&&(o=w),!reactIs$2.exports.isValidElementType(r))return D(1,String(r));var s=function(){return t(r,o,Ae.apply(void 0,arguments))};return s.withConfig=function(n){return e(t,r,y({},o,{},n))},s.attrs=function(n){return e(t,r,y({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},s}(Ye,e)};["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","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","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","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){qe[e]=qe(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"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&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["__styled-components-init__"]+=1);var styled = qe;
1271
1306
 
1272
- var StyledButton = styled.button(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border: 12px solid ", ";\n"], ["\n border: 12px solid ", ";\n"])), function (props) { return props.theme.colors.typography.alert; });
1307
+ var StyledButton = styled.button(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n border: 12px solid ", ";\n"], ["\n border: 12px solid ", ";\n"])), function (props) { return props.theme.colors.typography.alert; });
1273
1308
  /**
1274
1309
  * Primary UI component for user interaction
1275
1310
  */
@@ -1280,7 +1315,1533 @@ var Button = function (_a) {
1280
1315
  : 'storybook-button--secondary';
1281
1316
  return (r__default["default"].createElement(StyledButton, { className: ['storybook-button', "storybook-button--".concat(size), mode].join(' '), style: backgroundColor ? { backgroundColor: backgroundColor } : {}, type: "button", onClick: onClick }, label));
1282
1317
  };
1283
- var templateObject_1;
1318
+ var templateObject_1$2;
1319
+
1320
+ /**
1321
+ * A specialized version of `_.reduce` for arrays without support for
1322
+ * iteratee shorthands.
1323
+ *
1324
+ * @private
1325
+ * @param {Array} [array] The array to iterate over.
1326
+ * @param {Function} iteratee The function invoked per iteration.
1327
+ * @param {*} [accumulator] The initial value.
1328
+ * @param {boolean} [initAccum] Specify using the first element of `array` as
1329
+ * the initial value.
1330
+ * @returns {*} Returns the accumulated value.
1331
+ */
1332
+
1333
+ function arrayReduce$1(array, iteratee, accumulator, initAccum) {
1334
+ var index = -1,
1335
+ length = array == null ? 0 : array.length;
1336
+
1337
+ if (initAccum && length) {
1338
+ accumulator = array[++index];
1339
+ }
1340
+ while (++index < length) {
1341
+ accumulator = iteratee(accumulator, array[index], index, array);
1342
+ }
1343
+ return accumulator;
1344
+ }
1345
+
1346
+ var _arrayReduce = arrayReduce$1;
1347
+
1348
+ /**
1349
+ * The base implementation of `_.propertyOf` without support for deep paths.
1350
+ *
1351
+ * @private
1352
+ * @param {Object} object The object to query.
1353
+ * @returns {Function} Returns the new accessor function.
1354
+ */
1355
+
1356
+ function basePropertyOf$1(object) {
1357
+ return function(key) {
1358
+ return object == null ? undefined : object[key];
1359
+ };
1360
+ }
1361
+
1362
+ var _basePropertyOf = basePropertyOf$1;
1363
+
1364
+ var basePropertyOf = _basePropertyOf;
1365
+
1366
+ /** Used to map Latin Unicode letters to basic Latin letters. */
1367
+ var deburredLetters = {
1368
+ // Latin-1 Supplement block.
1369
+ '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
1370
+ '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
1371
+ '\xc7': 'C', '\xe7': 'c',
1372
+ '\xd0': 'D', '\xf0': 'd',
1373
+ '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
1374
+ '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
1375
+ '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
1376
+ '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
1377
+ '\xd1': 'N', '\xf1': 'n',
1378
+ '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
1379
+ '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
1380
+ '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
1381
+ '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
1382
+ '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
1383
+ '\xc6': 'Ae', '\xe6': 'ae',
1384
+ '\xde': 'Th', '\xfe': 'th',
1385
+ '\xdf': 'ss',
1386
+ // Latin Extended-A block.
1387
+ '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
1388
+ '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
1389
+ '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
1390
+ '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
1391
+ '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
1392
+ '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
1393
+ '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
1394
+ '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
1395
+ '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
1396
+ '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
1397
+ '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
1398
+ '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
1399
+ '\u0134': 'J', '\u0135': 'j',
1400
+ '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
1401
+ '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
1402
+ '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
1403
+ '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
1404
+ '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
1405
+ '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
1406
+ '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
1407
+ '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
1408
+ '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
1409
+ '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
1410
+ '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
1411
+ '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
1412
+ '\u0163': 't', '\u0165': 't', '\u0167': 't',
1413
+ '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
1414
+ '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
1415
+ '\u0174': 'W', '\u0175': 'w',
1416
+ '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
1417
+ '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
1418
+ '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
1419
+ '\u0132': 'IJ', '\u0133': 'ij',
1420
+ '\u0152': 'Oe', '\u0153': 'oe',
1421
+ '\u0149': "'n", '\u017f': 's'
1422
+ };
1423
+
1424
+ /**
1425
+ * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
1426
+ * letters to basic Latin letters.
1427
+ *
1428
+ * @private
1429
+ * @param {string} letter The matched letter to deburr.
1430
+ * @returns {string} Returns the deburred letter.
1431
+ */
1432
+ var deburrLetter$1 = basePropertyOf(deburredLetters);
1433
+
1434
+ var _deburrLetter = deburrLetter$1;
1435
+
1436
+ /** Detect free variable `global` from Node.js. */
1437
+
1438
+ var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
1439
+
1440
+ var _freeGlobal = freeGlobal$1;
1441
+
1442
+ var freeGlobal = _freeGlobal;
1443
+
1444
+ /** Detect free variable `self`. */
1445
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
1446
+
1447
+ /** Used as a reference to the global object. */
1448
+ var root$1 = freeGlobal || freeSelf || Function('return this')();
1449
+
1450
+ var _root = root$1;
1451
+
1452
+ var root = _root;
1453
+
1454
+ /** Built-in value references. */
1455
+ var Symbol$4 = root.Symbol;
1456
+
1457
+ var _Symbol = Symbol$4;
1458
+
1459
+ /**
1460
+ * A specialized version of `_.map` for arrays without support for iteratee
1461
+ * shorthands.
1462
+ *
1463
+ * @private
1464
+ * @param {Array} [array] The array to iterate over.
1465
+ * @param {Function} iteratee The function invoked per iteration.
1466
+ * @returns {Array} Returns the new mapped array.
1467
+ */
1468
+
1469
+ function arrayMap$1(array, iteratee) {
1470
+ var index = -1,
1471
+ length = array == null ? 0 : array.length,
1472
+ result = Array(length);
1473
+
1474
+ while (++index < length) {
1475
+ result[index] = iteratee(array[index], index, array);
1476
+ }
1477
+ return result;
1478
+ }
1479
+
1480
+ var _arrayMap = arrayMap$1;
1481
+
1482
+ /**
1483
+ * Checks if `value` is classified as an `Array` object.
1484
+ *
1485
+ * @static
1486
+ * @memberOf _
1487
+ * @since 0.1.0
1488
+ * @category Lang
1489
+ * @param {*} value The value to check.
1490
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1491
+ * @example
1492
+ *
1493
+ * _.isArray([1, 2, 3]);
1494
+ * // => true
1495
+ *
1496
+ * _.isArray(document.body.children);
1497
+ * // => false
1498
+ *
1499
+ * _.isArray('abc');
1500
+ * // => false
1501
+ *
1502
+ * _.isArray(_.noop);
1503
+ * // => false
1504
+ */
1505
+
1506
+ var isArray$1 = Array.isArray;
1507
+
1508
+ var isArray_1 = isArray$1;
1509
+
1510
+ var Symbol$3 = _Symbol;
1511
+
1512
+ /** Used for built-in method references. */
1513
+ var objectProto$1 = Object.prototype;
1514
+
1515
+ /** Used to check objects for own properties. */
1516
+ var hasOwnProperty = objectProto$1.hasOwnProperty;
1517
+
1518
+ /**
1519
+ * Used to resolve the
1520
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1521
+ * of values.
1522
+ */
1523
+ var nativeObjectToString$1 = objectProto$1.toString;
1524
+
1525
+ /** Built-in value references. */
1526
+ var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : undefined;
1527
+
1528
+ /**
1529
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
1530
+ *
1531
+ * @private
1532
+ * @param {*} value The value to query.
1533
+ * @returns {string} Returns the raw `toStringTag`.
1534
+ */
1535
+ function getRawTag$1(value) {
1536
+ var isOwn = hasOwnProperty.call(value, symToStringTag$1),
1537
+ tag = value[symToStringTag$1];
1538
+
1539
+ try {
1540
+ value[symToStringTag$1] = undefined;
1541
+ var unmasked = true;
1542
+ } catch (e) {}
1543
+
1544
+ var result = nativeObjectToString$1.call(value);
1545
+ if (unmasked) {
1546
+ if (isOwn) {
1547
+ value[symToStringTag$1] = tag;
1548
+ } else {
1549
+ delete value[symToStringTag$1];
1550
+ }
1551
+ }
1552
+ return result;
1553
+ }
1554
+
1555
+ var _getRawTag = getRawTag$1;
1556
+
1557
+ /** Used for built-in method references. */
1558
+
1559
+ var objectProto = Object.prototype;
1560
+
1561
+ /**
1562
+ * Used to resolve the
1563
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1564
+ * of values.
1565
+ */
1566
+ var nativeObjectToString = objectProto.toString;
1567
+
1568
+ /**
1569
+ * Converts `value` to a string using `Object.prototype.toString`.
1570
+ *
1571
+ * @private
1572
+ * @param {*} value The value to convert.
1573
+ * @returns {string} Returns the converted string.
1574
+ */
1575
+ function objectToString$1(value) {
1576
+ return nativeObjectToString.call(value);
1577
+ }
1578
+
1579
+ var _objectToString = objectToString$1;
1580
+
1581
+ var Symbol$2 = _Symbol,
1582
+ getRawTag = _getRawTag,
1583
+ objectToString = _objectToString;
1584
+
1585
+ /** `Object#toString` result references. */
1586
+ var nullTag = '[object Null]',
1587
+ undefinedTag = '[object Undefined]';
1588
+
1589
+ /** Built-in value references. */
1590
+ var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : undefined;
1591
+
1592
+ /**
1593
+ * The base implementation of `getTag` without fallbacks for buggy environments.
1594
+ *
1595
+ * @private
1596
+ * @param {*} value The value to query.
1597
+ * @returns {string} Returns the `toStringTag`.
1598
+ */
1599
+ function baseGetTag$1(value) {
1600
+ if (value == null) {
1601
+ return value === undefined ? undefinedTag : nullTag;
1602
+ }
1603
+ return (symToStringTag && symToStringTag in Object(value))
1604
+ ? getRawTag(value)
1605
+ : objectToString(value);
1606
+ }
1607
+
1608
+ var _baseGetTag = baseGetTag$1;
1609
+
1610
+ /**
1611
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
1612
+ * and has a `typeof` result of "object".
1613
+ *
1614
+ * @static
1615
+ * @memberOf _
1616
+ * @since 4.0.0
1617
+ * @category Lang
1618
+ * @param {*} value The value to check.
1619
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1620
+ * @example
1621
+ *
1622
+ * _.isObjectLike({});
1623
+ * // => true
1624
+ *
1625
+ * _.isObjectLike([1, 2, 3]);
1626
+ * // => true
1627
+ *
1628
+ * _.isObjectLike(_.noop);
1629
+ * // => false
1630
+ *
1631
+ * _.isObjectLike(null);
1632
+ * // => false
1633
+ */
1634
+
1635
+ function isObjectLike$1(value) {
1636
+ return value != null && typeof value == 'object';
1637
+ }
1638
+
1639
+ var isObjectLike_1 = isObjectLike$1;
1640
+
1641
+ var baseGetTag = _baseGetTag,
1642
+ isObjectLike = isObjectLike_1;
1643
+
1644
+ /** `Object#toString` result references. */
1645
+ var symbolTag = '[object Symbol]';
1646
+
1647
+ /**
1648
+ * Checks if `value` is classified as a `Symbol` primitive or object.
1649
+ *
1650
+ * @static
1651
+ * @memberOf _
1652
+ * @since 4.0.0
1653
+ * @category Lang
1654
+ * @param {*} value The value to check.
1655
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
1656
+ * @example
1657
+ *
1658
+ * _.isSymbol(Symbol.iterator);
1659
+ * // => true
1660
+ *
1661
+ * _.isSymbol('abc');
1662
+ * // => false
1663
+ */
1664
+ function isSymbol$1(value) {
1665
+ return typeof value == 'symbol' ||
1666
+ (isObjectLike(value) && baseGetTag(value) == symbolTag);
1667
+ }
1668
+
1669
+ var isSymbol_1 = isSymbol$1;
1670
+
1671
+ var Symbol$1 = _Symbol,
1672
+ arrayMap = _arrayMap,
1673
+ isArray = isArray_1,
1674
+ isSymbol = isSymbol_1;
1675
+
1676
+ /** Used as references for various `Number` constants. */
1677
+ var INFINITY = 1 / 0;
1678
+
1679
+ /** Used to convert symbols to primitives and strings. */
1680
+ var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
1681
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
1682
+
1683
+ /**
1684
+ * The base implementation of `_.toString` which doesn't convert nullish
1685
+ * values to empty strings.
1686
+ *
1687
+ * @private
1688
+ * @param {*} value The value to process.
1689
+ * @returns {string} Returns the string.
1690
+ */
1691
+ function baseToString$1(value) {
1692
+ // Exit early for strings to avoid a performance hit in some environments.
1693
+ if (typeof value == 'string') {
1694
+ return value;
1695
+ }
1696
+ if (isArray(value)) {
1697
+ // Recursively convert values (susceptible to call stack limits).
1698
+ return arrayMap(value, baseToString$1) + '';
1699
+ }
1700
+ if (isSymbol(value)) {
1701
+ return symbolToString ? symbolToString.call(value) : '';
1702
+ }
1703
+ var result = (value + '');
1704
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
1705
+ }
1706
+
1707
+ var _baseToString = baseToString$1;
1708
+
1709
+ var baseToString = _baseToString;
1710
+
1711
+ /**
1712
+ * Converts `value` to a string. An empty string is returned for `null`
1713
+ * and `undefined` values. The sign of `-0` is preserved.
1714
+ *
1715
+ * @static
1716
+ * @memberOf _
1717
+ * @since 4.0.0
1718
+ * @category Lang
1719
+ * @param {*} value The value to convert.
1720
+ * @returns {string} Returns the converted string.
1721
+ * @example
1722
+ *
1723
+ * _.toString(null);
1724
+ * // => ''
1725
+ *
1726
+ * _.toString(-0);
1727
+ * // => '-0'
1728
+ *
1729
+ * _.toString([1, 2, 3]);
1730
+ * // => '1,2,3'
1731
+ */
1732
+ function toString$3(value) {
1733
+ return value == null ? '' : baseToString(value);
1734
+ }
1735
+
1736
+ var toString_1 = toString$3;
1737
+
1738
+ var deburrLetter = _deburrLetter,
1739
+ toString$2 = toString_1;
1740
+
1741
+ /** Used to match Latin Unicode letters (excluding mathematical operators). */
1742
+ var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
1743
+
1744
+ /** Used to compose unicode character classes. */
1745
+ var rsComboMarksRange$3 = '\\u0300-\\u036f',
1746
+ reComboHalfMarksRange$3 = '\\ufe20-\\ufe2f',
1747
+ rsComboSymbolsRange$3 = '\\u20d0-\\u20ff',
1748
+ rsComboRange$3 = rsComboMarksRange$3 + reComboHalfMarksRange$3 + rsComboSymbolsRange$3;
1749
+
1750
+ /** Used to compose unicode capture groups. */
1751
+ var rsCombo$2 = '[' + rsComboRange$3 + ']';
1752
+
1753
+ /**
1754
+ * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
1755
+ * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
1756
+ */
1757
+ var reComboMark = RegExp(rsCombo$2, 'g');
1758
+
1759
+ /**
1760
+ * Deburrs `string` by converting
1761
+ * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
1762
+ * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
1763
+ * letters to basic Latin letters and removing
1764
+ * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
1765
+ *
1766
+ * @static
1767
+ * @memberOf _
1768
+ * @since 3.0.0
1769
+ * @category String
1770
+ * @param {string} [string=''] The string to deburr.
1771
+ * @returns {string} Returns the deburred string.
1772
+ * @example
1773
+ *
1774
+ * _.deburr('déjà vu');
1775
+ * // => 'deja vu'
1776
+ */
1777
+ function deburr$1(string) {
1778
+ string = toString$2(string);
1779
+ return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
1780
+ }
1781
+
1782
+ var deburr_1 = deburr$1;
1783
+
1784
+ /** Used to match words composed of alphanumeric characters. */
1785
+
1786
+ var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
1787
+
1788
+ /**
1789
+ * Splits an ASCII `string` into an array of its words.
1790
+ *
1791
+ * @private
1792
+ * @param {string} The string to inspect.
1793
+ * @returns {Array} Returns the words of `string`.
1794
+ */
1795
+ function asciiWords$1(string) {
1796
+ return string.match(reAsciiWord) || [];
1797
+ }
1798
+
1799
+ var _asciiWords = asciiWords$1;
1800
+
1801
+ /** Used to detect strings that need a more robust regexp to match words. */
1802
+
1803
+ var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
1804
+
1805
+ /**
1806
+ * Checks if `string` contains a word composed of Unicode symbols.
1807
+ *
1808
+ * @private
1809
+ * @param {string} string The string to inspect.
1810
+ * @returns {boolean} Returns `true` if a word is found, else `false`.
1811
+ */
1812
+ function hasUnicodeWord$1(string) {
1813
+ return reHasUnicodeWord.test(string);
1814
+ }
1815
+
1816
+ var _hasUnicodeWord = hasUnicodeWord$1;
1817
+
1818
+ /** Used to compose unicode character classes. */
1819
+
1820
+ var rsAstralRange$2 = '\\ud800-\\udfff',
1821
+ rsComboMarksRange$2 = '\\u0300-\\u036f',
1822
+ reComboHalfMarksRange$2 = '\\ufe20-\\ufe2f',
1823
+ rsComboSymbolsRange$2 = '\\u20d0-\\u20ff',
1824
+ rsComboRange$2 = rsComboMarksRange$2 + reComboHalfMarksRange$2 + rsComboSymbolsRange$2,
1825
+ rsDingbatRange = '\\u2700-\\u27bf',
1826
+ rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
1827
+ rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
1828
+ rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
1829
+ rsPunctuationRange = '\\u2000-\\u206f',
1830
+ rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
1831
+ rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
1832
+ rsVarRange$2 = '\\ufe0e\\ufe0f',
1833
+ rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
1834
+
1835
+ /** Used to compose unicode capture groups. */
1836
+ var rsApos$1 = "['\u2019]",
1837
+ rsBreak = '[' + rsBreakRange + ']',
1838
+ rsCombo$1 = '[' + rsComboRange$2 + ']',
1839
+ rsDigits = '\\d+',
1840
+ rsDingbat = '[' + rsDingbatRange + ']',
1841
+ rsLower = '[' + rsLowerRange + ']',
1842
+ rsMisc = '[^' + rsAstralRange$2 + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
1843
+ rsFitz$1 = '\\ud83c[\\udffb-\\udfff]',
1844
+ rsModifier$1 = '(?:' + rsCombo$1 + '|' + rsFitz$1 + ')',
1845
+ rsNonAstral$1 = '[^' + rsAstralRange$2 + ']',
1846
+ rsRegional$1 = '(?:\\ud83c[\\udde6-\\uddff]){2}',
1847
+ rsSurrPair$1 = '[\\ud800-\\udbff][\\udc00-\\udfff]',
1848
+ rsUpper = '[' + rsUpperRange + ']',
1849
+ rsZWJ$2 = '\\u200d';
1850
+
1851
+ /** Used to compose unicode regexes. */
1852
+ var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
1853
+ rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
1854
+ rsOptContrLower = '(?:' + rsApos$1 + '(?:d|ll|m|re|s|t|ve))?',
1855
+ rsOptContrUpper = '(?:' + rsApos$1 + '(?:D|LL|M|RE|S|T|VE))?',
1856
+ reOptMod$1 = rsModifier$1 + '?',
1857
+ rsOptVar$1 = '[' + rsVarRange$2 + ']?',
1858
+ rsOptJoin$1 = '(?:' + rsZWJ$2 + '(?:' + [rsNonAstral$1, rsRegional$1, rsSurrPair$1].join('|') + ')' + rsOptVar$1 + reOptMod$1 + ')*',
1859
+ rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
1860
+ rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
1861
+ rsSeq$1 = rsOptVar$1 + reOptMod$1 + rsOptJoin$1,
1862
+ rsEmoji = '(?:' + [rsDingbat, rsRegional$1, rsSurrPair$1].join('|') + ')' + rsSeq$1;
1863
+
1864
+ /** Used to match complex or compound words. */
1865
+ var reUnicodeWord = RegExp([
1866
+ rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
1867
+ rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
1868
+ rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
1869
+ rsUpper + '+' + rsOptContrUpper,
1870
+ rsOrdUpper,
1871
+ rsOrdLower,
1872
+ rsDigits,
1873
+ rsEmoji
1874
+ ].join('|'), 'g');
1875
+
1876
+ /**
1877
+ * Splits a Unicode `string` into an array of its words.
1878
+ *
1879
+ * @private
1880
+ * @param {string} The string to inspect.
1881
+ * @returns {Array} Returns the words of `string`.
1882
+ */
1883
+ function unicodeWords$1(string) {
1884
+ return string.match(reUnicodeWord) || [];
1885
+ }
1886
+
1887
+ var _unicodeWords = unicodeWords$1;
1888
+
1889
+ var asciiWords = _asciiWords,
1890
+ hasUnicodeWord = _hasUnicodeWord,
1891
+ toString$1 = toString_1,
1892
+ unicodeWords = _unicodeWords;
1893
+
1894
+ /**
1895
+ * Splits `string` into an array of its words.
1896
+ *
1897
+ * @static
1898
+ * @memberOf _
1899
+ * @since 3.0.0
1900
+ * @category String
1901
+ * @param {string} [string=''] The string to inspect.
1902
+ * @param {RegExp|string} [pattern] The pattern to match words.
1903
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
1904
+ * @returns {Array} Returns the words of `string`.
1905
+ * @example
1906
+ *
1907
+ * _.words('fred, barney, & pebbles');
1908
+ * // => ['fred', 'barney', 'pebbles']
1909
+ *
1910
+ * _.words('fred, barney, & pebbles', /[^, ]+/g);
1911
+ * // => ['fred', 'barney', '&', 'pebbles']
1912
+ */
1913
+ function words$1(string, pattern, guard) {
1914
+ string = toString$1(string);
1915
+ pattern = guard ? undefined : pattern;
1916
+
1917
+ if (pattern === undefined) {
1918
+ return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
1919
+ }
1920
+ return string.match(pattern) || [];
1921
+ }
1922
+
1923
+ var words_1 = words$1;
1924
+
1925
+ var arrayReduce = _arrayReduce,
1926
+ deburr = deburr_1,
1927
+ words = words_1;
1928
+
1929
+ /** Used to compose unicode capture groups. */
1930
+ var rsApos = "['\u2019]";
1931
+
1932
+ /** Used to match apostrophes. */
1933
+ var reApos = RegExp(rsApos, 'g');
1934
+
1935
+ /**
1936
+ * Creates a function like `_.camelCase`.
1937
+ *
1938
+ * @private
1939
+ * @param {Function} callback The function to combine each word.
1940
+ * @returns {Function} Returns the new compounder function.
1941
+ */
1942
+ function createCompounder$1(callback) {
1943
+ return function(string) {
1944
+ return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
1945
+ };
1946
+ }
1947
+
1948
+ var _createCompounder = createCompounder$1;
1949
+
1950
+ /**
1951
+ * The base implementation of `_.slice` without an iteratee call guard.
1952
+ *
1953
+ * @private
1954
+ * @param {Array} array The array to slice.
1955
+ * @param {number} [start=0] The start position.
1956
+ * @param {number} [end=array.length] The end position.
1957
+ * @returns {Array} Returns the slice of `array`.
1958
+ */
1959
+
1960
+ function baseSlice$1(array, start, end) {
1961
+ var index = -1,
1962
+ length = array.length;
1963
+
1964
+ if (start < 0) {
1965
+ start = -start > length ? 0 : (length + start);
1966
+ }
1967
+ end = end > length ? length : end;
1968
+ if (end < 0) {
1969
+ end += length;
1970
+ }
1971
+ length = start > end ? 0 : ((end - start) >>> 0);
1972
+ start >>>= 0;
1973
+
1974
+ var result = Array(length);
1975
+ while (++index < length) {
1976
+ result[index] = array[index + start];
1977
+ }
1978
+ return result;
1979
+ }
1980
+
1981
+ var _baseSlice = baseSlice$1;
1982
+
1983
+ var baseSlice = _baseSlice;
1984
+
1985
+ /**
1986
+ * Casts `array` to a slice if it's needed.
1987
+ *
1988
+ * @private
1989
+ * @param {Array} array The array to inspect.
1990
+ * @param {number} start The start position.
1991
+ * @param {number} [end=array.length] The end position.
1992
+ * @returns {Array} Returns the cast slice.
1993
+ */
1994
+ function castSlice$1(array, start, end) {
1995
+ var length = array.length;
1996
+ end = end === undefined ? length : end;
1997
+ return (!start && end >= length) ? array : baseSlice(array, start, end);
1998
+ }
1999
+
2000
+ var _castSlice = castSlice$1;
2001
+
2002
+ /** Used to compose unicode character classes. */
2003
+
2004
+ var rsAstralRange$1 = '\\ud800-\\udfff',
2005
+ rsComboMarksRange$1 = '\\u0300-\\u036f',
2006
+ reComboHalfMarksRange$1 = '\\ufe20-\\ufe2f',
2007
+ rsComboSymbolsRange$1 = '\\u20d0-\\u20ff',
2008
+ rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1,
2009
+ rsVarRange$1 = '\\ufe0e\\ufe0f';
2010
+
2011
+ /** Used to compose unicode capture groups. */
2012
+ var rsZWJ$1 = '\\u200d';
2013
+
2014
+ /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
2015
+ var reHasUnicode = RegExp('[' + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rsVarRange$1 + ']');
2016
+
2017
+ /**
2018
+ * Checks if `string` contains Unicode symbols.
2019
+ *
2020
+ * @private
2021
+ * @param {string} string The string to inspect.
2022
+ * @returns {boolean} Returns `true` if a symbol is found, else `false`.
2023
+ */
2024
+ function hasUnicode$2(string) {
2025
+ return reHasUnicode.test(string);
2026
+ }
2027
+
2028
+ var _hasUnicode = hasUnicode$2;
2029
+
2030
+ /**
2031
+ * Converts an ASCII `string` to an array.
2032
+ *
2033
+ * @private
2034
+ * @param {string} string The string to convert.
2035
+ * @returns {Array} Returns the converted array.
2036
+ */
2037
+
2038
+ function asciiToArray$1(string) {
2039
+ return string.split('');
2040
+ }
2041
+
2042
+ var _asciiToArray = asciiToArray$1;
2043
+
2044
+ /** Used to compose unicode character classes. */
2045
+
2046
+ var rsAstralRange = '\\ud800-\\udfff',
2047
+ rsComboMarksRange = '\\u0300-\\u036f',
2048
+ reComboHalfMarksRange = '\\ufe20-\\ufe2f',
2049
+ rsComboSymbolsRange = '\\u20d0-\\u20ff',
2050
+ rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
2051
+ rsVarRange = '\\ufe0e\\ufe0f';
2052
+
2053
+ /** Used to compose unicode capture groups. */
2054
+ var rsAstral = '[' + rsAstralRange + ']',
2055
+ rsCombo = '[' + rsComboRange + ']',
2056
+ rsFitz = '\\ud83c[\\udffb-\\udfff]',
2057
+ rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
2058
+ rsNonAstral = '[^' + rsAstralRange + ']',
2059
+ rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
2060
+ rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
2061
+ rsZWJ = '\\u200d';
2062
+
2063
+ /** Used to compose unicode regexes. */
2064
+ var reOptMod = rsModifier + '?',
2065
+ rsOptVar = '[' + rsVarRange + ']?',
2066
+ rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
2067
+ rsSeq = rsOptVar + reOptMod + rsOptJoin,
2068
+ rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
2069
+
2070
+ /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
2071
+ var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
2072
+
2073
+ /**
2074
+ * Converts a Unicode `string` to an array.
2075
+ *
2076
+ * @private
2077
+ * @param {string} string The string to convert.
2078
+ * @returns {Array} Returns the converted array.
2079
+ */
2080
+ function unicodeToArray$1(string) {
2081
+ return string.match(reUnicode) || [];
2082
+ }
2083
+
2084
+ var _unicodeToArray = unicodeToArray$1;
2085
+
2086
+ var asciiToArray = _asciiToArray,
2087
+ hasUnicode$1 = _hasUnicode,
2088
+ unicodeToArray = _unicodeToArray;
2089
+
2090
+ /**
2091
+ * Converts `string` to an array.
2092
+ *
2093
+ * @private
2094
+ * @param {string} string The string to convert.
2095
+ * @returns {Array} Returns the converted array.
2096
+ */
2097
+ function stringToArray$1(string) {
2098
+ return hasUnicode$1(string)
2099
+ ? unicodeToArray(string)
2100
+ : asciiToArray(string);
2101
+ }
2102
+
2103
+ var _stringToArray = stringToArray$1;
2104
+
2105
+ var castSlice = _castSlice,
2106
+ hasUnicode = _hasUnicode,
2107
+ stringToArray = _stringToArray,
2108
+ toString = toString_1;
2109
+
2110
+ /**
2111
+ * Creates a function like `_.lowerFirst`.
2112
+ *
2113
+ * @private
2114
+ * @param {string} methodName The name of the `String` case method to use.
2115
+ * @returns {Function} Returns the new case function.
2116
+ */
2117
+ function createCaseFirst$1(methodName) {
2118
+ return function(string) {
2119
+ string = toString(string);
2120
+
2121
+ var strSymbols = hasUnicode(string)
2122
+ ? stringToArray(string)
2123
+ : undefined;
2124
+
2125
+ var chr = strSymbols
2126
+ ? strSymbols[0]
2127
+ : string.charAt(0);
2128
+
2129
+ var trailing = strSymbols
2130
+ ? castSlice(strSymbols, 1).join('')
2131
+ : string.slice(1);
2132
+
2133
+ return chr[methodName]() + trailing;
2134
+ };
2135
+ }
2136
+
2137
+ var _createCaseFirst = createCaseFirst$1;
2138
+
2139
+ var createCaseFirst = _createCaseFirst;
2140
+
2141
+ /**
2142
+ * Converts the first character of `string` to upper case.
2143
+ *
2144
+ * @static
2145
+ * @memberOf _
2146
+ * @since 4.0.0
2147
+ * @category String
2148
+ * @param {string} [string=''] The string to convert.
2149
+ * @returns {string} Returns the converted string.
2150
+ * @example
2151
+ *
2152
+ * _.upperFirst('fred');
2153
+ * // => 'Fred'
2154
+ *
2155
+ * _.upperFirst('FRED');
2156
+ * // => 'FRED'
2157
+ */
2158
+ var upperFirst$1 = createCaseFirst('toUpperCase');
2159
+
2160
+ var upperFirst_1 = upperFirst$1;
2161
+
2162
+ var createCompounder = _createCompounder,
2163
+ upperFirst = upperFirst_1;
2164
+
2165
+ /**
2166
+ * Converts `string` to
2167
+ * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
2168
+ *
2169
+ * @static
2170
+ * @memberOf _
2171
+ * @since 3.1.0
2172
+ * @category String
2173
+ * @param {string} [string=''] The string to convert.
2174
+ * @returns {string} Returns the start cased string.
2175
+ * @example
2176
+ *
2177
+ * _.startCase('--foo-bar--');
2178
+ * // => 'Foo Bar'
2179
+ *
2180
+ * _.startCase('fooBar');
2181
+ * // => 'Foo Bar'
2182
+ *
2183
+ * _.startCase('__FOO_BAR__');
2184
+ * // => 'FOO BAR'
2185
+ */
2186
+ var startCase = createCompounder(function(result, word, index) {
2187
+ return result + (index ? ' ' : '') + upperFirst(word);
2188
+ });
2189
+
2190
+ var startCase_1 = startCase;
2191
+
2192
+ /**
2193
+ * lodash 3.0.2 (Custom Build) <https://lodash.com/>
2194
+ * Build: `lodash modern modularize exports="npm" -o ./`
2195
+ * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
2196
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
2197
+ * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
2198
+ * Available under MIT license <https://lodash.com/license>
2199
+ */
2200
+
2201
+ /**
2202
+ * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
2203
+ * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
2204
+ *
2205
+ * @static
2206
+ * @memberOf _
2207
+ * @category Lang
2208
+ * @param {*} value The value to check.
2209
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
2210
+ * @example
2211
+ *
2212
+ * _.isObject({});
2213
+ * // => true
2214
+ *
2215
+ * _.isObject([1, 2, 3]);
2216
+ * // => true
2217
+ *
2218
+ * _.isObject(1);
2219
+ * // => false
2220
+ */
2221
+ function isObject(value) {
2222
+ // Avoid a V8 JIT bug in Chrome 19-20.
2223
+ // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
2224
+ var type = typeof value;
2225
+ return !!value && (type == 'object' || type == 'function');
2226
+ }
2227
+
2228
+ var lodash_isobject = isObject;
2229
+
2230
+ var palette = {
2231
+ blue_100: '#ECF1FF',
2232
+ blue_200: '#BDCFFF',
2233
+ blue_300: '#7393E8',
2234
+ blue_400: '#335DC9',
2235
+ blue_500: '#151852',
2236
+ gold_100: '#FCF3E6',
2237
+ gold_200: '#EAD0AF',
2238
+ gold_300: '#D5AF7B',
2239
+ gold_400: '#BF8E47',
2240
+ gold_500: '#946A18',
2241
+ green_100: '#DFFBEC',
2242
+ green_200: '#9FF4C7',
2243
+ green_300: '#00cc88',
2244
+ green_400: '#00855B',
2245
+ green_500: '#25352F',
2246
+ monochrome_050: '#F8F8F8',
2247
+ monochrome_100: '#F0F0F0',
2248
+ monochrome_200: '#DFDFDF',
2249
+ monochrome_300: '#CECECE',
2250
+ monochrome_400: '#A1A1A1',
2251
+ monochrome_500: '#848484',
2252
+ monochrome_600: '#8F8C8B',
2253
+ monochrome_700: '#686868',
2254
+ monochrome_800: '#343434',
2255
+ monochrome_900: '#1C1C1C',
2256
+ monochrome_black: '#000000',
2257
+ monochrome_white: '#FFFFFF',
2258
+ pink_300: '#FFD8F4',
2259
+ pink_400: '#FFB1BA',
2260
+ pink_500: '#E00C7B',
2261
+ red_100: '#FFF0F1',
2262
+ red_200: '#FFCBD0',
2263
+ red_300: '#F47783',
2264
+ red_400: '#D43444',
2265
+ red_500: '#920110',
2266
+ translucent_black: 'rgba(28, 28, 28, 0.7)',
2267
+ translucent_cream: 'rgba(245, 245, 245, 0.2)',
2268
+ translucent_white: 'rgba(255, 255, 255, 0.7)',
2269
+ yellow_100: '#FFFBF2',
2270
+ yellow_200: '#FFF5DB',
2271
+ yellow_300: '#FFECB4',
2272
+ yellow_400: '#FADC87',
2273
+ yellow_500: '#BD8C02',
2274
+ };
2275
+ var fontsConfig = {
2276
+ badge: {
2277
+ family: 'Sohne Buch',
2278
+ lineHeight: '2.2rem',
2279
+ lineHeightMedium: '2.2rem',
2280
+ lineHeightSmaller: '2.2rem',
2281
+ size: '1.2rem',
2282
+ sizeMedium: '1.2rem',
2283
+ sizeSmaller: '1.2rem',
2284
+ },
2285
+ boldFontFamily: 'Sohne Halbfett',
2286
+ h1: {
2287
+ family: 'Sohne Halbfett',
2288
+ lineHeight: '7rem',
2289
+ lineHeightMedium: '5rem',
2290
+ lineHeightSmaller: '5rem',
2291
+ size: '5.8rem',
2292
+ sizeMedium: '4rem',
2293
+ sizeSmaller: '4rem',
2294
+ },
2295
+ h2: {
2296
+ family: 'Sohne Halbfett',
2297
+ lineHeight: '4.8rem',
2298
+ lineHeightMedium: '3.4rem',
2299
+ lineHeightSmaller: '3.4rem',
2300
+ size: '3.8rem',
2301
+ sizeMedium: '2.8rem',
2302
+ sizeSmaller: '2.8rem',
2303
+ },
2304
+ h3: {
2305
+ family: 'Sohne Dreiviertelfett',
2306
+ lineHeight: '3.6rem',
2307
+ lineHeightMedium: '2.6rem',
2308
+ lineHeightSmaller: '2.6rem',
2309
+ size: '2.8rem',
2310
+ sizeMedium: '2rem',
2311
+ sizeSmaller: '2rem',
2312
+ },
2313
+ h4: {
2314
+ family: 'Sohne Dreiviertelfett',
2315
+ lineHeight: '2.2rem',
2316
+ lineHeightMedium: '2.2rem',
2317
+ lineHeightSmaller: '2.2rem',
2318
+ size: '1.8rem',
2319
+ sizeMedium: '1.8rem',
2320
+ sizeSmaller: '1.8rem',
2321
+ },
2322
+ h5: {
2323
+ family: 'Sohne Halbfett',
2324
+ lineHeight: '2rem',
2325
+ lineHeightMedium: '2rem',
2326
+ lineHeightSmaller: '2rem',
2327
+ size: '1.6rem',
2328
+ sizeMedium: '1.6rem',
2329
+ sizeSmaller: '1.6rem',
2330
+ },
2331
+ hero: {
2332
+ family: 'Sohne Kraftig',
2333
+ familyMedium: 'Sohne Halbfett',
2334
+ familySmaller: 'Sohne Halbfett',
2335
+ lineHeight: '8.6rem',
2336
+ lineHeightMedium: '5.8rem',
2337
+ lineHeightSmaller: '5.8rem',
2338
+ size: '7.2rem',
2339
+ sizeMedium: '5.2rem',
2340
+ sizeSmaller: '5.2rem',
2341
+ },
2342
+ link: {
2343
+ family: 'Sohne Buch',
2344
+ lineHeight: '2.2rem',
2345
+ lineHeightSmaller: '2.2rem',
2346
+ size: '1.5rem',
2347
+ sizeSmaller: '1.5rem',
2348
+ },
2349
+ p0: {
2350
+ family: 'Sohne Buch',
2351
+ lineHeight: '3.6rem',
2352
+ lineHeightMedium: '3rem',
2353
+ lineHeightSmaller: '3rem',
2354
+ size: '2.4rem',
2355
+ sizeMedium: '2.2rem',
2356
+ sizeSmaller: '2.2rem',
2357
+ },
2358
+ p1: {
2359
+ family: 'Sohne Buch',
2360
+ lineHeight: '2.7rem',
2361
+ lineHeightMedium: '2.7rem',
2362
+ lineHeightSmaller: '2.7rem',
2363
+ size: '1.8rem',
2364
+ sizeMedium: '1.8rem',
2365
+ sizeSmaller: '1.8rem',
2366
+ },
2367
+ p2: {
2368
+ family: 'Sohne Buch',
2369
+ lineHeight: '2.2rem',
2370
+ lineHeightSmaller: '2.2rem',
2371
+ size: '1.5rem',
2372
+ sizeSmaller: '1.5rem',
2373
+ },
2374
+ p3: {
2375
+ family: 'Sohne Buch',
2376
+ lineHeight: '1.5rem',
2377
+ lineHeightSmaller: '1.5rem',
2378
+ size: '1.2rem',
2379
+ sizeSmaller: '1.2rem',
2380
+ },
2381
+ regularFontFamily: 'Sohne Buch',
2382
+ };
2383
+ var commonThemeData = {
2384
+ border: "1px solid ".concat(palette.monochrome_300),
2385
+ borderRadius: '.6rem',
2386
+ dimensions: {
2387
+ gridGutter: {
2388
+ lg: '3rem',
2389
+ md: '2.4rem',
2390
+ sm: '1.2rem',
2391
+ },
2392
+ headerHeight: {
2393
+ lg: '6.4rem',
2394
+ sm: '4.8rem',
2395
+ },
2396
+ maxWidth: '78rem',
2397
+ spacing: {
2398
+ s1: '1.6rem',
2399
+ s2: '2rem',
2400
+ s3: '2.4rem',
2401
+ s4: '4rem',
2402
+ s5: '6rem',
2403
+ s6: '12rem',
2404
+ },
2405
+ },
2406
+ fonts: fontsConfig,
2407
+ shadow: "0 .2rem .6rem rgba(0, 0, 0, 0.12)",
2408
+ transitions: {
2409
+ base: '0.15s ease',
2410
+ slow: '0.3s ease',
2411
+ slowest: '2s ease',
2412
+ turtle: '0.8s ease',
2413
+ },
2414
+ };
2415
+ var lightTheme = __assign(__assign({}, commonThemeData), { colors: {
2416
+ dividers: {
2417
+ t1: palette.monochrome_100,
2418
+ t2: palette.monochrome_300,
2419
+ t3: palette.monochrome_900,
2420
+ },
2421
+ iconography: {
2422
+ alert: palette.red_400,
2423
+ link: palette.green_400,
2424
+ t1: palette.monochrome_500,
2425
+ t2: palette.monochrome_900,
2426
+ t3: palette.monochrome_white,
2427
+ warning: palette.gold_400,
2428
+ },
2429
+ palette: palette,
2430
+ surface: {
2431
+ alert: palette.red_100,
2432
+ hover: palette.monochrome_050,
2433
+ level1: palette.monochrome_white,
2434
+ level2: palette.monochrome_100,
2435
+ level3: palette.monochrome_200,
2436
+ selected: palette.monochrome_050,
2437
+ success: palette.blue_100,
2438
+ successAlt: palette.green_400,
2439
+ warning: palette.yellow_100,
2440
+ },
2441
+ typography: {
2442
+ alert: palette.red_400,
2443
+ alt: palette.monochrome_white,
2444
+ link: palette.green_400,
2445
+ success: palette.blue_400,
2446
+ t1: palette.monochrome_900,
2447
+ t2: palette.monochrome_500,
2448
+ t3: palette.monochrome_300,
2449
+ warning: palette.gold_400,
2450
+ },
2451
+ }, name: 'Light Theme' });
2452
+ var darkTheme = __assign(__assign({}, commonThemeData), { colors: {
2453
+ dividers: {
2454
+ t1: palette.monochrome_600,
2455
+ t2: palette.monochrome_400,
2456
+ t3: palette.monochrome_white,
2457
+ },
2458
+ iconography: {
2459
+ alert: palette.red_200,
2460
+ link: palette.green_300,
2461
+ t1: palette.monochrome_300,
2462
+ t2: palette.monochrome_100,
2463
+ t3: palette.monochrome_900,
2464
+ warning: palette.gold_200,
2465
+ },
2466
+ palette: palette,
2467
+ surface: {
2468
+ alert: palette.red_500,
2469
+ hover: palette.monochrome_800,
2470
+ level1: palette.monochrome_900,
2471
+ level2: palette.monochrome_800,
2472
+ level3: palette.monochrome_600,
2473
+ selected: palette.monochrome_800,
2474
+ success: palette.blue_500,
2475
+ successAlt: palette.blue_100,
2476
+ warning: palette.gold_500,
2477
+ },
2478
+ typography: {
2479
+ alert: palette.red_200,
2480
+ alt: palette.monochrome_900,
2481
+ link: palette.green_300,
2482
+ success: palette.blue_200,
2483
+ t1: palette.monochrome_white,
2484
+ t2: palette.monochrome_300,
2485
+ t3: palette.monochrome_500,
2486
+ warning: palette.gold_200,
2487
+ },
2488
+ }, name: 'Dark Theme' });
2489
+ var getThemeColor = function (color, currentTheme) {
2490
+ var _a, _b;
2491
+ if (currentTheme === void 0) { currentTheme = lightTheme; }
2492
+ return (_b = (_a = currentTheme.colors.palette) === null || _a === void 0 ? void 0 : _a[color]) !== null && _b !== void 0 ? _b : color;
2493
+ };
2494
+ var combinationsByColor = function (appTheme) {
2495
+ if (appTheme === void 0) { appTheme = lightTheme; }
2496
+ return ({
2497
+ alert: {
2498
+ background: appTheme.colors.palette.red_400,
2499
+ color: appTheme.colors.palette.monochrome_white,
2500
+ hover: appTheme.colors.palette.red_300,
2501
+ selected: appTheme.colors.palette.red_500,
2502
+ },
2503
+ black: {
2504
+ background: appTheme.colors.palette.monochrome_900,
2505
+ color: appTheme.colors.palette.monochrome_white,
2506
+ hover: appTheme.colors.palette.monochrome_500,
2507
+ selected: appTheme.colors.palette.green_500,
2508
+ },
2509
+ blue: {
2510
+ background: appTheme.colors.palette.blue_400,
2511
+ color: appTheme.colors.palette.monochrome_white,
2512
+ hover: appTheme.colors.palette.blue_300,
2513
+ selected: appTheme.colors.palette.blue_500,
2514
+ },
2515
+ gold: {
2516
+ background: appTheme.colors.palette.gold_400,
2517
+ color: appTheme.colors.palette.monochrome_white,
2518
+ hover: appTheme.colors.palette.gold_300,
2519
+ selected: appTheme.colors.palette.gold_500,
2520
+ },
2521
+ green: {
2522
+ background: appTheme.colors.palette.green_400,
2523
+ color: appTheme.colors.palette.monochrome_white,
2524
+ hover: appTheme.colors.palette.green_300,
2525
+ selected: appTheme.colors.palette.green_500,
2526
+ },
2527
+ grey: {
2528
+ background: appTheme.colors.palette.monochrome_400,
2529
+ color: appTheme.colors.palette.monochrome_white,
2530
+ hover: appTheme.colors.palette.monochrome_300,
2531
+ selected: appTheme.colors.palette.monochrome_500,
2532
+ },
2533
+ greyLight: {
2534
+ background: appTheme.colors.palette.monochrome_200,
2535
+ color: appTheme.colors.palette.monochrome_black,
2536
+ hover: appTheme.colors.palette.monochrome_300,
2537
+ selected: appTheme.colors.palette.monochrome_400,
2538
+ },
2539
+ pink: {
2540
+ background: appTheme.colors.palette.pink_400,
2541
+ color: appTheme.colors.palette.monochrome_white,
2542
+ hover: appTheme.colors.palette.red_300,
2543
+ selected: appTheme.colors.palette.monochrome_black,
2544
+ },
2545
+ primary: {
2546
+ background: appTheme.colors.palette.green_400,
2547
+ color: appTheme.colors.palette.monochrome_white,
2548
+ hover: appTheme.colors.palette.green_300,
2549
+ selected: appTheme.colors.palette.green_500,
2550
+ },
2551
+ secondary: {
2552
+ background: appTheme.colors.palette.green_400,
2553
+ hover: appTheme.colors.palette.monochrome_500,
2554
+ selected: appTheme.colors.palette.green_500,
2555
+ },
2556
+ secondaryAlt: {
2557
+ background: appTheme.colors.palette.monochrome_black,
2558
+ color: appTheme.colors.palette.monochrome_white,
2559
+ hover: appTheme.colors.palette.monochrome_500,
2560
+ selected: appTheme.colors.palette.green_500,
2561
+ },
2562
+ white: {
2563
+ background: appTheme.colors.palette.monochrome_white,
2564
+ color: appTheme.colors.palette.monochrome_black,
2565
+ hover: appTheme.colors.palette.monochrome_300,
2566
+ selected: appTheme.colors.palette.monochrome_500,
2567
+ },
2568
+ yellow: {
2569
+ background: appTheme.colors.palette.yellow_500,
2570
+ color: appTheme.colors.palette.monochrome_white,
2571
+ hover: appTheme.colors.palette.green_400,
2572
+ selected: appTheme.colors.palette.monochrome_black,
2573
+ },
2574
+ });
2575
+ };
2576
+
2577
+ var ThemeProvider = function (_a) {
2578
+ var children = _a.children, theme = _a.theme;
2579
+ return r__default["default"].createElement(Le, { theme: theme }, children);
2580
+ };
2581
+ ThemeProvider.defaultProps = {
2582
+ theme: lightTheme,
2583
+ };
2584
+
2585
+ function _taggedTemplateLiteral(strings, raw) {
2586
+ if (!raw) {
2587
+ raw = strings.slice(0);
2588
+ }
2589
+
2590
+ return Object.freeze(Object.defineProperties(strings, {
2591
+ raw: {
2592
+ value: Object.freeze(raw)
2593
+ }
2594
+ }));
2595
+ }
2596
+
2597
+ function _templateObject5() {
2598
+ var data = _taggedTemplateLiteral(["\n @media (min-width: ", ") {\n ", "\n }\n "]);
2599
+
2600
+ _templateObject5 = function _templateObject5() {
2601
+ return data;
2602
+ };
2603
+
2604
+ return data;
2605
+ }
2606
+
2607
+ function _templateObject4() {
2608
+ var data = _taggedTemplateLiteral(["\n @media (max-width: ", ") {\n ", "\n }\n "]);
2609
+
2610
+ _templateObject4 = function _templateObject4() {
2611
+ return data;
2612
+ };
2613
+
2614
+ return data;
2615
+ }
2616
+
2617
+ function _templateObject3() {
2618
+ var data = _taggedTemplateLiteral(["\n @media (min-width: ", ") and\n (max-width: ", ") {\n ", "\n }\n "]);
2619
+
2620
+ _templateObject3 = function _templateObject3() {
2621
+ return data;
2622
+ };
2623
+
2624
+ return data;
2625
+ }
2626
+
2627
+ function _templateObject2() {
2628
+ var data = _taggedTemplateLiteral(["\n @media (min-width: ", ") {\n ", "\n }\n "]);
2629
+
2630
+ _templateObject2 = function _templateObject2() {
2631
+ return data;
2632
+ };
2633
+
2634
+ return data;
2635
+ }
2636
+
2637
+ function _templateObject() {
2638
+ var data = _taggedTemplateLiteral(["\n @media (max-width: ", ") {\n ", "\n }\n "]);
2639
+
2640
+ _templateObject = function _templateObject() {
2641
+ return data;
2642
+ };
2643
+
2644
+ return data;
2645
+ }
2646
+ /**
2647
+ * Default media breakpoints
2648
+ * @type {Object}
2649
+ */
2650
+
2651
+ var defaultBreakpoints = {
2652
+ huge: '1440px',
2653
+ large: '1170px',
2654
+ medium: '768px',
2655
+ small: '450px'
2656
+ };
2657
+
2658
+ function getSizeFromBreakpoint(breakpointValue) {
2659
+ var breakpoints = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2660
+
2661
+ if (breakpoints[breakpointValue]) {
2662
+ return breakpoints[breakpointValue];
2663
+ } else if (parseInt(breakpointValue)) {
2664
+ return breakpointValue;
2665
+ } else {
2666
+ console.error('styled-media-query: No valid breakpoint or size specified for media.');
2667
+ return '0';
2668
+ }
2669
+ }
2670
+ /**
2671
+ * Media query generator
2672
+ * @param {Object} breakpoints - Map labels to breakpoint sizes
2673
+ * @return {Object} - Media generators for each breakpoint
2674
+ */
2675
+
2676
+
2677
+ function generateMedia() {
2678
+ var breakpoints = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultBreakpoints;
2679
+
2680
+ var lessThan = function lessThan(breakpoint) {
2681
+ return function () {
2682
+ return Ae(_templateObject(), getSizeFromBreakpoint(breakpoint, breakpoints), Ae.apply(void 0, arguments));
2683
+ };
2684
+ };
2685
+
2686
+ var greaterThan = function greaterThan(breakpoint) {
2687
+ return function () {
2688
+ return Ae(_templateObject2(), getSizeFromBreakpoint(breakpoint, breakpoints), Ae.apply(void 0, arguments));
2689
+ };
2690
+ };
2691
+
2692
+ var between = function between(firstBreakpoint, secondBreakpoint) {
2693
+ return function () {
2694
+ return Ae(_templateObject3(), getSizeFromBreakpoint(firstBreakpoint, breakpoints), getSizeFromBreakpoint(secondBreakpoint, breakpoints), Ae.apply(void 0, arguments));
2695
+ };
2696
+ };
2697
+
2698
+ var oldStyle = Object.keys(breakpoints).reduce(function (acc, label) {
2699
+ var size = breakpoints[label];
2700
+
2701
+ acc.to[label] = function () {
2702
+ console.warn("styled-media-query: Use media.lessThan('".concat(label, "') instead of old media.to.").concat(label, " (Probably we'll deprecate it)"));
2703
+ return Ae(_templateObject4(), size, Ae.apply(void 0, arguments));
2704
+ };
2705
+
2706
+ acc.from[label] = function () {
2707
+ console.warn("styled-media-query: Use media.greaterThan('".concat(label, "') instead of old media.from.").concat(label, " (Probably we'll deprecate it)"));
2708
+ return Ae(_templateObject5(), size, Ae.apply(void 0, arguments));
2709
+ };
2710
+
2711
+ return acc;
2712
+ }, {
2713
+ to: {},
2714
+ from: {}
2715
+ });
2716
+ return Object.assign({
2717
+ lessThan: lessThan,
2718
+ greaterThan: greaterThan,
2719
+ between: between
2720
+ }, oldStyle);
2721
+ }
2722
+ /**
2723
+ * Media object with default breakpoints
2724
+ * @return {object} - Media generators for each size
2725
+ */
2726
+
2727
+ generateMedia();
2728
+
2729
+ var mediaBreakpoints = {
2730
+ // 1024px
2731
+ lg: '75em',
2732
+ // 641px
2733
+ md: '64em',
2734
+ sm: '45.06em',
2735
+ };
2736
+ var media = generateMedia(mediaBreakpoints);
2737
+
2738
+ var extractSizeValueFromProperty = function (prop, size) {
2739
+ var _a;
2740
+ if (lodash_isobject(prop)) {
2741
+ var _b = prop, lg = _b.lg, md = _b.md, sm = _b.sm;
2742
+ switch (size) {
2743
+ case 'lg':
2744
+ return lg;
2745
+ case 'md':
2746
+ return md !== null && md !== void 0 ? md : lg;
2747
+ case 'sm':
2748
+ return (_a = sm !== null && sm !== void 0 ? sm : md) !== null && _a !== void 0 ? _a : lg;
2749
+ default:
2750
+ return lg;
2751
+ }
2752
+ }
2753
+ return prop;
2754
+ };
2755
+ var extractValuesFromResolutionAwareProp = function (prop) {
2756
+ var _a, _b, _c;
2757
+ if (Array.isArray(prop)) {
2758
+ return prop.reduce(function (accumulator, currentProp) { return (__assign(__assign({}, accumulator), { lg: __spreadArray(__spreadArray([], accumulator.lg, true), [
2759
+ extractSizeValueFromProperty(currentProp, 'lg'),
2760
+ ], false), md: __spreadArray(__spreadArray([], accumulator.md, true), [
2761
+ extractSizeValueFromProperty(currentProp, 'md'),
2762
+ ], false), sm: __spreadArray(__spreadArray([], accumulator.sm, true), [
2763
+ extractSizeValueFromProperty(currentProp, 'sm'),
2764
+ ], false) })); }, { lg: [], md: [], sm: [] });
2765
+ }
2766
+ return lodash_isobject(prop)
2767
+ ? {
2768
+ // @ts-ignore
2769
+ lg: prop.lg,
2770
+ // @ts-ignore
2771
+ md: (_a = prop.md) !== null && _a !== void 0 ? _a : prop.lg,
2772
+ // @ts-ignore
2773
+ sm: (_c = (_b = prop.sm) !== null && _b !== void 0 ? _b : prop.md) !== null && _c !== void 0 ? _c : prop.lg,
2774
+ }
2775
+ : { lg: prop, md: prop, sm: prop };
2776
+ };
2777
+ var generateStylesForResolutionAwareProps = function (entries) {
2778
+ var lgCss = "";
2779
+ var mdCss = "";
2780
+ var smCss = "";
2781
+ entries.forEach(function (entry) {
2782
+ if (entry.lookIn && Array.isArray(entry.resolutionAwareProp)) {
2783
+ throw new Error('Specifying lookIn property when resolutionAwareProp is an array is not allowed');
2784
+ }
2785
+ var _a = extractValuesFromResolutionAwareProp(entry.resolutionAwareProp), lg = _a.lg, md = _a.md, sm = _a.sm;
2786
+ if (lg !== undefined) {
2787
+ var value = entry.lookIn ? entry.lookIn[lg] || lg : lg;
2788
+ lgCss += "".concat(entry.cssProperty, ": ").concat(entry.valueFormatter ? entry.valueFormatter(value, 'lg') : value, " ").concat(entry.isImportant ? '!important' : '', ";;");
2789
+ }
2790
+ if (md !== undefined) {
2791
+ var value = entry.lookIn ? entry.lookIn[md] || md : md;
2792
+ mdCss += "".concat(entry.cssProperty, ": ").concat(entry.valueFormatter ? entry.valueFormatter(value, 'md') : value, " ").concat(entry.isImportant ? '!important' : '', ";;");
2793
+ }
2794
+ if (sm !== undefined) {
2795
+ var value = entry.lookIn ? entry.lookIn[sm] || sm : sm;
2796
+ smCss += "".concat(entry.cssProperty, ": ").concat(entry.valueFormatter ? entry.valueFormatter(value, 'sm') : value, " ").concat(entry.isImportant ? '!important' : '', ";");
2797
+ }
2798
+ });
2799
+ // prettier-ignore
2800
+ return Ae(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n\n ", "\n\n ", "\n "], ["\n ", "\n\n ", "\n\n ", "\n "])), lgCss, mdCss && media.lessThan("md")(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), mdCss), smCss && media.lessThan("sm")(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), smCss));
2801
+ };
2802
+ var templateObject_1$1, templateObject_2$1, templateObject_3;
2803
+
2804
+ var StyledSvgIcon = styled.svg(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
2805
+ var size = _a.size, nwidth = _a.nwidth, nheight = _a.nheight, cursor = _a.cursor, top = _a.top, bottom = _a.bottom, right = _a.right, left = _a.left;
2806
+ var entries = [
2807
+ {
2808
+ cssProperty: 'width',
2809
+ resolutionAwareProp: nwidth !== null && nwidth !== void 0 ? nwidth : size,
2810
+ },
2811
+ {
2812
+ cssProperty: 'height',
2813
+ resolutionAwareProp: nheight !== null && nheight !== void 0 ? nheight : size,
2814
+ },
2815
+ ];
2816
+ return Ae(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n cursor: ", ";\n position: relative;\n top: ", ";\n bottom: ", ";\n right: ", ";\n left: ", ";\n "], ["\n ", ";\n cursor: ", ";\n position: relative;\n top: ", ";\n bottom: ", ";\n right: ", ";\n left: ", ";\n "])), generateStylesForResolutionAwareProps(entries), cursor, top || 'unset', bottom || 'unset', right || 'unset', left || 'unset');
2817
+ });
2818
+ var templateObject_1, templateObject_2;
2819
+
2820
+ var IconPresets = {
2821
+ color: 'monochrome_900',
2822
+ cursor: 'unset',
2823
+ opacity: 1,
2824
+ size: 'unset',
2825
+ strokeColor: 'green_400',
2826
+ strokeWidth: '10',
2827
+ };
2828
+
2829
+ var Icon = function (props) {
2830
+ var name = props.name, width = props.width, height = props.height, others = __rest(props, ["name", "width", "height"]);
2831
+ var fileName = startCase_1(name).replace(/ /g, '');
2832
+ // eslint-disable-next-line @typescript-eslint/no-var-requires,import/no-dynamic-require,global-require
2833
+ var svgIcon = require("./generated/".concat(fileName, ".tsx")).default;
2834
+ return (r__default["default"].createElement(StyledSvgIcon, __assign({ as: svgIcon, nheight: height, nwidth: width }, others)));
2835
+ };
2836
+ Icon.defaultProps = IconPresets;
1284
2837
 
1285
2838
  exports.Button = Button;
2839
+ exports.Icon = Icon;
2840
+ exports.ThemeProvider = ThemeProvider;
2841
+ exports.combinationsByColor = combinationsByColor;
2842
+ exports.darkTheme = darkTheme;
2843
+ exports.getThemeColor = getThemeColor;
2844
+ exports.lightTheme = lightTheme;
2845
+ exports.media = media;
2846
+ exports.palette = palette;
1286
2847
  //# sourceMappingURL=index.cjs.js.map