Socket
Socket
Sign inDemoInstall

styled-components

Package Overview
Dependencies
Maintainers
4
Versions
358
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

styled-components - npm Package Compare versions

Comparing version 6.0.0-beta.14 to 6.0.0-beta.15

2

dist/base.d.ts

@@ -11,3 +11,3 @@ import { SC_VERSION } from './constants';

export * from './secretInternals';
export { AttrsArg as Attrs, DefaultTheme, ShouldForwardProp } from './types';
export { Attrs, DefaultTheme, ShouldForwardProp } from './types';
export { createGlobalStyle, css, isStyledComponent, IStyleSheetManager, IStyleSheetContext, IStylisContext, keyframes, ServerStyleSheet, StyleSheetConsumer, StyleSheetContext, StyleSheetManager, ThemeConsumer, ThemeContext, ThemeProvider, useTheme, SC_VERSION as version, withTheme, };
import React from 'react';
import { Attrs, AttrsArg, ExecutionProps, Interpolation, IStyledComponent, IStyledComponentFactory, KnownTarget, Runtime, StyledOptions, StyledTarget, Styles } from '../types';
import { Attrs, ExecutionProps, Interpolation, IStyledComponent, IStyledComponentFactory, KnownTarget, Runtime, StyledOptions, StyledTarget, Styles } from '../types';
/**

@@ -21,3 +21,3 @@ * for types a and b, if b shares a field with a, mark a's field as optional

IStyledComponent<R, ExtractAttrsTarget<R, RuntimeInjectedProps, Target>, OuterProps & Props> & OuterStatics & Statics;
attrs: <T extends Attrs, TResult extends ExecutionProps = AttrsResult<T>, TTarget extends StyledTarget<R> = ExtractAttrsTarget<R, TResult, Target>>(attrs: AttrsArg<T extends (...args: any) => infer P ? OuterProps & P : OuterProps & T>) => Styled<R, TTarget, PropsSatisfiedByAttrs<T, OuterProps>, OuterStatics, Omit<RuntimeInjectedProps, keyof TResult> & TResult>;
attrs: <T extends Attrs, TResult extends ExecutionProps = AttrsResult<T>, TTarget extends StyledTarget<R> = ExtractAttrsTarget<R, TResult, Target>>(attrs: Attrs<T extends (...args: any) => infer P ? OuterProps & P : OuterProps & T>) => Styled<R, TTarget, PropsSatisfiedByAttrs<T, OuterProps>, OuterStatics, Omit<RuntimeInjectedProps, keyof TResult> & TResult>;
withConfig: (config: StyledOptions<R, OuterProps>) => Styled<R, Target, OuterProps, OuterStatics>;

@@ -24,0 +24,0 @@ }

import styled from './constructors/styled';
export * from './base';
export { CSSProp, DefaultTheme, ExecutionContext, ExecutionProps, IStyledComponent, IStyledComponentFactory, IStyledStatics, PolymorphicComponent, PolymorphicComponentProps, Runtime, StyledObject, StyledOptions, WebTarget, } from './types';
export { CSSProp, DefaultTheme, ExecutionContext, ExecutionProps, IStyledComponent, IStyledComponentFactory, IStyledStatics, PolymorphicComponent, PolymorphicComponentProps, RuleSet, Runtime, StyledObject, StyledOptions, WebTarget, } from './types';
export { styled, styled as default };

@@ -9,26 +9,26 @@ import React from 'react';

declare const styled: (<Target extends NativeTarget>(tag: Target) => Styled<"native", Target, Target extends import("../types").KnownTarget ? React.ComponentPropsWithRef<Target> : object, object, object>) & {
ActivityIndicator: Styled<"native", typeof import("react-native").ActivityIndicator, object, object, object>;
Button: Styled<"native", typeof import("react-native").Button, object, object, object>;
DatePickerIOS: Styled<"native", typeof import("react-native").DatePickerIOS, object, object, object>;
DrawerLayoutAndroid: Styled<"native", typeof import("react-native").DrawerLayoutAndroid, object, object, object>;
FlatList: Styled<"native", typeof import("react-native").FlatList, object, object, object>;
Image: Styled<"native", typeof import("react-native").Image, object, object, object>;
ImageBackground: Styled<"native", typeof import("react-native").ImageBackground, object, object, object>;
KeyboardAvoidingView: Styled<"native", typeof import("react-native").KeyboardAvoidingView, object, object, object>;
Modal: Styled<"native", typeof import("react-native").Modal, object, object, object>;
Pressable: Styled<"native", import("react").ForwardRefExoticComponent<import("react-native").PressableProps & import("react").RefAttributes<import("react-native").View>>, object, object, object>;
ProgressBarAndroid: Styled<"native", typeof import("react-native").ProgressBarAndroid, object, object, object>;
ProgressViewIOS: Styled<"native", typeof import("react-native").ProgressViewIOS, object, object, object>;
RefreshControl: Styled<"native", typeof import("react-native").RefreshControl, object, object, object>;
SafeAreaView: Styled<"native", typeof import("react-native").SafeAreaView, object, object, object>;
ScrollView: Styled<"native", typeof import("react-native").ScrollView, object, object, object>;
SectionList: Styled<"native", typeof import("react-native").SectionList, object, object, object>;
Slider: Styled<"native", typeof import("react-native").Slider, object, object, object>;
Switch: Styled<"native", typeof import("react-native").Switch, object, object, object>;
Text: Styled<"native", typeof import("react-native").Text, object, object, object>;
TextInput: Styled<"native", typeof import("react-native").TextInput, object, object, object>;
TouchableHighlight: Styled<"native", typeof import("react-native").TouchableHighlight, object, object, object>;
TouchableOpacity: Styled<"native", typeof import("react-native").TouchableOpacity, object, object, object>;
View: Styled<"native", typeof import("react-native").View, object, object, object>;
VirtualizedList: Styled<"native", typeof import("react-native").VirtualizedList, object, object, object>;
ActivityIndicator: Styled<"native", typeof import("react-native").ActivityIndicator, import("react-native").ActivityIndicatorProps, object, object>;
Button: Styled<"native", typeof import("react-native").Button, import("react-native").ButtonProps, object, object>;
DatePickerIOS: Styled<"native", typeof import("react-native").DatePickerIOS, import("react-native").DatePickerIOSProps, object, object>;
DrawerLayoutAndroid: Styled<"native", typeof import("react-native").DrawerLayoutAndroid, import("react-native").DrawerLayoutAndroidProps, object, object>;
FlatList: Styled<"native", typeof import("react-native").FlatList, import("react-native").FlatListProps<unknown>, object, object>;
Image: Styled<"native", typeof import("react-native").Image, import("react-native").ImageProps, object, object>;
ImageBackground: Styled<"native", typeof import("react-native").ImageBackground, import("react-native").ImageBackgroundProps, object, object>;
KeyboardAvoidingView: Styled<"native", typeof import("react-native").KeyboardAvoidingView, import("react-native").KeyboardAvoidingViewProps, object, object>;
Modal: Styled<"native", typeof import("react-native").Modal, import("react-native").ModalBaseProps & import("react-native").ModalPropsIOS & import("react-native").ModalPropsAndroid & import("react-native").ViewProps, object, object>;
Pressable: Styled<"native", import("react").ForwardRefExoticComponent<import("react-native").PressableProps & import("react").RefAttributes<import("react-native").View>>, import("react-native").PressableProps & import("react").RefAttributes<import("react-native").View>, object, object>;
ProgressBarAndroid: Styled<"native", typeof import("react-native").ProgressBarAndroid, import("react-native").ProgressBarAndroidProps, object, object>;
ProgressViewIOS: Styled<"native", typeof import("react-native").ProgressViewIOS, import("react-native").ProgressViewIOSProps, object, object>;
RefreshControl: Styled<"native", typeof import("react-native").RefreshControl, import("react-native").RefreshControlProps, object, object>;
SafeAreaView: Styled<"native", typeof import("react-native").SafeAreaView, import("react-native").ViewProps, object, object>;
ScrollView: Styled<"native", typeof import("react-native").ScrollView, import("react-native").ScrollViewProps, object, object>;
SectionList: Styled<"native", typeof import("react-native").SectionList, import("react-native").SectionListProps<unknown, unknown>, object, object>;
Slider: Styled<"native", typeof import("react-native").Slider, import("react-native").SliderProps, object, object>;
Switch: Styled<"native", typeof import("react-native").Switch, import("react-native").SwitchProps, object, object>;
Text: Styled<"native", typeof import("react-native").Text, import("react-native").TextProps, object, object>;
TextInput: Styled<"native", typeof import("react-native").TextInput, import("react-native").TextInputProps, object, object>;
TouchableHighlight: Styled<"native", typeof import("react-native").TouchableHighlight, import("react-native").TouchableHighlightProps, object, object>;
TouchableOpacity: Styled<"native", typeof import("react-native").TouchableOpacity, import("react-native").TouchableOpacityProps, object, object>;
View: Styled<"native", typeof import("react-native").View, import("react-native").ViewProps, object, object>;
VirtualizedList: Styled<"native", typeof import("react-native").VirtualizedList, import("react-native").VirtualizedListProps<unknown>, object, object>;
};

@@ -35,0 +35,0 @@ export { DefaultTheme, ExecutionContext, ExecutionProps, IStyledComponent, IStyledComponentFactory, IStyledStatics, NativeTarget, PolymorphicComponent, PolymorphicComponentProps, Runtime, StyledObject, StyledOptions, } from '../types';

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react"),n=require("shallowequal"),r=require("stylis"),o=require("@emotion/unitless");function s(e){return e&&e.__esModule?e:{default:e}}var i=/*#__PURE__*/s(t),a=/*#__PURE__*/s(n),c=/*#__PURE__*/s(o),l="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",u="6.0.0-beta.14",p="undefined"!=typeof window&&"HTMLElement"in window,d=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),h={},f=/invalid hook call/i,y=new Set,m=function(n,r){if("production"!==process.env.NODE_ENV){var o=r?' with the id of "'.concat(r,'"'):"",s="The component ".concat(n).concat(o," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];f.test(t)?(a=!1,y.delete(s)):i.apply(void 0,e.__spreadArray([t],n,!1))},t.useRef(),a&&!y.has(s)&&(console.warn(s),y.add(s))}catch(e){f.test(e.message)&&y.delete(s)}finally{console.error=i}}},v=Object.freeze([]),g=Object.freeze({});function S(e,t,n){return void 0===n&&(n=g),e.theme!==n.theme&&e.theme||t||n.theme}var _=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),w=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,b=/(^-|-$)/g;function E(e){return e.replace(w,"-").replace(b,"")}var N=/(a)(d)/gi,P=function(e){return String.fromCharCode(e+(e>25?39:97))};function C(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=P(t%52)+n;return(P(t%52)+n).replace(N,"$1-$2")}var A,I=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},O=function(e){return I(5381,e)};function x(e){return C(O(e)>>>0)}function R(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function T(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var D="function"==typeof Symbol&&Symbol.for,j=D?Symbol.for("react.memo"):60115,k=D?Symbol.for("react.forward_ref"):60112,V={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},M={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},F={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},B=((A={})[k]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},A[j]=F,A);function $(e){return("type"in(t=e)&&t.type.$$typeof)===j?F:"$$typeof"in e?B[e.$$typeof]:V;var t}var z=Object.defineProperty,L=Object.getOwnPropertyNames,G=Object.getOwnPropertySymbols,q=Object.getOwnPropertyDescriptor,Y=Object.getPrototypeOf,H=Object.prototype;function W(e,t,n){if("string"!=typeof t){if(H){var r=Y(t);r&&r!==H&&W(e,r,n)}var o=L(t);G&&(o=o.concat(G(t)));for(var s=$(e),i=$(t),a=0;a<o.length;++a){var c=o[a];if(!(c in M||n&&n[c]||i&&c in i||s&&c in s)){var l=q(t,c);try{z(e,c,l)}catch(e){}}}}return e}function U(e){return"function"==typeof e}function J(e){return"object"==typeof e&&"styledComponentId"in e}function X(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Z(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function K(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Q(e,t,n){if(void 0===n&&(n=!1),!n&&!K(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Q(e[r],t[r]);else if(K(t))for(var r in t)e[r]=Q(e[r],t[r]);return e}var ee="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 te(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function ne(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(te.apply(void 0,e.__spreadArray([ee[t]],n,!1)).trim())}var re=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw ne(16,"".concat(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=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+="".concat(this.tag.getRule(s)).concat("/*!sc*/\n");return t},e}(),oe=new Map,se=new Map,ie=1,ae=function(e){if(oe.has(e))return oe.get(e);for(;se.has(ie);)ie++;var t=ie++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw ne(16,"".concat(t));return oe.set(e,t),se.set(t,e),t},ce=function(e,t){oe.set(e,t),se.set(t,e)},le="style[".concat(l,"][").concat("data-styled-version",'="').concat(u,'"]'),ue=new RegExp("^".concat(l,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),pe=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)},de=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split("/*!sc*/\n"),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var c=a.match(ue);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(ce(u,l),pe(e,u,c[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(a)}}};function he(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var fe=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(l))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(l,"active"),r.setAttribute("data-styled-version",u);var i=he();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},ye=function(){function e(e){this.element=fe(e),this.element.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}throw ne(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),me=function(){function e(e){this.element=fe(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),ve=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),ge=p,Se={isServer:!p,useCSSOMInjection:!d},_e=function(){function t(t,n,r){void 0===t&&(t=g),void 0===n&&(n={}),this.options=e.__assign(e.__assign({},Se),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&p&&ge&&(ge=!1,function(e){for(var t=document.querySelectorAll(le),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(l)&&(de(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}return t.registerId=function(e){return ae(e)},t.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new t(e.__assign(e.__assign({},this.options),n),this.gs,r&&this.names||void 0)},t.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new ve(n):t?new ye(n):new me(n)}(this.options),new re(e)));var e},t.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.prototype.registerName=function(e,t){if(ae(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.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(ae(e),n)},t.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.prototype.clearRules=function(e){this.getTag().clearGroup(ae(e)),this.clearNames(e)},t.prototype.clearTag=function(){this.tag=void 0},t.prototype.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return se.get(e)}(n);if(void 0===o)return"continue";var s=e.names.get(o),i=t.getGroup(n);if(void 0===s||0===i.length)return"continue";var a="".concat(l,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat("/*!sc*/\n")},s=0;s<n;s++)o(s);return r}(this)},t}(),we=/^\s*\/\/.*$/gm,be=[":","[",".","#"];function Ee(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&(e.children=Ee(e.children,t)),e})}function Ne(e){var t,n,o,s,i=void 0===e?g:e,a=i.options,c=void 0===a?g:a,l=i.plugins,u=void 0===l?v:l,p=function(e,r,o){return 0===r&&be.includes(o[n.length])||o.match(s)?e:".".concat(t)},d=u.slice();c.prefix&&d.unshift(r.prefixer),d.push(function(e){e.type===r.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(o,p))},r.stringify);var h=function(e,i,a,l){void 0===i&&(i=""),void 0===a&&(a=""),void 0===l&&(l="&"),t=l,n=i,o=new RegExp("\\".concat(n,"\\b"),"g"),s=new RegExp("(\\".concat(n,"\\b){2,}"));var u=e.replace(we,""),p=r.compile(a||i?"".concat(a," ").concat(i," { ").concat(u," }"):u);return c.namespace&&(p=Ee(p,c.namespace)),function(e,t){for(var n=[],r=0,o=void 0;r<e.length;r+=1)(o=t(e[r],r,e,t))&&n.push(o);return n}(p,r.middleware(d))};return h.hash=u.length?u.reduce(function(e,t){return t.name||ne(15),I(e,t.name)},5381).toString():"",h}var Pe=new _e,Ce=Ne(),Ae=i.default.createContext({shouldForwardProp:void 0,styleSheet:Pe,stylis:Ce}),Ie=Ae.Consumer,Oe=i.default.createContext(void 0);function xe(){return t.useContext(Ae)}function Re(e){var n=t.useState(e.stylisPlugins),r=n[0],o=n[1],s=xe().styleSheet,c=t.useMemo(function(){var t=s;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,s]),l=t.useMemo(function(){return Ne({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);return t.useEffect(function(){a.default(r,e.stylisPlugins)||o(e.stylisPlugins)},[e.stylisPlugins]),i.default.createElement(Ae.Provider,{value:{shouldForwardProp:e.shouldForwardProp,styleSheet:c,stylis:l}},i.default.createElement(Oe.Provider,{value:l},e.children))}var Te=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ce);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){throw ne(12,String(n.name))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Ce),this.name+e.hash},e}(),De=function(e){return e>="A"&&e<="Z"};function je(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;De(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var ke=function(e){return null==e||!1===e||""===e},Ve=function(t){var n,r=[];for(var o in t){var s=t[o];t.hasOwnProperty(o)&&!ke(s)&&(Array.isArray(s)&&s.isCss||U(s)?r.push("".concat(je(o),":"),s,";"):K(s)?r.push.apply(r,e.__spreadArray(e.__spreadArray(["".concat(o," {")],Ve(s),!1),["}"],!1)):r.push("".concat(je(o),": ").concat(null==(n=s)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||o in c.default?String(n).trim():"".concat(n,"px"),";")))}return r};function Me(e,t,n,r){if(ke(e))return[];if(J(e))return[".".concat(e.styledComponentId)];if(U(e)){if(!U(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof Te||K(o)||null===o||console.error("".concat(R(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.")),Me(o,t,n,r)}var s;return e instanceof Te?n?(e.inject(n,r),[e.getName(r)]):[e]:K(e)?Ve(e):Array.isArray(e)?e.flatMap(function(e){return Me(e,t,n,r)}):[e.toString()]}function Fe(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(U(n)&&!J(n))return!1}return!0}var Be=O(u),$e=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Fe(e),this.componentId=t,this.baseHash=I(Be,t),this.baseStyle=n,_e.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=X(r,this.staticRulesId);else{var o=Z(Me(this.rules,e,t,n)),s=C(I(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}r=X(r,s),this.staticRulesId=s}else{for(var a=I(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=I(a,u));else if(u){var p=Z(Me(u,e,t,n));a=I(a,p),c+=p}}if(c){var d=C(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),r=X(r,d)}}return r},e}(),ze=i.default.createContext(void 0),Le=ze.Consumer;function Ge(){return t.useContext(ze)}var qe={};function Ye(n,r,o){var s=J(n),a=n,c=!T(n),l=r.attrs,p=void 0===l?v:l,d=r.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":E(e);qe[n]=(qe[n]||0)+1;var r="".concat(n,"-").concat(x(u+n+qe[n]));return t?"".concat(t,"-").concat(r):r}(r.displayName,r.parentComponentId):d,f=r.displayName,y=void 0===f?function(e){return T(e)?"styled.".concat(e):"Styled(".concat(R(e),")")}(n):f,w=r.displayName&&r.componentId?"".concat(E(r.displayName),"-").concat(r.componentId):r.componentId||h,b=s&&a.attrs?a.attrs.concat(p).filter(Boolean):p,N=r.shouldForwardProp;if(s&&a.shouldForwardProp){var P=a.shouldForwardProp;if(r.shouldForwardProp){var C=r.shouldForwardProp;N=function(e,t){return P(e,t)&&C(e,t)}}else N=P}var A=new $e(o,w,s?a.componentStyle:void 0),I=A.isStatic&&0===p.length;function O(n,r){return function(n,r,o,s){var i=n.attrs,a=n.componentStyle,c=n.defaultProps,l=n.foldedComponentIds,u=n.styledComponentId,p=n.target,d=Ge(),h=xe(),f=n.shouldForwardProp||h.shouldForwardProp;"production"!==process.env.NODE_ENV&&t.useDebugValue(u);var y=function(t,n,r){for(var o,s=e.__assign(e.__assign({},n),{className:void 0,theme:r}),i=0;i<t.length;i+=1){var a=U(o=t[i])?o(s):o;for(var c in a)s[c]="className"===c?X(s[c],a[c]):"style"===c?e.__assign(e.__assign({},s[c]),a[c]):a[c]}return n.className&&(s.className=X(s.className,n.className)),s}(i,r,S(r,d,c)||g),m=y.as||p,v={};for(var w in y)void 0===y[w]||"$"===w[0]||"as"===w||"theme"===w||("forwardedAs"===w?v.as=y.forwardedAs:f&&!f(w,m)||(v[w]=y[w]));var b=function(e,n,r){var o=xe(),s=e.generateAndInjectStyles(n?g:r,o.styleSheet,o.stylis);return"production"!==process.env.NODE_ENV&&t.useDebugValue(s),s}(a,s,y);"production"!==process.env.NODE_ENV&&!s&&n.warnTooManyClasses&&n.warnTooManyClasses(b);var E=X(l,u);return b&&(E+=" "+b),y.className&&(E+=" "+y.className),v[T(m)&&!_.has(m)?"class":"className"]=E,v.ref=o,t.createElement(m,v)}(D,n,r,I)}O.displayName=y;var D=i.default.forwardRef(O);return D.attrs=b,D.componentStyle=A,D.displayName=y,D.shouldForwardProp=N,D.foldedComponentIds=s?X(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=w,D.target=s?a.target:n,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Q(e,o[r],!0);return e}({},a.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(m(y,w),D.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 "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(y,w)),Object.defineProperty(D,"toString",{value:function(){return".".concat(D.styledComponentId)}}),c&&W(D,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function He(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}var We=function(e){return Object.assign(e,{isCss:!0})};function Ue(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(U(t)||K(t)){var o=t;return We(Me(He(v,e.__spreadArray([o],n,!0))))}var s=t;return 0===n.length&&1===s.length&&"string"==typeof s[0]?Me(s):We(Me(He(s,n)))}function Je(t,n,r){if(void 0===r&&(r=g),!n)throw ne(1,n);var o=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return t(n,r,Ue.apply(void 0,e.__spreadArray([o],s,!1)))};return o.attrs=function(o){return Je(t,n,e.__assign(e.__assign({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return Je(t,n,e.__assign(e.__assign({},r),o))},o}var Xe=function(e){return Je(Ye,e)},Ze=Xe;_.forEach(function(e){Ze[e]=Xe(e)});var Ke=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Fe(e),_e.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Z(Me(this.rules,t,n,r)),""),s=this.componentId+e;n.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&_e.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}(),Qe=function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString(),n=he(),r=Z([n&&'nonce="'.concat(n,'"'),"".concat(l,'="true"'),"".concat("data-styled-version",'="').concat(u,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(e,"</style>")},this.getStyleTags=function(){if(t.sealed)throw ne(2);return t._emitSheetCSS()},this.getStyleElement=function(){var n;if(t.sealed)throw ne(2);var r=((n={})[l]="",n["data-styled-version"]=u,n.dangerouslySetInnerHTML={__html:t.instance.toString()},n),o=he();return o&&(r.nonce=o),[i.default.createElement("style",e.__assign({},r,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new _e({isServer:!0}),this.sealed=!1}return t.prototype.collectStyles=function(e){if(this.sealed)throw ne(2);return i.default.createElement(Re,{sheet:this.instance},e)},t.prototype.interleaveWithNodeStream=function(e){throw ne(3)},t}(),et={StyleSheet:_e,mainSheet:Pe};"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var tt="__sc-".concat(l,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[tt]||(window[tt]=0),1===window[tt]&&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[tt]+=1),exports.ServerStyleSheet=Qe,exports.StyleSheetConsumer=Ie,exports.StyleSheetContext=Ae,exports.StyleSheetManager=Re,exports.ThemeConsumer=Le,exports.ThemeContext=ze,exports.ThemeProvider=function(n){var r=Ge(),o=t.useMemo(function(){return function(t,n){if(!t)throw ne(14);if(U(t)){var r=t(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw ne(7);return r}if(Array.isArray(t)||"object"!=typeof t)throw ne(8);return n?e.__assign(e.__assign({},n),t):t}(n.theme,r)},[n.theme,r]);return n.children?i.default.createElement(ze.Provider,{value:o},n.children):null},exports.__PRIVATE__=et,exports.createGlobalStyle=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=Ue.apply(void 0,e.__spreadArray([t],n,!1)),s="sc-global-".concat(x(JSON.stringify(o))),a=new Ke(o,s);"production"!==process.env.NODE_ENV&&m(s);var c=function(e){var t=xe(),n=Ge(),r=i.default.useRef(t.styleSheet.allocateGSInstance(s)).current;return"production"!==process.env.NODE_ENV&&i.default.Children.count(e.children)&&console.warn("The global style component ".concat(s," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&o.some(function(e){return"string"==typeof e&&-1!==e.indexOf("@import")})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),t.styleSheet.server&&l(r,e,t.styleSheet,n,t.stylis),(i.default.useInsertionEffect||i.default.useLayoutEffect)(function(){if(!t.styleSheet.server)return l(r,e,t.styleSheet,n,t.stylis),function(){return a.removeStyles(r,t.styleSheet)}},[r,e,t.styleSheet,n,t.stylis]),null};function l(t,n,r,o,s){if(a.isStatic)a.renderStyles(t,h,r,s);else{var i=e.__assign(e.__assign({},n),{theme:S(n,o,c.defaultProps)});a.renderStyles(t,i,r,s)}}return i.default.memo(c)},exports.css=Ue,exports.default=Ze,exports.isStyledComponent=J,exports.keyframes=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var o=Z(Ue.apply(void 0,e.__spreadArray([t],n,!1))),s=x(o);return new Te(s,o)},exports.styled=Ze,exports.useTheme=Ge,exports.version=u,exports.withTheme=function(t){var n=i.default.forwardRef(function(n,r){var o=S(n,Ge(),t.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===o&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(R(t),'"')),i.default.createElement(t,e.__assign({},n,{theme:o,ref:r}))});return n.displayName="WithTheme(".concat(R(t),")"),W(n,t)};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react"),n=require("shallowequal"),r=require("stylis"),o=require("@emotion/unitless");function s(e){return e&&e.__esModule?e:{default:e}}var i=/*#__PURE__*/s(t),a=/*#__PURE__*/s(n),c=/*#__PURE__*/s(o),l="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",u="6.0.0-beta.15",p="undefined"!=typeof window&&"HTMLElement"in window,d=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),h={},f=/invalid hook call/i,y=new Set,m=function(n,r){if("production"!==process.env.NODE_ENV){var o=r?' with the id of "'.concat(r,'"'):"",s="The component ".concat(n).concat(o," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];f.test(t)?(a=!1,y.delete(s)):i.apply(void 0,e.__spreadArray([t],n,!1))},t.useRef(),a&&!y.has(s)&&(console.warn(s),y.add(s))}catch(e){f.test(e.message)&&y.delete(s)}finally{console.error=i}}},v=Object.freeze([]),g=Object.freeze({});function S(e,t,n){return void 0===n&&(n=g),e.theme!==n.theme&&e.theme||t||n.theme}var _=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),w=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,b=/(^-|-$)/g;function E(e){return e.replace(w,"-").replace(b,"")}var N=/(a)(d)/gi,P=function(e){return String.fromCharCode(e+(e>25?39:97))};function C(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=P(t%52)+n;return(P(t%52)+n).replace(N,"$1-$2")}var A,I=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},O=function(e){return I(5381,e)};function x(e){return C(O(e)>>>0)}function T(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function R(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var D="function"==typeof Symbol&&Symbol.for,j=D?Symbol.for("react.memo"):60115,k=D?Symbol.for("react.forward_ref"):60112,V={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},M={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},F={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},B=((A={})[k]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},A[j]=F,A);function $(e){return("type"in(t=e)&&t.type.$$typeof)===j?F:"$$typeof"in e?B[e.$$typeof]:V;var t}var z=Object.defineProperty,L=Object.getOwnPropertyNames,G=Object.getOwnPropertySymbols,q=Object.getOwnPropertyDescriptor,Y=Object.getPrototypeOf,W=Object.prototype;function H(e,t,n){if("string"!=typeof t){if(W){var r=Y(t);r&&r!==W&&H(e,r,n)}var o=L(t);G&&(o=o.concat(G(t)));for(var s=$(e),i=$(t),a=0;a<o.length;++a){var c=o[a];if(!(c in M||n&&n[c]||i&&c in i||s&&c in s)){var l=q(t,c);try{z(e,c,l)}catch(e){}}}}return e}function U(e){return"function"==typeof e}function J(e){return"object"==typeof e&&"styledComponentId"in e}function X(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Z(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function K(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Q(e,t,n){if(void 0===n&&(n=!1),!n&&!K(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Q(e[r],t[r]);else if(K(t))for(var r in t)e[r]=Q(e[r],t[r]);return e}var ee="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 te(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function ne(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(te.apply(void 0,e.__spreadArray([ee[t]],n,!1)).trim())}var re=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw ne(16,"".concat(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=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+="".concat(this.tag.getRule(s)).concat("/*!sc*/\n");return t},e}(),oe=new Map,se=new Map,ie=1,ae=function(e){if(oe.has(e))return oe.get(e);for(;se.has(ie);)ie++;var t=ie++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw ne(16,"".concat(t));return oe.set(e,t),se.set(t,e),t},ce=function(e,t){oe.set(e,t),se.set(t,e)},le="style[".concat(l,"][").concat("data-styled-version",'="').concat(u,'"]'),ue=new RegExp("^".concat(l,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),pe=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)},de=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split("/*!sc*/\n"),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var c=a.match(ue);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(ce(u,l),pe(e,u,c[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(a)}}};function he(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var fe=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(l))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(l,"active"),r.setAttribute("data-styled-version",u);var i=he();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},ye=function(){function e(e){this.element=fe(e),this.element.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}throw ne(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),me=function(){function e(e){this.element=fe(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),ve=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),ge=p,Se={isServer:!p,useCSSOMInjection:!d},_e=function(){function t(t,n,r){void 0===t&&(t=g),void 0===n&&(n={}),this.options=e.__assign(e.__assign({},Se),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&p&&ge&&(ge=!1,function(e){for(var t=document.querySelectorAll(le),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(l)&&(de(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}return t.registerId=function(e){return ae(e)},t.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new t(e.__assign(e.__assign({},this.options),n),this.gs,r&&this.names||void 0)},t.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new ve(n):t?new ye(n):new me(n)}(this.options),new re(e)));var e},t.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.prototype.registerName=function(e,t){if(ae(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.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(ae(e),n)},t.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.prototype.clearRules=function(e){this.getTag().clearGroup(ae(e)),this.clearNames(e)},t.prototype.clearTag=function(){this.tag=void 0},t.prototype.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return se.get(e)}(n);if(void 0===o)return"continue";var s=e.names.get(o),i=t.getGroup(n);if(void 0===s||0===i.length)return"continue";var a="".concat(l,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat("/*!sc*/\n")},s=0;s<n;s++)o(s);return r}(this)},t}(),we=/^\s*\/\/.*$/gm;function be(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=be(e.children,t)),e})}function Ee(e){var t,n,o,s=void 0===e?g:e,i=s.options,a=void 0===i?g:i,c=s.plugins,l=void 0===c?v:c,u=function(e,r,o){return o===n||o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},p=l.slice();a.prefix&&p.unshift(r.prefixer),p.push(function(e){e.type===r.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(o,u))},r.stringify);var d=function(e,s,i,c){void 0===s&&(s=""),void 0===i&&(i=""),void 0===c&&(c="&"),t=c,n=s,o=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(we,""),u=r.compile(i||s?"".concat(i," ").concat(s," { ").concat(l," }"):l);return a.namespace&&(u=be(u,a.namespace)),function(e,t){for(var n=[],r=0,o=void 0;r<e.length;r+=1)(o=t(e[r],r,e,t))&&n.push(o);return n}(u,r.middleware(p))};return d.hash=l.length?l.reduce(function(e,t){return t.name||ne(15),I(e,t.name)},5381).toString():"",d}var Ne=new _e,Pe=Ee(),Ce=i.default.createContext({shouldForwardProp:void 0,styleSheet:Ne,stylis:Pe}),Ae=Ce.Consumer,Ie=i.default.createContext(void 0);function Oe(){return t.useContext(Ce)}function xe(e){var n=t.useState(e.stylisPlugins),r=n[0],o=n[1],s=Oe().styleSheet,c=t.useMemo(function(){var t=s;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,s]),l=t.useMemo(function(){return Ee({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);return t.useEffect(function(){a.default(r,e.stylisPlugins)||o(e.stylisPlugins)},[e.stylisPlugins]),i.default.createElement(Ce.Provider,{value:{shouldForwardProp:e.shouldForwardProp,styleSheet:c,stylis:l}},i.default.createElement(Ie.Provider,{value:l},e.children))}var Te=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Pe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){throw ne(12,String(n.name))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Pe),this.name+e.hash},e}(),Re=function(e){return e>="A"&&e<="Z"};function De(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Re(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var je=function(e){return null==e||!1===e||""===e},ke=function(t){var n,r,o=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!je(i)&&(Array.isArray(i)&&i.isCss||U(i)?o.push("".concat(De(s),":"),i,";"):K(i)?o.push.apply(o,e.__spreadArray(e.__spreadArray(["".concat(s," {")],ke(i),!1),["}"],!1)):o.push("".concat(De(s),": ").concat((n=s,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in c.default||n.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return o};function Ve(e,t,n,r){if(je(e))return[];if(J(e))return[".".concat(e.styledComponentId)];if(U(e)){if(!U(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof Te||K(o)||null===o||console.error("".concat(T(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.")),Ve(o,t,n,r)}var s;return e instanceof Te?n?(e.inject(n,r),[e.getName(r)]):[e]:K(e)?ke(e):Array.isArray(e)?e.flatMap(function(e){return Ve(e,t,n,r)}):[e.toString()]}function Me(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(U(n)&&!J(n))return!1}return!0}var Fe=O(u),Be=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Me(e),this.componentId=t,this.baseHash=I(Fe,t),this.baseStyle=n,_e.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=X(r,this.staticRulesId);else{var o=Z(Ve(this.rules,e,t,n)),s=C(I(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}r=X(r,s),this.staticRulesId=s}else{for(var a=I(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=I(a,u));else if(u){var p=Z(Ve(u,e,t,n));a=I(a,p),c+=p}}if(c){var d=C(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),r=X(r,d)}}return r},e}(),$e=i.default.createContext(void 0),ze=$e.Consumer;function Le(){return t.useContext($e)}var Ge={};function qe(n,r,o){var s=J(n),a=n,c=!R(n),l=r.attrs,p=void 0===l?v:l,d=r.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":E(e);Ge[n]=(Ge[n]||0)+1;var r="".concat(n,"-").concat(x(u+n+Ge[n]));return t?"".concat(t,"-").concat(r):r}(r.displayName,r.parentComponentId):d,f=r.displayName,y=void 0===f?function(e){return R(e)?"styled.".concat(e):"Styled(".concat(T(e),")")}(n):f,w=r.displayName&&r.componentId?"".concat(E(r.displayName),"-").concat(r.componentId):r.componentId||h,b=s&&a.attrs?a.attrs.concat(p).filter(Boolean):p,N=r.shouldForwardProp;if(s&&a.shouldForwardProp){var P=a.shouldForwardProp;if(r.shouldForwardProp){var C=r.shouldForwardProp;N=function(e,t){return P(e,t)&&C(e,t)}}else N=P}var A=new Be(o,w,s?a.componentStyle:void 0),I=A.isStatic&&0===p.length;function O(n,r){return function(n,r,o,s){var i=n.attrs,a=n.componentStyle,c=n.defaultProps,l=n.foldedComponentIds,u=n.styledComponentId,p=n.target,d=Le(),h=Oe(),f=n.shouldForwardProp||h.shouldForwardProp;"production"!==process.env.NODE_ENV&&t.useDebugValue(u);var y=function(t,n,r){for(var o,s=e.__assign(e.__assign({},n),{className:void 0,theme:r}),i=0;i<t.length;i+=1){var a=U(o=t[i])?o(s):o;for(var c in a)s[c]="className"===c?X(s[c],a[c]):"style"===c?e.__assign(e.__assign({},s[c]),a[c]):a[c]}return n.className&&(s.className=X(s.className,n.className)),s}(i,r,S(r,d,c)||g),m=y.as||p,v={};for(var w in y)void 0===y[w]||"$"===w[0]||"as"===w||"theme"===w||("forwardedAs"===w?v.as=y.forwardedAs:f&&!f(w,m)||(v[w]=y[w]));var b=function(e,n,r){var o=Oe(),s=e.generateAndInjectStyles(n?g:r,o.styleSheet,o.stylis);return"production"!==process.env.NODE_ENV&&t.useDebugValue(s),s}(a,s,y);"production"!==process.env.NODE_ENV&&!s&&n.warnTooManyClasses&&n.warnTooManyClasses(b);var E=X(l,u);return b&&(E+=" "+b),y.className&&(E+=" "+y.className),v[R(m)&&!_.has(m)?"class":"className"]=E,v.ref=o,t.createElement(m,v)}(D,n,r,I)}O.displayName=y;var D=i.default.forwardRef(O);return D.attrs=b,D.componentStyle=A,D.displayName=y,D.shouldForwardProp=N,D.foldedComponentIds=s?X(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=w,D.target=s?a.target:n,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Q(e,o[r],!0);return e}({},a.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(m(y,w),D.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 "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(y,w)),Object.defineProperty(D,"toString",{value:function(){return".".concat(D.styledComponentId)}}),c&&H(D,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function Ye(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}var We=function(e){return Object.assign(e,{isCss:!0})};function He(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(U(t)||K(t)){var o=t;return We(Ve(Ye(v,e.__spreadArray([o],n,!0))))}var s=t;return 0===n.length&&1===s.length&&"string"==typeof s[0]?Ve(s):We(Ve(Ye(s,n)))}function Ue(t,n,r){if(void 0===r&&(r=g),!n)throw ne(1,n);var o=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return t(n,r,He.apply(void 0,e.__spreadArray([o],s,!1)))};return o.attrs=function(o){return Ue(t,n,e.__assign(e.__assign({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return Ue(t,n,e.__assign(e.__assign({},r),o))},o}var Je=function(e){return Ue(qe,e)},Xe=Je;_.forEach(function(e){Xe[e]=Je(e)});var Ze=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Me(e),_e.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Z(Ve(this.rules,t,n,r)),""),s=this.componentId+e;n.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&_e.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}(),Ke=function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString(),n=he(),r=Z([n&&'nonce="'.concat(n,'"'),"".concat(l,'="true"'),"".concat("data-styled-version",'="').concat(u,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(e,"</style>")},this.getStyleTags=function(){if(t.sealed)throw ne(2);return t._emitSheetCSS()},this.getStyleElement=function(){var n;if(t.sealed)throw ne(2);var r=((n={})[l]="",n["data-styled-version"]=u,n.dangerouslySetInnerHTML={__html:t.instance.toString()},n),o=he();return o&&(r.nonce=o),[i.default.createElement("style",e.__assign({},r,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new _e({isServer:!0}),this.sealed=!1}return t.prototype.collectStyles=function(e){if(this.sealed)throw ne(2);return i.default.createElement(xe,{sheet:this.instance},e)},t.prototype.interleaveWithNodeStream=function(e){throw ne(3)},t}(),Qe={StyleSheet:_e,mainSheet:Ne};"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var et="__sc-".concat(l,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[et]||(window[et]=0),1===window[et]&&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[et]+=1),exports.ServerStyleSheet=Ke,exports.StyleSheetConsumer=Ae,exports.StyleSheetContext=Ce,exports.StyleSheetManager=xe,exports.ThemeConsumer=ze,exports.ThemeContext=$e,exports.ThemeProvider=function(n){var r=Le(),o=t.useMemo(function(){return function(t,n){if(!t)throw ne(14);if(U(t)){var r=t(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw ne(7);return r}if(Array.isArray(t)||"object"!=typeof t)throw ne(8);return n?e.__assign(e.__assign({},n),t):t}(n.theme,r)},[n.theme,r]);return n.children?i.default.createElement($e.Provider,{value:o},n.children):null},exports.__PRIVATE__=Qe,exports.createGlobalStyle=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=He.apply(void 0,e.__spreadArray([t],n,!1)),s="sc-global-".concat(x(JSON.stringify(o))),a=new Ze(o,s);"production"!==process.env.NODE_ENV&&m(s);var c=function(e){var t=Oe(),n=Le(),r=i.default.useRef(t.styleSheet.allocateGSInstance(s)).current;return"production"!==process.env.NODE_ENV&&i.default.Children.count(e.children)&&console.warn("The global style component ".concat(s," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&o.some(function(e){return"string"==typeof e&&-1!==e.indexOf("@import")})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),t.styleSheet.server&&l(r,e,t.styleSheet,n,t.stylis),(i.default.useInsertionEffect||i.default.useLayoutEffect)(function(){if(!t.styleSheet.server)return l(r,e,t.styleSheet,n,t.stylis),function(){return a.removeStyles(r,t.styleSheet)}},[r,e,t.styleSheet,n,t.stylis]),null};function l(t,n,r,o,s){if(a.isStatic)a.renderStyles(t,h,r,s);else{var i=e.__assign(e.__assign({},n),{theme:S(n,o,c.defaultProps)});a.renderStyles(t,i,r,s)}}return i.default.memo(c)},exports.css=He,exports.default=Xe,exports.isStyledComponent=J,exports.keyframes=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var o=Z(He.apply(void 0,e.__spreadArray([t],n,!1))),s=x(o);return new Te(s,o)},exports.styled=Xe,exports.useTheme=Le,exports.version=u,exports.withTheme=function(t){var n=i.default.forwardRef(function(n,r){var o=S(n,Le(),t.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===o&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(T(t),'"')),i.default.createElement(t,e.__assign({},n,{theme:o,ref:r}))});return n.displayName="WithTheme(".concat(T(t),")"),H(n,t)};
//# sourceMappingURL=styled-components.browser.cjs.js.map

@@ -1,2 +0,2 @@

import{__spreadArray as e,__assign as t}from"tslib";import n,{useRef as o,useState as r,useMemo as s,useEffect as i,useContext as a,useDebugValue as c,createElement as l}from"react";import u from"shallowequal";import{prefixer as p,stringify as d,RULESET as h,compile as f,middleware as m}from"stylis";import y from"@emotion/unitless";var v="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",g="6.0.0-beta.14",S="undefined"!=typeof window&&"HTMLElement"in window,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),b={},E=/invalid hook call/i,N=new Set,P=function(t,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(r," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];E.test(t)?(a=!1,N.delete(s)):i.apply(void 0,e([t],n,!1))},o(),a&&!N.has(s)&&(console.warn(s),N.add(s))}catch(e){E.test(e.message)&&N.delete(s)}finally{console.error=i}}},_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,R=/(^-|-$)/g;function D(e){return e.replace(O,"-").replace(R,"")}var T=/(a)(d)/gi,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=j(t%52)+n;return(j(t%52)+n).replace(T,"$1-$2")}var k,V=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},M=function(e){return V(5381,e)};function F(e){return x(M(e)>>>0)}function B(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function $(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var z="function"==typeof Symbol&&Symbol.for,L=z?Symbol.for("react.memo"):60115,G=z?Symbol.for("react.forward_ref"):60112,Y={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},q={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},H={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},W=((k={})[G]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},k[L]=H,k);function U(e){return("type"in(t=e)&&t.type.$$typeof)===L?H:"$$typeof"in e?W[e.$$typeof]:Y;var t}var J=Object.defineProperty,X=Object.getOwnPropertyNames,Z=Object.getOwnPropertySymbols,K=Object.getOwnPropertyDescriptor,Q=Object.getPrototypeOf,ee=Object.prototype;function te(e,t,n){if("string"!=typeof t){if(ee){var o=Q(t);o&&o!==ee&&te(e,o,n)}var r=X(t);Z&&(r=r.concat(Z(t)));for(var s=U(e),i=U(t),a=0;a<r.length;++a){var c=r[a];if(!(c in q||n&&n[c]||i&&c in i||s&&c in s)){var l=K(t,c);try{J(e,c,l)}catch(e){}}}}return e}function ne(e){return"function"==typeof e}function oe(e){return"object"==typeof e&&"styledComponentId"in e}function re(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function se(e,t){if(0===e.length)return"";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ie(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ae(e,t,n){if(void 0===n&&(n=!1),!n&&!ie(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=ae(e[o],t[o]);else if(ie(t))for(var o in t)e[o]=ae(e[o],t[o]);return e}var ce="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 le(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function ue(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(le.apply(void 0,e([ce[t]],n,!1)).trim())}var pe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw ue(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat("/*!sc*/\n");return t},e}(),de=new Map,he=new Map,fe=1,me=function(e){if(de.has(e))return de.get(e);for(;he.has(fe);)fe++;var t=fe++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw ue(16,"".concat(t));return de.set(e,t),he.set(t,e),t},ye=function(e,t){de.set(e,t),he.set(t,e)},ve="style[".concat(v,"][").concat("data-styled-version",'="').concat(g,'"]'),ge=new RegExp("^".concat(v,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Se=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o)},we=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split("/*!sc*/\n"),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(ge);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(ye(u,l),Se(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}};function be(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ee=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var o=t[n];if(o&&1===o.nodeType&&o.hasAttribute(v))return o}}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(v,"active"),o.setAttribute("data-styled-version",g);var i=be();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ne=function(){function e(e){this.element=Ee(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw ue(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Pe=function(){function e(e){this.element=Ee(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),_e=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ce=S,Ie={isServer:!S,useCSSOMInjection:!w},Ae=function(){function e(e,n,o){void 0===e&&(e=C),void 0===n&&(n={}),this.options=t(t({},Ie),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S&&Ce&&(Ce=!1,function(e){for(var t=document.querySelectorAll(ve),n=0,o=t.length;n<o;n++){var r=t[n];r&&"active"!==r.getAttribute(v)&&(we(e,r),r.parentNode&&r.parentNode.removeChild(r))}}(this))}return e.registerId=function(e){return me(e)},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(t(t({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new _e(n):t?new Ne(n):new Pe(n)}(this.options),new pe(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(me(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(me(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(me(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e.prototype.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return he.get(e)}(n);if(void 0===r)return"continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||0===i.length)return"continue";var a="".concat(v,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat("/*!sc*/\n")},s=0;s<n;s++)r(s);return o}(this)},e}(),Oe=/^\s*\/\/.*$/gm,Re=[":","[",".","#"];function De(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&(e.children=De(e.children,t)),e})}function Te(e){var t,n,o,r,s=void 0===e?C:e,i=s.options,a=void 0===i?C:i,c=s.plugins,l=void 0===c?_:c,u=function(e,o,s){return 0===o&&Re.includes(s[n.length])||s.match(r)?e:".".concat(t)},y=l.slice();a.prefix&&y.unshift(p),y.push(function(e){e.type===h&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(o,u))},d);var v=function(e,s,i,c){void 0===s&&(s=""),void 0===i&&(i=""),void 0===c&&(c="&"),t=c,n=s,o=new RegExp("\\".concat(n,"\\b"),"g"),r=new RegExp("(\\".concat(n,"\\b){2,}"));var l=e.replace(Oe,""),u=f(i||s?"".concat(i," ").concat(s," { ").concat(l," }"):l);return a.namespace&&(u=De(u,a.namespace)),function(e,t){for(var n=[],o=0,r=void 0;o<e.length;o+=1)(r=t(e[o],o,e,t))&&n.push(r);return n}(u,m(y))};return v.hash=l.length?l.reduce(function(e,t){return t.name||ue(15),V(e,t.name)},5381).toString():"",v}var je=new Ae,xe=Te(),ke=n.createContext({shouldForwardProp:void 0,styleSheet:je,stylis:xe}),Ve=ke.Consumer,Me=n.createContext(void 0);function Fe(){return a(ke)}function Be(e){var t=r(e.stylisPlugins),o=t[0],a=t[1],c=Fe().styleSheet,l=s(function(){var t=c;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,c]),p=s(function(){return Te({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:o})},[e.enableVendorPrefixes,e.namespace,o]);return i(function(){u(o,e.stylisPlugins)||a(e.stylisPlugins)},[e.stylisPlugins]),n.createElement(ke.Provider,{value:{shouldForwardProp:e.shouldForwardProp,styleSheet:l,stylis:p}},n.createElement(Me.Provider,{value:p},e.children))}var $e=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=xe);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"))},this.toString=function(){throw ue(12,String(n.name))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=xe),this.name+e.hash},e}(),ze=function(e){return e>="A"&&e<="Z"};function Le(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;ze(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var Ge=function(e){return null==e||!1===e||""===e},Ye=function(t){var n,o=[];for(var r in t){var s=t[r];t.hasOwnProperty(r)&&!Ge(s)&&(Array.isArray(s)&&s.isCss||ne(s)?o.push("".concat(Le(r),":"),s,";"):ie(s)?o.push.apply(o,e(e(["".concat(r," {")],Ye(s),!1),["}"],!1)):o.push("".concat(Le(r),": ").concat(null==(n=s)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||r in y?String(n).trim():"".concat(n,"px"),";")))}return o};function qe(e,t,n,o){if(Ge(e))return[];if(oe(e))return[".".concat(e.styledComponentId)];if(ne(e)){if(!ne(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var r=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof $e||ie(r)||null===r||console.error("".concat(B(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),qe(r,t,n,o)}var s;return e instanceof $e?n?(e.inject(n,o),[e.getName(o)]):[e]:ie(e)?Ye(e):Array.isArray(e)?e.flatMap(function(e){return qe(e,t,n,o)}):[e.toString()]}function He(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ne(n)&&!oe(n))return!1}return!0}var We=M(g),Ue=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&He(e),this.componentId=t,this.baseHash=V(We,t),this.baseStyle=n,Ae.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=re(o,this.staticRulesId);else{var r=se(qe(this.rules,e,t,n)),s=x(V(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}o=re(o,s),this.staticRulesId=s}else{for(var a=V(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=V(a,u));else if(u){var p=se(qe(u,e,t,n));a=V(a,p),c+=p}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=re(o,d)}}return o},e}(),Je=n.createContext(void 0),Xe=Je.Consumer;function Ze(){return a(Je)}function Ke(e){var o=Ze(),r=s(function(){return function(e,n){if(!e)throw ue(14);if(ne(e)){var o=e(n);if("production"!==process.env.NODE_ENV&&(null===o||Array.isArray(o)||"object"!=typeof o))throw ue(7);return o}if(Array.isArray(e)||"object"!=typeof e)throw ue(8);return n?t(t({},n),e):e}(e.theme,o)},[e.theme,o]);return e.children?n.createElement(Je.Provider,{value:r},e.children):null}var Qe={};function et(e,o,r){var s=oe(e),i=e,a=!$(e),u=o.attrs,p=void 0===u?_:u,d=o.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":D(e);Qe[n]=(Qe[n]||0)+1;var o="".concat(n,"-").concat(F(g+n+Qe[n]));return t?"".concat(t,"-").concat(o):o}(o.displayName,o.parentComponentId):d,f=o.displayName,m=void 0===f?function(e){return $(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):f,y=o.displayName&&o.componentId?"".concat(D(o.displayName),"-").concat(o.componentId):o.componentId||h,v=s&&i.attrs?i.attrs.concat(p).filter(Boolean):p,S=o.shouldForwardProp;if(s&&i.shouldForwardProp){var w=i.shouldForwardProp;if(o.shouldForwardProp){var b=o.shouldForwardProp;S=function(e,t){return w(e,t)&&b(e,t)}}else S=w}var E=new Ue(r,y,s?i.componentStyle:void 0),N=E.isStatic&&0===p.length;function O(e,n){return function(e,n,o,r){var s=e.attrs,i=e.componentStyle,a=e.defaultProps,u=e.foldedComponentIds,p=e.styledComponentId,d=e.target,h=Ze(),f=Fe(),m=e.shouldForwardProp||f.shouldForwardProp;"production"!==process.env.NODE_ENV&&c(p);var y=function(e,n,o){for(var r,s=t(t({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=ne(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?re(s[c],a[c]):"style"===c?t(t({},s[c]),a[c]):a[c]}return n.className&&(s.className=re(s.className,n.className)),s}(s,n,I(n,h,a)||C),v=y.as||d,g={};for(var S in y)void 0===y[S]||"$"===S[0]||"as"===S||"theme"===S||("forwardedAs"===S?g.as=y.forwardedAs:m&&!m(S,v)||(g[S]=y[S]));var w=function(e,t,n){var o=Fe(),r=e.generateAndInjectStyles(t?C:n,o.styleSheet,o.stylis);return"production"!==process.env.NODE_ENV&&c(r),r}(i,r,y);"production"!==process.env.NODE_ENV&&!r&&e.warnTooManyClasses&&e.warnTooManyClasses(w);var b=re(u,p);return w&&(b+=" "+w),y.className&&(b+=" "+y.className),g[$(v)&&!A.has(v)?"class":"className"]=b,g.ref=o,l(v,g)}(R,e,n,N)}O.displayName=m;var R=n.forwardRef(O);return R.attrs=v,R.componentStyle=E,R.displayName=m,R.shouldForwardProp=S,R.foldedComponentIds=s?re(i.foldedComponentIds,i.styledComponentId):"",R.styledComponentId=y,R.target=s?i.target:e,Object.defineProperty(R,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)ae(e,r[o],!0);return e}({},i.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(P(m,y),R.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,n={}}}}(m,y)),Object.defineProperty(R,"toString",{value:function(){return".".concat(R.styledComponentId)}}),a&&te(R,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),R}function tt(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var nt=function(e){return Object.assign(e,{isCss:!0})};function ot(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(ne(t)||ie(t)){var r=t;return nt(qe(tt(_,e([r],n,!0))))}var s=t;return 0===n.length&&1===s.length&&"string"==typeof s[0]?qe(s):nt(qe(tt(s,n)))}function rt(n,o,r){if(void 0===r&&(r=C),!o)throw ue(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,ot.apply(void 0,e([t],s,!1)))};return s.attrs=function(e){return rt(n,o,t(t({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return rt(n,o,t(t({},r),e))},s}var st=function(e){return rt(et,e)},it=st;A.forEach(function(e){it[e]=st(e)});var at=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=He(e),Ae.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,o){var r=o(se(qe(this.rules,t,n,o)),""),s=this.componentId+e;n.insertRules(s,s,r)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,o){e>2&&Ae.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,o)},e}();function ct(o){for(var r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];var i=ot.apply(void 0,e([o],r,!1)),a="sc-global-".concat(F(JSON.stringify(i))),c=new at(i,a);"production"!==process.env.NODE_ENV&&P(a);var l=function(e){var t=Fe(),o=Ze(),r=n.useRef(t.styleSheet.allocateGSInstance(a)).current;return"production"!==process.env.NODE_ENV&&n.Children.count(e.children)&&console.warn("The global style component ".concat(a," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&i.some(function(e){return"string"==typeof e&&-1!==e.indexOf("@import")})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),t.styleSheet.server&&u(r,e,t.styleSheet,o,t.stylis),(n.useInsertionEffect||n.useLayoutEffect)(function(){if(!t.styleSheet.server)return u(r,e,t.styleSheet,o,t.stylis),function(){return c.removeStyles(r,t.styleSheet)}},[r,e,t.styleSheet,o,t.stylis]),null};function u(e,n,o,r,s){if(c.isStatic)c.renderStyles(e,b,o,s);else{var i=t(t({},n),{theme:I(n,r,l.defaultProps)});c.renderStyles(e,i,o,s)}}return n.memo(l)}function lt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=se(ot.apply(void 0,e([t],n,!1))),s=F(r);return new $e(s,r)}function ut(e){var o=n.forwardRef(function(o,r){var s=I(o,Ze(),e.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===s&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(B(e),'"')),n.createElement(e,t({},o,{theme:s,ref:r}))});return o.displayName="WithTheme(".concat(B(e),")"),te(o,e)}var pt=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=be(),o=se([n&&'nonce="'.concat(n,'"'),"".concat(v,'="true"'),"".concat("data-styled-version",'="').concat(g,'"')].filter(Boolean)," ");return"<style ".concat(o,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw ue(2);return e._emitSheetCSS()},this.getStyleElement=function(){var o;if(e.sealed)throw ue(2);var r=((o={})[v]="",o["data-styled-version"]=g,o.dangerouslySetInnerHTML={__html:e.instance.toString()},o),s=be();return s&&(r.nonce=s),[n.createElement("style",t({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Ae({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw ue(2);return n.createElement(Be,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw ue(3)},e}(),dt={StyleSheet:Ae,mainSheet:je};"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var ht="__sc-".concat(v,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[ht]||(window[ht]=0),1===window[ht]&&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[ht]+=1);export{pt as ServerStyleSheet,Ve as StyleSheetConsumer,ke as StyleSheetContext,Be as StyleSheetManager,Xe as ThemeConsumer,Je as ThemeContext,Ke as ThemeProvider,dt as __PRIVATE__,ct as createGlobalStyle,ot as css,it as default,oe as isStyledComponent,lt as keyframes,it as styled,Ze as useTheme,g as version,ut as withTheme};
import{__spreadArray as e,__assign as t}from"tslib";import n,{useRef as o,useState as r,useMemo as s,useEffect as i,useContext as a,useDebugValue as c,createElement as l}from"react";import u from"shallowequal";import{prefixer as p,stringify as d,RULESET as h,compile as f,middleware as m}from"stylis";import y from"@emotion/unitless";var v="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",g="6.0.0-beta.15",S="undefined"!=typeof window&&"HTMLElement"in window,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),b={},E=/invalid hook call/i,N=new Set,P=function(t,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(r," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];E.test(t)?(a=!1,N.delete(s)):i.apply(void 0,e([t],n,!1))},o(),a&&!N.has(s)&&(console.warn(s),N.add(s))}catch(e){E.test(e.message)&&N.delete(s)}finally{console.error=i}}},_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=j(t%52)+n;return(j(t%52)+n).replace(T,"$1-$2")}var k,V=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},M=function(e){return V(5381,e)};function F(e){return x(M(e)>>>0)}function B(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function $(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var z="function"==typeof Symbol&&Symbol.for,L=z?Symbol.for("react.memo"):60115,G=z?Symbol.for("react.forward_ref"):60112,Y={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},W={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},q={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},H=((k={})[G]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},k[L]=q,k);function U(e){return("type"in(t=e)&&t.type.$$typeof)===L?q:"$$typeof"in e?H[e.$$typeof]:Y;var t}var J=Object.defineProperty,X=Object.getOwnPropertyNames,Z=Object.getOwnPropertySymbols,K=Object.getOwnPropertyDescriptor,Q=Object.getPrototypeOf,ee=Object.prototype;function te(e,t,n){if("string"!=typeof t){if(ee){var o=Q(t);o&&o!==ee&&te(e,o,n)}var r=X(t);Z&&(r=r.concat(Z(t)));for(var s=U(e),i=U(t),a=0;a<r.length;++a){var c=r[a];if(!(c in W||n&&n[c]||i&&c in i||s&&c in s)){var l=K(t,c);try{J(e,c,l)}catch(e){}}}}return e}function ne(e){return"function"==typeof e}function oe(e){return"object"==typeof e&&"styledComponentId"in e}function re(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function se(e,t){if(0===e.length)return"";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ie(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ae(e,t,n){if(void 0===n&&(n=!1),!n&&!ie(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=ae(e[o],t[o]);else if(ie(t))for(var o in t)e[o]=ae(e[o],t[o]);return e}var ce="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 le(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function ue(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(le.apply(void 0,e([ce[t]],n,!1)).trim())}var pe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw ue(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat("/*!sc*/\n");return t},e}(),de=new Map,he=new Map,fe=1,me=function(e){if(de.has(e))return de.get(e);for(;he.has(fe);)fe++;var t=fe++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw ue(16,"".concat(t));return de.set(e,t),he.set(t,e),t},ye=function(e,t){de.set(e,t),he.set(t,e)},ve="style[".concat(v,"][").concat("data-styled-version",'="').concat(g,'"]'),ge=new RegExp("^".concat(v,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Se=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o)},we=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split("/*!sc*/\n"),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(ge);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(ye(u,l),Se(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}};function be(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ee=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var o=t[n];if(o&&1===o.nodeType&&o.hasAttribute(v))return o}}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(v,"active"),o.setAttribute("data-styled-version",g);var i=be();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ne=function(){function e(e){this.element=Ee(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw ue(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Pe=function(){function e(e){this.element=Ee(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),_e=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ce=S,Ie={isServer:!S,useCSSOMInjection:!w},Ae=function(){function e(e,n,o){void 0===e&&(e=C),void 0===n&&(n={}),this.options=t(t({},Ie),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S&&Ce&&(Ce=!1,function(e){for(var t=document.querySelectorAll(ve),n=0,o=t.length;n<o;n++){var r=t[n];r&&"active"!==r.getAttribute(v)&&(we(e,r),r.parentNode&&r.parentNode.removeChild(r))}}(this))}return e.registerId=function(e){return me(e)},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(t(t({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new _e(n):t?new Ne(n):new Pe(n)}(this.options),new pe(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(me(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(me(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(me(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e.prototype.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return he.get(e)}(n);if(void 0===r)return"continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||0===i.length)return"continue";var a="".concat(v,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat("/*!sc*/\n")},s=0;s<n;s++)r(s);return o}(this)},e}(),Oe=/^\s*\/\/.*$/gm;function De(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=De(e.children,t)),e})}function Re(e){var t,n,o,r=void 0===e?C:e,s=r.options,i=void 0===s?C:s,a=r.plugins,c=void 0===a?_:a,l=function(e,o,r){return r===n||r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();i.prefix&&u.unshift(p),u.push(function(e){e.type===h&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(o,l))},d);var y=function(e,r,s,a){void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(Oe,""),l=f(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);return i.namespace&&(l=De(l,i.namespace)),function(e,t){for(var n=[],o=0,r=void 0;o<e.length;o+=1)(r=t(e[o],o,e,t))&&n.push(r);return n}(l,m(u))};return y.hash=c.length?c.reduce(function(e,t){return t.name||ue(15),V(e,t.name)},5381).toString():"",y}var Te=new Ae,je=Re(),xe=n.createContext({shouldForwardProp:void 0,styleSheet:Te,stylis:je}),ke=xe.Consumer,Ve=n.createContext(void 0);function Me(){return a(xe)}function Fe(e){var t=r(e.stylisPlugins),o=t[0],a=t[1],c=Me().styleSheet,l=s(function(){var t=c;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,c]),p=s(function(){return Re({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:o})},[e.enableVendorPrefixes,e.namespace,o]);return i(function(){u(o,e.stylisPlugins)||a(e.stylisPlugins)},[e.stylisPlugins]),n.createElement(xe.Provider,{value:{shouldForwardProp:e.shouldForwardProp,styleSheet:l,stylis:p}},n.createElement(Ve.Provider,{value:p},e.children))}var Be=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=je);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"))},this.toString=function(){throw ue(12,String(n.name))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=je),this.name+e.hash},e}(),$e=function(e){return e>="A"&&e<="Z"};function ze(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;$e(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var Le=function(e){return null==e||!1===e||""===e},Ge=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Le(i)&&(Array.isArray(i)&&i.isCss||ne(i)?r.push("".concat(ze(s),":"),i,";"):ie(i)?r.push.apply(r,e(e(["".concat(s," {")],Ge(i),!1),["}"],!1)):r.push("".concat(ze(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in y||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")))}return r};function Ye(e,t,n,o){if(Le(e))return[];if(oe(e))return[".".concat(e.styledComponentId)];if(ne(e)){if(!ne(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var r=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof Be||ie(r)||null===r||console.error("".concat(B(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Ye(r,t,n,o)}var s;return e instanceof Be?n?(e.inject(n,o),[e.getName(o)]):[e]:ie(e)?Ge(e):Array.isArray(e)?e.flatMap(function(e){return Ye(e,t,n,o)}):[e.toString()]}function We(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ne(n)&&!oe(n))return!1}return!0}var qe=M(g),He=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&We(e),this.componentId=t,this.baseHash=V(qe,t),this.baseStyle=n,Ae.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=re(o,this.staticRulesId);else{var r=se(Ye(this.rules,e,t,n)),s=x(V(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}o=re(o,s),this.staticRulesId=s}else{for(var a=V(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=V(a,u));else if(u){var p=se(Ye(u,e,t,n));a=V(a,p),c+=p}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=re(o,d)}}return o},e}(),Ue=n.createContext(void 0),Je=Ue.Consumer;function Xe(){return a(Ue)}function Ze(e){var o=Xe(),r=s(function(){return function(e,n){if(!e)throw ue(14);if(ne(e)){var o=e(n);if("production"!==process.env.NODE_ENV&&(null===o||Array.isArray(o)||"object"!=typeof o))throw ue(7);return o}if(Array.isArray(e)||"object"!=typeof e)throw ue(8);return n?t(t({},n),e):e}(e.theme,o)},[e.theme,o]);return e.children?n.createElement(Ue.Provider,{value:r},e.children):null}var Ke={};function Qe(e,o,r){var s=oe(e),i=e,a=!$(e),u=o.attrs,p=void 0===u?_:u,d=o.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":R(e);Ke[n]=(Ke[n]||0)+1;var o="".concat(n,"-").concat(F(g+n+Ke[n]));return t?"".concat(t,"-").concat(o):o}(o.displayName,o.parentComponentId):d,f=o.displayName,m=void 0===f?function(e){return $(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):f,y=o.displayName&&o.componentId?"".concat(R(o.displayName),"-").concat(o.componentId):o.componentId||h,v=s&&i.attrs?i.attrs.concat(p).filter(Boolean):p,S=o.shouldForwardProp;if(s&&i.shouldForwardProp){var w=i.shouldForwardProp;if(o.shouldForwardProp){var b=o.shouldForwardProp;S=function(e,t){return w(e,t)&&b(e,t)}}else S=w}var E=new He(r,y,s?i.componentStyle:void 0),N=E.isStatic&&0===p.length;function O(e,n){return function(e,n,o,r){var s=e.attrs,i=e.componentStyle,a=e.defaultProps,u=e.foldedComponentIds,p=e.styledComponentId,d=e.target,h=Xe(),f=Me(),m=e.shouldForwardProp||f.shouldForwardProp;"production"!==process.env.NODE_ENV&&c(p);var y=function(e,n,o){for(var r,s=t(t({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=ne(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?re(s[c],a[c]):"style"===c?t(t({},s[c]),a[c]):a[c]}return n.className&&(s.className=re(s.className,n.className)),s}(s,n,I(n,h,a)||C),v=y.as||d,g={};for(var S in y)void 0===y[S]||"$"===S[0]||"as"===S||"theme"===S||("forwardedAs"===S?g.as=y.forwardedAs:m&&!m(S,v)||(g[S]=y[S]));var w=function(e,t,n){var o=Me(),r=e.generateAndInjectStyles(t?C:n,o.styleSheet,o.stylis);return"production"!==process.env.NODE_ENV&&c(r),r}(i,r,y);"production"!==process.env.NODE_ENV&&!r&&e.warnTooManyClasses&&e.warnTooManyClasses(w);var b=re(u,p);return w&&(b+=" "+w),y.className&&(b+=" "+y.className),g[$(v)&&!A.has(v)?"class":"className"]=b,g.ref=o,l(v,g)}(D,e,n,N)}O.displayName=m;var D=n.forwardRef(O);return D.attrs=v,D.componentStyle=E,D.displayName=m,D.shouldForwardProp=S,D.foldedComponentIds=s?re(i.foldedComponentIds,i.styledComponentId):"",D.styledComponentId=y,D.target=s?i.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)ae(e,r[o],!0);return e}({},i.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(P(m,y),D.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,n={}}}}(m,y)),Object.defineProperty(D,"toString",{value:function(){return".".concat(D.styledComponentId)}}),a&&te(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function et(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var tt=function(e){return Object.assign(e,{isCss:!0})};function nt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(ne(t)||ie(t)){var r=t;return tt(Ye(et(_,e([r],n,!0))))}var s=t;return 0===n.length&&1===s.length&&"string"==typeof s[0]?Ye(s):tt(Ye(et(s,n)))}function ot(n,o,r){if(void 0===r&&(r=C),!o)throw ue(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,nt.apply(void 0,e([t],s,!1)))};return s.attrs=function(e){return ot(n,o,t(t({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ot(n,o,t(t({},r),e))},s}var rt=function(e){return ot(Qe,e)},st=rt;A.forEach(function(e){st[e]=rt(e)});var it=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=We(e),Ae.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,o){var r=o(se(Ye(this.rules,t,n,o)),""),s=this.componentId+e;n.insertRules(s,s,r)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,o){e>2&&Ae.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,o)},e}();function at(o){for(var r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];var i=nt.apply(void 0,e([o],r,!1)),a="sc-global-".concat(F(JSON.stringify(i))),c=new it(i,a);"production"!==process.env.NODE_ENV&&P(a);var l=function(e){var t=Me(),o=Xe(),r=n.useRef(t.styleSheet.allocateGSInstance(a)).current;return"production"!==process.env.NODE_ENV&&n.Children.count(e.children)&&console.warn("The global style component ".concat(a," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&i.some(function(e){return"string"==typeof e&&-1!==e.indexOf("@import")})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),t.styleSheet.server&&u(r,e,t.styleSheet,o,t.stylis),(n.useInsertionEffect||n.useLayoutEffect)(function(){if(!t.styleSheet.server)return u(r,e,t.styleSheet,o,t.stylis),function(){return c.removeStyles(r,t.styleSheet)}},[r,e,t.styleSheet,o,t.stylis]),null};function u(e,n,o,r,s){if(c.isStatic)c.renderStyles(e,b,o,s);else{var i=t(t({},n),{theme:I(n,r,l.defaultProps)});c.renderStyles(e,i,o,s)}}return n.memo(l)}function ct(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=se(nt.apply(void 0,e([t],n,!1))),s=F(r);return new Be(s,r)}function lt(e){var o=n.forwardRef(function(o,r){var s=I(o,Xe(),e.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===s&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(B(e),'"')),n.createElement(e,t({},o,{theme:s,ref:r}))});return o.displayName="WithTheme(".concat(B(e),")"),te(o,e)}var ut=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=be(),o=se([n&&'nonce="'.concat(n,'"'),"".concat(v,'="true"'),"".concat("data-styled-version",'="').concat(g,'"')].filter(Boolean)," ");return"<style ".concat(o,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw ue(2);return e._emitSheetCSS()},this.getStyleElement=function(){var o;if(e.sealed)throw ue(2);var r=((o={})[v]="",o["data-styled-version"]=g,o.dangerouslySetInnerHTML={__html:e.instance.toString()},o),s=be();return s&&(r.nonce=s),[n.createElement("style",t({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Ae({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw ue(2);return n.createElement(Fe,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw ue(3)},e}(),pt={StyleSheet:Ae,mainSheet:Te};"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var dt="__sc-".concat(v,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[dt]||(window[dt]=0),1===window[dt]&&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[dt]+=1);export{ut as ServerStyleSheet,ke as StyleSheetConsumer,xe as StyleSheetContext,Fe as StyleSheetManager,Je as ThemeConsumer,Ue as ThemeContext,Ze as ThemeProvider,pt as __PRIVATE__,at as createGlobalStyle,nt as css,st as default,oe as isStyledComponent,ct as keyframes,st as styled,Xe as useTheme,g as version,lt as withTheme};
//# sourceMappingURL=styled-components.browser.esm.js.map

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react"),n=require("shallowequal"),r=require("stylis"),o=require("@emotion/unitless");function s(e){return e&&e.__esModule?e:{default:e}}var i=/*#__PURE__*/s(t),a=/*#__PURE__*/s(n),c=/*#__PURE__*/s(o),u="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",l="6.0.0-beta.14",p=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),d={},h=/invalid hook call/i,f=new Set,m=function(n,r){if("production"!==process.env.NODE_ENV){var o=r?' with the id of "'.concat(r,'"'):"",s="The component ".concat(n).concat(o," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];h.test(t)?(a=!1,f.delete(s)):i.apply(void 0,e.__spreadArray([t],n,!1))},t.useRef(),a&&!f.has(s)&&(console.warn(s),f.add(s))}catch(e){h.test(e.message)&&f.delete(s)}finally{console.error=i}}},y=Object.freeze([]),v=Object.freeze({});function g(e,t,n){return void 0===n&&(n=v),e.theme!==n.theme&&e.theme||t||n.theme}var S=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),_=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,w=/(^-|-$)/g;function b(e){return e.replace(_,"-").replace(w,"")}var E=/(a)(d)/gi,N=function(e){return String.fromCharCode(e+(e>25?39:97))};function P(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=N(t%52)+n;return(N(t%52)+n).replace(E,"$1-$2")}var C,A=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},I=function(e){return A(5381,e)};function O(e){return P(I(e)>>>0)}function x(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function R(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var T="function"==typeof Symbol&&Symbol.for,D=T?Symbol.for("react.memo"):60115,j=T?Symbol.for("react.forward_ref"):60112,k={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},V={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},M={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},F=((C={})[j]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},C[D]=M,C);function $(e){return("type"in(t=e)&&t.type.$$typeof)===D?M:"$$typeof"in e?F[e.$$typeof]:k;var t}var B=Object.defineProperty,z=Object.getOwnPropertyNames,G=Object.getOwnPropertySymbols,L=Object.getOwnPropertyDescriptor,q=Object.getPrototypeOf,Y=Object.prototype;function H(e,t,n){if("string"!=typeof t){if(Y){var r=q(t);r&&r!==Y&&H(e,r,n)}var o=z(t);G&&(o=o.concat(G(t)));for(var s=$(e),i=$(t),a=0;a<o.length;++a){var c=o[a];if(!(c in V||n&&n[c]||i&&c in i||s&&c in s)){var u=L(t,c);try{B(e,c,u)}catch(e){}}}}return e}function W(e){return"function"==typeof e}function U(e){return"object"==typeof e&&"styledComponentId"in e}function J(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function X(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Z(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function K(e,t,n){if(void 0===n&&(n=!1),!n&&!Z(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=K(e[r],t[r]);else if(Z(t))for(var r in t)e[r]=K(e[r],t[r]);return e}var Q="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 ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function te(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(ee.apply(void 0,e.__spreadArray([Q[t]],n,!1)).trim())}var ne=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw te(16,"".concat(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=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+="".concat(this.tag.getRule(s)).concat("/*!sc*/\n");return t},e}(),re=new Map,oe=new Map,se=1,ie=function(e){if(re.has(e))return re.get(e);for(;oe.has(se);)se++;var t=se++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw te(16,"".concat(t));return re.set(e,t),oe.set(t,e),t},ae=("style[".concat(u,"][").concat("data-styled-version",'="').concat(l,'"]'),new RegExp("^".concat(u,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return oe.get(e)}(n);if(void 0===o)return"continue";var s=e.names.get(o),i=t.getGroup(n);if(void 0===s||0===i.length)return"continue";var a="".concat(u,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat("/*!sc*/\n")},s=0;s<n;s++)o(s);return r});function ce(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var ue=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(u))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(u,"active"),r.setAttribute("data-styled-version",l);var i=ce();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},le=function(){function e(e){this.element=ue(e),this.element.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}throw te(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),pe=function(){function e(e){this.element=ue(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),de=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),he={isServer:!0,useCSSOMInjection:!p},fe=function(){function t(t,n,r){void 0===t&&(t=v),void 0===n&&(n={}),this.options=e.__assign(e.__assign({},he),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer}return t.registerId=function(e){return ie(e)},t.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new t(e.__assign(e.__assign({},this.options),n),this.gs,r&&this.names||void 0)},t.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new de(n):t?new le(n):new pe(n)}(this.options),new ne(e)));var e},t.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.prototype.registerName=function(e,t){if(ie(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.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(ie(e),n)},t.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.prototype.clearRules=function(e){this.getTag().clearGroup(ie(e)),this.clearNames(e)},t.prototype.clearTag=function(){this.tag=void 0},t.prototype.toString=function(){return ae(this)},t}(),me=/^\s*\/\/.*$/gm,ye=[":","[",".","#"];function ve(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&(e.children=ve(e.children,t)),e})}function ge(e){var t,n,o,s,i=void 0===e?v:e,a=i.options,c=void 0===a?v:a,u=i.plugins,l=void 0===u?y:u,p=function(e,r,o){return 0===r&&ye.includes(o[n.length])||o.match(s)?e:".".concat(t)},d=l.slice();c.prefix&&d.unshift(r.prefixer),d.push(function(e){e.type===r.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(o,p))},r.stringify);var h=function(e,i,a,u){void 0===i&&(i=""),void 0===a&&(a=""),void 0===u&&(u="&"),t=u,n=i,o=new RegExp("\\".concat(n,"\\b"),"g"),s=new RegExp("(\\".concat(n,"\\b){2,}"));var l=e.replace(me,""),p=r.compile(a||i?"".concat(a," ").concat(i," { ").concat(l," }"):l);return c.namespace&&(p=ve(p,c.namespace)),function(e,t){for(var n=[],r=0,o=void 0;r<e.length;r+=1)(o=t(e[r],r,e,t))&&n.push(o);return n}(p,r.middleware(d))};return h.hash=l.length?l.reduce(function(e,t){return t.name||te(15),A(e,t.name)},5381).toString():"",h}var Se=new fe,_e=ge(),we=i.default.createContext({shouldForwardProp:void 0,styleSheet:Se,stylis:_e}),be=we.Consumer,Ee=i.default.createContext(void 0);function Ne(){return t.useContext(we)}function Pe(e){var n=t.useState(e.stylisPlugins),r=n[0],o=n[1],s=Ne().styleSheet,c=t.useMemo(function(){var t=s;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,s]),u=t.useMemo(function(){return ge({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);return t.useEffect(function(){a.default(r,e.stylisPlugins)||o(e.stylisPlugins)},[e.stylisPlugins]),i.default.createElement(we.Provider,{value:{shouldForwardProp:e.shouldForwardProp,styleSheet:c,stylis:u}},i.default.createElement(Ee.Provider,{value:u},e.children))}var Ce=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=_e);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){throw te(12,String(n.name))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=_e),this.name+e.hash},e}(),Ae=function(e){return e>="A"&&e<="Z"};function Ie(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Ae(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Oe=function(e){return null==e||!1===e||""===e},xe=function(t){var n,r=[];for(var o in t){var s=t[o];t.hasOwnProperty(o)&&!Oe(s)&&(Array.isArray(s)&&s.isCss||W(s)?r.push("".concat(Ie(o),":"),s,";"):Z(s)?r.push.apply(r,e.__spreadArray(e.__spreadArray(["".concat(o," {")],xe(s),!1),["}"],!1)):r.push("".concat(Ie(o),": ").concat(null==(n=s)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||o in c.default?String(n).trim():"".concat(n,"px"),";")))}return r};function Re(e,t,n,r){if(Oe(e))return[];if(U(e))return[".".concat(e.styledComponentId)];if(W(e)){if(!W(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof Ce||Z(o)||null===o||console.error("".concat(x(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.")),Re(o,t,n,r)}var s;return e instanceof Ce?n?(e.inject(n,r),[e.getName(r)]):[e]:Z(e)?xe(e):Array.isArray(e)?e.flatMap(function(e){return Re(e,t,n,r)}):[e.toString()]}function Te(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(W(n)&&!U(n))return!1}return!0}var De=I(l),je=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Te(e),this.componentId=t,this.baseHash=A(De,t),this.baseStyle=n,fe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=J(r,this.staticRulesId);else{var o=X(Re(this.rules,e,t,n)),s=P(A(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}r=J(r,s),this.staticRulesId=s}else{for(var a=A(this.baseHash,n.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l,"production"!==process.env.NODE_ENV&&(a=A(a,l));else if(l){var p=X(Re(l,e,t,n));a=A(a,p),c+=p}}if(c){var d=P(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),r=J(r,d)}}return r},e}(),ke=i.default.createContext(void 0),Ve=ke.Consumer;function Me(){return t.useContext(ke)}var Fe={};function $e(n,r,o){var s=U(n),a=n,c=!R(n),u=r.attrs,p=void 0===u?y:u,d=r.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":b(e);Fe[n]=(Fe[n]||0)+1;var r="".concat(n,"-").concat(O(l+n+Fe[n]));return t?"".concat(t,"-").concat(r):r}(r.displayName,r.parentComponentId):d,f=r.displayName,_=void 0===f?function(e){return R(e)?"styled.".concat(e):"Styled(".concat(x(e),")")}(n):f,w=r.displayName&&r.componentId?"".concat(b(r.displayName),"-").concat(r.componentId):r.componentId||h,E=s&&a.attrs?a.attrs.concat(p).filter(Boolean):p,N=r.shouldForwardProp;if(s&&a.shouldForwardProp){var P=a.shouldForwardProp;if(r.shouldForwardProp){var C=r.shouldForwardProp;N=function(e,t){return P(e,t)&&C(e,t)}}else N=P}var A=new je(o,w,s?a.componentStyle:void 0),I=A.isStatic&&0===p.length;function T(n,r){return function(n,r,o,s){var i=n.attrs,a=n.componentStyle,c=n.defaultProps,u=n.foldedComponentIds,l=n.styledComponentId,p=n.target,d=Me(),h=Ne(),f=n.shouldForwardProp||h.shouldForwardProp;"production"!==process.env.NODE_ENV&&t.useDebugValue(l);var m=function(t,n,r){for(var o,s=e.__assign(e.__assign({},n),{className:void 0,theme:r}),i=0;i<t.length;i+=1){var a=W(o=t[i])?o(s):o;for(var c in a)s[c]="className"===c?J(s[c],a[c]):"style"===c?e.__assign(e.__assign({},s[c]),a[c]):a[c]}return n.className&&(s.className=J(s.className,n.className)),s}(i,r,g(r,d,c)||v),y=m.as||p,_={};for(var w in m)void 0===m[w]||"$"===w[0]||"as"===w||"theme"===w||("forwardedAs"===w?_.as=m.forwardedAs:f&&!f(w,y)||(_[w]=m[w]));var b=function(e,n,r){var o=Ne(),s=e.generateAndInjectStyles(n?v:r,o.styleSheet,o.stylis);return"production"!==process.env.NODE_ENV&&t.useDebugValue(s),s}(a,s,m);"production"!==process.env.NODE_ENV&&!s&&n.warnTooManyClasses&&n.warnTooManyClasses(b);var E=J(u,l);return b&&(E+=" "+b),m.className&&(E+=" "+m.className),_[R(y)&&!S.has(y)?"class":"className"]=E,_.ref=o,t.createElement(y,_)}(D,n,r,I)}T.displayName=_;var D=i.default.forwardRef(T);return D.attrs=E,D.componentStyle=A,D.displayName=_,D.shouldForwardProp=N,D.foldedComponentIds=s?J(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=w,D.target=s?a.target:n,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)K(e,o[r],!0);return e}({},a.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(m(_,w),D.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 "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(_,w)),Object.defineProperty(D,"toString",{value:function(){return".".concat(D.styledComponentId)}}),c&&H(D,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function Be(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}var ze=function(e){return Object.assign(e,{isCss:!0})};function Ge(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(W(t)||Z(t)){var o=t;return ze(Re(Be(y,e.__spreadArray([o],n,!0))))}var s=t;return 0===n.length&&1===s.length&&"string"==typeof s[0]?Re(s):ze(Re(Be(s,n)))}function Le(t,n,r){if(void 0===r&&(r=v),!n)throw te(1,n);var o=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return t(n,r,Ge.apply(void 0,e.__spreadArray([o],s,!1)))};return o.attrs=function(o){return Le(t,n,e.__assign(e.__assign({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return Le(t,n,e.__assign(e.__assign({},r),o))},o}var qe=function(e){return Le($e,e)},Ye=qe;S.forEach(function(e){Ye[e]=qe(e)});var He=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Te(e),fe.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(X(Re(this.rules,t,n,r)),""),s=this.componentId+e;n.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&fe.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}(),We=/^\s*<\/[a-z]/i,Ue=function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString(),n=ce(),r=X([n&&'nonce="'.concat(n,'"'),"".concat(u,'="true"'),"".concat("data-styled-version",'="').concat(l,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(e,"</style>")},this.getStyleTags=function(){if(t.sealed)throw te(2);return t._emitSheetCSS()},this.getStyleElement=function(){var n;if(t.sealed)throw te(2);var r=((n={})[u]="",n["data-styled-version"]=l,n.dangerouslySetInnerHTML={__html:t.instance.toString()},n),o=ce();return o&&(r.nonce=o),[i.default.createElement("style",e.__assign({},r,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new fe({isServer:!0}),this.sealed=!1}return t.prototype.collectStyles=function(e){if(this.sealed)throw te(2);return i.default.createElement(Pe,{sheet:this.instance},e)},t.prototype.interleaveWithNodeStream=function(e){if(this.sealed)throw te(2);this.seal();var t=require("stream").Transform,n=e,r=this.instance,o=this._emitSheetCSS,s=new t({transform:function(e,t,n){var s=e.toString(),i=o();if(r.clearTag(),We.test(s)){var a=s.indexOf(">")+1,c=s.slice(0,a),u=s.slice(a);this.push(c+i+u)}else this.push(i+s);n()}});return n.on("error",function(e){s.emit("error",e)}),n.pipe(s)},t}(),Je={StyleSheet:fe,mainSheet:Se};"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"),"__sc-".concat(u,"__"),"production"!==process.env.NODE_ENV&&process,exports.ServerStyleSheet=Ue,exports.StyleSheetConsumer=be,exports.StyleSheetContext=we,exports.StyleSheetManager=Pe,exports.ThemeConsumer=Ve,exports.ThemeContext=ke,exports.ThemeProvider=function(n){var r=Me(),o=t.useMemo(function(){return function(t,n){if(!t)throw te(14);if(W(t)){var r=t(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw te(7);return r}if(Array.isArray(t)||"object"!=typeof t)throw te(8);return n?e.__assign(e.__assign({},n),t):t}(n.theme,r)},[n.theme,r]);return n.children?i.default.createElement(ke.Provider,{value:o},n.children):null},exports.__PRIVATE__=Je,exports.createGlobalStyle=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=Ge.apply(void 0,e.__spreadArray([t],n,!1)),s="sc-global-".concat(O(JSON.stringify(o))),a=new He(o,s);"production"!==process.env.NODE_ENV&&m(s);var c=function(e){var t=Ne(),n=Me(),r=i.default.useRef(t.styleSheet.allocateGSInstance(s)).current;return"production"!==process.env.NODE_ENV&&i.default.Children.count(e.children)&&console.warn("The global style component ".concat(s," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&o.some(function(e){return"string"==typeof e&&-1!==e.indexOf("@import")})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),t.styleSheet.server&&u(r,e,t.styleSheet,n,t.stylis),null};function u(t,n,r,o,s){if(a.isStatic)a.renderStyles(t,d,r,s);else{var i=e.__assign(e.__assign({},n),{theme:g(n,o,c.defaultProps)});a.renderStyles(t,i,r,s)}}return i.default.memo(c)},exports.css=Ge,exports.default=Ye,exports.isStyledComponent=U,exports.keyframes=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var o=X(Ge.apply(void 0,e.__spreadArray([t],n,!1))),s=O(o);return new Ce(s,o)},exports.styled=Ye,exports.useTheme=Me,exports.version=l,exports.withTheme=function(t){var n=i.default.forwardRef(function(n,r){var o=g(n,Me(),t.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===o&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(x(t),'"')),i.default.createElement(t,e.__assign({},n,{theme:o,ref:r}))});return n.displayName="WithTheme(".concat(x(t),")"),H(n,t)};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react"),n=require("shallowequal"),r=require("stylis"),o=require("@emotion/unitless");function s(e){return e&&e.__esModule?e:{default:e}}var i=/*#__PURE__*/s(t),a=/*#__PURE__*/s(n),c=/*#__PURE__*/s(o),u="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",l="6.0.0-beta.15",p=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),d={},h=/invalid hook call/i,f=new Set,y=function(n,r){if("production"!==process.env.NODE_ENV){var o=r?' with the id of "'.concat(r,'"'):"",s="The component ".concat(n).concat(o," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];h.test(t)?(a=!1,f.delete(s)):i.apply(void 0,e.__spreadArray([t],n,!1))},t.useRef(),a&&!f.has(s)&&(console.warn(s),f.add(s))}catch(e){h.test(e.message)&&f.delete(s)}finally{console.error=i}}},m=Object.freeze([]),v=Object.freeze({});function g(e,t,n){return void 0===n&&(n=v),e.theme!==n.theme&&e.theme||t||n.theme}var S=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),_=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,w=/(^-|-$)/g;function b(e){return e.replace(_,"-").replace(w,"")}var E=/(a)(d)/gi,N=function(e){return String.fromCharCode(e+(e>25?39:97))};function P(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=N(t%52)+n;return(N(t%52)+n).replace(E,"$1-$2")}var C,A=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},I=function(e){return A(5381,e)};function O(e){return P(I(e)>>>0)}function x(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function T(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var R="function"==typeof Symbol&&Symbol.for,D=R?Symbol.for("react.memo"):60115,j=R?Symbol.for("react.forward_ref"):60112,k={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},V={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},M={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},F=((C={})[j]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},C[D]=M,C);function $(e){return("type"in(t=e)&&t.type.$$typeof)===D?M:"$$typeof"in e?F[e.$$typeof]:k;var t}var B=Object.defineProperty,z=Object.getOwnPropertyNames,G=Object.getOwnPropertySymbols,L=Object.getOwnPropertyDescriptor,q=Object.getPrototypeOf,Y=Object.prototype;function W(e,t,n){if("string"!=typeof t){if(Y){var r=q(t);r&&r!==Y&&W(e,r,n)}var o=z(t);G&&(o=o.concat(G(t)));for(var s=$(e),i=$(t),a=0;a<o.length;++a){var c=o[a];if(!(c in V||n&&n[c]||i&&c in i||s&&c in s)){var u=L(t,c);try{B(e,c,u)}catch(e){}}}}return e}function H(e){return"function"==typeof e}function U(e){return"object"==typeof e&&"styledComponentId"in e}function J(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function X(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Z(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function K(e,t,n){if(void 0===n&&(n=!1),!n&&!Z(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=K(e[r],t[r]);else if(Z(t))for(var r in t)e[r]=K(e[r],t[r]);return e}var Q="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 ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function te(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(ee.apply(void 0,e.__spreadArray([Q[t]],n,!1)).trim())}var ne=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw te(16,"".concat(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=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+="".concat(this.tag.getRule(s)).concat("/*!sc*/\n");return t},e}(),re=new Map,oe=new Map,se=1,ie=function(e){if(re.has(e))return re.get(e);for(;oe.has(se);)se++;var t=se++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw te(16,"".concat(t));return re.set(e,t),oe.set(t,e),t},ae=("style[".concat(u,"][").concat("data-styled-version",'="').concat(l,'"]'),new RegExp("^".concat(u,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return oe.get(e)}(n);if(void 0===o)return"continue";var s=e.names.get(o),i=t.getGroup(n);if(void 0===s||0===i.length)return"continue";var a="".concat(u,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat("/*!sc*/\n")},s=0;s<n;s++)o(s);return r});function ce(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var ue=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(u))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(u,"active"),r.setAttribute("data-styled-version",l);var i=ce();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},le=function(){function e(e){this.element=ue(e),this.element.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}throw te(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),pe=function(){function e(e){this.element=ue(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),de=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),he={isServer:!0,useCSSOMInjection:!p},fe=function(){function t(t,n,r){void 0===t&&(t=v),void 0===n&&(n={}),this.options=e.__assign(e.__assign({},he),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer}return t.registerId=function(e){return ie(e)},t.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new t(e.__assign(e.__assign({},this.options),n),this.gs,r&&this.names||void 0)},t.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new de(n):t?new le(n):new pe(n)}(this.options),new ne(e)));var e},t.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.prototype.registerName=function(e,t){if(ie(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.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(ie(e),n)},t.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.prototype.clearRules=function(e){this.getTag().clearGroup(ie(e)),this.clearNames(e)},t.prototype.clearTag=function(){this.tag=void 0},t.prototype.toString=function(){return ae(this)},t}(),ye=/^\s*\/\/.*$/gm;function me(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=me(e.children,t)),e})}function ve(e){var t,n,o,s=void 0===e?v:e,i=s.options,a=void 0===i?v:i,c=s.plugins,u=void 0===c?m:c,l=function(e,r,o){return o===n||o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},p=u.slice();a.prefix&&p.unshift(r.prefixer),p.push(function(e){e.type===r.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(o,l))},r.stringify);var d=function(e,s,i,c){void 0===s&&(s=""),void 0===i&&(i=""),void 0===c&&(c="&"),t=c,n=s,o=new RegExp("\\".concat(n,"\\b"),"g");var u=e.replace(ye,""),l=r.compile(i||s?"".concat(i," ").concat(s," { ").concat(u," }"):u);return a.namespace&&(l=me(l,a.namespace)),function(e,t){for(var n=[],r=0,o=void 0;r<e.length;r+=1)(o=t(e[r],r,e,t))&&n.push(o);return n}(l,r.middleware(p))};return d.hash=u.length?u.reduce(function(e,t){return t.name||te(15),A(e,t.name)},5381).toString():"",d}var ge=new fe,Se=ve(),_e=i.default.createContext({shouldForwardProp:void 0,styleSheet:ge,stylis:Se}),we=_e.Consumer,be=i.default.createContext(void 0);function Ee(){return t.useContext(_e)}function Ne(e){var n=t.useState(e.stylisPlugins),r=n[0],o=n[1],s=Ee().styleSheet,c=t.useMemo(function(){var t=s;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,s]),u=t.useMemo(function(){return ve({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);return t.useEffect(function(){a.default(r,e.stylisPlugins)||o(e.stylisPlugins)},[e.stylisPlugins]),i.default.createElement(_e.Provider,{value:{shouldForwardProp:e.shouldForwardProp,styleSheet:c,stylis:u}},i.default.createElement(be.Provider,{value:u},e.children))}var Pe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Se);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){throw te(12,String(n.name))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Se),this.name+e.hash},e}(),Ce=function(e){return e>="A"&&e<="Z"};function Ae(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Ce(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ie=function(e){return null==e||!1===e||""===e},Oe=function(t){var n,r,o=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ie(i)&&(Array.isArray(i)&&i.isCss||H(i)?o.push("".concat(Ae(s),":"),i,";"):Z(i)?o.push.apply(o,e.__spreadArray(e.__spreadArray(["".concat(s," {")],Oe(i),!1),["}"],!1)):o.push("".concat(Ae(s),": ").concat((n=s,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in c.default||n.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return o};function xe(e,t,n,r){if(Ie(e))return[];if(U(e))return[".".concat(e.styledComponentId)];if(H(e)){if(!H(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof Pe||Z(o)||null===o||console.error("".concat(x(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),xe(o,t,n,r)}var s;return e instanceof Pe?n?(e.inject(n,r),[e.getName(r)]):[e]:Z(e)?Oe(e):Array.isArray(e)?e.flatMap(function(e){return xe(e,t,n,r)}):[e.toString()]}function Te(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(H(n)&&!U(n))return!1}return!0}var Re=I(l),De=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Te(e),this.componentId=t,this.baseHash=A(Re,t),this.baseStyle=n,fe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=J(r,this.staticRulesId);else{var o=X(xe(this.rules,e,t,n)),s=P(A(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}r=J(r,s),this.staticRulesId=s}else{for(var a=A(this.baseHash,n.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l,"production"!==process.env.NODE_ENV&&(a=A(a,l));else if(l){var p=X(xe(l,e,t,n));a=A(a,p),c+=p}}if(c){var d=P(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),r=J(r,d)}}return r},e}(),je=i.default.createContext(void 0),ke=je.Consumer;function Ve(){return t.useContext(je)}var Me={};function Fe(n,r,o){var s=U(n),a=n,c=!T(n),u=r.attrs,p=void 0===u?m:u,d=r.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":b(e);Me[n]=(Me[n]||0)+1;var r="".concat(n,"-").concat(O(l+n+Me[n]));return t?"".concat(t,"-").concat(r):r}(r.displayName,r.parentComponentId):d,f=r.displayName,_=void 0===f?function(e){return T(e)?"styled.".concat(e):"Styled(".concat(x(e),")")}(n):f,w=r.displayName&&r.componentId?"".concat(b(r.displayName),"-").concat(r.componentId):r.componentId||h,E=s&&a.attrs?a.attrs.concat(p).filter(Boolean):p,N=r.shouldForwardProp;if(s&&a.shouldForwardProp){var P=a.shouldForwardProp;if(r.shouldForwardProp){var C=r.shouldForwardProp;N=function(e,t){return P(e,t)&&C(e,t)}}else N=P}var A=new De(o,w,s?a.componentStyle:void 0),I=A.isStatic&&0===p.length;function R(n,r){return function(n,r,o,s){var i=n.attrs,a=n.componentStyle,c=n.defaultProps,u=n.foldedComponentIds,l=n.styledComponentId,p=n.target,d=Ve(),h=Ee(),f=n.shouldForwardProp||h.shouldForwardProp;"production"!==process.env.NODE_ENV&&t.useDebugValue(l);var y=function(t,n,r){for(var o,s=e.__assign(e.__assign({},n),{className:void 0,theme:r}),i=0;i<t.length;i+=1){var a=H(o=t[i])?o(s):o;for(var c in a)s[c]="className"===c?J(s[c],a[c]):"style"===c?e.__assign(e.__assign({},s[c]),a[c]):a[c]}return n.className&&(s.className=J(s.className,n.className)),s}(i,r,g(r,d,c)||v),m=y.as||p,_={};for(var w in y)void 0===y[w]||"$"===w[0]||"as"===w||"theme"===w||("forwardedAs"===w?_.as=y.forwardedAs:f&&!f(w,m)||(_[w]=y[w]));var b=function(e,n,r){var o=Ee(),s=e.generateAndInjectStyles(n?v:r,o.styleSheet,o.stylis);return"production"!==process.env.NODE_ENV&&t.useDebugValue(s),s}(a,s,y);"production"!==process.env.NODE_ENV&&!s&&n.warnTooManyClasses&&n.warnTooManyClasses(b);var E=J(u,l);return b&&(E+=" "+b),y.className&&(E+=" "+y.className),_[T(m)&&!S.has(m)?"class":"className"]=E,_.ref=o,t.createElement(m,_)}(D,n,r,I)}R.displayName=_;var D=i.default.forwardRef(R);return D.attrs=E,D.componentStyle=A,D.displayName=_,D.shouldForwardProp=N,D.foldedComponentIds=s?J(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=w,D.target=s?a.target:n,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)K(e,o[r],!0);return e}({},a.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(y(_,w),D.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 "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(_,w)),Object.defineProperty(D,"toString",{value:function(){return".".concat(D.styledComponentId)}}),c&&W(D,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function $e(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}var Be=function(e){return Object.assign(e,{isCss:!0})};function ze(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(H(t)||Z(t)){var o=t;return Be(xe($e(m,e.__spreadArray([o],n,!0))))}var s=t;return 0===n.length&&1===s.length&&"string"==typeof s[0]?xe(s):Be(xe($e(s,n)))}function Ge(t,n,r){if(void 0===r&&(r=v),!n)throw te(1,n);var o=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return t(n,r,ze.apply(void 0,e.__spreadArray([o],s,!1)))};return o.attrs=function(o){return Ge(t,n,e.__assign(e.__assign({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return Ge(t,n,e.__assign(e.__assign({},r),o))},o}var Le=function(e){return Ge(Fe,e)},qe=Le;S.forEach(function(e){qe[e]=Le(e)});var Ye=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Te(e),fe.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(X(xe(this.rules,t,n,r)),""),s=this.componentId+e;n.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&fe.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}(),We=/^\s*<\/[a-z]/i,He=function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString(),n=ce(),r=X([n&&'nonce="'.concat(n,'"'),"".concat(u,'="true"'),"".concat("data-styled-version",'="').concat(l,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(e,"</style>")},this.getStyleTags=function(){if(t.sealed)throw te(2);return t._emitSheetCSS()},this.getStyleElement=function(){var n;if(t.sealed)throw te(2);var r=((n={})[u]="",n["data-styled-version"]=l,n.dangerouslySetInnerHTML={__html:t.instance.toString()},n),o=ce();return o&&(r.nonce=o),[i.default.createElement("style",e.__assign({},r,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new fe({isServer:!0}),this.sealed=!1}return t.prototype.collectStyles=function(e){if(this.sealed)throw te(2);return i.default.createElement(Ne,{sheet:this.instance},e)},t.prototype.interleaveWithNodeStream=function(e){if(this.sealed)throw te(2);this.seal();var t=require("stream").Transform,n=e,r=this.instance,o=this._emitSheetCSS,s=new t({transform:function(e,t,n){var s=e.toString(),i=o();if(r.clearTag(),We.test(s)){var a=s.indexOf(">")+1,c=s.slice(0,a),u=s.slice(a);this.push(c+i+u)}else this.push(i+s);n()}});return n.on("error",function(e){s.emit("error",e)}),n.pipe(s)},t}(),Ue={StyleSheet:fe,mainSheet:ge};"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"),"__sc-".concat(u,"__"),"production"!==process.env.NODE_ENV&&process,exports.ServerStyleSheet=He,exports.StyleSheetConsumer=we,exports.StyleSheetContext=_e,exports.StyleSheetManager=Ne,exports.ThemeConsumer=ke,exports.ThemeContext=je,exports.ThemeProvider=function(n){var r=Ve(),o=t.useMemo(function(){return function(t,n){if(!t)throw te(14);if(H(t)){var r=t(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw te(7);return r}if(Array.isArray(t)||"object"!=typeof t)throw te(8);return n?e.__assign(e.__assign({},n),t):t}(n.theme,r)},[n.theme,r]);return n.children?i.default.createElement(je.Provider,{value:o},n.children):null},exports.__PRIVATE__=Ue,exports.createGlobalStyle=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=ze.apply(void 0,e.__spreadArray([t],n,!1)),s="sc-global-".concat(O(JSON.stringify(o))),a=new Ye(o,s);"production"!==process.env.NODE_ENV&&y(s);var c=function(e){var t=Ee(),n=Ve(),r=i.default.useRef(t.styleSheet.allocateGSInstance(s)).current;return"production"!==process.env.NODE_ENV&&i.default.Children.count(e.children)&&console.warn("The global style component ".concat(s," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&o.some(function(e){return"string"==typeof e&&-1!==e.indexOf("@import")})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),t.styleSheet.server&&u(r,e,t.styleSheet,n,t.stylis),null};function u(t,n,r,o,s){if(a.isStatic)a.renderStyles(t,d,r,s);else{var i=e.__assign(e.__assign({},n),{theme:g(n,o,c.defaultProps)});a.renderStyles(t,i,r,s)}}return i.default.memo(c)},exports.css=ze,exports.default=qe,exports.isStyledComponent=U,exports.keyframes=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var o=X(ze.apply(void 0,e.__spreadArray([t],n,!1))),s=O(o);return new Pe(s,o)},exports.styled=qe,exports.useTheme=Ve,exports.version=l,exports.withTheme=function(t){var n=i.default.forwardRef(function(n,r){var o=g(n,Ve(),t.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===o&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(x(t),'"')),i.default.createElement(t,e.__assign({},n,{theme:o,ref:r}))});return n.displayName="WithTheme(".concat(x(t),")"),W(n,t)};
//# sourceMappingURL=styled-components.cjs.js.map

@@ -1,2 +0,2 @@

import{__spreadArray as e,__assign as t}from"tslib";import n,{useRef as r,useState as o,useMemo as s,useEffect as i,useContext as a,useDebugValue as c,createElement as l}from"react";import u from"shallowequal";import{prefixer as p,stringify as d,RULESET as h,compile as f,middleware as m}from"stylis";import y from"@emotion/unitless";var v="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",g="6.0.0-beta.14",S=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),w={},b=/invalid hook call/i,E=new Set,N=function(t,n){if("production"!==process.env.NODE_ENV){var o=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(o," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];b.test(t)?(a=!1,E.delete(s)):i.apply(void 0,e([t],n,!1))},r(),a&&!E.has(s)&&(console.warn(s),E.add(s))}catch(e){b.test(e.message)&&E.delete(s)}finally{console.error=i}}},P=Object.freeze([]),_=Object.freeze({});function C(e,t,n){return void 0===n&&(n=_),e.theme!==n.theme&&e.theme||t||n.theme}var I=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),A=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,O=/(^-|-$)/g;function R(e){return e.replace(A,"-").replace(O,"")}var D=/(a)(d)/gi,T=function(e){return String.fromCharCode(e+(e>25?39:97))};function j(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=T(t%52)+n;return(T(t%52)+n).replace(D,"$1-$2")}var x,k=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},V=function(e){return k(5381,e)};function F(e){return j(V(e)>>>0)}function M(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function $(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var B="function"==typeof Symbol&&Symbol.for,z=B?Symbol.for("react.memo"):60115,G=B?Symbol.for("react.forward_ref"):60112,L={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Y={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},q={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},H=((x={})[G]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},x[z]=q,x);function W(e){return("type"in(t=e)&&t.type.$$typeof)===z?q:"$$typeof"in e?H[e.$$typeof]:L;var t}var U=Object.defineProperty,J=Object.getOwnPropertyNames,X=Object.getOwnPropertySymbols,Z=Object.getOwnPropertyDescriptor,K=Object.getPrototypeOf,Q=Object.prototype;function ee(e,t,n){if("string"!=typeof t){if(Q){var r=K(t);r&&r!==Q&&ee(e,r,n)}var o=J(t);X&&(o=o.concat(X(t)));for(var s=W(e),i=W(t),a=0;a<o.length;++a){var c=o[a];if(!(c in Y||n&&n[c]||i&&c in i||s&&c in s)){var l=Z(t,c);try{U(e,c,l)}catch(e){}}}}return e}function te(e){return"function"==typeof e}function ne(e){return"object"==typeof e&&"styledComponentId"in e}function re(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function oe(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function se(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ie(e,t,n){if(void 0===n&&(n=!1),!n&&!se(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=ie(e[r],t[r]);else if(se(t))for(var r in t)e[r]=ie(e[r],t[r]);return e}var ae="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 ce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function le(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(ce.apply(void 0,e([ae[t]],n,!1)).trim())}var ue=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw le(16,"".concat(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=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+="".concat(this.tag.getRule(s)).concat("/*!sc*/\n");return t},e}(),pe=new Map,de=new Map,he=1,fe=function(e){if(pe.has(e))return pe.get(e);for(;de.has(he);)he++;var t=he++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw le(16,"".concat(t));return pe.set(e,t),de.set(t,e),t},me=("style[".concat(v,"][").concat("data-styled-version",'="').concat(g,'"]'),new RegExp("^".concat(v,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return de.get(e)}(n);if(void 0===o)return"continue";var s=e.names.get(o),i=t.getGroup(n);if(void 0===s||0===i.length)return"continue";var a="".concat(v,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat("/*!sc*/\n")},s=0;s<n;s++)o(s);return r});function ye(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var ve=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(v))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(v,"active"),r.setAttribute("data-styled-version",g);var i=ye();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},ge=function(){function e(e){this.element=ve(e),this.element.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}throw le(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Se=function(){function e(e){this.element=ve(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),we=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),be={isServer:!0,useCSSOMInjection:!S},Ee=function(){function e(e,n,r){void 0===e&&(e=_),void 0===n&&(n={}),this.options=t(t({},be),e),this.gs=n,this.names=new Map(r),this.server=!!e.isServer}return e.registerId=function(e){return fe(e)},e.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new e(t(t({},this.options),n),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new we(n):t?new ge(n):new Se(n)}(this.options),new ue(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(fe(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(fe(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(fe(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e.prototype.toString=function(){return me(this)},e}(),Ne=/^\s*\/\/.*$/gm,Pe=[":","[",".","#"];function _e(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&(e.children=_e(e.children,t)),e})}function Ce(e){var t,n,r,o,s=void 0===e?_:e,i=s.options,a=void 0===i?_:i,c=s.plugins,l=void 0===c?P:c,u=function(e,r,s){return 0===r&&Pe.includes(s[n.length])||s.match(o)?e:".".concat(t)},y=l.slice();a.prefix&&y.unshift(p),y.push(function(e){e.type===h&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(r,u))},d);var v=function(e,s,i,c){void 0===s&&(s=""),void 0===i&&(i=""),void 0===c&&(c="&"),t=c,n=s,r=new RegExp("\\".concat(n,"\\b"),"g"),o=new RegExp("(\\".concat(n,"\\b){2,}"));var l=e.replace(Ne,""),u=f(i||s?"".concat(i," ").concat(s," { ").concat(l," }"):l);return a.namespace&&(u=_e(u,a.namespace)),function(e,t){for(var n=[],r=0,o=void 0;r<e.length;r+=1)(o=t(e[r],r,e,t))&&n.push(o);return n}(u,m(y))};return v.hash=l.length?l.reduce(function(e,t){return t.name||le(15),k(e,t.name)},5381).toString():"",v}var Ie=new Ee,Ae=Ce(),Oe=n.createContext({shouldForwardProp:void 0,styleSheet:Ie,stylis:Ae}),Re=Oe.Consumer,De=n.createContext(void 0);function Te(){return a(Oe)}function je(e){var t=o(e.stylisPlugins),r=t[0],a=t[1],c=Te().styleSheet,l=s(function(){var t=c;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,c]),p=s(function(){return Ce({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);return i(function(){u(r,e.stylisPlugins)||a(e.stylisPlugins)},[e.stylisPlugins]),n.createElement(Oe.Provider,{value:{shouldForwardProp:e.shouldForwardProp,styleSheet:l,stylis:p}},n.createElement(De.Provider,{value:p},e.children))}var xe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ae);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){throw le(12,String(n.name))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Ae),this.name+e.hash},e}(),ke=function(e){return e>="A"&&e<="Z"};function Ve(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;ke(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Fe=function(e){return null==e||!1===e||""===e},Me=function(t){var n,r=[];for(var o in t){var s=t[o];t.hasOwnProperty(o)&&!Fe(s)&&(Array.isArray(s)&&s.isCss||te(s)?r.push("".concat(Ve(o),":"),s,";"):se(s)?r.push.apply(r,e(e(["".concat(o," {")],Me(s),!1),["}"],!1)):r.push("".concat(Ve(o),": ").concat(null==(n=s)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||o in y?String(n).trim():"".concat(n,"px"),";")))}return r};function $e(e,t,n,r){if(Fe(e))return[];if(ne(e))return[".".concat(e.styledComponentId)];if(te(e)){if(!te(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof xe||se(o)||null===o||console.error("".concat(M(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(o,t,n,r)}var s;return e instanceof xe?n?(e.inject(n,r),[e.getName(r)]):[e]:se(e)?Me(e):Array.isArray(e)?e.flatMap(function(e){return $e(e,t,n,r)}):[e.toString()]}function Be(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(te(n)&&!ne(n))return!1}return!0}var ze=V(g),Ge=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Be(e),this.componentId=t,this.baseHash=k(ze,t),this.baseStyle=n,Ee.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=re(r,this.staticRulesId);else{var o=oe($e(this.rules,e,t,n)),s=j(k(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}r=re(r,s),this.staticRulesId=s}else{for(var a=k(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=k(a,u));else if(u){var p=oe($e(u,e,t,n));a=k(a,p),c+=p}}if(c){var d=j(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),r=re(r,d)}}return r},e}(),Le=n.createContext(void 0),Ye=Le.Consumer;function qe(){return a(Le)}function He(e){var r=qe(),o=s(function(){return function(e,n){if(!e)throw le(14);if(te(e)){var r=e(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw le(7);return r}if(Array.isArray(e)||"object"!=typeof e)throw le(8);return n?t(t({},n),e):e}(e.theme,r)},[e.theme,r]);return e.children?n.createElement(Le.Provider,{value:o},e.children):null}var We={};function Ue(e,r,o){var s=ne(e),i=e,a=!$(e),u=r.attrs,p=void 0===u?P:u,d=r.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":R(e);We[n]=(We[n]||0)+1;var r="".concat(n,"-").concat(F(g+n+We[n]));return t?"".concat(t,"-").concat(r):r}(r.displayName,r.parentComponentId):d,f=r.displayName,m=void 0===f?function(e){return $(e)?"styled.".concat(e):"Styled(".concat(M(e),")")}(e):f,y=r.displayName&&r.componentId?"".concat(R(r.displayName),"-").concat(r.componentId):r.componentId||h,v=s&&i.attrs?i.attrs.concat(p).filter(Boolean):p,S=r.shouldForwardProp;if(s&&i.shouldForwardProp){var w=i.shouldForwardProp;if(r.shouldForwardProp){var b=r.shouldForwardProp;S=function(e,t){return w(e,t)&&b(e,t)}}else S=w}var E=new Ge(o,y,s?i.componentStyle:void 0),A=E.isStatic&&0===p.length;function O(e,n){return function(e,n,r,o){var s=e.attrs,i=e.componentStyle,a=e.defaultProps,u=e.foldedComponentIds,p=e.styledComponentId,d=e.target,h=qe(),f=Te(),m=e.shouldForwardProp||f.shouldForwardProp;"production"!==process.env.NODE_ENV&&c(p);var y=function(e,n,r){for(var o,s=t(t({},n),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=te(o=e[i])?o(s):o;for(var c in a)s[c]="className"===c?re(s[c],a[c]):"style"===c?t(t({},s[c]),a[c]):a[c]}return n.className&&(s.className=re(s.className,n.className)),s}(s,n,C(n,h,a)||_),v=y.as||d,g={};for(var S in y)void 0===y[S]||"$"===S[0]||"as"===S||"theme"===S||("forwardedAs"===S?g.as=y.forwardedAs:m&&!m(S,v)||(g[S]=y[S]));var w=function(e,t,n){var r=Te(),o=e.generateAndInjectStyles(t?_:n,r.styleSheet,r.stylis);return"production"!==process.env.NODE_ENV&&c(o),o}(i,o,y);"production"!==process.env.NODE_ENV&&!o&&e.warnTooManyClasses&&e.warnTooManyClasses(w);var b=re(u,p);return w&&(b+=" "+w),y.className&&(b+=" "+y.className),g[$(v)&&!I.has(v)?"class":"className"]=b,g.ref=r,l(v,g)}(D,e,n,A)}O.displayName=m;var D=n.forwardRef(O);return D.attrs=v,D.componentStyle=E,D.displayName=m,D.shouldForwardProp=S,D.foldedComponentIds=s?re(i.foldedComponentIds,i.styledComponentId):"",D.styledComponentId=y,D.target=s?i.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)ie(e,o[r],!0);return e}({},i.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(N(m,y),D.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 "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(m,y)),Object.defineProperty(D,"toString",{value:function(){return".".concat(D.styledComponentId)}}),a&&ee(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function Je(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}var Xe=function(e){return Object.assign(e,{isCss:!0})};function Ze(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(te(t)||se(t)){var o=t;return Xe($e(Je(P,e([o],n,!0))))}var s=t;return 0===n.length&&1===s.length&&"string"==typeof s[0]?$e(s):Xe($e(Je(s,n)))}function Ke(n,r,o){if(void 0===o&&(o=_),!r)throw le(1,r);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(r,o,Ze.apply(void 0,e([t],s,!1)))};return s.attrs=function(e){return Ke(n,r,t(t({},o),{attrs:Array.prototype.concat(o.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return Ke(n,r,t(t({},o),e))},s}var Qe=function(e){return Ke(Ue,e)},et=Qe;I.forEach(function(e){et[e]=Qe(e)});var tt=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Be(e),Ee.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(oe($e(this.rules,t,n,r)),""),s=this.componentId+e;n.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&Ee.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function nt(r){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];var i=Ze.apply(void 0,e([r],o,!1)),a="sc-global-".concat(F(JSON.stringify(i))),c=new tt(i,a);"production"!==process.env.NODE_ENV&&N(a);var l=function(e){var t=Te(),r=qe(),o=n.useRef(t.styleSheet.allocateGSInstance(a)).current;return"production"!==process.env.NODE_ENV&&n.Children.count(e.children)&&console.warn("The global style component ".concat(a," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&i.some(function(e){return"string"==typeof e&&-1!==e.indexOf("@import")})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),t.styleSheet.server&&u(o,e,t.styleSheet,r,t.stylis),null};function u(e,n,r,o,s){if(c.isStatic)c.renderStyles(e,w,r,s);else{var i=t(t({},n),{theme:C(n,o,l.defaultProps)});c.renderStyles(e,i,r,s)}}return n.memo(l)}function rt(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var o=oe(Ze.apply(void 0,e([t],n,!1))),s=F(o);return new xe(s,o)}function ot(e){var r=n.forwardRef(function(r,o){var s=C(r,qe(),e.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===s&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(M(e),'"')),n.createElement(e,t({},r,{theme:s,ref:o}))});return r.displayName="WithTheme(".concat(M(e),")"),ee(r,e)}var st=/^\s*<\/[a-z]/i,it=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=ye(),r=oe([n&&'nonce="'.concat(n,'"'),"".concat(v,'="true"'),"".concat("data-styled-version",'="').concat(g,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw le(2);return e._emitSheetCSS()},this.getStyleElement=function(){var r;if(e.sealed)throw le(2);var o=((r={})[v]="",r["data-styled-version"]=g,r.dangerouslySetInnerHTML={__html:e.instance.toString()},r),s=ye();return s&&(o.nonce=s),[n.createElement("style",t({},o,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Ee({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw le(2);return n.createElement(je,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){if(this.sealed)throw le(2);this.seal();var t=require("stream").Transform,n=e,r=this.instance,o=this._emitSheetCSS,s=new t({transform:function(e,t,n){var s=e.toString(),i=o();if(r.clearTag(),st.test(s)){var a=s.indexOf(">")+1,c=s.slice(0,a),l=s.slice(a);this.push(c+i+l)}else this.push(i+s);n()}});return n.on("error",function(e){s.emit("error",e)}),n.pipe(s)},e}(),at={StyleSheet:Ee,mainSheet:Ie};"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"),"__sc-".concat(v,"__"),"production"!==process.env.NODE_ENV&&process;export{it as ServerStyleSheet,Re as StyleSheetConsumer,Oe as StyleSheetContext,je as StyleSheetManager,Ye as ThemeConsumer,Le as ThemeContext,He as ThemeProvider,at as __PRIVATE__,nt as createGlobalStyle,Ze as css,et as default,ne as isStyledComponent,rt as keyframes,et as styled,qe as useTheme,g as version,ot as withTheme};
import{__spreadArray as e,__assign as t}from"tslib";import n,{useRef as r,useState as o,useMemo as s,useEffect as i,useContext as a,useDebugValue as c,createElement as l}from"react";import u from"shallowequal";import{prefixer as p,stringify as d,RULESET as h,compile as f,middleware as m}from"stylis";import y from"@emotion/unitless";var v="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",g="6.0.0-beta.15",S=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),w={},b=/invalid hook call/i,E=new Set,N=function(t,n){if("production"!==process.env.NODE_ENV){var o=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(o," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];b.test(t)?(a=!1,E.delete(s)):i.apply(void 0,e([t],n,!1))},r(),a&&!E.has(s)&&(console.warn(s),E.add(s))}catch(e){b.test(e.message)&&E.delete(s)}finally{console.error=i}}},P=Object.freeze([]),_=Object.freeze({});function C(e,t,n){return void 0===n&&(n=_),e.theme!==n.theme&&e.theme||t||n.theme}var I=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),A=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,O=/(^-|-$)/g;function D(e){return e.replace(A,"-").replace(O,"")}var R=/(a)(d)/gi,T=function(e){return String.fromCharCode(e+(e>25?39:97))};function j(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=T(t%52)+n;return(T(t%52)+n).replace(R,"$1-$2")}var x,k=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},V=function(e){return k(5381,e)};function F(e){return j(V(e)>>>0)}function M(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function $(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var B="function"==typeof Symbol&&Symbol.for,z=B?Symbol.for("react.memo"):60115,G=B?Symbol.for("react.forward_ref"):60112,L={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Y={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},W={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},q=((x={})[G]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},x[z]=W,x);function H(e){return("type"in(t=e)&&t.type.$$typeof)===z?W:"$$typeof"in e?q[e.$$typeof]:L;var t}var U=Object.defineProperty,J=Object.getOwnPropertyNames,X=Object.getOwnPropertySymbols,Z=Object.getOwnPropertyDescriptor,K=Object.getPrototypeOf,Q=Object.prototype;function ee(e,t,n){if("string"!=typeof t){if(Q){var r=K(t);r&&r!==Q&&ee(e,r,n)}var o=J(t);X&&(o=o.concat(X(t)));for(var s=H(e),i=H(t),a=0;a<o.length;++a){var c=o[a];if(!(c in Y||n&&n[c]||i&&c in i||s&&c in s)){var l=Z(t,c);try{U(e,c,l)}catch(e){}}}}return e}function te(e){return"function"==typeof e}function ne(e){return"object"==typeof e&&"styledComponentId"in e}function re(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function oe(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function se(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ie(e,t,n){if(void 0===n&&(n=!1),!n&&!se(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=ie(e[r],t[r]);else if(se(t))for(var r in t)e[r]=ie(e[r],t[r]);return e}var ae="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 ce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function le(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(ce.apply(void 0,e([ae[t]],n,!1)).trim())}var ue=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw le(16,"".concat(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=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+="".concat(this.tag.getRule(s)).concat("/*!sc*/\n");return t},e}(),pe=new Map,de=new Map,he=1,fe=function(e){if(pe.has(e))return pe.get(e);for(;de.has(he);)he++;var t=he++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw le(16,"".concat(t));return pe.set(e,t),de.set(t,e),t},me=("style[".concat(v,"][").concat("data-styled-version",'="').concat(g,'"]'),new RegExp("^".concat(v,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return de.get(e)}(n);if(void 0===o)return"continue";var s=e.names.get(o),i=t.getGroup(n);if(void 0===s||0===i.length)return"continue";var a="".concat(v,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat("/*!sc*/\n")},s=0;s<n;s++)o(s);return r});function ye(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var ve=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(v))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(v,"active"),r.setAttribute("data-styled-version",g);var i=ye();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},ge=function(){function e(e){this.element=ve(e),this.element.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}throw le(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Se=function(){function e(e){this.element=ve(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),we=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),be={isServer:!0,useCSSOMInjection:!S},Ee=function(){function e(e,n,r){void 0===e&&(e=_),void 0===n&&(n={}),this.options=t(t({},be),e),this.gs=n,this.names=new Map(r),this.server=!!e.isServer}return e.registerId=function(e){return fe(e)},e.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new e(t(t({},this.options),n),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new we(n):t?new ge(n):new Se(n)}(this.options),new ue(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(fe(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(fe(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(fe(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e.prototype.toString=function(){return me(this)},e}(),Ne=/^\s*\/\/.*$/gm;function Pe(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Pe(e.children,t)),e})}function _e(e){var t,n,r,o=void 0===e?_:e,s=o.options,i=void 0===s?_:s,a=o.plugins,c=void 0===a?P:a,l=function(e,r,o){return o===n||o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();i.prefix&&u.unshift(p),u.push(function(e){e.type===h&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(r,l))},d);var y=function(e,o,s,a){void 0===o&&(o=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(Ne,""),l=f(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);return i.namespace&&(l=Pe(l,i.namespace)),function(e,t){for(var n=[],r=0,o=void 0;r<e.length;r+=1)(o=t(e[r],r,e,t))&&n.push(o);return n}(l,m(u))};return y.hash=c.length?c.reduce(function(e,t){return t.name||le(15),k(e,t.name)},5381).toString():"",y}var Ce=new Ee,Ie=_e(),Ae=n.createContext({shouldForwardProp:void 0,styleSheet:Ce,stylis:Ie}),Oe=Ae.Consumer,De=n.createContext(void 0);function Re(){return a(Ae)}function Te(e){var t=o(e.stylisPlugins),r=t[0],a=t[1],c=Re().styleSheet,l=s(function(){var t=c;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,c]),p=s(function(){return _e({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);return i(function(){u(r,e.stylisPlugins)||a(e.stylisPlugins)},[e.stylisPlugins]),n.createElement(Ae.Provider,{value:{shouldForwardProp:e.shouldForwardProp,styleSheet:l,stylis:p}},n.createElement(De.Provider,{value:p},e.children))}var je=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ie);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){throw le(12,String(n.name))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Ie),this.name+e.hash},e}(),xe=function(e){return e>="A"&&e<="Z"};function ke(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;xe(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ve=function(e){return null==e||!1===e||""===e},Fe=function(t){var n,r,o=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ve(i)&&(Array.isArray(i)&&i.isCss||te(i)?o.push("".concat(ke(s),":"),i,";"):se(i)?o.push.apply(o,e(e(["".concat(s," {")],Fe(i),!1),["}"],!1)):o.push("".concat(ke(s),": ").concat((n=s,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in y||n.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return o};function Me(e,t,n,r){if(Ve(e))return[];if(ne(e))return[".".concat(e.styledComponentId)];if(te(e)){if(!te(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof je||se(o)||null===o||console.error("".concat(M(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.")),Me(o,t,n,r)}var s;return e instanceof je?n?(e.inject(n,r),[e.getName(r)]):[e]:se(e)?Fe(e):Array.isArray(e)?e.flatMap(function(e){return Me(e,t,n,r)}):[e.toString()]}function $e(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(te(n)&&!ne(n))return!1}return!0}var Be=V(g),ze=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&$e(e),this.componentId=t,this.baseHash=k(Be,t),this.baseStyle=n,Ee.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=re(r,this.staticRulesId);else{var o=oe(Me(this.rules,e,t,n)),s=j(k(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}r=re(r,s),this.staticRulesId=s}else{for(var a=k(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=k(a,u));else if(u){var p=oe(Me(u,e,t,n));a=k(a,p),c+=p}}if(c){var d=j(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),r=re(r,d)}}return r},e}(),Ge=n.createContext(void 0),Le=Ge.Consumer;function Ye(){return a(Ge)}function We(e){var r=Ye(),o=s(function(){return function(e,n){if(!e)throw le(14);if(te(e)){var r=e(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw le(7);return r}if(Array.isArray(e)||"object"!=typeof e)throw le(8);return n?t(t({},n),e):e}(e.theme,r)},[e.theme,r]);return e.children?n.createElement(Ge.Provider,{value:o},e.children):null}var qe={};function He(e,r,o){var s=ne(e),i=e,a=!$(e),u=r.attrs,p=void 0===u?P:u,d=r.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":D(e);qe[n]=(qe[n]||0)+1;var r="".concat(n,"-").concat(F(g+n+qe[n]));return t?"".concat(t,"-").concat(r):r}(r.displayName,r.parentComponentId):d,f=r.displayName,m=void 0===f?function(e){return $(e)?"styled.".concat(e):"Styled(".concat(M(e),")")}(e):f,y=r.displayName&&r.componentId?"".concat(D(r.displayName),"-").concat(r.componentId):r.componentId||h,v=s&&i.attrs?i.attrs.concat(p).filter(Boolean):p,S=r.shouldForwardProp;if(s&&i.shouldForwardProp){var w=i.shouldForwardProp;if(r.shouldForwardProp){var b=r.shouldForwardProp;S=function(e,t){return w(e,t)&&b(e,t)}}else S=w}var E=new ze(o,y,s?i.componentStyle:void 0),A=E.isStatic&&0===p.length;function O(e,n){return function(e,n,r,o){var s=e.attrs,i=e.componentStyle,a=e.defaultProps,u=e.foldedComponentIds,p=e.styledComponentId,d=e.target,h=Ye(),f=Re(),m=e.shouldForwardProp||f.shouldForwardProp;"production"!==process.env.NODE_ENV&&c(p);var y=function(e,n,r){for(var o,s=t(t({},n),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=te(o=e[i])?o(s):o;for(var c in a)s[c]="className"===c?re(s[c],a[c]):"style"===c?t(t({},s[c]),a[c]):a[c]}return n.className&&(s.className=re(s.className,n.className)),s}(s,n,C(n,h,a)||_),v=y.as||d,g={};for(var S in y)void 0===y[S]||"$"===S[0]||"as"===S||"theme"===S||("forwardedAs"===S?g.as=y.forwardedAs:m&&!m(S,v)||(g[S]=y[S]));var w=function(e,t,n){var r=Re(),o=e.generateAndInjectStyles(t?_:n,r.styleSheet,r.stylis);return"production"!==process.env.NODE_ENV&&c(o),o}(i,o,y);"production"!==process.env.NODE_ENV&&!o&&e.warnTooManyClasses&&e.warnTooManyClasses(w);var b=re(u,p);return w&&(b+=" "+w),y.className&&(b+=" "+y.className),g[$(v)&&!I.has(v)?"class":"className"]=b,g.ref=r,l(v,g)}(R,e,n,A)}O.displayName=m;var R=n.forwardRef(O);return R.attrs=v,R.componentStyle=E,R.displayName=m,R.shouldForwardProp=S,R.foldedComponentIds=s?re(i.foldedComponentIds,i.styledComponentId):"",R.styledComponentId=y,R.target=s?i.target:e,Object.defineProperty(R,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)ie(e,o[r],!0);return e}({},i.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(N(m,y),R.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 "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(m,y)),Object.defineProperty(R,"toString",{value:function(){return".".concat(R.styledComponentId)}}),a&&ee(R,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),R}function Ue(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}var Je=function(e){return Object.assign(e,{isCss:!0})};function Xe(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(te(t)||se(t)){var o=t;return Je(Me(Ue(P,e([o],n,!0))))}var s=t;return 0===n.length&&1===s.length&&"string"==typeof s[0]?Me(s):Je(Me(Ue(s,n)))}function Ze(n,r,o){if(void 0===o&&(o=_),!r)throw le(1,r);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(r,o,Xe.apply(void 0,e([t],s,!1)))};return s.attrs=function(e){return Ze(n,r,t(t({},o),{attrs:Array.prototype.concat(o.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return Ze(n,r,t(t({},o),e))},s}var Ke=function(e){return Ze(He,e)},Qe=Ke;I.forEach(function(e){Qe[e]=Ke(e)});var et=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=$e(e),Ee.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(oe(Me(this.rules,t,n,r)),""),s=this.componentId+e;n.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&Ee.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function tt(r){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];var i=Xe.apply(void 0,e([r],o,!1)),a="sc-global-".concat(F(JSON.stringify(i))),c=new et(i,a);"production"!==process.env.NODE_ENV&&N(a);var l=function(e){var t=Re(),r=Ye(),o=n.useRef(t.styleSheet.allocateGSInstance(a)).current;return"production"!==process.env.NODE_ENV&&n.Children.count(e.children)&&console.warn("The global style component ".concat(a," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&i.some(function(e){return"string"==typeof e&&-1!==e.indexOf("@import")})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),t.styleSheet.server&&u(o,e,t.styleSheet,r,t.stylis),null};function u(e,n,r,o,s){if(c.isStatic)c.renderStyles(e,w,r,s);else{var i=t(t({},n),{theme:C(n,o,l.defaultProps)});c.renderStyles(e,i,r,s)}}return n.memo(l)}function nt(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var o=oe(Xe.apply(void 0,e([t],n,!1))),s=F(o);return new je(s,o)}function rt(e){var r=n.forwardRef(function(r,o){var s=C(r,Ye(),e.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===s&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(M(e),'"')),n.createElement(e,t({},r,{theme:s,ref:o}))});return r.displayName="WithTheme(".concat(M(e),")"),ee(r,e)}var ot=/^\s*<\/[a-z]/i,st=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=ye(),r=oe([n&&'nonce="'.concat(n,'"'),"".concat(v,'="true"'),"".concat("data-styled-version",'="').concat(g,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw le(2);return e._emitSheetCSS()},this.getStyleElement=function(){var r;if(e.sealed)throw le(2);var o=((r={})[v]="",r["data-styled-version"]=g,r.dangerouslySetInnerHTML={__html:e.instance.toString()},r),s=ye();return s&&(o.nonce=s),[n.createElement("style",t({},o,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Ee({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw le(2);return n.createElement(Te,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){if(this.sealed)throw le(2);this.seal();var t=require("stream").Transform,n=e,r=this.instance,o=this._emitSheetCSS,s=new t({transform:function(e,t,n){var s=e.toString(),i=o();if(r.clearTag(),ot.test(s)){var a=s.indexOf(">")+1,c=s.slice(0,a),l=s.slice(a);this.push(c+i+l)}else this.push(i+s);n()}});return n.on("error",function(e){s.emit("error",e)}),n.pipe(s)},e}(),it={StyleSheet:Ee,mainSheet:Ce};"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"),"__sc-".concat(v,"__"),"production"!==process.env.NODE_ENV&&process;export{st as ServerStyleSheet,Oe as StyleSheetConsumer,Ae as StyleSheetContext,Te as StyleSheetManager,Le as ThemeConsumer,Ge as ThemeContext,We as ThemeProvider,it as __PRIVATE__,tt as createGlobalStyle,Xe as css,Qe as default,ne as isStyledComponent,nt as keyframes,Qe as styled,Ye as useTheme,g as version,rt as withTheme};
//# sourceMappingURL=styled-components.esm.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e=e||self).styled=t(e.React)}(this,function(e){"use strict";var t="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",r="active",n="data-styled-version",o="6.0.0-beta.14",s="/*!sc*/\n",a="undefined"!=typeof window&&"HTMLElement"in window,i=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),c={},u=function(){return(u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function l(e,t,r){if(r||2===arguments.length)for(var n,o=0,s=t.length;o<s;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}var f=Object.freeze([]),p=Object.freeze({});function h(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var d=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw h(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=n;s<o;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(e+1),i=(s=0,t.length);s<i;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,a=n;a<o;a++)t+="".concat(this.tag.getRule(a)).concat(s);return t},e}(),m=new Map,v=new Map,g=1,y=function(e){if(m.has(e))return m.get(e);for(;v.has(g);)g++;var t=g++;return m.set(e,t),v.set(t,e),t},S=function(e,t){m.set(e,t),v.set(t,e)},b="style[".concat(t,"][").concat(n,'="').concat(o,'"]'),w=new RegExp("^".concat(t,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),C=function(e,t,r){for(var n,o=r.split(","),s=0,a=o.length;s<a;s++)(n=o[s])&&e.registerName(t,n)},I=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(s),o=[],a=0,i=n.length;a<i;a++){var c=n[a].trim();if(c){var u=c.match(w);if(u){var l=0|parseInt(u[1],10),f=u[2];0!==l&&(S(f,l),C(e,f,u[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(c)}}};function P(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var x=function(e){var s=document.head,a=e||s,i=document.createElement("style"),c=function(e){for(var r=e.childNodes,n=r.length;n>=0;n--){var o=r[n];if(o&&1===o.nodeType&&o.hasAttribute(t))return o}}(a),u=void 0!==c?c.nextSibling:null;i.setAttribute(t,r),i.setAttribute(n,o);var l=P();return l&&i.setAttribute("nonce",l),a.insertBefore(i,u),i},E=function(){function e(e){this.element=x(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw h(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),A=function(){function e(e){this.element=x(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),_=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),R=a,$={isServer:!a,useCSSOMInjection:!i},k=function(){function e(e,n,o){void 0===e&&(e=p),void 0===n&&(n={}),this.options=u(u({},$),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&a&&R&&(R=!1,function(e){for(var n=document.querySelectorAll(b),o=0,s=n.length;o<s;o++){var a=n[o];a&&a.getAttribute(t)!==r&&(I(e,a),a.parentNode&&a.parentNode.removeChild(a))}}(this))}return e.registerId=function(e){return y(e)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(u(u({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new _(r):t?new E(r):new A(r)}(this.options),new d(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(y(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(y(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(y(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e.prototype.toString=function(){return function(e){for(var r=e.getTag(),n=r.length,o="",a=function(n){var a=function(e){return v.get(e)}(n);if(void 0===a)return"continue";var i=e.names.get(a),c=r.getGroup(n);if(void 0===i||0===c.length)return"continue";var u="".concat(t,".g").concat(n,'[id="').concat(a,'"]'),l="";void 0!==i&&i.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),o+="".concat(c).concat(u,'{content:"').concat(l,'"}').concat(s)},i=0;i<n;i++)a(i);return o}(this)},e}(),O="-ms-",N="-moz-",j="-webkit-",T="comm",D="rule",z="decl",F="@keyframes",G=Math.abs,M=String.fromCharCode,B=Object.assign;function L(e){return e.trim()}function W(e,t){return(e=t.exec(e))?e[0]:e}function Y(e,t,r){return e.replace(t,r)}function H(e,t){return e.indexOf(t)}function q(e,t){return 0|e.charCodeAt(t)}function V(e,t,r){return e.slice(t,r)}function U(e){return e.length}function J(e){return e.length}function Z(e,t){return t.push(e),e}var K=1,Q=1,X=0,ee=0,te=0,re="";function ne(e,t,r,n,o,s,a){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:K,column:Q,length:a,return:""}}function oe(e,t){return B(ne("",null,null,"",null,null,0),e,{length:-e.length},t)}function se(){return te=ee<X?q(re,ee++):0,Q++,10===te&&(Q=1,K++),te}function ae(){return q(re,ee)}function ie(){return ee}function ce(e,t){return V(re,e,t)}function ue(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function le(e){return L(ce(ee-1,he(91===e?e+2:40===e?e+1:e)))}function fe(e){for(;(te=ae())&&te<33;)se();return ue(e)>2||ue(te)>3?"":" "}function pe(e,t){for(;--t&&se()&&!(te<48||te>102||te>57&&te<65||te>70&&te<97););return ce(e,ie()+(t<6&&32==ae()&&32==se()))}function he(e){for(;se();)switch(te){case e:return ee;case 34:case 39:34!==e&&39!==e&&he(te);break;case 40:41===e&&he(e);break;case 92:se()}return ee}function de(e,t){for(;se()&&e+te!==57&&(e+te!==84||47!==ae()););return"/*"+ce(t,ee-1)+"*"+M(47===e?e:se())}function me(e){for(;!ue(ae());)se();return ce(e,ee)}function ve(e){return function(e){return re="",e}(ge("",null,null,null,[""],e=function(e){return K=Q=1,X=U(re=e),ee=0,[]}(e),0,[0],e))}function ge(e,t,r,n,o,s,a,i,c){for(var u=0,l=0,f=a,p=0,h=0,d=0,m=1,v=1,g=1,y=0,S="",b=o,w=s,C=n,I=S;v;)switch(d=y,y=se()){case 40:if(108!=d&&58==q(I,f-1)){-1!=H(I+=Y(le(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:I+=le(y);break;case 9:case 10:case 13:case 32:I+=fe(d);break;case 92:I+=pe(ie()-1,7);continue;case 47:switch(ae()){case 42:case 47:Z(Se(de(se(),ie()),t,r),c);break;default:I+="/"}break;case 123*m:i[u++]=U(I)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+l:h>0&&U(I)-f&&Z(h>32?be(I+";",n,r,f-1):be(Y(I," ","")+";",n,r,f-2),c);break;case 59:I+=";";default:if(Z(C=ye(I,t,r,u,l,o,i,S,b=[],w=[],f),s),123===y)if(0===l)ge(I,t,C,C,b,s,f,i,w);else switch(99===p&&110===q(I,3)?100:p){case 100:case 109:case 115:ge(e,C,C,n&&Z(ye(e,C,C,0,0,o,i,S,o,b=[],f),w),o,w,f,i,n?b:w);break;default:ge(I,C,C,C,[""],w,0,i,w)}}u=l=h=0,m=g=1,S=I="",f=a;break;case 58:f=1+U(I),h=d;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==(te=ee>0?q(re,--ee):0,Q--,10===te&&(Q=1,K--),te))continue;switch(I+=M(y),y*m){case 38:g=l>0?1:(I+="\f",-1);break;case 44:i[u++]=(U(I)-1)*g,g=1;break;case 64:45===ae()&&(I+=le(se())),p=ae(),l=f=U(S=I+=me(ie())),y++;break;case 45:45===d&&2==U(I)&&(m=0)}}return s}function ye(e,t,r,n,o,s,a,i,c,u,l){for(var f=o-1,p=0===o?s:[""],h=J(p),d=0,m=0,v=0;d<n;++d)for(var g=0,y=V(e,f+1,f=G(m=a[d])),S=e;g<h;++g)(S=L(m>0?p[g]+" "+y:Y(y,/&\f/g,p[g])))&&(c[v++]=S);return ne(e,t,r,0===o?D:i,c,u,l)}function Se(e,t,r){return ne(e,t,r,T,M(te),V(e,2,-2),0)}function be(e,t,r,n){return ne(e,t,r,z,V(e,0,n),V(e,n+1,-1),n)}function we(e,t,r){switch(function(e,t){return 45^q(e,0)?(((t<<2^q(e,0))<<2^q(e,1))<<2^q(e,2))<<2^q(e,3):0}(e,t)){case 5103:return j+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return j+e+e;case 4789:return N+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return j+e+N+e+O+e+e;case 5936:switch(q(e,t+11)){case 114:return j+e+O+Y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+O+Y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+O+Y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return j+e+O+e+e;case 6165:return j+e+O+"flex-"+e+e;case 5187:return j+e+Y(e,/(\w+).+(:[^]+)/,j+"box-$1$2"+O+"flex-$1$2")+e;case 5443:return j+e+O+"flex-item-"+Y(e,/flex-|-self/g,"")+(W(e,/flex-|baseline/)?"":O+"grid-row-"+Y(e,/flex-|-self/g,""))+e;case 4675:return j+e+O+"flex-line-pack"+Y(e,/align-content|flex-|-self/g,"")+e;case 5548:return j+e+O+Y(e,"shrink","negative")+e;case 5292:return j+e+O+Y(e,"basis","preferred-size")+e;case 6060:return j+"box-"+Y(e,"-grow","")+j+e+O+Y(e,"grow","positive")+e;case 4554:return j+Y(e,/([^-])(transform)/g,"$1"+j+"$2")+e;case 6187:return Y(Y(Y(e,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),e,"")+e;case 5495:case 3959:return Y(e,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return Y(Y(e,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+O+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+e+e;case 4200:if(!W(e,/flex-|baseline/))return O+"grid-column-align"+V(e,t)+e;break;case 2592:case 3360:return O+Y(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,W(e.props,/grid-\w+-end/)})?~H(e+(r=r[t].value),"span")?e:O+Y(e,"-start","")+e+O+"grid-row-span:"+(~H(r,"span")?W(r,/\d+/):+W(r,/\d+/)-+W(e,/\d+/))+";":O+Y(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return W(e.props,/grid-\w+-start/)})?e:O+Y(Y(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Y(e,/(.+)-inline(.+)/,j+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(U(e)-1-t>6)switch(q(e,t+1)){case 109:if(45!==q(e,t+4))break;case 102:return Y(e,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+N+(108==q(e,t+3)?"$3":"$2-$3"))+e;case 115:return~H(e,"stretch")?we(Y(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Y(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,o,s,a,i){return O+r+":"+n+i+(o?O+r+"-span:"+(s?a:+a-+n)+i:"")+e});case 4949:if(121===q(e,t+6))return Y(e,":",":"+j)+e;break;case 6444:switch(q(e,45===q(e,14)?18:11)){case 120:return Y(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+j+(45===q(e,14)?"inline-":"")+"box$3$1"+j+"$2$3$1"+O+"$2box$3")+e;case 100:return Y(e,":",":"+O)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Y(e,"scroll-","scroll-snap-")+e}return e}function Ce(e,t){for(var r="",n=J(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Ie(e,t,r,n){switch(e.type){case"@import":case z:return e.return=e.return||e.value;case T:return"";case F:return e.return=e.value+"{"+Ce(e.children,n)+"}";case D:e.value=e.props.join(",")}return U(r=Ce(e.children,n))?e.return=e.value+"{"+r+"}":""}function Pe(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case z:return void(e.return=we(e.value,e.length,r));case F:return Ce([oe(e,{value:Y(e.value,"@","@"+j)})],n);case D:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(W(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ce([oe(e,{props:[Y(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Ce([oe(e,{props:[Y(t,/:(plac\w+)/,":"+j+"input-$1")]}),oe(e,{props:[Y(t,/:(plac\w+)/,":-moz-$1")]}),oe(e,{props:[Y(t,/:(plac\w+)/,O+"input-$1")]})],n)}return""})}}var xe=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Ee=function(e){return xe(5381,e)},Ae=/^\s*\/\/.*$/gm,_e=[":","[",".","#"];function Re(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&(e.children=Re(e.children,t)),e})}function $e(e){var t,r,n,o,s=void 0===e?p:e,a=s.options,i=void 0===a?p:a,c=s.plugins,u=void 0===c?f:c,l=function(e,n,s){return 0===n&&_e.includes(s[r.length])||s.match(o)?e:".".concat(t)},d=u.slice();i.prefix&&d.unshift(Pe),d.push(function(e){e.type===D&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(n,l))},Ie);var m=function(e,s,a,c){void 0===s&&(s=""),void 0===a&&(a=""),void 0===c&&(c="&"),t=c,r=s,n=new RegExp("\\".concat(r,"\\b"),"g"),o=new RegExp("(\\".concat(r,"\\b){2,}"));var u=e.replace(Ae,""),l=ve(a||s?"".concat(a," ").concat(s," { ").concat(u," }"):u);return i.namespace&&(l=Re(l,i.namespace)),function(e,t){for(var r=[],n=0,o=void 0;n<e.length;n+=1)(o=t(e[n],n,e,t))&&r.push(o);return r}(l,function(e){var t=J(e);return function(r,n,o,s){for(var a="",i=0;i<t;i++)a+=e[i](r,n,o,s)||"";return a}}(d))};return m.hash=u.length?u.reduce(function(e,t){return t.name||h(15),xe(e,t.name)},5381).toString():"",m}var ke=new k,Oe=$e(),Ne=e.createContext({shouldForwardProp:void 0,styleSheet:ke,stylis:Oe}),je=Ne.Consumer,Te=e.createContext(void 0);function De(){return e.useContext(Ne)}function ze(t){var r=e.useState(t.stylisPlugins),n=r[0],o=r[1],s=De().styleSheet,a=e.useMemo(function(){var e=s;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e},[t.disableCSSOMInjection,t.sheet,t.target,s]),i=e.useMemo(function(){return $e({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:n})},[t.enableVendorPrefixes,t.namespace,n]);return e.useEffect(function(){(function(e,t,r,n){var o=void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var s=Object.keys(e),a=Object.keys(t);if(s.length!==a.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),c=0;c<s.length;c++){var u=s[c];if(!i(u))return!1;if(!1===(o=void 0)||void 0===o&&e[u]!==t[u])return!1}return!0})(n,t.stylisPlugins)||o(t.stylisPlugins)},[t.stylisPlugins]),e.createElement(Ne.Provider,{value:{shouldForwardProp:t.shouldForwardProp,styleSheet:a,stylis:i}},e.createElement(Te.Provider,{value:i},t.children))}var Fe=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Oe);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){throw h(12,String(r.name))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Oe),this.name+e.hash},e}(),Ge={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Me(e){return e.displayName||e.name||"Component"}var Be=function(e){return e>="A"&&e<="Z"};function Le(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Be(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}function We(e){return"function"==typeof e}function Ye(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function He(e){return"object"==typeof e&&"styledComponentId"in e}var qe=function(e){return null==e||!1===e||""===e},Ve=function(e){var t,r=[];for(var n in e){var o=e[n];e.hasOwnProperty(n)&&!qe(o)&&(Array.isArray(o)&&o.isCss||We(o)?r.push("".concat(Le(n),":"),o,";"):Ye(o)?r.push.apply(r,l(l(["".concat(n," {")],Ve(o),!1),["}"],!1)):r.push("".concat(Le(n),": ").concat(null==(t=o)||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||n in Ge?String(t).trim():"".concat(t,"px"),";")))}return r};function Ue(e,t,r,n){return qe(e)?[]:He(e)?[".".concat(e.styledComponentId)]:We(e)?!We(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Ue(e(t),t,r,n):e instanceof Fe?r?(e.inject(r,n),[e.getName(n)]):[e]:Ye(e)?Ve(e):Array.isArray(e)?e.flatMap(function(e){return Ue(e,t,r,n)}):[e.toString()];var o}function Je(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(We(r)&&!He(r))return!1}return!0}function Ze(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ke(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}var Qe=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Je(e),k.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Ke(Ue(this.rules,t,r,n)),""),s=this.componentId+e;r.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&k.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}(),Xe=e.createContext(void 0),et=Xe.Consumer;function tt(){return e.useContext(Xe)}function rt(e,t,r){return void 0===r&&(r=p),e.theme!==r.theme&&e.theme||t||r.theme}var nt=/(a)(d)/gi,ot=function(e){return String.fromCharCode(e+(e>25?39:97))};function st(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=ot(t%52)+r;return(ot(t%52)+r).replace(nt,"$1-$2")}function at(e){return st(Ee(e)>>>0)}function it(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var ct,ut=function(e){return Object.assign(e,{isCss:!0})};function lt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(We(e)||Ye(e)){var n=e;return ut(Ue(it(f,l([n],t,!0))))}var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?Ue(o):ut(Ue(it(o,t)))}var ft="function"==typeof Symbol&&Symbol.for,pt=ft?Symbol.for("react.memo"):60115,ht=ft?Symbol.for("react.forward_ref"):60112,dt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},mt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gt=((ct={})[ht]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ct[pt]=vt,ct);function yt(e){return("type"in(t=e)&&t.type.$$typeof)===pt?vt:"$$typeof"in e?gt[e.$$typeof]:dt;var t}var St=Object.defineProperty,bt=Object.getOwnPropertyNames,wt=Object.getOwnPropertySymbols,Ct=Object.getOwnPropertyDescriptor,It=Object.getPrototypeOf,Pt=Object.prototype;function xt(e,t,r){if("string"!=typeof t){if(Pt){var n=It(t);n&&n!==Pt&&xt(e,n,r)}var o=bt(t);wt&&(o=o.concat(wt(t)));for(var s=yt(e),a=yt(t),i=0;i<o.length;++i){var c=o[i];if(!(c in mt||r&&r[c]||a&&c in a||s&&c in s)){var u=Ct(t,c);try{St(e,c,u)}catch(e){}}}}return e}var Et=function(){function r(){var r=this;this._emitSheetCSS=function(){var e=r.instance.toString(),s=P(),a=Ke([s&&'nonce="'.concat(s,'"'),"".concat(t,'="true"'),"".concat(n,'="').concat(o,'"')].filter(Boolean)," ");return"<style ".concat(a,">").concat(e,"</style>")},this.getStyleTags=function(){if(r.sealed)throw h(2);return r._emitSheetCSS()},this.getStyleElement=function(){var s;if(r.sealed)throw h(2);var a=((s={})[t]="",s[n]=o,s.dangerouslySetInnerHTML={__html:r.instance.toString()},s),i=P();return i&&(a.nonce=i),[e.createElement("style",u({},a,{key:"sc-0-0"}))]},this.seal=function(){r.sealed=!0},this.instance=new k({isServer:!0}),this.sealed=!1}return r.prototype.collectStyles=function(t){if(this.sealed)throw h(2);return e.createElement(ze,{sheet:this.instance},t)},r.prototype.interleaveWithNodeStream=function(e){throw h(3)},r}(),At=/*#__PURE__*/Object.freeze({__proto__:null,ServerStyleSheet:Et,StyleSheetConsumer:je,StyleSheetContext:Ne,StyleSheetManager:ze,ThemeConsumer:et,ThemeContext:Xe,ThemeProvider:function(t){var r=tt(),n=e.useMemo(function(){return function(e,t){if(!e)throw h(14);if(We(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw h(8);return t?u(u({},t),e):e}(t.theme,r)},[t.theme,r]);return t.children?e.createElement(Xe.Provider,{value:n},t.children):null},__PRIVATE__:{StyleSheet:k,mainSheet:ke},createGlobalStyle:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=lt.apply(void 0,l([t],r,!1)),s="sc-global-".concat(at(JSON.stringify(o))),a=new Qe(o,s),i=function(t){var r=De(),n=tt(),o=e.useRef(r.styleSheet.allocateGSInstance(s)).current;return r.styleSheet.server&&f(o,t,r.styleSheet,n,r.stylis),(e.useInsertionEffect||e.useLayoutEffect)(function(){if(!r.styleSheet.server)return f(o,t,r.styleSheet,n,r.stylis),function(){return a.removeStyles(o,r.styleSheet)}},[o,t,r.styleSheet,n,r.stylis]),null};function f(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,c,r,o);else{var s=u(u({},t),{theme:rt(t,n,i.defaultProps)});a.renderStyles(e,s,r,o)}}return e.memo(i)},css:lt,isStyledComponent:He,keyframes:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Ke(lt.apply(void 0,l([e],t,!1))),o=at(n);return new Fe(o,n)},useTheme:tt,version:o,withTheme:function(t){var r=e.forwardRef(function(r,n){var o=rt(r,tt(),t.defaultProps);return e.createElement(t,u({},r,{theme:o,ref:n}))});return r.displayName="WithTheme(".concat(Me(t),")"),xt(r,t)}}),_t=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Rt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,$t=/(^-|-$)/g;function kt(e){return e.replace(Rt,"-").replace($t,"")}function Ot(e){return"string"==typeof e&&!0}function Nt(e,t,r){if(void 0===r&&(r=!1),!r&&!Ye(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Nt(e[n],t[n]);else if(Ye(t))for(var n in t)e[n]=Nt(e[n],t[n]);return e}var jt=Ee(o),Tt=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Je(e),this.componentId=t,this.baseHash=xe(jt,t),this.baseStyle=r,k.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=Ze(n,this.staticRulesId);else{var o=Ke(Ue(this.rules,e,t,r)),s=st(xe(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var a=r(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,a)}n=Ze(n,s),this.staticRulesId=s}else{for(var i=xe(this.baseHash,r.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l;else if(l){var f=Ke(Ue(l,e,t,r));i=xe(i,f),c+=f}}if(c){var p=st(i>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(c,".".concat(p),void 0,this.componentId)),n=Ze(n,p)}}return n},e}(),Dt={};function zt(t,r,n){var s=He(t),a=t,i=!Ot(t),c=r.attrs,l=void 0===c?f:c,h=r.componentId,d=void 0===h?function(e,t){var r="string"!=typeof e?"sc":kt(e);Dt[r]=(Dt[r]||0)+1;var n="".concat(r,"-").concat(at(o+r+Dt[r]));return t?"".concat(t,"-").concat(n):n}(r.displayName,r.parentComponentId):h,m=r.displayName,v=void 0===m?function(e){return Ot(e)?"styled.".concat(e):"Styled(".concat(Me(e),")")}(t):m,g=r.displayName&&r.componentId?"".concat(kt(r.displayName),"-").concat(r.componentId):r.componentId||d,y=s&&a.attrs?a.attrs.concat(l).filter(Boolean):l,S=r.shouldForwardProp;if(s&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var w=r.shouldForwardProp;S=function(e,t){return b(e,t)&&w(e,t)}}else S=b}var C=new Tt(n,g,s?a.componentStyle:void 0),I=C.isStatic&&0===l.length;function P(t,r){return function(t,r,n,o){var s=t.attrs,a=t.componentStyle,i=t.defaultProps,c=t.foldedComponentIds,l=t.styledComponentId,f=t.target,h=tt(),d=De(),m=t.shouldForwardProp||d.shouldForwardProp,v=function(e,t,r){for(var n,o=u(u({},t),{className:void 0,theme:r}),s=0;s<e.length;s+=1){var a=We(n=e[s])?n(o):n;for(var i in a)o[i]="className"===i?Ze(o[i],a[i]):"style"===i?u(u({},o[i]),a[i]):a[i]}return t.className&&(o.className=Ze(o.className,t.className)),o}(s,r,rt(r,h,i)||p),g=v.as||f,y={};for(var S in v)void 0===v[S]||"$"===S[0]||"as"===S||"theme"===S||("forwardedAs"===S?y.as=v.forwardedAs:m&&!m(S,g)||(y[S]=v[S]));var b=function(e,t,r){var n=De();return e.generateAndInjectStyles(t?p:r,n.styleSheet,n.stylis)}(a,o,v),w=Ze(c,l);return b&&(w+=" "+b),v.className&&(w+=" "+v.className),y[Ot(g)&&!_t.has(g)?"class":"className"]=w,y.ref=n,e.createElement(g,y)}(x,t,r,I)}P.displayName=v;var x=e.forwardRef(P);return x.attrs=y,x.componentStyle=C,x.displayName=v,x.shouldForwardProp=S,x.foldedComponentIds=s?Ze(a.foldedComponentIds,a.styledComponentId):"",x.styledComponentId=g,x.target=s?a.target:t,Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)Nt(e,o[n],!0);return e}({},a.defaultProps,e):e}}),Object.defineProperty(x,"toString",{value:function(){return".".concat(x.styledComponentId)}}),i&&xt(x,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),x}function Ft(e,t,r){if(void 0===r&&(r=p),!t)throw h(1,t);var n=function(n){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return e(t,r,lt.apply(void 0,l([n],o,!1)))};return n.attrs=function(n){return Ft(e,t,u(u({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Ft(e,t,u(u({},r),n))},n}var Gt=function(e){return Ft(zt,e)},Mt=Gt;for(var Bt in _t.forEach(function(e){Mt[e]=Gt(e)}),At)Mt[Bt]=At[Bt];return Mt});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e=e||self).styled=t(e.React)}(this,function(e){"use strict";var t="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",r="active",n="data-styled-version",o="6.0.0-beta.15",s="/*!sc*/\n",a="undefined"!=typeof window&&"HTMLElement"in window,i=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),c={},u=function(){return(u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function l(e,t,r){if(r||2===arguments.length)for(var n,o=0,s=t.length;o<s;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}var f=Object.freeze([]),p=Object.freeze({});function h(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var d=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw h(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=n;s<o;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(e+1),i=(s=0,t.length);s<i;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,a=n;a<o;a++)t+="".concat(this.tag.getRule(a)).concat(s);return t},e}(),m=new Map,v=new Map,g=1,y=function(e){if(m.has(e))return m.get(e);for(;v.has(g);)g++;var t=g++;return m.set(e,t),v.set(t,e),t},S=function(e,t){m.set(e,t),v.set(t,e)},b="style[".concat(t,"][").concat(n,'="').concat(o,'"]'),w=new RegExp("^".concat(t,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),C=function(e,t,r){for(var n,o=r.split(","),s=0,a=o.length;s<a;s++)(n=o[s])&&e.registerName(t,n)},I=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(s),o=[],a=0,i=n.length;a<i;a++){var c=n[a].trim();if(c){var u=c.match(w);if(u){var l=0|parseInt(u[1],10),f=u[2];0!==l&&(S(f,l),C(e,f,u[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(c)}}};function P(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var x=function(e){var s=document.head,a=e||s,i=document.createElement("style"),c=function(e){for(var r=e.childNodes,n=r.length;n>=0;n--){var o=r[n];if(o&&1===o.nodeType&&o.hasAttribute(t))return o}}(a),u=void 0!==c?c.nextSibling:null;i.setAttribute(t,r),i.setAttribute(n,o);var l=P();return l&&i.setAttribute("nonce",l),a.insertBefore(i,u),i},A=function(){function e(e){this.element=x(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw h(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),E=function(){function e(e){this.element=x(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),_=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),$=a,R={isServer:!a,useCSSOMInjection:!i},k=function(){function e(e,n,o){void 0===e&&(e=p),void 0===n&&(n={}),this.options=u(u({},R),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&a&&$&&($=!1,function(e){for(var n=document.querySelectorAll(b),o=0,s=n.length;o<s;o++){var a=n[o];a&&a.getAttribute(t)!==r&&(I(e,a),a.parentNode&&a.parentNode.removeChild(a))}}(this))}return e.registerId=function(e){return y(e)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(u(u({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new _(r):t?new A(r):new E(r)}(this.options),new d(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(y(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(y(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(y(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e.prototype.toString=function(){return function(e){for(var r=e.getTag(),n=r.length,o="",a=function(n){var a=function(e){return v.get(e)}(n);if(void 0===a)return"continue";var i=e.names.get(a),c=r.getGroup(n);if(void 0===i||0===c.length)return"continue";var u="".concat(t,".g").concat(n,'[id="').concat(a,'"]'),l="";void 0!==i&&i.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),o+="".concat(c).concat(u,'{content:"').concat(l,'"}').concat(s)},i=0;i<n;i++)a(i);return o}(this)},e}(),O="-ms-",N="-moz-",j="-webkit-",T="comm",D="rule",z="decl",F="@keyframes",G=Math.abs,M=String.fromCharCode,B=Object.assign;function L(e){return e.trim()}function W(e,t){return(e=t.exec(e))?e[0]:e}function Y(e,t,r){return e.replace(t,r)}function H(e,t){return e.indexOf(t)}function q(e,t){return 0|e.charCodeAt(t)}function V(e,t,r){return e.slice(t,r)}function U(e){return e.length}function J(e){return e.length}function Z(e,t){return t.push(e),e}var K=1,Q=1,X=0,ee=0,te=0,re="";function ne(e,t,r,n,o,s,a){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:K,column:Q,length:a,return:""}}function oe(e,t){return B(ne("",null,null,"",null,null,0),e,{length:-e.length},t)}function se(){return te=ee<X?q(re,ee++):0,Q++,10===te&&(Q=1,K++),te}function ae(){return q(re,ee)}function ie(){return ee}function ce(e,t){return V(re,e,t)}function ue(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function le(e){return L(ce(ee-1,he(91===e?e+2:40===e?e+1:e)))}function fe(e){for(;(te=ae())&&te<33;)se();return ue(e)>2||ue(te)>3?"":" "}function pe(e,t){for(;--t&&se()&&!(te<48||te>102||te>57&&te<65||te>70&&te<97););return ce(e,ie()+(t<6&&32==ae()&&32==se()))}function he(e){for(;se();)switch(te){case e:return ee;case 34:case 39:34!==e&&39!==e&&he(te);break;case 40:41===e&&he(e);break;case 92:se()}return ee}function de(e,t){for(;se()&&e+te!==57&&(e+te!==84||47!==ae()););return"/*"+ce(t,ee-1)+"*"+M(47===e?e:se())}function me(e){for(;!ue(ae());)se();return ce(e,ee)}function ve(e){return function(e){return re="",e}(ge("",null,null,null,[""],e=function(e){return K=Q=1,X=U(re=e),ee=0,[]}(e),0,[0],e))}function ge(e,t,r,n,o,s,a,i,c){for(var u=0,l=0,f=a,p=0,h=0,d=0,m=1,v=1,g=1,y=0,S="",b=o,w=s,C=n,I=S;v;)switch(d=y,y=se()){case 40:if(108!=d&&58==q(I,f-1)){-1!=H(I+=Y(le(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:I+=le(y);break;case 9:case 10:case 13:case 32:I+=fe(d);break;case 92:I+=pe(ie()-1,7);continue;case 47:switch(ae()){case 42:case 47:Z(Se(de(se(),ie()),t,r),c);break;default:I+="/"}break;case 123*m:i[u++]=U(I)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+l:h>0&&U(I)-f&&Z(h>32?be(I+";",n,r,f-1):be(Y(I," ","")+";",n,r,f-2),c);break;case 59:I+=";";default:if(Z(C=ye(I,t,r,u,l,o,i,S,b=[],w=[],f),s),123===y)if(0===l)ge(I,t,C,C,b,s,f,i,w);else switch(99===p&&110===q(I,3)?100:p){case 100:case 109:case 115:ge(e,C,C,n&&Z(ye(e,C,C,0,0,o,i,S,o,b=[],f),w),o,w,f,i,n?b:w);break;default:ge(I,C,C,C,[""],w,0,i,w)}}u=l=h=0,m=g=1,S=I="",f=a;break;case 58:f=1+U(I),h=d;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==(te=ee>0?q(re,--ee):0,Q--,10===te&&(Q=1,K--),te))continue;switch(I+=M(y),y*m){case 38:g=l>0?1:(I+="\f",-1);break;case 44:i[u++]=(U(I)-1)*g,g=1;break;case 64:45===ae()&&(I+=le(se())),p=ae(),l=f=U(S=I+=me(ie())),y++;break;case 45:45===d&&2==U(I)&&(m=0)}}return s}function ye(e,t,r,n,o,s,a,i,c,u,l){for(var f=o-1,p=0===o?s:[""],h=J(p),d=0,m=0,v=0;d<n;++d)for(var g=0,y=V(e,f+1,f=G(m=a[d])),S=e;g<h;++g)(S=L(m>0?p[g]+" "+y:Y(y,/&\f/g,p[g])))&&(c[v++]=S);return ne(e,t,r,0===o?D:i,c,u,l)}function Se(e,t,r){return ne(e,t,r,T,M(te),V(e,2,-2),0)}function be(e,t,r,n){return ne(e,t,r,z,V(e,0,n),V(e,n+1,-1),n)}function we(e,t,r){switch(function(e,t){return 45^q(e,0)?(((t<<2^q(e,0))<<2^q(e,1))<<2^q(e,2))<<2^q(e,3):0}(e,t)){case 5103:return j+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return j+e+e;case 4789:return N+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return j+e+N+e+O+e+e;case 5936:switch(q(e,t+11)){case 114:return j+e+O+Y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+O+Y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+O+Y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return j+e+O+e+e;case 6165:return j+e+O+"flex-"+e+e;case 5187:return j+e+Y(e,/(\w+).+(:[^]+)/,j+"box-$1$2"+O+"flex-$1$2")+e;case 5443:return j+e+O+"flex-item-"+Y(e,/flex-|-self/g,"")+(W(e,/flex-|baseline/)?"":O+"grid-row-"+Y(e,/flex-|-self/g,""))+e;case 4675:return j+e+O+"flex-line-pack"+Y(e,/align-content|flex-|-self/g,"")+e;case 5548:return j+e+O+Y(e,"shrink","negative")+e;case 5292:return j+e+O+Y(e,"basis","preferred-size")+e;case 6060:return j+"box-"+Y(e,"-grow","")+j+e+O+Y(e,"grow","positive")+e;case 4554:return j+Y(e,/([^-])(transform)/g,"$1"+j+"$2")+e;case 6187:return Y(Y(Y(e,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),e,"")+e;case 5495:case 3959:return Y(e,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return Y(Y(e,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+O+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+e+e;case 4200:if(!W(e,/flex-|baseline/))return O+"grid-column-align"+V(e,t)+e;break;case 2592:case 3360:return O+Y(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,W(e.props,/grid-\w+-end/)})?~H(e+(r=r[t].value),"span")?e:O+Y(e,"-start","")+e+O+"grid-row-span:"+(~H(r,"span")?W(r,/\d+/):+W(r,/\d+/)-+W(e,/\d+/))+";":O+Y(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return W(e.props,/grid-\w+-start/)})?e:O+Y(Y(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Y(e,/(.+)-inline(.+)/,j+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(U(e)-1-t>6)switch(q(e,t+1)){case 109:if(45!==q(e,t+4))break;case 102:return Y(e,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+N+(108==q(e,t+3)?"$3":"$2-$3"))+e;case 115:return~H(e,"stretch")?we(Y(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Y(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,o,s,a,i){return O+r+":"+n+i+(o?O+r+"-span:"+(s?a:+a-+n)+i:"")+e});case 4949:if(121===q(e,t+6))return Y(e,":",":"+j)+e;break;case 6444:switch(q(e,45===q(e,14)?18:11)){case 120:return Y(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+j+(45===q(e,14)?"inline-":"")+"box$3$1"+j+"$2$3$1"+O+"$2box$3")+e;case 100:return Y(e,":",":"+O)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Y(e,"scroll-","scroll-snap-")+e}return e}function Ce(e,t){for(var r="",n=J(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Ie(e,t,r,n){switch(e.type){case"@import":case z:return e.return=e.return||e.value;case T:return"";case F:return e.return=e.value+"{"+Ce(e.children,n)+"}";case D:e.value=e.props.join(",")}return U(r=Ce(e.children,n))?e.return=e.value+"{"+r+"}":""}function Pe(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case z:return void(e.return=we(e.value,e.length,r));case F:return Ce([oe(e,{value:Y(e.value,"@","@"+j)})],n);case D:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(W(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ce([oe(e,{props:[Y(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Ce([oe(e,{props:[Y(t,/:(plac\w+)/,":"+j+"input-$1")]}),oe(e,{props:[Y(t,/:(plac\w+)/,":-moz-$1")]}),oe(e,{props:[Y(t,/:(plac\w+)/,O+"input-$1")]})],n)}return""})}}var xe=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Ae=function(e){return xe(5381,e)},Ee=/^\s*\/\/.*$/gm;function _e(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=_e(e.children,t)),e})}function $e(e){var t,r,n,o=void 0===e?p:e,s=o.options,a=void 0===s?p:s,i=o.plugins,c=void 0===i?f:i,u=function(e,n,o){return o===r||o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},l=c.slice();a.prefix&&l.unshift(Pe),l.push(function(e){e.type===D&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(n,u))},Ie);var d=function(e,o,s,i){void 0===o&&(o=""),void 0===s&&(s=""),void 0===i&&(i="&"),t=i,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var c=e.replace(Ee,""),u=ve(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);return a.namespace&&(u=_e(u,a.namespace)),function(e,t){for(var r=[],n=0,o=void 0;n<e.length;n+=1)(o=t(e[n],n,e,t))&&r.push(o);return r}(u,function(e){var t=J(e);return function(r,n,o,s){for(var a="",i=0;i<t;i++)a+=e[i](r,n,o,s)||"";return a}}(l))};return d.hash=c.length?c.reduce(function(e,t){return t.name||h(15),xe(e,t.name)},5381).toString():"",d}var Re=new k,ke=$e(),Oe=e.createContext({shouldForwardProp:void 0,styleSheet:Re,stylis:ke}),Ne=Oe.Consumer,je=e.createContext(void 0);function Te(){return e.useContext(Oe)}function De(t){var r=e.useState(t.stylisPlugins),n=r[0],o=r[1],s=Te().styleSheet,a=e.useMemo(function(){var e=s;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e},[t.disableCSSOMInjection,t.sheet,t.target,s]),i=e.useMemo(function(){return $e({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:n})},[t.enableVendorPrefixes,t.namespace,n]);return e.useEffect(function(){(function(e,t,r,n){var o=void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var s=Object.keys(e),a=Object.keys(t);if(s.length!==a.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),c=0;c<s.length;c++){var u=s[c];if(!i(u))return!1;if(!1===(o=void 0)||void 0===o&&e[u]!==t[u])return!1}return!0})(n,t.stylisPlugins)||o(t.stylisPlugins)},[t.stylisPlugins]),e.createElement(Oe.Provider,{value:{shouldForwardProp:t.shouldForwardProp,styleSheet:a,stylis:i}},e.createElement(je.Provider,{value:i},t.children))}var ze=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=ke);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){throw h(12,String(r.name))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ke),this.name+e.hash},e}(),Fe={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Ge(e){return e.displayName||e.name||"Component"}var Me=function(e){return e>="A"&&e<="Z"};function Be(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Me(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}function Le(e){return"function"==typeof e}function We(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ye(e){return"object"==typeof e&&"styledComponentId"in e}var He=function(e){return null==e||!1===e||""===e},qe=function(e){var t,r,n=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!He(s)&&(Array.isArray(s)&&s.isCss||Le(s)?n.push("".concat(Be(o),":"),s,";"):We(s)?n.push.apply(n,l(l(["".concat(o," {")],qe(s),!1),["}"],!1)):n.push("".concat(Be(o),": ").concat((t=o,null==(r=s)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in Fe||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Ve(e,t,r,n){return He(e)?[]:Ye(e)?[".".concat(e.styledComponentId)]:Le(e)?!Le(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Ve(e(t),t,r,n):e instanceof ze?r?(e.inject(r,n),[e.getName(n)]):[e]:We(e)?qe(e):Array.isArray(e)?e.flatMap(function(e){return Ve(e,t,r,n)}):[e.toString()];var o}function Ue(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Le(r)&&!Ye(r))return!1}return!0}function Je(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ze(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}var Ke=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ue(e),k.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Ze(Ve(this.rules,t,r,n)),""),s=this.componentId+e;r.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&k.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}(),Qe=e.createContext(void 0),Xe=Qe.Consumer;function et(){return e.useContext(Qe)}function tt(e,t,r){return void 0===r&&(r=p),e.theme!==r.theme&&e.theme||t||r.theme}var rt=/(a)(d)/gi,nt=function(e){return String.fromCharCode(e+(e>25?39:97))};function ot(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=nt(t%52)+r;return(nt(t%52)+r).replace(rt,"$1-$2")}function st(e){return ot(Ae(e)>>>0)}function at(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var it,ct=function(e){return Object.assign(e,{isCss:!0})};function ut(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Le(e)||We(e)){var n=e;return ct(Ve(at(f,l([n],t,!0))))}var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?Ve(o):ct(Ve(at(o,t)))}var lt="function"==typeof Symbol&&Symbol.for,ft=lt?Symbol.for("react.memo"):60115,pt=lt?Symbol.for("react.forward_ref"):60112,ht={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},dt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},mt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},vt=((it={})[pt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},it[ft]=mt,it);function gt(e){return("type"in(t=e)&&t.type.$$typeof)===ft?mt:"$$typeof"in e?vt[e.$$typeof]:ht;var t}var yt=Object.defineProperty,St=Object.getOwnPropertyNames,bt=Object.getOwnPropertySymbols,wt=Object.getOwnPropertyDescriptor,Ct=Object.getPrototypeOf,It=Object.prototype;function Pt(e,t,r){if("string"!=typeof t){if(It){var n=Ct(t);n&&n!==It&&Pt(e,n,r)}var o=St(t);bt&&(o=o.concat(bt(t)));for(var s=gt(e),a=gt(t),i=0;i<o.length;++i){var c=o[i];if(!(c in dt||r&&r[c]||a&&c in a||s&&c in s)){var u=wt(t,c);try{yt(e,c,u)}catch(e){}}}}return e}var xt=function(){function r(){var r=this;this._emitSheetCSS=function(){var e=r.instance.toString(),s=P(),a=Ze([s&&'nonce="'.concat(s,'"'),"".concat(t,'="true"'),"".concat(n,'="').concat(o,'"')].filter(Boolean)," ");return"<style ".concat(a,">").concat(e,"</style>")},this.getStyleTags=function(){if(r.sealed)throw h(2);return r._emitSheetCSS()},this.getStyleElement=function(){var s;if(r.sealed)throw h(2);var a=((s={})[t]="",s[n]=o,s.dangerouslySetInnerHTML={__html:r.instance.toString()},s),i=P();return i&&(a.nonce=i),[e.createElement("style",u({},a,{key:"sc-0-0"}))]},this.seal=function(){r.sealed=!0},this.instance=new k({isServer:!0}),this.sealed=!1}return r.prototype.collectStyles=function(t){if(this.sealed)throw h(2);return e.createElement(De,{sheet:this.instance},t)},r.prototype.interleaveWithNodeStream=function(e){throw h(3)},r}(),At=/*#__PURE__*/Object.freeze({__proto__:null,ServerStyleSheet:xt,StyleSheetConsumer:Ne,StyleSheetContext:Oe,StyleSheetManager:De,ThemeConsumer:Xe,ThemeContext:Qe,ThemeProvider:function(t){var r=et(),n=e.useMemo(function(){return function(e,t){if(!e)throw h(14);if(Le(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw h(8);return t?u(u({},t),e):e}(t.theme,r)},[t.theme,r]);return t.children?e.createElement(Qe.Provider,{value:n},t.children):null},__PRIVATE__:{StyleSheet:k,mainSheet:Re},createGlobalStyle:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=ut.apply(void 0,l([t],r,!1)),s="sc-global-".concat(st(JSON.stringify(o))),a=new Ke(o,s),i=function(t){var r=Te(),n=et(),o=e.useRef(r.styleSheet.allocateGSInstance(s)).current;return r.styleSheet.server&&f(o,t,r.styleSheet,n,r.stylis),(e.useInsertionEffect||e.useLayoutEffect)(function(){if(!r.styleSheet.server)return f(o,t,r.styleSheet,n,r.stylis),function(){return a.removeStyles(o,r.styleSheet)}},[o,t,r.styleSheet,n,r.stylis]),null};function f(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,c,r,o);else{var s=u(u({},t),{theme:tt(t,n,i.defaultProps)});a.renderStyles(e,s,r,o)}}return e.memo(i)},css:ut,isStyledComponent:Ye,keyframes:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Ze(ut.apply(void 0,l([e],t,!1))),o=st(n);return new ze(o,n)},useTheme:et,version:o,withTheme:function(t){var r=e.forwardRef(function(r,n){var o=tt(r,et(),t.defaultProps);return e.createElement(t,u({},r,{theme:o,ref:n}))});return r.displayName="WithTheme(".concat(Ge(t),")"),Pt(r,t)}}),Et=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),_t=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,$t=/(^-|-$)/g;function Rt(e){return e.replace(_t,"-").replace($t,"")}function kt(e){return"string"==typeof e&&!0}function Ot(e,t,r){if(void 0===r&&(r=!1),!r&&!We(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Ot(e[n],t[n]);else if(We(t))for(var n in t)e[n]=Ot(e[n],t[n]);return e}var Nt=Ae(o),jt=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Ue(e),this.componentId=t,this.baseHash=xe(Nt,t),this.baseStyle=r,k.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=Je(n,this.staticRulesId);else{var o=Ze(Ve(this.rules,e,t,r)),s=ot(xe(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var a=r(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,a)}n=Je(n,s),this.staticRulesId=s}else{for(var i=xe(this.baseHash,r.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l;else if(l){var f=Ze(Ve(l,e,t,r));i=xe(i,f),c+=f}}if(c){var p=ot(i>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(c,".".concat(p),void 0,this.componentId)),n=Je(n,p)}}return n},e}(),Tt={};function Dt(t,r,n){var s=Ye(t),a=t,i=!kt(t),c=r.attrs,l=void 0===c?f:c,h=r.componentId,d=void 0===h?function(e,t){var r="string"!=typeof e?"sc":Rt(e);Tt[r]=(Tt[r]||0)+1;var n="".concat(r,"-").concat(st(o+r+Tt[r]));return t?"".concat(t,"-").concat(n):n}(r.displayName,r.parentComponentId):h,m=r.displayName,v=void 0===m?function(e){return kt(e)?"styled.".concat(e):"Styled(".concat(Ge(e),")")}(t):m,g=r.displayName&&r.componentId?"".concat(Rt(r.displayName),"-").concat(r.componentId):r.componentId||d,y=s&&a.attrs?a.attrs.concat(l).filter(Boolean):l,S=r.shouldForwardProp;if(s&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var w=r.shouldForwardProp;S=function(e,t){return b(e,t)&&w(e,t)}}else S=b}var C=new jt(n,g,s?a.componentStyle:void 0),I=C.isStatic&&0===l.length;function P(t,r){return function(t,r,n,o){var s=t.attrs,a=t.componentStyle,i=t.defaultProps,c=t.foldedComponentIds,l=t.styledComponentId,f=t.target,h=et(),d=Te(),m=t.shouldForwardProp||d.shouldForwardProp,v=function(e,t,r){for(var n,o=u(u({},t),{className:void 0,theme:r}),s=0;s<e.length;s+=1){var a=Le(n=e[s])?n(o):n;for(var i in a)o[i]="className"===i?Je(o[i],a[i]):"style"===i?u(u({},o[i]),a[i]):a[i]}return t.className&&(o.className=Je(o.className,t.className)),o}(s,r,tt(r,h,i)||p),g=v.as||f,y={};for(var S in v)void 0===v[S]||"$"===S[0]||"as"===S||"theme"===S||("forwardedAs"===S?y.as=v.forwardedAs:m&&!m(S,g)||(y[S]=v[S]));var b=function(e,t,r){var n=Te();return e.generateAndInjectStyles(t?p:r,n.styleSheet,n.stylis)}(a,o,v),w=Je(c,l);return b&&(w+=" "+b),v.className&&(w+=" "+v.className),y[kt(g)&&!Et.has(g)?"class":"className"]=w,y.ref=n,e.createElement(g,y)}(x,t,r,I)}P.displayName=v;var x=e.forwardRef(P);return x.attrs=y,x.componentStyle=C,x.displayName=v,x.shouldForwardProp=S,x.foldedComponentIds=s?Je(a.foldedComponentIds,a.styledComponentId):"",x.styledComponentId=g,x.target=s?a.target:t,Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)Ot(e,o[n],!0);return e}({},a.defaultProps,e):e}}),Object.defineProperty(x,"toString",{value:function(){return".".concat(x.styledComponentId)}}),i&&Pt(x,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),x}function zt(e,t,r){if(void 0===r&&(r=p),!t)throw h(1,t);var n=function(n){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return e(t,r,ut.apply(void 0,l([n],o,!1)))};return n.attrs=function(n){return zt(e,t,u(u({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return zt(e,t,u(u({},r),n))},n}var Ft=function(e){return zt(Dt,e)},Gt=Ft;for(var Mt in Et.forEach(function(e){Gt[e]=Ft(e)}),At)Gt[Mt]=At[Mt];return Gt});
//# sourceMappingURL=styled-components.min.js.map

@@ -1,1 +0,9 @@

export {};
import { CSSProp } from '../index';
/**
* `css` prop
*/
declare module 'react' {
interface Attributes {
css?: CSSProp;
}
}

@@ -20,3 +20,3 @@ import React from 'react';

export interface StyledOptions<R extends Runtime, Props extends object> {
attrs?: AttrsArg<Props>[];
attrs?: Attrs<Props>[];
componentId?: R extends 'web' ? string : never;

@@ -55,4 +55,3 @@ displayName?: string;

export type Interpolation<Props extends object> = StyleFunction<Props> | StyledObject<Props> | TemplateStringsArray | string | number | false | undefined | null | Keyframes | IStyledComponent<'web', any, any> | Interpolation<Props>[];
export type AttrsArg<Props extends object> = (Omit<ExecutionProps, keyof Props> & Props) | ((props: Omit<ExecutionContext, keyof Props> & Props) => Partial<Props>);
export type Attrs = object | ((...args: any) => object);
export type Attrs<Props extends object = object> = (ExecutionProps & Props) | ((props: ExecutionContext & Props) => Partial<Props>);
export type RuleSet<Props extends object> = Interpolation<Props>[];

@@ -81,3 +80,3 @@ export type Styles<Props extends object> = TemplateStringsArray | StyledObject<Props> | StyleFunction<Props>;

export interface CommonStatics<R extends Runtime, Props extends object> {
attrs: AttrsArg<Props>[];
attrs: Attrs<Props>[];
target: StyledTarget<R>;

@@ -130,18 +129,14 @@ shouldForwardProp?: ShouldForwardProp<R>;

/**
* Override DefaultTheme to get accurate typings for your project.
* The `css` prop is not declared by default in the types as it would cause `css` to be present
* on the types of anything that uses styled-components indirectly, even if they do not use the
* babel plugin.
*
* ```
* // create styled-components.d.ts in your project source
* // if it isn't being picked up, check tsconfig compilerOptions.types
* To enable support for the `css` prop in TypeScript, create a `styled-components.d.ts` file in
* your project source with the following contents:
*
* ```ts
* import type { CSSProp } from "styled-components";
* import Theme from './theme';
*
* type ThemeType = typeof Theme;
*
* declare module "styled-components" {
* export interface DefaultTheme extends ThemeType {}
* }
*
* declare module "react" {
* interface DOMAttributes<T> {
* interface Attributes {
* css?: CSSProp;

@@ -151,3 +146,6 @@ * }

* ```
*
* In order to get accurate typings for `props.theme` in `css` interpolations, see
* {@link DefaultTheme}.
*/
export type CSSProp = string | StyledObject<any> | StyleFunction<any>;
export type CSSProp = RuleSet<any>;

@@ -11,3 +11,3 @@ import { SC_VERSION } from './constants';

export * from './secretInternals';
export { AttrsArg as Attrs, DefaultTheme, ShouldForwardProp } from './types';
export { Attrs, DefaultTheme, ShouldForwardProp } from './types';
export { createGlobalStyle, css, isStyledComponent, IStyleSheetManager, IStyleSheetContext, IStylisContext, keyframes, ServerStyleSheet, StyleSheetConsumer, StyleSheetContext, StyleSheetManager, ThemeConsumer, ThemeContext, ThemeProvider, useTheme, SC_VERSION as version, withTheme, };
import React from 'react';
import { Attrs, AttrsArg, ExecutionProps, Interpolation, IStyledComponent, IStyledComponentFactory, KnownTarget, Runtime, StyledOptions, StyledTarget, Styles } from '../types';
import { Attrs, ExecutionProps, Interpolation, IStyledComponent, IStyledComponentFactory, KnownTarget, Runtime, StyledOptions, StyledTarget, Styles } from '../types';
/**

@@ -21,3 +21,3 @@ * for types a and b, if b shares a field with a, mark a's field as optional

IStyledComponent<R, ExtractAttrsTarget<R, RuntimeInjectedProps, Target>, OuterProps & Props> & OuterStatics & Statics;
attrs: <T extends Attrs, TResult extends ExecutionProps = AttrsResult<T>, TTarget extends StyledTarget<R> = ExtractAttrsTarget<R, TResult, Target>>(attrs: AttrsArg<T extends (...args: any) => infer P ? OuterProps & P : OuterProps & T>) => Styled<R, TTarget, PropsSatisfiedByAttrs<T, OuterProps>, OuterStatics, Omit<RuntimeInjectedProps, keyof TResult> & TResult>;
attrs: <T extends Attrs, TResult extends ExecutionProps = AttrsResult<T>, TTarget extends StyledTarget<R> = ExtractAttrsTarget<R, TResult, Target>>(attrs: Attrs<T extends (...args: any) => infer P ? OuterProps & P : OuterProps & T>) => Styled<R, TTarget, PropsSatisfiedByAttrs<T, OuterProps>, OuterStatics, Omit<RuntimeInjectedProps, keyof TResult> & TResult>;
withConfig: (config: StyledOptions<R, OuterProps>) => Styled<R, Target, OuterProps, OuterStatics>;

@@ -24,0 +24,0 @@ }

import styled from './constructors/styled';
export * from './base';
export { CSSProp, DefaultTheme, ExecutionContext, ExecutionProps, IStyledComponent, IStyledComponentFactory, IStyledStatics, PolymorphicComponent, PolymorphicComponentProps, Runtime, StyledObject, StyledOptions, WebTarget, } from './types';
export { CSSProp, DefaultTheme, ExecutionContext, ExecutionProps, IStyledComponent, IStyledComponentFactory, IStyledStatics, PolymorphicComponent, PolymorphicComponentProps, RuleSet, Runtime, StyledObject, StyledOptions, WebTarget, } from './types';
export { styled, styled as default };

@@ -9,26 +9,26 @@ import React from 'react';

declare const styled: (<Target extends NativeTarget>(tag: Target) => Styled<"native", Target, Target extends import("../types").KnownTarget ? React.ComponentPropsWithRef<Target> : object, object, object>) & {
ActivityIndicator: Styled<"native", typeof import("react-native").ActivityIndicator, object, object, object>;
Button: Styled<"native", typeof import("react-native").Button, object, object, object>;
DatePickerIOS: Styled<"native", typeof import("react-native").DatePickerIOS, object, object, object>;
DrawerLayoutAndroid: Styled<"native", typeof import("react-native").DrawerLayoutAndroid, object, object, object>;
FlatList: Styled<"native", typeof import("react-native").FlatList, object, object, object>;
Image: Styled<"native", typeof import("react-native").Image, object, object, object>;
ImageBackground: Styled<"native", typeof import("react-native").ImageBackground, object, object, object>;
KeyboardAvoidingView: Styled<"native", typeof import("react-native").KeyboardAvoidingView, object, object, object>;
Modal: Styled<"native", typeof import("react-native").Modal, object, object, object>;
Pressable: Styled<"native", import("react").ForwardRefExoticComponent<import("react-native").PressableProps & import("react").RefAttributes<import("react-native").View>>, object, object, object>;
ProgressBarAndroid: Styled<"native", typeof import("react-native").ProgressBarAndroid, object, object, object>;
ProgressViewIOS: Styled<"native", typeof import("react-native").ProgressViewIOS, object, object, object>;
RefreshControl: Styled<"native", typeof import("react-native").RefreshControl, object, object, object>;
SafeAreaView: Styled<"native", typeof import("react-native").SafeAreaView, object, object, object>;
ScrollView: Styled<"native", typeof import("react-native").ScrollView, object, object, object>;
SectionList: Styled<"native", typeof import("react-native").SectionList, object, object, object>;
Slider: Styled<"native", typeof import("react-native").Slider, object, object, object>;
Switch: Styled<"native", typeof import("react-native").Switch, object, object, object>;
Text: Styled<"native", typeof import("react-native").Text, object, object, object>;
TextInput: Styled<"native", typeof import("react-native").TextInput, object, object, object>;
TouchableHighlight: Styled<"native", typeof import("react-native").TouchableHighlight, object, object, object>;
TouchableOpacity: Styled<"native", typeof import("react-native").TouchableOpacity, object, object, object>;
View: Styled<"native", typeof import("react-native").View, object, object, object>;
VirtualizedList: Styled<"native", typeof import("react-native").VirtualizedList, object, object, object>;
ActivityIndicator: Styled<"native", typeof import("react-native").ActivityIndicator, import("react-native").ActivityIndicatorProps, object, object>;
Button: Styled<"native", typeof import("react-native").Button, import("react-native").ButtonProps, object, object>;
DatePickerIOS: Styled<"native", typeof import("react-native").DatePickerIOS, import("react-native").DatePickerIOSProps, object, object>;
DrawerLayoutAndroid: Styled<"native", typeof import("react-native").DrawerLayoutAndroid, import("react-native").DrawerLayoutAndroidProps, object, object>;
FlatList: Styled<"native", typeof import("react-native").FlatList, import("react-native").FlatListProps<unknown>, object, object>;
Image: Styled<"native", typeof import("react-native").Image, import("react-native").ImageProps, object, object>;
ImageBackground: Styled<"native", typeof import("react-native").ImageBackground, import("react-native").ImageBackgroundProps, object, object>;
KeyboardAvoidingView: Styled<"native", typeof import("react-native").KeyboardAvoidingView, import("react-native").KeyboardAvoidingViewProps, object, object>;
Modal: Styled<"native", typeof import("react-native").Modal, import("react-native").ModalBaseProps & import("react-native").ModalPropsIOS & import("react-native").ModalPropsAndroid & import("react-native").ViewProps, object, object>;
Pressable: Styled<"native", import("react").ForwardRefExoticComponent<import("react-native").PressableProps & import("react").RefAttributes<import("react-native").View>>, import("react-native").PressableProps & import("react").RefAttributes<import("react-native").View>, object, object>;
ProgressBarAndroid: Styled<"native", typeof import("react-native").ProgressBarAndroid, import("react-native").ProgressBarAndroidProps, object, object>;
ProgressViewIOS: Styled<"native", typeof import("react-native").ProgressViewIOS, import("react-native").ProgressViewIOSProps, object, object>;
RefreshControl: Styled<"native", typeof import("react-native").RefreshControl, import("react-native").RefreshControlProps, object, object>;
SafeAreaView: Styled<"native", typeof import("react-native").SafeAreaView, import("react-native").ViewProps, object, object>;
ScrollView: Styled<"native", typeof import("react-native").ScrollView, import("react-native").ScrollViewProps, object, object>;
SectionList: Styled<"native", typeof import("react-native").SectionList, import("react-native").SectionListProps<unknown, unknown>, object, object>;
Slider: Styled<"native", typeof import("react-native").Slider, import("react-native").SliderProps, object, object>;
Switch: Styled<"native", typeof import("react-native").Switch, import("react-native").SwitchProps, object, object>;
Text: Styled<"native", typeof import("react-native").Text, import("react-native").TextProps, object, object>;
TextInput: Styled<"native", typeof import("react-native").TextInput, import("react-native").TextInputProps, object, object>;
TouchableHighlight: Styled<"native", typeof import("react-native").TouchableHighlight, import("react-native").TouchableHighlightProps, object, object>;
TouchableOpacity: Styled<"native", typeof import("react-native").TouchableOpacity, import("react-native").TouchableOpacityProps, object, object>;
View: Styled<"native", typeof import("react-native").View, import("react-native").ViewProps, object, object>;
VirtualizedList: Styled<"native", typeof import("react-native").VirtualizedList, import("react-native").VirtualizedListProps<unknown>, object, object>;
};

@@ -35,0 +35,0 @@ export { DefaultTheme, ExecutionContext, ExecutionProps, IStyledComponent, IStyledComponentFactory, IStyledStatics, NativeTarget, PolymorphicComponent, PolymorphicComponentProps, Runtime, StyledObject, StyledOptions, } from '../types';

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react");require("shallowequal");var n=require("stylis"),r=require("@emotion/unitless"),o=require("css-to-react-native"),i=require("postcss");function s(e){return e&&e.__esModule?e:{default:e}}var a=/*#__PURE__*/s(t),c=/*#__PURE__*/s(r),u=/*#__PURE__*/s(o),l=Object.freeze([]),p=Object.freeze({}),h="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 f(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function d(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(f.apply(void 0,e.__spreadArray([h[t]],n,!1)).trim())}var y="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",g="undefined"!=typeof window&&"HTMLElement"in window,v=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),m=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw d(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=(i=0,t.length);i<a;i++)this.tag.insertRule(s,t[i])&&(this.groupSizes[e]++,s++)},e.prototype.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)}},e.prototype.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,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat("/*!sc*/\n");return t},e}(),S=new Map,_=new Map,w=1,b=function(e){if(S.has(e))return S.get(e);for(;_.has(w);)w++;var t=w++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw d(16,"".concat(t));return S.set(e,t),_.set(t,e),t},E=function(e,t){S.set(e,t),_.set(t,e)},A="style[".concat(y,"][").concat("data-styled-version",'="').concat("6.0.0-beta.14",'"]'),P=new RegExp("^".concat(y,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),C=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},N=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split("/*!sc*/\n"),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var c=a.match(P);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(E(l,u),C(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},T=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(y))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(y,"active"),r.setAttribute("data-styled-version","6.0.0-beta.14");var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},D=function(){function e(e){this.element=T(e),this.element.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}throw d(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),O=function(){function e(e){this.element=T(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),x=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),R=g,j={isServer:!g,useCSSOMInjection:!v},I=function(){function t(t,n,r){void 0===t&&(t=p),void 0===n&&(n={}),this.options=e.__assign(e.__assign({},j),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&g&&R&&(R=!1,function(e){for(var t=document.querySelectorAll(A),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(y)&&(N(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}return t.registerId=function(e){return b(e)},t.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new t(e.__assign(e.__assign({},this.options),n),this.gs,r&&this.names||void 0)},t.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new x(n):t?new D(n):new O(n)}(this.options),new m(e)));var e},t.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.prototype.registerName=function(e,t){if(b(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.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(b(e),n)},t.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.prototype.clearRules=function(e){this.getTag().clearGroup(b(e)),this.clearNames(e)},t.prototype.clearTag=function(){this.tag=void 0},t.prototype.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return _.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),s=t.getGroup(n);if(void 0===i||0===s.length)return"continue";var a="".concat(y,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==i&&i.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(s).concat(a,'{content:"').concat(c,'"}').concat("/*!sc*/\n")},i=0;i<n;i++)o(i);return r}(this)},t}(),B=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},L=/^\s*\/\/.*$/gm,M=[":","[",".","#"];function z(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&(e.children=z(e.children,t)),e})}var V=new I,$=function(e){var t,r,o,i,s=p.options,a=void 0===s?p:s,c=p.plugins,u=void 0===c?l:c,h=function(e,n,o){return 0===n&&M.includes(o[r.length])||o.match(i)?e:".".concat(t)},f=u.slice();a.prefix&&f.unshift(n.prefixer),f.push(function(e){e.type===n.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(o,h))},n.stringify);var y=function(e,s,c,u){void 0===s&&(s=""),void 0===c&&(c=""),void 0===u&&(u="&"),t=u,r=s,o=new RegExp("\\".concat(r,"\\b"),"g"),i=new RegExp("(\\".concat(r,"\\b){2,}"));var l=e.replace(L,""),p=n.compile(c||s?"".concat(c," ").concat(s," { ").concat(l," }"):l);return a.namespace&&(p=z(p,a.namespace)),function(e,t){for(var n=[],r=0,o=void 0;r<e.length;r+=1)(o=t(e[r],r,e,t))&&n.push(o);return n}(p,n.middleware(f))};return y.hash=u.length?u.reduce(function(e,t){return t.name||d(15),B(e,t.name)},5381).toString():"",y}(),F=(a.default.createContext({shouldForwardProp:void 0,styleSheet:V,stylis:$}),a.default.createContext(void 0),function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=$);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){throw d(12,String(n.name))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=$),this.name+e.hash},e}());function k(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}var q=function(e){return e>="A"&&e<="Z"};function Y(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;q(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}function G(e){return"function"==typeof e}function H(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function U(e){return"object"==typeof e&&"styledComponentId"in e}var W=function(e){return null==e||!1===e||""===e},K=function(t){var n,r=[];for(var o in t){var i=t[o];t.hasOwnProperty(o)&&!W(i)&&(Array.isArray(i)&&i.isCss||G(i)?r.push("".concat(Y(o),":"),i,";"):H(i)?r.push.apply(r,e.__spreadArray(e.__spreadArray(["".concat(o," {")],K(i),!1),["}"],!1)):r.push("".concat(Y(o),": ").concat(null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||o in c.default?String(n).trim():"".concat(n,"px"),";")))}return r};function Z(e,t,n,r){if(W(e))return[];if(U(e))return[".".concat(e.styledComponentId)];if(G(e)){if(!G(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof F||H(o)||null===o||console.error("".concat(k(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.")),Z(o,t,n,r)}var i;return e instanceof F?n?(e.inject(n,r),[e.getName(r)]):[e]:H(e)?K(e):Array.isArray(e)?e.flatMap(function(e){return Z(e,t,n,r)}):[e.toString()]}function J(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}var Q=function(e){return Object.assign(e,{isCss:!0})};function X(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(G(t)||H(t)){var o=t;return Q(Z(J(l,e.__spreadArray([o],n,!0))))}var i=t;return 0===n.length&&1===i.length&&"string"==typeof i[0]?Z(i):Q(Z(J(i,n)))}function ee(t,n,r){if(void 0===r&&(r=p),!n)throw d(1,n);var o=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return t(n,r,X.apply(void 0,e.__spreadArray([o],i,!1)))};return o.attrs=function(o){return ee(t,n,e.__assign(e.__assign({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return ee(t,n,e.__assign(e.__assign({},r),o))},o}var te,ne=a.default.createContext(void 0),re=ne.Consumer;function oe(){return t.useContext(ne)}function ie(e,t,n){return void 0===n&&(n=p),e.theme!==n.theme&&e.theme||t||n.theme}var se="function"==typeof Symbol&&Symbol.for,ae=se?Symbol.for("react.memo"):60115,ce=se?Symbol.for("react.forward_ref"):60112,ue={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},le={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},pe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},he=((te={})[ce]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},te[ae]=pe,te);function fe(e){return("type"in(t=e)&&t.type.$$typeof)===ae?pe:"$$typeof"in e?he[e.$$typeof]:ue;var t}var de=Object.defineProperty,ye=Object.getOwnPropertyNames,ge=Object.getOwnPropertySymbols,ve=Object.getOwnPropertyDescriptor,me=Object.getPrototypeOf,Se=Object.prototype;function _e(e,t,n){if("string"!=typeof t){if(Se){var r=me(t);r&&r!==Se&&_e(e,r,n)}var o=ye(t);ge&&(o=o.concat(ge(t)));for(var i=fe(e),s=fe(t),a=0;a<o.length;++a){var c=o[a];if(!(c in le||n&&n[c]||s&&c in s||i&&c in i)){var u=ve(t,c);try{de(e,c,u)}catch(e){}}}}return e}var we=/(a)(d)/gi,be=function(e){return String.fromCharCode(e+(e>25?39:97))},Ee={};function Ae(e,t,n){if(void 0===n&&(n=!1),!n&&!H(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Ae(e[r],t[r]);else if(H(t))for(var r in t)e[r]=Ae(e[r],t[r]);return e}var Pe,Ce,Ne=require("react-native"),Te=(Pe=Ne.StyleSheet,Ce=function(){function e(e){this.rules=e}return e.prototype.generateStyleObject=function(e){var t=function(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}(Z(this.rules,e)),n=function(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=be(t%52)+n;return(be(t%52)+n).replace(we,"$1-$2")}(B(5381,t)>>>0);if(!Ee[n]){var r=i.parse(t),o=[];r.each(function(e){"decl"===e.type?o.push([e.prop,e.value]):"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var s=u.default(o),a=Pe.create({generated:s});Ee[n]=a.generated}return Ee[n]},e}(),function(n,r,o){var i=U(n),s=n,c=r.displayName,u=void 0===c?function(e){return function(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}(e)?"styled.".concat(e):"Styled(".concat(k(e),")")}(n):c,h=r.attrs,f=void 0===h?l:h,d=i&&s.attrs?s.attrs.concat(f).filter(Boolean):f,y=r.shouldForwardProp;if(i&&s.shouldForwardProp){var g=s.shouldForwardProp;if(r.shouldForwardProp){var v=r.shouldForwardProp;y=function(e,t){return g(e,t)&&v(e,t)}}else y=g}var m=function(n,r){return function(n,r,o){var i=n.attrs,s=n.inlineStyle,a=n.defaultProps,c=n.shouldForwardProp,u=n.target,l=oe(),h=function(t,n,r){void 0===t&&(t=p);var o=e.__assign(e.__assign({},n),{theme:t}),i={};return r.forEach(function(e){var t,n=G(e)?e(o):e;for(t in n)o[t]=i[t]=n[t]}),[o,i]}(ie(r,l,a)||p,r,i),f=h[1],d=s.generateStyleObject(h[0]),y=o,g=f.as||r.as||u,v=f!==r?e.__assign(e.__assign({},r),f):r,m={};for(var S in v)"$"!==S[0]&&"as"!==S&&("forwardedAs"===S?m.as=v[S]:c&&!c(S,g)||(m[S]=v[S]));return m.style=t.useMemo(function(){return G(r.style)?function(e){return[d].concat(r.style(e))}:r.style?[d].concat(r.style):d},[r.style,d]),m.ref=y,t.createElement(g,m)}(S,n,r)};m.displayName=u;var S=a.default.forwardRef(m);return S.attrs=d,S.inlineStyle=new Ce(i?s.inlineStyle.rules.concat(o):o),S.displayName=u,S.shouldForwardProp=y,S.styledComponentId=!0,S.target=i?s.target:n,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Ae(e,o[r],!0);return e}({},s.defaultProps,e):e}}),_e(S,n,{attrs:!0,inlineStyle:!0,displayName:!0,shouldForwardProp:!0,target:!0}),S}),De=function(e){return ee(Te,e)};["ActivityIndicator","Button","DatePickerIOS","DrawerLayoutAndroid","FlatList","Image","ImageBackground","KeyboardAvoidingView","Modal","Pressable","ProgressBarAndroid","ProgressViewIOS","RefreshControl","SafeAreaView","ScrollView","SectionList","Slider","Switch","Text","TextInput","TouchableHighlight","TouchableOpacity","View","VirtualizedList"].forEach(function(e){return Object.defineProperty(De,e,{enumerable:!0,configurable:!1,get:function(){if(e in Ne&&Ne[e])return De(Ne[e]);throw new Error("".concat(e," is not available in the currently-installed version of react-native"))}})}),exports.ThemeConsumer=re,exports.ThemeContext=ne,exports.ThemeProvider=function(n){var r=oe(),o=t.useMemo(function(){return function(t,n){if(!t)throw d(14);if(G(t)){var r=t(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw d(7);return r}if(Array.isArray(t)||"object"!=typeof t)throw d(8);return n?e.__assign(e.__assign({},n),t):t}(n.theme,r)},[n.theme,r]);return n.children?a.default.createElement(ne.Provider,{value:o},n.children):null},exports.css=X,exports.default=De,exports.isStyledComponent=U,exports.styled=De,exports.useTheme=oe,exports.withTheme=function(t){var n=a.default.forwardRef(function(n,r){var o=ie(n,oe(),t.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===o&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(k(t),'"')),a.default.createElement(t,e.__assign({},n,{theme:o,ref:r}))});return n.displayName="WithTheme(".concat(k(t),")"),_e(n,t)};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react");require("shallowequal");var n=require("stylis"),r=require("@emotion/unitless"),o=require("css-to-react-native"),i=require("postcss");function s(e){return e&&e.__esModule?e:{default:e}}var a=/*#__PURE__*/s(t),c=/*#__PURE__*/s(r),u=/*#__PURE__*/s(o),l=Object.freeze([]),p=Object.freeze({}),h="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 f(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function d(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(f.apply(void 0,e.__spreadArray([h[t]],n,!1)).trim())}var y="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",g="undefined"!=typeof window&&"HTMLElement"in window,v=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),m=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw d(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=(i=0,t.length);i<a;i++)this.tag.insertRule(s,t[i])&&(this.groupSizes[e]++,s++)},e.prototype.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)}},e.prototype.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,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat("/*!sc*/\n");return t},e}(),S=new Map,_=new Map,w=1,b=function(e){if(S.has(e))return S.get(e);for(;_.has(w);)w++;var t=w++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw d(16,"".concat(t));return S.set(e,t),_.set(t,e),t},E=function(e,t){S.set(e,t),_.set(t,e)},A="style[".concat(y,"][").concat("data-styled-version",'="').concat("6.0.0-beta.15",'"]'),P=new RegExp("^".concat(y,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),C=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},N=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split("/*!sc*/\n"),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var c=a.match(P);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(E(l,u),C(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},T=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(y))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(y,"active"),r.setAttribute("data-styled-version","6.0.0-beta.15");var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},D=function(){function e(e){this.element=T(e),this.element.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}throw d(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),O=function(){function e(e){this.element=T(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),x=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),R=g,j={isServer:!g,useCSSOMInjection:!v},I=function(){function t(t,n,r){void 0===t&&(t=p),void 0===n&&(n={}),this.options=e.__assign(e.__assign({},j),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&g&&R&&(R=!1,function(e){for(var t=document.querySelectorAll(A),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(y)&&(N(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}return t.registerId=function(e){return b(e)},t.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new t(e.__assign(e.__assign({},this.options),n),this.gs,r&&this.names||void 0)},t.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new x(n):t?new D(n):new O(n)}(this.options),new m(e)));var e},t.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.prototype.registerName=function(e,t){if(b(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.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(b(e),n)},t.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.prototype.clearRules=function(e){this.getTag().clearGroup(b(e)),this.clearNames(e)},t.prototype.clearTag=function(){this.tag=void 0},t.prototype.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return _.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),s=t.getGroup(n);if(void 0===i||0===s.length)return"continue";var a="".concat(y,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==i&&i.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(s).concat(a,'{content:"').concat(c,'"}').concat("/*!sc*/\n")},i=0;i<n;i++)o(i);return r}(this)},t}(),B=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},L=/^\s*\/\/.*$/gm;function M(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=M(e.children,t)),e})}var z=new I,V=function(e){var t,r,o,i=p.options,s=void 0===i?p:i,a=p.plugins,c=void 0===a?l:a,u=function(e,n,o){return o===r||o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},h=c.slice();s.prefix&&h.unshift(n.prefixer),h.push(function(e){e.type===n.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(o,u))},n.stringify);var f=function(e,i,a,c){void 0===i&&(i=""),void 0===a&&(a=""),void 0===c&&(c="&"),t=c,r=i,o=new RegExp("\\".concat(r,"\\b"),"g");var u=e.replace(L,""),l=n.compile(a||i?"".concat(a," ").concat(i," { ").concat(u," }"):u);return s.namespace&&(l=M(l,s.namespace)),function(e,t){for(var n=[],r=0,o=void 0;r<e.length;r+=1)(o=t(e[r],r,e,t))&&n.push(o);return n}(l,n.middleware(h))};return f.hash=c.length?c.reduce(function(e,t){return t.name||d(15),B(e,t.name)},5381).toString():"",f}(),$=(a.default.createContext({shouldForwardProp:void 0,styleSheet:z,stylis:V}),a.default.createContext(void 0),function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=V);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){throw d(12,String(n.name))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=V),this.name+e.hash},e}());function k(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}var F=function(e){return e>="A"&&e<="Z"};function q(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;F(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}function Y(e){return"function"==typeof e}function G(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function W(e){return"object"==typeof e&&"styledComponentId"in e}var H=function(e){return null==e||!1===e||""===e},U=function(t){var n,r,o=[];for(var i in t){var s=t[i];t.hasOwnProperty(i)&&!H(s)&&(Array.isArray(s)&&s.isCss||Y(s)?o.push("".concat(q(i),":"),s,";"):G(s)?o.push.apply(o,e.__spreadArray(e.__spreadArray(["".concat(i," {")],U(s),!1),["}"],!1)):o.push("".concat(q(i),": ").concat((n=i,null==(r=s)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in c.default||n.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return o};function K(e,t,n,r){if(H(e))return[];if(W(e))return[".".concat(e.styledComponentId)];if(Y(e)){if(!Y(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof $||G(o)||null===o||console.error("".concat(k(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.")),K(o,t,n,r)}var i;return e instanceof $?n?(e.inject(n,r),[e.getName(r)]):[e]:G(e)?U(e):Array.isArray(e)?e.flatMap(function(e){return K(e,t,n,r)}):[e.toString()]}function Z(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}var J=function(e){return Object.assign(e,{isCss:!0})};function Q(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(Y(t)||G(t)){var o=t;return J(K(Z(l,e.__spreadArray([o],n,!0))))}var i=t;return 0===n.length&&1===i.length&&"string"==typeof i[0]?K(i):J(K(Z(i,n)))}function X(t,n,r){if(void 0===r&&(r=p),!n)throw d(1,n);var o=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return t(n,r,Q.apply(void 0,e.__spreadArray([o],i,!1)))};return o.attrs=function(o){return X(t,n,e.__assign(e.__assign({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return X(t,n,e.__assign(e.__assign({},r),o))},o}var ee,te=a.default.createContext(void 0),ne=te.Consumer;function re(){return t.useContext(te)}function oe(e,t,n){return void 0===n&&(n=p),e.theme!==n.theme&&e.theme||t||n.theme}var ie="function"==typeof Symbol&&Symbol.for,se=ie?Symbol.for("react.memo"):60115,ae=ie?Symbol.for("react.forward_ref"):60112,ce={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ue={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},le={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pe=((ee={})[ae]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ee[se]=le,ee);function he(e){return("type"in(t=e)&&t.type.$$typeof)===se?le:"$$typeof"in e?pe[e.$$typeof]:ce;var t}var fe=Object.defineProperty,de=Object.getOwnPropertyNames,ye=Object.getOwnPropertySymbols,ge=Object.getOwnPropertyDescriptor,ve=Object.getPrototypeOf,me=Object.prototype;function Se(e,t,n){if("string"!=typeof t){if(me){var r=ve(t);r&&r!==me&&Se(e,r,n)}var o=de(t);ye&&(o=o.concat(ye(t)));for(var i=he(e),s=he(t),a=0;a<o.length;++a){var c=o[a];if(!(c in ue||n&&n[c]||s&&c in s||i&&c in i)){var u=ge(t,c);try{fe(e,c,u)}catch(e){}}}}return e}var _e=/(a)(d)/gi,we=function(e){return String.fromCharCode(e+(e>25?39:97))},be={};function Ee(e,t,n){if(void 0===n&&(n=!1),!n&&!G(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Ee(e[r],t[r]);else if(G(t))for(var r in t)e[r]=Ee(e[r],t[r]);return e}var Ae,Pe,Ce=require("react-native"),Ne=(Ae=Ce.StyleSheet,Pe=function(){function e(e){this.rules=e}return e.prototype.generateStyleObject=function(e){var t=function(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}(K(this.rules,e)),n=function(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=we(t%52)+n;return(we(t%52)+n).replace(_e,"$1-$2")}(B(5381,t)>>>0);if(!be[n]){var r=i.parse(t),o=[];r.each(function(e){"decl"===e.type?o.push([e.prop,e.value]):"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var s=u.default(o),a=Ae.create({generated:s});be[n]=a.generated}return be[n]},e}(),function(n,r,o){var i=W(n),s=n,c=r.displayName,u=void 0===c?function(e){return function(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}(e)?"styled.".concat(e):"Styled(".concat(k(e),")")}(n):c,h=r.attrs,f=void 0===h?l:h,d=i&&s.attrs?s.attrs.concat(f).filter(Boolean):f,y=r.shouldForwardProp;if(i&&s.shouldForwardProp){var g=s.shouldForwardProp;if(r.shouldForwardProp){var v=r.shouldForwardProp;y=function(e,t){return g(e,t)&&v(e,t)}}else y=g}var m=function(n,r){return function(n,r,o){var i=n.attrs,s=n.inlineStyle,a=n.defaultProps,c=n.shouldForwardProp,u=n.target,l=re(),h=function(t,n,r){void 0===t&&(t=p);var o=e.__assign(e.__assign({},n),{theme:t}),i={};return r.forEach(function(e){var t,n=Y(e)?e(o):e;for(t in n)o[t]=i[t]=n[t]}),[o,i]}(oe(r,l,a)||p,r,i),f=h[1],d=s.generateStyleObject(h[0]),y=o,g=f.as||r.as||u,v=f!==r?e.__assign(e.__assign({},r),f):r,m={};for(var S in v)"$"!==S[0]&&"as"!==S&&("forwardedAs"===S?m.as=v[S]:c&&!c(S,g)||(m[S]=v[S]));return m.style=t.useMemo(function(){return Y(r.style)?function(e){return[d].concat(r.style(e))}:r.style?[d].concat(r.style):d},[r.style,d]),m.ref=y,t.createElement(g,m)}(S,n,r)};m.displayName=u;var S=a.default.forwardRef(m);return S.attrs=d,S.inlineStyle=new Pe(i?s.inlineStyle.rules.concat(o):o),S.displayName=u,S.shouldForwardProp=y,S.styledComponentId=!0,S.target=i?s.target:n,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Ee(e,o[r],!0);return e}({},s.defaultProps,e):e}}),Se(S,n,{attrs:!0,inlineStyle:!0,displayName:!0,shouldForwardProp:!0,target:!0}),S}),Te=function(e){return X(Ne,e)};["ActivityIndicator","Button","DatePickerIOS","DrawerLayoutAndroid","FlatList","Image","ImageBackground","KeyboardAvoidingView","Modal","Pressable","ProgressBarAndroid","ProgressViewIOS","RefreshControl","SafeAreaView","ScrollView","SectionList","Slider","Switch","Text","TextInput","TouchableHighlight","TouchableOpacity","View","VirtualizedList"].forEach(function(e){return Object.defineProperty(Te,e,{enumerable:!0,configurable:!1,get:function(){if(e in Ce&&Ce[e])return Te(Ce[e]);throw new Error("".concat(e," is not available in the currently-installed version of react-native"))}})}),exports.ThemeConsumer=ne,exports.ThemeContext=te,exports.ThemeProvider=function(n){var r=re(),o=t.useMemo(function(){return function(t,n){if(!t)throw d(14);if(Y(t)){var r=t(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw d(7);return r}if(Array.isArray(t)||"object"!=typeof t)throw d(8);return n?e.__assign(e.__assign({},n),t):t}(n.theme,r)},[n.theme,r]);return n.children?a.default.createElement(te.Provider,{value:o},n.children):null},exports.css=Q,exports.default=Te,exports.isStyledComponent=W,exports.styled=Te,exports.useTheme=re,exports.withTheme=function(t){var n=a.default.forwardRef(function(n,r){var o=oe(n,re(),t.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===o&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(k(t),'"')),a.default.createElement(t,e.__assign({},n,{theme:o,ref:r}))});return n.displayName="WithTheme(".concat(k(t),")"),Se(n,t)};
//# sourceMappingURL=styled-components.native.cjs.js.map

@@ -1,2 +0,2 @@

import{__spreadArray as e,__assign as t}from"tslib";import n,{useMemo as r,useContext as o,createElement as i}from"react";import"shallowequal";import{prefixer as s,stringify as a,RULESET as c,compile as u,middleware as l}from"stylis";import p from"@emotion/unitless";import h from"css-to-react-native";import{parse as f}from"postcss";var d=Object.freeze([]),y=Object.freeze({}),m="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 v(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function g(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(v.apply(void 0,e([m[t]],n,!1)).trim())}var S="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",w="undefined"!=typeof window&&"HTMLElement"in window,b=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),E=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw g(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=(i=0,t.length);i<a;i++)this.tag.insertRule(s,t[i])&&(this.groupSizes[e]++,s++)},e.prototype.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)}},e.prototype.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,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat("/*!sc*/\n");return t},e}(),A=new Map,P=new Map,_=1,N=function(e){if(A.has(e))return A.get(e);for(;P.has(_);)_++;var t=_++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw g(16,"".concat(t));return A.set(e,t),P.set(t,e),t},C=function(e,t){A.set(e,t),P.set(t,e)},T="style[".concat(S,"][").concat("data-styled-version",'="').concat("6.0.0-beta.14",'"]'),D=new RegExp("^".concat(S,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),O=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},R=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split("/*!sc*/\n"),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var c=a.match(D);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(C(l,u),O(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},j=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(S))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(S,"active"),r.setAttribute("data-styled-version","6.0.0-beta.14");var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},x=function(){function e(e){this.element=j(e),this.element.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}throw g(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),I=function(){function e(e){this.element=j(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),B=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),L=w,z={isServer:!w,useCSSOMInjection:!b},V=function(){function e(e,n,r){void 0===e&&(e=y),void 0===n&&(n={}),this.options=t(t({},z),e),this.gs=n,this.names=new Map(r),this.server=!!e.isServer,!this.server&&w&&L&&(L=!1,function(e){for(var t=document.querySelectorAll(T),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(S)&&(R(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}return e.registerId=function(e){return N(e)},e.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new e(t(t({},this.options),n),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new B(n):t?new x(n):new I(n)}(this.options),new E(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(N(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(N(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(N(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e.prototype.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return P.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),s=t.getGroup(n);if(void 0===i||0===s.length)return"continue";var a="".concat(S,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==i&&i.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(s).concat(a,'{content:"').concat(c,'"}').concat("/*!sc*/\n")},i=0;i<n;i++)o(i);return r}(this)},e}(),$=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},F=/^\s*\/\/.*$/gm,k=[":","[",".","#"];function M(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&(e.children=M(e.children,t)),e})}var Y=new V,G=function(e){var t,n,r,o,i=y.options,p=void 0===i?y:i,h=y.plugins,f=void 0===h?d:h,m=function(e,r,i){return 0===r&&k.includes(i[n.length])||i.match(o)?e:".".concat(t)},v=f.slice();p.prefix&&v.unshift(s),v.push(function(e){e.type===c&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(r,m))},a);var S=function(e,i,s,a){void 0===i&&(i=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=i,r=new RegExp("\\".concat(n,"\\b"),"g"),o=new RegExp("(\\".concat(n,"\\b){2,}"));var c=e.replace(F,""),h=u(s||i?"".concat(s," ").concat(i," { ").concat(c," }"):c);return p.namespace&&(h=M(h,p.namespace)),function(e,t){for(var n=[],r=0,o=void 0;r<e.length;r+=1)(o=t(e[r],r,e,t))&&n.push(o);return n}(h,l(v))};return S.hash=f.length?f.reduce(function(e,t){return t.name||g(15),$(e,t.name)},5381).toString():"",S}(),q=(n.createContext({shouldForwardProp:void 0,styleSheet:Y,stylis:G}),n.createContext(void 0),function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=G);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){throw g(12,String(n.name))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=G),this.name+e.hash},e}());function H(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}var W=function(e){return e>="A"&&e<="Z"};function U(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;W(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}function K(e){return"function"==typeof e}function Z(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function J(e){return"object"==typeof e&&"styledComponentId"in e}var Q=function(e){return null==e||!1===e||""===e},X=function(t){var n,r=[];for(var o in t){var i=t[o];t.hasOwnProperty(o)&&!Q(i)&&(Array.isArray(i)&&i.isCss||K(i)?r.push("".concat(U(o),":"),i,";"):Z(i)?r.push.apply(r,e(e(["".concat(o," {")],X(i),!1),["}"],!1)):r.push("".concat(U(o),": ").concat(null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||o in p?String(n).trim():"".concat(n,"px"),";")))}return r};function ee(e,t,n,r){if(Q(e))return[];if(J(e))return[".".concat(e.styledComponentId)];if(K(e)){if(!K(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof q||Z(o)||null===o||console.error("".concat(H(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.")),ee(o,t,n,r)}var i;return e instanceof q?n?(e.inject(n,r),[e.getName(r)]):[e]:Z(e)?X(e):Array.isArray(e)?e.flatMap(function(e){return ee(e,t,n,r)}):[e.toString()]}function te(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}var ne=function(e){return Object.assign(e,{isCss:!0})};function re(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(K(t)||Z(t)){var o=t;return ne(ee(te(d,e([o],n,!0))))}var i=t;return 0===n.length&&1===i.length&&"string"==typeof i[0]?ee(i):ne(ee(te(i,n)))}function oe(n,r,o){if(void 0===o&&(o=y),!r)throw g(1,r);var i=function(t){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return n(r,o,re.apply(void 0,e([t],i,!1)))};return i.attrs=function(e){return oe(n,r,t(t({},o),{attrs:Array.prototype.concat(o.attrs,e).filter(Boolean)}))},i.withConfig=function(e){return oe(n,r,t(t({},o),e))},i}var ie,se=n.createContext(void 0),ae=se.Consumer;function ce(){return o(se)}function ue(e){var o=ce(),i=r(function(){return function(e,n){if(!e)throw g(14);if(K(e)){var r=e(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw g(7);return r}if(Array.isArray(e)||"object"!=typeof e)throw g(8);return n?t(t({},n),e):e}(e.theme,o)},[e.theme,o]);return e.children?n.createElement(se.Provider,{value:i},e.children):null}function le(e,t,n){return void 0===n&&(n=y),e.theme!==n.theme&&e.theme||t||n.theme}var pe="function"==typeof Symbol&&Symbol.for,he=pe?Symbol.for("react.memo"):60115,fe=pe?Symbol.for("react.forward_ref"):60112,de={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ye={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},me={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ve=((ie={})[fe]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ie[he]=me,ie);function ge(e){return("type"in(t=e)&&t.type.$$typeof)===he?me:"$$typeof"in e?ve[e.$$typeof]:de;var t}var Se=Object.defineProperty,we=Object.getOwnPropertyNames,be=Object.getOwnPropertySymbols,Ee=Object.getOwnPropertyDescriptor,Ae=Object.getPrototypeOf,Pe=Object.prototype;function _e(e,t,n){if("string"!=typeof t){if(Pe){var r=Ae(t);r&&r!==Pe&&_e(e,r,n)}var o=we(t);be&&(o=o.concat(be(t)));for(var i=ge(e),s=ge(t),a=0;a<o.length;++a){var c=o[a];if(!(c in ye||n&&n[c]||s&&c in s||i&&c in i)){var u=Ee(t,c);try{Se(e,c,u)}catch(e){}}}}return e}function Ne(e){var r=n.forwardRef(function(r,o){var i=le(r,ce(),e.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===i&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(H(e),'"')),n.createElement(e,t({},r,{theme:i,ref:o}))});return r.displayName="WithTheme(".concat(H(e),")"),_e(r,e)}var Ce=/(a)(d)/gi,Te=function(e){return String.fromCharCode(e+(e>25?39:97))},De={};function Oe(e,t,n){if(void 0===n&&(n=!1),!n&&!Z(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Oe(e[r],t[r]);else if(Z(t))for(var r in t)e[r]=Oe(e[r],t[r]);return e}var Re,je,xe=require("react-native"),Ie=(Re=xe.StyleSheet,je=function(){function e(e){this.rules=e}return e.prototype.generateStyleObject=function(e){var t=function(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}(ee(this.rules,e)),n=function(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Te(t%52)+n;return(Te(t%52)+n).replace(Ce,"$1-$2")}($(5381,t)>>>0);if(!De[n]){var r=f(t),o=[];r.each(function(e){"decl"===e.type?o.push([e.prop,e.value]):"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var i=h(o),s=Re.create({generated:i});De[n]=s.generated}return De[n]},e}(),function(e,o,s){var a=J(e),c=e,u=o.displayName,l=void 0===u?function(e){return function(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}(e)?"styled.".concat(e):"Styled(".concat(H(e),")")}(e):u,p=o.attrs,h=void 0===p?d:p,f=a&&c.attrs?c.attrs.concat(h).filter(Boolean):h,m=o.shouldForwardProp;if(a&&c.shouldForwardProp){var v=c.shouldForwardProp;if(o.shouldForwardProp){var g=o.shouldForwardProp;m=function(e,t){return v(e,t)&&g(e,t)}}else m=v}var S=function(e,n){return function(e,n,o){var s=e.attrs,a=e.inlineStyle,c=e.defaultProps,u=e.shouldForwardProp,l=e.target,p=ce(),h=function(e,n,r){void 0===e&&(e=y);var o=t(t({},n),{theme:e}),i={};return r.forEach(function(e){var t,n=K(e)?e(o):e;for(t in n)o[t]=i[t]=n[t]}),[o,i]}(le(n,p,c)||y,n,s),f=h[1],d=a.generateStyleObject(h[0]),m=o,v=f.as||n.as||l,g=f!==n?t(t({},n),f):n,S={};for(var w in g)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?S.as=g[w]:u&&!u(w,v)||(S[w]=g[w]));return S.style=r(function(){return K(n.style)?function(e){return[d].concat(n.style(e))}:n.style?[d].concat(n.style):d},[n.style,d]),S.ref=m,i(v,S)}(w,e,n)};S.displayName=l;var w=n.forwardRef(S);return w.attrs=f,w.inlineStyle=new je(a?c.inlineStyle.rules.concat(s):s),w.displayName=l,w.shouldForwardProp=m,w.styledComponentId=!0,w.target=a?c.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Oe(e,o[r],!0);return e}({},c.defaultProps,e):e}}),_e(w,e,{attrs:!0,inlineStyle:!0,displayName:!0,shouldForwardProp:!0,target:!0}),w}),Be=function(e){return oe(Ie,e)};["ActivityIndicator","Button","DatePickerIOS","DrawerLayoutAndroid","FlatList","Image","ImageBackground","KeyboardAvoidingView","Modal","Pressable","ProgressBarAndroid","ProgressViewIOS","RefreshControl","SafeAreaView","ScrollView","SectionList","Slider","Switch","Text","TextInput","TouchableHighlight","TouchableOpacity","View","VirtualizedList"].forEach(function(e){return Object.defineProperty(Be,e,{enumerable:!0,configurable:!1,get:function(){if(e in xe&&xe[e])return Be(xe[e]);throw new Error("".concat(e," is not available in the currently-installed version of react-native"))}})});export{ae as ThemeConsumer,se as ThemeContext,ue as ThemeProvider,re as css,Be as default,J as isStyledComponent,Be as styled,ce as useTheme,Ne as withTheme};
import{__spreadArray as e,__assign as t}from"tslib";import n,{useMemo as r,useContext as o,createElement as i}from"react";import"shallowequal";import{prefixer as s,stringify as a,RULESET as c,compile as u,middleware as l}from"stylis";import p from"@emotion/unitless";import h from"css-to-react-native";import{parse as f}from"postcss";var d=Object.freeze([]),y=Object.freeze({}),m="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 v(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function g(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(v.apply(void 0,e([m[t]],n,!1)).trim())}var S="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",w="undefined"!=typeof window&&"HTMLElement"in window,b=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),E=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw g(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=(i=0,t.length);i<a;i++)this.tag.insertRule(s,t[i])&&(this.groupSizes[e]++,s++)},e.prototype.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)}},e.prototype.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,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat("/*!sc*/\n");return t},e}(),A=new Map,P=new Map,_=1,N=function(e){if(A.has(e))return A.get(e);for(;P.has(_);)_++;var t=_++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw g(16,"".concat(t));return A.set(e,t),P.set(t,e),t},C=function(e,t){A.set(e,t),P.set(t,e)},T="style[".concat(S,"][").concat("data-styled-version",'="').concat("6.0.0-beta.15",'"]'),D=new RegExp("^".concat(S,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),O=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},R=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split("/*!sc*/\n"),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var c=a.match(D);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(C(l,u),O(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},j=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(S))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(S,"active"),r.setAttribute("data-styled-version","6.0.0-beta.15");var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},I=function(){function e(e){this.element=j(e),this.element.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}throw g(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),x=function(){function e(e){this.element=j(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),B=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),L=w,z={isServer:!w,useCSSOMInjection:!b},V=function(){function e(e,n,r){void 0===e&&(e=y),void 0===n&&(n={}),this.options=t(t({},z),e),this.gs=n,this.names=new Map(r),this.server=!!e.isServer,!this.server&&w&&L&&(L=!1,function(e){for(var t=document.querySelectorAll(T),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(S)&&(R(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}return e.registerId=function(e){return N(e)},e.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new e(t(t({},this.options),n),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new B(n):t?new I(n):new x(n)}(this.options),new E(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(N(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(N(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(N(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e.prototype.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return P.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),s=t.getGroup(n);if(void 0===i||0===s.length)return"continue";var a="".concat(S,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==i&&i.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(s).concat(a,'{content:"').concat(c,'"}').concat("/*!sc*/\n")},i=0;i<n;i++)o(i);return r}(this)},e}(),$=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},k=/^\s*\/\/.*$/gm;function F(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=F(e.children,t)),e})}var M=new V,Y=function(e){var t,n,r,o=y.options,i=void 0===o?y:o,p=y.plugins,h=void 0===p?d:p,f=function(e,r,o){return o===n||o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},m=h.slice();i.prefix&&m.unshift(s),m.push(function(e){e.type===c&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(r,f))},a);var v=function(e,o,s,a){void 0===o&&(o=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(k,""),p=u(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);return i.namespace&&(p=F(p,i.namespace)),function(e,t){for(var n=[],r=0,o=void 0;r<e.length;r+=1)(o=t(e[r],r,e,t))&&n.push(o);return n}(p,l(m))};return v.hash=h.length?h.reduce(function(e,t){return t.name||g(15),$(e,t.name)},5381).toString():"",v}(),G=(n.createContext({shouldForwardProp:void 0,styleSheet:M,stylis:Y}),n.createContext(void 0),function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Y);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){throw g(12,String(n.name))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Y),this.name+e.hash},e}());function W(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}var q=function(e){return e>="A"&&e<="Z"};function H(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;q(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}function U(e){return"function"==typeof e}function K(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Z(e){return"object"==typeof e&&"styledComponentId"in e}var J=function(e){return null==e||!1===e||""===e},Q=function(t){var n,r,o=[];for(var i in t){var s=t[i];t.hasOwnProperty(i)&&!J(s)&&(Array.isArray(s)&&s.isCss||U(s)?o.push("".concat(H(i),":"),s,";"):K(s)?o.push.apply(o,e(e(["".concat(i," {")],Q(s),!1),["}"],!1)):o.push("".concat(H(i),": ").concat((n=i,null==(r=s)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in p||n.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return o};function X(e,t,n,r){if(J(e))return[];if(Z(e))return[".".concat(e.styledComponentId)];if(U(e)){if(!U(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof G||K(o)||null===o||console.error("".concat(W(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.")),X(o,t,n,r)}var i;return e instanceof G?n?(e.inject(n,r),[e.getName(r)]):[e]:K(e)?Q(e):Array.isArray(e)?e.flatMap(function(e){return X(e,t,n,r)}):[e.toString()]}function ee(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}var te=function(e){return Object.assign(e,{isCss:!0})};function ne(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(U(t)||K(t)){var o=t;return te(X(ee(d,e([o],n,!0))))}var i=t;return 0===n.length&&1===i.length&&"string"==typeof i[0]?X(i):te(X(ee(i,n)))}function re(n,r,o){if(void 0===o&&(o=y),!r)throw g(1,r);var i=function(t){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return n(r,o,ne.apply(void 0,e([t],i,!1)))};return i.attrs=function(e){return re(n,r,t(t({},o),{attrs:Array.prototype.concat(o.attrs,e).filter(Boolean)}))},i.withConfig=function(e){return re(n,r,t(t({},o),e))},i}var oe,ie=n.createContext(void 0),se=ie.Consumer;function ae(){return o(ie)}function ce(e){var o=ae(),i=r(function(){return function(e,n){if(!e)throw g(14);if(U(e)){var r=e(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw g(7);return r}if(Array.isArray(e)||"object"!=typeof e)throw g(8);return n?t(t({},n),e):e}(e.theme,o)},[e.theme,o]);return e.children?n.createElement(ie.Provider,{value:i},e.children):null}function ue(e,t,n){return void 0===n&&(n=y),e.theme!==n.theme&&e.theme||t||n.theme}var le="function"==typeof Symbol&&Symbol.for,pe=le?Symbol.for("react.memo"):60115,he=le?Symbol.for("react.forward_ref"):60112,fe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},de={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ye={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},me=((oe={})[he]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},oe[pe]=ye,oe);function ve(e){return("type"in(t=e)&&t.type.$$typeof)===pe?ye:"$$typeof"in e?me[e.$$typeof]:fe;var t}var ge=Object.defineProperty,Se=Object.getOwnPropertyNames,we=Object.getOwnPropertySymbols,be=Object.getOwnPropertyDescriptor,Ee=Object.getPrototypeOf,Ae=Object.prototype;function Pe(e,t,n){if("string"!=typeof t){if(Ae){var r=Ee(t);r&&r!==Ae&&Pe(e,r,n)}var o=Se(t);we&&(o=o.concat(we(t)));for(var i=ve(e),s=ve(t),a=0;a<o.length;++a){var c=o[a];if(!(c in de||n&&n[c]||s&&c in s||i&&c in i)){var u=be(t,c);try{ge(e,c,u)}catch(e){}}}}return e}function _e(e){var r=n.forwardRef(function(r,o){var i=ue(r,ae(),e.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===i&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(W(e),'"')),n.createElement(e,t({},r,{theme:i,ref:o}))});return r.displayName="WithTheme(".concat(W(e),")"),Pe(r,e)}var Ne=/(a)(d)/gi,Ce=function(e){return String.fromCharCode(e+(e>25?39:97))},Te={};function De(e,t,n){if(void 0===n&&(n=!1),!n&&!K(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=De(e[r],t[r]);else if(K(t))for(var r in t)e[r]=De(e[r],t[r]);return e}var Oe,Re,je=require("react-native"),Ie=(Oe=je.StyleSheet,Re=function(){function e(e){this.rules=e}return e.prototype.generateStyleObject=function(e){var t=function(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}(X(this.rules,e)),n=function(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Ce(t%52)+n;return(Ce(t%52)+n).replace(Ne,"$1-$2")}($(5381,t)>>>0);if(!Te[n]){var r=f(t),o=[];r.each(function(e){"decl"===e.type?o.push([e.prop,e.value]):"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var i=h(o),s=Oe.create({generated:i});Te[n]=s.generated}return Te[n]},e}(),function(e,o,s){var a=Z(e),c=e,u=o.displayName,l=void 0===u?function(e){return function(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}(e)?"styled.".concat(e):"Styled(".concat(W(e),")")}(e):u,p=o.attrs,h=void 0===p?d:p,f=a&&c.attrs?c.attrs.concat(h).filter(Boolean):h,m=o.shouldForwardProp;if(a&&c.shouldForwardProp){var v=c.shouldForwardProp;if(o.shouldForwardProp){var g=o.shouldForwardProp;m=function(e,t){return v(e,t)&&g(e,t)}}else m=v}var S=function(e,n){return function(e,n,o){var s=e.attrs,a=e.inlineStyle,c=e.defaultProps,u=e.shouldForwardProp,l=e.target,p=ae(),h=function(e,n,r){void 0===e&&(e=y);var o=t(t({},n),{theme:e}),i={};return r.forEach(function(e){var t,n=U(e)?e(o):e;for(t in n)o[t]=i[t]=n[t]}),[o,i]}(ue(n,p,c)||y,n,s),f=h[1],d=a.generateStyleObject(h[0]),m=o,v=f.as||n.as||l,g=f!==n?t(t({},n),f):n,S={};for(var w in g)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?S.as=g[w]:u&&!u(w,v)||(S[w]=g[w]));return S.style=r(function(){return U(n.style)?function(e){return[d].concat(n.style(e))}:n.style?[d].concat(n.style):d},[n.style,d]),S.ref=m,i(v,S)}(w,e,n)};S.displayName=l;var w=n.forwardRef(S);return w.attrs=f,w.inlineStyle=new Re(a?c.inlineStyle.rules.concat(s):s),w.displayName=l,w.shouldForwardProp=m,w.styledComponentId=!0,w.target=a?c.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)De(e,o[r],!0);return e}({},c.defaultProps,e):e}}),Pe(w,e,{attrs:!0,inlineStyle:!0,displayName:!0,shouldForwardProp:!0,target:!0}),w}),xe=function(e){return re(Ie,e)};["ActivityIndicator","Button","DatePickerIOS","DrawerLayoutAndroid","FlatList","Image","ImageBackground","KeyboardAvoidingView","Modal","Pressable","ProgressBarAndroid","ProgressViewIOS","RefreshControl","SafeAreaView","ScrollView","SectionList","Slider","Switch","Text","TextInput","TouchableHighlight","TouchableOpacity","View","VirtualizedList"].forEach(function(e){return Object.defineProperty(xe,e,{enumerable:!0,configurable:!1,get:function(){if(e in je&&je[e])return xe(je[e]);throw new Error("".concat(e," is not available in the currently-installed version of react-native"))}})});export{se as ThemeConsumer,ie as ThemeContext,ce as ThemeProvider,ne as css,xe as default,Z as isStyledComponent,xe as styled,ae as useTheme,_e as withTheme};
//# sourceMappingURL=styled-components.native.esm.js.map

@@ -1,1 +0,9 @@

export {};
import { CSSProp } from '../index';
/**
* `css` prop
*/
declare module 'react' {
interface Attributes {
css?: CSSProp;
}
}

@@ -20,3 +20,3 @@ import React from 'react';

export interface StyledOptions<R extends Runtime, Props extends object> {
attrs?: AttrsArg<Props>[];
attrs?: Attrs<Props>[];
componentId?: R extends 'web' ? string : never;

@@ -55,4 +55,3 @@ displayName?: string;

export type Interpolation<Props extends object> = StyleFunction<Props> | StyledObject<Props> | TemplateStringsArray | string | number | false | undefined | null | Keyframes | IStyledComponent<'web', any, any> | Interpolation<Props>[];
export type AttrsArg<Props extends object> = (Omit<ExecutionProps, keyof Props> & Props) | ((props: Omit<ExecutionContext, keyof Props> & Props) => Partial<Props>);
export type Attrs = object | ((...args: any) => object);
export type Attrs<Props extends object = object> = (ExecutionProps & Props) | ((props: ExecutionContext & Props) => Partial<Props>);
export type RuleSet<Props extends object> = Interpolation<Props>[];

@@ -81,3 +80,3 @@ export type Styles<Props extends object> = TemplateStringsArray | StyledObject<Props> | StyleFunction<Props>;

export interface CommonStatics<R extends Runtime, Props extends object> {
attrs: AttrsArg<Props>[];
attrs: Attrs<Props>[];
target: StyledTarget<R>;

@@ -130,18 +129,14 @@ shouldForwardProp?: ShouldForwardProp<R>;

/**
* Override DefaultTheme to get accurate typings for your project.
* The `css` prop is not declared by default in the types as it would cause `css` to be present
* on the types of anything that uses styled-components indirectly, even if they do not use the
* babel plugin.
*
* ```
* // create styled-components.d.ts in your project source
* // if it isn't being picked up, check tsconfig compilerOptions.types
* To enable support for the `css` prop in TypeScript, create a `styled-components.d.ts` file in
* your project source with the following contents:
*
* ```ts
* import type { CSSProp } from "styled-components";
* import Theme from './theme';
*
* type ThemeType = typeof Theme;
*
* declare module "styled-components" {
* export interface DefaultTheme extends ThemeType {}
* }
*
* declare module "react" {
* interface DOMAttributes<T> {
* interface Attributes {
* css?: CSSProp;

@@ -151,3 +146,6 @@ * }

* ```
*
* In order to get accurate typings for `props.theme` in `css` interpolations, see
* {@link DefaultTheme}.
*/
export type CSSProp = string | StyledObject<any> | StyleFunction<any>;
export type CSSProp = RuleSet<any>;
{
"name": "styled-components",
"version": "6.0.0-beta.14",
"version": "6.0.0-beta.15",
"description": "Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress",

@@ -115,2 +115,3 @@ "types": "dist/index.d.ts",

"bundlewatch": "^0.3.3",
"csstype": "^3.1.2",
"jest": "^29.4.3",

@@ -117,0 +118,0 @@ "jest-environment-jsdom": "^29.4.3",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc