araya-styled-comp-lib
Version:
mark 1 react component library styled component
1 lines • 122 kB
JavaScript
import n,{useRef as e,useDebugValue as t,createElement as r,useContext as o,useState as i,useEffect as a,useMemo as l,createContext as c,useReducer as s}from"react";var d=function(){return d=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n},d.apply(this,arguments)};function u(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(n);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(n,r[o])&&(t[r[o]]=n[r[o]])}return t}function p(n,e,t,r){return new(t||(t=Promise))((function(o,i){function a(n){try{c(r.next(n))}catch(n){i(n)}}function l(n){try{c(r.throw(n))}catch(n){i(n)}}function c(n){var e;n.done?o(n.value):(e=n.value,e instanceof t?e:new t((function(n){n(e)}))).then(a,l)}c((r=r.apply(n,e||[])).next())}))}function f(n,e){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(c){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(t=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=e.call(n,a)}catch(n){l=[6,n],r=0}finally{t=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}function h(n,e,t){if(t||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return n.concat(r||Array.prototype.slice.call(e))}function m(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n}"function"==typeof SuppressedError&&SuppressedError;var g=function(n){var e=n.size,t=void 0===e?20:e,r=u(n,["size"]);return d({"aria-hidden":"true",focusable:!1,width:t,height:t,fill:"currentColor"},r)},x=function(n,e){return void 0===n&&(n=""),void 0===e&&(e=""),"".concat(n.trim()," ").concat(e.trim()).trim()};function b(n){var e=Object.create(null);return function(t){return void 0===e[t]&&(e[t]=n(t)),e[t]}}var v=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,y=b((function(n){return v.test(n)||111===n.charCodeAt(0)&&110===n.charCodeAt(1)&&n.charCodeAt(2)<91})),w="-ms-",E="-moz-",C="-webkit-",k="comm",S="rule",L="decl",M="@import",A="@keyframes",$="@layer",N=Math.abs,j=String.fromCharCode,T=Object.assign;function I(n){return n.trim()}function D(n,e){return(n=e.exec(n))?n[0]:n}function z(n,e,t){return n.replace(e,t)}function R(n,e,t){return n.indexOf(e,t)}function P(n,e){return 0|n.charCodeAt(e)}function O(n,e,t){return n.slice(e,t)}function Z(n){return n.length}function _(n){return n.length}function V(n,e){return e.push(n),n}function H(n,e){return n.filter((function(n){return!D(n,e)}))}var B=1,F=1,G=0,W=0,U=0,Y="";function q(n,e,t,r,o,i,a,l){return{value:n,root:e,parent:t,type:r,props:o,children:i,line:B,column:F,length:a,return:"",siblings:l}}function X(n,e){return T(q("",null,null,"",null,null,0,n.siblings),n,{length:-n.length},e)}function J(n){for(;n.root;)n=X(n.root,{children:[n]});V(n,n.siblings)}function Q(){return U=W>0?P(Y,--W):0,F--,10===U&&(F=1,B--),U}function K(){return U=W<G?P(Y,W++):0,F++,10===U&&(F=1,B++),U}function nn(){return P(Y,W)}function en(){return W}function tn(n,e){return O(Y,n,e)}function rn(n){switch(n){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 on(n){return I(tn(W-1,cn(91===n?n+2:40===n?n+1:n)))}function an(n){for(;(U=nn())&&U<33;)K();return rn(n)>2||rn(U)>3?"":" "}function ln(n,e){for(;--e&&K()&&!(U<48||U>102||U>57&&U<65||U>70&&U<97););return tn(n,en()+(e<6&&32==nn()&&32==K()))}function cn(n){for(;K();)switch(U){case n:return W;case 34:case 39:34!==n&&39!==n&&cn(U);break;case 40:41===n&&cn(n);break;case 92:K()}return W}function sn(n,e){for(;K()&&n+U!==57&&(n+U!==84||47!==nn()););return"/*"+tn(e,W-1)+"*"+j(47===n?n:K())}function dn(n){for(;!rn(nn());)K();return tn(n,W)}function un(n){return function(n){return Y="",n}(pn("",null,null,null,[""],n=function(n){return B=F=1,G=Z(Y=n),W=0,[]}(n),0,[0],n))}function pn(n,e,t,r,o,i,a,l,c){for(var s=0,d=0,u=a,p=0,f=0,h=0,m=1,g=1,x=1,b=0,v="",y=o,w=i,E=r,C=v;g;)switch(h=b,b=K()){case 40:if(108!=h&&58==P(C,u-1)){-1!=R(C+=z(on(b),"&","&\f"),"&\f",N(s?l[s-1]:0))&&(x=-1);break}case 34:case 39:case 91:C+=on(b);break;case 9:case 10:case 13:case 32:C+=an(h);break;case 92:C+=ln(en()-1,7);continue;case 47:switch(nn()){case 42:case 47:V(hn(sn(K(),en()),e,t,c),c);break;default:C+="/"}break;case 123*m:l[s++]=Z(C)*x;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+d:-1==x&&(C=z(C,/\f/g,"")),f>0&&Z(C)-u&&V(f>32?mn(C+";",r,t,u-1,c):mn(z(C," ","")+";",r,t,u-2,c),c);break;case 59:C+=";";default:if(V(E=fn(C,e,t,s,d,o,l,v,y=[],w=[],u,i),i),123===b)if(0===d)pn(C,e,E,E,y,i,u,l,w);else switch(99===p&&110===P(C,3)?100:p){case 100:case 108:case 109:case 115:pn(n,E,E,r&&V(fn(n,E,E,0,0,o,l,v,o,y=[],u,w),w),o,w,u,l,r?y:w);break;default:pn(C,E,E,E,[""],w,0,l,w)}}s=d=f=0,m=x=1,v=C="",u=a;break;case 58:u=1+Z(C),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Q())continue;switch(C+=j(b),b*m){case 38:x=d>0?1:(C+="\f",-1);break;case 44:l[s++]=(Z(C)-1)*x,x=1;break;case 64:45===nn()&&(C+=on(K())),p=nn(),d=u=Z(v=C+=dn(en())),b++;break;case 45:45===h&&2==Z(C)&&(m=0)}}return i}function fn(n,e,t,r,o,i,a,l,c,s,d,u){for(var p=o-1,f=0===o?i:[""],h=_(f),m=0,g=0,x=0;m<r;++m)for(var b=0,v=O(n,p+1,p=N(g=a[m])),y=n;b<h;++b)(y=I(g>0?f[b]+" "+v:z(v,/&\f/g,f[b])))&&(c[x++]=y);return q(n,e,t,0===o?S:l,c,s,d,u)}function hn(n,e,t,r){return q(n,e,t,k,j(U),O(n,2,-2),0,r)}function mn(n,e,t,r,o){return q(n,e,t,L,O(n,0,r),O(n,r+1,-1),r,o)}function gn(n,e,t){switch(function(n,e){return 45^P(n,0)?(((e<<2^P(n,0))<<2^P(n,1))<<2^P(n,2))<<2^P(n,3):0}(n,e)){case 5103:return C+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return C+n+n;case 4789:return E+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return C+n+E+n+w+n+n;case 5936:switch(P(n,e+11)){case 114:return C+n+w+z(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return C+n+w+z(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return C+n+w+z(n,/[svh]\w+-[tblr]{2}/,"lr")+n}case 6828:case 4268:case 2903:return C+n+w+n+n;case 6165:return C+n+w+"flex-"+n+n;case 5187:return C+n+z(n,/(\w+).+(:[^]+)/,C+"box-$1$2"+w+"flex-$1$2")+n;case 5443:return C+n+w+"flex-item-"+z(n,/flex-|-self/g,"")+(D(n,/flex-|baseline/)?"":w+"grid-row-"+z(n,/flex-|-self/g,""))+n;case 4675:return C+n+w+"flex-line-pack"+z(n,/align-content|flex-|-self/g,"")+n;case 5548:return C+n+w+z(n,"shrink","negative")+n;case 5292:return C+n+w+z(n,"basis","preferred-size")+n;case 6060:return C+"box-"+z(n,"-grow","")+C+n+w+z(n,"grow","positive")+n;case 4554:return C+z(n,/([^-])(transform)/g,"$1"+C+"$2")+n;case 6187:return z(z(z(n,/(zoom-|grab)/,C+"$1"),/(image-set)/,C+"$1"),n,"")+n;case 5495:case 3959:return z(n,/(image-set\([^]*)/,C+"$1$`$1");case 4968:return z(z(n,/(.+:)(flex-)?(.*)/,C+"box-pack:$3"+w+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C+n+n;case 4200:if(!D(n,/flex-|baseline/))return w+"grid-column-align"+O(n,e)+n;break;case 2592:case 3360:return w+z(n,"template-","")+n;case 4384:case 3616:return t&&t.some((function(n,t){return e=t,D(n.props,/grid-\w+-end/)}))?~R(n+(t=t[e].value),"span",0)?n:w+z(n,"-start","")+n+w+"grid-row-span:"+(~R(t,"span",0)?D(t,/\d+/):+D(t,/\d+/)-+D(n,/\d+/))+";":w+z(n,"-start","")+n;case 4896:case 4128:return t&&t.some((function(n){return D(n.props,/grid-\w+-start/)}))?n:w+z(z(n,"-end","-span"),"span ","")+n;case 4095:case 3583:case 4068:case 2532:return z(n,/(.+)-inline(.+)/,C+"$1$2")+n;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(Z(n)-1-e>6)switch(P(n,e+1)){case 109:if(45!==P(n,e+4))break;case 102:return z(n,/(.+:)(.+)-([^]+)/,"$1"+C+"$2-$3$1"+E+(108==P(n,e+3)?"$3":"$2-$3"))+n;case 115:return~R(n,"stretch",0)?gn(z(n,"stretch","fill-available"),e,t)+n:n}break;case 5152:case 5920:return z(n,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(e,t,r,o,i,a,l){return w+t+":"+r+l+(o?w+t+"-span:"+(i?a:+a-+r)+l:"")+n}));case 4949:if(121===P(n,e+6))return z(n,":",":"+C)+n;break;case 6444:switch(P(n,45===P(n,14)?18:11)){case 120:return z(n,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+C+(45===P(n,14)?"inline-":"")+"box$3$1"+C+"$2$3$1"+w+"$2box$3")+n;case 100:return z(n,":",":"+w)+n}break;case 5719:case 2647:case 2135:case 3927:case 2391:return z(n,"scroll-","scroll-snap-")+n}return n}function xn(n,e){for(var t="",r=0;r<n.length;r++)t+=e(n[r],r,n,e)||"";return t}function bn(n,e,t,r){switch(n.type){case $:if(n.children.length)break;case M:case L:return n.return=n.return||n.value;case k:return"";case A:return n.return=n.value+"{"+xn(n.children,r)+"}";case S:if(!Z(n.value=n.props.join(",")))return""}return Z(t=xn(n.children,r))?n.return=n.value+"{"+t+"}":""}function vn(n,e,t,r){if(n.length>-1&&!n.return)switch(n.type){case L:return void(n.return=gn(n.value,n.length,t));case A:return xn([X(n,{value:z(n.value,"@","@"+C)})],r);case S:if(n.length)return function(n,e){return n.map(e).join("")}(t=n.props,(function(e){switch(D(e,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":J(X(n,{props:[z(e,/:(read-\w+)/,":"+E+"$1")]})),J(X(n,{props:[e]})),T(n,{props:H(t,r)});break;case"::placeholder":J(X(n,{props:[z(e,/:(plac\w+)/,":"+C+"input-$1")]})),J(X(n,{props:[z(e,/:(plac\w+)/,":"+E+"$1")]})),J(X(n,{props:[z(e,/:(plac\w+)/,w+"input-$1")]})),J(X(n,{props:[e]})),T(n,{props:H(t,r)})}return""}))}}var yn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},wn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",En="active",Cn="data-styled-version",kn="6.1.8",Sn="/*!sc*/\n",Ln="undefined"!=typeof window&&"HTMLElement"in window,Mn=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),An=/invalid hook call/i,$n=new Set,Nn=function(n,t){if("production"!==process.env.NODE_ENV){var r=t?' with the id of "'.concat(t,'"'):"",o="The component ".concat(n).concat(r," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];An.test(n)?(a=!1,$n.delete(o)):i.apply(void 0,h([n],e,!1))},e(),a&&!$n.has(o)&&(console.warn(o),$n.add(o))}catch(n){An.test(n.message)&&$n.delete(o)}finally{console.error=i}}},jn=Object.freeze([]),Tn=Object.freeze({});var In=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Dn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,zn=/(^-|-$)/g;function Rn(n){return n.replace(Dn,"-").replace(zn,"")}var Pn=/(a)(d)/gi,On=52,Zn=function(n){return String.fromCharCode(n+(n>25?39:97))};function _n(n){var e,t="";for(e=Math.abs(n);e>On;e=e/On|0)t=Zn(e%On)+t;return(Zn(e%On)+t).replace(Pn,"$1-$2")}var Vn,Hn=function(n,e){for(var t=e.length;t;)n=33*n^e.charCodeAt(--t);return n},Bn=function(n){return Hn(5381,n)};function Fn(n){return"production"!==process.env.NODE_ENV&&"string"==typeof n&&n||n.displayName||n.name||"Component"}function Gn(n){return"string"==typeof n&&("production"===process.env.NODE_ENV||n.charAt(0)===n.charAt(0).toLowerCase())}var Wn="function"==typeof Symbol&&Symbol.for,Un=Wn?Symbol.for("react.memo"):60115,Yn=Wn?Symbol.for("react.forward_ref"):60112,qn={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Xn={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Jn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qn=((Vn={})[Yn]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Vn[Un]=Jn,Vn);function Kn(n){return("type"in(e=n)&&e.type.$$typeof)===Un?Jn:"$$typeof"in n?Qn[n.$$typeof]:qn;var e}var ne=Object.defineProperty,ee=Object.getOwnPropertyNames,te=Object.getOwnPropertySymbols,re=Object.getOwnPropertyDescriptor,oe=Object.getPrototypeOf,ie=Object.prototype;function ae(n,e,t){if("string"!=typeof e){if(ie){var r=oe(e);r&&r!==ie&&ae(n,r,t)}var o=ee(e);te&&(o=o.concat(te(e)));for(var i=Kn(n),a=Kn(e),l=0;l<o.length;++l){var c=o[l];if(!(c in Xn||t&&t[c]||a&&c in a||i&&c in i)){var s=re(e,c);try{ne(n,c,s)}catch(n){}}}}return n}function le(n){return"function"==typeof n}function ce(n){return"object"==typeof n&&"styledComponentId"in n}function se(n,e){return n&&e?"".concat(n," ").concat(e):n||e||""}function de(n,e){if(0===n.length)return"";for(var t=n[0],r=1;r<n.length;r++)t+=e?e+n[r]:n[r];return t}function ue(n){return null!==n&&"object"==typeof n&&n.constructor.name===Object.name&&!("props"in n&&n.$$typeof)}function pe(n,e,t){if(void 0===t&&(t=!1),!t&&!ue(n)&&!Array.isArray(n))return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)n[r]=pe(n[r],e[r]);else if(ue(e))for(var r in e)n[r]=pe(n[r],e[r]);return n}function fe(n,e){Object.defineProperty(n,"toString",{value:e})}var he="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 me(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var t=n[0],r=[],o=1,i=n.length;o<i;o+=1)r.push(n[o]);return r.forEach((function(n){t=t.replace(/%[a-z]/,n)})),t}function ge(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(n," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):"")):new Error(me.apply(void 0,h([he[n]],e,!1)).trim())}var xe=function(){function n(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}return n.prototype.indexOfGroup=function(n){for(var e=0,t=0;t<n;t++)e+=this.groupSizes[t];return e},n.prototype.insertRules=function(n,e){if(n>=this.groupSizes.length){for(var t=this.groupSizes,r=t.length,o=r;n>=o;)if((o<<=1)<0)throw ge(16,"".concat(n));this.groupSizes=new Uint32Array(o),this.groupSizes.set(t),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(n+1),l=(i=0,e.length);i<l;i++)this.tag.insertRule(a,e[i])&&(this.groupSizes[n]++,a++)},n.prototype.clearGroup=function(n){if(n<this.length){var e=this.groupSizes[n],t=this.indexOfGroup(n),r=t+e;this.groupSizes[n]=0;for(var o=t;o<r;o++)this.tag.deleteRule(t)}},n.prototype.getGroup=function(n){var e="";if(n>=this.length||0===this.groupSizes[n])return e;for(var t=this.groupSizes[n],r=this.indexOfGroup(n),o=r+t,i=r;i<o;i++)e+="".concat(this.tag.getRule(i)).concat(Sn);return e},n}(),be=new Map,ve=new Map,ye=1,we=function(n){if(be.has(n))return be.get(n);for(;ve.has(ye);)ye++;var e=ye++;if("production"!==process.env.NODE_ENV&&((0|e)<0||e>1073741824))throw ge(16,"".concat(e));return be.set(n,e),ve.set(e,n),e},Ee=function(n,e){ye=e+1,be.set(n,e),ve.set(e,n)},Ce="style[".concat(wn,"][").concat(Cn,'="').concat(kn,'"]'),ke=new RegExp("^".concat(wn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Se=function(n,e,t){for(var r,o=t.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&n.registerName(e,r)},Le=function(n,e){for(var t,r=(null!==(t=e.textContent)&&void 0!==t?t:"").split(Sn),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var c=l.match(ke);if(c){var s=0|parseInt(c[1],10),d=c[2];0!==s&&(Ee(d,s),Se(n,d,c[3]),n.getTag().insertRules(s,o)),o.length=0}else o.push(l)}}};var Me=function(n){var e=document.head,t=n||e,r=document.createElement("style"),o=function(n){var e=Array.from(n.querySelectorAll("style[".concat(wn,"]")));return e[e.length-1]}(t),i=void 0!==o?o.nextSibling:null;r.setAttribute(wn,En),r.setAttribute(Cn,kn);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),t.insertBefore(r,i),r},Ae=function(){function n(n){this.element=Me(n),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var e=document.styleSheets,t=0,r=e.length;t<r;t++){var o=e[t];if(o.ownerNode===n)return o}throw ge(17)}(this.element),this.length=0}return n.prototype.insertRule=function(n,e){try{return this.sheet.insertRule(e,n),this.length++,!0}catch(n){return!1}},n.prototype.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},n.prototype.getRule=function(n){var e=this.sheet.cssRules[n];return e&&e.cssText?e.cssText:""},n}(),$e=function(){function n(n){this.element=Me(n),this.nodes=this.element.childNodes,this.length=0}return n.prototype.insertRule=function(n,e){if(n<=this.length&&n>=0){var t=document.createTextNode(e);return this.element.insertBefore(t,this.nodes[n]||null),this.length++,!0}return!1},n.prototype.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},n.prototype.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},n}(),Ne=function(){function n(n){this.rules=[],this.length=0}return n.prototype.insertRule=function(n,e){return n<=this.length&&(this.rules.splice(n,0,e),this.length++,!0)},n.prototype.deleteRule=function(n){this.rules.splice(n,1),this.length--},n.prototype.getRule=function(n){return n<this.length?this.rules[n]:""},n}(),je=Ln,Te={isServer:!Ln,useCSSOMInjection:!Mn},Ie=function(){function n(n,e,t){void 0===n&&(n=Tn),void 0===e&&(e={});var r=this;this.options=d(d({},Te),n),this.gs=e,this.names=new Map(t),this.server=!!n.isServer,!this.server&&Ln&&je&&(je=!1,function(n){for(var e=document.querySelectorAll(Ce),t=0,r=e.length;t<r;t++){var o=e[t];o&&o.getAttribute(wn)!==En&&(Le(n,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),fe(this,(function(){return function(n){for(var e=n.getTag(),t=e.length,r="",o=function(t){var o=function(n){return ve.get(n)}(t);if(void 0===o)return"continue";var i=n.names.get(o),a=e.getGroup(t);if(void 0===i||0===a.length)return"continue";var l="".concat(wn,".g").concat(t,'[id="').concat(o,'"]'),c="";void 0!==i&&i.forEach((function(n){n.length>0&&(c+="".concat(n,","))})),r+="".concat(a).concat(l,'{content:"').concat(c,'"}').concat(Sn)},i=0;i<t;i++)o(i);return r}(r)}))}return n.registerId=function(n){return we(n)},n.prototype.reconstructWithOptions=function(e,t){return void 0===t&&(t=!0),new n(d(d({},this.options),e),this.gs,t&&this.names||void 0)},n.prototype.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},n.prototype.getTag=function(){return this.tag||(this.tag=(n=function(n){var e=n.useCSSOMInjection,t=n.target;return n.isServer?new Ne(t):e?new Ae(t):new $e(t)}(this.options),new xe(n)));var n},n.prototype.hasNameForId=function(n,e){return this.names.has(n)&&this.names.get(n).has(e)},n.prototype.registerName=function(n,e){if(we(n),this.names.has(n))this.names.get(n).add(e);else{var t=new Set;t.add(e),this.names.set(n,t)}},n.prototype.insertRules=function(n,e,t){this.registerName(n,e),this.getTag().insertRules(we(n),t)},n.prototype.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},n.prototype.clearRules=function(n){this.getTag().clearGroup(we(n)),this.clearNames(n)},n.prototype.clearTag=function(){this.tag=void 0},n}(),De=/&/g,ze=/^\s*\/\/.*$/gm;function Re(n,e){return n.map((function(n){return"rule"===n.type&&(n.value="".concat(e," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(e," ")),n.props=n.props.map((function(n){return"".concat(e," ").concat(n)}))),Array.isArray(n.children)&&"@keyframes"!==n.type&&(n.children=Re(n.children,e)),n}))}var Pe=new Ie,Oe=function(n){var e,t,r,o=void 0===n?Tn:n,i=o.options,a=void 0===i?Tn:i,l=o.plugins,c=void 0===l?jn:l,s=function(n,r,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):n},d=c.slice();d.push((function(n){n.type===S&&n.value.includes("&")&&(n.props[0]=n.props[0].replace(De,t).replace(r,s))})),a.prefix&&d.push(vn),d.push(bn);var u=function(n,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),e=l,t=o,r=new RegExp("\\".concat(t,"\\b"),"g");var c=n.replace(ze,""),s=un(i||o?"".concat(i," ").concat(o," { ").concat(c," }"):c);a.namespace&&(s=Re(s,a.namespace));var u,p=[];return xn(s,function(n){var e=_(n);return function(t,r,o,i){for(var a="",l=0;l<e;l++)a+=n[l](t,r,o,i)||"";return a}}(d.concat((u=function(n){return p.push(n)},function(n){n.root||(n=n.return)&&u(n)})))),p};return u.hash=c.length?c.reduce((function(n,e){return e.name||ge(15),Hn(n,e.name)}),5381).toString():"",u}(),Ze=n.createContext({shouldForwardProp:void 0,styleSheet:Pe,stylis:Oe});function _e(){return o(Ze)}Ze.Consumer,n.createContext(void 0);var Ve=function(){function n(n,e){var t=this;this.inject=function(n,e){void 0===e&&(e=Oe);var r=t.name+e.hash;n.hasNameForId(t.id,r)||n.insertRules(t.id,r,e(t.rules,r,"@keyframes"))},this.name=n,this.id="sc-keyframes-".concat(n),this.rules=e,fe(this,(function(){throw ge(12,String(t.name))}))}return n.prototype.getName=function(n){return void 0===n&&(n=Oe),this.name+n.hash},n}(),He=function(n){return n>="A"&&n<="Z"};function Be(n){for(var e="",t=0;t<n.length;t++){var r=n[t];if(1===t&&"-"===r&&"-"===n[0])return n;He(r)?e+="-"+r.toLowerCase():e+=r}return e.startsWith("ms-")?"-"+e:e}var Fe=function(n){return null==n||!1===n||""===n},Ge=function(n){var e,t,r=[];for(var o in n){var i=n[o];n.hasOwnProperty(o)&&!Fe(i)&&(Array.isArray(i)&&i.isCss||le(i)?r.push("".concat(Be(o),":"),i,";"):ue(i)?r.push.apply(r,h(h(["".concat(o," {")],Ge(i),!1),["}"],!1)):r.push("".concat(Be(o),": ").concat((e=o,null==(t=i)||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in yn||e.startsWith("--")?String(t).trim():"".concat(t,"px")),";")))}return r};function We(n,e,t,r){if(Fe(n))return[];if(ce(n))return[".".concat(n.styledComponentId)];if(le(n)){if(!le(i=n)||i.prototype&&i.prototype.isReactComponent||!e)return[n];var o=n(e);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof Ve||ue(o)||null===o||console.error("".concat(Fn(n)," 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.")),We(o,e,t,r)}var i;return n instanceof Ve?t?(n.inject(t,r),[n.getName(r)]):[n]:ue(n)?Ge(n):Array.isArray(n)?Array.prototype.concat.apply(jn,n.map((function(n){return We(n,e,t,r)}))):[n.toString()]}var Ue=Bn(kn),Ye=function(){function n(n,e,t){this.rules=n,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===t||t.isStatic)&&function(n){for(var e=0;e<n.length;e+=1){var t=n[e];if(le(t)&&!ce(t))return!1}return!0}(n),this.componentId=e,this.baseHash=Hn(Ue,e),this.baseStyle=t,Ie.registerId(e)}return n.prototype.generateAndInjectStyles=function(n,e,t){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(n,e,t):"";if(this.isStatic&&!t.hash)if(this.staticRulesId&&e.hasNameForId(this.componentId,this.staticRulesId))r=se(r,this.staticRulesId);else{var o=de(We(this.rules,n,e,t)),i=_n(Hn(this.baseHash,o)>>>0);if(!e.hasNameForId(this.componentId,i)){var a=t(o,".".concat(i),void 0,this.componentId);e.insertRules(this.componentId,i,a)}r=se(r,i),this.staticRulesId=i}else{for(var l=Hn(this.baseHash,t.hash),c="",s=0;s<this.rules.length;s++){var d=this.rules[s];if("string"==typeof d)c+=d,"production"!==process.env.NODE_ENV&&(l=Hn(l,d));else if(d){var u=de(We(d,n,e,t));l=Hn(l,u+s),c+=u}}if(c){var p=_n(l>>>0);e.hasNameForId(this.componentId,p)||e.insertRules(this.componentId,p,t(c,".".concat(p),void 0,this.componentId)),r=se(r,p)}}return r},n}(),qe=n.createContext(void 0);qe.Consumer;var Xe={},Je=new Set;function Qe(e,o,i){var a=ce(e),l=e,c=!Gn(e),s=o.attrs,u=void 0===s?jn:s,p=o.componentId,f=void 0===p?function(n,e){var t="string"!=typeof n?"sc":Rn(n);Xe[t]=(Xe[t]||0)+1;var r="".concat(t,"-").concat(function(n){return _n(Bn(n)>>>0)}(kn+t+Xe[t]));return e?"".concat(e,"-").concat(r):r}(o.displayName,o.parentComponentId):p,h=o.displayName,m=void 0===h?function(n){return Gn(n)?"styled.".concat(n):"Styled(".concat(Fn(n),")")}(e):h,g=o.displayName&&o.componentId?"".concat(Rn(o.displayName),"-").concat(o.componentId):o.componentId||f,x=a&&l.attrs?l.attrs.concat(u).filter(Boolean):u,b=o.shouldForwardProp;if(a&&l.shouldForwardProp){var v=l.shouldForwardProp;if(o.shouldForwardProp){var w=o.shouldForwardProp;b=function(n,e){return v(n,e)&&w(n,e)}}else b=v}var E=new Ye(i,g,a?l.componentStyle:void 0);function C(e,o){return function(e,o,i){var a=e.attrs,l=e.componentStyle,c=e.defaultProps,s=e.foldedComponentIds,u=e.styledComponentId,p=e.target,f=n.useContext(qe),h=_e(),m=e.shouldForwardProp||h.shouldForwardProp;"production"!==process.env.NODE_ENV&&t(u);var g=function(n,e,t){return void 0===t&&(t=Tn),n.theme!==t.theme&&n.theme||e||t.theme}(o,f,c)||Tn,x=function(n,e,t){for(var r,o=d(d({},e),{className:void 0,theme:t}),i=0;i<n.length;i+=1){var a=le(r=n[i])?r(o):r;for(var l in a)o[l]="className"===l?se(o[l],a[l]):"style"===l?d(d({},o[l]),a[l]):a[l]}return e.className&&(o.className=se(o.className,e.className)),o}(a,o,g),b=x.as||p,v={};for(var w in x)void 0===x[w]||"$"===w[0]||"as"===w||"theme"===w&&x.theme===g||("forwardedAs"===w?v.as=x.forwardedAs:m&&!m(w,b)||(v[w]=x[w],m||"development"!==process.env.NODE_ENV||y(w)||Je.has(w)||!In.has(b)||(Je.add(w),console.warn('styled-components: it looks like an unknown prop "'.concat(w,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(n,e){var r=_e(),o=n.generateAndInjectStyles(e,r.styleSheet,r.stylis);return"production"!==process.env.NODE_ENV&&t(o),o}(l,x);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(E);var C=se(s,u);return E&&(C+=" "+E),x.className&&(C+=" "+x.className),v[Gn(b)&&!In.has(b)?"class":"className"]=C,v.ref=i,r(b,v)}(k,e,o)}C.displayName=m;var k=n.forwardRef(C);return k.attrs=x,k.componentStyle=E,k.displayName=m,k.shouldForwardProp=b,k.foldedComponentIds=a?se(l.foldedComponentIds,l.styledComponentId):"",k.styledComponentId=g,k.target=a?l.target:e,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(n){this._foldedDefaultProps=a?function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];for(var r=0,o=e;r<o.length;r++)pe(n,o[r],!0);return n}({},l.defaultProps,n):n}}),"production"!==process.env.NODE_ENV&&(Nn(m,g),k.warnTooManyClasses=function(n,e){var t={},r=!1;return function(o){if(!r&&(t[o]=!0,Object.keys(t).length>=200)){var i=e?' with the id of "'.concat(e,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(n).concat(i,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,t={}}}}(m,g)),fe(k,(function(){return".".concat(k.styledComponentId)})),c&&ae(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function Ke(n,e){for(var t=[n[0]],r=0,o=e.length;r<o;r+=1)t.push(e[r],n[r+1]);return t}var nt=function(n){return Object.assign(n,{isCss:!0})};function et(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(le(n)||ue(n))return nt(We(Ke(jn,h([n],e,!0))));var r=n;return 0===e.length&&1===r.length&&"string"==typeof r[0]?We(r):nt(We(Ke(r,e)))}function tt(n,e,t){if(void 0===t&&(t=Tn),!e)throw ge(1,e);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return n(e,t,et.apply(void 0,h([r],o,!1)))};return r.attrs=function(r){return tt(n,e,d(d({},t),{attrs:Array.prototype.concat(t.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return tt(n,e,d(d({},t),r))},r}var rt=function(n){return tt(Qe,n)},ot=rt;In.forEach((function(n){ot[n]=rt(n)})),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var it="__sc-".concat(wn,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[it]||(window[it]=0),1===window[it]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[it]+=1);var at,lt,ct,st,dt,ut,pt,ft,ht,mt,gt,xt,bt,vt,yt,wt,Et,Ct,kt,St,Lt,Mt,At,$t,Nt,jt,Tt,It,Dt,zt,Rt,Pt,Ot,Zt,_t,Vt,Ht,Bt,Ft,Gt,Wt,Ut,Yt,qt,Xt,Jt,Qt,Kt,nr,er,tr,rr,or,ir,ar,lr,cr,sr,dr,ur,pr,fr,hr,mr,gr,xr,br,vr,yr,wr,Er,Cr,kr,Sr,Lr,Mr,Ar,$r,Nr,jr,Tr,Ir,Dr,zr,Rr,Pr,Or,Zr,_r,Vr,Hr,Br,Fr,Gr,Wr,Ur,Yr,qr,Xr,Jr,Qr,Kr,no,eo,to,ro,oo,io,ao,lo,co,so,uo,po,fo,ho,mo,go,xo,bo,vo,yo,wo,Eo,Co,ko,So,Lo,Mo,Ao,$o,No=et(at||(at=m(["\n outline: none;\n border: none;\n background-image: none;\n background-color: transparent;\n -webkit-box-shadow: none;\n -moz-box-shadow: none;\n box-shadow: none;\n padding: 0;\n margin: 0;\n"],["\n outline: none;\n border: none;\n background-image: none;\n background-color: transparent;\n -webkit-box-shadow: none;\n -moz-box-shadow: none;\n box-shadow: none;\n padding: 0;\n margin: 0;\n"]))),jo=function(n){return void 0===n&&(n=!1),et(ct||(ct=m(["\n ","\n ","\n"],["\n ","\n ","\n"])),No,n&&et(lt||(lt=m(["\n * {\n ","\n }\n "],["\n * {\n ","\n }\n "])),No))},To="rgba(239, 246, 255, 1)",Io="rgba(219, 234, 254, 1)",Do="rgba(191, 219, 254, 1)",zo="rgba(37, 99, 235, 1)",Ro="rgba(37, 99, 235, 0.75)",Po="rgba(29, 78, 216, 1)",Oo="rgba(30, 64, 175, 1)",Zo="rgba(249, 250, 251, 1)",_o="rgba(243, 244, 246, 1)",Vo="rgba(229, 231, 235, 1)",Ho="rgba(209, 213, 219, 1)",Bo="rgba(156, 163, 175, 1)",Fo="rgba(107, 114, 128, 1)",Go="rgba(75, 85, 99, 1)",Wo="rgba(55, 65, 81, 1)",Uo="rgba(17, 24, 39, 1)",Yo="rgba(17, 24, 39, 0.5)",qo="rgba(240, 253, 244, 1)",Xo="rgba(187, 247, 208, 1)",Jo="rgba(34, 197, 94, 1)",Qo="rgba(5, 122, 85, 1)",Ko="rgba(5, 122, 85, 0.75)",ni="rgba(21, 128, 61, 1)",ei="rgba(22, 101, 52, 1)",ti="rgb(253, 242, 242, 1)",ri="rgb(254, 202, 202, 1)",oi="rgba(248, 113, 113, 1)",ii="rgb(224, 36, 36, 1)",ai="rgb(224, 36, 36, 0.75)",li="rgb(224, 36, 36, 1)",ci="rgb(224, 36, 36, 0.75)",si="rgb(185, 28, 28, 1)",di="rgb(153, 27, 27, 1)",ui="rgba(241, 245, 249, 1)",pi="rgba(203, 213, 225, 1)",fi="rgba(203, 213, 225, 0.75)",hi="rgba(148, 163, 184, 1)",mi="rgba(15, 23, 42, 1)",gi="rgba(249, 115, 22, 1)",xi="rgba(254, 252, 232, 1)",bi="rgba(254, 240, 138, 1)",vi="rgba(227, 160, 8, 1)",yi="rgba(234, 179, 8, 1)",wi="rgba(227, 160, 8, 0.75)",Ei="rgba(133, 77, 14, 1)",Ci=ot.section(st||(st=m(["\n ","\n background-color: ",";\n overflow-y: auto;\n overflow-x: hidden;\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n z-index: 40;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n max-height: 100%;\n height: calc(100%-1rem);\n"],["\n ","\n background-color: ",";\n overflow-y: auto;\n overflow-x: hidden;\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n z-index: 40;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n max-height: 100%;\n height: calc(100%-1rem);\n"])),jo(),Yo),ki=function(e){var t=e.children,r=u(e,["children"]);return n.createElement(Ci,d({},r),t)},Si=function(e){var t=e.children,r=u(e,["children"]);return n.createElement("svg",d({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},g(r)),t)},Li=function(e){var t=e.styleType,r=void 0===t?"default":t,o=u(e,["styleType"]);return n.createElement(Si,d({name:"chevron-icon"},o),"rounded"===r&&n.createElement(n.Fragment,null,n.createElement("path",{d:"M11.0858 7.75739L15.3284 12L11.0858 16.2427L9.67157 14.8285L12.5 12L9.67157 9.1716L11.0858 7.75739Z",fill:"currentColor"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12Z",fill:"currentColor"})),"square"===r&&n.createElement(n.Fragment,null,n.createElement("path",{d:"M11.0858 7.75739L15.3284 12L11.0858 16.2427L9.67157 14.8285L12.5 12L9.67157 9.1716L11.0858 7.75739Z",fill:"currentColor"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 4C1 2.34315 2.34315 1 4 1H20C21.6569 1 23 2.34315 23 4V20C23 21.6569 21.6569 23 20 23H4C2.34315 23 1 21.6569 1 20V4ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3Z",fill:"currentColor"})),"default"===r&&n.createElement("path",{d:"M11.0858 7.75739L15.3284 12L11.0858 16.2427L9.67157 14.8285L12.5 12L9.67157 9.1716L11.0858 7.75739Z",fill:"currentColor"}))},Mi=ot.div(dt||(dt=m(["\n ","\n position: relative;\n display: flex;\n flex-direction: column;\n"],["\n ","\n position: relative;\n display: flex;\n flex-direction: column;\n"])),jo()),Ai=ot.button(ut||(ut=m(["\n ","\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding: 8px;\n cursor: pointer;\n background-color: ",";\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n border: 1px solid ",";\n"],["\n ","\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding: 8px;\n cursor: pointer;\n background-color: ",";\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n border: 1px solid ",";\n"])),jo(),_o,Vo),$i=ot.section(ft||(ft=m(["\n ","\n border: 1px solid ",";\n display: grid;\n grid-template-rows: 0fr;\n transition: grid-template-rows 300ms ease-out;\n ","\n"],["\n ","\n border: 1px solid ",";\n display: grid;\n grid-template-rows: 0fr;\n transition: grid-template-rows 300ms ease-out;\n ","\n"])),jo(),Vo,(function(n){return n.$open&&et(pt||(pt=m(["\n grid-template-rows: 1fr;\n "],["\n grid-template-rows: 1fr;\n "])))})),Ni=ot.span(ht||(ht=m(["\n ","\n font-size: 16px;\n font-weight: 600;\n color: ",";\n"],["\n ","\n font-size: 16px;\n font-weight: 600;\n color: ",";\n"])),jo(),Wo),ji=ot.div(mt||(mt=m(["\n ","\n overflow: hidden;\n"],["\n ","\n overflow: hidden;\n"])),jo()),Ti=ot.div(gt||(gt=m(["\n ","\n padding: 8px;\n"],["\n ","\n padding: 8px;\n"])),jo()),Ii=function(e){var t=e.id,r=e.heading,o=e.defaultOpen,a=e.children,l=e.className,c=i(!!o),s=c[0],d=c[1];return n.createElement(Mi,{id:t,className:l},n.createElement(Ai,{onClick:function(){return d(!s)}},n.createElement(Ni,null,r),n.createElement(Li,{styleType:"rounded",width:22,height:22,color:Wo,style:{transition:"rotate 100ms ease-out",rotate:s?"-90deg":"90deg"}})),n.createElement($i,{$open:s},n.createElement(ji,null,n.createElement(Ti,null,a))))},Di=function(e){return n.createElement(Si,d({viewBox:"0 0 20 20"},e),n.createElement("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"}))},zi=function(e){return n.createElement(Si,d({viewBox:"0 0 14 14"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"}))},Ri=function(n,e,t){void 0===n&&(n="all"),void 0===e&&(e=fi),void 0===t&&(t="thin");var r="top"===n||"left"===n?"-1px":"1px";return"thick"===t&&(r="top"===n||"left"===n?"-2px":"2px"),"bold"===t&&(r="top"===n||"left"===n?"-3px":"3px"),et("top"===n?xt||(xt=m(["\n box-shadow: 0px "," 0px 0px ",";\n -webkit-box-shadow: 0px "," 0px 0px ",";\n -moz-box-shadow: 0px "," 0px 0px ",";\n "],["\n box-shadow: 0px "," 0px 0px ",";\n -webkit-box-shadow: 0px "," 0px 0px ",";\n -moz-box-shadow: 0px "," 0px 0px ",";\n "])):"right"===n?bt||(bt=m(["\n box-shadow: "," 0px 0px 0px ",";\n -webkit-box-shadow: "," 0px 0px 0px ",";\n -moz-box-shadow: "," 0px 0px 0px ",";\n "],["\n box-shadow: "," 0px 0px 0px ",";\n -webkit-box-shadow: "," 0px 0px 0px ",";\n -moz-box-shadow: "," 0px 0px 0px ",";\n "])):"bottom"===n?vt||(vt=m(["\n box-shadow: 0px "," 0px 0px ",";\n -webkit-box-shadow: 0px "," 0px 0px ",";\n -moz-box-shadow: 0px "," 0px 0px ",";\n "],["\n box-shadow: 0px "," 0px 0px ",";\n -webkit-box-shadow: 0px "," 0px 0px ",";\n -moz-box-shadow: 0px "," 0px 0px ",";\n "])):"left"===n?yt||(yt=m(["\n box-shadow: "," 0px 0px 0px ",";\n -webkit-box-shadow: "," 0px 0px 0px ",";\n -moz-box-shadow: "," 0px 0px 0px ",";\n "],["\n box-shadow: "," 0px 0px 0px ",";\n -webkit-box-shadow: "," 0px 0px 0px ",";\n -moz-box-shadow: "," 0px 0px 0px ",";\n "])):wt||(wt=m(["\n box-shadow: 0px 0px 0px "," ",";\n -webkit-box-shadow: 0px 0px 0px "," ",";\n -moz-box-shadow: 0px 0px 0px "," ",";\n "],["\n box-shadow: 0px 0px 0px "," ",";\n -webkit-box-shadow: 0px 0px 0px "," ",";\n -moz-box-shadow: 0px 0px 0px "," ",";\n "])),r,e,r,e,r,e)},Pi=function(n){return et("sm"===n?Et||(Et=m(["\n box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n "],["\n box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n "])):"md"===n?Ct||(Ct=m(["\n box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1),\n 0 2px 4px -2px rgb(0 0 0 / 0.1);\n "],["\n box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1),\n 0 2px 4px -2px rgb(0 0 0 / 0.1);\n "])):"lg"===n?kt||(kt=m(["\n box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1),\n 0 4px 6px -4px rgb(0 0 0 / 0.1);\n "],["\n box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1),\n 0 4px 6px -4px rgb(0 0 0 / 0.1);\n "])):"xl"===n?St||(St=m(["\n box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),\n 0 8px 10px -6px rgb(0 0 0 / 0.1);\n "],["\n box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),\n 0 8px 10px -6px rgb(0 0 0 / 0.1);\n "])):Lt||(Lt=m(["\n box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n "],["\n box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n "])))},Oi=ot.div(Nt||(Nt=m(["\n ","\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n font-size: 14px;\n border-radius: 8px;\n color: ",";\n background-color: ",";\n ","\n button {\n color: ",";\n }\n ","\n ","\n ","\n"],["\n ","\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n font-size: 14px;\n border-radius: 8px;\n color: ",";\n background-color: ",";\n ","\n button {\n color: ",";\n }\n ","\n ","\n ","\n"])),jo(!0),Oo,To,Pi("sm"),Oo,(function(n){return"danger"===n.$variant&&et(Mt||(Mt=m(["\n color: ",";\n background-color: ",";\n button {\n color: ",";\n }\n "],["\n color: ",";\n background-color: ",";\n button {\n color: ",";\n }\n "])),di,ti,di)}),(function(n){return"success"===n.$variant&&et(At||(At=m(["\n color: ",";