styled-components 6.3.2 → 6.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/native/index.d.ts +1 -1
- package/dist/styled-components.browser.cjs.js +1 -1
- package/dist/styled-components.browser.cjs.js.map +1 -1
- package/dist/styled-components.browser.esm.js +1 -1
- package/dist/styled-components.browser.esm.js.map +1 -1
- package/dist/styled-components.cjs.js +1 -1
- package/dist/styled-components.cjs.js.map +1 -1
- package/dist/styled-components.esm.js +1 -1
- package/dist/styled-components.esm.js.map +1 -1
- package/dist/styled-components.js +7 -1
- package/dist/styled-components.js.map +1 -1
- package/dist/styled-components.min.js +1 -1
- package/native/dist/dist/native/index.d.ts +1 -1
- package/native/dist/native/index.d.ts +1 -1
- package/native/dist/styled-components.native.cjs.js +1 -1
- package/native/dist/styled-components.native.cjs.js.map +1 -1
- package/native/dist/styled-components.native.esm.js +1 -1
- package/native/dist/styled-components.native.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!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.3.2",s="/*!sc*/\n",a="undefined"!=typeof window&&"undefined"!=typeof document,i=void 0===e.createContext,c=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),u={},l=function(){return l=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},l.apply(this,arguments)};function f(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))}"function"==typeof SuppressedError&&SuppressedError;var p=Object.freeze([]),h=Object.freeze({});function d(e,t){Object.defineProperty(e,"toString",{value:t})}function m(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 v=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 m(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}(),g=new Map,y=new Map,S=1,b=function(e){if(g.has(e))return g.get(e);for(;y.has(S);)S++;var t=S++;return g.set(e,t),y.set(t,e),t},w=function(e,t){S=t+1,g.set(e,t),y.set(t,e)},C="style[".concat(t,"][").concat(n,'="').concat(o,'"]'),x=new RegExp("^".concat(t,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),I=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)},P=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(x);if(u){var l=0|parseInt(u[1],10),f=u[2];0!==l&&(w(f,l),I(e,f,u[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(c)}}},A=function(e){for(var n=document.querySelectorAll(C),o=0,s=n.length;o<s;o++){var a=n[o];a&&a.getAttribute(t)!==r&&(P(e,a),a.parentNode&&a.parentNode.removeChild(a))}};function E(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var _=function(e){var s=document.head,a=e||s,i=document.createElement("style"),c=function(e){var r=Array.from(e.querySelectorAll("style[".concat(t,"]")));return r[r.length-1]}(a),u=void 0!==c?c.nextSibling:null;i.setAttribute(t,r),i.setAttribute(n,o);var l=E();return l&&i.setAttribute("nonce",l),a.insertBefore(i,u),i},R=function(){function e(e){this.element=_(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 m(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}(),$=function(){function e(e){this.element=_(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}(),N=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}(),k=a,O={isServer:!a,useCSSOMInjection:!c},T=function(){function e(e,r,n){void 0===e&&(e=h),void 0===r&&(r={});var o=this;this.options=l(l({},O),e),this.gs=r,this.names=new Map(n),this.server=!!e.isServer,!this.server&&a&&k&&(k=!1,A(this)),d(this,function(){return function(e){for(var r=e.getTag(),n=r.length,o="",a=function(n){var a=function(e){return y.get(e)}(n);if(void 0===a)return"continue";var i=e.names.get(a),c=r.getGroup(n);if(void 0===i||!i.size||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}(o)})}return e.registerId=function(e){return b(e)},e.prototype.rehydrate=function(){!this.server&&a&&A(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(l(l({},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 N(r):t?new R(r):new $(r)}(this.options),new v(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(b(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(b(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(b(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),j="-ms-",D="-moz-",F="-webkit-",M="comm",z="rule",G="decl",L="@keyframes",B=Math.abs,W=String.fromCharCode,Y=Object.assign;function q(e){return e.trim()}function H(e,t){return(e=t.exec(e))?e[0]:e}function V(e,t,r){return e.replace(t,r)}function U(e,t,r){return e.indexOf(t,r)}function J(e,t){return 0|e.charCodeAt(t)}function Z(e,t,r){return e.slice(t,r)}function K(e){return e.length}function Q(e){return e.length}function X(e,t){return t.push(e),e}function ee(e,t){return e.filter(function(e){return!H(e,t)})}var te=1,re=1,ne=0,oe=0,se=0,ae="";function ie(e,t,r,n,o,s,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:te,column:re,length:a,return:"",siblings:i}}function ce(e,t){return Y(ie("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ue(e){for(;e.root;)e=ce(e.root,{children:[e]});X(e,e.siblings)}function le(){return se=oe>0?J(ae,--oe):0,re--,10===se&&(re=1,te--),se}function fe(){return se=oe<ne?J(ae,oe++):0,re++,10===se&&(re=1,te++),se}function pe(){return J(ae,oe)}function he(){return oe}function de(e,t){return Z(ae,e,t)}function me(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 ve(e){return q(de(oe-1,Se(91===e?e+2:40===e?e+1:e)))}function ge(e){for(;(se=pe())&&se<33;)fe();return me(e)>2||me(se)>3?"":" "}function ye(e,t){for(;--t&&fe()&&!(se<48||se>102||se>57&&se<65||se>70&&se<97););return de(e,he()+(t<6&&32==pe()&&32==fe()))}function Se(e){for(;fe();)switch(se){case e:return oe;case 34:case 39:34!==e&&39!==e&&Se(se);break;case 40:41===e&&Se(e);break;case 92:fe()}return oe}function be(e,t){for(;fe()&&e+se!==57&&(e+se!==84||47!==pe()););return"/*"+de(t,oe-1)+"*"+W(47===e?e:fe())}function we(e){for(;!me(pe());)fe();return de(e,oe)}function Ce(e){return function(e){return ae="",e}(xe("",null,null,null,[""],e=function(e){return te=re=1,ne=K(ae=e),oe=0,[]}(e),0,[0],e))}function xe(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,x=S;v;)switch(d=y,y=fe()){case 40:if(108!=d&&58==J(x,f-1)){-1!=U(x+=V(ve(y),"&","&\f"),"&\f",B(u?i[u-1]:0))&&(g=-1);break}case 34:case 39:case 91:x+=ve(y);break;case 9:case 10:case 13:case 32:x+=ge(d);break;case 92:x+=ye(he()-1,7);continue;case 47:switch(pe()){case 42:case 47:X(Pe(be(fe(),he()),t,r,c),c),5!=me(d||1)&&5!=me(pe()||1)||!K(x)||" "===Z(x,-1,void 0)||(x+=" ");break;default:x+="/"}break;case 123*m:i[u++]=K(x)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+l:-1==g&&(x=V(x,/\f/g,"")),h>0&&(K(x)-f||0===m&&47===d)&&X(h>32?Ae(x+";",n,r,f-1,c):Ae(V(x," ","")+";",n,r,f-2,c),c);break;case 59:x+=";";default:if(X(C=Ie(x,t,r,u,l,o,i,S,b=[],w=[],f,s),s),123===y)if(0===l)xe(x,t,C,C,b,s,f,i,w);else{switch(p){case 99:if(110===J(x,3))break;case 108:if(97===J(x,2))break;default:l=0;case 100:case 109:case 115:}l?xe(e,C,C,n&&X(Ie(e,C,C,0,0,o,i,S,o,b=[],f,w),w),o,w,f,i,n?b:w):xe(x,C,C,C,[""],w,0,i,w)}}u=l=h=0,m=g=1,S=x="",f=a;break;case 58:f=1+K(x),h=d;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==le())continue;switch(x+=W(y),y*m){case 38:g=l>0?1:(x+="\f",-1);break;case 44:i[u++]=(K(x)-1)*g,g=1;break;case 64:45===pe()&&(x+=ve(fe())),p=pe(),l=f=K(S=x+=we(he())),y++;break;case 45:45===d&&2==K(x)&&(m=0)}}return s}function Ie(e,t,r,n,o,s,a,i,c,u,l,f){for(var p=o-1,h=0===o?s:[""],d=Q(h),m=0,v=0,g=0;m<n;++m)for(var y=0,S=Z(e,p+1,p=B(v=a[m])),b=e;y<d;++y)(b=q(v>0?h[y]+" "+S:V(S,/&\f/g,h[y])))&&(c[g++]=b);return ie(e,t,r,0===o?z:i,c,u,l,f)}function Pe(e,t,r,n){return ie(e,t,r,M,W(se),Z(e,2,-2),0,n)}function Ae(e,t,r,n,o){return ie(e,t,r,G,Z(e,0,n),Z(e,n+1,-1),n,o)}function Ee(e,t,r){switch(function(e,t){return 45^J(e,0)?(((t<<2^J(e,0))<<2^J(e,1))<<2^J(e,2))<<2^J(e,3):0}(e,t)){case 5103:return F+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return F+e+e;case 4855:return F+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return D+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+D+e+j+e+e;case 5936:switch(J(e,t+11)){case 114:return F+e+j+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+j+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+j+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return F+e+j+e+e;case 6165:return F+e+j+"flex-"+e+e;case 5187:return F+e+V(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+j+"flex-$1$2")+e;case 5443:return F+e+j+"flex-item-"+V(e,/flex-|-self/g,"")+(H(e,/flex-|baseline/)?"":j+"grid-row-"+V(e,/flex-|-self/g,""))+e;case 4675:return F+e+j+"flex-line-pack"+V(e,/align-content|flex-|-self/g,"")+e;case 5548:return F+e+j+V(e,"shrink","negative")+e;case 5292:return F+e+j+V(e,"basis","preferred-size")+e;case 6060:return F+"box-"+V(e,"-grow","")+F+e+j+V(e,"grow","positive")+e;case 4554:return F+V(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return V(V(V(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return V(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return V(V(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+j+"flex-pack:$3"),/space-between/,"justify")+F+e+e;case 4200:if(!H(e,/flex-|baseline/))return j+"grid-column-align"+Z(e,t)+e;break;case 2592:case 3360:return j+V(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,H(e.props,/grid-\w+-end/)})?~U(e+(r=r[t].value),"span",0)?e:j+V(e,"-start","")+e+j+"grid-row-span:"+(~U(r,"span",0)?H(r,/\d+/):+H(r,/\d+/)-+H(e,/\d+/))+";":j+V(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return H(e.props,/grid-\w+-start/)})?e:j+V(V(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return V(e,/(.+)-inline(.+)/,F+"$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(K(e)-1-t>6)switch(J(e,t+1)){case 109:if(45!==J(e,t+4))break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+D+(108==J(e,t+3)?"$3":"$2-$3"))+e;case 115:return~U(e,"stretch",0)?Ee(V(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return V(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,o,s,a,i){return j+r+":"+n+i+(o?j+r+"-span:"+(s?a:+a-+n)+i:"")+e});case 4949:if(121===J(e,t+6))return V(e,":",":"+F)+e;break;case 6444:switch(J(e,45===J(e,14)?18:11)){case 120:return V(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+F+(45===J(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+j+"$2box$3")+e;case 100:return V(e,":",":"+j)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return V(e,"scroll-","scroll-snap-")+e}return e}function _e(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Re(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case G:return e.return=e.return||e.value;case M:return"";case L:return e.return=e.value+"{"+_e(e.children,n)+"}";case z:if(!K(e.value=e.props.join(",")))return""}return K(r=_e(e.children,n))?e.return=e.value+"{"+r+"}":""}function $e(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case G:return void(e.return=Ee(e.value,e.length,r));case L:return _e([ce(e,{value:V(e.value,"@","@"+F)})],n);case z:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(H(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ue(ce(e,{props:[V(t,/:(read-\w+)/,":-moz-$1")]})),ue(ce(e,{props:[t]})),Y(e,{props:ee(r,n)});break;case"::placeholder":ue(ce(e,{props:[V(t,/:(plac\w+)/,":"+F+"input-$1")]})),ue(ce(e,{props:[V(t,/:(plac\w+)/,":-moz-$1")]})),ue(ce(e,{props:[V(t,/:(plac\w+)/,j+"input-$1")]})),ue(ce(e,{props:[t]})),Y(e,{props:ee(r,n)})}return""})}}var Ne=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ke=function(e){return Ne(5381,e)},Oe=/&/g,Te=/^\s*\/\/.*$/gm;function je(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=je(e.children,t)),e})}function De(e){var t,r,n,o=void 0===e?h:e,s=o.options,a=void 0===s?h:s,i=o.plugins,c=void 0===i?p:i,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},l=c.slice();l.push(function(e){e.type===z&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Oe,r).replace(n,u))}),a.prefix&&l.push($e),l.push(Re);var f=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(Te,""),u=Ce(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);a.namespace&&(u=je(u,a.namespace));var f=[];return _e(u,function(e){var t=Q(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.concat(function(e){e.root||(e=e.return)&&f.push(e)}))),f};return f.hash=c.length?c.reduce(function(e,t){return t.name||m(15),Ne(e,t.name)},5381).toString():"",f}var Fe=new T,Me=De(),ze={shouldForwardProp:void 0,styleSheet:Fe,stylis:Me},Ge=i?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(ze)}}:e.createContext(ze),Le=Ge.Consumer,Be=i?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:e.createContext(void 0);function We(){return!i&&e.useContext?e.useContext(Ge):ze}function Ye(t){if(i||!e.useMemo)return t.children;var r=We().styleSheet,n=e.useMemo(function(){var e=r;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,r]),o=e.useMemo(function(){return De({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:t.stylisPlugins})},[t.enableVendorPrefixes,t.namespace,t.stylisPlugins]),s=e.useMemo(function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:n,stylis:o}},[t.shouldForwardProp,n,o]);return e.createElement(Ge.Provider,{value:s},e.createElement(Be.Provider,{value:o},t.children))}var qe=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Me);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,d(this,function(){throw m(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Me),this.name+e.hash},e}(),He={animationIterationCount:1,aspectRatio: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,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 Ve(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in He||e.startsWith("--")?String(t).trim():"".concat(t,"px")}function Ue(e){return e.displayName||e.name||"Component"}var Je=function(e){return e>="A"&&e<="Z"};function Ze(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Je(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}function Ke(e){return"function"==typeof e}function Qe(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Xe(e){return"object"==typeof e&&"styledComponentId"in e}var et=function(e){return null==e||!1===e||""===e},tt=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!et(n)&&(Array.isArray(n)&&n.isCss||Ke(n)?t.push("".concat(Ze(r),":"),n,";"):Qe(n)?t.push.apply(t,f(f(["".concat(r," {")],tt(n),!1),["}"],!1)):t.push("".concat(Ze(r),": ").concat(Ve(r,n),";")))}return t};function rt(e,t,r,n){return et(e)?[]:Xe(e)?[".".concat(e.styledComponentId)]:Ke(e)?!Ke(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:rt(e(t),t,r,n):e instanceof qe?r?(e.inject(r,n),[e.getName(n)]):[e]:Qe(e)?tt(e):Array.isArray(e)?Array.prototype.concat.apply(p,e.map(function(e){return rt(e,t,r,n)})):[e.toString()];var o}function nt(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ke(r)&&!Xe(r))return!1}return!0}function ot(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function st(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 at=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=nt(e),T.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(st(rt(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&&T.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}(),it=i?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:e.createContext(void 0),ct=it.Consumer;function ut(e,t,r){return void 0===r&&(r=h),e.theme!==r.theme&&e.theme||t||r.theme}var lt=/(a)(d)/gi,ft=function(e){return String.fromCharCode(e+(e>25?39:97))};function pt(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=ft(t%52)+r;return(ft(t%52)+r).replace(lt,"$1-$2")}function ht(e){return pt(ke(e)>>>0)}function dt(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 mt,vt=function(e){return Object.assign(e,{isCss:!0})};function gt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ke(e)||Qe(e))return vt(rt(dt(p,f([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?rt(n):vt(rt(dt(n,t)))}var yt="function"==typeof Symbol&&Symbol.for,St=yt?Symbol.for("react.memo"):60115,bt=yt?Symbol.for("react.forward_ref"):60112,wt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ct={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},It=((mt={})[bt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},mt[St]=xt,mt);function Pt(e){return("type"in(t=e)&&t.type.$$typeof)===St?xt:"$$typeof"in e?It[e.$$typeof]:wt;var t}var At=Object.defineProperty,Et=Object.getOwnPropertyNames,_t=Object.getOwnPropertySymbols,Rt=Object.getOwnPropertyDescriptor,$t=Object.getPrototypeOf,Nt=Object.prototype;function kt(e,t,r){if("string"!=typeof t){if(Nt){var n=$t(t);n&&n!==Nt&&kt(e,n,r)}var o=Et(t);_t&&(o=o.concat(_t(t)));for(var s=Pt(e),a=Pt(t),i=0;i<o.length;++i){var c=o[i];if(!(c in Ct||r&&r[c]||a&&c in a||s&&c in s)){var u=Rt(t,c);try{At(e,c,u)}catch(e){}}}}return e}var Ot=function(){function r(){var r=this;this._emitSheetCSS=function(){var e=r.instance.toString();if(!e)return"";var s=E(),a=st([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 m(2);return r._emitSheetCSS()},this.getStyleElement=function(){var s;if(r.sealed)throw m(2);var a=r.instance.toString();if(!a)return[];var i=((s={})[t]="",s[n]=o,s.dangerouslySetInnerHTML={__html:a},s),c=E();return c&&(i.nonce=c),[e.createElement("style",l({},i,{key:"sc-0-0"}))]},this.seal=function(){r.sealed=!0},this.instance=new T({isServer:!0}),this.sealed=!1}return r.prototype.collectStyles=function(t){if(this.sealed)throw m(2);return e.createElement(Ye,{sheet:this.instance},t)},r.prototype.interleaveWithNodeStream=function(e){throw m(3)},r}(),Tt=/*#__PURE__*/Object.freeze({__proto__:null,ServerStyleSheet:Ot,StyleSheetConsumer:Le,StyleSheetContext:Ge,StyleSheetManager:Ye,ThemeConsumer:ct,ThemeContext:it,ThemeProvider:function(t){if(i||!e.useContext||!e.useMemo)return t.children;var r=e.useContext(it),n=e.useMemo(function(){return function(e,t){if(!e)throw m(14);if(Ke(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw m(8);return t?l(l({},t),e):e}(t.theme,r)},[t.theme,r]);return t.children?e.createElement(it.Provider,{value:n},t.children):null},__PRIVATE__:{StyleSheet:T,mainSheet:Fe},createGlobalStyle:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=gt.apply(void 0,f([t],r,!1)),s="sc-global-".concat(ht(JSON.stringify(o))),a=new at(o,s),c=new WeakMap,p=function(t){var r=We(),n=e.useContext?e.useContext(it):void 0,o=c.get(r.styleSheet);if(void 0===o&&(o=r.styleSheet.allocateGSInstance(s),c.set(r.styleSheet,o)),("undefined"==typeof window||!r.styleSheet.server)&&function(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,u,r,o);else{var s=l(l({},t),{theme:ut(t,n,p.defaultProps)});a.renderStyles(e,s,r,o)}}(o,t,r.styleSheet,n,r.stylis),i||"function"!=typeof e.useLayoutEffect||e.useLayoutEffect(function(){return function(){a.removeStyles(o,r.styleSheet)}},[o,r.styleSheet]),i){var f=s+o,h="undefined"==typeof window?r.styleSheet.getTag().getGroup(b(f)):"";if(h){var d=pt(ke(h)>>>0),m="sc-global-".concat(s,"-").concat(o,"-").concat(d);return e.createElement("style",{key:m,"data-styled-global":s,precedence:"styled-components",href:m,children:h})}}return null};return e.memo(p)},css:gt,isStyledComponent:Xe,keyframes:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=st(gt.apply(void 0,f([e],t,!1))),o=ht(n);return new qe(o,n)},useTheme:function(){var t=!i&&e.useContext?e.useContext(it):void 0;if(!t)throw m(18);return t},version:o,withTheme:function(t){var r=e.forwardRef(function(r,n){var o=ut(r,e.useContext?e.useContext(it):void 0,t.defaultProps);return e.createElement(t,l(l({},r),{theme:o,ref:n}))});return r.displayName="WithTheme(".concat(Ue(t),")"),kt(r,t)}}),jt=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","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"]),Dt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ft=/(^-|-$)/g;function Mt(e){return e.replace(Dt,"-").replace(Ft,"")}function zt(e){return"string"==typeof e&&!0}function Gt(e,t,r){if(void 0===r&&(r=!1),!r&&!Qe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Gt(e[n],t[n]);else if(Qe(t))for(var n in t)e[n]=Gt(e[n],t[n]);return e}var Lt=ke(o),Bt=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&nt(e),this.componentId=t,this.baseHash=Ne(Lt,t),this.baseStyle=r,T.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=ot(n,this.staticRulesId);else{var o=st(rt(this.rules,e,t,r)),s=pt(Ne(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=ot(n,s),this.staticRulesId=s}else{for(var i=Ne(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=st(rt(l,e,t,r));i=Ne(i,f+u),c+=f}}if(c){var p=pt(i>>>0);if(!t.hasNameForId(this.componentId,p)){var h=r(c,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,h)}n=ot(n,p)}}return{className:n,css:"undefined"==typeof window?t.getTag().getGroup(b(this.componentId)):""}},e}(),Wt={};function Yt(t,r,n){var s=Xe(t),a=t,c=!zt(t),u=r.attrs,f=void 0===u?p:u,m=r.componentId,v=void 0===m?function(e,t){var r="string"!=typeof e?"sc":Mt(e);Wt[r]=(Wt[r]||0)+1;var n="".concat(r,"-").concat(ht(o+r+Wt[r]));return t?"".concat(t,"-").concat(n):n}(r.displayName,r.parentComponentId):m,g=r.displayName,y=void 0===g?function(e){return zt(e)?"styled.".concat(e):"Styled(".concat(Ue(e),")")}(t):g,S=r.displayName&&r.componentId?"".concat(Mt(r.displayName),"-").concat(r.componentId):r.componentId||v,b=s&&a.attrs?a.attrs.concat(f).filter(Boolean):f,w=r.shouldForwardProp;if(s&&a.shouldForwardProp){var C=a.shouldForwardProp;if(r.shouldForwardProp){var x=r.shouldForwardProp;w=function(e,t){return C(e,t)&&x(e,t)}}else w=C}var I=new Bt(n,S,s?a.componentStyle:void 0);function P(t,r){return function(t,r,n){var o=t.attrs,s=t.componentStyle,a=t.defaultProps,c=t.foldedComponentIds,u=t.styledComponentId,f=t.target,p=e.useContext?e.useContext(it):void 0,d=We(),m=t.shouldForwardProp||d.shouldForwardProp,v=ut(r,p,a)||h,g=function(e,t,r){for(var n,o=l(l({},t),{className:void 0,theme:r}),s=0;s<e.length;s+=1){var a=Ke(n=e[s])?n(o):n;for(var i in a)"className"===i?o.className=ot(o.className,a[i]):"style"===i?o.style=l(l({},o.style),a[i]):o[i]=a[i]}return"className"in t&&"string"==typeof t.className&&(o.className=ot(o.className,t.className)),o}(o,r,v),y=g.as||f,S={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?S.as=g.forwardedAs:m&&!m(b,y)||(S[b]=g[b]));var w=function(e,t){var r=We();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(s,g),C=w.className,x=w.css,I=ot(c,u);C&&(I+=" "+C),g.className&&(I+=" "+g.className),S[zt(y)&&!jt.has(y)?"class":"className"]=I,n&&(S.ref=n);var P=e.createElement(y,S);return i&&x?e.createElement(e.Fragment,null,e.createElement("style",{precedence:"styled-components",href:"sc-".concat(u,"-").concat(C),children:x}),P):P}(A,t,r)}P.displayName=y;var A=e.forwardRef(P);return A.attrs=b,A.componentStyle=I,A.displayName=y,A.shouldForwardProp=w,A.foldedComponentIds=s?ot(a.foldedComponentIds,a.styledComponentId):"",A.styledComponentId=S,A.target=s?a.target:t,Object.defineProperty(A,"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++)Gt(e,o[n],!0);return e}({},a.defaultProps,e):e}}),d(A,function(){return".".concat(A.styledComponentId)}),c&&kt(A,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),A}function qt(e,t,r){if(void 0===r&&(r=h),!t)throw m(1,t);var n=function(n){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return e(t,r,gt.apply(void 0,f([n],o,!1)))};return n.attrs=function(n){return qt(e,t,l(l({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return qt(e,t,l(l({},r),n))},n}new Set;var Ht=function(e){return qt(Yt,e)},Vt=Ht;for(var Ut in jt.forEach(function(e){Vt[e]=Ht(e)}),Tt)Vt[Ut]=Tt[Ut];return Vt});
|
|
1
|
+
!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.3.3",s="/*!sc*/\n",a="undefined"!=typeof window&&"undefined"!=typeof document,i=void 0===e.createContext,c=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),u={},l=function(){return l=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},l.apply(this,arguments)};function f(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))}"function"==typeof SuppressedError&&SuppressedError;var p=Object.freeze([]),h=Object.freeze({});function d(e,t){Object.defineProperty(e,"toString",{value:t})}function m(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 v=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 m(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}(),g=new Map,y=new Map,S=1,b=function(e){if(g.has(e))return g.get(e);for(;y.has(S);)S++;var t=S++;return g.set(e,t),y.set(t,e),t},w=function(e,t){S=t+1,g.set(e,t),y.set(t,e)},C="style[".concat(t,"][").concat(n,'="').concat(o,'"]'),x=new RegExp("^".concat(t,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),I=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)},P=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(x);if(u){var l=0|parseInt(u[1],10),f=u[2];0!==l&&(w(f,l),I(e,f,u[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(c)}}},A=function(e){for(var n=document.querySelectorAll(C),o=0,s=n.length;o<s;o++){var a=n[o];a&&a.getAttribute(t)!==r&&(P(e,a),a.parentNode&&a.parentNode.removeChild(a))}};function E(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var _=function(e){var s=document.head,a=e||s,i=document.createElement("style"),c=function(e){var r=Array.from(e.querySelectorAll("style[".concat(t,"]")));return r[r.length-1]}(a),u=void 0!==c?c.nextSibling:null;i.setAttribute(t,r),i.setAttribute(n,o);var l=E();return l&&i.setAttribute("nonce",l),a.insertBefore(i,u),i},R=function(){function e(e){this.element=_(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 m(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}(),$=function(){function e(e){this.element=_(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}(),N=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}(),k=a,O={isServer:!a,useCSSOMInjection:!c},T=function(){function e(e,r,n){void 0===e&&(e=h),void 0===r&&(r={});var o=this;this.options=l(l({},O),e),this.gs=r,this.names=new Map(n),this.server=!!e.isServer,!this.server&&a&&k&&(k=!1,A(this)),d(this,function(){return function(e){for(var r=e.getTag(),n=r.length,o="",a=function(n){var a=function(e){return y.get(e)}(n);if(void 0===a)return"continue";var i=e.names.get(a),c=r.getGroup(n);if(void 0===i||!i.size||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}(o)})}return e.registerId=function(e){return b(e)},e.prototype.rehydrate=function(){!this.server&&a&&A(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(l(l({},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 N(r):t?new R(r):new $(r)}(this.options),new v(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(b(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(b(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(b(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),j="-ms-",D="-moz-",F="-webkit-",M="comm",z="rule",G="decl",L="@keyframes",B=Math.abs,W=String.fromCharCode,Y=Object.assign;function q(e){return e.trim()}function H(e,t){return(e=t.exec(e))?e[0]:e}function V(e,t,r){return e.replace(t,r)}function U(e,t,r){return e.indexOf(t,r)}function J(e,t){return 0|e.charCodeAt(t)}function Z(e,t,r){return e.slice(t,r)}function K(e){return e.length}function Q(e){return e.length}function X(e,t){return t.push(e),e}function ee(e,t){return e.filter(function(e){return!H(e,t)})}var te=1,re=1,ne=0,oe=0,se=0,ae="";function ie(e,t,r,n,o,s,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:te,column:re,length:a,return:"",siblings:i}}function ce(e,t){return Y(ie("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ue(e){for(;e.root;)e=ce(e.root,{children:[e]});X(e,e.siblings)}function le(){return se=oe>0?J(ae,--oe):0,re--,10===se&&(re=1,te--),se}function fe(){return se=oe<ne?J(ae,oe++):0,re++,10===se&&(re=1,te++),se}function pe(){return J(ae,oe)}function he(){return oe}function de(e,t){return Z(ae,e,t)}function me(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 ve(e){return q(de(oe-1,Se(91===e?e+2:40===e?e+1:e)))}function ge(e){for(;(se=pe())&&se<33;)fe();return me(e)>2||me(se)>3?"":" "}function ye(e,t){for(;--t&&fe()&&!(se<48||se>102||se>57&&se<65||se>70&&se<97););return de(e,he()+(t<6&&32==pe()&&32==fe()))}function Se(e){for(;fe();)switch(se){case e:return oe;case 34:case 39:34!==e&&39!==e&&Se(se);break;case 40:41===e&&Se(e);break;case 92:fe()}return oe}function be(e,t){for(;fe()&&e+se!==57&&(e+se!==84||47!==pe()););return"/*"+de(t,oe-1)+"*"+W(47===e?e:fe())}function we(e){for(;!me(pe());)fe();return de(e,oe)}function Ce(e){return function(e){return ae="",e}(xe("",null,null,null,[""],e=function(e){return te=re=1,ne=K(ae=e),oe=0,[]}(e),0,[0],e))}function xe(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,x=S;v;)switch(d=y,y=fe()){case 40:if(108!=d&&58==J(x,f-1)){-1!=U(x+=V(ve(y),"&","&\f"),"&\f",B(u?i[u-1]:0))&&(g=-1);break}case 34:case 39:case 91:x+=ve(y);break;case 9:case 10:case 13:case 32:x+=ge(d);break;case 92:x+=ye(he()-1,7);continue;case 47:switch(pe()){case 42:case 47:X(Pe(be(fe(),he()),t,r,c),c),5!=me(d||1)&&5!=me(pe()||1)||!K(x)||" "===Z(x,-1,void 0)||(x+=" ");break;default:x+="/"}break;case 123*m:i[u++]=K(x)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+l:-1==g&&(x=V(x,/\f/g,"")),h>0&&(K(x)-f||0===m&&47===d)&&X(h>32?Ae(x+";",n,r,f-1,c):Ae(V(x," ","")+";",n,r,f-2,c),c);break;case 59:x+=";";default:if(X(C=Ie(x,t,r,u,l,o,i,S,b=[],w=[],f,s),s),123===y)if(0===l)xe(x,t,C,C,b,s,f,i,w);else{switch(p){case 99:if(110===J(x,3))break;case 108:if(97===J(x,2))break;default:l=0;case 100:case 109:case 115:}l?xe(e,C,C,n&&X(Ie(e,C,C,0,0,o,i,S,o,b=[],f,w),w),o,w,f,i,n?b:w):xe(x,C,C,C,[""],w,0,i,w)}}u=l=h=0,m=g=1,S=x="",f=a;break;case 58:f=1+K(x),h=d;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==le())continue;switch(x+=W(y),y*m){case 38:g=l>0?1:(x+="\f",-1);break;case 44:i[u++]=(K(x)-1)*g,g=1;break;case 64:45===pe()&&(x+=ve(fe())),p=pe(),l=f=K(S=x+=we(he())),y++;break;case 45:45===d&&2==K(x)&&(m=0)}}return s}function Ie(e,t,r,n,o,s,a,i,c,u,l,f){for(var p=o-1,h=0===o?s:[""],d=Q(h),m=0,v=0,g=0;m<n;++m)for(var y=0,S=Z(e,p+1,p=B(v=a[m])),b=e;y<d;++y)(b=q(v>0?h[y]+" "+S:V(S,/&\f/g,h[y])))&&(c[g++]=b);return ie(e,t,r,0===o?z:i,c,u,l,f)}function Pe(e,t,r,n){return ie(e,t,r,M,W(se),Z(e,2,-2),0,n)}function Ae(e,t,r,n,o){return ie(e,t,r,G,Z(e,0,n),Z(e,n+1,-1),n,o)}function Ee(e,t,r){switch(function(e,t){return 45^J(e,0)?(((t<<2^J(e,0))<<2^J(e,1))<<2^J(e,2))<<2^J(e,3):0}(e,t)){case 5103:return F+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return F+e+e;case 4855:return F+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return D+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+D+e+j+e+e;case 5936:switch(J(e,t+11)){case 114:return F+e+j+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+j+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+j+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return F+e+j+e+e;case 6165:return F+e+j+"flex-"+e+e;case 5187:return F+e+V(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+j+"flex-$1$2")+e;case 5443:return F+e+j+"flex-item-"+V(e,/flex-|-self/g,"")+(H(e,/flex-|baseline/)?"":j+"grid-row-"+V(e,/flex-|-self/g,""))+e;case 4675:return F+e+j+"flex-line-pack"+V(e,/align-content|flex-|-self/g,"")+e;case 5548:return F+e+j+V(e,"shrink","negative")+e;case 5292:return F+e+j+V(e,"basis","preferred-size")+e;case 6060:return F+"box-"+V(e,"-grow","")+F+e+j+V(e,"grow","positive")+e;case 4554:return F+V(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return V(V(V(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return V(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return V(V(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+j+"flex-pack:$3"),/space-between/,"justify")+F+e+e;case 4200:if(!H(e,/flex-|baseline/))return j+"grid-column-align"+Z(e,t)+e;break;case 2592:case 3360:return j+V(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,H(e.props,/grid-\w+-end/)})?~U(e+(r=r[t].value),"span",0)?e:j+V(e,"-start","")+e+j+"grid-row-span:"+(~U(r,"span",0)?H(r,/\d+/):+H(r,/\d+/)-+H(e,/\d+/))+";":j+V(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return H(e.props,/grid-\w+-start/)})?e:j+V(V(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return V(e,/(.+)-inline(.+)/,F+"$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(K(e)-1-t>6)switch(J(e,t+1)){case 109:if(45!==J(e,t+4))break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+D+(108==J(e,t+3)?"$3":"$2-$3"))+e;case 115:return~U(e,"stretch",0)?Ee(V(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return V(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,o,s,a,i){return j+r+":"+n+i+(o?j+r+"-span:"+(s?a:+a-+n)+i:"")+e});case 4949:if(121===J(e,t+6))return V(e,":",":"+F)+e;break;case 6444:switch(J(e,45===J(e,14)?18:11)){case 120:return V(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+F+(45===J(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+j+"$2box$3")+e;case 100:return V(e,":",":"+j)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return V(e,"scroll-","scroll-snap-")+e}return e}function _e(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Re(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case G:return e.return=e.return||e.value;case M:return"";case L:return e.return=e.value+"{"+_e(e.children,n)+"}";case z:if(!K(e.value=e.props.join(",")))return""}return K(r=_e(e.children,n))?e.return=e.value+"{"+r+"}":""}function $e(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case G:return void(e.return=Ee(e.value,e.length,r));case L:return _e([ce(e,{value:V(e.value,"@","@"+F)})],n);case z:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(H(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ue(ce(e,{props:[V(t,/:(read-\w+)/,":-moz-$1")]})),ue(ce(e,{props:[t]})),Y(e,{props:ee(r,n)});break;case"::placeholder":ue(ce(e,{props:[V(t,/:(plac\w+)/,":"+F+"input-$1")]})),ue(ce(e,{props:[V(t,/:(plac\w+)/,":-moz-$1")]})),ue(ce(e,{props:[V(t,/:(plac\w+)/,j+"input-$1")]})),ue(ce(e,{props:[t]})),Y(e,{props:ee(r,n)})}return""})}}var Ne=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ke=function(e){return Ne(5381,e)},Oe=/&/g,Te=/^\s*\/\/.*$/gm;function je(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=je(e.children,t)),e})}function De(e){var t,r,n,o=void 0===e?h:e,s=o.options,a=void 0===s?h:s,i=o.plugins,c=void 0===i?p:i,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},l=c.slice();l.push(function(e){e.type===z&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Oe,r).replace(n,u))}),a.prefix&&l.push($e),l.push(Re);var f=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(Te,""),u=Ce(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);a.namespace&&(u=je(u,a.namespace));var f=[];return _e(u,function(e){var t=Q(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.concat(function(e){e.root||(e=e.return)&&f.push(e)}))),f};return f.hash=c.length?c.reduce(function(e,t){return t.name||m(15),Ne(e,t.name)},5381).toString():"",f}var Fe=new T,Me=De(),ze={shouldForwardProp:void 0,styleSheet:Fe,stylis:Me},Ge=i?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(ze)}}:e.createContext(ze),Le=Ge.Consumer,Be=i?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:e.createContext(void 0);function We(){return!i&&e.useContext?e.useContext(Ge):ze}function Ye(t){if(i||!e.useMemo)return t.children;var r=We().styleSheet,n=e.useMemo(function(){var e=r;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,r]),o=e.useMemo(function(){return De({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:t.stylisPlugins})},[t.enableVendorPrefixes,t.namespace,t.stylisPlugins]),s=e.useMemo(function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:n,stylis:o}},[t.shouldForwardProp,n,o]);return e.createElement(Ge.Provider,{value:s},e.createElement(Be.Provider,{value:o},t.children))}var qe=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Me);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,d(this,function(){throw m(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Me),this.name+e.hash},e}(),He={animationIterationCount:1,aspectRatio: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,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 Ve(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in He||e.startsWith("--")?String(t).trim():"".concat(t,"px")}function Ue(e){return e.displayName||e.name||"Component"}var Je=function(e){return e>="A"&&e<="Z"};function Ze(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Je(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}function Ke(e){return"function"==typeof e}function Qe(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Xe(e){return"object"==typeof e&&"styledComponentId"in e}var et=function(e){return null==e||!1===e||""===e},tt=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!et(n)&&(Array.isArray(n)&&n.isCss||Ke(n)?t.push("".concat(Ze(r),":"),n,";"):Qe(n)?t.push.apply(t,f(f(["".concat(r," {")],tt(n),!1),["}"],!1)):t.push("".concat(Ze(r),": ").concat(Ve(r,n),";")))}return t};function rt(e,t,r,n){return et(e)?[]:Xe(e)?[".".concat(e.styledComponentId)]:Ke(e)?!Ke(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:rt(e(t),t,r,n):e instanceof qe?r?(e.inject(r,n),[e.getName(n)]):[e]:Qe(e)?tt(e):Array.isArray(e)?Array.prototype.concat.apply(p,e.map(function(e){return rt(e,t,r,n)})):[e.toString()];var o}function nt(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ke(r)&&!Xe(r))return!1}return!0}function ot(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function st(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 at=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=nt(e),T.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(st(rt(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&&T.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}(),it=i?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:e.createContext(void 0),ct=it.Consumer;function ut(e,t,r){return void 0===r&&(r=h),e.theme!==r.theme&&e.theme||t||r.theme}var lt=/(a)(d)/gi,ft=function(e){return String.fromCharCode(e+(e>25?39:97))};function pt(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=ft(t%52)+r;return(ft(t%52)+r).replace(lt,"$1-$2")}function ht(e){return pt(ke(e)>>>0)}function dt(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 mt,vt=function(e){return Object.assign(e,{isCss:!0})};function gt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ke(e)||Qe(e))return vt(rt(dt(p,f([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?rt(n):vt(rt(dt(n,t)))}var yt="function"==typeof Symbol&&Symbol.for,St=yt?Symbol.for("react.memo"):60115,bt=yt?Symbol.for("react.forward_ref"):60112,wt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ct={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},It=((mt={})[bt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},mt[St]=xt,mt);function Pt(e){return("type"in(t=e)&&t.type.$$typeof)===St?xt:"$$typeof"in e?It[e.$$typeof]:wt;var t}var At=Object.defineProperty,Et=Object.getOwnPropertyNames,_t=Object.getOwnPropertySymbols,Rt=Object.getOwnPropertyDescriptor,$t=Object.getPrototypeOf,Nt=Object.prototype;function kt(e,t,r){if("string"!=typeof t){if(Nt){var n=$t(t);n&&n!==Nt&&kt(e,n,r)}var o=Et(t);_t&&(o=o.concat(_t(t)));for(var s=Pt(e),a=Pt(t),i=0;i<o.length;++i){var c=o[i];if(!(c in Ct||r&&r[c]||a&&c in a||s&&c in s)){var u=Rt(t,c);try{At(e,c,u)}catch(e){}}}}return e}var Ot=function(){function r(){var r=this;this._emitSheetCSS=function(){var e=r.instance.toString();if(!e)return"";var s=E(),a=st([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 m(2);return r._emitSheetCSS()},this.getStyleElement=function(){var s;if(r.sealed)throw m(2);var a=r.instance.toString();if(!a)return[];var i=((s={})[t]="",s[n]=o,s.dangerouslySetInnerHTML={__html:a},s),c=E();return c&&(i.nonce=c),[e.createElement("style",l({},i,{key:"sc-0-0"}))]},this.seal=function(){r.sealed=!0},this.instance=new T({isServer:!0}),this.sealed=!1}return r.prototype.collectStyles=function(t){if(this.sealed)throw m(2);return e.createElement(Ye,{sheet:this.instance},t)},r.prototype.interleaveWithNodeStream=function(e){throw m(3)},r}(),Tt=/*#__PURE__*/Object.freeze({__proto__:null,ServerStyleSheet:Ot,StyleSheetConsumer:Le,StyleSheetContext:Ge,StyleSheetManager:Ye,ThemeConsumer:ct,ThemeContext:it,ThemeProvider:function(t){if(i||!e.useContext||!e.useMemo)return t.children;var r=e.useContext(it),n=e.useMemo(function(){return function(e,t){if(!e)throw m(14);if(Ke(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw m(8);return t?l(l({},t),e):e}(t.theme,r)},[t.theme,r]);return t.children?e.createElement(it.Provider,{value:n},t.children):null},__PRIVATE__:{StyleSheet:T,mainSheet:Fe},createGlobalStyle:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=gt.apply(void 0,f([t],r,!1)),s="sc-global-".concat(ht(JSON.stringify(o))),a=new at(o,s),c=new WeakMap,p=function(t){var r=We(),n=e.useContext?e.useContext(it):void 0,o=c.get(r.styleSheet);if(void 0===o&&(o=r.styleSheet.allocateGSInstance(s),c.set(r.styleSheet,o)),("undefined"==typeof window||!r.styleSheet.server)&&function(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,u,r,o);else{var s=l(l({},t),{theme:ut(t,n,p.defaultProps)});a.renderStyles(e,s,r,o)}}(o,t,r.styleSheet,n,r.stylis),i||"function"!=typeof e.useLayoutEffect||e.useLayoutEffect(function(){return function(){a.removeStyles(o,r.styleSheet)}},[o,r.styleSheet]),i){var f=s+o,h="undefined"==typeof window?r.styleSheet.getTag().getGroup(b(f)):"";if(h){var d=pt(ke(h)>>>0),m="sc-global-".concat(s,"-").concat(o,"-").concat(d);return e.createElement("style",{key:m,"data-styled-global":s,precedence:"styled-components",href:m,children:h})}}return null};return e.memo(p)},css:gt,isStyledComponent:Xe,keyframes:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=st(gt.apply(void 0,f([e],t,!1))),o=ht(n);return new qe(o,n)},useTheme:function(){var t=!i&&e.useContext?e.useContext(it):void 0;if(!t)throw m(18);return t},version:o,withTheme:function(t){var r=e.forwardRef(function(r,n){var o=ut(r,e.useContext?e.useContext(it):void 0,t.defaultProps);return e.createElement(t,l(l({},r),{theme:o,ref:n}))});return r.displayName="WithTheme(".concat(Ue(t),")"),kt(r,t)}}),jt=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","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"]),Dt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ft=/(^-|-$)/g;function Mt(e){return e.replace(Dt,"-").replace(Ft,"")}function zt(e){return"string"==typeof e&&!0}function Gt(e,t,r){if(void 0===r&&(r=!1),!r&&!Qe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Gt(e[n],t[n]);else if(Qe(t))for(var n in t)e[n]=Gt(e[n],t[n]);return e}var Lt=ke(o),Bt=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&nt(e),this.componentId=t,this.baseHash=Ne(Lt,t),this.baseStyle=r,T.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=ot(n,this.staticRulesId);else{var o=st(rt(this.rules,e,t,r)),s=pt(Ne(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=ot(n,s),this.staticRulesId=s}else{for(var i=Ne(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=st(rt(l,e,t,r));i=Ne(i,f+u),c+=f}}if(c){var p=pt(i>>>0);if(!t.hasNameForId(this.componentId,p)){var h=r(c,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,h)}n=ot(n,p)}}return{className:n,css:"undefined"==typeof window?t.getTag().getGroup(b(this.componentId)):""}},e}(),Wt={};function Yt(t,r,n){var s=Xe(t),a=t,c=!zt(t),u=r.attrs,f=void 0===u?p:u,m=r.componentId,v=void 0===m?function(e,t){var r="string"!=typeof e?"sc":Mt(e);Wt[r]=(Wt[r]||0)+1;var n="".concat(r,"-").concat(ht(o+r+Wt[r]));return t?"".concat(t,"-").concat(n):n}(r.displayName,r.parentComponentId):m,g=r.displayName,y=void 0===g?function(e){return zt(e)?"styled.".concat(e):"Styled(".concat(Ue(e),")")}(t):g,S=r.displayName&&r.componentId?"".concat(Mt(r.displayName),"-").concat(r.componentId):r.componentId||v,b=s&&a.attrs?a.attrs.concat(f).filter(Boolean):f,w=r.shouldForwardProp;if(s&&a.shouldForwardProp){var C=a.shouldForwardProp;if(r.shouldForwardProp){var x=r.shouldForwardProp;w=function(e,t){return C(e,t)&&x(e,t)}}else w=C}var I=new Bt(n,S,s?a.componentStyle:void 0);function P(t,r){return function(t,r,n){var o=t.attrs,s=t.componentStyle,a=t.defaultProps,c=t.foldedComponentIds,u=t.styledComponentId,f=t.target,p=e.useContext?e.useContext(it):void 0,d=We(),m=t.shouldForwardProp||d.shouldForwardProp,v=ut(r,p,a)||h,g=function(e,t,r){for(var n,o=l(l({},t),{className:void 0,theme:r}),s=0;s<e.length;s+=1){var a=Ke(n=e[s])?n(o):n;for(var i in a)"className"===i?o.className=ot(o.className,a[i]):"style"===i?o.style=l(l({},o.style),a[i]):o[i]=a[i]}return"className"in t&&"string"==typeof t.className&&(o.className=ot(o.className,t.className)),o}(o,r,v),y=g.as||f,S={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?S.as=g.forwardedAs:m&&!m(b,y)||(S[b]=g[b]));var w=function(e,t){var r=We();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(s,g),C=w.className,x=w.css,I=ot(c,u);C&&(I+=" "+C),g.className&&(I+=" "+g.className),S[zt(y)&&!jt.has(y)?"class":"className"]=I,n&&(S.ref=n);var P=e.createElement(y,S);return i&&x?e.createElement(e.Fragment,null,e.createElement("style",{precedence:"styled-components",href:"sc-".concat(u,"-").concat(C),children:x}),P):P}(A,t,r)}P.displayName=y;var A=e.forwardRef(P);return A.attrs=b,A.componentStyle=I,A.displayName=y,A.shouldForwardProp=w,A.foldedComponentIds=s?ot(a.foldedComponentIds,a.styledComponentId):"",A.styledComponentId=S,A.target=s?a.target:t,Object.defineProperty(A,"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++)Gt(e,o[n],!0);return e}({},a.defaultProps,e):e}}),d(A,function(){return".".concat(A.styledComponentId)}),c&&kt(A,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),A}function qt(e,t,r){if(void 0===r&&(r=h),!t)throw m(1,t);var n=function(n){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return e(t,r,gt.apply(void 0,f([n],o,!1)))};return n.attrs=function(n){return qt(e,t,l(l({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return qt(e,t,l(l({},r),n))},n}new Set;var Ht=function(e){return qt(Yt,e)},Vt=Ht;for(var Ut in jt.forEach(function(e){Vt[e]=Ht(e)}),Tt)Vt[Ut]=Tt[Ut];return Vt});
|
|
2
2
|
//# sourceMappingURL=styled-components.min.js.map
|
|
@@ -16,4 +16,4 @@ type RNComponents = {
|
|
|
16
16
|
declare const styled: typeof baseStyled & { [E in KnownComponents]: Styled<"native", RNComponents[E], React.ComponentProps<RNComponents[E]>>; };
|
|
17
17
|
declare const toStyleSheet: (rules: RuleSet<object>) => import("css-to-react-native").Style;
|
|
18
18
|
export { CSSKeyframes, CSSObject, CSSProperties, CSSPseudos, DefaultTheme, ExecutionContext, ExecutionProps, IStyledComponent, IStyledComponentFactory, IStyledStatics, NativeTarget, PolymorphicComponent, PolymorphicComponentProps, Runtime, StyledObject, StyledOptions, } from '../types';
|
|
19
|
-
export {
|
|
19
|
+
export { css, styled as default, isStyledComponent, styled, ThemeConsumer, ThemeContext, ThemeProvider, toStyleSheet, useTheme, withTheme, };
|
|
@@ -16,4 +16,4 @@ type RNComponents = {
|
|
|
16
16
|
declare const styled: typeof baseStyled & { [E in KnownComponents]: Styled<"native", RNComponents[E], React.ComponentProps<RNComponents[E]>>; };
|
|
17
17
|
declare const toStyleSheet: (rules: RuleSet<object>) => import("css-to-react-native").Style;
|
|
18
18
|
export { CSSKeyframes, CSSObject, CSSProperties, CSSPseudos, DefaultTheme, ExecutionContext, ExecutionProps, IStyledComponent, IStyledComponentFactory, IStyledStatics, NativeTarget, PolymorphicComponent, PolymorphicComponentProps, Runtime, StyledObject, StyledOptions, } from '../types';
|
|
19
|
-
export {
|
|
19
|
+
export { css, styled as default, isStyledComponent, styled, ThemeConsumer, ThemeContext, ThemeProvider, toStyleSheet, useTheme, withTheme, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("css-to-react-native"),t=require("postcss"),n=require("tslib"),r=require("react"),o=require("stylis"),i=require("@emotion/unitless");function s(e){return e&&e.__esModule?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var c=/*#__PURE__*/s(e),u=/*#__PURE__*/s(r),l=/*#__PURE__*/a(o),p=/*#__PURE__*/s(i),f=Object.freeze([]),d=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",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function y(){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 v(e){for(var t=[],r=1;r<arguments.length;r++)t[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(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(y.apply(void 0,n.__spreadArray([h[e]],t,!1)).trim())}function m(e,t){Object.defineProperty(e,"toString",{value:t})}var g="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",S="active",_="data-styled-version",w="6.3.2",b="/*!sc*/\n",E="undefined"!=typeof window&&"undefined"!=typeof document,P=void 0===u.default.createContext,A=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),C=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 v(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(b);return t},e}(),N=1<<30,T=new Map,O=new Map,x=1,D=function(e){if(T.has(e))return T.get(e);for(;O.has(x);)x++;var t=x++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>N))throw v(16,"".concat(t));return T.set(e,t),O.set(t,e),t},j=function(e,t){x=t+1,T.set(e,t),O.set(t,e)},R="style[".concat(g,"][").concat(_,'="').concat(w,'"]'),I=new RegExp("^".concat(g,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),z=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)},B=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(b),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var c=a.match(I);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(j(l,u),z(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},L=function(e){for(var t=document.querySelectorAll(R),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(g)!==S&&(B(e,o),o.parentNode&&o.parentNode.removeChild(o))}},M=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(g,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(g,S),r.setAttribute(_,w);var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},V=function(){function e(e){this.element=M(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 v(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}(),k=function(){function e(e){this.element=M(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}(),$=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}(),F=E,q={isServer:!E,useCSSOMInjection:!A},Y=function(){function e(e,t,r){void 0===e&&(e=d),void 0===t&&(t={});var o=this;this.options=n.__assign(n.__assign({},q),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&E&&F&&(F=!1,L(this)),m(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return O.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),s=t.getGroup(n);if(void 0===i||!i.size||0===s.length)return"continue";var a="".concat(g,".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(b)},i=0;i<n;i++)o(i);return r}(o)})}return e.registerId=function(e){return D(e)},e.prototype.rehydrate=function(){!this.server&&E&&L(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(n.__assign(n.__assign({},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,n=e.target;return e.isServer?new $(n):t?new V(n):new k(n)}(this.options),new C(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(D(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(D(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(D(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),G=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},W=/&/g,H=/^\s*\/\/.*$/gm;function U(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=U(e.children,t)),e})}var K=new Y,Z=function(){var e,t,n,r=d.options,o=void 0===r?d:r,i=d.plugins,s=void 0===i?f:i,a=function(n,r,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):n},c=s.slice();c.push(function(e){e.type===l.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(W,t).replace(n,a))}),o.prefix&&c.push(l.prefixer),c.push(l.stringify);var u=function(r,i,s,a){void 0===i&&(i=""),void 0===s&&(s=""),void 0===a&&(a="&"),e=a,t=i,n=new RegExp("\\".concat(t,"\\b"),"g");var u=r.replace(H,""),p=l.compile(s||i?"".concat(s," ").concat(i," { ").concat(u," }"):u);o.namespace&&(p=U(p,o.namespace));var f=[];return l.serialize(p,l.middleware(c.concat(l.rulesheet(function(e){return f.push(e)})))),f};return u.hash=s.length?s.reduce(function(e,t){return t.name||v(15),G(e,t.name)},5381).toString():"",u}(),J=(P||u.default.createContext({shouldForwardProp:void 0,styleSheet:K,stylis:Z}),P||u.default.createContext(void 0),function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Z);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,m(this,function(){throw v(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Z),this.name+e.hash},e}());function Q(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in p.default||e.startsWith("--")?String(t).trim():"".concat(t,"px")}function X(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}var ee=function(e){return e>="A"&&e<="Z"};function te(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;ee(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}function ne(e){return"function"==typeof e}function re(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function oe(e){return"object"==typeof e&&"styledComponentId"in e}var ie=function(e){return null==e||!1===e||""===e},se=function(e){var t=[];for(var r in e){var o=e[r];e.hasOwnProperty(r)&&!ie(o)&&(Array.isArray(o)&&o.isCss||ne(o)?t.push("".concat(te(r),":"),o,";"):re(o)?t.push.apply(t,n.__spreadArray(n.__spreadArray(["".concat(r," {")],se(o),!1),["}"],!1)):t.push("".concat(te(r),": ").concat(Q(r,o),";")))}return t};function ae(e,t,n,r){if(ie(e))return[];if(oe(e))return[".".concat(e.styledComponentId)];if(ne(e)){if(!ne(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 J||re(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.")),ae(o,t,n,r)}var i;return e instanceof J?n?(e.inject(n,r),[e.getName(r)]):[e]:re(e)?se(e):Array.isArray(e)?Array.prototype.concat.apply(f,e.map(function(e){return ae(e,t,n,r)})):[e.toString()]}function ce(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 ue=function(e){return Object.assign(e,{isCss:!0})};function le(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(ne(e)||re(e))return ue(ae(ce(f,n.__spreadArray([e],t,!0))));var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?ae(o):ue(ae(ce(o,t)))}function pe(e,t,r){if(void 0===r&&(r=d),!t)throw v(1,t);var o=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,r,le.apply(void 0,n.__spreadArray([o],i,!1)))};return o.attrs=function(o){return pe(e,t,n.__assign(n.__assign({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return pe(e,t,n.__assign(n.__assign({},r),o))},o}var fe,de=P?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:u.default.createContext(void 0),he=de.Consumer;function ye(e,t,n){return void 0===n&&(n=d),e.theme!==n.theme&&e.theme||t||n.theme}var ve="function"==typeof Symbol&&Symbol.for,me=ve?Symbol.for("react.memo"):60115,ge=ve?Symbol.for("react.forward_ref"):60112,Se={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_e={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},we={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},be=((fe={})[ge]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fe[me]=we,fe);function Ee(e){return("type"in(t=e)&&t.type.$$typeof)===me?we:"$$typeof"in e?be[e.$$typeof]:Se;var t}var Pe=Object.defineProperty,Ae=Object.getOwnPropertyNames,Ce=Object.getOwnPropertySymbols,Ne=Object.getOwnPropertyDescriptor,Te=Object.getPrototypeOf,Oe=Object.prototype;function xe(e,t,n){if("string"!=typeof t){if(Oe){var r=Te(t);r&&r!==Oe&&xe(e,r,n)}var o=Ae(t);Ce&&(o=o.concat(Ce(t)));for(var i=Ee(e),s=Ee(t),a=0;a<o.length;++a){var c=o[a];if(!(c in _e||n&&n[c]||s&&c in s||i&&c in i)){var u=Ne(t,c);try{Pe(e,c,u)}catch(e){}}}}return e}var De=/(a)(d)/gi,je=function(e){return String.fromCharCode(e+(e>25?39:97))};function Re(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}var Ie=["fit-content","min-content","max-content"],ze={};function Be(e,t,n){if(void 0===n&&(n=!1),!n&&!re(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Be(e[r],t[r]);else if(re(t))for(var r in t)e[r]=Be(e[r],t[r]);return e}var Le,Me,Ve=require("react-native"),ke=(Le=Ve.StyleSheet,Me=function(){function e(e){this.rules=e}return e.prototype.generateStyleObject=function(e){var n=Re(ae(this.rules,e)),r=function(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=je(t%52)+n;return(je(t%52)+n).replace(De,"$1-$2")}(G(5381,n)>>>0);if(!ze[r]){var o=t.parse(n),i=[];o.each(function(e){if("decl"===e.type){if(Ie.includes(e.value))return void("production"!==process.env.NODE_ENV&&console.warn('[styled-components/native] The value "'.concat(e.value,'" for property "').concat(e.prop,'" is not supported in React Native and will be ignored.')));i.push([e.prop,e.value])}else"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var s=c.default(i,["borderWidth","borderColor"]),a=Le.create({generated:s});ze[r]=a.generated}return ze[r]},e}(),function(e,t,o){var i=oe(e),s=e,a=t.displayName,c=void 0===a?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(X(e),")")}(e):a,l=t.attrs,p=void 0===l?f:l,h=i&&s.attrs?s.attrs.concat(p).filter(Boolean):p,y=t.shouldForwardProp;if(i&&s.shouldForwardProp){var v=s.shouldForwardProp;if(t.shouldForwardProp){var m=t.shouldForwardProp;y=function(e,t){return v(e,t)&&m(e,t)}}else y=v}var g=function(e,t){return function(e,t,o){var i=e.attrs,s=e.inlineStyle,a=e.defaultProps,c=e.shouldForwardProp,l=e.target,p=u.default.useContext?u.default.useContext(de):void 0,f=function(e,t,r){void 0===e&&(e=d);var o=n.__assign(n.__assign({},t),{theme:e}),i={};return r.forEach(function(e){var t,n=ne(e)?e(o):e;for(t in n)o[t]=i[t]=n[t]}),[o,i]}(ye(t,p,a)||d,t,i),h=f[1],y=s.generateStyleObject(f[0]),v=o,m=h.as||t.as||l,g=h!==t?n.__assign(n.__assign({},t),h):t,S={};for(var _ in g)"$"!==_[0]&&"as"!==_&&("forwardedAs"===_?S.as=g[_]:c&&!c(_,m)||(S[_]=g[_]));return S.style=u.default.useMemo?u.default.useMemo(function(){return ne(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y},[t.style,y]):ne(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y,o&&(S.ref=v),r.createElement(m,S)}(S,e,t)};g.displayName=c;var S=u.default.forwardRef(g);return S.attrs=h,S.inlineStyle=new Me(i?s.inlineStyle.rules.concat(o):o),S.displayName=c,S.shouldForwardProp=y,S.styledComponentId=!0,S.target=i?s.target:e,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++)Be(e,o[r],!0);return e}({},s.defaultProps,e):e}}),xe(S,e,{attrs:!0,inlineStyle:!0,displayName:!0,shouldForwardProp:!0,target:!0}),S}),$e=function(e){return pe(ke,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($e,e,{enumerable:!0,configurable:!1,get:function(){if(e in Ve&&Ve[e])return $e(Ve[e]);throw new Error("".concat(e," is not available in the currently-installed version of react-native"))}})}),exports.ThemeConsumer=he,exports.ThemeContext=de,exports.ThemeProvider=function(e){if(P||!u.default.useContext||!u.default.useMemo)return e.children;var t=u.default.useContext(de),r=u.default.useMemo(function(){return function(e,t){if(!e)throw v(14);if(ne(e)){var r=e(t);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw v(7);return r}if(Array.isArray(e)||"object"!=typeof e)throw v(8);return t?n.__assign(n.__assign({},t),e):e}(e.theme,t)},[e.theme,t]);return e.children?u.default.createElement(de.Provider,{value:r},e.children):null},exports.css=le,exports.default=$e,exports.isStyledComponent=oe,exports.styled=$e,exports.toStyleSheet=function(e){var n=Re(ae(e)),r=t.parse(n),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=c.default(o,["borderWidth","borderColor"]);return Ve.StyleSheet.create({style:i}).style},exports.useTheme=function(){var e=!P&&u.default.useContext?u.default.useContext(de):void 0;if(!e)throw v(18);return e},exports.withTheme=function(e){var t=u.default.forwardRef(function(t,r){var o=ye(t,u.default.useContext?u.default.useContext(de):void 0,e.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(e),'"')),u.default.createElement(e,n.__assign(n.__assign({},t),{theme:o,ref:r}))});return t.displayName="WithTheme(".concat(X(e),")"),xe(t,e)};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("css-to-react-native"),t=require("postcss"),n=require("tslib"),r=require("react"),o=require("stylis"),i=require("@emotion/unitless");function s(e){return e&&e.__esModule?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var c=/*#__PURE__*/s(e),u=/*#__PURE__*/s(r),l=/*#__PURE__*/a(o),p=/*#__PURE__*/s(i),f=Object.freeze([]),d=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",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function y(){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 v(e){for(var t=[],r=1;r<arguments.length;r++)t[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(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(y.apply(void 0,n.__spreadArray([h[e]],t,!1)).trim())}function m(e,t){Object.defineProperty(e,"toString",{value:t})}var g="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",S="active",_="data-styled-version",w="6.3.3",b="/*!sc*/\n",E="undefined"!=typeof window&&"undefined"!=typeof document,P=void 0===u.default.createContext,A=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),C=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 v(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(b);return t},e}(),N=1<<30,T=new Map,O=new Map,x=1,D=function(e){if(T.has(e))return T.get(e);for(;O.has(x);)x++;var t=x++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>N))throw v(16,"".concat(t));return T.set(e,t),O.set(t,e),t},j=function(e,t){x=t+1,T.set(e,t),O.set(t,e)},R="style[".concat(g,"][").concat(_,'="').concat(w,'"]'),I=new RegExp("^".concat(g,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),z=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)},B=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(b),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var c=a.match(I);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(j(l,u),z(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},L=function(e){for(var t=document.querySelectorAll(R),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(g)!==S&&(B(e,o),o.parentNode&&o.parentNode.removeChild(o))}},M=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(g,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(g,S),r.setAttribute(_,w);var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},V=function(){function e(e){this.element=M(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 v(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}(),k=function(){function e(e){this.element=M(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}(),$=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}(),F=E,q={isServer:!E,useCSSOMInjection:!A},Y=function(){function e(e,t,r){void 0===e&&(e=d),void 0===t&&(t={});var o=this;this.options=n.__assign(n.__assign({},q),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&E&&F&&(F=!1,L(this)),m(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return O.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),s=t.getGroup(n);if(void 0===i||!i.size||0===s.length)return"continue";var a="".concat(g,".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(b)},i=0;i<n;i++)o(i);return r}(o)})}return e.registerId=function(e){return D(e)},e.prototype.rehydrate=function(){!this.server&&E&&L(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(n.__assign(n.__assign({},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,n=e.target;return e.isServer?new $(n):t?new V(n):new k(n)}(this.options),new C(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(D(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(D(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(D(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),G=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},W=/&/g,H=/^\s*\/\/.*$/gm;function U(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=U(e.children,t)),e})}var K=new Y,Z=function(){var e,t,n,r=d.options,o=void 0===r?d:r,i=d.plugins,s=void 0===i?f:i,a=function(n,r,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):n},c=s.slice();c.push(function(e){e.type===l.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(W,t).replace(n,a))}),o.prefix&&c.push(l.prefixer),c.push(l.stringify);var u=function(r,i,s,a){void 0===i&&(i=""),void 0===s&&(s=""),void 0===a&&(a="&"),e=a,t=i,n=new RegExp("\\".concat(t,"\\b"),"g");var u=r.replace(H,""),p=l.compile(s||i?"".concat(s," ").concat(i," { ").concat(u," }"):u);o.namespace&&(p=U(p,o.namespace));var f=[];return l.serialize(p,l.middleware(c.concat(l.rulesheet(function(e){return f.push(e)})))),f};return u.hash=s.length?s.reduce(function(e,t){return t.name||v(15),G(e,t.name)},5381).toString():"",u}(),J=(P||u.default.createContext({shouldForwardProp:void 0,styleSheet:K,stylis:Z}),P||u.default.createContext(void 0),function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Z);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,m(this,function(){throw v(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Z),this.name+e.hash},e}());function Q(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in p.default||e.startsWith("--")?String(t).trim():"".concat(t,"px")}function X(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}var ee=function(e){return e>="A"&&e<="Z"};function te(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;ee(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}function ne(e){return"function"==typeof e}function re(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function oe(e){return"object"==typeof e&&"styledComponentId"in e}var ie=function(e){return null==e||!1===e||""===e},se=function(e){var t=[];for(var r in e){var o=e[r];e.hasOwnProperty(r)&&!ie(o)&&(Array.isArray(o)&&o.isCss||ne(o)?t.push("".concat(te(r),":"),o,";"):re(o)?t.push.apply(t,n.__spreadArray(n.__spreadArray(["".concat(r," {")],se(o),!1),["}"],!1)):t.push("".concat(te(r),": ").concat(Q(r,o),";")))}return t};function ae(e,t,n,r){if(ie(e))return[];if(oe(e))return[".".concat(e.styledComponentId)];if(ne(e)){if(!ne(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 J||re(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.")),ae(o,t,n,r)}var i;return e instanceof J?n?(e.inject(n,r),[e.getName(r)]):[e]:re(e)?se(e):Array.isArray(e)?Array.prototype.concat.apply(f,e.map(function(e){return ae(e,t,n,r)})):[e.toString()]}function ce(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 ue=function(e){return Object.assign(e,{isCss:!0})};function le(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(ne(e)||re(e))return ue(ae(ce(f,n.__spreadArray([e],t,!0))));var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?ae(o):ue(ae(ce(o,t)))}function pe(e,t,r){if(void 0===r&&(r=d),!t)throw v(1,t);var o=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,r,le.apply(void 0,n.__spreadArray([o],i,!1)))};return o.attrs=function(o){return pe(e,t,n.__assign(n.__assign({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return pe(e,t,n.__assign(n.__assign({},r),o))},o}var fe,de=P?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:u.default.createContext(void 0),he=de.Consumer;function ye(e,t,n){return void 0===n&&(n=d),e.theme!==n.theme&&e.theme||t||n.theme}var ve="function"==typeof Symbol&&Symbol.for,me=ve?Symbol.for("react.memo"):60115,ge=ve?Symbol.for("react.forward_ref"):60112,Se={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_e={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},we={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},be=((fe={})[ge]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fe[me]=we,fe);function Ee(e){return("type"in(t=e)&&t.type.$$typeof)===me?we:"$$typeof"in e?be[e.$$typeof]:Se;var t}var Pe=Object.defineProperty,Ae=Object.getOwnPropertyNames,Ce=Object.getOwnPropertySymbols,Ne=Object.getOwnPropertyDescriptor,Te=Object.getPrototypeOf,Oe=Object.prototype;function xe(e,t,n){if("string"!=typeof t){if(Oe){var r=Te(t);r&&r!==Oe&&xe(e,r,n)}var o=Ae(t);Ce&&(o=o.concat(Ce(t)));for(var i=Ee(e),s=Ee(t),a=0;a<o.length;++a){var c=o[a];if(!(c in _e||n&&n[c]||s&&c in s||i&&c in i)){var u=Ne(t,c);try{Pe(e,c,u)}catch(e){}}}}return e}var De=/(a)(d)/gi,je=function(e){return String.fromCharCode(e+(e>25?39:97))};function Re(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}var Ie=["fit-content","min-content","max-content"],ze={};function Be(e,t,n){if(void 0===n&&(n=!1),!n&&!re(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Be(e[r],t[r]);else if(re(t))for(var r in t)e[r]=Be(e[r],t[r]);return e}var Le,Me,Ve=require("react-native"),ke=(Le=Ve.StyleSheet,Me=function(){function e(e){this.rules=e}return e.prototype.generateStyleObject=function(e){var n=Re(ae(this.rules,e)),r=function(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=je(t%52)+n;return(je(t%52)+n).replace(De,"$1-$2")}(G(5381,n)>>>0);if(!ze[r]){var o=t.parse(n),i=[];o.each(function(e){if("decl"===e.type){if(Ie.includes(e.value))return void("production"!==process.env.NODE_ENV&&console.warn('[styled-components/native] The value "'.concat(e.value,'" for property "').concat(e.prop,'" is not supported in React Native and will be ignored.')));i.push([e.prop,e.value])}else"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var s=c.default(i,["borderWidth","borderColor"]),a=Le.create({generated:s});ze[r]=a.generated}return ze[r]},e}(),function(e,t,o){var i=oe(e),s=e,a=t.displayName,c=void 0===a?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(X(e),")")}(e):a,l=t.attrs,p=void 0===l?f:l,h=i&&s.attrs?s.attrs.concat(p).filter(Boolean):p,y=t.shouldForwardProp;if(i&&s.shouldForwardProp){var v=s.shouldForwardProp;if(t.shouldForwardProp){var m=t.shouldForwardProp;y=function(e,t){return v(e,t)&&m(e,t)}}else y=v}var g=function(e,t){return function(e,t,o){var i=e.attrs,s=e.inlineStyle,a=e.defaultProps,c=e.shouldForwardProp,l=e.target,p=u.default.useContext?u.default.useContext(de):void 0,f=function(e,t,r){void 0===e&&(e=d);var o=n.__assign(n.__assign({},t),{theme:e}),i={};return r.forEach(function(e){var t,n=ne(e)?e(o):e;for(t in n)o[t]=i[t]=n[t]}),[o,i]}(ye(t,p,a)||d,t,i),h=f[1],y=s.generateStyleObject(f[0]),v=o,m=h.as||t.as||l,g=h!==t?n.__assign(n.__assign({},t),h):t,S={};for(var _ in g)"$"!==_[0]&&"as"!==_&&("forwardedAs"===_?S.as=g[_]:c&&!c(_,m)||(S[_]=g[_]));return S.style=u.default.useMemo?u.default.useMemo(function(){return ne(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y},[t.style,y]):ne(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y,o&&(S.ref=v),r.createElement(m,S)}(S,e,t)};g.displayName=c;var S=u.default.forwardRef(g);return S.attrs=h,S.inlineStyle=new Me(i?s.inlineStyle.rules.concat(o):o),S.displayName=c,S.shouldForwardProp=y,S.styledComponentId=!0,S.target=i?s.target:e,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++)Be(e,o[r],!0);return e}({},s.defaultProps,e):e}}),xe(S,e,{attrs:!0,inlineStyle:!0,displayName:!0,shouldForwardProp:!0,target:!0}),S}),$e=function(e){return pe(ke,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($e,e,{enumerable:!0,configurable:!1,get:function(){if(e in Ve&&Ve[e])return $e(Ve[e]);throw new Error("".concat(e," is not available in the currently-installed version of react-native"))}})}),exports.ThemeConsumer=he,exports.ThemeContext=de,exports.ThemeProvider=function(e){if(P||!u.default.useContext||!u.default.useMemo)return e.children;var t=u.default.useContext(de),r=u.default.useMemo(function(){return function(e,t){if(!e)throw v(14);if(ne(e)){var r=e(t);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw v(7);return r}if(Array.isArray(e)||"object"!=typeof e)throw v(8);return t?n.__assign(n.__assign({},t),e):e}(e.theme,t)},[e.theme,t]);return e.children?u.default.createElement(de.Provider,{value:r},e.children):null},exports.css=le,exports.default=$e,exports.isStyledComponent=oe,exports.styled=$e,exports.toStyleSheet=function(e){var n=Re(ae(e)),r=t.parse(n),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=c.default(o,["borderWidth","borderColor"]);return Ve.StyleSheet.create({style:i}).style},exports.useTheme=function(){var e=!P&&u.default.useContext?u.default.useContext(de):void 0;if(!e)throw v(18);return e},exports.withTheme=function(e){var t=u.default.forwardRef(function(t,r){var o=ye(t,u.default.useContext?u.default.useContext(de):void 0,e.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(e),'"')),u.default.createElement(e,n.__assign(n.__assign({},t),{theme:o,ref:r}))});return t.displayName="WithTheme(".concat(X(e),")"),xe(t,e)};
|
|
2
2
|
//# sourceMappingURL=styled-components.native.cjs.js.map
|