styled-components 6.4.0-prerelease.7 → 6.4.0-prerelease.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +4 -0
  2. package/dist/constructors/createGlobalStyle.d.ts +10 -0
  3. package/dist/constructors/css.d.ts +12 -0
  4. package/dist/constructors/keyframes.d.ts +11 -0
  5. package/dist/constructors/styled.d.ts +8 -0
  6. package/dist/hoc/withTheme.d.ts +1 -0
  7. package/dist/models/InlineStyle.d.ts +11 -0
  8. package/dist/models/ServerStyleSheet.d.ts +10 -0
  9. package/dist/models/StyleSheetManager.d.ts +1 -0
  10. package/dist/native/index.d.ts +18 -2
  11. package/dist/styled-components.browser.cjs.js +1 -1
  12. package/dist/styled-components.browser.cjs.js.map +1 -1
  13. package/dist/styled-components.browser.esm.js +2 -2
  14. package/dist/styled-components.browser.esm.js.map +1 -1
  15. package/dist/styled-components.cjs.js +1 -1
  16. package/dist/styled-components.cjs.js.map +1 -1
  17. package/dist/styled-components.esm.js +1 -1
  18. package/dist/styled-components.esm.js.map +1 -1
  19. package/dist/styled-components.js +58 -7
  20. package/dist/styled-components.js.map +1 -1
  21. package/dist/styled-components.min.js +2 -2
  22. package/dist/styled-components.min.js.map +1 -1
  23. package/dist/utils/isStyledComponent.d.ts +1 -0
  24. package/native/dist/constructors/createGlobalStyle.d.ts +10 -0
  25. package/native/dist/constructors/css.d.ts +12 -0
  26. package/native/dist/constructors/keyframes.d.ts +11 -0
  27. package/native/dist/constructors/styled.d.ts +8 -0
  28. package/native/dist/dist/constructors/createGlobalStyle.d.ts +10 -0
  29. package/native/dist/dist/constructors/css.d.ts +12 -0
  30. package/native/dist/dist/constructors/keyframes.d.ts +11 -0
  31. package/native/dist/dist/constructors/styled.d.ts +8 -0
  32. package/native/dist/dist/hoc/withTheme.d.ts +1 -0
  33. package/native/dist/dist/models/InlineStyle.d.ts +11 -0
  34. package/native/dist/dist/models/ServerStyleSheet.d.ts +10 -0
  35. package/native/dist/dist/models/StyleSheetManager.d.ts +1 -0
  36. package/native/dist/dist/native/index.d.ts +18 -2
  37. package/native/dist/dist/utils/isStyledComponent.d.ts +1 -0
  38. package/native/dist/hoc/withTheme.d.ts +1 -0
  39. package/native/dist/models/InlineStyle.d.ts +11 -0
  40. package/native/dist/models/ServerStyleSheet.d.ts +10 -0
  41. package/native/dist/models/StyleSheetManager.d.ts +1 -0
  42. package/native/dist/native/index.d.ts +18 -2
  43. package/native/dist/styled-components.native.cjs.js +1 -1
  44. package/native/dist/styled-components.native.cjs.js.map +1 -1
  45. package/native/dist/styled-components.native.esm.js +1 -1
  46. package/native/dist/styled-components.native.esm.js.map +1 -1
  47. package/native/dist/utils/isStyledComponent.d.ts +1 -0
  48. package/native/package.json +7 -2
  49. package/package.json +4 -5
@@ -1,4 +1,4 @@
1
- import e from"@emotion/is-prop-valid";import t,{createElement as n}from"react";import*as o from"stylis";var s,r;const i="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",a="active",c="data-styled-version",l="6.4.0-prerelease.7",u="/*!sc*/\n",d="undefined"!=typeof window&&"undefined"!=typeof document,h=void 0===t.createContext;function p(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const f=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(r=null!==(s=p("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==s?s:p("SC_DISABLE_SPEEDY"))&&void 0!==r?r:"undefined"==typeof process||void 0===process.env||"production"!==process.env.NODE_ENV),m="sc-keyframes-",g={},y="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function v(e,...t){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#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`):new Error(function(...e){let t=e[0];const n=[];for(let t=1,o=e.length;t<o;t+=1)n.push(e[t]);return n.forEach(e=>{t=t.replace(/%[a-z]/,e)}),t}(y[e],...t).trim())}const S=1<<30;let w=new Map,b=new Map,C=1;const N=e=>{if(w.has(e))return w.get(e);for(;b.has(C);)C++;const t=C++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>S))throw v(16,`${t}`);return w.set(e,t),b.set(t,e),t},O=e=>b.get(e),E=(e,t)=>{C=t+1,w.set(e,t),b.set(t,e)},A=/invalid hook call/i,I=new Set,_=(e,n)=>{if("production"!==process.env.NODE_ENV){if(h)return;const o=`The component ${e}${n?` with the id of "${n}"`:""} has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n`,s=console.error;try{let e=!0;console.error=(t,...n)=>{A.test(t)?(e=!1,I.delete(o)):s(t,...n)},"function"==typeof t.useState&&t.useState(null),e&&!I.has(o)&&(console.warn(o),I.add(o))}catch(e){A.test(e.message)&&I.delete(o)}finally{console.error=s}}},P=Object.freeze([]),R=Object.freeze({});function j(e,t,n=R){return e.theme!==n.theme&&e.theme||t||n.theme}var k=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);const x=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,$=/(^-|-$)/g;function T(e){return e.replace(x,"-").replace($,"")}const D=/(a)(d)/gi,M=e=>String.fromCharCode(e+(e>25?39:97));function G(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=M(t%52)+n;return(M(t%52)+n).replace(D,"$1-$2")}const V=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},F=e=>V(5381,e);function z(e){return G(F(e)>>>0)}function W(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function L(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}function B(e){return L(e)?`styled.${e}`:`Styled(${W(e)})`}const q=Symbol.for("react.memo"),H=Symbol.for("react.forward_ref"),Y={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},U={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},J={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Z={[H]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[q]:J};function X(e){return("type"in(t=e)&&t.type.$$typeof)===q?J:"$$typeof"in e?Z[e.$$typeof]:Y;var t}const K=Object.defineProperty,Q=Object.getOwnPropertyNames,ee=Object.getOwnPropertySymbols,te=Object.getOwnPropertyDescriptor,ne=Object.getPrototypeOf,oe=Object.prototype;function se(e,t,n){if("string"!=typeof t){const o=ne(t);o&&o!==oe&&se(e,o,n);const s=Q(t).concat(ee(t)),r=X(e),i=X(t);for(let o=0;o<s.length;++o){const a=s[o];if(!(a in U||n&&n[a]||i&&a in i||r&&a in r)){const n=te(t,a);try{K(e,a,n)}catch(e){}}}}return e}function re(e){return"function"==typeof e}function ie(e){return"object"==typeof e&&"styledComponentId"in e}function ae(e,t){return e&&t?e+" "+t:e||t||""}function ce(e,t){return e.join(t||"")}function le(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ue(e,t,n=!1){if(!n&&!le(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=ue(e[n],t[n]);else if(le(t))for(const n in t)e[n]=ue(e[n],t[n]);return e}function de(e,t){Object.defineProperty(e,"toString",{value:t})}const he=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let o=n;for(;e>=o;)if(o<<=1,o<0)throw v(16,`${e}`);this.groupSizes=new Uint32Array(o),this.groupSizes.set(t),this.length=o;for(let e=n;e<o;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),o=0;for(let s=0,r=t.length;s<r;s++)this.tag.insertRule(n,t[s])&&(this.groupSizes[e]++,n++,o++);o>0&&this._cGroup>e&&(this._cIndex+=o)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(let e=n;e<o;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],o=this.indexOfGroup(e),s=o+n;for(let e=o;e<s;e++)t+=this.tag.getRule(e)+u;return t}},pe=`style[${i}][${c}="${l}"]`,fe=new RegExp(`^${i}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),me=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,ge=e=>{if(!e)return document;if(me(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(me(t))return t}return document},ye=(e,t,n)=>{const o=n.split(",");let s;for(let n=0,r=o.length;n<r;n++)(s=o[n])&&e.registerName(t,s)},ve=(e,t)=>{var n;const o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(u),s=[];for(let t=0,n=o.length;t<n;t++){const n=o[t].trim();if(!n)continue;const r=n.match(fe);if(r){const t=0|parseInt(r[1],10),n=r[2];0!==t&&(E(n,t),ye(e,n,r[3]),e.getTag().insertRules(t,s)),s.length=0}else s.push(n)}},Se=e=>{const t=ge(e.options.target).querySelectorAll(pe);for(let n=0,o=t.length;n<o;n++){const o=t[n];o&&o.getAttribute(i)!==a&&(ve(e,o),o.parentNode&&o.parentNode.removeChild(o))}};let we=!1;function be(){if(!1!==we)return we;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return we=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return we=t.getAttribute("content")||void 0}return we="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}const Ce=(e,t)=>{const n=document.head,o=e||n,s=document.createElement("style"),r=(e=>{const t=Array.from(e.querySelectorAll(`style[${i}]`));return t[t.length-1]})(o),u=void 0!==r?r.nextSibling:null;s.setAttribute(i,a),s.setAttribute(c,l);const d=t||be();return d&&s.setAttribute("nonce",d),o.insertBefore(s,u),s},Ne=class{constructor(e,t){this.element=Ce(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,o=n.length;t<o;t++){const o=n[t];if(o.ownerNode===e)return o}throw v(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},Oe=class{constructor(e,t){this.element=Ce(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}},Ee=class{constructor(e){this.rules=[],this.length=0}insertRule(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):this.rules.splice(e,0,t),this.length++,!0)}deleteRule(e){this.rules.splice(e,1),this.length--}getRule(e){return e<this.length?this.rules[e]:""}};let Ae=d;const Ie={isServer:!d,useCSSOMInjection:!f};class _e{static registerId(e){return N(e)}constructor(e=R,t={},n){this.options=Object.assign(Object.assign({},Ie),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&d&&Ae&&(Ae=!1,Se(this)),de(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let o="";for(let s=0;s<n;s++){const n=O(s);if(void 0===n)continue;const r=e.names.get(n);if(void 0===r||!r.size)continue;const a=t.getGroup(s);if(0===a.length)continue;const c=i+".g"+s+'[id="'+n+'"]';let l="";for(const e of r)e.length>0&&(l+=e+",");o+=a+c+'{content:"'+l+'"}'+u}return o})(this))}rehydrate(){!this.server&&d&&Se(this)}reconstructWithOptions(e,t=!0){const n=new _e(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&d&&e.target!==this.options.target&&ge(this.options.target)!==ge(e.target)&&Se(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({isServer:e,useCSSOMInjection:t,target:n,nonce:o})=>e?new Ee(n):t?new Ne(n,o):new Oe(n,o))(this.options),new he(e)));var e}hasNameForId(e,t){var n,o;return null!==(o=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==o&&o}registerName(e,t){N(e),e.startsWith(m)&&this.keyframeIds.add(e);const n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(N(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(N(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const Pe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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 Re(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Pe||e.startsWith("--")?String(t).trim():t+"px"}const je=e=>e>="A"&&e<="Z";function ke(e){let t="";for(let n=0;n<e.length;n++){const o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;je(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}const xe=Symbol.for("sc-keyframes");function $e(e){return"object"==typeof e&&null!==e&&xe in e}function Te(e){return re(e)&&!(e.prototype&&e.prototype.isReactComponent)}const De=e=>null==e||!1===e||""===e,Me=e=>{const t=[];for(const n in e){const o=e[n];e.hasOwnProperty(n)&&!De(o)&&(Array.isArray(o)&&o.isCss||re(o)?t.push(ke(n)+":",o,";"):le(o)?t.push(n+" {",...Me(o),"}"):t.push(ke(n)+": "+Re(n,o)+";"))}return t};function Ge(e,t,n,o,s=[]){if("string"==typeof e)return e&&s.push(e),s;if(De(e))return s;if(ie(e))return s.push(`.${e.styledComponentId}`),s;if(re(e)){if(Te(e)&&t){const r=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||$e(r)||le(r)||null===r||console.error(`${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.`),Ge(r,t,n,o,s)}return s.push(e),s}if($e(e))return n?(e.inject(n,o),s.push(e.getName(o))):s.push(e),s;if(le(e)){const t=Me(e);for(let e=0;e<t.length;e++)s.push(t[e]);return s}if(!Array.isArray(e))return s.push(e.toString()),s;for(let r=0;r<e.length;r++)Ge(e[r],t,n,o,s);return s}const Ve=F(l);class Fe{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=V(Ve,t),this.baseStyle=n,_e.registerId(t)}generateAndInjectStyles(e,t,n){let o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let s="";for(let o=0;o<this.rules.length;o++){const r=this.rules[o];if("string"==typeof r)s+=r;else if(r)if(Te(r)){const o=r(e);"string"==typeof o?s+=o:null!=o&&!1!==o&&("production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||$e(o)||le(o)||console.error(`${W(r)} 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.`),s+=ce(Ge(o,e,t,n)))}else s+=ce(Ge(r,e,t,n))}if(s){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+s:s;let r=this.dynamicNameCache.get(e);if(r||(r=G(V(V(this.baseHash,n.hash),s)>>>0),this.dynamicNameCache.set(e,r)),!t.hasNameForId(this.componentId,r)){const e=n(s,"."+r,void 0,this.componentId);t.insertRules(this.componentId,r,e)}o=ae(o,r)}}return o}}const ze=/&/g,We=47,Le=42;function Be(e){if(-1===e.indexOf("}"))return!1;const t=e.length;let n=0,o=0,s=!1;for(let r=0;r<t;r++){const t=e.charCodeAt(r);if(0!==o||s||t!==We||e.charCodeAt(r+1)!==Le)if(s)t===Le&&e.charCodeAt(r+1)===We&&(s=!1,r++);else if(34!==t&&39!==t||0!==r&&92===e.charCodeAt(r-1)){if(0===o)if(123===t)n++;else if(125===t&&(n--,n<0))return!0}else 0===o?o=t:o===t&&(o=0);else s=!0,r++}return 0!==n||0!==o}function qe(e,t){for(let n=0;n<e.length;n++){const o=e[n];if("rule"===o.type){o.value=t+" "+o.value,o.value=o.value.replaceAll(",",","+t+" ");const e=o.props,n=[];for(let o=0;o<e.length;o++)n[o]=t+" "+e[o];o.props=n}Array.isArray(o.children)&&"@keyframes"!==o.type&&(o.children=qe(o.children,t))}return e}function He({options:e=R,plugins:t=P}=R){let n,s,r;const i=(e,t,o)=>o.startsWith(s)&&o.endsWith(s)&&o.replaceAll(s,"").length>0?`.${n}`:e,a=t.slice();a.push(e=>{e.type===o.RULESET&&e.value.includes("&")&&(r||(r=new RegExp(`\\${s}\\b`,"g")),e.props[0]=e.props[0].replace(ze,s).replace(r,i))}),e.prefix&&a.push(o.prefixer),a.push(o.stringify);let c=[];const l=o.middleware(a.concat(o.rulesheet(e=>c.push(e)))),u=(t,i="",a="",u="&")=>{n=u,s=i,r=void 0;const d=function(e){if(!Be(e))return e;const t=e.length;let n="",o=0,s=0,r=0,i=!1;for(let a=0;a<t;a++){const c=e.charCodeAt(a);if(0!==r||i||c!==We||e.charCodeAt(a+1)!==Le)if(i)c===Le&&e.charCodeAt(a+1)===We&&(i=!1,a++);else if(34!==c&&39!==c||0!==a&&92===e.charCodeAt(a-1)){if(0===r)if(123===c)s++;else if(125===c){if(s--,s<0){let n=a+1;for(;n<t;){const t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,s=0,a=n-1,o=n;continue}0===s&&(n+=e.substring(o,a+1),o=a+1)}else 59===c&&0===s&&(n+=e.substring(o,a+1),o=a+1)}else 0===r?r=c:r===c&&(r=0);else i=!0,a++}if(o<t){const t=e.substring(o);Be(t)||(n+=t)}return n}(function(e){if(-1===e.indexOf("//"))return e;const t=e.length,n=[];let o=0,s=0,r=0,i=0;for(;s<t;){const a=e.charCodeAt(s);if(34!==a&&39!==a||0!==s&&92===e.charCodeAt(s-1))if(0===r)if(a===We&&s+1<t&&e.charCodeAt(s+1)===Le){for(s+=2;s+1<t&&(e.charCodeAt(s)!==Le||e.charCodeAt(s+1)!==We);)s++;s+=2}else if(40===a&&s>=3&&108==(32|e.charCodeAt(s-1))&&114==(32|e.charCodeAt(s-2))&&117==(32|e.charCodeAt(s-3)))i=1,s++;else if(i>0)41===a?i--:40===a&&i++,s++;else if(a===Le&&s+1<t&&e.charCodeAt(s+1)===We)s>o&&n.push(e.substring(o,s)),s+=2,o=s;else if(a===We&&s+1<t&&e.charCodeAt(s+1)===We){for(s>o&&n.push(e.substring(o,s));s<t&&10!==e.charCodeAt(s);)s++;o=s}else s++;else s++;else 0===r?r=a:r===a&&(r=0),s++}return 0===o?e:(o<t&&n.push(e.substring(o)),n.join(""))}(t));let h=o.compile(a||i?a+" "+i+" { "+d+" }":d);return e.namespace&&(h=qe(h,e.namespace)),c=[],o.serialize(h,l),c};return u.hash=t.length?t.reduce((e,t)=>(t.name||v(15),V(e,t.name)),5381).toString():"",u}var Ye,Ue,Je;const Ze=new _e,Xe=He(),Ke=h&&null!==(Je=null===(Ue=(Ye=t).cache)||void 0===Ue?void 0:Ue.call(Ye,()=>{Ze.names.clear(),Ze.keyframeIds.clear(),Ze.clearTag()}))&&void 0!==Je?Je:null,Qe={shouldForwardProp:void 0,styleSheet:Ze,stylis:Xe},et=h?{Provider:({children:e})=>e,Consumer:({children:e})=>e(Qe)}:t.createContext(Qe),tt=et.Consumer,nt=h?{Provider:({children:e})=>e,Consumer:({children:e})=>e(void 0)}:t.createContext(void 0);function ot(){return h?(Ke&&Ke(),Qe):t.useContext(et)}function st(e){if(h||!t.useMemo)return e.children;const{styleSheet:n}=ot(),o=t.useMemo(()=>{let t=n;return e.sheet?t=e.sheet:e.target?t=t.reconstructWithOptions({target:e.target,nonce:e.nonce},!1):void 0!==e.nonce&&(t=t.reconstructWithOptions({nonce:e.nonce})),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.nonce,e.sheet,e.target,n]),s=t.useMemo(()=>He({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins}),[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),r=t.useMemo(()=>({shouldForwardProp:e.shouldForwardProp,styleSheet:o,stylis:s}),[e.shouldForwardProp,o,s]);return t.createElement(et.Provider,{value:r},t.createElement(nt.Provider,{value:s},e.children))}const rt=h?{Provider:({children:e})=>e,Consumer:({children:e})=>e(void 0)}:t.createContext(void 0),it=rt.Consumer;function at(){const e=h?void 0:t.useContext(rt);if(!e)throw v(18);return e}function ct(e){if(h)return e.children;const n=t.useContext(rt),o=t.useMemo(()=>function(e,t){if(!e)throw v(14);if(re(e)){const n=e(t);if("production"!==process.env.NODE_ENV&&(null===n||Array.isArray(n)||"object"!=typeof n))throw v(7);return n}if(Array.isArray(e)||"object"!=typeof e)throw v(8);return t?Object.assign(Object.assign({},t),e):e}(e.theme,n),[e.theme,n]);return e.children?t.createElement(rt.Provider,{value:o},e.children):null}const lt={};function ut(e,t){const n="string"!=typeof e?"sc":T(e);lt[n]=(lt[n]||0)+1;const o=n+"-"+z(l+n+lt[n]);return t?t+"-"+o:o}let dt=new Set,ht=null;if(h){const e=t.cache;e&&(ht=e(()=>new Set))}const pt=new Map;function ft(e){let t=pt.get(e);return t||(t=new RegExp("\\."+e+"(?![a-zA-Z0-9_-])","g"),pt.set(e,t)),t}function mt(o,s,r){const i=ie(o),a=o,c=!L(o),{attrs:l=P,componentId:u=ut(s.displayName,s.parentComponentId),displayName:d=B(o)}=s,p=s.displayName&&s.componentId?T(s.displayName)+"-"+s.componentId:s.componentId||u,f=i&&a.attrs?a.attrs.concat(l).filter(Boolean):l;let{shouldForwardProp:m}=s;if(i&&a.shouldForwardProp){const e=a.shouldForwardProp;if(s.shouldForwardProp){const t=s.shouldForwardProp;m=(n,o)=>e(n,o)&&t(n,o)}else m=e}const g=new Fe(r,p,i?a.componentStyle:void 0);function y(o,s){return function(o,s,r){const{attrs:i,componentStyle:a,defaultProps:c,foldedComponentIds:l,styledComponentId:u,target:d}=o,p=h?void 0:t.useContext(rt),f=ot(),m=o.shouldForwardProp||f.shouldForwardProp;"production"!==process.env.NODE_ENV&&t.useDebugValue&&t.useDebugValue(u);const g=j(s,p,c)||(h?void 0:R);let y,v;y=function(e,t,n){const o=Object.assign(Object.assign({},t),{className:void 0,theme:n});for(let n=0;n<e.length;n++){const s=e[n],r=re(s)?s(Object.assign({},o)):s;for(const e in r)"className"===e?o.className=ae(o.className,r[e]):"style"===e?o.style=Object.assign(Object.assign({},o.style),r[e]):e in t&&void 0===t[e]||(o[e]=r[e])}return"className"in t&&"string"==typeof t.className&&(o.className=ae(o.className,t.className)),o}(i,s,g),v=function(e,n,o,s){const r=e.generateAndInjectStyles(n,o,s);return"production"!==process.env.NODE_ENV&&t.useDebugValue&&t.useDebugValue(r),r}(a,y,f.styleSheet,f.stylis),"production"!==process.env.NODE_ENV&&o.warnTooManyClasses&&o.warnTooManyClasses(v);const S=y.as||d,w=function(t,n,o,s){const r={};for(const i in t)void 0===t[i]||"$"===i[0]||"as"===i||"theme"===i&&t.theme===o||("forwardedAs"===i?r.as=t.forwardedAs:s&&!s(i,n)||(r[i]=t[i],s||"development"!==process.env.NODE_ENV||e(i)||dt.has(i)||!k.has(n)||(dt.add(i),console.warn(`styled-components: it looks like an unknown prop "${i}" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via \`<StyleSheetManager shouldForwardProp={...}>\` (connect an API like \`@emotion/is-prop-valid\`) or consider using transient props (\`$\` prefix for automatic filtering.)`))));return r}(y,S,g,m);let b=ae(l,u);v&&(b+=" "+v),y.className&&(b+=" "+y.className),w[L(S)&&!k.has(S)?"class":"className"]=b,r&&(w.ref=r);const C=n(S,w);if(h){const e=f.styleSheet.getTag();let n="",o=a;for(;o;){let t=e.getGroup(N(o.componentId));if(t&&o!==a){const e=f.styleSheet.names.get(o.componentId);if(e)for(const n of e){const e=ft(n);e.lastIndex=0,t=t.replace(e,":where(."+n+")")}}n=t+n,o=o.baseStyle}const s=ht?ht():null;let r=null;if(f.styleSheet.keyframeIds.size>0){let n="";for(const t of f.styleSheet.keyframeIds){const o=e.getGroup(N(t));!o||s&&s.has(t)||(s&&s.add(t),n+=o)}n&&(r=t.createElement("style",{key:"sc-kf-"+a.componentId,children:n}))}const i=!(!n||!s)&&s.has(n);n&&!i&&s&&s.add(n);const c=n&&!i?t.createElement("style",{key:"sc-"+a.componentId,children:n}):null;if(r||c)return t.createElement(t.Fragment,null,r,c,C)}return C}(v,o,s)}y.displayName=d;let v=t.forwardRef(y);return v.attrs=f,v.componentStyle=g,v.displayName=d,v.shouldForwardProp=m,v.foldedComponentIds=i?ae(a.foldedComponentIds,a.styledComponentId):"",v.styledComponentId=p,v.target=i?a.target:o,Object.defineProperty(v,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=i?function(e,...t){for(const n of t)ue(e,n,!0);return e}({},a.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(_(d,p),v.warnTooManyClasses=((e,t)=>{let n={},o=!1;return s=>{!o&&(n[s]=!0,Object.keys(n).length>=200)&&(console.warn(`Over 200 classes were generated for component ${e}${t?` with the id of "${t}"`:""}.\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))\`width: 100%;\`\n\n <Component />`),o=!0,n={})}})(d,p)),de(v,()=>`.${v.styledComponentId}`),c&&se(v,o,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),v}function gt(e,t){const n=[e[0]];for(let o=0,s=t.length;o<s;o+=1)n.push(t[o],e[o+1]);return n}const yt=e=>Object.assign(e,{isCss:!0});function vt(e,...t){if(re(e)||le(e))return yt(Ge(gt(P,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Ge(n):yt(Ge(gt(n,t)))}function St(e,t,n=R){if(!t)throw v(1,t);const o=(o,...s)=>e(t,n,vt(o,...s));return o.attrs=o=>St(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)})),o.withConfig=o=>St(e,t,Object.assign(Object.assign({},n),o)),o}const wt=e=>St(mt,e),bt=wt;k.forEach(e=>{bt[e]=wt(e)});class Ct{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){const n=e[t];if(re(n)&&!ie(n))return!1}return!0}(e),_e.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,o){const s=this.componentId;if(this.isStatic){if(n.hasNameForId(s,s+e))this.instanceRules.has(e)||this.computeRules(e,t,n,o);else{const r=this.computeRules(e,t,n,o);n.insertRules(s,r.name,r.rules)}return}const r=this.instanceRules.get(e);if(this.computeRules(e,t,n,o),!n.server&&r){const t=r.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let o=0;o<t.length;o++)if(t[o]!==n[o]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,o){const s=ce(Ge(this.rules,t,n,o)),r={name:this.componentId+e,rules:o(s,"")};return this.instanceRules.set(e,r),r}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}}function Nt(e,...n){const o=vt(e,...n),s=`sc-global-${z(JSON.stringify(o))}`,r=new Ct(o,s);"production"!==process.env.NODE_ENV&&_(s);const i=e=>{const n=ot(),a=h?void 0:t.useContext(rt);let c;if(c=n.styleSheet.allocateGSInstance(s),"production"!==process.env.NODE_ENV&&t.Children.count(e.children)&&console.warn(`The global style component ${s} was given child JSX. createGlobalStyle does not render children.`),"production"!==process.env.NODE_ENV&&o.some(e=>"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."),(h||n.styleSheet.server)&&function(e,t,n,o,s){if(r.isStatic)r.renderStyles(e,g,n,s);else{const a=Object.assign(Object.assign({},t),{theme:j(t,o,i.defaultProps)});r.renderStyles(e,a,n,s)}}(c,e,n.styleSheet,a,n.stylis),h){const e="undefined"==typeof window?r.instanceRules.get(c):void 0;let n="";if(e){const t=e.rules;for(let e=0;e<t.length;e++)n+=t[e]+u}if(n)return r.instanceRules.delete(c),t.createElement("style",{key:s+"-"+c,"data-styled-global":s,children:n})}return r.instanceRules.delete(c),null};return t.memo(i)}function Ot(e,t,n,o,s){for(const r in e){const i=e[r],a=s?s+"-"+r:r;if("object"==typeof i&&null!==i){const e={};Ot(i,t,e,o,a),n[r]=e}else n[r]=o(a,i,r)}}function Et(e,t,n,o){let s="";for(const r in e){const i=e[r],a=t[r],c=o?o+"-"+r:r;"object"==typeof i&&null!==i?"object"==typeof a&&null!==a&&(s+=Et(i,a,n,c)):void 0!==a&&"function"!=typeof a&&(s+="--"+n+c+":"+a+";")}return s}function At(e,t){var n,o;const s=(null!==(n=null==t?void 0:t.prefix)&&void 0!==n?n:"sc")+"-",r=null!==(o=null==t?void 0:t.selector)&&void 0!==o?o:":root",i=function(e,t){const n={};return Ot(e,t,n,(e,n)=>{if("production"!==process.env.NODE_ENV){const t=String(n);let o=0;for(let e=0;e<t.length&&(40===t.charCodeAt(e)?o++:41===t.charCodeAt(e)&&o--,!(o<0));e++);0!==o&&console.warn(`createTheme: value "${t}" at "${e}" contains unbalanced parentheses and may break the var() fallback`)}return"var(--"+t+e+", "+n+")"}),n}(e,s),a=Nt`
1
+ import e from"@emotion/is-prop-valid";import t,{createElement as n}from"react";import*as o from"stylis";var s,r;const i="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",a="active",c="data-styled-version",l="6.4.0-prerelease.9",u="/*!sc*/\n",d="undefined"!=typeof window&&"undefined"!=typeof document,h=void 0===t.createContext;function p(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const f=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(r=null!==(s=p("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==s?s:p("SC_DISABLE_SPEEDY"))&&void 0!==r?r:"undefined"==typeof process||void 0===process.env||"production"!==process.env.NODE_ENV),m="sc-keyframes-",g={},y="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function v(e,...t){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#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`):new Error(function(...e){let t=e[0];const n=[];for(let t=1,o=e.length;t<o;t+=1)n.push(e[t]);return n.forEach(e=>{t=t.replace(/%[a-z]/,e)}),t}(y[e],...t).trim())}const S=1<<30;let w=new Map,b=new Map,C=1;const N=e=>{if(w.has(e))return w.get(e);for(;b.has(C);)C++;const t=C++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>S))throw v(16,`${t}`);return w.set(e,t),b.set(t,e),t},O=e=>b.get(e),E=(e,t)=>{C=t+1,w.set(e,t),b.set(t,e)},A=/invalid hook call/i,I=new Set,_=(e,n)=>{if("production"!==process.env.NODE_ENV){if(h)return;const o=`The component ${e}${n?` with the id of "${n}"`:""} has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n`,s=console.error;try{let e=!0;console.error=(t,...n)=>{A.test(t)?(e=!1,I.delete(o)):s(t,...n)},"function"==typeof t.useState&&t.useState(null),e&&!I.has(o)&&(console.warn(o),I.add(o))}catch(e){A.test(e.message)&&I.delete(o)}finally{console.error=s}}},P=Object.freeze([]),R=Object.freeze({});function j(e,t,n=R){return e.theme!==n.theme&&e.theme||t||n.theme}var k=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);const x=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,$=/(^-|-$)/g;function T(e){return e.replace(x,"-").replace($,"")}const D=/(a)(d)/gi,M=e=>String.fromCharCode(e+(e>25?39:97));function G(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=M(t%52)+n;return(M(t%52)+n).replace(D,"$1-$2")}const V=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},F=e=>V(5381,e);function z(e){return G(F(e)>>>0)}function W(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function L(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}function B(e){return L(e)?`styled.${e}`:`Styled(${W(e)})`}const q=Symbol.for("react.memo"),H=Symbol.for("react.forward_ref"),Y={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},U={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},J={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Z={[H]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[q]:J};function X(e){return("type"in(t=e)&&t.type.$$typeof)===q?J:"$$typeof"in e?Z[e.$$typeof]:Y;var t}const K=Object.defineProperty,Q=Object.getOwnPropertyNames,ee=Object.getOwnPropertySymbols,te=Object.getOwnPropertyDescriptor,ne=Object.getPrototypeOf,oe=Object.prototype;function se(e,t,n){if("string"!=typeof t){const o=ne(t);o&&o!==oe&&se(e,o,n);const s=Q(t).concat(ee(t)),r=X(e),i=X(t);for(let o=0;o<s.length;++o){const a=s[o];if(!(a in U||n&&n[a]||i&&a in i||r&&a in r)){const n=te(t,a);try{K(e,a,n)}catch(e){}}}}return e}function re(e){return"function"==typeof e}function ie(e){return"object"==typeof e&&"styledComponentId"in e}function ae(e,t){return e&&t?e+" "+t:e||t||""}function ce(e,t){return e.join(t||"")}function le(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ue(e,t,n=!1){if(!n&&!le(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=ue(e[n],t[n]);else if(le(t))for(const n in t)e[n]=ue(e[n],t[n]);return e}function de(e,t){Object.defineProperty(e,"toString",{value:t})}const he=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let o=n;for(;e>=o;)if(o<<=1,o<0)throw v(16,`${e}`);this.groupSizes=new Uint32Array(o),this.groupSizes.set(t),this.length=o;for(let e=n;e<o;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),o=0;for(let s=0,r=t.length;s<r;s++)this.tag.insertRule(n,t[s])&&(this.groupSizes[e]++,n++,o++);o>0&&this._cGroup>e&&(this._cIndex+=o)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(let e=n;e<o;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],o=this.indexOfGroup(e),s=o+n;for(let e=o;e<s;e++)t+=this.tag.getRule(e)+u;return t}},pe=`style[${i}][${c}="${l}"]`,fe=new RegExp(`^${i}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),me=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,ge=e=>{if(!e)return document;if(me(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(me(t))return t}return document},ye=(e,t,n)=>{const o=n.split(",");let s;for(let n=0,r=o.length;n<r;n++)(s=o[n])&&e.registerName(t,s)},ve=(e,t)=>{var n;const o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(u),s=[];for(let t=0,n=o.length;t<n;t++){const n=o[t].trim();if(!n)continue;const r=n.match(fe);if(r){const t=0|parseInt(r[1],10),n=r[2];0!==t&&(E(n,t),ye(e,n,r[3]),e.getTag().insertRules(t,s)),s.length=0}else s.push(n)}},Se=e=>{const t=ge(e.options.target).querySelectorAll(pe);for(let n=0,o=t.length;n<o;n++){const o=t[n];o&&o.getAttribute(i)!==a&&(ve(e,o),o.parentNode&&o.parentNode.removeChild(o))}};let we=!1;function be(){if(!1!==we)return we;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return we=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return we=t.getAttribute("content")||void 0}return we="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}const Ce=(e,t)=>{const n=document.head,o=e||n,s=document.createElement("style"),r=(e=>{const t=Array.from(e.querySelectorAll(`style[${i}]`));return t[t.length-1]})(o),u=void 0!==r?r.nextSibling:null;s.setAttribute(i,a),s.setAttribute(c,l);const d=t||be();return d&&s.setAttribute("nonce",d),o.insertBefore(s,u),s},Ne=class{constructor(e,t){this.element=Ce(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,o=n.length;t<o;t++){const o=n[t];if(o.ownerNode===e)return o}throw v(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},Oe=class{constructor(e,t){this.element=Ce(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}},Ee=class{constructor(e){this.rules=[],this.length=0}insertRule(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):this.rules.splice(e,0,t),this.length++,!0)}deleteRule(e){this.rules.splice(e,1),this.length--}getRule(e){return e<this.length?this.rules[e]:""}};let Ae=d;const Ie={isServer:!d,useCSSOMInjection:!f};class _e{static registerId(e){return N(e)}constructor(e=R,t={},n){this.options=Object.assign(Object.assign({},Ie),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&d&&Ae&&(Ae=!1,Se(this)),de(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let o="";for(let s=0;s<n;s++){const n=O(s);if(void 0===n)continue;const r=e.names.get(n);if(void 0===r||!r.size)continue;const a=t.getGroup(s);if(0===a.length)continue;const c=i+".g"+s+'[id="'+n+'"]';let l="";for(const e of r)e.length>0&&(l+=e+",");o+=a+c+'{content:"'+l+'"}'+u}return o})(this))}rehydrate(){!this.server&&d&&Se(this)}reconstructWithOptions(e,t=!0){const n=new _e(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&d&&e.target!==this.options.target&&ge(this.options.target)!==ge(e.target)&&Se(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({isServer:e,useCSSOMInjection:t,target:n,nonce:o})=>e?new Ee(n):t?new Ne(n,o):new Oe(n,o))(this.options),new he(e)));var e}hasNameForId(e,t){var n,o;return null!==(o=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==o&&o}registerName(e,t){N(e),e.startsWith(m)&&this.keyframeIds.add(e);const n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(N(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(N(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const Pe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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 Re(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Pe||e.startsWith("--")?String(t).trim():t+"px"}const je=e=>e>="A"&&e<="Z";function ke(e){let t="";for(let n=0;n<e.length;n++){const o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;je(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}const xe=Symbol.for("sc-keyframes");function $e(e){return"object"==typeof e&&null!==e&&xe in e}function Te(e){return re(e)&&!(e.prototype&&e.prototype.isReactComponent)}const De=e=>null==e||!1===e||""===e,Me=e=>{const t=[];for(const n in e){const o=e[n];e.hasOwnProperty(n)&&!De(o)&&(Array.isArray(o)&&o.isCss||re(o)?t.push(ke(n)+":",o,";"):le(o)?t.push(n+" {",...Me(o),"}"):t.push(ke(n)+": "+Re(n,o)+";"))}return t};function Ge(e,t,n,o,s=[]){if("string"==typeof e)return e&&s.push(e),s;if(De(e))return s;if(ie(e))return s.push(`.${e.styledComponentId}`),s;if(re(e)){if(Te(e)&&t){const r=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||$e(r)||le(r)||null===r||console.error(`${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.`),Ge(r,t,n,o,s)}return s.push(e),s}if($e(e))return n?(e.inject(n,o),s.push(e.getName(o))):s.push(e),s;if(le(e)){const t=Me(e);for(let e=0;e<t.length;e++)s.push(t[e]);return s}if(!Array.isArray(e))return s.push(e.toString()),s;for(let r=0;r<e.length;r++)Ge(e[r],t,n,o,s);return s}const Ve=F(l);class Fe{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=V(Ve,t),this.baseStyle=n,_e.registerId(t)}generateAndInjectStyles(e,t,n){let o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let s="";for(let o=0;o<this.rules.length;o++){const r=this.rules[o];if("string"==typeof r)s+=r;else if(r)if(Te(r)){const o=r(e);"string"==typeof o?s+=o:null!=o&&!1!==o&&("production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||$e(o)||le(o)||console.error(`${W(r)} 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.`),s+=ce(Ge(o,e,t,n)))}else s+=ce(Ge(r,e,t,n))}if(s){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+s:s;let r=this.dynamicNameCache.get(e);if(r||(r=G(V(V(this.baseHash,n.hash),s)>>>0),this.dynamicNameCache.set(e,r)),!t.hasNameForId(this.componentId,r)){const e=n(s,"."+r,void 0,this.componentId);t.insertRules(this.componentId,r,e)}o=ae(o,r)}}return o}}const ze=/&/g,We=47,Le=42;function Be(e){if(-1===e.indexOf("}"))return!1;const t=e.length;let n=0,o=0,s=!1;for(let r=0;r<t;r++){const t=e.charCodeAt(r);if(0!==o||s||t!==We||e.charCodeAt(r+1)!==Le)if(s)t===Le&&e.charCodeAt(r+1)===We&&(s=!1,r++);else if(34!==t&&39!==t||0!==r&&92===e.charCodeAt(r-1)){if(0===o)if(123===t)n++;else if(125===t&&(n--,n<0))return!0}else 0===o?o=t:o===t&&(o=0);else s=!0,r++}return 0!==n||0!==o}function qe(e,t){for(let n=0;n<e.length;n++){const o=e[n];if("rule"===o.type){o.value=t+" "+o.value,o.value=o.value.replaceAll(",",","+t+" ");const e=o.props,n=[];for(let o=0;o<e.length;o++)n[o]=t+" "+e[o];o.props=n}Array.isArray(o.children)&&"@keyframes"!==o.type&&(o.children=qe(o.children,t))}return e}function He({options:e=R,plugins:t=P}=R){let n,s,r;const i=(e,t,o)=>o.startsWith(s)&&o.endsWith(s)&&o.replaceAll(s,"").length>0?`.${n}`:e,a=t.slice();a.push(e=>{e.type===o.RULESET&&e.value.includes("&")&&(r||(r=new RegExp(`\\${s}\\b`,"g")),e.props[0]=e.props[0].replace(ze,s).replace(r,i))}),e.prefix&&a.push(o.prefixer),a.push(o.stringify);let c=[];const l=o.middleware(a.concat(o.rulesheet(e=>c.push(e)))),u=(t,i="",a="",u="&")=>{n=u,s=i,r=void 0;const d=function(e){if(!Be(e))return e;const t=e.length;let n="",o=0,s=0,r=0,i=!1;for(let a=0;a<t;a++){const c=e.charCodeAt(a);if(0!==r||i||c!==We||e.charCodeAt(a+1)!==Le)if(i)c===Le&&e.charCodeAt(a+1)===We&&(i=!1,a++);else if(34!==c&&39!==c||0!==a&&92===e.charCodeAt(a-1)){if(0===r)if(123===c)s++;else if(125===c){if(s--,s<0){let n=a+1;for(;n<t;){const t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,s=0,a=n-1,o=n;continue}0===s&&(n+=e.substring(o,a+1),o=a+1)}else 59===c&&0===s&&(n+=e.substring(o,a+1),o=a+1)}else 0===r?r=c:r===c&&(r=0);else i=!0,a++}if(o<t){const t=e.substring(o);Be(t)||(n+=t)}return n}(function(e){if(-1===e.indexOf("//"))return e;const t=e.length,n=[];let o=0,s=0,r=0,i=0;for(;s<t;){const a=e.charCodeAt(s);if(34!==a&&39!==a||0!==s&&92===e.charCodeAt(s-1))if(0===r)if(a===We&&s+1<t&&e.charCodeAt(s+1)===Le){for(s+=2;s+1<t&&(e.charCodeAt(s)!==Le||e.charCodeAt(s+1)!==We);)s++;s+=2}else if(40===a&&s>=3&&108==(32|e.charCodeAt(s-1))&&114==(32|e.charCodeAt(s-2))&&117==(32|e.charCodeAt(s-3)))i=1,s++;else if(i>0)41===a?i--:40===a&&i++,s++;else if(a===Le&&s+1<t&&e.charCodeAt(s+1)===We)s>o&&n.push(e.substring(o,s)),s+=2,o=s;else if(a===We&&s+1<t&&e.charCodeAt(s+1)===We){for(s>o&&n.push(e.substring(o,s));s<t&&10!==e.charCodeAt(s);)s++;o=s}else s++;else s++;else 0===r?r=a:r===a&&(r=0),s++}return 0===o?e:(o<t&&n.push(e.substring(o)),n.join(""))}(t));let h=o.compile(a||i?a+" "+i+" { "+d+" }":d);return e.namespace&&(h=qe(h,e.namespace)),c=[],o.serialize(h,l),c};return u.hash=t.length?t.reduce((e,t)=>(t.name||v(15),V(e,t.name)),5381).toString():"",u}var Ye,Ue,Je;const Ze=new _e,Xe=He(),Ke=h&&null!==(Je=null===(Ue=(Ye=t).cache)||void 0===Ue?void 0:Ue.call(Ye,()=>{Ze.names.clear(),Ze.keyframeIds.clear(),Ze.clearTag()}))&&void 0!==Je?Je:null,Qe={shouldForwardProp:void 0,styleSheet:Ze,stylis:Xe},et=h?{Provider:({children:e})=>e,Consumer:({children:e})=>e(Qe)}:t.createContext(Qe),tt=et.Consumer,nt=h?{Provider:({children:e})=>e,Consumer:({children:e})=>e(void 0)}:t.createContext(void 0);function ot(){return h?(Ke&&Ke(),Qe):t.useContext(et)}function st(e){if(h||!t.useMemo)return e.children;const{styleSheet:n}=ot(),o=t.useMemo(()=>{let t=n;return e.sheet?t=e.sheet:e.target?t=t.reconstructWithOptions({target:e.target,nonce:e.nonce},!1):void 0!==e.nonce&&(t=t.reconstructWithOptions({nonce:e.nonce})),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.nonce,e.sheet,e.target,n]),s=t.useMemo(()=>He({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins}),[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),r=t.useMemo(()=>({shouldForwardProp:e.shouldForwardProp,styleSheet:o,stylis:s}),[e.shouldForwardProp,o,s]);return t.createElement(et.Provider,{value:r},t.createElement(nt.Provider,{value:s},e.children))}const rt=h?{Provider:({children:e})=>e,Consumer:({children:e})=>e(void 0)}:t.createContext(void 0),it=rt.Consumer;function at(){const e=h?void 0:t.useContext(rt);if(!e)throw v(18);return e}function ct(e){if(h)return e.children;const n=t.useContext(rt),o=t.useMemo(()=>function(e,t){if(!e)throw v(14);if(re(e)){const n=e(t);if("production"!==process.env.NODE_ENV&&(null===n||Array.isArray(n)||"object"!=typeof n))throw v(7);return n}if(Array.isArray(e)||"object"!=typeof e)throw v(8);return t?Object.assign(Object.assign({},t),e):e}(e.theme,n),[e.theme,n]);return e.children?t.createElement(rt.Provider,{value:o},e.children):null}const lt={};function ut(e,t){const n="string"!=typeof e?"sc":T(e);lt[n]=(lt[n]||0)+1;const o=n+"-"+z(l+n+lt[n]);return t?t+"-"+o:o}let dt=new Set,ht=null;if(h){const e=t.cache;e&&(ht=e(()=>new Set))}const pt=new Map;function ft(e){let t=pt.get(e);return t||(t=new RegExp("\\."+e+"(?![a-zA-Z0-9_-])","g"),pt.set(e,t)),t}function mt(o,s,r){const i=ie(o),a=o,c=!L(o),{attrs:l=P,componentId:u=ut(s.displayName,s.parentComponentId),displayName:d=B(o)}=s,p=s.displayName&&s.componentId?T(s.displayName)+"-"+s.componentId:s.componentId||u,f=i&&a.attrs?a.attrs.concat(l).filter(Boolean):l;let{shouldForwardProp:m}=s;if(i&&a.shouldForwardProp){const e=a.shouldForwardProp;if(s.shouldForwardProp){const t=s.shouldForwardProp;m=(n,o)=>e(n,o)&&t(n,o)}else m=e}const g=new Fe(r,p,i?a.componentStyle:void 0);function y(o,s){return function(o,s,r){const{attrs:i,componentStyle:a,defaultProps:c,foldedComponentIds:l,styledComponentId:u,target:d}=o,p=h?void 0:t.useContext(rt),f=ot(),m=o.shouldForwardProp||f.shouldForwardProp;"production"!==process.env.NODE_ENV&&t.useDebugValue&&t.useDebugValue(u);const g=j(s,p,c)||(h?void 0:R);let y,v;y=function(e,t,n){const o=Object.assign(Object.assign({},t),{className:void 0,theme:n});for(let n=0;n<e.length;n++){const s=e[n],r=re(s)?s(Object.assign({},o)):s;for(const e in r)"className"===e?o.className=ae(o.className,r[e]):"style"===e?o.style=Object.assign(Object.assign({},o.style),r[e]):e in t&&void 0===t[e]||(o[e]=r[e])}return"className"in t&&"string"==typeof t.className&&(o.className=ae(o.className,t.className)),o}(i,s,g),v=function(e,n,o,s){const r=e.generateAndInjectStyles(n,o,s);return"production"!==process.env.NODE_ENV&&t.useDebugValue&&t.useDebugValue(r),r}(a,y,f.styleSheet,f.stylis),"production"!==process.env.NODE_ENV&&o.warnTooManyClasses&&o.warnTooManyClasses(v);const S=y.as||d,w=function(t,n,o,s){const r={};for(const i in t)void 0===t[i]||"$"===i[0]||"as"===i||"theme"===i&&t.theme===o||("forwardedAs"===i?r.as=t.forwardedAs:s&&!s(i,n)||(r[i]=t[i],s||"development"!==process.env.NODE_ENV||e(i)||dt.has(i)||!k.has(n)||(dt.add(i),console.warn(`styled-components: it looks like an unknown prop "${i}" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via \`<StyleSheetManager shouldForwardProp={...}>\` (connect an API like \`@emotion/is-prop-valid\`) or consider using transient props (\`$\` prefix for automatic filtering.)`))));return r}(y,S,g,m);let b=ae(l,u);v&&(b+=" "+v),y.className&&(b+=" "+y.className),w[L(S)&&!k.has(S)?"class":"className"]=b,r&&(w.ref=r);const C=n(S,w);if(h){const e=f.styleSheet.getTag();let n="",o=a;for(;o;){let t=e.getGroup(N(o.componentId));if(t&&o!==a){const e=f.styleSheet.names.get(o.componentId);if(e)for(const n of e){const e=ft(n);e.lastIndex=0,t=t.replace(e,":where(."+n+")")}}n=t+n,o=o.baseStyle}const s=ht?ht():null;let r=null;if(f.styleSheet.keyframeIds.size>0){let n="";for(const t of f.styleSheet.keyframeIds){const o=e.getGroup(N(t));!o||s&&s.has(t)||(s&&s.add(t),n+=o)}n&&(r=t.createElement("style",{key:"sc-kf-"+a.componentId,children:n}))}const i=!(!n||!s)&&s.has(n);n&&!i&&s&&s.add(n);const c=n&&!i?t.createElement("style",{key:"sc-"+a.componentId,children:n}):null;if(r||c)return t.createElement(t.Fragment,null,r,c,C)}return C}(v,o,s)}y.displayName=d;let v=t.forwardRef(y);return v.attrs=f,v.componentStyle=g,v.displayName=d,v.shouldForwardProp=m,v.foldedComponentIds=i?ae(a.foldedComponentIds,a.styledComponentId):"",v.styledComponentId=p,v.target=i?a.target:o,Object.defineProperty(v,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=i?function(e,...t){for(const n of t)ue(e,n,!0);return e}({},a.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(_(d,p),v.warnTooManyClasses=((e,t)=>{let n={},o=!1;return s=>{!o&&(n[s]=!0,Object.keys(n).length>=200)&&(console.warn(`Over 200 classes were generated for component ${e}${t?` with the id of "${t}"`:""}.\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))\`width: 100%;\`\n\n <Component />`),o=!0,n={})}})(d,p)),de(v,()=>`.${v.styledComponentId}`),c&&se(v,o,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),v}function gt(e,t){const n=[e[0]];for(let o=0,s=t.length;o<s;o+=1)n.push(t[o],e[o+1]);return n}const yt=e=>Object.assign(e,{isCss:!0});function vt(e,...t){if(re(e)||le(e))return yt(Ge(gt(P,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Ge(n):yt(Ge(gt(n,t)))}function St(e,t,n=R){if(!t)throw v(1,t);const o=(o,...s)=>e(t,n,vt(o,...s));return o.attrs=o=>St(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)})),o.withConfig=o=>St(e,t,Object.assign(Object.assign({},n),o)),o}const wt=e=>St(mt,e),bt=wt;k.forEach(e=>{bt[e]=wt(e)});class Ct{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){const n=e[t];if(re(n)&&!ie(n))return!1}return!0}(e),_e.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,o){const s=this.componentId;if(this.isStatic){if(n.hasNameForId(s,s+e))this.instanceRules.has(e)||this.computeRules(e,t,n,o);else{const r=this.computeRules(e,t,n,o);n.insertRules(s,r.name,r.rules)}return}const r=this.instanceRules.get(e);if(this.computeRules(e,t,n,o),!n.server&&r){const t=r.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let o=0;o<t.length;o++)if(t[o]!==n[o]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,o){const s=ce(Ge(this.rules,t,n,o)),r={name:this.componentId+e,rules:o(s,"")};return this.instanceRules.set(e,r),r}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}}function Nt(e,...n){const o=vt(e,...n),s=`sc-global-${z(JSON.stringify(o))}`,r=new Ct(o,s);"production"!==process.env.NODE_ENV&&_(s);const i=e=>{const n=ot(),a=h?void 0:t.useContext(rt);let c;if(c=n.styleSheet.allocateGSInstance(s),"production"!==process.env.NODE_ENV&&t.Children.count(e.children)&&console.warn(`The global style component ${s} was given child JSX. createGlobalStyle does not render children.`),"production"!==process.env.NODE_ENV&&o.some(e=>"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."),(h||n.styleSheet.server)&&function(e,t,n,o,s){if(r.isStatic)r.renderStyles(e,g,n,s);else{const a=Object.assign(Object.assign({},t),{theme:j(t,o,i.defaultProps)});r.renderStyles(e,a,n,s)}}(c,e,n.styleSheet,a,n.stylis),h){const e="undefined"==typeof window?r.instanceRules.get(c):void 0;let n="";if(e){const t=e.rules;for(let e=0;e<t.length;e++)n+=t[e]+u}if(n)return r.instanceRules.delete(c),t.createElement("style",{key:s+"-"+c,"data-styled-global":s,children:n})}return r.instanceRules.delete(c),null};return t.memo(i)}function Ot(e,t,n,o,s){for(const r in e){const i=e[r],a=s?s+"-"+r:r;if("object"==typeof i&&null!==i){const e={};Ot(i,t,e,o,a),n[r]=e}else n[r]=o(a,i,r)}}function Et(e,t,n,o){let s="";for(const r in e){const i=e[r],a=t[r],c=o?o+"-"+r:r;"object"==typeof i&&null!==i?"object"==typeof a&&null!==a&&(s+=Et(i,a,n,c)):void 0!==a&&"function"!=typeof a&&(s+="--"+n+c+":"+a+";")}return s}function At(e,t){var n,o;const s=(null!==(n=null==t?void 0:t.prefix)&&void 0!==n?n:"sc")+"-",r=null!==(o=null==t?void 0:t.selector)&&void 0!==o?o:":root",i=function(e,t){const n={};return Ot(e,t,n,(e,n)=>{if("production"!==process.env.NODE_ENV){const t=String(n);let o=0;for(let e=0;e<t.length&&(40===t.charCodeAt(e)?o++:41===t.charCodeAt(e)&&o--,!(o<0));e++);0!==o&&console.warn(`createTheme: value "${t}" at "${e}" contains unbalanced parentheses and may break the var() fallback`)}return"var(--"+t+e+", "+n+")"}),n}(e,s),a=Nt`
2
2
  ${r} {
3
3
  ${t=>Et(e,t.theme,s)}
4
4
  }