UNPKG

dgz-ui-shared

Version:

Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript, dgz-ui library

64 lines (46 loc) 257 kB
"use strict";const Ut=require("./jsx-runtime-DUiatUiq.cjs"),J=require("./index-DqTIeHVj-C_gsDkBV.cjs"),ve=require("react"),Ed=require("./select-BehdTDP2-DZ8kbyVp.cjs"),vd=require("./index-DFLDO_Wj-BSSol7QD.cjs"),xr=require("./index-Br4MVOGV-C9VUkdfQ.cjs"),Vt=require("./utils-D0f6bOsw-BmDOeWKv.cjs"),Ka=require("./check-DE-1lGDl-C_ZPlJ0c.cjs");function ZT(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const Te=ZT(ve);var Ci="Checkbox",[JT,DS]=J.j(Ci),[eI,Qa]=JT(Ci);function tI(e){const{__scopeCheckbox:o,checked:n,children:s,defaultChecked:a,disabled:c,form:u,name:p,onCheckedChange:d,required:g,value:E="on",internal_do_not_use_render:y}=e,[I,O]=J.y({prop:n,defaultProp:a??!1,onChange:d,caller:Ci}),[b,w]=Te.useState(null),[N,A]=Te.useState(null),L=Te.useRef(!1),B=b?!!u||!!b.closest("form"):!0,V={checked:I,disabled:c,setChecked:O,control:b,setControl:w,name:p,form:u,value:E,hasConsumerStoppedPropagationRef:L,required:g,defaultChecked:Cr(a)?!1:a,isFormControl:B,bubbleInput:N,setBubbleInput:A};return J.ae.jsx(eI,{scope:o,...V,children:rI(y)?y(V):s})}var yd="CheckboxTrigger",Td=Te.forwardRef(({__scopeCheckbox:e,onKeyDown:o,onClick:n,...s},a)=>{const{control:c,value:u,disabled:p,checked:d,required:g,setControl:E,setChecked:y,hasConsumerStoppedPropagationRef:I,isFormControl:O,bubbleInput:b}=Qa(yd,e),w=J.x(a,E),N=Te.useRef(d);return Te.useEffect(()=>{const A=c==null?void 0:c.form;if(A){const L=()=>y(N.current);return A.addEventListener("reset",L),()=>A.removeEventListener("reset",L)}},[c,y]),J.ae.jsx(J.h.button,{type:"button",role:"checkbox","aria-checked":Cr(d)?"mixed":d,"aria-required":g,"data-state":Sd(d),"data-disabled":p?"":void 0,disabled:p,value:u,...s,ref:w,onKeyDown:J.y$1(o,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:J.y$1(n,A=>{y(L=>Cr(L)?!0:!L),b&&O&&(I.current=A.isPropagationStopped(),I.current||A.stopPropagation())})})});Td.displayName=yd;var Za=Te.forwardRef((e,o)=>{const{__scopeCheckbox:n,name:s,checked:a,defaultChecked:c,required:u,disabled:p,value:d,onCheckedChange:g,form:E,...y}=e;return J.ae.jsx(tI,{__scopeCheckbox:n,checked:a,defaultChecked:c,disabled:p,required:u,onCheckedChange:g,name:s,form:E,value:d,internal_do_not_use_render:({isFormControl:I})=>J.ae.jsxs(J.ae.Fragment,{children:[J.ae.jsx(Td,{...y,ref:o,__scopeCheckbox:n}),I&&J.ae.jsx(wd,{__scopeCheckbox:n})]})})});Za.displayName=Ci;var Id="CheckboxIndicator",bd=Te.forwardRef((e,o)=>{const{__scopeCheckbox:n,forceMount:s,...a}=e,c=Qa(Id,n);return J.ae.jsx(J.R,{present:s||Cr(c.checked)||c.checked===!0,children:J.ae.jsx(J.h.span,{"data-state":Sd(c.checked),"data-disabled":c.disabled?"":void 0,...a,ref:o,style:{pointerEvents:"none",...e.style}})})});bd.displayName=Id;var Rd="CheckboxBubbleInput",wd=Te.forwardRef(({__scopeCheckbox:e,...o},n)=>{const{control:s,hasConsumerStoppedPropagationRef:a,checked:c,defaultChecked:u,required:p,disabled:d,name:g,value:E,form:y,bubbleInput:I,setBubbleInput:O}=Qa(Rd,e),b=J.x(n,O),w=Ed.Fm(c),N=vd.De(s);Te.useEffect(()=>{const L=I;if(!L)return;const B=window.HTMLInputElement.prototype,V=Object.getOwnPropertyDescriptor(B,"checked").set,q=!a.current;if(w!==c&&V){const z=new Event("click",{bubbles:q});L.indeterminate=Cr(c),V.call(L,Cr(c)?!1:c),L.dispatchEvent(z)}},[I,w,c,a]);const A=Te.useRef(Cr(c)?!1:c);return J.ae.jsx(J.h.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??A.current,required:p,disabled:d,name:g,value:E,form:y,...o,tabIndex:-1,ref:b,style:{...o.style,...N,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});wd.displayName=Rd;function rI(e){return typeof e=="function"}function Cr(e){return e==="indeterminate"}function Sd(e){return Cr(e)?"indeterminate":e?"checked":"unchecked"}const Od=Te.forwardRef(({className:e,...o},n)=>J.ae.jsx(Za,{ref:n,className:Vt.mo("peer size-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary",e),...o,children:J.ae.jsx(bd,{className:Vt.mo("flex items-center justify-center text-current size-4"),children:o.checked==="indeterminate"?J.ae.jsx(xr.C,{className:"size-3.5 text-primary mb-0.5 mr-0.5"}):J.ae.jsx(xr.i,{className:"size-3.5 text-primary mb-0.5 mr-0.5"})})}));Od.displayName=Za.displayName;const Ja=Ka.j("flex h-10 w-full rounded-lg border border-border-alpha-strong px-3 py-2 dark:bg-transparent file:border-0 placeholder:text-secondary placeholder:text-body-sm-regular focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-bg focus-visible:ring-offset-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:"focus-visible:ring-item-primary",failure:"focus-visible:ring-item-destructive bg-item-destructive-focus placeholder:text-item-destructive border-item-destructive text-destructive",success:"focus-visible:ring-success bg-success/20 placeholder:text-success/80 border-success text-success"}},defaultVariants:{variant:"default"}}),Ii=Te.forwardRef(({className:e,type:o,variant:n,...s},a)=>{const[c,u]=ve.useState(!1),[p,d]=ve.useState(!1);return ve.useEffect(()=>{u(o==="password")},[o]),J.ae.jsxs("div",{className:"relative",children:[J.ae.jsx("input",{type:p?"text":o,className:Vt.mo(Ja({variant:n}),e,c&&"pr-10"),ref:a,...s}),c&&J.ae.jsx(Ka.u,{type:"button",size:"icon",variant:"tertiary",className:"cursor-pointer absolute top-1 right-1 rounded-md p-2 size-8 !ring-0 !ring-offset-0",onClick:()=>{d(!p)},children:p?J.ae.jsx(xr.w,{}):J.ae.jsx(xr.m,{})})]})});Ii.displayName="Input";var It=function(){return It=Object.assign||function(e){for(var o,n=1,s=arguments.length;n<s;n++){o=arguments[n];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},It.apply(this,arguments)};function Rn(e,o,n){if(n||arguments.length===2)for(var s=0,a=o.length,c;s<a;s++)(c||!(s in o))&&(c||(c=Array.prototype.slice.call(o,0,s)),c[s]=o[s]);return e.concat(c||Array.prototype.slice.call(o))}function nI(e){var o=Object.create(null);return function(n){return o[n]===void 0&&(o[n]=e(n)),o[n]}}var oI=/^((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|disableRemotePlayback|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)-.*))$/,iI=nI(function(e){return oI.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Ne="-ms-",lo="-moz-",we="-webkit-",Ad="comm",Li="rule",el="decl",sI="@import",Dd="@keyframes",aI="@layer",xd=Math.abs,tl=String.fromCharCode,Aa=Object.assign;function lI(e,o){return nt(e,0)^45?(((o<<2^nt(e,0))<<2^nt(e,1))<<2^nt(e,2))<<2^nt(e,3):0}function Cd(e){return e.trim()}function mr(e,o){return(e=o.exec(e))?e[0]:e}function he(e,o,n){return e.replace(o,n)}function mi(e,o,n){return e.indexOf(o,n)}function nt(e,o){return e.charCodeAt(o)|0}function wn(e,o,n){return e.slice(o,n)}function nr(e){return e.length}function Ld(e){return e.length}function so(e,o){return o.push(e),e}function uI(e,o){return e.map(o).join("")}function tf(e,o){return e.filter(function(n){return!mr(n,o)})}var Pi=1,Sn=1,Pd=0,Wt=0,He=0,Cn="";function Mi(e,o,n,s,a,c,u,p){return{value:e,root:o,parent:n,type:s,props:a,children:c,line:Pi,column:Sn,length:u,return:"",siblings:p}}function Dr(e,o){return Aa(Mi("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},o)}function vn(e){for(;e.root;)e=Dr(e.root,{children:[e]});so(e,e.siblings)}function cI(){return He}function fI(){return He=Wt>0?nt(Cn,--Wt):0,Sn--,He===10&&(Sn=1,Pi--),He}function Jt(){return He=Wt<Pd?nt(Cn,Wt++):0,Sn++,He===10&&(Sn=1,Pi++),He}function Xr(){return nt(Cn,Wt)}function gi(){return Wt}function Ni(e,o){return wn(Cn,e,o)}function Da(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 dI(e){return Pi=Sn=1,Pd=nr(Cn=e),Wt=0,[]}function pI(e){return Cn="",e}function ha(e){return Cd(Ni(Wt-1,xa(e===91?e+2:e===40?e+1:e)))}function hI(e){for(;(He=Xr())&&He<33;)Jt();return Da(e)>2||Da(He)>3?"":" "}function mI(e,o){for(;--o&&Jt()&&!(He<48||He>102||He>57&&He<65||He>70&&He<97););return Ni(e,gi()+(o<6&&Xr()==32&&Jt()==32))}function xa(e){for(;Jt();)switch(He){case e:return Wt;case 34:case 39:e!==34&&e!==39&&xa(He);break;case 40:e===41&&xa(e);break;case 92:Jt();break}return Wt}function gI(e,o){for(;Jt()&&e+He!==57&&!(e+He===84&&Xr()===47););return"/*"+Ni(o,Wt-1)+"*"+tl(e===47?e:Jt())}function _I(e){for(;!Da(Xr());)Jt();return Ni(e,Wt)}function EI(e){return pI(_i("",null,null,null,[""],e=dI(e),0,[0],e))}function _i(e,o,n,s,a,c,u,p,d){for(var g=0,E=0,y=u,I=0,O=0,b=0,w=1,N=1,A=1,L=0,B="",V=a,q=c,z=s,x=B;N;)switch(b=L,L=Jt()){case 40:if(b!=108&&nt(x,y-1)==58){mi(x+=he(ha(L),"&","&\f"),"&\f",xd(g?p[g-1]:0))!=-1&&(A=-1);break}case 34:case 39:case 91:x+=ha(L);break;case 9:case 10:case 13:case 32:x+=hI(b);break;case 92:x+=mI(gi()-1,7);continue;case 47:switch(Xr()){case 42:case 47:so(vI(gI(Jt(),gi()),o,n,d),d);break;default:x+="/"}break;case 123*w:p[g++]=nr(x)*A;case 125*w:case 59:case 0:switch(L){case 0:case 125:N=0;case 59+E:A==-1&&(x=he(x,/\f/g,"")),O>0&&nr(x)-y&&so(O>32?nf(x+";",s,n,y-1,d):nf(he(x," ","")+";",s,n,y-2,d),d);break;case 59:x+=";";default:if(so(z=rf(x,o,n,g,E,a,p,B,V=[],q=[],y,c),c),L===123)if(E===0)_i(x,o,z,z,V,c,y,p,q);else switch(I===99&&nt(x,3)===110?100:I){case 100:case 108:case 109:case 115:_i(e,z,z,s&&so(rf(e,z,z,0,0,a,p,B,a,V=[],y,q),q),a,q,y,p,s?V:q);break;default:_i(x,z,z,z,[""],q,0,p,q)}}g=E=O=0,w=A=1,B=x="",y=u;break;case 58:y=1+nr(x),O=b;default:if(w<1){if(L==123)--w;else if(L==125&&w++==0&&fI()==125)continue}switch(x+=tl(L),L*w){case 38:A=E>0?1:(x+="\f",-1);break;case 44:p[g++]=(nr(x)-1)*A,A=1;break;case 64:Xr()===45&&(x+=ha(Jt())),I=Xr(),E=y=nr(B=x+=_I(gi())),L++;break;case 45:b===45&&nr(x)==2&&(w=0)}}return c}function rf(e,o,n,s,a,c,u,p,d,g,E,y){for(var I=a-1,O=a===0?c:[""],b=Ld(O),w=0,N=0,A=0;w<s;++w)for(var L=0,B=wn(e,I+1,I=xd(N=u[w])),V=e;L<b;++L)(V=Cd(N>0?O[L]+" "+B:he(B,/&\f/g,O[L])))&&(d[A++]=V);return Mi(e,o,n,a===0?Li:p,d,g,E,y)}function vI(e,o,n,s){return Mi(e,o,n,Ad,tl(cI()),wn(e,2,-2),0,s)}function nf(e,o,n,s,a){return Mi(e,o,n,el,wn(e,0,s),wn(e,s+1,-1),s,a)}function Md(e,o,n){switch(lI(e,o)){case 5103:return we+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return we+e+e;case 4789:return lo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return we+e+lo+e+Ne+e+e;case 5936:switch(nt(e,o+11)){case 114:return we+e+Ne+he(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return we+e+Ne+he(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return we+e+Ne+he(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return we+e+Ne+e+e;case 6165:return we+e+Ne+"flex-"+e+e;case 5187:return we+e+he(e,/(\w+).+(:[^]+)/,we+"box-$1$2"+Ne+"flex-$1$2")+e;case 5443:return we+e+Ne+"flex-item-"+he(e,/flex-|-self/g,"")+(mr(e,/flex-|baseline/)?"":Ne+"grid-row-"+he(e,/flex-|-self/g,""))+e;case 4675:return we+e+Ne+"flex-line-pack"+he(e,/align-content|flex-|-self/g,"")+e;case 5548:return we+e+Ne+he(e,"shrink","negative")+e;case 5292:return we+e+Ne+he(e,"basis","preferred-size")+e;case 6060:return we+"box-"+he(e,"-grow","")+we+e+Ne+he(e,"grow","positive")+e;case 4554:return we+he(e,/([^-])(transform)/g,"$1"+we+"$2")+e;case 6187:return he(he(he(e,/(zoom-|grab)/,we+"$1"),/(image-set)/,we+"$1"),e,"")+e;case 5495:case 3959:return he(e,/(image-set\([^]*)/,we+"$1$`$1");case 4968:return he(he(e,/(.+:)(flex-)?(.*)/,we+"box-pack:$3"+Ne+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+we+e+e;case 4200:if(!mr(e,/flex-|baseline/))return Ne+"grid-column-align"+wn(e,o)+e;break;case 2592:case 3360:return Ne+he(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(s,a){return o=a,mr(s.props,/grid-\w+-end/)})?~mi(e+(n=n[o].value),"span",0)?e:Ne+he(e,"-start","")+e+Ne+"grid-row-span:"+(~mi(n,"span",0)?mr(n,/\d+/):+mr(n,/\d+/)-+mr(e,/\d+/))+";":Ne+he(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(s){return mr(s.props,/grid-\w+-start/)})?e:Ne+he(he(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return he(e,/(.+)-inline(.+)/,we+"$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(nr(e)-1-o>6)switch(nt(e,o+1)){case 109:if(nt(e,o+4)!==45)break;case 102:return he(e,/(.+:)(.+)-([^]+)/,"$1"+we+"$2-$3$1"+lo+(nt(e,o+3)==108?"$3":"$2-$3"))+e;case 115:return~mi(e,"stretch",0)?Md(he(e,"stretch","fill-available"),o,n)+e:e}break;case 5152:case 5920:return he(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(s,a,c,u,p,d,g){return Ne+a+":"+c+g+(u?Ne+a+"-span:"+(p?d:+d-+c)+g:"")+e});case 4949:if(nt(e,o+6)===121)return he(e,":",":"+we)+e;break;case 6444:switch(nt(e,nt(e,14)===45?18:11)){case 120:return he(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+we+(nt(e,14)===45?"inline-":"")+"box$3$1"+we+"$2$3$1"+Ne+"$2box$3")+e;case 100:return he(e,":",":"+Ne)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return he(e,"scroll-","scroll-snap-")+e}return e}function bi(e,o){for(var n="",s=0;s<e.length;s++)n+=o(e[s],s,e,o)||"";return n}function yI(e,o,n,s){switch(e.type){case aI:if(e.children.length)break;case sI:case el:return e.return=e.return||e.value;case Ad:return"";case Dd:return e.return=e.value+"{"+bi(e.children,s)+"}";case Li:if(!nr(e.value=e.props.join(",")))return""}return nr(n=bi(e.children,s))?e.return=e.value+"{"+n+"}":""}function TI(e){var o=Ld(e);return function(n,s,a,c){for(var u="",p=0;p<o;p++)u+=e[p](n,s,a,c)||"";return u}}function II(e){return function(o){o.root||(o=o.return)&&e(o)}}function bI(e,o,n,s){if(e.length>-1&&!e.return)switch(e.type){case el:e.return=Md(e.value,e.length,n);return;case Dd:return bi([Dr(e,{value:he(e.value,"@","@"+we)})],s);case Li:if(e.length)return uI(n=e.props,function(a){switch(mr(a,s=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":vn(Dr(e,{props:[he(a,/:(read-\w+)/,":"+lo+"$1")]})),vn(Dr(e,{props:[a]})),Aa(e,{props:tf(n,s)});break;case"::placeholder":vn(Dr(e,{props:[he(a,/:(plac\w+)/,":"+we+"input-$1")]})),vn(Dr(e,{props:[he(a,/:(plac\w+)/,":"+lo+"$1")]})),vn(Dr(e,{props:[he(a,/:(plac\w+)/,Ne+"input-$1")]})),vn(Dr(e,{props:[a]})),Aa(e,{props:tf(n,s)});break}return""})}}var RI={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,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},en=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Nd="active",Gd="data-styled-version",Gi="6.1.18",rl=`/*!sc*/ `,Ri=typeof window<"u"&&typeof document<"u",wI=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),of=/invalid hook call/i,ni=new Set,SI=function(e,o){if(process.env.NODE_ENV!=="production"){var n=o?' with the id of "'.concat(o,'"'):"",s="The component ".concat(e).concat(n,` has been created dynamically. `)+`You may see this warning because you've called styled inside another component. To resolve this only create new StyledComponents outside of any render method and function component. See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info. `,a=console.error;try{var c=!0;console.error=function(u){for(var p=[],d=1;d<arguments.length;d++)p[d-1]=arguments[d];of.test(u)?(c=!1,ni.delete(s)):a.apply(void 0,Rn([u],p,!1))},ve.useRef(),c&&!ni.has(s)&&(console.warn(s),ni.add(s))}catch(u){of.test(u.message)&&ni.delete(s)}finally{console.error=a}}},ki=Object.freeze([]),On=Object.freeze({});function OI(e,o,n){return n===void 0&&(n=On),e.theme!==n.theme&&e.theme||o||n.theme}var Ca=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"]),AI=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,DI=/(^-|-$)/g;function sf(e){return e.replace(AI,"-").replace(DI,"")}var xI=/(a)(d)/gi,oi=52,af=function(e){return String.fromCharCode(e+(e>25?39:97))};function La(e){var o,n="";for(o=Math.abs(e);o>oi;o=o/oi|0)n=af(o%oi)+n;return(af(o%oi)+n).replace(xI,"$1-$2")}var ma,kd=5381,Wr=function(e,o){for(var n=o.length;n;)e=33*e^o.charCodeAt(--n);return e},Ud=function(e){return Wr(kd,e)};function CI(e){return La(Ud(e)>>>0)}function Fd(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function ga(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Bd=typeof Symbol=="function"&&Symbol.for,qd=Bd?Symbol.for("react.memo"):60115,LI=Bd?Symbol.for("react.forward_ref"):60112,PI={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},MI={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Vd={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},NI=((ma={})[LI]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ma[qd]=Vd,ma);function lf(e){return("type"in(o=e)&&o.type.$$typeof)===qd?Vd:"$$typeof"in e?NI[e.$$typeof]:PI;var o}var GI=Object.defineProperty,kI=Object.getOwnPropertyNames,uf=Object.getOwnPropertySymbols,UI=Object.getOwnPropertyDescriptor,FI=Object.getPrototypeOf,cf=Object.prototype;function Wd(e,o,n){if(typeof o!="string"){if(cf){var s=FI(o);s&&s!==cf&&Wd(e,s,n)}var a=kI(o);uf&&(a=a.concat(uf(o)));for(var c=lf(e),u=lf(o),p=0;p<a.length;++p){var d=a[p];if(!(d in MI||n&&n[d]||u&&d in u||c&&d in c)){var g=UI(o,d);try{GI(e,d,g)}catch{}}}}return e}function An(e){return typeof e=="function"}function nl(e){return typeof e=="object"&&"styledComponentId"in e}function zr(e,o){return e&&o?"".concat(e," ").concat(o):e||o||""}function ff(e,o){if(e.length===0)return"";for(var n=e[0],s=1;s<e.length;s++)n+=e[s];return n}function Dn(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Pa(e,o,n){if(n===void 0&&(n=!1),!n&&!Dn(e)&&!Array.isArray(e))return o;if(Array.isArray(o))for(var s=0;s<o.length;s++)e[s]=Pa(e[s],o[s]);else if(Dn(o))for(var s in o)e[s]=Pa(e[s],o[s]);return e}function ol(e,o){Object.defineProperty(e,"toString",{value:o})}var BI=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s. `,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. - Are you trying to reuse it across renders? - Are you accidentally calling collectStyles twice? `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser. `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop! - Does this error occur on the client and is your target falsy? - Does this error occur on the server and is the sheet falsy? `,5:`The clone method cannot be used on the client! - Are you running in a client-like environment on the server? - Are you trying to run SSR on the client? `,6:`Trying to insert a new style tag, but the given Node is unmounted! - Are you using a custom target that isn't mounted? - Does your document not have a valid head element? - Have you accidentally removed a style tag manually? `,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. `,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 `,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. `,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. `,14:`ThemeProvider: "theme" prop is required. `,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. You may only create up to 1,073,741,824 components. If you're creating components dynamically, as for instance in your render method then you may be running into this limitation. `,17:`CSSStyleSheet could not be found on HTMLStyleElement. Has styled-components' style tag been unmounted or altered by another script? `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function qI(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];for(var n=e[0],s=[],a=1,c=e.length;a<c;a+=1)s.push(e[a]);return s.forEach(function(u){n=n.replace(/%[a-z]/,u)}),n}function Ln(e){for(var o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];return process.env.NODE_ENV==="production"?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(o.length>0?" Args: ".concat(o.join(", ")):"")):new Error(qI.apply(void 0,Rn([BI[e]],o,!1)).trim())}var VI=function(){function e(o){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=o}return e.prototype.indexOfGroup=function(o){for(var n=0,s=0;s<o;s++)n+=this.groupSizes[s];return n},e.prototype.insertRules=function(o,n){if(o>=this.groupSizes.length){for(var s=this.groupSizes,a=s.length,c=a;o>=c;)if((c<<=1)<0)throw Ln(16,"".concat(o));this.groupSizes=new Uint32Array(c),this.groupSizes.set(s),this.length=c;for(var u=a;u<c;u++)this.groupSizes[u]=0}for(var p=this.indexOfGroup(o+1),d=(u=0,n.length);u<d;u++)this.tag.insertRule(p,n[u])&&(this.groupSizes[o]++,p++)},e.prototype.clearGroup=function(o){if(o<this.length){var n=this.groupSizes[o],s=this.indexOfGroup(o),a=s+n;this.groupSizes[o]=0;for(var c=s;c<a;c++)this.tag.deleteRule(s)}},e.prototype.getGroup=function(o){var n="";if(o>=this.length||this.groupSizes[o]===0)return n;for(var s=this.groupSizes[o],a=this.indexOfGroup(o),c=a+s,u=a;u<c;u++)n+="".concat(this.tag.getRule(u)).concat(rl);return n},e}(),WI=1<<30,Ei=new Map,wi=new Map,vi=1,ii=function(e){if(Ei.has(e))return Ei.get(e);for(;wi.has(vi);)vi++;var o=vi++;if(process.env.NODE_ENV!=="production"&&((0|o)<0||o>WI))throw Ln(16,"".concat(o));return Ei.set(e,o),wi.set(o,e),o},zI=function(e,o){vi=o+1,Ei.set(e,o),wi.set(o,e)},$I="style[".concat(en,"][").concat(Gd,'="').concat(Gi,'"]'),YI=new RegExp("^".concat(en,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),HI=function(e,o,n){for(var s,a=n.split(","),c=0,u=a.length;c<u;c++)(s=a[c])&&e.registerName(o,s)},XI=function(e,o){for(var n,s=((n=o.textContent)!==null&&n!==void 0?n:"").split(rl),a=[],c=0,u=s.length;c<u;c++){var p=s[c].trim();if(p){var d=p.match(YI);if(d){var g=0|parseInt(d[1],10),E=d[2];g!==0&&(zI(E,g),HI(e,E,d[3]),e.getTag().insertRules(g,a)),a.length=0}else a.push(p)}}},df=function(e){for(var o=document.querySelectorAll($I),n=0,s=o.length;n<s;n++){var a=o[n];a&&a.getAttribute(en)!==Nd&&(XI(e,a),a.parentNode&&a.parentNode.removeChild(a))}};function jI(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var zd=function(e){var o=document.head,n=e||o,s=document.createElement("style"),a=function(p){var d=Array.from(p.querySelectorAll("style[".concat(en,"]")));return d[d.length-1]}(n),c=a!==void 0?a.nextSibling:null;s.setAttribute(en,Nd),s.setAttribute(Gd,Gi);var u=jI();return u&&s.setAttribute("nonce",u),n.insertBefore(s,c),s},KI=function(){function e(o){this.element=zd(o),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var s=document.styleSheets,a=0,c=s.length;a<c;a++){var u=s[a];if(u.ownerNode===n)return u}throw Ln(17)}(this.element),this.length=0}return e.prototype.insertRule=function(o,n){try{return this.sheet.insertRule(n,o),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(o){this.sheet.deleteRule(o),this.length--},e.prototype.getRule=function(o){var n=this.sheet.cssRules[o];return n&&n.cssText?n.cssText:""},e}(),QI=function(){function e(o){this.element=zd(o),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(o,n){if(o<=this.length&&o>=0){var s=document.createTextNode(n);return this.element.insertBefore(s,this.nodes[o]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(o){this.element.removeChild(this.nodes[o]),this.length--},e.prototype.getRule=function(o){return o<this.length?this.nodes[o].textContent:""},e}(),ZI=function(){function e(o){this.rules=[],this.length=0}return e.prototype.insertRule=function(o,n){return o<=this.length&&(this.rules.splice(o,0,n),this.length++,!0)},e.prototype.deleteRule=function(o){this.rules.splice(o,1),this.length--},e.prototype.getRule=function(o){return o<this.length?this.rules[o]:""},e}(),pf=Ri,JI={isServer:!Ri,useCSSOMInjection:!wI},$d=function(){function e(o,n,s){o===void 0&&(o=On),n===void 0&&(n={});var a=this;this.options=It(It({},JI),o),this.gs=n,this.names=new Map(s),this.server=!!o.isServer,!this.server&&Ri&&pf&&(pf=!1,df(this)),ol(this,function(){return function(c){for(var u=c.getTag(),p=u.length,d="",g=function(y){var I=function(A){return wi.get(A)}(y);if(I===void 0)return"continue";var O=c.names.get(I),b=u.getGroup(y);if(O===void 0||!O.size||b.length===0)return"continue";var w="".concat(en,".g").concat(y,'[id="').concat(I,'"]'),N="";O!==void 0&&O.forEach(function(A){A.length>0&&(N+="".concat(A,","))}),d+="".concat(b).concat(w,'{content:"').concat(N,'"}').concat(rl)},E=0;E<p;E++)g(E);return d}(a)})}return e.registerId=function(o){return ii(o)},e.prototype.rehydrate=function(){!this.server&&Ri&&df(this)},e.prototype.reconstructWithOptions=function(o,n){return n===void 0&&(n=!0),new e(It(It({},this.options),o),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(o){return this.gs[o]=(this.gs[o]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(o=function(n){var s=n.useCSSOMInjection,a=n.target;return n.isServer?new ZI(a):s?new KI(a):new QI(a)}(this.options),new VI(o)));var o},e.prototype.hasNameForId=function(o,n){return this.names.has(o)&&this.names.get(o).has(n)},e.prototype.registerName=function(o,n){if(ii(o),this.names.has(o))this.names.get(o).add(n);else{var s=new Set;s.add(n),this.names.set(o,s)}},e.prototype.insertRules=function(o,n,s){this.registerName(o,n),this.getTag().insertRules(ii(o),s)},e.prototype.clearNames=function(o){this.names.has(o)&&this.names.get(o).clear()},e.prototype.clearRules=function(o){this.getTag().clearGroup(ii(o)),this.clearNames(o)},e.prototype.clearTag=function(){this.tag=void 0},e}(),e0=/&/g,t0=/^\s*\/\/.*$/gm;function Yd(e,o){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(o," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(o," ")),n.props=n.props.map(function(s){return"".concat(o," ").concat(s)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Yd(n.children,o)),n})}function r0(e){var o,n,s,a=On,c=a.options,u=c===void 0?On:c,p=a.plugins,d=p===void 0?ki:p,g=function(I,O,b){return b.startsWith(n)&&b.endsWith(n)&&b.replaceAll(n,"").length>0?".".concat(o):I},E=d.slice();E.push(function(I){I.type===Li&&I.value.includes("&")&&(I.props[0]=I.props[0].replace(e0,n).replace(s,g))}),u.prefix&&E.push(bI),E.push(yI);var y=function(I,O,b,w){O===void 0&&(O=""),b===void 0&&(b=""),w===void 0&&(w="&"),o=w,n=O,s=new RegExp("\\".concat(n,"\\b"),"g");var N=I.replace(t0,""),A=EI(b||O?"".concat(b," ").concat(O," { ").concat(N," }"):N);u.namespace&&(A=Yd(A,u.namespace));var L=[];return bi(A,TI(E.concat(II(function(B){return L.push(B)})))),L};return y.hash=d.length?d.reduce(function(I,O){return O.name||Ln(15),Wr(I,O.name)},kd).toString():"",y}var n0=new $d,Ma=r0(),Hd=ve.createContext({shouldForwardProp:void 0,styleSheet:n0,stylis:Ma});Hd.Consumer;ve.createContext(void 0);function hf(){return ve.useContext(Hd)}var mf=function(){function e(o,n){var s=this;this.inject=function(a,c){c===void 0&&(c=Ma);var u=s.name+c.hash;a.hasNameForId(s.id,u)||a.insertRules(s.id,u,c(s.rules,u,"@keyframes"))},this.name=o,this.id="sc-keyframes-".concat(o),this.rules=n,ol(this,function(){throw Ln(12,String(s.name))})}return e.prototype.getName=function(o){return o===void 0&&(o=Ma),this.name+o.hash},e}(),o0=function(e){return e>="A"&&e<="Z"};function gf(e){for(var o="",n=0;n<e.length;n++){var s=e[n];if(n===1&&s==="-"&&e[0]==="-")return e;o0(s)?o+="-"+s.toLowerCase():o+=s}return o.startsWith("ms-")?"-"+o:o}var Xd=function(e){return e==null||e===!1||e===""},jd=function(e){var o,n,s=[];for(var a in e){var c=e[a];e.hasOwnProperty(a)&&!Xd(c)&&(Array.isArray(c)&&c.isCss||An(c)?s.push("".concat(gf(a),":"),c,";"):Dn(c)?s.push.apply(s,Rn(Rn(["".concat(a," {")],jd(c),!1),["}"],!1)):s.push("".concat(gf(a),": ").concat((o=a,(n=c)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||o in RI||o.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return s};function jr(e,o,n,s){if(Xd(e))return[];if(nl(e))return[".".concat(e.styledComponentId)];if(An(e)){if(!An(c=e)||c.prototype&&c.prototype.isReactComponent||!o)return[e];var a=e(o);return process.env.NODE_ENV==="production"||typeof a!="object"||Array.isArray(a)||a instanceof mf||Dn(a)||a===null||console.error("".concat(Fd(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.")),jr(a,o,n,s)}var c;return e instanceof mf?n?(e.inject(n,s),[e.getName(s)]):[e]:Dn(e)?jd(e):Array.isArray(e)?Array.prototype.concat.apply(ki,e.map(function(u){return jr(u,o,n,s)})):[e.toString()]}function i0(e){for(var o=0;o<e.length;o+=1){var n=e[o];if(An(n)&&!nl(n))return!1}return!0}var s0=Ud(Gi),a0=function(){function e(o,n,s){this.rules=o,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(s===void 0||s.isStatic)&&i0(o),this.componentId=n,this.baseHash=Wr(s0,n),this.baseStyle=s,$d.registerId(n)}return e.prototype.generateAndInjectStyles=function(o,n,s){var a=this.baseStyle?this.baseStyle.generateAndInjectStyles(o,n,s):"";if(this.isStatic&&!s.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))a=zr(a,this.staticRulesId);else{var c=ff(jr(this.rules,o,n,s)),u=La(Wr(this.baseHash,c)>>>0);if(!n.hasNameForId(this.componentId,u)){var p=s(c,".".concat(u),void 0,this.componentId);n.insertRules(this.componentId,u,p)}a=zr(a,u),this.staticRulesId=u}else{for(var d=Wr(this.baseHash,s.hash),g="",E=0;E<this.rules.length;E++){var y=this.rules[E];if(typeof y=="string")g+=y,process.env.NODE_ENV!=="production"&&(d=Wr(d,y));else if(y){var I=ff(jr(y,o,n,s));d=Wr(d,I+E),g+=I}}if(g){var O=La(d>>>0);n.hasNameForId(this.componentId,O)||n.insertRules(this.componentId,O,s(g,".".concat(O),void 0,this.componentId)),a=zr(a,O)}}return a},e}(),Kd=ve.createContext(void 0);Kd.Consumer;var _a={},_f=new Set;function l0(e,o,n){var s=nl(e),a=e,c=!ga(e),u=o.attrs,p=u===void 0?ki:u,d=o.componentId,g=d===void 0?function(V,q){var z=typeof V!="string"?"sc":sf(V);_a[z]=(_a[z]||0)+1;var x="".concat(z,"-").concat(CI(Gi+z+_a[z]));return q?"".concat(q,"-").concat(x):x}(o.displayName,o.parentComponentId):d,E=o.displayName,y=E===void 0?function(V){return ga(V)?"styled.".concat(V):"Styled(".concat(Fd(V),")")}(e):E,I=o.displayName&&o.componentId?"".concat(sf(o.displayName),"-").concat(o.componentId):o.componentId||g,O=s&&a.attrs?a.attrs.concat(p).filter(Boolean):p,b=o.shouldForwardProp;if(s&&a.shouldForwardProp){var w=a.shouldForwardProp;if(o.shouldForwardProp){var N=o.shouldForwardProp;b=function(V,q){return w(V,q)&&N(V,q)}}else b=w}var A=new a0(n,I,s?a.componentStyle:void 0);function L(V,q){return function(z,x,P){var re=z.attrs,K=z.componentStyle,ee=z.defaultProps,Oe=z.foldedComponentIds,Ae=z.styledComponentId,$=z.target,me=ve.useContext(Kd),G=hf(),W=z.shouldForwardProp||G.shouldForwardProp;process.env.NODE_ENV!=="production"&&ve.useDebugValue(Ae);var k=OI(x,me,ee)||On,Z=function(Je,ie,ae){for(var Ve,Le=It(It({},ie),{className:void 0,theme:ae}),Pe=0;Pe<Je.length;Pe+=1){var ut=An(Ve=Je[Pe])?Ve(Le):Ve;for(var et in ut)Le[et]=et==="className"?zr(Le[et],ut[et]):et==="style"?It(It({},Le[et]),ut[et]):ut[et]}return ie.className&&(Le.className=zr(Le.className,ie.className)),Le}(re,x,k),ce=Z.as||$,se={};for(var Ue in Z)Z[Ue]===void 0||Ue[0]==="$"||Ue==="as"||Ue==="theme"&&Z.theme===k||(Ue==="forwardedAs"?se.as=Z.forwardedAs:W&&!W(Ue,ce)||(se[Ue]=Z[Ue],W||process.env.NODE_ENV!=="development"||iI(Ue)||_f.has(Ue)||!Ca.has(ce)||(_f.add(Ue),console.warn('styled-components: it looks like an unknown prop "'.concat(Ue,'" 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 Ge=function(Je,ie){var ae=hf(),Ve=Je.generateAndInjectStyles(ie,ae.styleSheet,ae.stylis);return process.env.NODE_ENV!=="production"&&ve.useDebugValue(Ve),Ve}(K,Z);process.env.NODE_ENV!=="production"&&z.warnTooManyClasses&&z.warnTooManyClasses(Ge);var De=zr(Oe,Ae);return Ge&&(De+=" "+Ge),Z.className&&(De+=" "+Z.className),se[ga(ce)&&!Ca.has(ce)?"class":"className"]=De,P&&(se.ref=P),ve.createElement(ce,se)}(B,V,q)}L.displayName=y;var B=ve.forwardRef(L);return B.attrs=O,B.componentStyle=A,B.displayName=y,B.shouldForwardProp=b,B.foldedComponentIds=s?zr(a.foldedComponentIds,a.styledComponentId):"",B.styledComponentId=I,B.target=s?a.target:e,Object.defineProperty(B,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(V){this._foldedDefaultProps=s?function(q){for(var z=[],x=1;x<arguments.length;x++)z[x-1]=arguments[x];for(var P=0,re=z;P<re.length;P++)Pa(q,re[P],!0);return q}({},a.defaultProps,V):V}}),process.env.NODE_ENV!=="production"&&(SI(y,I),B.warnTooManyClasses=function(V,q){var z={},x=!1;return function(P){if(!x&&(z[P]=!0,Object.keys(z).length>=200)){var re=q?' with the id of "'.concat(q,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(V).concat(re,`. `)+`Consider using the attrs method, together with a style object for frequently changed styles. Example: const Component = styled.div.attrs(props => ({ style: { background: props.background, }, }))\`width: 100%;\` <Component />`),x=!0,z={}}}}(y,I)),ol(B,function(){return".".concat(B.styledComponentId)}),c&&Wd(B,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),B}function Ef(e,o){for(var n=[e[0]],s=0,a=o.length;s<a;s+=1)n.push(o[s],e[s+1]);return n}var vf=function(e){return Object.assign(e,{isCss:!0})};function u0(e){for(var o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];if(An(e)||Dn(e))return vf(jr(Ef(ki,Rn([e],o,!0))));var s=e;return o.length===0&&s.length===1&&typeof s[0]=="string"?jr(s):vf(jr(Ef(s,o)))}function Na(e,o,n){if(n===void 0&&(n=On),!o)throw Ln(1,o);var s=function(a){for(var c=[],u=1;u<arguments.length;u++)c[u-1]=arguments[u];return e(o,n,u0.apply(void 0,Rn([a],c,!1)))};return s.attrs=function(a){return Na(e,o,It(It({},n),{attrs:Array.prototype.concat(n.attrs,a).filter(Boolean)}))},s.withConfig=function(a){return Na(e,o,It(It({},n),a))},s}var Qd=function(e){return Na(l0,e)},Zd=Qd;Ca.forEach(function(e){Zd[e]=Qd(e)});process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native. Perhaps you're looking to import 'styled-components/native'? Read more about this at https://www.styled-components.com/docs/basics#react-native`);var si="__sc-".concat(en,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[si]||(window[si]=0),window[si]===1&&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. See https://s-c.sh/2BAXzed for more info.`),window[si]+=1);/*! * FilePond 4.32.7 * Licensed under MIT, https://opensource.org/licenses/MIT/ * Please visit https://pqina.nl/filepond/ for details. */const c0=e=>e instanceof HTMLElement,f0=(e,o=[],n=[])=>{const s={...e},a=[],c=[],u=()=>({...s}),p=()=>{const b=[...a];return a.length=0,b},d=()=>{const b=[...c];c.length=0,b.forEach(({type:w,data:N})=>{g(w,N)})},g=(b,w,N)=>{if(N&&!document.hidden){c.push({type:b,data:w});return}O[b]&&O[b](w),a.push({type:b,data:w})},E=(b,...w)=>I[b]?I[b](...w):null,y={getState:u,processActionQueue:p,processDispatchQueue:d,dispatch:g,query:E};let I={};o.forEach(b=>{I={...b(s),...I}});let O={};return n.forEach(b=>{O={...b(g,E,s),...O}}),y},d0=(e,o,n)=>{if(typeof n=="function"){e[o]=n;return}Object.defineProperty(e,o,{...n})},qe=(e,o)=>{for(const n in e)e.hasOwnProperty(n)&&o(n,e[n])},Lr=e=>{const o={};return qe(e,n=>{d0(o,n,e[n])}),o},Ze=(e,o,n=null)=>{if(n===null)return e.getAttribute(o)||e.hasAttribute(o);e.setAttribute(o,n)},p0="http://www.w3.org/2000/svg",h0=["svg","path"],yf=e=>h0.includes(e),Si=(e,o,n={})=>{typeof o=="object"&&(n=o,o=null);const s=yf(e)?document.createElementNS(p0,e):document.createElement(e);return o&&(yf(e)?Ze(s,"class",o):s.className=o),qe(n,(a,c)=>{Ze(s,a,c)}),s},m0=e=>(o,n)=>{typeof n<"u"&&e.children[n]?e.insertBefore(o,e.children[n]):e.appendChild(o)},g0=(e,o)=>(n,s)=>(typeof s<"u"?o.splice(s,0,n):o.push(n),n),_0=(e,o)=>n=>(o.splice(o.indexOf(n),1),n.element.parentNode&&e.removeChild(n.element),n),E0=typeof window<"u"&&typeof window.document<"u",Jd=()=>E0,v0=Jd()?Si("svg"):{},y0="children"in v0?e=>e.children.length:e=>e.childNodes.length,ep=(e,o,n,s)=>{const a=n[0]||e.left,c=n[1]||e.top,u=a+e.width,p=c+e.height*(s[1]||1),d={element:{...e},inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:a,top:c,right:u,bottom:p}};return o.filter(g=>!g.isRectIgnored()).map(g=>g.rect).forEach(g=>{Tf(d.inner,{...g.inner}),Tf(d.outer,{...g.outer})}),If(d.inner),d.outer.bottom+=d.element.marginBottom,d.outer.right+=d.element.marginRight,If(d.outer),d},Tf=(e,o)=>{o.top+=e.top,o.right+=e.left,o.bottom+=e.top,o.left+=e.left,o.bottom>e.bottom&&(e.bottom=o.bottom),o.right>e.right&&(e.right=o.right)},If=e=>{e.width=e.right-e.left,e.height=e.bottom-e.top},$r=e=>typeof e=="number",T0=(e,o,n,s=.001)=>Math.abs(e-o)<s&&Math.abs(n)<s,I0=({stiffness:e=.5,damping:o=.75,mass:n=10}={})=>{let s=null,a=null,c=0,u=!1;const p=Lr({interpolate:(d,g)=>{if(u)return;if(!($r(s)&&$r(a))){u=!0,c=0;return}const E=-(a-s)*e;c+=E/n,a+=c,c*=o,T0(a,s,c)||g?(a=s,c=0,u=!0,p.onupdate(a),p.oncomplete(a)):p.onupdate(a)},target:{set:d=>{if($r(d)&&!$r(a)&&(a=d),s===null&&(s=d,a=d),s=d,a===s||typeof s>"u"){u=!0,c=0,p.onupdate(a),p.oncomplete(a);return}u=!1},get:()=>s},resting:{get:()=>u},onupdate:d=>{},oncomplete:d=>{}});return p},b0=e=>e<.5?2*e*e:-1+(4-2*e)*e,R0=({duration:e=500,easing:o=b0,delay:n=0}={})=>{let s=null,a,c,u=!0,p=!1,d=null;const g=Lr({interpolate:(E,y)=>{u||d===null||(s===null&&(s=E),!(E-s<n)&&(a=E-s-n,a>=e||y?(a=1,c=p?0:1,g.onupdate(c*d),g.oncomplete(c*d),u=!0):(c=a/e,g.onupdate((a>=0?o(p?1-c:c):0)*d))))},target:{get:()=>p?0:d,set:E=>{if(d===null){d=E,g.onupdate(E),g.oncomplete(E);return}E<d?(d=1,p=!0):(p=!1,d=E),u=!1,s=null}},resting:{get:()=>u},onupdate:E=>{},oncomplete:E=>{}});return g},bf={spring:I0,tween:R0},w0=(e,o,n)=>{const s=e[o]&&typeof e[o][n]=="object"?e[o][n]:e[o]||e,a=typeof s=="string"?s:s.type,c=typeof s=="object"?{...s}:{};return bf[a]?bf[a](c):null},il=(e,o,n,s=!1)=>{o=Array.isArray(o)?o:[o],o.forEach(a=>{e.forEach(c=>{let u=c,p=()=>n[c],d=g=>n[c]=g;typeof c=="object"&&(u=c.key,p=c.getter||p,d=c.setter||d),!(a[u]&&!s)&&(a[u]={get:p,set:d})})})},S0=({mixinConfig:e,viewProps:o,viewInternalAPI:n,viewExternalAPI:s})=>{const a={...o},c=[];return qe(e,(u,p)=>{const d=w0(p);d&&(d.onupdate=g=>{o[u]=g},d.target=a[u],il([{key:u,setter:g=>{d.target!==g&&(d.target=g)},getter:()=>o[u]}],[n,s],o,!0),c.push(d))}),{write:u=>{let p=document.hidden,d=!0;return c.forEach(g=>{g.resting||(d=!1),g.interpolate(u,p)}),d},destroy:()=>{}}},O0=e=>(o,n)=>{e.addEventListener(o,n)},A0=e=>(o,n)=>{e.removeEventListener(o,n)},D0=({mixinConfig:e,viewProps:o,viewInternalAPI:n,viewExternalAPI:s,viewState:a,view:c})=>{const u=[],p=O0(c.element),d=A0(c.element);return s.on=(g,E)=>{u.push({type:g,fn:E}),p(g,E)},s.off=(g,E)=>{u.splice(u.findIndex(y=>y.type===g&&y.fn===E),1),d(g,E)},{write:()=>!0,destroy:()=>{u.forEach(g=>{d(g.type,g.fn)})}}},x0=({mixinConfig:e,viewProps:o,viewExternalAPI:n})=>{il(e,n,o)},pt=e=>e!=null,C0={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},L0=({mixinConfig:e,viewProps:o,viewInternalAPI:n,viewExternalAPI:s,view:a})=>{const c={...o},u={};il(e,[n,s],o);const p=()=>[o.translateX||0,o.translateY||0],d=()=>[o.scaleX||0,o.scaleY||0],g=()=>a.rect?ep(a.rect,a.childViews,p(),d()):null;return n.rect={get:g},s.rect={get:g},e.forEach(E=>{o[E]=typeof c[E]>"u"?C0[E]:c[E]}),{write:()=>{if(P0(u,o))return M0(a.element,o),Object.assign(u,{...o}),!0},destroy:()=>{}}},P0=(e,o)=>{if(Object.keys(e).length!==Object.keys(o).length)return!0;for(const n in o)if(o[n]!==e[n])return!0;return!1},M0=(e,{opacity:o,perspective:n,translateX:s,translateY:a,scaleX:c,scaleY:u,rotateX:p,rotateY:d,rotateZ:g,originX:E,originY:y,width:I,height:O})=>{let b="",w="";(pt(E)||pt(y))&&(w+=`transform-origin: ${E||0}px ${y||0}px;`),pt(n)&&(b+=`perspective(${n}px) `),(pt(s)||pt(a))&&(b+=`translate3d(${s||0}px, ${a||0}px, 0) `),(pt(c)||pt(u))&&(b+=`scale3d(${pt(c)?c:1}, ${pt(u)?u:1}, 1) `),pt(g)&&(b+=`rotateZ(${g}rad) `),pt(p)&&(b+=`rotateX(${p}rad) `),pt(d)&&(b+=`rotateY(${d}rad) `),b.length&&(w+=`transform:${b};`),pt(o)&&(w+=`opacity:${o};`,o===0&&(w+="visibility:hidden;"),o<1&&(w+="pointer-events:none;")),pt(O)&&(w+=`height:${O}px;`),pt(I)&&(w+=`width:${I}px;`);const N=e.elementCurrentStyle||"";(w.length!==N.length||w!==N)&&(e.style.cssText=w,e.elementCurrentStyle=w)},N0={styles:L0,listeners:D0,animations:S0,apis:x0},Rf=(e={},o={},n={})=>(o.layoutCalculated||(e.paddingTop=parseInt(n.paddingTop,10)||0,e.marginTop=parseInt(n.marginTop,10)||0,e.marginRight=parseInt(n.marginRight,10)||0,e.marginBottom=parseInt(n.marginBottom,10)||0,e.marginLeft=parseInt(n.marginLeft,10)||0,o.layoutCalculated=!0),e.left=o.offsetLeft||0,e.top=o.offsetTop||0,e.width=o.offsetWidth||0,e.height=o.offsetHeight||0,e.right=e.left+e.width,e.bottom=e.top+e.height,e.scrollTop=o.scrollTop,e.hidden=o.offsetParent===null,e),Xe=({tag:e="div",name:o=null,attributes:n={},rea