tcce-design-system 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- (function(A,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("react/jsx-runtime"),require("react-dom"),require("formik")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom","formik"],f):(A=typeof globalThis<"u"?globalThis:A||self,f(A["tcce-design-system-components"]={},A.React,A["react/jsx-runtime"],A.ReactDOM,A.Formik))})(this,(function(A,f,m,ss,Vc){"use strict";function Ic(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const an=Ic(f);var me=function(){return me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},me.apply(this,arguments)};function pt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Nc(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Lc=/^((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)-.*))$/,Bc=Nc(function(e){return Lc.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),X="-ms-",jt="-moz-",U="-webkit-",is="comm",ln="rule",er="decl",Oc="@import",as="@keyframes",Fc="@layer",ls=Math.abs,tr=String.fromCharCode,nr=Object.assign;function jc(e,t){return ie(e,0)^45?(((t<<2^ie(e,0))<<2^ie(e,1))<<2^ie(e,2))<<2^ie(e,3):0}function cs(e){return e.trim()}function Oe(e,t){return(e=t.exec(e))?e[0]:e}function B(e,t,n){return e.replace(t,n)}function cn(e,t,n){return e.indexOf(t,n)}function ie(e,t){return e.charCodeAt(t)|0}function mt(e,t,n){return e.slice(t,n)}function Ne(e){return e.length}function ds(e){return e.length}function Rt(e,t){return t.push(e),e}function Rc(e,t){return e.map(t).join("")}function us(e,t){return e.filter(function(n){return!Oe(n,t)})}var dn=1,gt=1,hs=0,xe=0,te=0,yt="";function un(e,t,n,r,o,i,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:dn,column:gt,length:s,return:"",siblings:a}}function He(e,t){return nr(un("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function vt(e){for(;e.root;)e=He(e.root,{children:[e]});Rt(e,e.siblings)}function zc(){return te}function _c(){return te=xe>0?ie(yt,--xe):0,gt--,te===10&&(gt=1,dn--),te}function Ae(){return te=xe<hs?ie(yt,xe++):0,gt++,te===10&&(gt=1,dn++),te}function Je(){return ie(yt,xe)}function hn(){return xe}function fn(e,t){return mt(yt,e,t)}function rr(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 Hc(e){return dn=gt=1,hs=Ne(yt=e),xe=0,[]}function Uc(e){return yt="",e}function or(e){return cs(fn(xe-1,sr(e===91?e+2:e===40?e+1:e)))}function Wc(e){for(;(te=Je())&&te<33;)Ae();return rr(e)>2||rr(te)>3?"":" "}function Kc(e,t){for(;--t&&Ae()&&!(te<48||te>102||te>57&&te<65||te>70&&te<97););return fn(e,hn()+(t<6&&Je()==32&&Ae()==32))}function sr(e){for(;Ae();)switch(te){case e:return xe;case 34:case 39:e!==34&&e!==39&&sr(te);break;case 40:e===41&&sr(e);break;case 92:Ae();break}return xe}function Yc(e,t){for(;Ae()&&e+te!==57;)if(e+te===84&&Je()===47)break;return"/*"+fn(t,xe-1)+"*"+tr(e===47?e:Ae())}function Gc(e){for(;!rr(Je());)Ae();return fn(e,xe)}function Xc(e){return Uc(pn("",null,null,null,[""],e=Hc(e),0,[0],e))}function pn(e,t,n,r,o,i,s,a,l){for(var d=0,u=0,c=s,h=0,p=0,g=0,v=1,w=1,y=1,x=0,b="",E=o,T=i,S=r,C=b;w;)switch(g=x,x=Ae()){case 40:if(g!=108&&ie(C,c-1)==58){cn(C+=B(or(x),"&","&\f"),"&\f",ls(d?a[d-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:C+=or(x);break;case 9:case 10:case 13:case 32:C+=Wc(g);break;case 92:C+=Kc(hn()-1,7);continue;case 47:switch(Je()){case 42:case 47:Rt(qc(Yc(Ae(),hn()),t,n,l),l);break;default:C+="/"}break;case 123*v:a[d++]=Ne(C)*y;case 125*v:case 59:case 0:switch(x){case 0:case 125:w=0;case 59+u:y==-1&&(C=B(C,/\f/g,"")),p>0&&Ne(C)-c&&Rt(p>32?ps(C+";",r,n,c-1,l):ps(B(C," ","")+";",r,n,c-2,l),l);break;case 59:C+=";";default:if(Rt(S=fs(C,t,n,d,u,o,a,b,E=[],T=[],c,i),i),x===123)if(u===0)pn(C,t,S,S,E,i,c,a,T);else switch(h===99&&ie(C,3)===110?100:h){case 100:case 108:case 109:case 115:pn(e,S,S,r&&Rt(fs(e,S,S,0,0,o,a,b,o,E=[],c,T),T),o,T,c,a,r?E:T);break;default:pn(C,S,S,S,[""],T,0,a,T)}}d=u=p=0,v=y=1,b=C="",c=s;break;case 58:c=1+Ne(C),p=g;default:if(v<1){if(x==123)--v;else if(x==125&&v++==0&&_c()==125)continue}switch(C+=tr(x),x*v){case 38:y=u>0?1:(C+="\f",-1);break;case 44:a[d++]=(Ne(C)-1)*y,y=1;break;case 64:Je()===45&&(C+=or(Ae())),h=Je(),u=c=Ne(b=C+=Gc(hn())),x++;break;case 45:g===45&&Ne(C)==2&&(v=0)}}return i}function fs(e,t,n,r,o,i,s,a,l,d,u,c){for(var h=o-1,p=o===0?i:[""],g=ds(p),v=0,w=0,y=0;v<r;++v)for(var x=0,b=mt(e,h+1,h=ls(w=s[v])),E=e;x<g;++x)(E=cs(w>0?p[x]+" "+b:B(b,/&\f/g,p[x])))&&(l[y++]=E);return un(e,t,n,o===0?ln:a,l,d,u,c)}function qc(e,t,n,r){return un(e,t,n,is,tr(zc()),mt(e,2,-2),0,r)}function ps(e,t,n,r,o){return un(e,t,n,er,mt(e,0,r),mt(e,r+1,-1),r,o)}function ms(e,t,n){switch(jc(e,t)){case 5103:return U+"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 U+e+e;case 4789:return jt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+jt+e+X+e+e;case 5936:switch(ie(e,t+11)){case 114:return U+e+X+B(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+X+B(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+X+B(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return U+e+X+e+e;case 6165:return U+e+X+"flex-"+e+e;case 5187:return U+e+B(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+X+"flex-$1$2")+e;case 5443:return U+e+X+"flex-item-"+B(e,/flex-|-self/g,"")+(Oe(e,/flex-|baseline/)?"":X+"grid-row-"+B(e,/flex-|-self/g,""))+e;case 4675:return U+e+X+"flex-line-pack"+B(e,/align-content|flex-|-self/g,"")+e;case 5548:return U+e+X+B(e,"shrink","negative")+e;case 5292:return U+e+X+B(e,"basis","preferred-size")+e;case 6060:return U+"box-"+B(e,"-grow","")+U+e+X+B(e,"grow","positive")+e;case 4554:return U+B(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return B(B(B(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return B(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return B(B(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+X+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4200:if(!Oe(e,/flex-|baseline/))return X+"grid-column-align"+mt(e,t)+e;break;case 2592:case 3360:return X+B(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Oe(r.props,/grid-\w+-end/)})?~cn(e+(n=n[t].value),"span",0)?e:X+B(e,"-start","")+e+X+"grid-row-span:"+(~cn(n,"span",0)?Oe(n,/\d+/):+Oe(n,/\d+/)-+Oe(e,/\d+/))+";":X+B(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Oe(r.props,/grid-\w+-start/)})?e:X+B(B(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return B(e,/(.+)-inline(.+)/,U+"$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(Ne(e)-1-t>6)switch(ie(e,t+1)){case 109:if(ie(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+jt+(ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cn(e,"stretch",0)?ms(B(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return B(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,a,l,d){return X+o+":"+i+d+(s?X+o+"-span:"+(a?l:+l-+i)+d:"")+e});case 4949:if(ie(e,t+6)===121)return B(e,":",":"+U)+e;break;case 6444:switch(ie(e,ie(e,14)===45?18:11)){case 120:return B(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+U+(ie(e,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+X+"$2box$3")+e;case 100:return B(e,":",":"+X)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return B(e,"scroll-","scroll-snap-")+e}return e}function mn(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Zc(e,t,n,r){switch(e.type){case Fc:if(e.children.length)break;case Oc:case er:return e.return=e.return||e.value;case is:return"";case as:return e.return=e.value+"{"+mn(e.children,r)+"}";case ln:if(!Ne(e.value=e.props.join(",")))return""}return Ne(n=mn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Jc(e){var t=ds(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function Qc(e){return function(t){t.root||(t=t.return)&&e(t)}}function ed(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case er:e.return=ms(e.value,e.length,n);return;case as:return mn([He(e,{value:B(e.value,"@","@"+U)})],r);case ln:if(e.length)return Rc(n=e.props,function(o){switch(Oe(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":vt(He(e,{props:[B(o,/:(read-\w+)/,":"+jt+"$1")]})),vt(He(e,{props:[o]})),nr(e,{props:us(n,r)});break;case"::placeholder":vt(He(e,{props:[B(o,/:(plac\w+)/,":"+U+"input-$1")]})),vt(He(e,{props:[B(o,/:(plac\w+)/,":"+jt+"$1")]})),vt(He(e,{props:[B(o,/:(plac\w+)/,X+"input-$1")]})),vt(He(e,{props:[o]})),nr(e,{props:us(n,r)});break}return""})}}var td={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},Qe=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",gs="active",ys="data-styled-version",gn="6.1.19",ir=`/*!sc*/
2
- `,yn=typeof window<"u"&&typeof document<"u",nd=!!(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"),vs=/invalid hook call/i,vn=new Set,rd=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
1
+ (function(E,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("react/jsx-runtime"),require("react-dom"),require("formik")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom","formik"],f):(E=typeof globalThis<"u"?globalThis:E||self,f(E["tcce-design-system-components"]={},E.React,E["react/jsx-runtime"],E.ReactDOM,E.Formik))})(this,(function(E,f,p,si,Lc){"use strict";function Bc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const cn=Bc(f);var me=function(){return me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},me.apply(this,arguments)};function mt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Oc(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Fc=/^((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)-.*))$/,jc=Oc(function(e){return Fc.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),X="-ms-",Rt="-moz-",U="-webkit-",ai="comm",dn="rule",er="decl",Rc="@import",li="@keyframes",zc="@layer",ci=Math.abs,tr=String.fromCharCode,nr=Object.assign;function _c(e,t){return se(e,0)^45?(((t<<2^se(e,0))<<2^se(e,1))<<2^se(e,2))<<2^se(e,3):0}function di(e){return e.trim()}function Oe(e,t){return(e=t.exec(e))?e[0]:e}function B(e,t,n){return e.replace(t,n)}function un(e,t,n){return e.indexOf(t,n)}function se(e,t){return e.charCodeAt(t)|0}function gt(e,t,n){return e.slice(t,n)}function Ne(e){return e.length}function ui(e){return e.length}function zt(e,t){return t.push(e),e}function Hc(e,t){return e.map(t).join("")}function hi(e,t){return e.filter(function(n){return!Oe(n,t)})}var hn=1,yt=1,fi=0,xe=0,te=0,vt="";function fn(e,t,n,r,o,s,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:hn,column:yt,length:i,return:"",siblings:a}}function Ue(e,t){return nr(fn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function bt(e){for(;e.root;)e=Ue(e.root,{children:[e]});zt(e,e.siblings)}function Uc(){return te}function Wc(){return te=xe>0?se(vt,--xe):0,yt--,te===10&&(yt=1,hn--),te}function Ae(){return te=xe<fi?se(vt,xe++):0,yt++,te===10&&(yt=1,hn++),te}function et(){return se(vt,xe)}function pn(){return xe}function mn(e,t){return gt(vt,e,t)}function rr(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 Kc(e){return hn=yt=1,fi=Ne(vt=e),xe=0,[]}function Yc(e){return vt="",e}function or(e){return di(mn(xe-1,ir(e===91?e+2:e===40?e+1:e)))}function Gc(e){for(;(te=et())&&te<33;)Ae();return rr(e)>2||rr(te)>3?"":" "}function Xc(e,t){for(;--t&&Ae()&&!(te<48||te>102||te>57&&te<65||te>70&&te<97););return mn(e,pn()+(t<6&&et()==32&&Ae()==32))}function ir(e){for(;Ae();)switch(te){case e:return xe;case 34:case 39:e!==34&&e!==39&&ir(te);break;case 40:e===41&&ir(e);break;case 92:Ae();break}return xe}function qc(e,t){for(;Ae()&&e+te!==57;)if(e+te===84&&et()===47)break;return"/*"+mn(t,xe-1)+"*"+tr(e===47?e:Ae())}function Zc(e){for(;!rr(et());)Ae();return mn(e,xe)}function Jc(e){return Yc(gn("",null,null,null,[""],e=Kc(e),0,[0],e))}function gn(e,t,n,r,o,s,i,a,c){for(var d=0,u=0,l=i,h=0,m=0,g=0,v=1,w=1,y=1,x=0,b="",A=o,C=s,S=r,k=b;w;)switch(g=x,x=Ae()){case 40:if(g!=108&&se(k,l-1)==58){un(k+=B(or(x),"&","&\f"),"&\f",ci(d?a[d-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:k+=or(x);break;case 9:case 10:case 13:case 32:k+=Gc(g);break;case 92:k+=Xc(pn()-1,7);continue;case 47:switch(et()){case 42:case 47:zt(Qc(qc(Ae(),pn()),t,n,c),c);break;default:k+="/"}break;case 123*v:a[d++]=Ne(k)*y;case 125*v:case 59:case 0:switch(x){case 0:case 125:w=0;case 59+u:y==-1&&(k=B(k,/\f/g,"")),m>0&&Ne(k)-l&&zt(m>32?mi(k+";",r,n,l-1,c):mi(B(k," ","")+";",r,n,l-2,c),c);break;case 59:k+=";";default:if(zt(S=pi(k,t,n,d,u,o,a,b,A=[],C=[],l,s),s),x===123)if(u===0)gn(k,t,S,S,A,s,l,a,C);else switch(h===99&&se(k,3)===110?100:h){case 100:case 108:case 109:case 115:gn(e,S,S,r&&zt(pi(e,S,S,0,0,o,a,b,o,A=[],l,C),C),o,C,l,a,r?A:C);break;default:gn(k,S,S,S,[""],C,0,a,C)}}d=u=m=0,v=y=1,b=k="",l=i;break;case 58:l=1+Ne(k),m=g;default:if(v<1){if(x==123)--v;else if(x==125&&v++==0&&Wc()==125)continue}switch(k+=tr(x),x*v){case 38:y=u>0?1:(k+="\f",-1);break;case 44:a[d++]=(Ne(k)-1)*y,y=1;break;case 64:et()===45&&(k+=or(Ae())),h=et(),u=l=Ne(b=k+=Zc(pn())),x++;break;case 45:g===45&&Ne(k)==2&&(v=0)}}return s}function pi(e,t,n,r,o,s,i,a,c,d,u,l){for(var h=o-1,m=o===0?s:[""],g=ui(m),v=0,w=0,y=0;v<r;++v)for(var x=0,b=gt(e,h+1,h=ci(w=i[v])),A=e;x<g;++x)(A=di(w>0?m[x]+" "+b:B(b,/&\f/g,m[x])))&&(c[y++]=A);return fn(e,t,n,o===0?dn:a,c,d,u,l)}function Qc(e,t,n,r){return fn(e,t,n,ai,tr(Uc()),gt(e,2,-2),0,r)}function mi(e,t,n,r,o){return fn(e,t,n,er,gt(e,0,r),gt(e,r+1,-1),r,o)}function gi(e,t,n){switch(_c(e,t)){case 5103:return U+"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 U+e+e;case 4789:return Rt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+Rt+e+X+e+e;case 5936:switch(se(e,t+11)){case 114:return U+e+X+B(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+X+B(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+X+B(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return U+e+X+e+e;case 6165:return U+e+X+"flex-"+e+e;case 5187:return U+e+B(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+X+"flex-$1$2")+e;case 5443:return U+e+X+"flex-item-"+B(e,/flex-|-self/g,"")+(Oe(e,/flex-|baseline/)?"":X+"grid-row-"+B(e,/flex-|-self/g,""))+e;case 4675:return U+e+X+"flex-line-pack"+B(e,/align-content|flex-|-self/g,"")+e;case 5548:return U+e+X+B(e,"shrink","negative")+e;case 5292:return U+e+X+B(e,"basis","preferred-size")+e;case 6060:return U+"box-"+B(e,"-grow","")+U+e+X+B(e,"grow","positive")+e;case 4554:return U+B(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return B(B(B(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return B(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return B(B(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+X+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4200:if(!Oe(e,/flex-|baseline/))return X+"grid-column-align"+gt(e,t)+e;break;case 2592:case 3360:return X+B(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Oe(r.props,/grid-\w+-end/)})?~un(e+(n=n[t].value),"span",0)?e:X+B(e,"-start","")+e+X+"grid-row-span:"+(~un(n,"span",0)?Oe(n,/\d+/):+Oe(n,/\d+/)-+Oe(e,/\d+/))+";":X+B(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Oe(r.props,/grid-\w+-start/)})?e:X+B(B(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return B(e,/(.+)-inline(.+)/,U+"$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(Ne(e)-1-t>6)switch(se(e,t+1)){case 109:if(se(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+Rt+(se(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~un(e,"stretch",0)?gi(B(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return B(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,i,a,c,d){return X+o+":"+s+d+(i?X+o+"-span:"+(a?c:+c-+s)+d:"")+e});case 4949:if(se(e,t+6)===121)return B(e,":",":"+U)+e;break;case 6444:switch(se(e,se(e,14)===45?18:11)){case 120:return B(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+U+(se(e,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+X+"$2box$3")+e;case 100:return B(e,":",":"+X)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return B(e,"scroll-","scroll-snap-")+e}return e}function yn(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function ed(e,t,n,r){switch(e.type){case zc:if(e.children.length)break;case Rc:case er:return e.return=e.return||e.value;case ai:return"";case li:return e.return=e.value+"{"+yn(e.children,r)+"}";case dn:if(!Ne(e.value=e.props.join(",")))return""}return Ne(n=yn(e.children,r))?e.return=e.value+"{"+n+"}":""}function td(e){var t=ui(e);return function(n,r,o,s){for(var i="",a=0;a<t;a++)i+=e[a](n,r,o,s)||"";return i}}function nd(e){return function(t){t.root||(t=t.return)&&e(t)}}function rd(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case er:e.return=gi(e.value,e.length,n);return;case li:return yn([Ue(e,{value:B(e.value,"@","@"+U)})],r);case dn:if(e.length)return Hc(n=e.props,function(o){switch(Oe(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":bt(Ue(e,{props:[B(o,/:(read-\w+)/,":"+Rt+"$1")]})),bt(Ue(e,{props:[o]})),nr(e,{props:hi(n,r)});break;case"::placeholder":bt(Ue(e,{props:[B(o,/:(plac\w+)/,":"+U+"input-$1")]})),bt(Ue(e,{props:[B(o,/:(plac\w+)/,":"+Rt+"$1")]})),bt(Ue(e,{props:[B(o,/:(plac\w+)/,X+"input-$1")]})),bt(Ue(e,{props:[o]})),nr(e,{props:hi(n,r)});break}return""})}}var od={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},tt=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",yi="active",vi="data-styled-version",vn="6.1.19",sr=`/*!sc*/
2
+ `,bn=typeof window<"u"&&typeof document<"u",id=!!(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"),bi=/invalid hook call/i,wn=new Set,sd=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
3
3
  `)+`You may see this warning because you've called styled inside another component.
4
4
  To resolve this only create new StyledComponents outside of any render method and function component.
5
5
  See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
6
- `,o=console.error;try{var i=!0;console.error=function(s){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];vs.test(s)?(i=!1,vn.delete(r)):o.apply(void 0,pt([s],a,!1))},f.useRef(),i&&!vn.has(r)&&(console.warn(r),vn.add(r))}catch(s){vs.test(s.message)&&vn.delete(r)}finally{console.error=o}}},bn=Object.freeze([]),bt=Object.freeze({});function od(e,t,n){return n===void 0&&(n=bt),e.theme!==n.theme&&e.theme||t||n.theme}var ar=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"]),sd=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,id=/(^-|-$)/g;function bs(e){return e.replace(sd,"-").replace(id,"")}var ad=/(a)(d)/gi,wn=52,ws=function(e){return String.fromCharCode(e+(e>25?39:97))};function lr(e){var t,n="";for(t=Math.abs(e);t>wn;t=t/wn|0)n=ws(t%wn)+n;return(ws(t%wn)+n).replace(ad,"$1-$2")}var cr,xs=5381,et=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ss=function(e){return et(xs,e)};function ld(e){return lr(Ss(e)>>>0)}function Ts(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function dr(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Cs=typeof Symbol=="function"&&Symbol.for,ks=Cs?Symbol.for("react.memo"):60115,cd=Cs?Symbol.for("react.forward_ref"):60112,dd={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ud={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ps={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},hd=((cr={})[cd]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},cr[ks]=Ps,cr);function Es(e){return("type"in(t=e)&&t.type.$$typeof)===ks?Ps:"$$typeof"in e?hd[e.$$typeof]:dd;var t}var fd=Object.defineProperty,pd=Object.getOwnPropertyNames,As=Object.getOwnPropertySymbols,md=Object.getOwnPropertyDescriptor,gd=Object.getPrototypeOf,Ds=Object.prototype;function Ms(e,t,n){if(typeof t!="string"){if(Ds){var r=gd(t);r&&r!==Ds&&Ms(e,r,n)}var o=pd(t);As&&(o=o.concat(As(t)));for(var i=Es(e),s=Es(t),a=0;a<o.length;++a){var l=o[a];if(!(l in ud||n&&n[l]||s&&l in s||i&&l in i)){var d=md(t,l);try{fd(e,l,d)}catch{}}}}return e}function wt(e){return typeof e=="function"}function ur(e){return typeof e=="object"&&"styledComponentId"in e}function tt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function $s(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function xt(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function hr(e,t,n){if(n===void 0&&(n=!1),!n&&!xt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=hr(e[r],t[r]);else if(xt(t))for(var r in t)e[r]=hr(e[r],t[r]);return e}function fr(e,t){Object.defineProperty(e,"toString",{value:t})}var yd=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
6
+ `,o=console.error;try{var s=!0;console.error=function(i){for(var a=[],c=1;c<arguments.length;c++)a[c-1]=arguments[c];bi.test(i)?(s=!1,wn.delete(r)):o.apply(void 0,mt([i],a,!1))},f.useRef(),s&&!wn.has(r)&&(console.warn(r),wn.add(r))}catch(i){bi.test(i.message)&&wn.delete(r)}finally{console.error=o}}},xn=Object.freeze([]),wt=Object.freeze({});function ad(e,t,n){return n===void 0&&(n=wt),e.theme!==n.theme&&e.theme||t||n.theme}var ar=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"]),ld=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,cd=/(^-|-$)/g;function wi(e){return e.replace(ld,"-").replace(cd,"")}var dd=/(a)(d)/gi,Sn=52,xi=function(e){return String.fromCharCode(e+(e>25?39:97))};function lr(e){var t,n="";for(t=Math.abs(e);t>Sn;t=t/Sn|0)n=xi(t%Sn)+n;return(xi(t%Sn)+n).replace(dd,"$1-$2")}var cr,Si=5381,nt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ti=function(e){return nt(Si,e)};function ud(e){return lr(Ti(e)>>>0)}function Ci(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function dr(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var ki=typeof Symbol=="function"&&Symbol.for,Pi=ki?Symbol.for("react.memo"):60115,hd=ki?Symbol.for("react.forward_ref"):60112,fd={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},pd={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ei={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},md=((cr={})[hd]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},cr[Pi]=Ei,cr);function Ai(e){return("type"in(t=e)&&t.type.$$typeof)===Pi?Ei:"$$typeof"in e?md[e.$$typeof]:fd;var t}var gd=Object.defineProperty,yd=Object.getOwnPropertyNames,Di=Object.getOwnPropertySymbols,vd=Object.getOwnPropertyDescriptor,bd=Object.getPrototypeOf,Mi=Object.prototype;function Vi(e,t,n){if(typeof t!="string"){if(Mi){var r=bd(t);r&&r!==Mi&&Vi(e,r,n)}var o=yd(t);Di&&(o=o.concat(Di(t)));for(var s=Ai(e),i=Ai(t),a=0;a<o.length;++a){var c=o[a];if(!(c in pd||n&&n[c]||i&&c in i||s&&c in s)){var d=vd(t,c);try{gd(e,c,d)}catch{}}}}return e}function xt(e){return typeof e=="function"}function ur(e){return typeof e=="object"&&"styledComponentId"in e}function rt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function $i(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function St(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function hr(e,t,n){if(n===void 0&&(n=!1),!n&&!St(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=hr(e[r],t[r]);else if(St(t))for(var r in t)e[r]=hr(e[r],t[r]);return e}function fr(e,t){Object.defineProperty(e,"toString",{value:t})}var wd=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
7
7
 
8
8
  `,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.
9
9
 
@@ -44,7 +44,7 @@ as for instance in your render method then you may be running into this limitati
44
44
 
45
45
  `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
46
46
  Has styled-components' style tag been unmounted or altered by another script?
47
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function vd(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(s){n=n.replace(/%[a-z]/,s)}),n}function St(e){for(var t=[],n=1;n<arguments.length;n++)t[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(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(vd.apply(void 0,pt([yd[e]],t,!1)).trim())}var bd=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,i=o;t>=i;)if((i<<=1)<0)throw St(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var s=o;s<i;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(t+1),l=(s=0,n.length);s<l;s++)this.tag.insertRule(a,n[s])&&(this.groupSizes[t]++,a++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var i=r;i<o;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),i=o+r,s=o;s<i;s++)n+="".concat(this.tag.getRule(s)).concat(ir);return n},e})(),wd=1<<30,xn=new Map,Sn=new Map,Tn=1,Cn=function(e){if(xn.has(e))return xn.get(e);for(;Sn.has(Tn);)Tn++;var t=Tn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>wd))throw St(16,"".concat(t));return xn.set(e,t),Sn.set(t,e),t},xd=function(e,t){Tn=t+1,xn.set(e,t),Sn.set(t,e)},Sd="style[".concat(Qe,"][").concat(ys,'="').concat(gn,'"]'),Td=new RegExp("^".concat(Qe,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Cd=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},kd=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(ir),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var l=a.match(Td);if(l){var d=0|parseInt(l[1],10),u=l[2];d!==0&&(xd(u,d),Cd(e,u,l[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(a)}}},Vs=function(e){for(var t=document.querySelectorAll(Sd),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Qe)!==gs&&(kd(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Pd(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Is=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var l=Array.from(a.querySelectorAll("style[".concat(Qe,"]")));return l[l.length-1]})(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(Qe,gs),r.setAttribute(ys,gn);var s=Pd();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},Ed=(function(){function e(t){this.element=Is(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,i=r.length;o<i;o++){var s=r[o];if(s.ownerNode===n)return s}throw St(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),Ad=(function(){function e(t){this.element=Is(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),Dd=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Ns=yn,Md={isServer:!yn,useCSSOMInjection:!nd},Ls=(function(){function e(t,n,r){t===void 0&&(t=bt),n===void 0&&(n={});var o=this;this.options=me(me({},Md),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&yn&&Ns&&(Ns=!1,Vs(this)),fr(this,function(){return(function(i){for(var s=i.getTag(),a=s.length,l="",d=function(c){var h=(function(y){return Sn.get(y)})(c);if(h===void 0)return"continue";var p=i.names.get(h),g=s.getGroup(c);if(p===void 0||!p.size||g.length===0)return"continue";var v="".concat(Qe,".g").concat(c,'[id="').concat(h,'"]'),w="";p!==void 0&&p.forEach(function(y){y.length>0&&(w+="".concat(y,","))}),l+="".concat(g).concat(v,'{content:"').concat(w,'"}').concat(ir)},u=0;u<a;u++)d(u);return l})(o)})}return e.registerId=function(t){return Cn(t)},e.prototype.rehydrate=function(){!this.server&&yn&&Vs(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(me(me({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new Dd(o):r?new Ed(o):new Ad(o)})(this.options),new bd(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Cn(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(Cn(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Cn(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),$d=/&/g,Vd=/^\s*\/\/.*$/gm;function Bs(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Bs(n.children,t)),n})}function Id(e){var t,n,r,o=bt,i=o.options,s=i===void 0?bt:i,a=o.plugins,l=a===void 0?bn:a,d=function(h,p,g){return g.startsWith(n)&&g.endsWith(n)&&g.replaceAll(n,"").length>0?".".concat(t):h},u=l.slice();u.push(function(h){h.type===ln&&h.value.includes("&")&&(h.props[0]=h.props[0].replace($d,n).replace(r,d))}),s.prefix&&u.push(ed),u.push(Zc);var c=function(h,p,g,v){p===void 0&&(p=""),g===void 0&&(g=""),v===void 0&&(v="&"),t=v,n=p,r=new RegExp("\\".concat(n,"\\b"),"g");var w=h.replace(Vd,""),y=Xc(g||p?"".concat(g," ").concat(p," { ").concat(w," }"):w);s.namespace&&(y=Bs(y,s.namespace));var x=[];return mn(y,Jc(u.concat(Qc(function(b){return x.push(b)})))),x};return c.hash=l.length?l.reduce(function(h,p){return p.name||St(15),et(h,p.name)},xs).toString():"",c}var Nd=new Ls,pr=Id(),Os=f.createContext({shouldForwardProp:void 0,styleSheet:Nd,stylis:pr});Os.Consumer,f.createContext(void 0);function Fs(){return f.useContext(Os)}var js=(function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=pr);var s=r.name+i.hash;o.hasNameForId(r.id,s)||o.insertRules(r.id,s,i(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,fr(this,function(){throw St(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=pr),this.name+t.hash},e})(),Ld=function(e){return e>="A"&&e<="Z"};function Rs(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Ld(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var zs=function(e){return e==null||e===!1||e===""},_s=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!zs(i)&&(Array.isArray(i)&&i.isCss||wt(i)?r.push("".concat(Rs(o),":"),i,";"):xt(i)?r.push.apply(r,pt(pt(["".concat(o," {")],_s(i),!1),["}"],!1)):r.push("".concat(Rs(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in td||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function nt(e,t,n,r){if(zs(e))return[];if(ur(e))return[".".concat(e.styledComponentId)];if(wt(e)){if(!wt(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof js||xt(o)||o===null||console.error("".concat(Ts(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.")),nt(o,t,n,r)}var i;return e instanceof js?n?(e.inject(n,r),[e.getName(r)]):[e]:xt(e)?_s(e):Array.isArray(e)?Array.prototype.concat.apply(bn,e.map(function(s){return nt(s,t,n,r)})):[e.toString()]}function Bd(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(wt(n)&&!ur(n))return!1}return!0}var Od=Ss(gn),Fd=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Bd(t),this.componentId=n,this.baseHash=et(Od,n),this.baseStyle=r,Ls.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=tt(o,this.staticRulesId);else{var i=$s(nt(this.rules,t,n,r)),s=lr(et(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,s)){var a=r(i,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,a)}o=tt(o,s),this.staticRulesId=s}else{for(var l=et(this.baseHash,r.hash),d="",u=0;u<this.rules.length;u++){var c=this.rules[u];if(typeof c=="string")d+=c,process.env.NODE_ENV!=="production"&&(l=et(l,c));else if(c){var h=$s(nt(c,t,n,r));l=et(l,h+u),d+=h}}if(d){var p=lr(l>>>0);n.hasNameForId(this.componentId,p)||n.insertRules(this.componentId,p,r(d,".".concat(p),void 0,this.componentId)),o=tt(o,p)}}return o},e})(),Hs=f.createContext(void 0);Hs.Consumer;var mr={},Us=new Set;function jd(e,t,n){var r=ur(e),o=e,i=!dr(e),s=t.attrs,a=s===void 0?bn:s,l=t.componentId,d=l===void 0?(function(E,T){var S=typeof E!="string"?"sc":bs(E);mr[S]=(mr[S]||0)+1;var C="".concat(S,"-").concat(ld(gn+S+mr[S]));return T?"".concat(T,"-").concat(C):C})(t.displayName,t.parentComponentId):l,u=t.displayName,c=u===void 0?(function(E){return dr(E)?"styled.".concat(E):"Styled(".concat(Ts(E),")")})(e):u,h=t.displayName&&t.componentId?"".concat(bs(t.displayName),"-").concat(t.componentId):t.componentId||d,p=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,g=t.shouldForwardProp;if(r&&o.shouldForwardProp){var v=o.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;g=function(E,T){return v(E,T)&&w(E,T)}}else g=v}var y=new Fd(n,h,r?o.componentStyle:void 0);function x(E,T){return(function(S,C,D){var I=S.attrs,_=S.componentStyle,M=S.defaultProps,K=S.foldedComponentIds,W=S.styledComponentId,Pe=S.target,re=f.useContext(Hs),F=Fs(),N=S.shouldForwardProp||F.shouldForwardProp;process.env.NODE_ENV!=="production"&&f.useDebugValue(W);var R=od(C,re,M)||bt,V=(function(Y,ae,$e){for(var H,ve=me(me({},ae),{className:void 0,theme:$e}),qe=0;qe<Y.length;qe+=1){var ze=wt(H=Y[qe])?H(ve):H;for(var pe in ze)ve[pe]=pe==="className"?tt(ve[pe],ze[pe]):pe==="style"?me(me({},ve[pe]),ze[pe]):ze[pe]}return ae.className&&(ve.className=tt(ve.className,ae.className)),ve})(I,C,R),j=V.as||Pe,oe={};for(var se in V)V[se]===void 0||se[0]==="$"||se==="as"||se==="theme"&&V.theme===R||(se==="forwardedAs"?oe.as=V.forwardedAs:N&&!N(se,j)||(oe[se]=V[se],N||process.env.NODE_ENV!=="development"||Bc(se)||Us.has(se)||!ar.has(j)||(Us.add(se),console.warn('styled-components: it looks like an unknown prop "'.concat(se,'" 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 O=(function(Y,ae){var $e=Fs(),H=Y.generateAndInjectStyles(ae,$e.styleSheet,$e.stylis);return process.env.NODE_ENV!=="production"&&f.useDebugValue(H),H})(_,V);process.env.NODE_ENV!=="production"&&S.warnTooManyClasses&&S.warnTooManyClasses(O);var q=tt(K,W);return O&&(q+=" "+O),V.className&&(q+=" "+V.className),oe[dr(j)&&!ar.has(j)?"class":"className"]=q,D&&(oe.ref=D),f.createElement(j,oe)})(b,E,T)}x.displayName=c;var b=f.forwardRef(x);return b.attrs=p,b.componentStyle=y,b.displayName=c,b.shouldForwardProp=g,b.foldedComponentIds=r?tt(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=h,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(E){this._foldedDefaultProps=r?(function(T){for(var S=[],C=1;C<arguments.length;C++)S[C-1]=arguments[C];for(var D=0,I=S;D<I.length;D++)hr(T,I[D],!0);return T})({},o.defaultProps,E):E}}),process.env.NODE_ENV!=="production"&&(rd(c,h),b.warnTooManyClasses=(function(E,T){var S={},C=!1;return function(D){if(!C&&(S[D]=!0,Object.keys(S).length>=200)){var I=T?' with the id of "'.concat(T,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(E).concat(I,`.
47
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function xd(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}function Tt(e){for(var t=[],n=1;n<arguments.length;n++)t[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(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(xd.apply(void 0,mt([wd[e]],t,!1)).trim())}var Sd=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,s=o;t>=s;)if((s<<=1)<0)throw Tt(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var i=o;i<s;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(t+1),c=(i=0,n.length);i<c;i++)this.tag.insertRule(a,n[i])&&(this.groupSizes[t]++,a++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var s=r;s<o;s++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),s=o+r,i=o;i<s;i++)n+="".concat(this.tag.getRule(i)).concat(sr);return n},e})(),Td=1<<30,Tn=new Map,Cn=new Map,kn=1,Pn=function(e){if(Tn.has(e))return Tn.get(e);for(;Cn.has(kn);)kn++;var t=kn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Td))throw Tt(16,"".concat(t));return Tn.set(e,t),Cn.set(t,e),t},Cd=function(e,t){kn=t+1,Tn.set(e,t),Cn.set(t,e)},kd="style[".concat(tt,"][").concat(vi,'="').concat(vn,'"]'),Pd=new RegExp("^".concat(tt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ed=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r)},Ad=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(sr),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var c=a.match(Pd);if(c){var d=0|parseInt(c[1],10),u=c[2];d!==0&&(Cd(u,d),Ed(e,u,c[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(a)}}},Ii=function(e){for(var t=document.querySelectorAll(kd),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(tt)!==yi&&(Ad(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Dd(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Ni=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var c=Array.from(a.querySelectorAll("style[".concat(tt,"]")));return c[c.length-1]})(n),s=o!==void 0?o.nextSibling:null;r.setAttribute(tt,yi),r.setAttribute(vi,vn);var i=Dd();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},Md=(function(){function e(t){this.element=Ni(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,s=r.length;o<s;o++){var i=r[o];if(i.ownerNode===n)return i}throw Tt(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),Vd=(function(){function e(t){this.element=Ni(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),$d=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Li=bn,Id={isServer:!bn,useCSSOMInjection:!id},Bi=(function(){function e(t,n,r){t===void 0&&(t=wt),n===void 0&&(n={});var o=this;this.options=me(me({},Id),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&bn&&Li&&(Li=!1,Ii(this)),fr(this,function(){return(function(s){for(var i=s.getTag(),a=i.length,c="",d=function(l){var h=(function(y){return Cn.get(y)})(l);if(h===void 0)return"continue";var m=s.names.get(h),g=i.getGroup(l);if(m===void 0||!m.size||g.length===0)return"continue";var v="".concat(tt,".g").concat(l,'[id="').concat(h,'"]'),w="";m!==void 0&&m.forEach(function(y){y.length>0&&(w+="".concat(y,","))}),c+="".concat(g).concat(v,'{content:"').concat(w,'"}').concat(sr)},u=0;u<a;u++)d(u);return c})(o)})}return e.registerId=function(t){return Pn(t)},e.prototype.rehydrate=function(){!this.server&&bn&&Ii(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(me(me({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new $d(o):r?new Md(o):new Vd(o)})(this.options),new Sd(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Pn(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(Pn(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Pn(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Nd=/&/g,Ld=/^\s*\/\/.*$/gm;function Oi(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Oi(n.children,t)),n})}function Bd(e){var t,n,r,o=wt,s=o.options,i=s===void 0?wt:s,a=o.plugins,c=a===void 0?xn:a,d=function(h,m,g){return g.startsWith(n)&&g.endsWith(n)&&g.replaceAll(n,"").length>0?".".concat(t):h},u=c.slice();u.push(function(h){h.type===dn&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(Nd,n).replace(r,d))}),i.prefix&&u.push(rd),u.push(ed);var l=function(h,m,g,v){m===void 0&&(m=""),g===void 0&&(g=""),v===void 0&&(v="&"),t=v,n=m,r=new RegExp("\\".concat(n,"\\b"),"g");var w=h.replace(Ld,""),y=Jc(g||m?"".concat(g," ").concat(m," { ").concat(w," }"):w);i.namespace&&(y=Oi(y,i.namespace));var x=[];return yn(y,td(u.concat(nd(function(b){return x.push(b)})))),x};return l.hash=c.length?c.reduce(function(h,m){return m.name||Tt(15),nt(h,m.name)},Si).toString():"",l}var Od=new Bi,pr=Bd(),Fi=f.createContext({shouldForwardProp:void 0,styleSheet:Od,stylis:pr});Fi.Consumer,f.createContext(void 0);function ji(){return f.useContext(Fi)}var Ri=(function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=pr);var i=r.name+s.hash;o.hasNameForId(r.id,i)||o.insertRules(r.id,i,s(r.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,fr(this,function(){throw Tt(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=pr),this.name+t.hash},e})(),Fd=function(e){return e>="A"&&e<="Z"};function zi(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Fd(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var _i=function(e){return e==null||e===!1||e===""},Hi=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!_i(s)&&(Array.isArray(s)&&s.isCss||xt(s)?r.push("".concat(zi(o),":"),s,";"):St(s)?r.push.apply(r,mt(mt(["".concat(o," {")],Hi(s),!1),["}"],!1)):r.push("".concat(zi(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in od||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ot(e,t,n,r){if(_i(e))return[];if(ur(e))return[".".concat(e.styledComponentId)];if(xt(e)){if(!xt(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Ri||St(o)||o===null||console.error("".concat(Ci(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.")),ot(o,t,n,r)}var s;return e instanceof Ri?n?(e.inject(n,r),[e.getName(r)]):[e]:St(e)?Hi(e):Array.isArray(e)?Array.prototype.concat.apply(xn,e.map(function(i){return ot(i,t,n,r)})):[e.toString()]}function jd(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(xt(n)&&!ur(n))return!1}return!0}var Rd=Ti(vn),zd=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&jd(t),this.componentId=n,this.baseHash=nt(Rd,n),this.baseStyle=r,Bi.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=rt(o,this.staticRulesId);else{var s=$i(ot(this.rules,t,n,r)),i=lr(nt(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,i)){var a=r(s,".".concat(i),void 0,this.componentId);n.insertRules(this.componentId,i,a)}o=rt(o,i),this.staticRulesId=i}else{for(var c=nt(this.baseHash,r.hash),d="",u=0;u<this.rules.length;u++){var l=this.rules[u];if(typeof l=="string")d+=l,process.env.NODE_ENV!=="production"&&(c=nt(c,l));else if(l){var h=$i(ot(l,t,n,r));c=nt(c,h+u),d+=h}}if(d){var m=lr(c>>>0);n.hasNameForId(this.componentId,m)||n.insertRules(this.componentId,m,r(d,".".concat(m),void 0,this.componentId)),o=rt(o,m)}}return o},e})(),Ui=f.createContext(void 0);Ui.Consumer;var mr={},Wi=new Set;function _d(e,t,n){var r=ur(e),o=e,s=!dr(e),i=t.attrs,a=i===void 0?xn:i,c=t.componentId,d=c===void 0?(function(A,C){var S=typeof A!="string"?"sc":wi(A);mr[S]=(mr[S]||0)+1;var k="".concat(S,"-").concat(ud(vn+S+mr[S]));return C?"".concat(C,"-").concat(k):k})(t.displayName,t.parentComponentId):c,u=t.displayName,l=u===void 0?(function(A){return dr(A)?"styled.".concat(A):"Styled(".concat(Ci(A),")")})(e):u,h=t.displayName&&t.componentId?"".concat(wi(t.displayName),"-").concat(t.componentId):t.componentId||d,m=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,g=t.shouldForwardProp;if(r&&o.shouldForwardProp){var v=o.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;g=function(A,C){return v(A,C)&&w(A,C)}}else g=v}var y=new zd(n,h,r?o.componentStyle:void 0);function x(A,C){return(function(S,k,D){var I=S.attrs,_=S.componentStyle,M=S.defaultProps,K=S.foldedComponentIds,W=S.styledComponentId,Pe=S.target,re=f.useContext(Ui),F=ji(),N=S.shouldForwardProp||F.shouldForwardProp;process.env.NODE_ENV!=="production"&&f.useDebugValue(W);var R=ad(k,re,M)||wt,$=(function(G,ae,Ve){for(var H,ve=me(me({},ae),{className:void 0,theme:Ve}),Je=0;Je<G.length;Je+=1){var _e=xt(H=G[Je])?H(ve):H;for(var pe in _e)ve[pe]=pe==="className"?rt(ve[pe],_e[pe]):pe==="style"?me(me({},ve[pe]),_e[pe]):_e[pe]}return ae.className&&(ve.className=rt(ve.className,ae.className)),ve})(I,k,R),j=$.as||Pe,oe={};for(var ie in $)$[ie]===void 0||ie[0]==="$"||ie==="as"||ie==="theme"&&$.theme===R||(ie==="forwardedAs"?oe.as=$.forwardedAs:N&&!N(ie,j)||(oe[ie]=$[ie],N||process.env.NODE_ENV!=="development"||jc(ie)||Wi.has(ie)||!ar.has(j)||(Wi.add(ie),console.warn('styled-components: it looks like an unknown prop "'.concat(ie,'" 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 O=(function(G,ae){var Ve=ji(),H=G.generateAndInjectStyles(ae,Ve.styleSheet,Ve.stylis);return process.env.NODE_ENV!=="production"&&f.useDebugValue(H),H})(_,$);process.env.NODE_ENV!=="production"&&S.warnTooManyClasses&&S.warnTooManyClasses(O);var q=rt(K,W);return O&&(q+=" "+O),$.className&&(q+=" "+$.className),oe[dr(j)&&!ar.has(j)?"class":"className"]=q,D&&(oe.ref=D),f.createElement(j,oe)})(b,A,C)}x.displayName=l;var b=f.forwardRef(x);return b.attrs=m,b.componentStyle=y,b.displayName=l,b.shouldForwardProp=g,b.foldedComponentIds=r?rt(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=h,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(A){this._foldedDefaultProps=r?(function(C){for(var S=[],k=1;k<arguments.length;k++)S[k-1]=arguments[k];for(var D=0,I=S;D<I.length;D++)hr(C,I[D],!0);return C})({},o.defaultProps,A):A}}),process.env.NODE_ENV!=="production"&&(sd(l,h),b.warnTooManyClasses=(function(A,C){var S={},k=!1;return function(D){if(!k&&(S[D]=!0,Object.keys(S).length>=200)){var I=C?' with the id of "'.concat(C,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(A).concat(I,`.
48
48
  `)+`Consider using the attrs method, together with a style object for frequently changed styles.
49
49
  Example:
50
50
  const Component = styled.div.attrs(props => ({
@@ -53,55 +53,55 @@ Example:
53
53
  },
54
54
  }))\`width: 100%;\`
55
55
 
56
- <Component />`),C=!0,S={}}}})(c,h)),fr(b,function(){return".".concat(b.styledComponentId)}),i&&Ms(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function Ws(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Ks=function(e){return Object.assign(e,{isCss:!0})};function P(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(wt(e)||xt(e))return Ks(nt(Ws(bn,pt([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?nt(r):Ks(nt(Ws(r,t)))}function gr(e,t,n){if(n===void 0&&(n=bt),!t)throw St(1,t);var r=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,n,P.apply(void 0,pt([o],i,!1)))};return r.attrs=function(o){return gr(e,t,me(me({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return gr(e,t,me(me({},n),o))},r}var Ys=function(e){return gr(jd,e)},k=Ys;ar.forEach(function(e){k[e]=Ys(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.
56
+ <Component />`),k=!0,S={}}}})(l,h)),fr(b,function(){return".".concat(b.styledComponentId)}),s&&Vi(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function Ki(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Yi=function(e){return Object.assign(e,{isCss:!0})};function P(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(xt(e)||St(e))return Yi(ot(Ki(xn,mt([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ot(r):Yi(ot(Ki(r,t)))}function gr(e,t,n){if(n===void 0&&(n=wt),!t)throw Tt(1,t);var r=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return e(t,n,P.apply(void 0,mt([o],s,!1)))};return r.attrs=function(o){return gr(e,t,me(me({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return gr(e,t,me(me({},n),o))},r}var Gi=function(e){return gr(_d,e)},T=Gi;ar.forEach(function(e){T[e]=Gi(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.
57
57
  Perhaps you're looking to import 'styled-components/native'?
58
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);var kn="__sc-".concat(Qe,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[kn]||(window[kn]=0),window[kn]===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.
58
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var En="__sc-".concat(tt,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[En]||(window[En]=0),window[En]===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.
59
59
 
60
- See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
60
+ See https://s-c.sh/2BAXzed for more info.`),window[En]+=1);const yr={80:P`
61
61
  font-family: 'Dax', serif;
62
- font-size: 5rem;
62
+ font-size: 5em;
63
63
  font-style: normal;
64
64
  font-weight: 700;
65
65
  line-height: 163.184%;
66
66
  `,60:P`
67
67
  font-family: 'Dax', serif;
68
- font-size: 3.75rem;
68
+ font-size: 3.75em;
69
69
  font-style: normal;
70
70
  font-weight: 700;
71
71
  line-height: 161.76%;
72
72
  `,40:P`
73
73
  font-family: 'Dax', serif;
74
- font-size: 2.5rem;
74
+ font-size: 2.5em;
75
75
  font-style: normal;
76
76
  font-weight: 700;
77
77
  line-height: 161.76%;
78
78
  `,30:P`
79
79
  font-family: 'Dax', serif;
80
- font-size: 1.875rem;
80
+ font-size: 1.875em;
81
81
  font-style: normal;
82
82
  font-weight: 700;
83
83
  line-height: 161.76%;
84
84
  `,24:P`
85
85
  font-family: 'Dax', serif;
86
- font-size: 1.5rem;
86
+ font-size: 1.5em;
87
87
  font-style: normal;
88
88
  font-weight: 700;
89
89
  line-height: 163.184%;
90
90
  `,20:P`
91
91
  font-family: 'Dax', serif;
92
- font-size: 1.25rem;
92
+ font-size: 1.25em;
93
93
  font-style: normal;
94
94
  font-weight: 700;
95
95
  line-height: 161.76%;
96
96
  `,16:P`
97
97
  font-family: 'Dax', serif;
98
- font-size: 1rem;
98
+ font-size: 1em;
99
99
  font-style: normal;
100
100
  font-weight: 700;
101
101
  line-height: 161.76%;
102
- `},Gs={80:P`
102
+ `},Xi={80:P`
103
103
  font-family: 'Dax', serif;
104
- font-size: 5rem;
104
+ font-size: 5em;
105
105
  font-style: normal;
106
106
  font-weight: 400;
107
107
  line-height: 163.184%;
@@ -113,107 +113,107 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
113
113
  line-height: 161.76%;
114
114
  `,40:P`
115
115
  font-family: 'Dax', serif;
116
- font-size: 2.5rem;
116
+ font-size: 2.5em;
117
117
  font-style: normal;
118
118
  font-weight: 400;
119
119
  line-height: 161.76%;
120
120
  `,30:P`
121
121
  font-family: 'Dax', serif;
122
- font-size: 1.875rem;
122
+ font-size: 1.875em;
123
123
  font-style: normal;
124
124
  font-weight: 400;
125
125
  line-height: 161.76%;
126
126
  `,24:P`
127
127
  font-family: 'Dax', serif;
128
- font-size: 1.5rem;
128
+ font-size: 1.5em;
129
129
  font-style: normal;
130
130
  font-weight: 400;
131
131
  line-height: 163.184%;
132
132
  `,20:P`
133
133
  font-family: 'Dax', serif;
134
- font-size: 1.25rem;
134
+ font-size: 1.25em;
135
135
  font-style: normal;
136
136
  font-weight: 400;
137
137
  line-height: 161.76%;
138
138
  `,16:P`
139
139
  font-family: 'Dax', serif;
140
- font-size: 1rem;
140
+ font-size: 1em;
141
141
  font-style: normal;
142
142
  font-weight: 400;
143
143
  line-height: 161.76%;
144
144
  `},z={80:P`
145
145
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
146
- font-size: 5rem;
146
+ font-size: 5em;
147
147
  font-style: normal;
148
148
  font-weight: 400;
149
149
  line-height: 155.962%;
150
150
  `,60:P`
151
151
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
152
- font-size: 3.75rem;
152
+ font-size: 3.75em;
153
153
  font-style: normal;
154
154
  font-weight: 400;
155
155
  line-height: 176.782%;
156
156
  `,40:P`
157
157
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
158
- font-size: 2.5rem;
158
+ font-size: 2.5em;
159
159
  font-style: normal;
160
160
  font-weight: 400;
161
161
  line-height: 176.782%;
162
162
  `,30:P`
163
163
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
164
- font-size: 1.875rem;
164
+ font-size: 1.875em;
165
165
  font-style: normal;
166
166
  font-weight: 400;
167
167
  line-height: 176.782%;
168
168
  `,24:P`
169
169
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
170
- font-size: 1.5rem;
170
+ font-size: 1.5em;
171
171
  font-style: normal;
172
172
  font-weight: 400;
173
173
  line-height: 176.782%;
174
174
  `,20:P`
175
175
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
176
- font-size: 1.25rem;
176
+ font-size: 1.25em;
177
177
  font-style: normal;
178
178
  font-weight: 400;
179
179
  line-height: 155.962%;
180
180
  `,18:P`
181
181
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
182
- font-size: 1.125rem;
182
+ font-size: 1.125em;
183
183
  font-style: normal;
184
184
  font-weight: 400;
185
185
  line-height: 150.782%;
186
186
  `,16:P`
187
187
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
188
- font-size: 1rem;
188
+ font-size: 1em;
189
189
  font-style: normal;
190
190
  font-weight: 400;
191
191
  line-height: 140%;
192
192
  `,14:P`
193
193
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
194
- font-size: 0.875rem;
194
+ font-size: 0.875em;
195
195
  font-style: normal;
196
196
  font-weight: 400;
197
197
  line-height: 140%;
198
198
  `,12:P`
199
199
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
200
- font-size: 0.875rem;
200
+ font-size: 0.75em;
201
201
  font-style: normal;
202
202
  font-weight: 400;
203
203
  line-height: 133%;
204
- `},Pn=k.h1`
204
+ `},An=T.h1`
205
205
  ${({size:e=24})=>yr[e]}
206
206
  margin: 0;
207
207
  color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
208
- `,Rd=k.h2`
209
- ${({size:e=24})=>Gs[e]}
208
+ `,Hd=T.h2`
209
+ ${({size:e=24})=>Xi[e]}
210
210
  margin: 0;
211
211
  color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
212
- `,En=k.span`
212
+ `,We=T.span`
213
213
  ${({size:e=16})=>z[e]}
214
214
  margin: 0;
215
215
  color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
216
- `,zd=k.span`
216
+ `,Ud=T.span`
217
217
  display: inline-flex;
218
218
  align-items: center;
219
219
  justify-content: center;
@@ -223,15 +223,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
223
223
  outline: none;
224
224
  box-shadow: var(--shadow-hover-black-card);
225
225
  }
226
- `,Xs={tn:"1rem",sm:"1.5rem",md:"2rem",lg:"3rem"},G=({component:e,size:t="1.5rem",color:n="currentColor",className:r,iconProps:o={}})=>{const i=typeof t=="string"&&t in Xs?Xs[t]:t;return m.jsx(zd,{$color:n,className:r,children:typeof e=="function"?m.jsx(e,{size:i,...o}):e})},vr=f.createContext({});function br(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const wr=typeof window<"u",qs=wr?f.useLayoutEffect:f.useEffect,An=f.createContext(null);function xr(e,t){e.indexOf(t)===-1&&e.push(t)}function Sr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Fe=(e,t,n)=>n>t?t:n<e?e:n;function Tr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Tt=()=>{},je=()=>{};process.env.NODE_ENV!=="production"&&(Tt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Tr(t,n))},je=(e,t,n)=>{if(!e)throw new Error(Tr(t,n))});const Re={},Zs=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Js(e){return typeof e=="object"&&e!==null}const Qs=e=>/^0[^.\s]+$/u.test(e);function Cr(e){let t;return()=>(t===void 0&&(t=e()),t)}const Se=e=>e,_d=(e,t)=>n=>t(e(n)),zt=(...e)=>e.reduce(_d),_t=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class kr{constructor(){this.subscriptions=[]}add(t){return xr(this.subscriptions,t),()=>Sr(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const De=e=>e*1e3,Te=e=>e/1e3;function ei(e,t){return t?e*(1e3/t):0}const ti=new Set;function Pr(e,t,n){e||ti.has(t)||(console.warn(Tr(t,n)),ti.add(t))}const ni=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Hd=1e-7,Ud=12;function Wd(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=ni(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>Hd&&++a<Ud);return s}function Ht(e,t,n,r){if(e===t&&n===r)return Se;const o=i=>Wd(i,0,1,e,n);return i=>i===0||i===1?i:ni(o(i),t,r)}const ri=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,oi=e=>t=>1-e(1-t),si=Ht(.33,1.53,.69,.99),Er=oi(si),ii=ri(Er),ai=e=>(e*=2)<1?.5*Er(e):.5*(2-Math.pow(2,-10*(e-1))),Ar=e=>1-Math.sin(Math.acos(e)),li=oi(Ar),ci=ri(Ar),Kd=Ht(.42,0,1,1),Yd=Ht(0,0,.58,1),di=Ht(.42,0,.58,1),Gd=e=>Array.isArray(e)&&typeof e[0]!="number",ui=e=>Array.isArray(e)&&typeof e[0]=="number",hi={linear:Se,easeIn:Kd,easeInOut:di,easeOut:Yd,circIn:Ar,circInOut:ci,circOut:li,backIn:Er,backInOut:ii,backOut:si,anticipate:ai},Xd=e=>typeof e=="string",fi=e=>{if(ui(e)){je(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return Ht(t,n,r,o)}else if(Xd(e))return je(hi[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),hi[e];return e},Dn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function qd(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(d.schedule(u),e()),u(a)}const d={schedule:(u,c=!1,h=!1)=>{const g=h&&o?n:r;return c&&s.add(u),g.has(u)||g.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(l),n.clear(),o=!1,i&&(i=!1,d.process(u))}};return d}const Zd=40;function pi(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Dn.reduce((b,E)=>(b[E]=qd(i),b),{}),{setup:a,read:l,resolveKeyframes:d,preUpdate:u,update:c,preRender:h,render:p,postRender:g}=s,v=()=>{const b=Re.useManualTiming?o.timestamp:performance.now();n=!1,Re.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(b-o.timestamp,Zd),1)),o.timestamp=b,o.isProcessing=!0,a.process(o),l.process(o),d.process(o),u.process(o),c.process(o),h.process(o),p.process(o),g.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(v))},w=()=>{n=!0,r=!0,o.isProcessing||e(v)};return{schedule:Dn.reduce((b,E)=>{const T=s[E];return b[E]=(S,C=!1,D=!1)=>(n||w(),T.schedule(S,C,D)),b},{}),cancel:b=>{for(let E=0;E<Dn.length;E++)s[Dn[E]].cancel(b)},state:o,steps:s}}const{schedule:Z,cancel:Ue,state:ce,steps:Dr}=pi(typeof requestAnimationFrame<"u"?requestAnimationFrame:Se,!0);let Mn;function Jd(){Mn=void 0}const ge={now:()=>(Mn===void 0&&ge.set(ce.isProcessing||Re.useManualTiming?ce.timestamp:performance.now()),Mn),set:e=>{Mn=e,queueMicrotask(Jd)}},mi=e=>t=>typeof t=="string"&&t.startsWith(e),Mr=mi("--"),Qd=mi("var(--"),$r=e=>Qd(e)?eu.test(e.split("/*")[0].trim()):!1,eu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ct={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ut={...Ct,transform:e=>Fe(0,1,e)},$n={...Ct,default:1},Wt=e=>Math.round(e*1e5)/1e5,Vr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function tu(e){return e==null}const nu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ir=(e,t)=>n=>!!(typeof n=="string"&&nu.test(n)&&n.startsWith(e)||t&&!tu(n)&&Object.prototype.hasOwnProperty.call(n,t)),gi=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Vr);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},ru=e=>Fe(0,255,e),Nr={...Ct,transform:e=>Math.round(ru(e))},rt={test:Ir("rgb","red"),parse:gi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Nr.transform(e)+", "+Nr.transform(t)+", "+Nr.transform(n)+", "+Wt(Ut.transform(r))+")"};function ou(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Lr={test:Ir("#"),parse:ou,transform:rt.transform},Kt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),We=Kt("deg"),Le=Kt("%"),$=Kt("px"),su=Kt("vh"),iu=Kt("vw"),yi={...Le,parse:e=>Le.parse(e)/100,transform:e=>Le.transform(e*100)},kt={test:Ir("hsl","hue"),parse:gi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Le.transform(Wt(t))+", "+Le.transform(Wt(n))+", "+Wt(Ut.transform(r))+")"},ne={test:e=>rt.test(e)||Lr.test(e)||kt.test(e),parse:e=>rt.test(e)?rt.parse(e):kt.test(e)?kt.parse(e):Lr.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?rt.transform(e):kt.transform(e),getAnimatableNone:e=>{const t=ne.parse(e);return t.alpha=0,ne.transform(t)}},au=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function lu(e){return isNaN(e)&&typeof e=="string"&&(e.match(Vr)?.length||0)+(e.match(au)?.length||0)>0}const vi="number",bi="color",cu="var",du="var(",wi="${}",uu=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Yt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(uu,l=>(ne.test(l)?(r.color.push(i),o.push(bi),n.push(ne.parse(l))):l.startsWith(du)?(r.var.push(i),o.push(cu),n.push(l)):(r.number.push(i),o.push(vi),n.push(parseFloat(l))),++i,wi)).split(wi);return{values:n,split:a,indexes:r,types:o}}function xi(e){return Yt(e).values}function Si(e){const{split:t,types:n}=Yt(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===vi?i+=Wt(o[s]):a===bi?i+=ne.transform(o[s]):i+=o[s]}return i}}const hu=e=>typeof e=="number"?0:ne.test(e)?ne.getAnimatableNone(e):e;function fu(e){const t=xi(e);return Si(e)(t.map(hu))}const Ke={test:lu,parse:xi,createTransformer:Si,getAnimatableNone:fu};function Br(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function pu({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Br(l,a,e+1/3),i=Br(l,a,e),s=Br(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Vn(e,t){return n=>n>0?t:e}const J=(e,t,n)=>e+(t-e)*n,Or=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},mu=[Lr,rt,kt],gu=e=>mu.find(t=>t.test(e));function Ti(e){const t=gu(e);if(Tt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===kt&&(n=pu(n)),n}const Ci=(e,t)=>{const n=Ti(e),r=Ti(t);if(!n||!r)return Vn(e,t);const o={...n};return i=>(o.red=Or(n.red,r.red,i),o.green=Or(n.green,r.green,i),o.blue=Or(n.blue,r.blue,i),o.alpha=J(n.alpha,r.alpha,i),rt.transform(o))},Fr=new Set(["none","hidden"]);function yu(e,t){return Fr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function vu(e,t){return n=>J(e,t,n)}function jr(e){return typeof e=="number"?vu:typeof e=="string"?$r(e)?Vn:ne.test(e)?Ci:xu:Array.isArray(e)?ki:typeof e=="object"?ne.test(e)?Ci:bu:Vn}function ki(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>jr(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function bu(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=jr(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function wu(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}const xu=(e,t)=>{const n=Ke.createTransformer(t),r=Yt(e),o=Yt(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Fr.has(e)&&!o.values.length||Fr.has(t)&&!r.values.length?yu(e,t):zt(ki(wu(r,o),o.values),n):(Tt(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Vn(e,t))};function Pi(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?J(e,t,n):jr(e)(e,t)}const Su=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Z.update(t,n),stop:()=>Ue(t),now:()=>ce.isProcessing?ce.timestamp:ge.now()}},Ei=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},In=2e4;function Rr(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<In;)t+=n,r=e.next(t);return t>=In?1/0:t}function Tu(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Rr(r),In);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Te(o)}}const Cu=5;function Ai(e,t,n){const r=Math.max(t-Cu,0);return ei(n-e(r),t-r)}const Q={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},zr=.001;function ku({duration:e=Q.duration,bounce:t=Q.bounce,velocity:n=Q.velocity,mass:r=Q.mass}){let o,i;Tt(e<=De(Q.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Fe(Q.minDamping,Q.maxDamping,s),e=Fe(Q.minDuration,Q.maxDuration,Te(e)),s<1?(o=d=>{const u=d*s,c=u*e,h=u-n,p=_r(d,s),g=Math.exp(-c);return zr-h/p*g},i=d=>{const c=d*s*e,h=c*n+n,p=Math.pow(s,2)*Math.pow(d,2)*e,g=Math.exp(-c),v=_r(Math.pow(d,2),s);return(-o(d)+zr>0?-1:1)*((h-p)*g)/v}):(o=d=>{const u=Math.exp(-d*e),c=(d-n)*e+1;return-zr+u*c},i=d=>{const u=Math.exp(-d*e),c=(n-d)*(e*e);return u*c});const a=5/e,l=Eu(o,i,a);if(e=De(e),isNaN(l))return{stiffness:Q.stiffness,damping:Q.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const Pu=12;function Eu(e,t,n){let r=n;for(let o=1;o<Pu;o++)r=r-e(r)/t(r);return r}function _r(e,t){return e*Math.sqrt(1-t*t)}const Au=["duration","bounce"],Du=["stiffness","damping","mass"];function Di(e,t){return t.some(n=>e[n]!==void 0)}function Mu(e){let t={velocity:Q.velocity,stiffness:Q.stiffness,damping:Q.damping,mass:Q.mass,isResolvedFromDuration:!1,...e};if(!Di(e,Du)&&Di(e,Au))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Fe(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Q.mass,stiffness:o,damping:i}}else{const n=ku(e);t={...t,...n,mass:Q.mass},t.isResolvedFromDuration=!0}return t}function Nn(e=Q.visualDuration,t=Q.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:d,mass:u,duration:c,velocity:h,isResolvedFromDuration:p}=Mu({...n,velocity:-Te(n.velocity||0)}),g=h||0,v=d/(2*Math.sqrt(l*u)),w=s-i,y=Te(Math.sqrt(l/u)),x=Math.abs(w)<5;r||(r=x?Q.restSpeed.granular:Q.restSpeed.default),o||(o=x?Q.restDelta.granular:Q.restDelta.default);let b;if(v<1){const T=_r(y,v);b=S=>{const C=Math.exp(-v*y*S);return s-C*((g+v*y*w)/T*Math.sin(T*S)+w*Math.cos(T*S))}}else if(v===1)b=T=>s-Math.exp(-y*T)*(w+(g+y*w)*T);else{const T=y*Math.sqrt(v*v-1);b=S=>{const C=Math.exp(-v*y*S),D=Math.min(T*S,300);return s-C*((g+v*y*w)*Math.sinh(D)+T*w*Math.cosh(D))/T}}const E={calculatedDuration:p&&c||null,next:T=>{const S=b(T);if(p)a.done=T>=c;else{let C=T===0?g:0;v<1&&(C=T===0?De(g):Ai(b,T,S));const D=Math.abs(C)<=r,I=Math.abs(s-S)<=o;a.done=D&&I}return a.value=a.done?s:S,a},toString:()=>{const T=Math.min(Rr(E),In),S=Ei(C=>E.next(T*C).value,T,30);return T+"ms "+S},toTransition:()=>{}};return E}Nn.applyToOptions=e=>{const t=Tu(e,100,Nn);return e.ease=t.ease,e.duration=De(t.duration),e.type="keyframes",e};function Hr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:d=.5,restSpeed:u}){const c=e[0],h={done:!1,value:c},p=D=>a!==void 0&&D<a||l!==void 0&&D>l,g=D=>a===void 0?l:l===void 0||Math.abs(a-D)<Math.abs(l-D)?a:l;let v=n*t;const w=c+v,y=s===void 0?w:s(w);y!==w&&(v=y-c);const x=D=>-v*Math.exp(-D/r),b=D=>y+x(D),E=D=>{const I=x(D),_=b(D);h.done=Math.abs(I)<=d,h.value=h.done?y:_};let T,S;const C=D=>{p(h.value)&&(T=D,S=Nn({keyframes:[h.value,g(h.value)],velocity:Ai(b,D,h.value),damping:o,stiffness:i,restDelta:d,restSpeed:u}))};return C(0),{calculatedDuration:null,next:D=>{let I=!1;return!S&&T===void 0&&(I=!0,E(D),C(D)),T!==void 0&&D>=T?S.next(D-T):(!I&&E(D),h)}}}function $u(e,t,n){const r=[],o=n||Re.mix||Pi,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Se:t;a=zt(l,a)}r.push(a)}return r}function Vu(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(je(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=$u(t,r,o),l=a.length,d=u=>{if(s&&u<e[0])return t[0];let c=0;if(l>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const h=_t(e[c],e[c+1],u);return a[c](h)};return n?u=>d(Fe(e[0],e[i-1],u)):d}function Iu(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=_t(0,t,r);e.push(J(n,1,o))}}function Nu(e){const t=[0];return Iu(t,e.length-1),t}function Lu(e,t){return e.map(n=>n*t)}function Bu(e,t){return e.map(()=>t||di).splice(0,e.length-1)}function Pt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Gd(r)?r.map(fi):fi(r),i={done:!1,value:t[0]},s=Lu(n&&n.length===t.length?n:Nu(t),e),a=Vu(s,t,{ease:Array.isArray(o)?o:Bu(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Ou=e=>e!==null;function Ur(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(Ou),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Fu={decay:Hr,inertia:Hr,tween:Pt,keyframes:Pt,spring:Nn};function Mi(e){typeof e.type=="string"&&(e.type=Fu[e.type])}class Wr{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const ju=e=>e/100;class Kr extends Wr{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==ge.now()&&this.tick(ge.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Mi(t);const{type:n=Pt,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Pt;process.env.NODE_ENV!=="production"&&l!==Pt&&je(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Pt&&typeof a[0]!="number"&&(this.mixKeyframes=zt(ju,Pi(a[0],a[1])),a=[0,100]);const d=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=Rr(d));const{calculatedDuration:u}=d;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:u,repeat:c,repeatType:h,repeatDelay:p,type:g,onUpdate:v,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-d*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let b=this.currentTime,E=r;if(c){const D=Math.min(this.currentTime,o)/a;let I=Math.floor(D),_=D%1;!_&&D>=1&&(_=1),_===1&&I--,I=Math.min(I,c+1),!!(I%2)&&(h==="reverse"?(_=1-_,p&&(_-=p/a)):h==="mirror"&&(E=s)),b=Fe(0,1,_)*a}const T=x?{done:!1,value:u[0]}:E.next(b);i&&(T.value=i(T.value));let{done:S}=T;!x&&l!==null&&(S=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return C&&g!==Hr&&(T.value=Ur(u,this.options,w,this.speed)),v&&v(T.value),C&&this.finish(),T}then(t,n){return this.finished.then(t,n)}get duration(){return Te(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Te(t)}get time(){return Te(this.currentTime)}set time(t){t=De(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ge.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Te(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Su,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ge.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Ru(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ot=e=>e*180/Math.PI,Yr=e=>{const t=ot(Math.atan2(e[1],e[0]));return Gr(t)},zu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Yr,rotateZ:Yr,skewX:e=>ot(Math.atan(e[1])),skewY:e=>ot(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Gr=e=>(e=e%360,e<0&&(e+=360),e),$i=Yr,Vi=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ii=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),_u={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Vi,scaleY:Ii,scale:e=>(Vi(e)+Ii(e))/2,rotateX:e=>Gr(ot(Math.atan2(e[6],e[5]))),rotateY:e=>Gr(ot(Math.atan2(-e[2],e[0]))),rotateZ:$i,rotate:$i,skewX:e=>ot(Math.atan(e[4])),skewY:e=>ot(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Xr(e){return e.includes("scale")?1:0}function qr(e,t){if(!e||e==="none")return Xr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=_u,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=zu,o=a}if(!o)return Xr(t);const i=r[t],s=o[1].split(",").map(Uu);return typeof i=="function"?i(s):s[i]}const Hu=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return qr(n,t)};function Uu(e){return parseFloat(e.trim())}const Et=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],At=new Set(Et),Ni=e=>e===Ct||e===$,Wu=new Set(["x","y","z"]),Ku=Et.filter(e=>!Wu.has(e));function Yu(e){const t=[];return Ku.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const st={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>qr(t,"x"),y:(e,{transform:t})=>qr(t,"y")};st.translateX=st.x,st.translateY=st.y;const it=new Set;let Zr=!1,Jr=!1,Qr=!1;function Li(){if(Jr){const e=Array.from(it).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Yu(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{r.getValue(i)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Jr=!1,Zr=!1,it.forEach(e=>e.complete(Qr)),it.clear()}function Bi(){it.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Jr=!0)})}function Gu(){Qr=!0,Bi(),Li(),Qr=!1}class eo{constructor(t,n,r,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(it.add(this),Zr||(Zr=!0,Z.read(Bi),Z.resolveKeyframes(Li))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}Ru(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),it.delete(this)}cancel(){this.state==="scheduled"&&(it.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Xu=e=>e.startsWith("--");function qu(e,t,n){Xu(t)?e.style.setProperty(t,n):e.style[t]=n}const Zu=Cr(()=>window.ScrollTimeline!==void 0),Ju={};function Qu(e,t){const n=Cr(e);return()=>Ju[t]??n()}const Oi=Qu(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Gt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Fi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gt([0,.65,.55,1]),circOut:Gt([.55,0,1,.45]),backIn:Gt([.31,.01,.66,-.59]),backOut:Gt([.33,1.53,.69,.99])};function ji(e,t){if(e)return typeof e=="function"?Oi()?Ei(e,t):"ease-out":ui(e)?Gt(e):Array.isArray(e)?e.map(n=>ji(n,t)||Fi.easeOut):Fi[e]}function eh(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},d=void 0){const u={[t]:n};l&&(u.offset=l);const c=ji(a,o);Array.isArray(c)&&(u.easing=c);const h={delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return d&&(h.pseudoElement=d),e.animate(u,h)}function Ri(e){return typeof e=="function"&&"applyToOptions"in e}function th({type:e,...t}){return Ri(e)&&Oi()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class nh extends Wr{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,je(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=th(t);this.animation=eh(n,r,o,d,i),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Ur(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):qu(n,r,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Te(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Te(t)}get time(){return Te(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=De(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Zu()?(this.animation.timeline=t,Se):n(this)}}const zi={anticipate:ai,backInOut:ii,circInOut:ci};function rh(e){return e in zi}function oh(e){typeof e.ease=="string"&&rh(e.ease)&&(e.ease=zi[e.ease])}const _i=10;class sh extends nh{constructor(t){oh(t),Mi(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Kr({...s,autoplay:!1}),l=De(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-_i).value,a.sample(l).value,_i),a.stop()}}const Hi=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ke.test(e)||e==="0")&&!e.startsWith("url("));function ih(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function ah(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=Hi(o,t),a=Hi(i,t);return Tt(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:ih(e)||(n==="spring"||Ri(n))&&r}function to(e){e.duration=0,e.type="keyframes"}const lh=new Set(["opacity","clipPath","filter","transform"]),ch=Cr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function dh(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=t.owner.getProps();return ch()&&n&&lh.has(n)&&(n!=="transform"||!d)&&!l&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const uh=40;class hh extends Wr{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:l,motionValue:d,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ge.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:d,element:u,...c},p=u?.KeyframeResolver||eo;this.keyframeResolver=new p(a,(g,v,w)=>this.onKeyframesResolved(g,v,h,!w),l,d,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:l,isHandoff:d,onUpdate:u}=r;this.resolvedAt=ge.now(),ah(t,i,s,a)||((Re.instantAnimations||!l)&&u?.(Ur(t,r,n)),t[0]=t[t.length-1],to(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>uh?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!d&&dh(h)?new sh({...h,element:h.motionValue.owner.current}):new Kr(h);p.finished.then(()=>this.notifyFinished()).catch(Se),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Gu()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const fh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ph(e){const t=fh.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const mh=4;function Ui(e,t,n=1){je(n<=mh,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=ph(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Zs(s)?parseFloat(s):s}return $r(o)?Ui(o,t,n+1):o}function no(e,t){return e?.[t]??e?.default??e}const Wi=new Set(["width","height","top","left","right","bottom",...Et]),gh={test:e=>e==="auto",parse:e=>e},Ki=e=>t=>t.test(e),Yi=[Ct,$,Le,We,iu,su,gh],Gi=e=>Yi.find(Ki(e));function yh(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Qs(e):!0}const vh=new Set(["brightness","contrast","saturate","opacity"]);function bh(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Vr)||[];if(!r)return e;const o=n.replace(r,"");let i=vh.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const wh=/\b([a-z-]*)\(.*?\)/gu,ro={...Ke,getAnimatableNone:e=>{const t=e.match(wh);return t?t.map(bh).join(" "):e}},Xi={...Ct,transform:Math.round},oo={borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,radius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,backgroundPositionX:$,backgroundPositionY:$,...{rotate:We,rotateX:We,rotateY:We,rotateZ:We,scale:$n,scaleX:$n,scaleY:$n,scaleZ:$n,skew:We,skewX:We,skewY:We,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:Ut,originX:yi,originY:yi,originZ:$},zIndex:Xi,fillOpacity:Ut,strokeOpacity:Ut,numOctaves:Xi},xh={...oo,color:ne,backgroundColor:ne,outlineColor:ne,fill:ne,stroke:ne,borderColor:ne,borderTopColor:ne,borderRightColor:ne,borderBottomColor:ne,borderLeftColor:ne,filter:ro,WebkitFilter:ro},qi=e=>xh[e];function Zi(e,t){let n=qi(e);return n!==ro&&(n=Ke),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Sh=new Set(["auto","none","0"]);function Th(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!Sh.has(i)&&Yt(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=Zi(n,o)}class Ch extends eo{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),$r(d))){const u=Ui(d,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Wi.has(r)||t.length!==2)return;const[o,i]=t,s=Gi(o),a=Gi(i);if(s!==a)if(Ni(s)&&Ni(a))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else st[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||yh(t[o]))&&r.push(o);r.length&&Th(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=st[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=st[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function kh(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const Ji=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Qi(e){return Js(e)&&"offsetHeight"in e}const ea=30,Ph=e=>!isNaN(parseFloat(e));class Eh{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=ge.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ge.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Ph(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Pr(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new kr);const r=this.events[t].add(n);return t==="change"?()=>{r(),Z.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ge.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ea)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ea);return ei(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Dt(e,t){return new Eh(e,t)}const{schedule:so}=pi(queueMicrotask,!1),Me={x:!1,y:!1};function ta(){return Me.x||Me.y}function Ah(e){return e==="x"||e==="y"?Me[e]?null:(Me[e]=!0,()=>{Me[e]=!1}):Me.x||Me.y?null:(Me.x=Me.y=!0,()=>{Me.x=Me.y=!1})}function na(e,t){const n=kh(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function ra(e){return!(e.pointerType==="touch"||ta())}function Dh(e,t,n={}){const[r,o,i]=na(e,n),s=a=>{if(!ra(a))return;const{target:l}=a,d=t(l,a);if(typeof d!="function"||!l)return;const u=c=>{ra(c)&&(d(c),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const oa=(e,t)=>t?e===t?!0:oa(e,t.parentElement):!1,io=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Mh=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function $h(e){return Mh.has(e.tagName)||e.tabIndex!==-1}const Ln=new WeakSet;function sa(e){return t=>{t.key==="Enter"&&e(t)}}function ao(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Vh=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=sa(()=>{if(Ln.has(n))return;ao(n,"down");const o=sa(()=>{ao(n,"up")}),i=()=>ao(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function ia(e){return io(e)&&!ta()}function Ih(e,t,n={}){const[r,o,i]=na(e,n),s=a=>{const l=a.currentTarget;if(!ia(a))return;Ln.add(l);const d=t(l,a),u=(p,g)=>{window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",h),Ln.has(l)&&Ln.delete(l),ia(p)&&typeof d=="function"&&d(p,{success:g})},c=p=>{u(p,l===window||l===document||n.useGlobalTarget||oa(l,p.target))},h=p=>{u(p,!1)};window.addEventListener("pointerup",c,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),Qi(a)&&(a.addEventListener("focus",d=>Vh(d,o)),!$h(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function aa(e){return Js(e)&&"ownerSVGElement"in e}function Nh(e){return aa(e)&&e.tagName==="svg"}const ue=e=>!!(e&&e.getVelocity),Lh=[...Yi,ne,Ke],Bh=e=>Lh.find(Ki(e)),lo=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function la(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Oh(...e){return t=>{let n=!1;const r=e.map(o=>{const i=la(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():la(e[o],null)}}}}function Fh(...e){return an.useCallback(Oh(...e),e)}class jh extends an.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=Qi(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Rh({children:e,isPresent:t,anchorX:n,root:r}){const o=f.useId(),i=f.useRef(null),s=f.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=f.useContext(lo),l=Fh(i,e?.ref);return f.useInsertionEffect(()=>{const{width:d,height:u,top:c,left:h,right:p}=s.current;if(t||!i.current||!d||!u)return;const g=n==="left"?`left: ${h}`:`right: ${p}`;i.current.dataset.motionPopId=o;const v=document.createElement("style");a&&(v.nonce=a);const w=r??document.head;return w.appendChild(v),v.sheet&&v.sheet.insertRule(`
226
+ `,qi={tn:"1rem",sm:"1.5rem",md:"2rem",lg:"3rem"},Y=({component:e,size:t="1.5rem",color:n="currentColor",className:r,iconProps:o={}})=>{const s=typeof t=="string"&&t in qi?qi[t]:t;return p.jsx(Ud,{$color:n,className:r,children:typeof e=="function"?p.jsx(e,{size:s,...o}):e})},vr=f.createContext({});function br(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const wr=typeof window<"u",Zi=wr?f.useLayoutEffect:f.useEffect,Dn=f.createContext(null);function xr(e,t){e.indexOf(t)===-1&&e.push(t)}function Sr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Fe=(e,t,n)=>n>t?t:n<e?e:n;function Tr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Ct=()=>{},je=()=>{};process.env.NODE_ENV!=="production"&&(Ct=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Tr(t,n))},je=(e,t,n)=>{if(!e)throw new Error(Tr(t,n))});const Re={},Ji=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Qi(e){return typeof e=="object"&&e!==null}const es=e=>/^0[^.\s]+$/u.test(e);function Cr(e){let t;return()=>(t===void 0&&(t=e()),t)}const Se=e=>e,Wd=(e,t)=>n=>t(e(n)),_t=(...e)=>e.reduce(Wd),Ht=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class kr{constructor(){this.subscriptions=[]}add(t){return xr(this.subscriptions,t),()=>Sr(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let s=0;s<o;s++){const i=this.subscriptions[s];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const De=e=>e*1e3,Te=e=>e/1e3;function ts(e,t){return t?e*(1e3/t):0}const ns=new Set;function Pr(e,t,n){e||ns.has(t)||(console.warn(Tr(t,n)),ns.add(t))}const rs=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Kd=1e-7,Yd=12;function Gd(e,t,n,r,o){let s,i,a=0;do i=t+(n-t)/2,s=rs(i,r,o)-e,s>0?n=i:t=i;while(Math.abs(s)>Kd&&++a<Yd);return i}function Ut(e,t,n,r){if(e===t&&n===r)return Se;const o=s=>Gd(s,0,1,e,n);return s=>s===0||s===1?s:rs(o(s),t,r)}const os=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,is=e=>t=>1-e(1-t),ss=Ut(.33,1.53,.69,.99),Er=is(ss),as=os(Er),ls=e=>(e*=2)<1?.5*Er(e):.5*(2-Math.pow(2,-10*(e-1))),Ar=e=>1-Math.sin(Math.acos(e)),cs=is(Ar),ds=os(Ar),Xd=Ut(.42,0,1,1),qd=Ut(0,0,.58,1),us=Ut(.42,0,.58,1),Zd=e=>Array.isArray(e)&&typeof e[0]!="number",hs=e=>Array.isArray(e)&&typeof e[0]=="number",fs={linear:Se,easeIn:Xd,easeInOut:us,easeOut:qd,circIn:Ar,circInOut:ds,circOut:cs,backIn:Er,backInOut:as,backOut:ss,anticipate:ls},Jd=e=>typeof e=="string",ps=e=>{if(hs(e)){je(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return Ut(t,n,r,o)}else if(Jd(e))return je(fs[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),fs[e];return e},Mn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Qd(e,t){let n=new Set,r=new Set,o=!1,s=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){i.has(u)&&(d.schedule(u),e()),u(a)}const d={schedule:(u,l=!1,h=!1)=>{const g=h&&o?n:r;return l&&i.add(u),g.has(u)||g.add(u),u},cancel:u=>{r.delete(u),i.delete(u)},process:u=>{if(a=u,o){s=!0;return}o=!0,[n,r]=[r,n],n.forEach(c),n.clear(),o=!1,s&&(s=!1,d.process(u))}};return d}const eu=40;function ms(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=Mn.reduce((b,A)=>(b[A]=Qd(s),b),{}),{setup:a,read:c,resolveKeyframes:d,preUpdate:u,update:l,preRender:h,render:m,postRender:g}=i,v=()=>{const b=Re.useManualTiming?o.timestamp:performance.now();n=!1,Re.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(b-o.timestamp,eu),1)),o.timestamp=b,o.isProcessing=!0,a.process(o),c.process(o),d.process(o),u.process(o),l.process(o),h.process(o),m.process(o),g.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(v))},w=()=>{n=!0,r=!0,o.isProcessing||e(v)};return{schedule:Mn.reduce((b,A)=>{const C=i[A];return b[A]=(S,k=!1,D=!1)=>(n||w(),C.schedule(S,k,D)),b},{}),cancel:b=>{for(let A=0;A<Mn.length;A++)i[Mn[A]].cancel(b)},state:o,steps:i}}const{schedule:Z,cancel:Ke,state:ce,steps:Dr}=ms(typeof requestAnimationFrame<"u"?requestAnimationFrame:Se,!0);let Vn;function tu(){Vn=void 0}const ge={now:()=>(Vn===void 0&&ge.set(ce.isProcessing||Re.useManualTiming?ce.timestamp:performance.now()),Vn),set:e=>{Vn=e,queueMicrotask(tu)}},gs=e=>t=>typeof t=="string"&&t.startsWith(e),Mr=gs("--"),nu=gs("var(--"),Vr=e=>nu(e)?ru.test(e.split("/*")[0].trim()):!1,ru=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,kt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Wt={...kt,transform:e=>Fe(0,1,e)},$n={...kt,default:1},Kt=e=>Math.round(e*1e5)/1e5,$r=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ou(e){return e==null}const iu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ir=(e,t)=>n=>!!(typeof n=="string"&&iu.test(n)&&n.startsWith(e)||t&&!ou(n)&&Object.prototype.hasOwnProperty.call(n,t)),ys=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,i,a]=r.match($r);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},su=e=>Fe(0,255,e),Nr={...kt,transform:e=>Math.round(su(e))},it={test:Ir("rgb","red"),parse:ys("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Nr.transform(e)+", "+Nr.transform(t)+", "+Nr.transform(n)+", "+Kt(Wt.transform(r))+")"};function au(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Lr={test:Ir("#"),parse:au,transform:it.transform},Yt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ye=Yt("deg"),Le=Yt("%"),V=Yt("px"),lu=Yt("vh"),cu=Yt("vw"),vs={...Le,parse:e=>Le.parse(e)/100,transform:e=>Le.transform(e*100)},Pt={test:Ir("hsl","hue"),parse:ys("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Le.transform(Kt(t))+", "+Le.transform(Kt(n))+", "+Kt(Wt.transform(r))+")"},ne={test:e=>it.test(e)||Lr.test(e)||Pt.test(e),parse:e=>it.test(e)?it.parse(e):Pt.test(e)?Pt.parse(e):Lr.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?it.transform(e):Pt.transform(e),getAnimatableNone:e=>{const t=ne.parse(e);return t.alpha=0,ne.transform(t)}},du=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function uu(e){return isNaN(e)&&typeof e=="string"&&(e.match($r)?.length||0)+(e.match(du)?.length||0)>0}const bs="number",ws="color",hu="var",fu="var(",xs="${}",pu=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Gt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let s=0;const a=t.replace(pu,c=>(ne.test(c)?(r.color.push(s),o.push(ws),n.push(ne.parse(c))):c.startsWith(fu)?(r.var.push(s),o.push(hu),n.push(c)):(r.number.push(s),o.push(bs),n.push(parseFloat(c))),++s,xs)).split(xs);return{values:n,split:a,indexes:r,types:o}}function Ss(e){return Gt(e).values}function Ts(e){const{split:t,types:n}=Gt(e),r=t.length;return o=>{let s="";for(let i=0;i<r;i++)if(s+=t[i],o[i]!==void 0){const a=n[i];a===bs?s+=Kt(o[i]):a===ws?s+=ne.transform(o[i]):s+=o[i]}return s}}const mu=e=>typeof e=="number"?0:ne.test(e)?ne.getAnimatableNone(e):e;function gu(e){const t=Ss(e);return Ts(e)(t.map(mu))}const Ge={test:uu,parse:Ss,createTransformer:Ts,getAnimatableNone:gu};function Br(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yu({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,i=0;if(!t)o=s=i=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;o=Br(c,a,e+1/3),s=Br(c,a,e),i=Br(c,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:r}}function In(e,t){return n=>n>0?t:e}const J=(e,t,n)=>e+(t-e)*n,Or=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},vu=[Lr,it,Pt],bu=e=>vu.find(t=>t.test(e));function Cs(e){const t=bu(e);if(Ct(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Pt&&(n=yu(n)),n}const ks=(e,t)=>{const n=Cs(e),r=Cs(t);if(!n||!r)return In(e,t);const o={...n};return s=>(o.red=Or(n.red,r.red,s),o.green=Or(n.green,r.green,s),o.blue=Or(n.blue,r.blue,s),o.alpha=J(n.alpha,r.alpha,s),it.transform(o))},Fr=new Set(["none","hidden"]);function wu(e,t){return Fr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function xu(e,t){return n=>J(e,t,n)}function jr(e){return typeof e=="number"?xu:typeof e=="string"?Vr(e)?In:ne.test(e)?ks:Cu:Array.isArray(e)?Ps:typeof e=="object"?ne.test(e)?ks:Su:In}function Ps(e,t){const n=[...e],r=n.length,o=e.map((s,i)=>jr(s)(s,t[i]));return s=>{for(let i=0;i<r;i++)n[i]=o[i](s);return n}}function Su(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=jr(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function Tu(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],i=e.indexes[s][r[s]],a=e.values[i]??0;n[o]=a,r[s]++}return n}const Cu=(e,t)=>{const n=Ge.createTransformer(t),r=Gt(e),o=Gt(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Fr.has(e)&&!o.values.length||Fr.has(t)&&!r.values.length?wu(e,t):_t(Ps(Tu(r,o),o.values),n):(Ct(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),In(e,t))};function Es(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?J(e,t,n):jr(e)(e,t)}const ku=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Z.update(t,n),stop:()=>Ke(t),now:()=>ce.isProcessing?ce.timestamp:ge.now()}},As=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)r+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Nn=2e4;function Rr(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Nn;)t+=n,r=e.next(t);return t>=Nn?1/0:t}function Pu(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Rr(r),Nn);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:Te(o)}}const Eu=5;function Ds(e,t,n){const r=Math.max(t-Eu,0);return ts(n-e(r),t-r)}const Q={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},zr=.001;function Au({duration:e=Q.duration,bounce:t=Q.bounce,velocity:n=Q.velocity,mass:r=Q.mass}){let o,s;Ct(e<=De(Q.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=Fe(Q.minDamping,Q.maxDamping,i),e=Fe(Q.minDuration,Q.maxDuration,Te(e)),i<1?(o=d=>{const u=d*i,l=u*e,h=u-n,m=_r(d,i),g=Math.exp(-l);return zr-h/m*g},s=d=>{const l=d*i*e,h=l*n+n,m=Math.pow(i,2)*Math.pow(d,2)*e,g=Math.exp(-l),v=_r(Math.pow(d,2),i);return(-o(d)+zr>0?-1:1)*((h-m)*g)/v}):(o=d=>{const u=Math.exp(-d*e),l=(d-n)*e+1;return-zr+u*l},s=d=>{const u=Math.exp(-d*e),l=(n-d)*(e*e);return u*l});const a=5/e,c=Mu(o,s,a);if(e=De(e),isNaN(c))return{stiffness:Q.stiffness,damping:Q.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:i*2*Math.sqrt(r*d),duration:e}}}const Du=12;function Mu(e,t,n){let r=n;for(let o=1;o<Du;o++)r=r-e(r)/t(r);return r}function _r(e,t){return e*Math.sqrt(1-t*t)}const Vu=["duration","bounce"],$u=["stiffness","damping","mass"];function Ms(e,t){return t.some(n=>e[n]!==void 0)}function Iu(e){let t={velocity:Q.velocity,stiffness:Q.stiffness,damping:Q.damping,mass:Q.mass,isResolvedFromDuration:!1,...e};if(!Ms(e,$u)&&Ms(e,Vu))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*Fe(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Q.mass,stiffness:o,damping:s}}else{const n=Au(e);t={...t,...n,mass:Q.mass},t.isResolvedFromDuration=!0}return t}function Ln(e=Q.visualDuration,t=Q.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const s=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:c,damping:d,mass:u,duration:l,velocity:h,isResolvedFromDuration:m}=Iu({...n,velocity:-Te(n.velocity||0)}),g=h||0,v=d/(2*Math.sqrt(c*u)),w=i-s,y=Te(Math.sqrt(c/u)),x=Math.abs(w)<5;r||(r=x?Q.restSpeed.granular:Q.restSpeed.default),o||(o=x?Q.restDelta.granular:Q.restDelta.default);let b;if(v<1){const C=_r(y,v);b=S=>{const k=Math.exp(-v*y*S);return i-k*((g+v*y*w)/C*Math.sin(C*S)+w*Math.cos(C*S))}}else if(v===1)b=C=>i-Math.exp(-y*C)*(w+(g+y*w)*C);else{const C=y*Math.sqrt(v*v-1);b=S=>{const k=Math.exp(-v*y*S),D=Math.min(C*S,300);return i-k*((g+v*y*w)*Math.sinh(D)+C*w*Math.cosh(D))/C}}const A={calculatedDuration:m&&l||null,next:C=>{const S=b(C);if(m)a.done=C>=l;else{let k=C===0?g:0;v<1&&(k=C===0?De(g):Ds(b,C,S));const D=Math.abs(k)<=r,I=Math.abs(i-S)<=o;a.done=D&&I}return a.value=a.done?i:S,a},toString:()=>{const C=Math.min(Rr(A),Nn),S=As(k=>A.next(C*k).value,C,30);return C+"ms "+S},toTransition:()=>{}};return A}Ln.applyToOptions=e=>{const t=Pu(e,100,Ln);return e.ease=t.ease,e.duration=De(t.duration),e.type="keyframes",e};function Hr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:c,restDelta:d=.5,restSpeed:u}){const l=e[0],h={done:!1,value:l},m=D=>a!==void 0&&D<a||c!==void 0&&D>c,g=D=>a===void 0?c:c===void 0||Math.abs(a-D)<Math.abs(c-D)?a:c;let v=n*t;const w=l+v,y=i===void 0?w:i(w);y!==w&&(v=y-l);const x=D=>-v*Math.exp(-D/r),b=D=>y+x(D),A=D=>{const I=x(D),_=b(D);h.done=Math.abs(I)<=d,h.value=h.done?y:_};let C,S;const k=D=>{m(h.value)&&(C=D,S=Ln({keyframes:[h.value,g(h.value)],velocity:Ds(b,D,h.value),damping:o,stiffness:s,restDelta:d,restSpeed:u}))};return k(0),{calculatedDuration:null,next:D=>{let I=!1;return!S&&C===void 0&&(I=!0,A(D),k(D)),C!==void 0&&D>=C?S.next(D-C):(!I&&A(D),h)}}}function Nu(e,t,n){const r=[],o=n||Re.mix||Es,s=e.length-1;for(let i=0;i<s;i++){let a=o(e[i],e[i+1]);if(t){const c=Array.isArray(t)?t[i]||Se:t;a=_t(c,a)}r.push(a)}return r}function Lu(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(je(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Nu(t,r,o),c=a.length,d=u=>{if(i&&u<e[0])return t[0];let l=0;if(c>1)for(;l<e.length-2&&!(u<e[l+1]);l++);const h=Ht(e[l],e[l+1],u);return a[l](h)};return n?u=>d(Fe(e[0],e[s-1],u)):d}function Bu(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Ht(0,t,r);e.push(J(n,1,o))}}function Ou(e){const t=[0];return Bu(t,e.length-1),t}function Fu(e,t){return e.map(n=>n*t)}function ju(e,t){return e.map(()=>t||us).splice(0,e.length-1)}function Et({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Zd(r)?r.map(ps):ps(r),s={done:!1,value:t[0]},i=Fu(n&&n.length===t.length?n:Ou(t),e),a=Lu(i,t,{ease:Array.isArray(o)?o:ju(t,o)});return{calculatedDuration:e,next:c=>(s.value=a(c),s.done=c>=e,s)}}const Ru=e=>e!==null;function Ur(e,{repeat:t,repeatType:n="loop"},r,o=1){const s=e.filter(Ru),a=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const zu={decay:Hr,inertia:Hr,tween:Et,keyframes:Et,spring:Ln};function Vs(e){typeof e.type=="string"&&(e.type=zu[e.type])}class Wr{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const _u=e=>e/100;class Kr extends Wr{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==ge.now()&&this.tick(ge.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Vs(t);const{type:n=Et,repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:i=0}=t;let{keyframes:a}=t;const c=n||Et;process.env.NODE_ENV!=="production"&&c!==Et&&je(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==Et&&typeof a[0]!="number"&&(this.mixKeyframes=_t(_u,Es(a[0],a[1])),a=[0,100]);const d=c({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-i})),d.calculatedDuration===null&&(d.calculatedDuration=Rr(d));const{calculatedDuration:u}=d;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:s,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:u,repeat:l,repeatType:h,repeatDelay:m,type:g,onUpdate:v,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-d*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let b=this.currentTime,A=r;if(l){const D=Math.min(this.currentTime,o)/a;let I=Math.floor(D),_=D%1;!_&&D>=1&&(_=1),_===1&&I--,I=Math.min(I,l+1),!!(I%2)&&(h==="reverse"?(_=1-_,m&&(_-=m/a)):h==="mirror"&&(A=i)),b=Fe(0,1,_)*a}const C=x?{done:!1,value:u[0]}:A.next(b);s&&(C.value=s(C.value));let{done:S}=C;!x&&c!==null&&(S=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return k&&g!==Hr&&(C.value=Ur(u,this.options,w,this.speed)),v&&v(C.value),k&&this.finish(),C}then(t,n){return this.finished.then(t,n)}get duration(){return Te(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Te(t)}get time(){return Te(this.currentTime)}set time(t){t=De(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ge.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Te(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=ku,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ge.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Hu(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const st=e=>e*180/Math.PI,Yr=e=>{const t=st(Math.atan2(e[1],e[0]));return Gr(t)},Uu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Yr,rotateZ:Yr,skewX:e=>st(Math.atan(e[1])),skewY:e=>st(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Gr=e=>(e=e%360,e<0&&(e+=360),e),$s=Yr,Is=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ns=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Wu={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Is,scaleY:Ns,scale:e=>(Is(e)+Ns(e))/2,rotateX:e=>Gr(st(Math.atan2(e[6],e[5]))),rotateY:e=>Gr(st(Math.atan2(-e[2],e[0]))),rotateZ:$s,rotate:$s,skewX:e=>st(Math.atan(e[4])),skewY:e=>st(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Xr(e){return e.includes("scale")?1:0}function qr(e,t){if(!e||e==="none")return Xr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Wu,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Uu,o=a}if(!o)return Xr(t);const s=r[t],i=o[1].split(",").map(Yu);return typeof s=="function"?s(i):i[s]}const Ku=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return qr(n,t)};function Yu(e){return parseFloat(e.trim())}const At=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Dt=new Set(At),Ls=e=>e===kt||e===V,Gu=new Set(["x","y","z"]),Xu=At.filter(e=>!Gu.has(e));function qu(e){const t=[];return Xu.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const at={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>qr(t,"x"),y:(e,{transform:t})=>qr(t,"y")};at.translateX=at.x,at.translateY=at.y;const lt=new Set;let Zr=!1,Jr=!1,Qr=!1;function Bs(){if(Jr){const e=Array.from(lt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=qu(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([s,i])=>{r.getValue(s)?.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Jr=!1,Zr=!1,lt.forEach(e=>e.complete(Qr)),lt.clear()}function Os(){lt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Jr=!0)})}function Zu(){Qr=!0,Os(),Bs(),Qr=!1}class eo{constructor(t,n,r,o,s,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(lt.add(this),Zr||(Zr=!0,Z.read(Os),Z.resolveKeyframes(Bs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const s=o?.get(),i=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,i);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=i),o&&s===void 0&&o.set(t[0])}Hu(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),lt.delete(this)}cancel(){this.state==="scheduled"&&(lt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ju=e=>e.startsWith("--");function Qu(e,t,n){Ju(t)?e.style.setProperty(t,n):e.style[t]=n}const eh=Cr(()=>window.ScrollTimeline!==void 0),th={};function nh(e,t){const n=Cr(e);return()=>th[t]??n()}const Fs=nh(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Xt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,js={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xt([0,.65,.55,1]),circOut:Xt([.55,0,1,.45]),backIn:Xt([.31,.01,.66,-.59]),backOut:Xt([.33,1.53,.69,.99])};function Rs(e,t){if(e)return typeof e=="function"?Fs()?As(e,t):"ease-out":hs(e)?Xt(e):Array.isArray(e)?e.map(n=>Rs(n,t)||js.easeOut):js[e]}function rh(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:i="loop",ease:a="easeOut",times:c}={},d=void 0){const u={[t]:n};c&&(u.offset=c);const l=Rs(a,o);Array.isArray(l)&&(u.easing=l);const h={delay:r,duration:o,easing:Array.isArray(l)?"linear":l,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"};return d&&(h.pseudoElement=d),e.animate(u,h)}function zs(e){return typeof e=="function"&&"applyToOptions"in e}function oh({type:e,...t}){return zs(e)&&Fs()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class ih extends Wr{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:s,allowFlatten:i=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!s,this.allowFlatten=i,this.options=t,je(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=oh(t);this.animation=rh(n,r,o,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const u=Ur(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):Qu(n,r,u),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Te(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Te(t)}get time(){return Te(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=De(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&eh()?(this.animation.timeline=t,Se):n(this)}}const _s={anticipate:ls,backInOut:as,circInOut:ds};function sh(e){return e in _s}function ah(e){typeof e.ease=="string"&&sh(e.ease)&&(e.ease=_s[e.ease])}const Hs=10;class lh extends ih{constructor(t){ah(t),Vs(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:s,...i}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Kr({...i,autoplay:!1}),c=De(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-Hs).value,a.sample(c).value,Hs),a.stop()}}const Us=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ge.test(e)||e==="0")&&!e.startsWith("url("));function ch(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function dh(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],i=Us(o,t),a=Us(s,t);return Ct(i===a,`You are trying to animate ${t} from "${o}" to "${s}". "${i?s:o}" is not an animatable value.`,"value-not-animatable"),!i||!a?!1:ch(e)||(n==="spring"||zs(n))&&r}function to(e){e.duration=0,e.type="keyframes"}const uh=new Set(["opacity","clipPath","filter","transform"]),hh=Cr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function fh(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:s,type:i}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return hh()&&n&&uh.has(n)&&(n!=="transform"||!d)&&!c&&!r&&o!=="mirror"&&s!==0&&i!=="inertia"}const ph=40;class mh extends Wr{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:i="loop",keyframes:a,name:c,motionValue:d,element:u,...l}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ge.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:i,name:c,motionValue:d,element:u,...l},m=u?.KeyframeResolver||eo;this.keyframeResolver=new m(a,(g,v,w)=>this.onKeyframesResolved(g,v,h,!w),c,d,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:s,type:i,velocity:a,delay:c,isHandoff:d,onUpdate:u}=r;this.resolvedAt=ge.now(),dh(t,s,i,a)||((Re.instantAnimations||!c)&&u?.(Ur(t,r,n)),t[0]=t[t.length-1],to(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>ph?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!d&&fh(h)?new lh({...h,element:h.motionValue.owner.current}):new Kr(h);m.finished.then(()=>this.notifyFinished()).catch(Se),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Zu()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const gh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function yh(e){const t=gh.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const vh=4;function Ws(e,t,n=1){je(n<=vh,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=yh(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const i=s.trim();return Ji(i)?parseFloat(i):i}return Vr(o)?Ws(o,t,n+1):o}function no(e,t){return e?.[t]??e?.default??e}const Ks=new Set(["width","height","top","left","right","bottom",...At]),bh={test:e=>e==="auto",parse:e=>e},Ys=e=>t=>t.test(e),Gs=[kt,V,Le,Ye,cu,lu,bh],Xs=e=>Gs.find(Ys(e));function wh(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||es(e):!0}const xh=new Set(["brightness","contrast","saturate","opacity"]);function Sh(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match($r)||[];if(!r)return e;const o=n.replace(r,"");let s=xh.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const Th=/\b([a-z-]*)\(.*?\)/gu,ro={...Ge,getAnimatableNone:e=>{const t=e.match(Th);return t?t.map(Sh).join(" "):e}},qs={...kt,transform:Math.round},oo={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V,...{rotate:Ye,rotateX:Ye,rotateY:Ye,rotateZ:Ye,scale:$n,scaleX:$n,scaleY:$n,scaleZ:$n,skew:Ye,skewX:Ye,skewY:Ye,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Wt,originX:vs,originY:vs,originZ:V},zIndex:qs,fillOpacity:Wt,strokeOpacity:Wt,numOctaves:qs},Ch={...oo,color:ne,backgroundColor:ne,outlineColor:ne,fill:ne,stroke:ne,borderColor:ne,borderTopColor:ne,borderRightColor:ne,borderBottomColor:ne,borderLeftColor:ne,filter:ro,WebkitFilter:ro},Zs=e=>Ch[e];function Js(e,t){let n=Zs(e);return n!==ro&&(n=Ge),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const kh=new Set(["auto","none","0"]);function Ph(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!kh.has(s)&&Gt(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=Js(n,o)}class Eh extends eo{constructor(t,n,r,o,s){super(t,n,r,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),Vr(d))){const u=Ws(d,n.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Ks.has(r)||t.length!==2)return;const[o,s]=t,i=Xs(o),a=Xs(s);if(i!==a)if(Ls(i)&&Ls(a))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else at[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||wh(t[o]))&&r.push(o);r.length&&Ph(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=at[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,i=r[s];r[s]=at[n](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{t.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function Ah(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const Qs=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ea(e){return Qi(e)&&"offsetHeight"in e}const ta=30,Dh=e=>!isNaN(parseFloat(e));class Mh{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=ge.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ge.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Dh(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Pr(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new kr);const r=this.events[t].add(n);return t==="change"?()=>{r(),Z.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ge.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ta)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ta);return ts(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Mt(e,t){return new Mh(e,t)}const{schedule:io}=ms(queueMicrotask,!1),Me={x:!1,y:!1};function na(){return Me.x||Me.y}function Vh(e){return e==="x"||e==="y"?Me[e]?null:(Me[e]=!0,()=>{Me[e]=!1}):Me.x||Me.y?null:(Me.x=Me.y=!0,()=>{Me.x=Me.y=!1})}function ra(e,t){const n=Ah(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function oa(e){return!(e.pointerType==="touch"||na())}function $h(e,t,n={}){const[r,o,s]=ra(e,n),i=a=>{if(!oa(a))return;const{target:c}=a,d=t(c,a);if(typeof d!="function"||!c)return;const u=l=>{oa(l)&&(d(l),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",i,o)}),s}const ia=(e,t)=>t?e===t?!0:ia(e,t.parentElement):!1,so=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Ih=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Nh(e){return Ih.has(e.tagName)||e.tabIndex!==-1}const Bn=new WeakSet;function sa(e){return t=>{t.key==="Enter"&&e(t)}}function ao(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Lh=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=sa(()=>{if(Bn.has(n))return;ao(n,"down");const o=sa(()=>{ao(n,"up")}),s=()=>ao(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function aa(e){return so(e)&&!na()}function Bh(e,t,n={}){const[r,o,s]=ra(e,n),i=a=>{const c=a.currentTarget;if(!aa(a))return;Bn.add(c);const d=t(c,a),u=(m,g)=>{window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",h),Bn.has(c)&&Bn.delete(c),aa(m)&&typeof d=="function"&&d(m,{success:g})},l=m=>{u(m,c===window||c===document||n.useGlobalTarget||ia(c,m.target))},h=m=>{u(m,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",i,o),ea(a)&&(a.addEventListener("focus",d=>Lh(d,o)),!Nh(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function la(e){return Qi(e)&&"ownerSVGElement"in e}function Oh(e){return la(e)&&e.tagName==="svg"}const ue=e=>!!(e&&e.getVelocity),Fh=[...Gs,ne,Ge],jh=e=>Fh.find(Ys(e)),lo=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ca(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Rh(...e){return t=>{let n=!1;const r=e.map(o=>{const s=ca(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():ca(e[o],null)}}}}function zh(...e){return cn.useCallback(Rh(...e),e)}class _h extends cn.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=ea(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=o-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Hh({children:e,isPresent:t,anchorX:n,root:r}){const o=f.useId(),s=f.useRef(null),i=f.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=f.useContext(lo),c=zh(s,e?.ref);return f.useInsertionEffect(()=>{const{width:d,height:u,top:l,left:h,right:m}=i.current;if(t||!s.current||!d||!u)return;const g=n==="left"?`left: ${h}`:`right: ${m}`;s.current.dataset.motionPopId=o;const v=document.createElement("style");a&&(v.nonce=a);const w=r??document.head;return w.appendChild(v),v.sheet&&v.sheet.insertRule(`
227
227
  [data-motion-pop-id="${o}"] {
228
228
  position: absolute !important;
229
229
  width: ${d}px !important;
230
230
  height: ${u}px !important;
231
231
  ${g}px !important;
232
- top: ${c}px !important;
232
+ top: ${l}px !important;
233
233
  }
234
- `),()=>{w.contains(v)&&w.removeChild(v)}},[t]),m.jsx(jh,{isPresent:t,childRef:i,sizeRef:s,children:an.cloneElement(e,{ref:l})})}const zh=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:l})=>{const d=br(_h),u=f.useId();let c=!0,h=f.useMemo(()=>(c=!1,{id:u,initial:t,isPresent:n,custom:o,onExitComplete:p=>{d.set(p,!0);for(const g of d.values())if(!g)return;r&&r()},register:p=>(d.set(p,!1),()=>d.delete(p))}),[n,d,r]);return i&&c&&(h={...h}),f.useMemo(()=>{d.forEach((p,g)=>d.set(g,!1))},[n]),an.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),s==="popLayout"&&(e=m.jsx(Rh,{isPresent:n,anchorX:a,root:l,children:e})),m.jsx(An.Provider,{value:h,children:e})};function _h(){return new Map}function ca(e=!0){const t=f.useContext(An);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=f.useId();f.useEffect(()=>{if(e)return o(i)},[e]);const s=f.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const Bn=e=>e.key||"";function da(e){const t=[];return f.Children.forEach(e,n=>{f.isValidElement(n)&&t.push(n)}),t}const On=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[d,u]=ca(s),c=f.useMemo(()=>da(e),[e]),h=s&&!d?[]:c.map(Bn),p=f.useRef(!0),g=f.useRef(c),v=br(()=>new Map),[w,y]=f.useState(c),[x,b]=f.useState(c);qs(()=>{p.current=!1,g.current=c;for(let S=0;S<x.length;S++){const C=Bn(x[S]);h.includes(C)?v.delete(C):v.get(C)!==!0&&v.set(C,!1)}},[x,h.length,h.join("-")]);const E=[];if(c!==w){let S=[...c];for(let C=0;C<x.length;C++){const D=x[C],I=Bn(D);h.includes(I)||(S.splice(C,0,D),E.push(D))}return i==="wait"&&E.length&&(S=E),b(da(S)),y(c),null}process.env.NODE_ENV!=="production"&&i==="wait"&&x.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:T}=f.useContext(vr);return m.jsx(m.Fragment,{children:x.map(S=>{const C=Bn(S),D=s&&!d?!1:c===x||h.includes(C),I=()=>{if(v.has(C))v.set(C,!0);else return;let _=!0;v.forEach(M=>{M||(_=!1)}),_&&(T?.(),b(g.current),s&&u?.(),r&&r())};return m.jsx(zh,{isPresent:D,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:D?void 0:I,anchorX:a,children:S},C)})})},ua=f.createContext({strict:!1}),ha={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Mt={};for(const e in ha)Mt[e]={isEnabled:t=>ha[e].some(n=>!!t[n])};function Hh(e){for(const t in e)Mt[t]={...Mt[t],...e[t]}}const Uh=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Fn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Uh.has(e)}let fa=e=>!Fn(e);function Wh(e){typeof e=="function"&&(fa=t=>t.startsWith("on")?!Fn(t):e(t))}try{Wh(require("@emotion/is-prop-valid").default)}catch{}function Kh(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(fa(o)||n===!0&&Fn(o)||!t&&!Fn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const jn=f.createContext({});function Rn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Xt(e){return typeof e=="string"||Array.isArray(e)}const co=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],uo=["initial",...co];function zn(e){return Rn(e.animate)||uo.some(t=>Xt(e[t]))}function pa(e){return!!(zn(e)||e.variants)}function Yh(e,t){if(zn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Xt(n)?n:void 0,animate:Xt(r)?r:void 0}}return e.inherit!==!1?t:{}}function Gh(e){const{initial:t,animate:n}=Yh(e,f.useContext(jn));return f.useMemo(()=>({initial:t,animate:n}),[ma(t),ma(n)])}function ma(e){return Array.isArray(e)?e.join(" "):e}const qt={};function Xh(e){for(const t in e)qt[t]=e[t],Mr(t)&&(qt[t].isCSSVariable=!0)}function ga(e,{layout:t,layoutId:n}){return At.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!qt[e]||e==="opacity")}const qh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Zh=Et.length;function Jh(e,t,n){let r="",o=!0;for(let i=0;i<Zh;i++){const s=Et[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const d=Ji(a,oo[s]);if(!l){o=!1;const u=qh[s]||s;r+=`${u}(${d}) `}n&&(t[s]=d)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function ho(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const d=t[l];if(At.has(l)){s=!0;continue}else if(Mr(l)){o[l]=d;continue}else{const u=Ji(d,oo[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(s||n?r.transform=Jh(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:d="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${d} ${u}`}}const fo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ya(e,t,n){for(const r in t)!ue(t[r])&&!ga(r,n)&&(e[r]=t[r])}function Qh({transformTemplate:e},t){return f.useMemo(()=>{const n=fo();return ho(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ef(e,t){const n=e.style||{},r={};return ya(r,n,e),Object.assign(r,Qh(e,t)),r}function tf(e,t){const n={},r=ef(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const nf={offset:"stroke-dashoffset",array:"stroke-dasharray"},rf={offset:"strokeDashoffset",array:"strokeDasharray"};function of(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?nf:rf;e[i.offset]=$.transform(-r);const s=$.transform(t),a=$.transform(n);e[i.array]=`${s} ${a}`}function va(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,d,u){if(ho(e,a,d),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:c,style:h}=e;c.transform&&(h.transform=c.transform,delete c.transform),(h.transform||c.transformOrigin)&&(h.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete c.transformBox),t!==void 0&&(c.x=t),n!==void 0&&(c.y=n),r!==void 0&&(c.scale=r),o!==void 0&&of(c,o,i,s,!1)}const ba=()=>({...fo(),attrs:{}}),wa=e=>typeof e=="string"&&e.toLowerCase()==="svg";function sf(e,t,n,r){const o=f.useMemo(()=>{const i=ba();return va(i,t,wa(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};ya(i,e.style,e),o.style={...i,...o.style}}return o}const af=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function po(e){return typeof e!="string"||e.includes("-")?!1:!!(af.indexOf(e)>-1||/[A-Z]/u.test(e))}function lf(e,t,n,{latestValues:r},o,i=!1){const a=(po(e)?sf:tf)(t,r,o,e),l=Kh(t,typeof e=="string",i),d=e!==f.Fragment?{...l,...a,ref:n}:{},{children:u}=t,c=f.useMemo(()=>ue(u)?u.get():u,[u]);return f.createElement(e,{...d,children:c})}function xa(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function mo(e,t,n,r){if(typeof t=="function"){const[o,i]=xa(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=xa(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function _n(e){return ue(e)?e.get():e}function cf({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:df(n,r,o,e),renderState:t()}}function df(e,t,n,r){const o={},i=r(e,{});for(const h in i)o[h]=_n(i[h]);let{initial:s,animate:a}=e;const l=zn(e),d=pa(e);t&&d&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const c=u?a:s;if(c&&typeof c!="boolean"&&!Rn(c)){const h=Array.isArray(c)?c:[c];for(let p=0;p<h.length;p++){const g=mo(e,h[p]);if(g){const{transitionEnd:v,transition:w,...y}=g;for(const x in y){let b=y[x];if(Array.isArray(b)){const E=u?b.length-1:0;b=b[E]}b!==null&&(o[x]=b)}for(const x in v)o[x]=v[x]}}}return o}const Sa=e=>(t,n)=>{const r=f.useContext(jn),o=f.useContext(An),i=()=>cf(e,t,r,o);return n?i():br(i)};function go(e,t,n){const{style:r}=e,o={};for(const i in r)(ue(r[i])||t.style&&ue(t.style[i])||ga(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(o[i]=r[i]);return o}const uf=Sa({scrapeMotionValuesFromProps:go,createRenderState:fo});function Ta(e,t,n){const r=go(e,t,n);for(const o in e)if(ue(e[o])||ue(t[o])){const i=Et.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const hf=Sa({scrapeMotionValuesFromProps:Ta,createRenderState:ba}),ff=Symbol.for("motionComponentSymbol");function $t(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function pf(e,t,n){return f.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):$t(n)&&(n.current=r))},[t])}const yo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ca="data-"+yo("framerAppearId"),ka=f.createContext({});function mf(e,t,n,r,o){const{visualElement:i}=f.useContext(jn),s=f.useContext(ua),a=f.useContext(An),l=f.useContext(lo).reducedMotion,d=f.useRef(null);r=r||s.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=d.current,c=f.useContext(ka);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&gf(d.current,n,o,c);const h=f.useRef(!1);f.useInsertionEffect(()=>{u&&h.current&&u.update(n,a)});const p=n[Ca],g=f.useRef(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return qs(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),g.current&&u.animationState&&u.animationState.animateChanges())}),f.useEffect(()=>{u&&(!g.current&&u.animationState&&u.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),g.current=!1),u.enteringChildren=void 0)}),u}function gf(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:d,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Pa(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&$t(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:d})}function Pa(e){if(e)return e.options.allowProjection!==!1?e.projection:Pa(e.parent)}function vo(e,{forwardMotionProps:t=!1}={},n,r){n&&Hh(n);const o=po(e)?hf:uf;function i(a,l){let d;const u={...f.useContext(lo),...a,layoutId:yf(a)},{isStatic:c}=u,h=Gh(a),p=o(a,c);if(!c&&wr){vf(u,n);const g=bf(u);d=g.MeasureLayout,h.visualElement=mf(e,p,u,r,g.ProjectionNode)}return m.jsxs(jn.Provider,{value:h,children:[d&&h.visualElement?m.jsx(d,{visualElement:h.visualElement,...u}):null,lf(e,a,pf(p,h.visualElement,l),p,c,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=f.forwardRef(i);return s[ff]=e,s}function yf({layoutId:e}){const t=f.useContext(vr).id;return t&&e!==void 0?t+"-"+e:e}function vf(e,t){const n=f.useContext(ua).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Tt(!1,r,"lazy-strict-mode"):je(!1,r,"lazy-strict-mode")}}function bf(e){const{drag:t,layout:n}=Mt;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function wf(e,t){if(typeof Proxy>"u")return vo;const n=new Map,r=(i,s)=>vo(i,s,e,t),o=(i,s)=>(process.env.NODE_ENV!=="production"&&Pr(!1,"motion() is deprecated. Use motion.create() instead."),r(i,s));return new Proxy(o,{get:(i,s)=>s==="create"?r:(n.has(s)||n.set(s,vo(s,void 0,e,t)),n.get(s))})}function Ea({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function xf({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Sf(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function bo(e){return e===void 0||e===1}function wo({scale:e,scaleX:t,scaleY:n}){return!bo(e)||!bo(t)||!bo(n)}function at(e){return wo(e)||Aa(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Aa(e){return Da(e.x)||Da(e.y)}function Da(e){return e&&e!=="0%"}function Hn(e,t,n){const r=e-n,o=t*r;return n+o}function Ma(e,t,n,r,o){return o!==void 0&&(e=Hn(e,o,r)),Hn(e,n,r)+t}function xo(e,t=0,n=1,r,o){e.min=Ma(e.min,t,n,r,o),e.max=Ma(e.max,t,n,r,o)}function $a(e,{x:t,y:n}){xo(e.x,t.translate,t.scale,t.originPoint),xo(e.y,n.translate,n.scale,n.originPoint)}const Va=.999999999999,Ia=1.0000000000001;function Tf(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&It(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,$a(e,s)),r&&at(i.latestValues)&&It(e,i.latestValues))}t.x<Ia&&t.x>Va&&(t.x=1),t.y<Ia&&t.y>Va&&(t.y=1)}function Vt(e,t){e.min=e.min+t,e.max=e.max+t}function Na(e,t,n,r,o=.5){const i=J(e.min,e.max,o);xo(e,t,n,i,r)}function It(e,t){Na(e.x,t.x,t.scaleX,t.scale,t.originX),Na(e.y,t.y,t.scaleY,t.scale,t.originY)}function La(e,t){return Ea(Sf(e.getBoundingClientRect(),t))}function Cf(e,t,n){const r=La(e,n),{scroll:o}=t;return o&&(Vt(r.x,o.offset.x),Vt(r.y,o.offset.y)),r}const Ba=()=>({translate:0,scale:1,origin:0,originPoint:0}),Nt=()=>({x:Ba(),y:Ba()}),Oa=()=>({min:0,max:0}),ee=()=>({x:Oa(),y:Oa()}),So={current:null},Fa={current:!1};function kf(){if(Fa.current=!0,!!wr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>So.current=e.matches;e.addEventListener("change",t),t()}else So.current=!1}const Pf=new WeakMap;function Ef(e,t,n){for(const r in t){const o=t[r],i=n[r];if(ue(o))e.addValue(r,o);else if(ue(i))e.addValue(r,Dt(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,Dt(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ja=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Af{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eo,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=ge.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Z.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=zn(n),this.isVariantNode=pa(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in c){const p=c[h];l[h]!==void 0&&ue(p)&&p.set(l[h])}}mount(t){this.current=t,Pf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Fa.current||kf(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:So.current,process.env.NODE_ENV!=="production"&&Pr(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ue(this.notifyUpdate),Ue(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=At.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Z.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Mt){const n=Mt[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ee()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<ja.length;r++){const o=ja[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=Ef(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Dt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Zs(r)||Qs(r))?r=parseFloat(r):!Bh(r)&&Ke.test(n)&&(r=Zi(t,n)),this.setBaseTarget(t,ue(r)?r.get():r)),ue(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=mo(this.props,n,this.presenceContext?.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ue(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new kr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){so.render(this.render)}}class Ra extends Af{constructor(){super(...arguments),this.KeyframeResolver=Ch}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ue(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function za(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];o?.applyProjectionStyles(i,r);for(s in n)i.setProperty(s,n[s])}function Df(e){return window.getComputedStyle(e)}class Mf extends Ra{constructor(){super(...arguments),this.type="html",this.renderInstance=za}readValueFromInstance(t,n){if(At.has(n))return this.projection?.isProjecting?Xr(n):Hu(t,n);{const r=Df(t),o=(Mr(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return La(t,n)}build(t,n,r){ho(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return go(t,n,r)}}const _a=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function $f(e,t,n,r){za(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(_a.has(o)?o:yo(o),t.attrs[o])}class Vf extends Ra{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ee}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(At.has(n)){const r=qi(n);return r&&r.default||0}return n=_a.has(n)?n:yo(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Ta(t,n,r)}build(t,n,r){va(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){$f(t,n,r,o)}mount(t){this.isSVGTag=wa(t.tagName),super.mount(t)}}const If=(e,t)=>po(e)?new Vf(t):new Mf(t,{allowProjection:e!==f.Fragment});function Lt(e,t,n){const r=e.getProps();return mo(r,t,n!==void 0?n:r.custom,e)}const To=e=>Array.isArray(e);function Nf(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dt(n))}function Lf(e){return To(e)?e[e.length-1]||0:e}function Bf(e,t){const n=Lt(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=Lf(i[s]);Nf(e,s,a)}}function Of(e){return!!(ue(e)&&e.add)}function Co(e,t){const n=e.getValue("willChange");if(Of(n))return n.add(t);if(!n&&Re.WillChange){const r=new Re.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ha(e){return e.props[Ca]}const Ff=e=>e!==null;function jf(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Ff),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const Rf={type:"spring",stiffness:500,damping:25,restSpeed:10},zf=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_f={type:"keyframes",duration:.8},Hf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Uf=(e,{keyframes:t})=>t.length>2?_f:At.has(e)?e.startsWith("scale")?zf(t[1]):Rf:Hf;function Wf({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:d,...u}){return!!Object.keys(u).length}const ko=(e,t,n,r={},o,i)=>s=>{const a=no(r,e)||{},l=a.delay||r.delay||0;let{elapsed:d=0}=r;d=d-De(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-d,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};Wf(a)||Object.assign(u,Uf(e,u)),u.duration&&(u.duration=De(u.duration)),u.repeatDelay&&(u.repeatDelay=De(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let c=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(to(u),u.delay===0&&(c=!0)),(Re.instantAnimations||Re.skipAnimations)&&(c=!0,to(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,c&&!i&&t.get()!==void 0){const h=jf(u.keyframes,a);if(h!==void 0){Z.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Kr(u):new hh(u)};function Kf({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ua(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(i=r);const l=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const u in a){const c=e.getValue(u,e.latestValues[u]??null),h=a[u];if(h===void 0||d&&Kf(d,u))continue;const p={delay:n,...no(i||{},u)},g=c.get();if(g!==void 0&&!c.isAnimating&&!Array.isArray(h)&&h===g&&!p.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const y=Ha(e);if(y){const x=window.MotionHandoffAnimation(y,u,Z);x!==null&&(p.startTime=x,v=!0)}}Co(e,u),c.start(ko(u,c,h,e.shouldReduceMotion&&Wi.has(u)?{type:!1}:p,e,v));const w=c.animation;w&&l.push(w)}return s&&Promise.all(l).then(()=>{Z.update(()=>{s&&Bf(e,s)})}),l}function Wa(e,t,n,r=0,o=1){const i=Array.from(e).sort((d,u)=>d.sortNodePosition(u)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}function Po(e,t,n={}){const r=Lt(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Ua(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:c}=o;return Yf(e,t,l,d,u,c,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,d]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>d())}else return Promise.all([i(),s(n.delay)])}function Yf(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Po(l,t,{...s,delay:n+(typeof r=="function"?0:r)+Wa(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function Gf(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Po(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Po(e,t,n);else{const o=typeof t=="function"?Lt(e,t,n.custom):t;r=Promise.all(Ua(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Ka(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Xf=uo.length;function Ya(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Ya(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Xf;n++){const r=uo[n],o=e.props[r];(Xt(o)||o===!1)&&(t[r]=o)}return t}const qf=[...co].reverse(),Zf=co.length;function Jf(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Gf(e,n,r)))}function Qf(e){let t=Jf(e),n=Ga(),r=!0;const o=l=>(d,u)=>{const c=Lt(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(c){const{transition:h,transitionEnd:p,...g}=c;d={...d,...g,...p}}return d};function i(l){t=l(e)}function s(l){const{props:d}=e,u=Ya(e.parent)||{},c=[],h=new Set;let p={},g=1/0;for(let w=0;w<Zf;w++){const y=qf[w],x=n[y],b=d[y]!==void 0?d[y]:u[y],E=Xt(b),T=y===l?x.isActive:null;T===!1&&(g=w);let S=b===u[y]&&b!==d[y]&&E;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),x.protectedKeys={...p},!x.isActive&&T===null||!b&&!x.prevProp||Rn(b)||typeof b=="boolean")continue;const C=ep(x.prevProp,b);let D=C||y===l&&x.isActive&&!S&&E||w>g&&E,I=!1;const _=Array.isArray(b)?b:[b];let M=_.reduce(o(y),{});T===!1&&(M={});const{prevResolvedValues:K={}}=x,W={...K,...M},Pe=N=>{D=!0,h.has(N)&&(I=!0,h.delete(N)),x.needsAnimating[N]=!0;const R=e.getValue(N);R&&(R.liveStyle=!1)};for(const N in W){const R=M[N],V=K[N];if(p.hasOwnProperty(N))continue;let j=!1;To(R)&&To(V)?j=!Ka(R,V):j=R!==V,j?R!=null?Pe(N):h.add(N):R!==void 0&&h.has(N)?Pe(N):x.protectedKeys[N]=!0}x.prevProp=b,x.prevResolvedValues=M,x.isActive&&(p={...p,...M}),r&&e.blockInitialAnimation&&(D=!1);const re=S&&C;D&&(!re||I)&&c.push(..._.map(N=>{const R={type:y};if(typeof N=="string"&&r&&!re&&e.manuallyAnimateOnMount&&e.parent){const{parent:V}=e,j=Lt(V,N);if(V.enteringChildren&&j){const{delayChildren:oe}=j.transition||{};R.delay=Wa(V.enteringChildren,e,oe)}}return{animation:N,options:R}}))}if(h.size){const w={};if(typeof d.initial!="boolean"){const y=Lt(e,Array.isArray(d.initial)?d.initial[0]:d.initial);y&&y.transition&&(w.transition=y.transition)}h.forEach(y=>{const x=e.getBaseTarget(y),b=e.getValue(y);b&&(b.liveStyle=!0),w[y]=x??null}),c.push({animation:w})}let v=!!c.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(c):Promise.resolve()}function a(l,d){if(n[l].isActive===d)return Promise.resolve();e.variantChildren?.forEach(c=>c.animationState?.setActive(l,d)),n[l].isActive=d;const u=s(l);for(const c in n)n[c].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Ga(),r=!0}}}function ep(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ka(t,e):!1}function lt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ga(){return{animate:lt(!0),whileInView:lt(),whileHover:lt(),whileTap:lt(),whileDrag:lt(),whileFocus:lt(),exit:lt()}}class Ye{constructor(t){this.isMounted=!1,this.node=t}update(){}}class tp extends Ye{constructor(t){super(t),t.animationState||(t.animationState=Qf(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Rn(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let np=0;class rp extends Ye{constructor(){super(...arguments),this.id=np++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const op={animation:{Feature:tp},exit:{Feature:rp}};function Zt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Jt(e){return{point:{x:e.pageX,y:e.pageY}}}const sp=e=>t=>io(t)&&e(t,Jt(t));function Qt(e,t,n,r){return Zt(e,t,sp(n),r)}const Xa=1e-4,ip=1-Xa,ap=1+Xa,qa=.01,lp=0-qa,cp=0+qa;function fe(e){return e.max-e.min}function dp(e,t,n){return Math.abs(e-t)<=n}function Za(e,t,n,r=.5){e.origin=r,e.originPoint=J(t.min,t.max,e.origin),e.scale=fe(n)/fe(t),e.translate=J(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ip&&e.scale<=ap||isNaN(e.scale))&&(e.scale=1),(e.translate>=lp&&e.translate<=cp||isNaN(e.translate))&&(e.translate=0)}function en(e,t,n,r){Za(e.x,t.x,n.x,r?r.originX:void 0),Za(e.y,t.y,n.y,r?r.originY:void 0)}function Ja(e,t,n){e.min=n.min+t.min,e.max=e.min+fe(t)}function up(e,t,n){Ja(e.x,t.x,n.x),Ja(e.y,t.y,n.y)}function Qa(e,t,n){e.min=t.min-n.min,e.max=e.min+fe(t)}function tn(e,t,n){Qa(e.x,t.x,n.x),Qa(e.y,t.y,n.y)}function Ce(e){return[e("x"),e("y")]}const el=({current:e})=>e?e.ownerDocument.defaultView:null,tl=(e,t)=>Math.abs(e-t);function hp(e,t){const n=tl(e.x,t.x),r=tl(e.y,t.y);return Math.sqrt(n**2+r**2)}class nl{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Ao(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=hp(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!g)return;const{point:v}=h,{timestamp:w}=ce;this.history.push({...v,timestamp:w});const{onStart:y,onMove:x}=this.handlers;p||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,p)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Eo(p,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(h,p)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Ao(h.type==="pointercancel"?this.lastMoveEventInfo:Eo(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,y),v&&v(h,y)},!io(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const a=Jt(t),l=Eo(a,this.transformPagePoint),{point:d}=l,{timestamp:u}=ce;this.history=[{...d,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Ao(l,this.history)),this.removeListeners=zt(Qt(this.contextWindow,"pointermove",this.handlePointerMove),Qt(this.contextWindow,"pointerup",this.handlePointerUp),Qt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ue(this.updatePoint)}}function Eo(e,t){return t?{point:t(e.point)}:e}function rl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ao({point:e},t){return{point:e,delta:rl(e,ol(t)),offset:rl(e,fp(t)),velocity:pp(t,.1)}}function fp(e){return e[0]}function ol(e){return e[e.length-1]}function pp(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=ol(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>De(t)));)n--;if(!r)return{x:0,y:0};const i=Te(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function mp(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?J(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?J(n,e,r.max):Math.min(e,n)),e}function sl(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function gp(e,{top:t,left:n,bottom:r,right:o}){return{x:sl(e.x,n,o),y:sl(e.y,t,r)}}function il(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function yp(e,t){return{x:il(e.x,t.x),y:il(e.y,t.y)}}function vp(e,t){let n=.5;const r=fe(e),o=fe(t);return o>r?n=_t(t.min,t.max-r,e.min):r>o&&(n=_t(e.min,e.max-o,t.min)),Fe(0,1,n)}function bp(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Do=.35;function wp(e=Do){return e===!1?e=0:e===!0&&(e=Do),{x:al(e,"left","right"),y:al(e,"top","bottom")}}function al(e,t,n){return{min:ll(e,t),max:ll(e,n)}}function ll(e,t){return typeof e=="number"?e:e[t]||0}const xp=new WeakMap;class Sp{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ee(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Jt(c).point)},s=(c,h)=>{const{drag:p,dragPropagation:g,onDragStart:v}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ah(p),!this.openDragLock))return;this.latestPointerEvent=c,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ce(y=>{let x=this.getAxisMotionValue(y).get()||0;if(Le.test(x)){const{projection:b}=this.visualElement;if(b&&b.layout){const E=b.layout.layoutBox[y];E&&(x=fe(E)*(parseFloat(x)/100))}}this.originPoint[y]=x}),v&&Z.postRender(()=>v(c,h)),Co(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(c,h)=>{this.latestPointerEvent=c,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:v,onDrag:w}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:y}=h;if(g&&this.currentDirection===null){this.currentDirection=Tp(y),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),w&&w(c,h)},l=(c,h)=>{this.latestPointerEvent=c,this.latestPanInfo=h,this.stop(c,h),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>Ce(c=>this.getAnimationState(c)==="paused"&&this.getAxisMotionValue(c).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new nl(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:el(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&Z.postRender(()=>a(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Un(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=mp(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&$t(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=gp(r.layoutBox,t):this.constraints=!1,this.elastic=wp(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ce(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=bp(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!$t(t))return!1;const r=t.current;je(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=Cf(r,o.root,this.visualElement.getTransformPagePoint());let s=yp(o.layout.layoutBox,i);if(n){const a=n(xf(s));this.hasMutatedConstraints=!!a,a&&(s=Ea(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},d=Ce(u=>{if(!Un(u,n,this.currentDirection))return;let c=l&&l[u]||{};s&&(c={min:0,max:0});const h=o?200:1e6,p=o?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(u,g)});return Promise.all(d).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Co(this.visualElement,t),r.start(ko(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ce(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ce(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ce(n=>{const{drag:r}=this.getProps();if(!Un(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-J(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!$t(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ce(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=vp({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ce(s=>{if(!Un(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:d}=this.constraints[s];a.set(J(l,d,o[s]))})}addListeners(){if(!this.visualElement.current)return;xp.set(this.visualElement,this);const t=this.visualElement.current,n=Qt(t,"pointerdown",l=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();$t(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Z.read(r);const s=Zt(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(Ce(u=>{const c=this.getAxisMotionValue(u);c&&(this.originPoint[u]+=l[u].translate,c.set(c.get()+l[u].translate))}),this.visualElement.render())}));return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Do,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Un(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Tp(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Cp extends Ye{constructor(t){super(t),this.removeGroupControls=Se,this.removeListeners=Se,this.controls=new Sp(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Se}unmount(){this.removeGroupControls(),this.removeListeners()}}const cl=e=>(t,n)=>{e&&Z.postRender(()=>e(t,n))};class kp extends Ye{constructor(){super(...arguments),this.removePointerDownListener=Se}onPointerDown(t){this.session=new nl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:el(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:cl(t),onStart:cl(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Z.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Qt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Wn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function dl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const nn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if($.test(e))e=parseFloat(e);else return e;const n=dl(e,t.target.x),r=dl(e,t.target.y);return`${n}% ${r}%`}},Pp={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Ke.parse(e);if(o.length>5)return r;const i=Ke.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const d=J(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=d),typeof o[3+s]=="number"&&(o[3+s]/=d),i(o)}};let Mo=!1;class Ep extends f.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;Xh(Ap),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Mo&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Wn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,Mo=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Z.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),so.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Mo=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ul(e){const[t,n]=ca(),r=f.useContext(vr);return m.jsx(Ep,{...e,layoutGroup:r,switchLayoutGroup:f.useContext(ka),isPresent:t,safeToRemove:n})}const Ap={borderRadius:{...nn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nn,borderTopRightRadius:nn,borderBottomLeftRadius:nn,borderBottomRightRadius:nn,boxShadow:Pp};function Dp(e,t,n){const r=ue(e)?e:Dt(e);return r.start(ko("",r,t,n)),r.animation}const Mp=(e,t)=>e.depth-t.depth;class $p{constructor(){this.children=[],this.isDirty=!1}add(t){xr(this.children,t),this.isDirty=!0}remove(t){Sr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Mp),this.isDirty=!1,this.children.forEach(t)}}function Vp(e,t){const n=ge.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Ue(r),e(i-t))};return Z.setup(r,!0),()=>Ue(r)}const hl=["TopLeft","TopRight","BottomLeft","BottomRight"],Ip=hl.length,fl=e=>typeof e=="string"?parseFloat(e):e,pl=e=>typeof e=="number"||$.test(e);function Np(e,t,n,r,o,i){o?(e.opacity=J(0,n.opacity??1,Lp(r)),e.opacityExit=J(t.opacity??1,0,Bp(r))):i&&(e.opacity=J(t.opacity??1,n.opacity??1,r));for(let s=0;s<Ip;s++){const a=`border${hl[s]}Radius`;let l=ml(t,a),d=ml(n,a);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||pl(l)===pl(d)?(e[a]=Math.max(J(fl(l),fl(d),r),0),(Le.test(d)||Le.test(l))&&(e[a]+="%")):e[a]=d}(t.rotate||n.rotate)&&(e.rotate=J(t.rotate||0,n.rotate||0,r))}function ml(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Lp=gl(0,.5,li),Bp=gl(.5,.95,Se);function gl(e,t,n){return r=>r<e?0:r>t?1:n(_t(e,t,r))}function yl(e,t){e.min=t.min,e.max=t.max}function ke(e,t){yl(e.x,t.x),yl(e.y,t.y)}function vl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function bl(e,t,n,r,o){return e-=t,e=Hn(e,1/n,r),o!==void 0&&(e=Hn(e,1/o,r)),e}function Op(e,t=0,n=1,r=.5,o,i=e,s=e){if(Le.test(t)&&(t=parseFloat(t),t=J(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=J(i.min,i.max,r);e===i&&(a-=t),e.min=bl(e.min,t,n,a,o),e.max=bl(e.max,t,n,a,o)}function wl(e,t,[n,r,o],i,s){Op(e,t[n],t[r],t[o],t.scale,i,s)}const Fp=["x","scaleX","originX"],jp=["y","scaleY","originY"];function xl(e,t,n,r){wl(e.x,t,Fp,n?n.x:void 0,r?r.x:void 0),wl(e.y,t,jp,n?n.y:void 0,r?r.y:void 0)}function Sl(e){return e.translate===0&&e.scale===1}function Tl(e){return Sl(e.x)&&Sl(e.y)}function Cl(e,t){return e.min===t.min&&e.max===t.max}function Rp(e,t){return Cl(e.x,t.x)&&Cl(e.y,t.y)}function kl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Pl(e,t){return kl(e.x,t.x)&&kl(e.y,t.y)}function El(e){return fe(e.x)/fe(e.y)}function Al(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class zp{constructor(){this.members=[]}add(t){xr(this.members,t),t.scheduleRender()}remove(t){if(Sr(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function _p(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:u,rotateX:c,rotateY:h,skewX:p,skewY:g}=n;d&&(r=`perspective(${d}px) ${r}`),u&&(r+=`rotate(${u}deg) `),c&&(r+=`rotateX(${c}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const $o=["","X","Y","Z"],Hp=1e3;let Up=0;function Vo(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Dl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ha(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Z,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Dl(r)}function Ml({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=Up++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Yp),this.nodes.forEach(Zp),this.nodes.forEach(Jp),this.nodes.forEach(Gp)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new $p)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new kr),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=aa(s)&&!Nh(s),this.instance=s;const{layoutId:a,layout:l,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let u,c=0;const h=()=>this.root.updateBlockedByResize=!1;Z.read(()=>{c=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==c&&(c=p,this.root.updateBlockedByResize=!0,u&&u(),u=Vp(h,250),Wn.hasAnimatedSinceResize&&(Wn.hasAnimatedSinceResize=!1,this.nodes.forEach(Il)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&d&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||rm,{onLayoutAnimationStart:v,onLayoutAnimationComplete:w}=d.getProps(),y=!this.targetLayout||!Pl(this.targetLayout,p),x=!c&&h;if(this.options.layoutRoot||this.resumeFrom||x||c&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...no(g,"layout"),onPlay:v,onComplete:w};(d.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(u,x)}else c||Il(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ue(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Qp),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Dl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const c=this.path[u];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach($l);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Vl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(qp),this.nodes.forEach(Wp),this.nodes.forEach(Kp)):this.nodes.forEach(Vl),this.clearAllSnapshots();const a=ge.now();ce.delta=Fe(0,1e3/60,a-ce.timestamp),ce.timestamp=a,ce.isProcessing=!0,Dr.update.process(ce),Dr.preRender.process(ce),Dr.render.process(ce),ce.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,so.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Xp),this.sharedNodes.forEach(em)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!fe(this.snapshot.measuredBox.x)&&!fe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ee(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Tl(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;s&&this.instance&&(a||at(this.latestValues)||u)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),om(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return ee();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sm))){const{scroll:d}=this.root;d&&(Vt(a.x,d.offset.x),Vt(a.y,d.offset.y))}return a}removeElementScroll(s){const a=ee();if(ke(a,s),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const d=this.path[l],{scroll:u,options:c}=d;d!==this.root&&u&&c.layoutScroll&&(u.wasRoot&&ke(a,s),Vt(a.x,u.offset.x),Vt(a.y,u.offset.y))}return a}applyTransform(s,a=!1){const l=ee();ke(l,s);for(let d=0;d<this.path.length;d++){const u=this.path[d];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&It(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),at(u.latestValues)&&It(l,u.latestValues)}return at(this.latestValues)&&It(l,this.latestValues),l}removeTransform(s){const a=ee();ke(a,s);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!at(d.latestValues))continue;wo(d.latestValues)&&d.updateSnapshot();const u=ee(),c=d.measurePageBox();ke(u,c),xl(a,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return at(this.latestValues)&&xl(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ce.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:c}=this.options;if(!(!this.layout||!(u||c))){if(this.resolvedRelativeTargetAt=ce.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ee(),this.relativeTargetOrigin=ee(),tn(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ke(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ee(),this.targetWithTransforms=ee()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),up(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ke(this.target,this.layout.layoutBox),$a(this.target,this.targetDelta)):ke(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ee(),this.relativeTargetOrigin=ee(),tn(this.relativeTargetOrigin,this.target,h.target),ke(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||wo(this.parent.latestValues)||Aa(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===ce.timestamp&&(l=!1),l)return;const{layout:d,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||u))return;ke(this.layoutCorrected,this.layout.layoutBox);const c=this.treeScale.x,h=this.treeScale.y;Tf(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ee());const{target:p}=s;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(vl(this.prevProjectionDelta.x,this.projectionDelta.x),vl(this.prevProjectionDelta.y,this.projectionDelta.y)),en(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==c||this.treeScale.y!==h||!Al(this.projectionDelta.x,this.prevProjectionDelta.x)||!Al(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Nt(),this.projectionDelta=Nt(),this.projectionDeltaWithTransform=Nt()}setAnimationOrigin(s,a=!1){const l=this.snapshot,d=l?l.latestValues:{},u={...this.latestValues},c=Nt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ee(),p=l?l.source:void 0,g=this.layout?this.layout.source:void 0,v=p!==g,w=this.getStack(),y=!w||w.members.length<=1,x=!!(v&&!y&&this.options.crossfade===!0&&!this.path.some(nm));this.animationProgress=0;let b;this.mixTargetDelta=E=>{const T=E/1e3;Nl(c.x,s.x,T),Nl(c.y,s.y,T),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(tn(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),tm(this.relativeTarget,this.relativeTargetOrigin,h,T),b&&Rp(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=ee()),ke(b,this.relativeTarget)),v&&(this.animationValues=u,Np(u,d,this.latestValues,T,x,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ue(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{Wn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Dt(0)),this.currentAnimation=Dp(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Hp),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:d,latestValues:u}=s;if(!(!a||!l||!d)){if(this!==s&&this.layout&&d&&jl(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||ee();const c=fe(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+c;const h=fe(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}ke(a,l),It(a,u),en(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new zp),this.sharedNodes.get(s).add(a);const d=a.options.initialPromotionConfig;a.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const d={};l.z&&Vo("z",s,d,this.animationValues);for(let u=0;u<$o.length;u++)Vo(`rotate${$o[u]}`,s,d,this.animationValues),Vo(`skew${$o[u]}`,s,d,this.animationValues);s.render();for(const u in d)s.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=_n(a?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=_n(a?.pointerEvents)||""),this.hasProjected&&!at(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let c=_p(this.projectionDeltaWithTransform,this.treeScale,u);l&&(c=l(u,c)),s.transform=c;const{x:h,y:p}=this.projectionDelta;s.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,d.animationValues?s.opacity=d===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=d===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const g in qt){if(u[g]===void 0)continue;const{correct:v,applyTo:w,isCSSVariable:y}=qt[g],x=c==="none"?u[g]:v(u[g],d);if(w){const b=w.length;for(let E=0;E<b;E++)s[w[E]]=x}else y?this.options.visualElement.renderState.vars[g]=x:s[g]=x}this.options.layoutId&&(s.pointerEvents=d===this?_n(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach($l),this.root.sharedNodes.clear()}}}function Wp(e){e.updateLayout()}function Kp(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;o==="size"?Ce(u=>{const c=i?t.measuredBox[u]:t.layoutBox[u],h=fe(c);c.min=n[u].min,c.max=c.min+h}):jl(o,t.layoutBox,n)&&Ce(u=>{const c=i?t.measuredBox[u]:t.layoutBox[u],h=fe(n[u]);c.max=c.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const s=Nt();en(s,n,t.layoutBox);const a=Nt();i?en(a,e.applyTransform(r,!0),t.measuredBox):en(a,n,t.layoutBox);const l=!Tl(s);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:c,layout:h}=u;if(c&&h){const p=ee();tn(p,t.layoutBox,c.layoutBox);const g=ee();tn(g,n,h.layoutBox),Pl(p,g)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=p,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Yp(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Gp(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Xp(e){e.clearSnapshot()}function $l(e){e.clearMeasurements()}function Vl(e){e.isLayoutDirty=!1}function qp(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Il(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Zp(e){e.resolveTargetDelta()}function Jp(e){e.calcProjection()}function Qp(e){e.resetSkewAndRotation()}function em(e){e.removeLeadSnapshot()}function Nl(e,t,n){e.translate=J(t.translate,0,n),e.scale=J(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ll(e,t,n,r){e.min=J(t.min,n.min,r),e.max=J(t.max,n.max,r)}function tm(e,t,n,r){Ll(e.x,t.x,n.x,r),Ll(e.y,t.y,n.y,r)}function nm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const rm={duration:.45,ease:[.4,0,.1,1]},Bl=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ol=Bl("applewebkit/")&&!Bl("chrome/")?Math.round:Se;function Fl(e){e.min=Ol(e.min),e.max=Ol(e.max)}function om(e){Fl(e.x),Fl(e.y)}function jl(e,t,n){return e==="position"||e==="preserve-aspect"&&!dp(El(t),El(n),.2)}function sm(e){return e!==e.root&&e.scroll?.wasRoot}const im=Ml({attachResizeListener:(e,t)=>Zt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Io={current:void 0},Rl=Ml({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Io.current){const e=new im({});e.mount(window),e.setOptions({layoutScroll:!0}),Io.current=e}return Io.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),am={pan:{Feature:kp},drag:{Feature:Cp,ProjectionNode:Rl,MeasureLayout:ul}};function zl(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&Z.postRender(()=>i(t,Jt(t)))}class lm extends Ye{mount(){const{current:t}=this.node;t&&(this.unmount=Dh(t,(n,r)=>(zl(this.node,r,"Start"),o=>zl(this.node,o,"End"))))}unmount(){}}class cm extends Ye{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=zt(Zt(this.node.current,"focus",()=>this.onFocus()),Zt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function _l(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&Z.postRender(()=>i(t,Jt(t)))}class dm extends Ye{mount(){const{current:t}=this.node;t&&(this.unmount=Ih(t,(n,r)=>(_l(this.node,r,"Start"),(o,{success:i})=>_l(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const No=new WeakMap,Lo=new WeakMap,um=e=>{const t=No.get(e.target);t&&t(e)},hm=e=>{e.forEach(um)};function fm({root:e,...t}){const n=e||document;Lo.has(n)||Lo.set(n,{});const r=Lo.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(hm,{root:e,...t})),r[o]}function pm(e,t,n){const r=fm(t);return No.set(e,n),r.observe(e),()=>{No.delete(e),r.unobserve(e)}}const mm={some:0,all:1};class gm extends Ye{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:mm[o]},a=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:u,onViewportLeave:c}=this.node.getProps(),h=d?u:c;h&&h(l)};return pm(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(ym(t,n))&&this.startObserver()}unmount(){}}function ym({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const vm={...op,...{inView:{Feature:gm},tap:{Feature:dm},focus:{Feature:cm},hover:{Feature:lm}},...am,...{layout:{ProjectionNode:Rl,MeasureLayout:ul}}},ct=wf(vm,If),bm={sm:P`
234
+ `),()=>{w.contains(v)&&w.removeChild(v)}},[t]),p.jsx(_h,{isPresent:t,childRef:s,sizeRef:i,children:cn.cloneElement(e,{ref:c})})}const Uh=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:i,anchorX:a,root:c})=>{const d=br(Wh),u=f.useId();let l=!0,h=f.useMemo(()=>(l=!1,{id:u,initial:t,isPresent:n,custom:o,onExitComplete:m=>{d.set(m,!0);for(const g of d.values())if(!g)return;r&&r()},register:m=>(d.set(m,!1),()=>d.delete(m))}),[n,d,r]);return s&&l&&(h={...h}),f.useMemo(()=>{d.forEach((m,g)=>d.set(g,!1))},[n]),cn.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),i==="popLayout"&&(e=p.jsx(Hh,{isPresent:n,anchorX:a,root:c,children:e})),p.jsx(Dn.Provider,{value:h,children:e})};function Wh(){return new Map}function da(e=!0){const t=f.useContext(Dn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=f.useId();f.useEffect(()=>{if(e)return o(s)},[e]);const i=f.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,i]:[!0]}const On=e=>e.key||"";function ua(e){const t=[];return f.Children.forEach(e,n=>{f.isValidElement(n)&&t.push(n)}),t}const qt=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:i=!1,anchorX:a="left",root:c})=>{const[d,u]=da(i),l=f.useMemo(()=>ua(e),[e]),h=i&&!d?[]:l.map(On),m=f.useRef(!0),g=f.useRef(l),v=br(()=>new Map),[w,y]=f.useState(l),[x,b]=f.useState(l);Zi(()=>{m.current=!1,g.current=l;for(let S=0;S<x.length;S++){const k=On(x[S]);h.includes(k)?v.delete(k):v.get(k)!==!0&&v.set(k,!1)}},[x,h.length,h.join("-")]);const A=[];if(l!==w){let S=[...l];for(let k=0;k<x.length;k++){const D=x[k],I=On(D);h.includes(I)||(S.splice(k,0,D),A.push(D))}return s==="wait"&&A.length&&(S=A),b(ua(S)),y(l),null}process.env.NODE_ENV!=="production"&&s==="wait"&&x.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:C}=f.useContext(vr);return p.jsx(p.Fragment,{children:x.map(S=>{const k=On(S),D=i&&!d?!1:l===x||h.includes(k),I=()=>{if(v.has(k))v.set(k,!0);else return;let _=!0;v.forEach(M=>{M||(_=!1)}),_&&(C?.(),b(g.current),i&&u?.(),r&&r())};return p.jsx(Uh,{isPresent:D,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:c,onExitComplete:D?void 0:I,anchorX:a,children:S},k)})})},ha=f.createContext({strict:!1}),fa={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Vt={};for(const e in fa)Vt[e]={isEnabled:t=>fa[e].some(n=>!!t[n])};function Kh(e){for(const t in e)Vt[t]={...Vt[t],...e[t]}}const Yh=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Fn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Yh.has(e)}let pa=e=>!Fn(e);function Gh(e){typeof e=="function"&&(pa=t=>t.startsWith("on")?!Fn(t):e(t))}try{Gh(require("@emotion/is-prop-valid").default)}catch{}function Xh(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(pa(o)||n===!0&&Fn(o)||!t&&!Fn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const jn=f.createContext({});function Rn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Zt(e){return typeof e=="string"||Array.isArray(e)}const co=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],uo=["initial",...co];function zn(e){return Rn(e.animate)||uo.some(t=>Zt(e[t]))}function ma(e){return!!(zn(e)||e.variants)}function qh(e,t){if(zn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Zt(n)?n:void 0,animate:Zt(r)?r:void 0}}return e.inherit!==!1?t:{}}function Zh(e){const{initial:t,animate:n}=qh(e,f.useContext(jn));return f.useMemo(()=>({initial:t,animate:n}),[ga(t),ga(n)])}function ga(e){return Array.isArray(e)?e.join(" "):e}const Jt={};function Jh(e){for(const t in e)Jt[t]=e[t],Mr(t)&&(Jt[t].isCSSVariable=!0)}function ya(e,{layout:t,layoutId:n}){return Dt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Jt[e]||e==="opacity")}const Qh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ef=At.length;function tf(e,t,n){let r="",o=!0;for(let s=0;s<ef;s++){const i=At[s],a=e[i];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(i.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const d=Qs(a,oo[i]);if(!c){o=!1;const u=Qh[i]||i;r+=`${u}(${d}) `}n&&(t[i]=d)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function ho(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let i=!1,a=!1;for(const c in t){const d=t[c];if(Dt.has(c)){i=!0;continue}else if(Mr(c)){o[c]=d;continue}else{const u=Qs(d,oo[c]);c.startsWith("origin")?(a=!0,s[c]=u):r[c]=u}}if(t.transform||(i||n?r.transform=tf(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:d="50%",originZ:u=0}=s;r.transformOrigin=`${c} ${d} ${u}`}}const fo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function va(e,t,n){for(const r in t)!ue(t[r])&&!ya(r,n)&&(e[r]=t[r])}function nf({transformTemplate:e},t){return f.useMemo(()=>{const n=fo();return ho(n,t,e),Object.assign({},n.vars,n.style)},[t])}function rf(e,t){const n=e.style||{},r={};return va(r,n,e),Object.assign(r,nf(e,t)),r}function of(e,t){const n={},r=rf(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const sf={offset:"stroke-dashoffset",array:"stroke-dasharray"},af={offset:"strokeDashoffset",array:"strokeDasharray"};function lf(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?sf:af;e[s.offset]=V.transform(-r);const i=V.transform(t),a=V.transform(n);e[s.array]=`${i} ${a}`}function ba(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:s=1,pathOffset:i=0,...a},c,d,u){if(ho(e,a,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:l,style:h}=e;l.transform&&(h.transform=l.transform,delete l.transform),(h.transform||l.transformOrigin)&&(h.transformOrigin=l.transformOrigin??"50% 50%",delete l.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete l.transformBox),t!==void 0&&(l.x=t),n!==void 0&&(l.y=n),r!==void 0&&(l.scale=r),o!==void 0&&lf(l,o,s,i,!1)}const wa=()=>({...fo(),attrs:{}}),xa=e=>typeof e=="string"&&e.toLowerCase()==="svg";function cf(e,t,n,r){const o=f.useMemo(()=>{const s=wa();return ba(s,t,xa(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};va(s,e.style,e),o.style={...s,...o.style}}return o}const df=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function po(e){return typeof e!="string"||e.includes("-")?!1:!!(df.indexOf(e)>-1||/[A-Z]/u.test(e))}function uf(e,t,n,{latestValues:r},o,s=!1){const a=(po(e)?cf:of)(t,r,o,e),c=Xh(t,typeof e=="string",s),d=e!==f.Fragment?{...c,...a,ref:n}:{},{children:u}=t,l=f.useMemo(()=>ue(u)?u.get():u,[u]);return f.createElement(e,{...d,children:l})}function Sa(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function mo(e,t,n,r){if(typeof t=="function"){const[o,s]=Sa(r);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=Sa(r);t=t(n!==void 0?n:e.custom,o,s)}return t}function _n(e){return ue(e)?e.get():e}function hf({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:ff(n,r,o,e),renderState:t()}}function ff(e,t,n,r){const o={},s=r(e,{});for(const h in s)o[h]=_n(s[h]);let{initial:i,animate:a}=e;const c=zn(e),d=ma(e);t&&d&&!c&&e.inherit!==!1&&(i===void 0&&(i=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||i===!1;const l=u?a:i;if(l&&typeof l!="boolean"&&!Rn(l)){const h=Array.isArray(l)?l:[l];for(let m=0;m<h.length;m++){const g=mo(e,h[m]);if(g){const{transitionEnd:v,transition:w,...y}=g;for(const x in y){let b=y[x];if(Array.isArray(b)){const A=u?b.length-1:0;b=b[A]}b!==null&&(o[x]=b)}for(const x in v)o[x]=v[x]}}}return o}const Ta=e=>(t,n)=>{const r=f.useContext(jn),o=f.useContext(Dn),s=()=>hf(e,t,r,o);return n?s():br(s)};function go(e,t,n){const{style:r}=e,o={};for(const s in r)(ue(r[s])||t.style&&ue(t.style[s])||ya(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(o[s]=r[s]);return o}const pf=Ta({scrapeMotionValuesFromProps:go,createRenderState:fo});function Ca(e,t,n){const r=go(e,t,n);for(const o in e)if(ue(e[o])||ue(t[o])){const s=At.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[s]=e[o]}return r}const mf=Ta({scrapeMotionValuesFromProps:Ca,createRenderState:wa}),gf=Symbol.for("motionComponentSymbol");function $t(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function yf(e,t,n){return f.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):$t(n)&&(n.current=r))},[t])}const yo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ka="data-"+yo("framerAppearId"),Pa=f.createContext({});function vf(e,t,n,r,o){const{visualElement:s}=f.useContext(jn),i=f.useContext(ha),a=f.useContext(Dn),c=f.useContext(lo).reducedMotion,d=f.useRef(null);r=r||i.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const u=d.current,l=f.useContext(Pa);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&bf(d.current,n,o,l);const h=f.useRef(!1);f.useInsertionEffect(()=>{u&&h.current&&u.update(n,a)});const m=n[ka],g=f.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return Zi(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),g.current&&u.animationState&&u.animationState.animateChanges())}),f.useEffect(()=>{u&&(!g.current&&u.animationState&&u.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),g.current=!1),u.enteringChildren=void 0)}),u}function bf(e,t,n,r){const{layoutId:o,layout:s,drag:i,dragConstraints:a,layoutScroll:c,layoutRoot:d,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ea(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!i||a&&$t(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:d})}function Ea(e){if(e)return e.options.allowProjection!==!1?e.projection:Ea(e.parent)}function vo(e,{forwardMotionProps:t=!1}={},n,r){n&&Kh(n);const o=po(e)?mf:pf;function s(a,c){let d;const u={...f.useContext(lo),...a,layoutId:wf(a)},{isStatic:l}=u,h=Zh(a),m=o(a,l);if(!l&&wr){xf(u,n);const g=Sf(u);d=g.MeasureLayout,h.visualElement=vf(e,m,u,r,g.ProjectionNode)}return p.jsxs(jn.Provider,{value:h,children:[d&&h.visualElement?p.jsx(d,{visualElement:h.visualElement,...u}):null,uf(e,a,yf(m,h.visualElement,c),m,l,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const i=f.forwardRef(s);return i[gf]=e,i}function wf({layoutId:e}){const t=f.useContext(vr).id;return t&&e!==void 0?t+"-"+e:e}function xf(e,t){const n=f.useContext(ha).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Ct(!1,r,"lazy-strict-mode"):je(!1,r,"lazy-strict-mode")}}function Sf(e){const{drag:t,layout:n}=Vt;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Tf(e,t){if(typeof Proxy>"u")return vo;const n=new Map,r=(s,i)=>vo(s,i,e,t),o=(s,i)=>(process.env.NODE_ENV!=="production"&&Pr(!1,"motion() is deprecated. Use motion.create() instead."),r(s,i));return new Proxy(o,{get:(s,i)=>i==="create"?r:(n.has(i)||n.set(i,vo(i,void 0,e,t)),n.get(i))})}function Aa({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Cf({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function kf(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function bo(e){return e===void 0||e===1}function wo({scale:e,scaleX:t,scaleY:n}){return!bo(e)||!bo(t)||!bo(n)}function ct(e){return wo(e)||Da(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Da(e){return Ma(e.x)||Ma(e.y)}function Ma(e){return e&&e!=="0%"}function Hn(e,t,n){const r=e-n,o=t*r;return n+o}function Va(e,t,n,r,o){return o!==void 0&&(e=Hn(e,o,r)),Hn(e,n,r)+t}function xo(e,t=0,n=1,r,o){e.min=Va(e.min,t,n,r,o),e.max=Va(e.max,t,n,r,o)}function $a(e,{x:t,y:n}){xo(e.x,t.translate,t.scale,t.originPoint),xo(e.y,n.translate,n.scale,n.originPoint)}const Ia=.999999999999,Na=1.0000000000001;function Pf(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,i;for(let a=0;a<o;a++){s=n[a],i=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Nt(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,$a(e,i)),r&&ct(s.latestValues)&&Nt(e,s.latestValues))}t.x<Na&&t.x>Ia&&(t.x=1),t.y<Na&&t.y>Ia&&(t.y=1)}function It(e,t){e.min=e.min+t,e.max=e.max+t}function La(e,t,n,r,o=.5){const s=J(e.min,e.max,o);xo(e,t,n,s,r)}function Nt(e,t){La(e.x,t.x,t.scaleX,t.scale,t.originX),La(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ba(e,t){return Aa(kf(e.getBoundingClientRect(),t))}function Ef(e,t,n){const r=Ba(e,n),{scroll:o}=t;return o&&(It(r.x,o.offset.x),It(r.y,o.offset.y)),r}const Oa=()=>({translate:0,scale:1,origin:0,originPoint:0}),Lt=()=>({x:Oa(),y:Oa()}),Fa=()=>({min:0,max:0}),ee=()=>({x:Fa(),y:Fa()}),So={current:null},ja={current:!1};function Af(){if(ja.current=!0,!!wr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>So.current=e.matches;e.addEventListener("change",t),t()}else So.current=!1}const Df=new WeakMap;function Mf(e,t,n){for(const r in t){const o=t[r],s=n[r];if(ue(o))e.addValue(r,o);else if(ue(s))e.addValue(r,Mt(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const i=e.getValue(r);i.liveStyle===!0?i.jump(o):i.hasAnimated||i.set(o)}else{const i=e.getStaticValue(r);e.addValue(r,Mt(i!==void 0?i:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Ra=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Vf{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:s,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eo,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=ge.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Z.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=i;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=zn(n),this.isVariantNode=ma(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...l}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in l){const m=l[h];c[h]!==void 0&&ue(m)&&m.set(c[h])}}mount(t){this.current=t,Df.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),ja.current||Af(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:So.current,process.env.NODE_ENV!=="production"&&Pr(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ke(this.notifyUpdate),Ke(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Dt.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&Z.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Vt){const n=Vt[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ee()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ra.length;r++){const o=Ra[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,i=t[s];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=Mf(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Mt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Ji(r)||es(r))?r=parseFloat(r):!jh(r)&&Ge.test(n)&&(r=Js(t,n)),this.setBaseTarget(t,ue(r)?r.get():r)),ue(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=mo(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ue(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new kr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){io.render(this.render)}}class za extends Vf{constructor(){super(...arguments),this.KeyframeResolver=Eh}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ue(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function _a(e,{style:t,vars:n},r,o){const s=e.style;let i;for(i in t)s[i]=t[i];o?.applyProjectionStyles(s,r);for(i in n)s.setProperty(i,n[i])}function $f(e){return window.getComputedStyle(e)}class If extends za{constructor(){super(...arguments),this.type="html",this.renderInstance=_a}readValueFromInstance(t,n){if(Dt.has(n))return this.projection?.isProjecting?Xr(n):Ku(t,n);{const r=$f(t),o=(Mr(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ba(t,n)}build(t,n,r){ho(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return go(t,n,r)}}const Ha=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Nf(e,t,n,r){_a(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Ha.has(o)?o:yo(o),t.attrs[o])}class Lf extends za{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ee}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Dt.has(n)){const r=Zs(n);return r&&r.default||0}return n=Ha.has(n)?n:yo(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Ca(t,n,r)}build(t,n,r){ba(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){Nf(t,n,r,o)}mount(t){this.isSVGTag=xa(t.tagName),super.mount(t)}}const Bf=(e,t)=>po(e)?new Lf(t):new If(t,{allowProjection:e!==f.Fragment});function Bt(e,t,n){const r=e.getProps();return mo(r,t,n!==void 0?n:r.custom,e)}const To=e=>Array.isArray(e);function Of(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Mt(n))}function Ff(e){return To(e)?e[e.length-1]||0:e}function jf(e,t){const n=Bt(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const i in s){const a=Ff(s[i]);Of(e,i,a)}}function Rf(e){return!!(ue(e)&&e.add)}function Co(e,t){const n=e.getValue("willChange");if(Rf(n))return n.add(t);if(!n&&Re.WillChange){const r=new Re.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ua(e){return e.props[ka]}const zf=e=>e!==null;function _f(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(zf),s=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[s]}const Hf={type:"spring",stiffness:500,damping:25,restSpeed:10},Uf=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Wf={type:"keyframes",duration:.8},Kf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Yf=(e,{keyframes:t})=>t.length>2?Wf:Dt.has(e)?e.startsWith("scale")?Uf(t[1]):Hf:Kf;function Gf({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:c,elapsed:d,...u}){return!!Object.keys(u).length}const ko=(e,t,n,r={},o,s)=>i=>{const a=no(r,e)||{},c=a.delay||r.delay||0;let{elapsed:d=0}=r;d=d-De(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-d,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:o};Gf(a)||Object.assign(u,Yf(e,u)),u.duration&&(u.duration=De(u.duration)),u.repeatDelay&&(u.repeatDelay=De(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let l=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(to(u),u.delay===0&&(l=!0)),(Re.instantAnimations||Re.skipAnimations)&&(l=!0,to(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,l&&!s&&t.get()!==void 0){const h=_f(u.keyframes,a);if(h!==void 0){Z.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Kr(u):new mh(u)};function Xf({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Wa(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:i,...a}=t;r&&(s=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const u in a){const l=e.getValue(u,e.latestValues[u]??null),h=a[u];if(h===void 0||d&&Xf(d,u))continue;const m={delay:n,...no(s||{},u)},g=l.get();if(g!==void 0&&!l.isAnimating&&!Array.isArray(h)&&h===g&&!m.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const y=Ua(e);if(y){const x=window.MotionHandoffAnimation(y,u,Z);x!==null&&(m.startTime=x,v=!0)}}Co(e,u),l.start(ko(u,l,h,e.shouldReduceMotion&&Ks.has(u)?{type:!1}:m,e,v));const w=l.animation;w&&c.push(w)}return i&&Promise.all(c).then(()=>{Z.update(()=>{i&&jf(e,i)})}),c}function Ka(e,t,n,r=0,o=1){const s=Array.from(e).sort((d,u)=>d.sortNodePosition(u)).indexOf(t),i=e.size,a=(i-1)*r;return typeof n=="function"?n(s,i):o===1?s*r:a-s*r}function Po(e,t,n={}){const r=Bt(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(Wa(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:l}=o;return qf(e,t,c,d,u,l,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[c,d]=a==="beforeChildren"?[s,i]:[i,s];return c().then(()=>d())}else return Promise.all([s(),i(n.delay)])}function qf(e,t,n=0,r=0,o=0,s=1,i){const a=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),a.push(Po(c,t,{...i,delay:n+(typeof r=="function"?0:r)+Ka(e.variantChildren,c,r,o,s)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(a)}function Zf(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>Po(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=Po(e,t,n);else{const o=typeof t=="function"?Bt(e,t,n.custom):t;r=Promise.all(Wa(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Ya(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Jf=uo.length;function Ga(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Ga(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Jf;n++){const r=uo[n],o=e.props[r];(Zt(o)||o===!1)&&(t[r]=o)}return t}const Qf=[...co].reverse(),ep=co.length;function tp(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Zf(e,n,r)))}function np(e){let t=tp(e),n=Xa(),r=!0;const o=c=>(d,u)=>{const l=Bt(e,u,c==="exit"?e.presenceContext?.custom:void 0);if(l){const{transition:h,transitionEnd:m,...g}=l;d={...d,...g,...m}}return d};function s(c){t=c(e)}function i(c){const{props:d}=e,u=Ga(e.parent)||{},l=[],h=new Set;let m={},g=1/0;for(let w=0;w<ep;w++){const y=Qf[w],x=n[y],b=d[y]!==void 0?d[y]:u[y],A=Zt(b),C=y===c?x.isActive:null;C===!1&&(g=w);let S=b===u[y]&&b!==d[y]&&A;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),x.protectedKeys={...m},!x.isActive&&C===null||!b&&!x.prevProp||Rn(b)||typeof b=="boolean")continue;const k=rp(x.prevProp,b);let D=k||y===c&&x.isActive&&!S&&A||w>g&&A,I=!1;const _=Array.isArray(b)?b:[b];let M=_.reduce(o(y),{});C===!1&&(M={});const{prevResolvedValues:K={}}=x,W={...K,...M},Pe=N=>{D=!0,h.has(N)&&(I=!0,h.delete(N)),x.needsAnimating[N]=!0;const R=e.getValue(N);R&&(R.liveStyle=!1)};for(const N in W){const R=M[N],$=K[N];if(m.hasOwnProperty(N))continue;let j=!1;To(R)&&To($)?j=!Ya(R,$):j=R!==$,j?R!=null?Pe(N):h.add(N):R!==void 0&&h.has(N)?Pe(N):x.protectedKeys[N]=!0}x.prevProp=b,x.prevResolvedValues=M,x.isActive&&(m={...m,...M}),r&&e.blockInitialAnimation&&(D=!1);const re=S&&k;D&&(!re||I)&&l.push(..._.map(N=>{const R={type:y};if(typeof N=="string"&&r&&!re&&e.manuallyAnimateOnMount&&e.parent){const{parent:$}=e,j=Bt($,N);if($.enteringChildren&&j){const{delayChildren:oe}=j.transition||{};R.delay=Ka($.enteringChildren,e,oe)}}return{animation:N,options:R}}))}if(h.size){const w={};if(typeof d.initial!="boolean"){const y=Bt(e,Array.isArray(d.initial)?d.initial[0]:d.initial);y&&y.transition&&(w.transition=y.transition)}h.forEach(y=>{const x=e.getBaseTarget(y),b=e.getValue(y);b&&(b.liveStyle=!0),w[y]=x??null}),l.push({animation:w})}let v=!!l.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(l):Promise.resolve()}function a(c,d){if(n[c].isActive===d)return Promise.resolve();e.variantChildren?.forEach(l=>l.animationState?.setActive(c,d)),n[c].isActive=d;const u=i(c);for(const l in n)n[l].protectedKeys={};return u}return{animateChanges:i,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Xa(),r=!0}}}function rp(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ya(t,e):!1}function dt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Xa(){return{animate:dt(!0),whileInView:dt(),whileHover:dt(),whileTap:dt(),whileDrag:dt(),whileFocus:dt(),exit:dt()}}class Xe{constructor(t){this.isMounted=!1,this.node=t}update(){}}class op extends Xe{constructor(t){super(t),t.animationState||(t.animationState=np(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Rn(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let ip=0;class sp extends Xe{constructor(){super(...arguments),this.id=ip++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const ap={animation:{Feature:op},exit:{Feature:sp}};function Qt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function en(e){return{point:{x:e.pageX,y:e.pageY}}}const lp=e=>t=>so(t)&&e(t,en(t));function tn(e,t,n,r){return Qt(e,t,lp(n),r)}const qa=1e-4,cp=1-qa,dp=1+qa,Za=.01,up=0-Za,hp=0+Za;function fe(e){return e.max-e.min}function fp(e,t,n){return Math.abs(e-t)<=n}function Ja(e,t,n,r=.5){e.origin=r,e.originPoint=J(t.min,t.max,e.origin),e.scale=fe(n)/fe(t),e.translate=J(n.min,n.max,e.origin)-e.originPoint,(e.scale>=cp&&e.scale<=dp||isNaN(e.scale))&&(e.scale=1),(e.translate>=up&&e.translate<=hp||isNaN(e.translate))&&(e.translate=0)}function nn(e,t,n,r){Ja(e.x,t.x,n.x,r?r.originX:void 0),Ja(e.y,t.y,n.y,r?r.originY:void 0)}function Qa(e,t,n){e.min=n.min+t.min,e.max=e.min+fe(t)}function pp(e,t,n){Qa(e.x,t.x,n.x),Qa(e.y,t.y,n.y)}function el(e,t,n){e.min=t.min-n.min,e.max=e.min+fe(t)}function rn(e,t,n){el(e.x,t.x,n.x),el(e.y,t.y,n.y)}function Ce(e){return[e("x"),e("y")]}const tl=({current:e})=>e?e.ownerDocument.defaultView:null,nl=(e,t)=>Math.abs(e-t);function mp(e,t){const n=nl(e.x,t.x),r=nl(e.y,t.y);return Math.sqrt(n**2+r**2)}class rl{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:i=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Ao(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=mp(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:v}=h,{timestamp:w}=ce;this.history.push({...v,timestamp:w});const{onStart:y,onMove:x}=this.handlers;m||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Eo(m,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Ao(h.type==="pointercancel"?this.lastMoveEventInfo:Eo(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,y),v&&v(h,y)},!so(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=o||window;const a=en(t),c=Eo(a,this.transformPagePoint),{point:d}=c,{timestamp:u}=ce;this.history=[{...d,timestamp:u}];const{onSessionStart:l}=n;l&&l(t,Ao(c,this.history)),this.removeListeners=_t(tn(this.contextWindow,"pointermove",this.handlePointerMove),tn(this.contextWindow,"pointerup",this.handlePointerUp),tn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ke(this.updatePoint)}}function Eo(e,t){return t?{point:t(e.point)}:e}function ol(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ao({point:e},t){return{point:e,delta:ol(e,il(t)),offset:ol(e,gp(t)),velocity:yp(t,.1)}}function gp(e){return e[0]}function il(e){return e[e.length-1]}function yp(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=il(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>De(t)));)n--;if(!r)return{x:0,y:0};const s=Te(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const i={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function vp(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?J(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?J(n,e,r.max):Math.min(e,n)),e}function sl(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function bp(e,{top:t,left:n,bottom:r,right:o}){return{x:sl(e.x,n,o),y:sl(e.y,t,r)}}function al(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function wp(e,t){return{x:al(e.x,t.x),y:al(e.y,t.y)}}function xp(e,t){let n=.5;const r=fe(e),o=fe(t);return o>r?n=Ht(t.min,t.max-r,e.min):r>o&&(n=Ht(e.min,e.max-o,t.min)),Fe(0,1,n)}function Sp(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Do=.35;function Tp(e=Do){return e===!1?e=0:e===!0&&(e=Do),{x:ll(e,"left","right"),y:ll(e,"top","bottom")}}function ll(e,t,n){return{min:cl(e,t),max:cl(e,n)}}function cl(e,t){return typeof e=="number"?e:e[t]||0}const Cp=new WeakMap;class kp{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ee(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const s=l=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(en(l).point)},i=(l,h)=>{const{drag:m,dragPropagation:g,onDragStart:v}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Vh(m),!this.openDragLock))return;this.latestPointerEvent=l,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ce(y=>{let x=this.getAxisMotionValue(y).get()||0;if(Le.test(x)){const{projection:b}=this.visualElement;if(b&&b.layout){const A=b.layout.layoutBox[y];A&&(x=fe(A)*(parseFloat(x)/100))}}this.originPoint[y]=x}),v&&Z.postRender(()=>v(l,h)),Co(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(l,h)=>{this.latestPointerEvent=l,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:v,onDrag:w}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:y}=h;if(g&&this.currentDirection===null){this.currentDirection=Pp(y),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),w&&w(l,h)},c=(l,h)=>{this.latestPointerEvent=l,this.latestPanInfo=h,this.stop(l,h),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>Ce(l=>this.getAnimationState(l)==="paused"&&this.getAxisMotionValue(l).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new rl(t,{onSessionStart:s,onStart:i,onMove:a,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:tl(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!r)return;const{velocity:i}=o;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Z.postRender(()=>a(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Un(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=vp(i,this.constraints[t],this.elastic[t])),s.set(i)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&$t(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=bp(r.layoutBox,t):this.constraints=!1,this.elastic=Tp(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ce(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Sp(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!$t(t))return!1;const r=t.current;je(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=Ef(r,o.root,this.visualElement.getTransformPagePoint());let i=wp(o.layout.layoutBox,s);if(n){const a=n(Cf(i));this.hasMutatedConstraints=!!a,a&&(i=Aa(a))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},d=Ce(u=>{if(!Un(u,n,this.currentDirection))return;let l=c&&c[u]||{};i&&(l={min:0,max:0});const h=o?200:1e6,m=o?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(u,g)});return Promise.all(d).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Co(this.visualElement,t),r.start(ko(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ce(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ce(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ce(n=>{const{drag:r}=this.getProps();if(!Un(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:i,max:a}=o.layout.layoutBox[n];s.set(t[n]-J(i,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!$t(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ce(i=>{const a=this.getAxisMotionValue(i);if(a&&this.constraints!==!1){const c=a.get();o[i]=xp({min:c,max:c},this.constraints[i])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ce(i=>{if(!Un(i,t,null))return;const a=this.getAxisMotionValue(i),{min:c,max:d}=this.constraints[i];a.set(J(c,d,o[i]))})}addListeners(){if(!this.visualElement.current)return;Cp.set(this.visualElement,this);const t=this.visualElement.current,n=tn(t,"pointerdown",c=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();$t(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Z.read(r);const i=Qt(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Ce(u=>{const l=this.getAxisMotionValue(u);l&&(this.originPoint[u]+=c[u].translate,l.set(l.get()+c[u].translate))}),this.visualElement.render())}));return()=>{i(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:i=Do,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:i,dragMomentum:a}}}function Un(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Pp(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Ep extends Xe{constructor(t){super(t),this.removeGroupControls=Se,this.removeListeners=Se,this.controls=new kp(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Se}unmount(){this.removeGroupControls(),this.removeListeners()}}const dl=e=>(t,n)=>{e&&Z.postRender(()=>e(t,n))};class Ap extends Xe{constructor(){super(...arguments),this.removePointerDownListener=Se}onPointerDown(t){this.session=new rl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:dl(t),onStart:dl(n),onMove:r,onEnd:(s,i)=>{delete this.session,o&&Z.postRender(()=>o(s,i))}}}mount(){this.removePointerDownListener=tn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Wn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ul(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const on={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=ul(e,t.target.x),r=ul(e,t.target.y);return`${n}% ${r}%`}},Dp={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Ge.parse(e);if(o.length>5)return r;const s=Ge.createTransformer(e),i=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;o[0+i]/=a,o[1+i]/=c;const d=J(a,c,.5);return typeof o[2+i]=="number"&&(o[2+i]/=d),typeof o[3+i]=="number"&&(o[3+i]/=d),s(o)}};let Mo=!1;class Mp extends f.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;Jh(Vp),s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),Mo&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Wn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,{projection:i}=r;return i&&(i.isPresent=s,Mo=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||Z.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),io.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Mo=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function hl(e){const[t,n]=da(),r=f.useContext(vr);return p.jsx(Mp,{...e,layoutGroup:r,switchLayoutGroup:f.useContext(Pa),isPresent:t,safeToRemove:n})}const Vp={borderRadius:{...on,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:on,borderTopRightRadius:on,borderBottomLeftRadius:on,borderBottomRightRadius:on,boxShadow:Dp};function $p(e,t,n){const r=ue(e)?e:Mt(e);return r.start(ko("",r,t,n)),r.animation}const Ip=(e,t)=>e.depth-t.depth;class Np{constructor(){this.children=[],this.isDirty=!1}add(t){xr(this.children,t),this.isDirty=!0}remove(t){Sr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ip),this.isDirty=!1,this.children.forEach(t)}}function Lp(e,t){const n=ge.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(Ke(r),e(s-t))};return Z.setup(r,!0),()=>Ke(r)}const fl=["TopLeft","TopRight","BottomLeft","BottomRight"],Bp=fl.length,pl=e=>typeof e=="string"?parseFloat(e):e,ml=e=>typeof e=="number"||V.test(e);function Op(e,t,n,r,o,s){o?(e.opacity=J(0,n.opacity??1,Fp(r)),e.opacityExit=J(t.opacity??1,0,jp(r))):s&&(e.opacity=J(t.opacity??1,n.opacity??1,r));for(let i=0;i<Bp;i++){const a=`border${fl[i]}Radius`;let c=gl(t,a),d=gl(n,a);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||ml(c)===ml(d)?(e[a]=Math.max(J(pl(c),pl(d),r),0),(Le.test(d)||Le.test(c))&&(e[a]+="%")):e[a]=d}(t.rotate||n.rotate)&&(e.rotate=J(t.rotate||0,n.rotate||0,r))}function gl(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Fp=yl(0,.5,cs),jp=yl(.5,.95,Se);function yl(e,t,n){return r=>r<e?0:r>t?1:n(Ht(e,t,r))}function vl(e,t){e.min=t.min,e.max=t.max}function ke(e,t){vl(e.x,t.x),vl(e.y,t.y)}function bl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function wl(e,t,n,r,o){return e-=t,e=Hn(e,1/n,r),o!==void 0&&(e=Hn(e,1/o,r)),e}function Rp(e,t=0,n=1,r=.5,o,s=e,i=e){if(Le.test(t)&&(t=parseFloat(t),t=J(i.min,i.max,t/100)-i.min),typeof t!="number")return;let a=J(s.min,s.max,r);e===s&&(a-=t),e.min=wl(e.min,t,n,a,o),e.max=wl(e.max,t,n,a,o)}function xl(e,t,[n,r,o],s,i){Rp(e,t[n],t[r],t[o],t.scale,s,i)}const zp=["x","scaleX","originX"],_p=["y","scaleY","originY"];function Sl(e,t,n,r){xl(e.x,t,zp,n?n.x:void 0,r?r.x:void 0),xl(e.y,t,_p,n?n.y:void 0,r?r.y:void 0)}function Tl(e){return e.translate===0&&e.scale===1}function Cl(e){return Tl(e.x)&&Tl(e.y)}function kl(e,t){return e.min===t.min&&e.max===t.max}function Hp(e,t){return kl(e.x,t.x)&&kl(e.y,t.y)}function Pl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function El(e,t){return Pl(e.x,t.x)&&Pl(e.y,t.y)}function Al(e){return fe(e.x)/fe(e.y)}function Dl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Up{constructor(){this.members=[]}add(t){xr(this.members,t),t.scheduleRender()}remove(t){if(Sr(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const s=this.members[o];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Wp(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,i=n?.z||0;if((o||s||i)&&(r=`translate3d(${o}px, ${s}px, ${i}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:u,rotateX:l,rotateY:h,skewX:m,skewY:g}=n;d&&(r=`perspective(${d}px) ${r}`),u&&(r+=`rotate(${u}deg) `),l&&(r+=`rotateX(${l}deg) `),h&&(r+=`rotateY(${h}deg) `),m&&(r+=`skewX(${m}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const Vo=["","X","Y","Z"],Kp=1e3;let Yp=0;function $o(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ml(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ua(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Z,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ml(r)}function Vl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i={},a=t?.()){this.id=Yp++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(qp),this.nodes.forEach(em),this.nodes.forEach(tm),this.nodes.forEach(Zp)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Np)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new kr),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const c=this.eventHandlers.get(i);c&&c.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=la(i)&&!Oh(i),this.instance=i;const{layoutId:a,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),e){let u,l=0;const h=()=>this.root.updateBlockedByResize=!1;Z.read(()=>{l=window.innerWidth}),e(i,()=>{const m=window.innerWidth;m!==l&&(l=m,this.root.updateBlockedByResize=!0,u&&u(),u=Lp(h,250),Wn.hasAnimatedSinceResize&&(Wn.hasAnimatedSinceResize=!1,this.nodes.forEach(Nl)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&d&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||sm,{onLayoutAnimationStart:v,onLayoutAnimationComplete:w}=d.getProps(),y=!this.targetLayout||!El(this.targetLayout,m),x=!l&&h;if(this.options.layoutRoot||this.resumeFrom||x||l&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...no(g,"layout"),onPlay:v,onComplete:w};(d.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(u,x)}else l||Nl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ke(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(nm),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ml(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const l=this.path[u];l.shouldResetTransform=!0,l.updateScroll("snapshot"),l.options.layoutRoot&&l.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach($l);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Il);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Qp),this.nodes.forEach(Gp),this.nodes.forEach(Xp)):this.nodes.forEach(Il),this.clearAllSnapshots();const a=ge.now();ce.delta=Fe(0,1e3/60,a-ce.timestamp),ce.timestamp=a,ce.isProcessing=!0,Dr.update.process(ce),Dr.preRender.process(ce),Dr.render.process(ce),ce.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,io.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Jp),this.sharedNodes.forEach(rm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!fe(this.snapshot.measuredBox.x)&&!fe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ee(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Cl(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;i&&this.instance&&(a||ct(this.latestValues)||u)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return i&&(c=this.removeTransform(c)),am(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return ee();const a=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(lm))){const{scroll:d}=this.root;d&&(It(a.x,d.offset.x),It(a.y,d.offset.y))}return a}removeElementScroll(i){const a=ee();if(ke(a,i),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:u,options:l}=d;d!==this.root&&u&&l.layoutScroll&&(u.wasRoot&&ke(a,i),It(a.x,u.offset.x),It(a.y,u.offset.y))}return a}applyTransform(i,a=!1){const c=ee();ke(c,i);for(let d=0;d<this.path.length;d++){const u=this.path[d];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Nt(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ct(u.latestValues)&&Nt(c,u.latestValues)}return ct(this.latestValues)&&Nt(c,this.latestValues),c}removeTransform(i){const a=ee();ke(a,i);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!ct(d.latestValues))continue;wo(d.latestValues)&&d.updateSnapshot();const u=ee(),l=d.measurePageBox();ke(u,l),Sl(a,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return ct(this.latestValues)&&Sl(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ce.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(i||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:l}=this.options;if(!(!this.layout||!(u||l))){if(this.resolvedRelativeTargetAt=ce.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ee(),this.relativeTargetOrigin=ee(),rn(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ke(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ee(),this.targetWithTransforms=ee()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),pp(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ke(this.target,this.layout.layoutBox),$a(this.target,this.targetDelta)):ke(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ee(),this.relativeTargetOrigin=ee(),rn(this.relativeTargetOrigin,this.target,h.target),ke(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||wo(this.parent.latestValues)||Da(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const i=this.getLead(),a=!!this.resumingFrom||this!==i;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===ce.timestamp&&(c=!1),c)return;const{layout:d,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||u))return;ke(this.layoutCorrected,this.layout.layoutBox);const l=this.treeScale.x,h=this.treeScale.y;Pf(this.layoutCorrected,this.treeScale,this.path,a),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=ee());const{target:m}=i;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(bl(this.prevProjectionDelta.x,this.projectionDelta.x),bl(this.prevProjectionDelta.y,this.projectionDelta.y)),nn(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==l||this.treeScale.y!==h||!Dl(this.projectionDelta.x,this.prevProjectionDelta.x)||!Dl(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Lt(),this.projectionDelta=Lt(),this.projectionDeltaWithTransform=Lt()}setAnimationOrigin(i,a=!1){const c=this.snapshot,d=c?c.latestValues:{},u={...this.latestValues},l=Lt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ee(),m=c?c.source:void 0,g=this.layout?this.layout.source:void 0,v=m!==g,w=this.getStack(),y=!w||w.members.length<=1,x=!!(v&&!y&&this.options.crossfade===!0&&!this.path.some(im));this.animationProgress=0;let b;this.mixTargetDelta=A=>{const C=A/1e3;Ll(l.x,i.x,C),Ll(l.y,i.y,C),this.setTargetDelta(l),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rn(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),om(this.relativeTarget,this.relativeTargetOrigin,h,C),b&&Hp(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=ee()),ke(b,this.relativeTarget)),v&&(this.animationValues=u,Op(u,d,this.latestValues,C,x,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ke(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{Wn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Mt(0)),this.currentAnimation=$p(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Kp),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:c,layout:d,latestValues:u}=i;if(!(!a||!c||!d)){if(this!==i&&this.layout&&d&&Rl(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||ee();const l=fe(this.layout.layoutBox.x);c.x.min=i.target.x.min,c.x.max=c.x.min+l;const h=fe(this.layout.layoutBox.y);c.y.min=i.target.y.min,c.y.max=c.y.min+h}ke(a,c),Nt(a,u),nn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Up),this.sharedNodes.get(i).add(a);const d=a.options.initialPromotionConfig;a.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(a):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){const{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:c}=i;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const d={};c.z&&$o("z",i,d,this.animationValues);for(let u=0;u<Vo.length;u++)$o(`rotate${Vo[u]}`,i,d,this.animationValues),$o(`skew${Vo[u]}`,i,d,this.animationValues);i.render();for(const u in d)i.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);i.scheduleRender()}applyProjectionStyles(i,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=_n(a?.pointerEvents)||"",i.transform=c?c(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=_n(a?.pointerEvents)||""),this.hasProjected&&!ct(this.latestValues)&&(i.transform=c?c({},""):"none",this.hasProjected=!1);return}i.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let l=Wp(this.projectionDeltaWithTransform,this.treeScale,u);c&&(l=c(u,l)),i.transform=l;const{x:h,y:m}=this.projectionDelta;i.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,d.animationValues?i.opacity=d===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:i.opacity=d===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const g in Jt){if(u[g]===void 0)continue;const{correct:v,applyTo:w,isCSSVariable:y}=Jt[g],x=l==="none"?u[g]:v(u[g],d);if(w){const b=w.length;for(let A=0;A<b;A++)i[w[A]]=x}else y?this.options.visualElement.renderState.vars[g]=x:i[g]=x}this.options.layoutId&&(i.pointerEvents=d===this?_n(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach($l),this.root.sharedNodes.clear()}}}function Gp(e){e.updateLayout()}function Xp(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;o==="size"?Ce(u=>{const l=s?t.measuredBox[u]:t.layoutBox[u],h=fe(l);l.min=n[u].min,l.max=l.min+h}):Rl(o,t.layoutBox,n)&&Ce(u=>{const l=s?t.measuredBox[u]:t.layoutBox[u],h=fe(n[u]);l.max=l.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const i=Lt();nn(i,n,t.layoutBox);const a=Lt();s?nn(a,e.applyTransform(r,!0),t.measuredBox):nn(a,n,t.layoutBox);const c=!Cl(i);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:l,layout:h}=u;if(l&&h){const m=ee();rn(m,t.layoutBox,l.layoutBox);const g=ee();rn(g,n,h.layoutBox),El(m,g)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:i,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function qp(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Zp(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Jp(e){e.clearSnapshot()}function $l(e){e.clearMeasurements()}function Il(e){e.isLayoutDirty=!1}function Qp(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Nl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function em(e){e.resolveTargetDelta()}function tm(e){e.calcProjection()}function nm(e){e.resetSkewAndRotation()}function rm(e){e.removeLeadSnapshot()}function Ll(e,t,n){e.translate=J(t.translate,0,n),e.scale=J(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Bl(e,t,n,r){e.min=J(t.min,n.min,r),e.max=J(t.max,n.max,r)}function om(e,t,n,r){Bl(e.x,t.x,n.x,r),Bl(e.y,t.y,n.y,r)}function im(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const sm={duration:.45,ease:[.4,0,.1,1]},Ol=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Fl=Ol("applewebkit/")&&!Ol("chrome/")?Math.round:Se;function jl(e){e.min=Fl(e.min),e.max=Fl(e.max)}function am(e){jl(e.x),jl(e.y)}function Rl(e,t,n){return e==="position"||e==="preserve-aspect"&&!fp(Al(t),Al(n),.2)}function lm(e){return e!==e.root&&e.scroll?.wasRoot}const cm=Vl({attachResizeListener:(e,t)=>Qt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Io={current:void 0},zl=Vl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Io.current){const e=new cm({});e.mount(window),e.setOptions({layoutScroll:!0}),Io.current=e}return Io.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),dm={pan:{Feature:Ap},drag:{Feature:Ep,ProjectionNode:zl,MeasureLayout:hl}};function _l(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&Z.postRender(()=>s(t,en(t)))}class um extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=$h(t,(n,r)=>(_l(this.node,r,"Start"),o=>_l(this.node,o,"End"))))}unmount(){}}class hm extends Xe{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=_t(Qt(this.node.current,"focus",()=>this.onFocus()),Qt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Hl(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),s=r[o];s&&Z.postRender(()=>s(t,en(t)))}class fm extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=Bh(t,(n,r)=>(Hl(this.node,r,"Start"),(o,{success:s})=>Hl(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const No=new WeakMap,Lo=new WeakMap,pm=e=>{const t=No.get(e.target);t&&t(e)},mm=e=>{e.forEach(pm)};function gm({root:e,...t}){const n=e||document;Lo.has(n)||Lo.set(n,{});const r=Lo.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(mm,{root:e,...t})),r[o]}function ym(e,t,n){const r=gm(t);return No.set(e,n),r.observe(e),()=>{No.delete(e),r.unobserve(e)}}const vm={some:0,all:1};class bm extends Xe{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:vm[o]},a=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,s&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:u,onViewportLeave:l}=this.node.getProps(),h=d?u:l;h&&h(c)};return ym(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(wm(t,n))&&this.startObserver()}unmount(){}}function wm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const xm={...ap,...{inView:{Feature:bm},tap:{Feature:fm},focus:{Feature:hm},hover:{Feature:um}},...dm,...{layout:{ProjectionNode:zl,MeasureLayout:hl}}},ze=Tf(xm,Bf),Sm={sm:P`
235
235
  width: 1.25rem;
236
236
  height: 1.25rem;
237
237
  `,md:P`
@@ -243,7 +243,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
243
243
  `,xl:P`
244
244
  width: 4rem;
245
245
  height: 4rem;
246
- `},Hl={primary:P`
246
+ `},Ul={primary:P`
247
247
  color: var(--color-main-blue-primary);
248
248
  `,orange:P`
249
249
  color: var(--color-main-orange-primary);
@@ -251,29 +251,29 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
251
251
  color: var(--color-main-white);
252
252
  `,gray:P`
253
253
  color: var(--color-main-grey);
254
- `},wm=k.div`
254
+ `},Tm=T.div`
255
255
  position: relative;
256
256
  display: block;
257
- ${({$size:e="md"})=>bm[e]}
258
- ${({$color:e="primary"})=>Hl[e]}
257
+ ${({$size:e="md"})=>Sm[e]}
258
+ ${({$color:e="primary"})=>Ul[e]}
259
259
  user-select: none;
260
- `,xm=k.div`
260
+ `,Cm=T.div`
261
261
  display: flex;
262
262
  flex-direction: column;
263
263
  align-items: center;
264
264
  gap: 0.5rem;
265
265
  padding: 2.5px 2.5px 2.5px 0px;
266
- `,Sm=k.div`
266
+ `,km=T.div`
267
267
  display: flex;
268
268
  align-items: center;
269
269
  justify-content: center;
270
270
  min-height: 12.5rem;
271
271
  width: 100%;
272
- `,Tm=k(ct.p)`
272
+ `,Pm=T(ze.p)`
273
273
  ${z[16]}
274
- ${({$color:e="primary"})=>Hl[e]}
274
+ ${({$color:e="primary"})=>Ul[e]}
275
275
  margin: 0;
276
- `,Kn=({size:e="md",color:t="primary",centered:n=!0,message:r,title:o,variant:i="rotate"})=>{const s=m.jsxs(xm,{children:[m.jsxs(wm,{$size:e,$color:t,$variant:i,children:[m.jsx(ct.svg,{width:"100%",height:"100%",viewBox:"0 0 50 50",style:{position:"absolute",top:0,left:0,zIndex:1,padding:"2.1px 2.5px 2.5px 0px"},animate:i==="rotate"?{rotate:[0,360]}:{scale:[1,.7,1]},transition:i==="rotate"?{repeat:1/0,duration:2,ease:"linear"}:{repeat:1/0,duration:2,ease:"easeInOut"},children:m.jsx("g",{transform:"scale(0.15) translate(-10, -1)",children:m.jsx("path",{fill:"currentColor",d:`M67.251411,286.749390
276
+ `,Kn=({size:e="md",color:t="primary",centered:n=!0,message:r,title:o,variant:s="rotate"})=>{const i=p.jsxs(Cm,{children:[p.jsxs(Tm,{$size:e,$color:t,$variant:s,children:[p.jsx(ze.svg,{width:"100%",height:"100%",viewBox:"0 0 50 50",style:{position:"absolute",top:0,left:0,zIndex:1,padding:"2.1px 2.5px 2.5px 0px"},animate:s==="rotate"?{rotate:[0,360]}:{scale:[1,.7,1]},transition:s==="rotate"?{repeat:1/0,duration:2,ease:"linear"}:{repeat:1/0,duration:2,ease:"easeInOut"},children:p.jsx("g",{transform:"scale(0.15) translate(-10, -1)",children:p.jsx("path",{fill:"currentColor",d:`M67.251411,286.749390
277
277
  C42.999393,262.534088 27.711603,233.886490 21.140957,200.638245
278
278
  C20.527918,197.536194 19.462318,196.344513 16.327942,196.535400
279
279
  C12.711285,196.755646 9.070918,196.586609 4.251685,196.586609
@@ -290,7 +290,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
290
290
  C231.681030,-17.750278 329.482361,42.974667 346.823608,138.519577
291
291
  C363.551025,230.682480 301.903687,318.479523 209.509521,332.564972
292
292
  C155.049683,340.867371 107.495514,325.072021 67.251411,286.749390
293
- z`})})}),o&&m.jsx("title",{children:o})]}),r&&m.jsx(Tm,{$color:t,animate:{opacity:[1,.5,1]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},children:r})]});return n?m.jsx(Sm,{children:s}):s},Cm=k.div`
293
+ z`})})}),o&&p.jsx("title",{children:o})]}),r&&p.jsx(Pm,{$color:t,animate:{opacity:[1,.5,1]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},children:r})]});return n?p.jsx(km,{children:i}):i},Em=T.div`
294
294
  position: fixed;
295
295
  inset: 0;
296
296
  background-color: rgba(255, 255, 255, 0.8);
@@ -299,7 +299,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
299
299
  align-items: center;
300
300
  justify-content: center;
301
301
  z-index: 50;
302
- `,km=k.div`
302
+ `,Am=T.div`
303
303
  background-color: var(--color-main-white);
304
304
  border-radius: var(--border-radius-card);
305
305
  box-shadow: var(--shadow-black-card);
@@ -310,17 +310,17 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
310
310
  gap: 1rem;
311
311
  width: 90%;
312
312
  max-width: 24rem;
313
- `,Pm=k.h2`
313
+ `,Dm=T.h2`
314
314
  ${yr[30]}
315
315
  color: var(--color-main-blue-primary);
316
316
  margin: 0;
317
- `,Em=({message:e="Loading...",color:t="primary",variant:n="rotate"})=>m.jsxs(Cm,{role:"status","aria-live":"polite",children:[m.jsx(km,{children:m.jsx(Kn,{size:"xl",color:t,centered:!1,title:e,variant:n})}),m.jsx(Pm,{children:e})]}),Am=k.div`
317
+ `,Mm=({message:e="Loading...",color:t="primary",variant:n="rotate"})=>p.jsxs(Em,{role:"status","aria-live":"polite",children:[p.jsx(Am,{children:p.jsx(Kn,{size:"xl",color:t,centered:!1,title:e,variant:n})}),p.jsx(Dm,{children:e})]}),Vm=T.div`
318
318
  display: flex;
319
319
  flex-direction: column;
320
320
  align-items: center;
321
321
  justify-content: center;
322
322
  padding: 3rem 1rem;
323
- `,Dm=({message:e,color:t="primary",variant:n="rotate"})=>m.jsx(Am,{role:"status","aria-live":"polite",children:m.jsx(Kn,{size:"lg",color:t,centered:!1,message:e,title:e,variant:n})}),Ul=({color:e="white",variant:t="rotate"})=>m.jsx(Kn,{size:"sm",color:e,centered:!1,variant:t}),Mm={primary:P`
323
+ `,$m=({message:e,color:t="primary",variant:n="rotate"})=>p.jsx(Vm,{role:"status","aria-live":"polite",children:p.jsx(Kn,{size:"lg",color:t,centered:!1,message:e,title:e,variant:n})}),Wl=({color:e="white",variant:t="rotate"})=>p.jsx(Kn,{size:"sm",color:e,centered:!1,variant:t}),Im={primary:P`
324
324
  background-color: var(--color-main-blue-primary);
325
325
  color: var(--color-main-white);
326
326
 
@@ -359,12 +359,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
359
359
  &:focus-visible {
360
360
  outline-color: var(--color-main-warning-state);
361
361
  }
362
- `},$m=P`
362
+ `},Nm=P`
363
363
  background-color: var(--color-main-grey);
364
364
  color: var(--color-dark-200);
365
365
  cursor: not-allowed;
366
366
  box-shadow: none;
367
- `,Vm={sm:P`
367
+ `,Lm={sm:P`
368
368
  padding: 0.375rem 0.75rem;
369
369
  min-height: 2.75rem;
370
370
  ${z[12]}
@@ -376,7 +376,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
376
376
  padding: 0.75rem 1.5rem;
377
377
  min-height: 3.5rem;
378
378
  ${z[20]}
379
- `},Im=k.button`
379
+ `},Bm=T.button`
380
380
  borden: none;
381
381
  border-radius: var(--border-radius-button);
382
382
  transition:
@@ -391,13 +391,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
391
391
  outline: 2px solid transparent;
392
392
  outline-offset: 2px;
393
393
 
394
- ${({$variant:e})=>Mm[e]}
395
- ${({$size:e})=>Vm[e]}
394
+ ${({$variant:e})=>Im[e]}
395
+ ${({$size:e})=>Lm[e]}
396
396
 
397
397
  &:disabled {
398
- ${$m}
398
+ ${Nm}
399
399
  }
400
- `,Bo=({children:e,variant:t="primary",size:n="md",isLoading:r,disabled:o,leftIcon:i,rightIcon:s,iconSize:a="md",iconColor:l="currentColor",...d})=>m.jsxs(Im,{$variant:t,$size:n,disabled:o||r,"aria-busy":r,...d,children:[i&&m.jsx(G,{color:l,size:a,component:i}),r?"Loading...":e,s&&m.jsx(G,{color:l,size:a,component:s})]});function Nm(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Lm=e=>{switch(e){case"success":return Fm;case"info":return Rm;case"warning":return jm;case"error":return zm;default:return null}},Bm=Array(12).fill(0),Om=({visible:e,className:t})=>f.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},f.createElement("div",{className:"sonner-spinner"},Bm.map((n,r)=>f.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Fm=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),jm=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Rm=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),zm=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),_m=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},f.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),f.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Hm=()=>{const[e,t]=f.useState(document.hidden);return f.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Oo=1;class Um{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,i=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Oo++,s=this.toasts.find(l=>l.id===i),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...t,id:i,title:r}),{...l,...t,id:i,dismissible:a,title:r}):l):this.addToast({title:r,...o,dismissible:a,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,s;const a=o.then(async d=>{if(s=["resolve",d],f.isValidElement(d))i=!1,this.create({id:r,type:"default",message:d});else if(Km(d)&&!d.ok){i=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,g=typeof c=="object"&&!f.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:h,...g})}else if(d instanceof Error){i=!1;const c=typeof n.error=="function"?await n.error(d):n.error,h=typeof n.description=="function"?await n.description(d):n.description,g=typeof c=="object"&&!f.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:h,...g})}else if(n.success!==void 0){i=!1;const c=typeof n.success=="function"?await n.success(d):n.success,h=typeof n.description=="function"?await n.description(d):n.description,g=typeof c=="object"&&!f.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:h,...g})}}).catch(async d=>{if(s=["reject",d],n.error!==void 0){i=!1;const u=typeof n.error=="function"?await n.error(d):n.error,c=typeof n.description=="function"?await n.description(d):n.description,p=typeof u=="object"&&!f.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:c,...p})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((d,u)=>a.then(()=>s[0]==="reject"?u(s[1]):d(s[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||Oo++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ye=new Um,Wm=(e,t)=>{const n=t?.id||Oo++;return ye.addToast({title:e,...t,id:n}),n},Km=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Ym=Wm,Gm=()=>ye.toasts,Xm=()=>ye.getActiveToasts(),qm=Object.assign(Ym,{success:ye.success,info:ye.info,warning:ye.warning,error:ye.error,custom:ye.custom,message:ye.message,promise:ye.promise,dismiss:ye.dismiss,loading:ye.loading},{getHistory:Gm,getToasts:Xm});Nm("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Yn(e){return e.label!==void 0}const Zm=3,Jm="24px",Qm="16px",Wl=4e3,eg=356,tg=14,ng=45,rg=200;function Be(...e){return e.filter(Boolean).join(" ")}function og(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const sg=e=>{var t,n,r,o,i,s,a,l,d;const{invert:u,toast:c,unstyled:h,interacting:p,setHeights:g,visibleToasts:v,heights:w,index:y,toasts:x,expanded:b,removeToast:E,defaultRichColors:T,closeButton:S,style:C,cancelButtonStyle:D,actionButtonStyle:I,className:_="",descriptionClassName:M="",duration:K,position:W,gap:Pe,expandByDefault:re,classNames:F,icons:N,closeButtonAriaLabel:R="Close toast"}=e,[V,j]=f.useState(null),[oe,se]=f.useState(null),[O,q]=f.useState(!1),[Y,ae]=f.useState(!1),[$e,H]=f.useState(!1),[ve,qe]=f.useState(!1),[ze,pe]=f.useState(!1),[Ey,ns]=f.useState(0),[Ay,Tc]=f.useState(0),sn=f.useRef(c.duration||K||Wl),Cc=f.useRef(null),_e=f.useRef(null),Dy=y===0,My=y+1<=v,be=c.type,Bt=c.dismissible!==!1,$y=c.className||"",Vy=c.descriptionClassName||"",Zn=f.useMemo(()=>w.findIndex(L=>L.toastId===c.id)||0,[w,c.id]),Iy=f.useMemo(()=>{var L;return(L=c.closeButton)!=null?L:S},[c.closeButton,S]),kc=f.useMemo(()=>c.duration||K||Wl,[c.duration,K]),rs=f.useRef(0),Ot=f.useRef(0),Pc=f.useRef(0),Ft=f.useRef(null),[Ny,Ly]=W.split("-"),Ec=f.useMemo(()=>w.reduce((L,le,he)=>he>=Zn?L:L+le.height,0),[w,Zn]),Ac=Hm(),By=c.invert||u,os=be==="loading";Ot.current=f.useMemo(()=>Zn*Pe+Ec,[Zn,Ec]),f.useEffect(()=>{sn.current=kc},[kc]),f.useEffect(()=>{q(!0)},[]),f.useEffect(()=>{const L=_e.current;if(L){const le=L.getBoundingClientRect().height;return Tc(le),g(he=>[{toastId:c.id,height:le,position:c.position},...he]),()=>g(he=>he.filter(we=>we.toastId!==c.id))}},[g,c.id]),f.useLayoutEffect(()=>{if(!O)return;const L=_e.current,le=L.style.height;L.style.height="auto";const he=L.getBoundingClientRect().height;L.style.height=le,Tc(he),g(we=>we.find(de=>de.toastId===c.id)?we.map(de=>de.toastId===c.id?{...de,height:he}:de):[{toastId:c.id,height:he,position:c.position},...we])},[O,c.title,c.description,g,c.id,c.jsx,c.action,c.cancel]);const Ze=f.useCallback(()=>{ae(!0),ns(Ot.current),g(L=>L.filter(le=>le.toastId!==c.id)),setTimeout(()=>{E(c)},rg)},[c,E,g,Ot]);f.useEffect(()=>{if(c.promise&&be==="loading"||c.duration===1/0||c.type==="loading")return;let L;return b||p||Ac?(()=>{if(Pc.current<rs.current){const we=new Date().getTime()-rs.current;sn.current=sn.current-we}Pc.current=new Date().getTime()})():(()=>{sn.current!==1/0&&(rs.current=new Date().getTime(),L=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Ze()},sn.current))})(),()=>clearTimeout(L)},[b,p,c,be,Ac,Ze]),f.useEffect(()=>{c.delete&&(Ze(),c.onDismiss==null||c.onDismiss.call(c,c))},[Ze,c.delete]);function Oy(){var L;if(N?.loading){var le;return f.createElement("div",{className:Be(F?.loader,c==null||(le=c.classNames)==null?void 0:le.loader,"sonner-loader"),"data-visible":be==="loading"},N.loading)}return f.createElement(Om,{className:Be(F?.loader,c==null||(L=c.classNames)==null?void 0:L.loader),visible:be==="loading"})}const Fy=c.icon||N?.[be]||Lm(be);var Dc,Mc;return f.createElement("li",{tabIndex:0,ref:_e,className:Be(_,$y,F?.toast,c==null||(t=c.classNames)==null?void 0:t.toast,F?.default,F?.[be],c==null||(n=c.classNames)==null?void 0:n[be]),"data-sonner-toast":"","data-rich-colors":(Dc=c.richColors)!=null?Dc:T,"data-styled":!(c.jsx||c.unstyled||h),"data-mounted":O,"data-promise":!!c.promise,"data-swiped":ze,"data-removed":Y,"data-visible":My,"data-y-position":Ny,"data-x-position":Ly,"data-index":y,"data-front":Dy,"data-swiping":$e,"data-dismissible":Bt,"data-type":be,"data-invert":By,"data-swipe-out":ve,"data-swipe-direction":oe,"data-expanded":!!(b||re&&O),"data-testid":c.testId,style:{"--index":y,"--toasts-before":y,"--z-index":x.length-y,"--offset":`${Y?Ey:Ot.current}px`,"--initial-height":re?"auto":`${Ay}px`,...C,...c.style},onDragEnd:()=>{H(!1),j(null),Ft.current=null},onPointerDown:L=>{L.button!==2&&(os||!Bt||(Cc.current=new Date,ns(Ot.current),L.target.setPointerCapture(L.pointerId),L.target.tagName!=="BUTTON"&&(H(!0),Ft.current={x:L.clientX,y:L.clientY})))},onPointerUp:()=>{var L,le,he;if(ve||!Bt)return;Ft.current=null;const we=Number(((L=_e.current)==null?void 0:L.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Jn=Number(((le=_e.current)==null?void 0:le.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),de=new Date().getTime()-((he=Cc.current)==null?void 0:he.getTime()),Ee=V==="x"?we:Jn,Qn=Math.abs(Ee)/de;if(Math.abs(Ee)>=ng||Qn>.11){ns(Ot.current),c.onDismiss==null||c.onDismiss.call(c,c),se(V==="x"?we>0?"right":"left":Jn>0?"down":"up"),Ze(),qe(!0);return}else{var Ve,Ie;(Ve=_e.current)==null||Ve.style.setProperty("--swipe-amount-x","0px"),(Ie=_e.current)==null||Ie.style.setProperty("--swipe-amount-y","0px")}pe(!1),H(!1),j(null)},onPointerMove:L=>{var le,he,we;if(!Ft.current||!Bt||((le=window.getSelection())==null?void 0:le.toString().length)>0)return;const de=L.clientY-Ft.current.y,Ee=L.clientX-Ft.current.x;var Qn;const Ve=(Qn=e.swipeDirections)!=null?Qn:og(W);!V&&(Math.abs(Ee)>1||Math.abs(de)>1)&&j(Math.abs(Ee)>Math.abs(de)?"x":"y");let Ie={x:0,y:0};const $c=ft=>1/(1.5+Math.abs(ft)/20);if(V==="y"){if(Ve.includes("top")||Ve.includes("bottom"))if(Ve.includes("top")&&de<0||Ve.includes("bottom")&&de>0)Ie.y=de;else{const ft=de*$c(de);Ie.y=Math.abs(ft)<Math.abs(de)?ft:de}}else if(V==="x"&&(Ve.includes("left")||Ve.includes("right")))if(Ve.includes("left")&&Ee<0||Ve.includes("right")&&Ee>0)Ie.x=Ee;else{const ft=Ee*$c(Ee);Ie.x=Math.abs(ft)<Math.abs(Ee)?ft:Ee}(Math.abs(Ie.x)>0||Math.abs(Ie.y)>0)&&pe(!0),(he=_e.current)==null||he.style.setProperty("--swipe-amount-x",`${Ie.x}px`),(we=_e.current)==null||we.style.setProperty("--swipe-amount-y",`${Ie.y}px`)}},Iy&&!c.jsx&&be!=="loading"?f.createElement("button",{"aria-label":R,"data-disabled":os,"data-close-button":!0,onClick:os||!Bt?()=>{}:()=>{Ze(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Be(F?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(Mc=N?.close)!=null?Mc:_m):null,(be||c.icon||c.promise)&&c.icon!==null&&(N?.[be]!==null||c.icon)?f.createElement("div",{"data-icon":"",className:Be(F?.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Oy():null,c.type!=="loading"?Fy:null):null,f.createElement("div",{"data-content":"",className:Be(F?.content,c==null||(i=c.classNames)==null?void 0:i.content)},f.createElement("div",{"data-title":"",className:Be(F?.title,c==null||(s=c.classNames)==null?void 0:s.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?f.createElement("div",{"data-description":"",className:Be(M,Vy,F?.description,c==null||(a=c.classNames)==null?void 0:a.description)},typeof c.description=="function"?c.description():c.description):null),f.isValidElement(c.cancel)?c.cancel:c.cancel&&Yn(c.cancel)?f.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||D,onClick:L=>{Yn(c.cancel)&&Bt&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,L),Ze())},className:Be(F?.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,f.isValidElement(c.action)?c.action:c.action&&Yn(c.action)?f.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||I,onClick:L=>{Yn(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,L),!L.defaultPrevented&&Ze())},className:Be(F?.actionButton,c==null||(d=c.classNames)==null?void 0:d.actionButton)},c.action.label):null)};function Kl(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function ig(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",a=i?Qm:Jm;function l(d){["top","right","bottom","left"].forEach(u=>{n[`${s}-${u}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${s}-${d}`]=a:n[`${s}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):l(a)}),n}const ag=f.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:a,closeButton:l,className:d,offset:u,mobileOffset:c,theme:h="light",richColors:p,duration:g,style:v,visibleToasts:w=Zm,toastOptions:y,dir:x=Kl(),gap:b=tg,icons:E,containerAriaLabel:T="Notifications"}=t,[S,C]=f.useState([]),D=f.useMemo(()=>r?S.filter(O=>O.toasterId===r):S.filter(O=>!O.toasterId),[S,r]),I=f.useMemo(()=>Array.from(new Set([i].concat(D.filter(O=>O.position).map(O=>O.position)))),[D,i]),[_,M]=f.useState([]),[K,W]=f.useState(!1),[Pe,re]=f.useState(!1),[F,N]=f.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),R=f.useRef(null),V=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=f.useRef(null),oe=f.useRef(!1),se=f.useCallback(O=>{C(q=>{var Y;return(Y=q.find(ae=>ae.id===O.id))!=null&&Y.delete||ye.dismiss(O.id),q.filter(({id:ae})=>ae!==O.id)})},[]);return f.useEffect(()=>ye.subscribe(O=>{if(O.dismiss){requestAnimationFrame(()=>{C(q=>q.map(Y=>Y.id===O.id?{...Y,delete:!0}:Y))});return}setTimeout(()=>{ss.flushSync(()=>{C(q=>{const Y=q.findIndex(ae=>ae.id===O.id);return Y!==-1?[...q.slice(0,Y),{...q[Y],...O},...q.slice(Y+1)]:[O,...q]})})})}),[S]),f.useEffect(()=>{if(h!=="system"){N(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?N("dark"):N("light")),typeof window>"u")return;const O=window.matchMedia("(prefers-color-scheme: dark)");try{O.addEventListener("change",({matches:q})=>{N(q?"dark":"light")})}catch{O.addListener(({matches:Y})=>{try{N(Y?"dark":"light")}catch(ae){console.error(ae)}})}},[h]),f.useEffect(()=>{S.length<=1&&W(!1)},[S]),f.useEffect(()=>{const O=q=>{var Y;if(s.every(H=>q[H]||q.code===H)){var $e;W(!0),($e=R.current)==null||$e.focus()}q.code==="Escape"&&(document.activeElement===R.current||(Y=R.current)!=null&&Y.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[s]),f.useEffect(()=>{if(R.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,oe.current=!1)}},[R.current]),f.createElement("section",{ref:n,"aria-label":`${T} ${V}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},I.map((O,q)=>{var Y;const[ae,$e]=O.split("-");return D.length?f.createElement("ol",{key:O,dir:x==="auto"?Kl():x,tabIndex:-1,ref:R,className:d,"data-sonner-toaster":!0,"data-sonner-theme":F,"data-y-position":ae,"data-x-position":$e,style:{"--front-toast-height":`${((Y=_[0])==null?void 0:Y.height)||0}px`,"--width":`${eg}px`,"--gap":`${b}px`,...v,...ig(u,c)},onBlur:H=>{oe.current&&!H.currentTarget.contains(H.relatedTarget)&&(oe.current=!1,j.current&&(j.current.focus({preventScroll:!0}),j.current=null))},onFocus:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||oe.current||(oe.current=!0,j.current=H.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{Pe||W(!1)},onDragEnd:()=>W(!1),onPointerDown:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||re(!0)},onPointerUp:()=>re(!1)},D.filter(H=>!H.position&&q===0||H.position===O).map((H,ve)=>{var qe,ze;return f.createElement(sg,{key:H.id,icons:E,index:ve,toast:H,defaultRichColors:p,duration:(qe=y?.duration)!=null?qe:g,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:o,visibleToasts:w,closeButton:(ze=y?.closeButton)!=null?ze:l,interacting:Pe,position:O,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:se,toasts:D.filter(pe=>pe.position==H.position),heights:_.filter(pe=>pe.position==H.position),setHeights:M,expandByDefault:a,gap:b,expanded:K,swipeDirections:t.swipeDirections})})):null}))}),lg=({spinnerColor:e="orange",...t})=>m.jsx(ag,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:m.jsx(Ul,{color:e})},...t}),cg={elevated:P`
400
+ `,Bo=({children:e,variant:t="primary",size:n="md",isLoading:r,disabled:o,leftIcon:s,rightIcon:i,iconSize:a="md",iconColor:c="currentColor",...d})=>p.jsxs(Bm,{$variant:t,$size:n,disabled:o||r,"aria-busy":r,...d,children:[s&&p.jsx(Y,{color:c,size:a,component:s}),r?"Loading...":e,i&&p.jsx(Y,{color:c,size:a,component:i})]});function Om(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Fm=e=>{switch(e){case"success":return zm;case"info":return Hm;case"warning":return _m;case"error":return Um;default:return null}},jm=Array(12).fill(0),Rm=({visible:e,className:t})=>f.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},f.createElement("div",{className:"sonner-spinner"},jm.map((n,r)=>f.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),zm=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),_m=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Hm=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Um=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},f.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Wm=f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},f.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),f.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Km=()=>{const[e,t]=f.useState(document.hidden);return f.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Oo=1;class Ym{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,s=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Oo++,i=this.toasts.find(c=>c.id===s),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(c=>c.id===s?(this.publish({...c,...t,id:s,title:r}),{...c,...t,id:s,dismissible:a,title:r}):c):this.addToast({title:r,...o,dismissible:a,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,i;const a=o.then(async d=>{if(i=["resolve",d],f.isValidElement(d))s=!1,this.create({id:r,type:"default",message:d});else if(Xm(d)&&!d.ok){s=!1;const l=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,g=typeof l=="object"&&!f.isValidElement(l)?l:{message:l};this.create({id:r,type:"error",description:h,...g})}else if(d instanceof Error){s=!1;const l=typeof n.error=="function"?await n.error(d):n.error,h=typeof n.description=="function"?await n.description(d):n.description,g=typeof l=="object"&&!f.isValidElement(l)?l:{message:l};this.create({id:r,type:"error",description:h,...g})}else if(n.success!==void 0){s=!1;const l=typeof n.success=="function"?await n.success(d):n.success,h=typeof n.description=="function"?await n.description(d):n.description,g=typeof l=="object"&&!f.isValidElement(l)?l:{message:l};this.create({id:r,type:"success",description:h,...g})}}).catch(async d=>{if(i=["reject",d],n.error!==void 0){s=!1;const u=typeof n.error=="function"?await n.error(d):n.error,l=typeof n.description=="function"?await n.description(d):n.description,m=typeof u=="object"&&!f.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:l,...m})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),c=()=>new Promise((d,u)=>a.then(()=>i[0]==="reject"?u(i[1]):d(i[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:c}:Object.assign(r,{unwrap:c})},this.custom=(t,n)=>{const r=n?.id||Oo++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ye=new Ym,Gm=(e,t)=>{const n=t?.id||Oo++;return ye.addToast({title:e,...t,id:n}),n},Xm=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",qm=Gm,Zm=()=>ye.toasts,Jm=()=>ye.getActiveToasts(),Qm=Object.assign(qm,{success:ye.success,info:ye.info,warning:ye.warning,error:ye.error,custom:ye.custom,message:ye.message,promise:ye.promise,dismiss:ye.dismiss,loading:ye.loading},{getHistory:Zm,getToasts:Jm});Om("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Yn(e){return e.label!==void 0}const eg=3,tg="24px",ng="16px",Kl=4e3,rg=356,og=14,ig=45,sg=200;function Be(...e){return e.filter(Boolean).join(" ")}function ag(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const lg=e=>{var t,n,r,o,s,i,a,c,d;const{invert:u,toast:l,unstyled:h,interacting:m,setHeights:g,visibleToasts:v,heights:w,index:y,toasts:x,expanded:b,removeToast:A,defaultRichColors:C,closeButton:S,style:k,cancelButtonStyle:D,actionButtonStyle:I,className:_="",descriptionClassName:M="",duration:K,position:W,gap:Pe,expandByDefault:re,classNames:F,icons:N,closeButtonAriaLabel:R="Close toast"}=e,[$,j]=f.useState(null),[oe,ie]=f.useState(null),[O,q]=f.useState(!1),[G,ae]=f.useState(!1),[Ve,H]=f.useState(!1),[ve,Je]=f.useState(!1),[_e,pe]=f.useState(!1),[By,ri]=f.useState(0),[Oy,Pc]=f.useState(0),ln=f.useRef(l.duration||K||Kl),Ec=f.useRef(null),He=f.useRef(null),Fy=y===0,jy=y+1<=v,be=l.type,Ot=l.dismissible!==!1,Ry=l.className||"",zy=l.descriptionClassName||"",Zn=f.useMemo(()=>w.findIndex(L=>L.toastId===l.id)||0,[w,l.id]),_y=f.useMemo(()=>{var L;return(L=l.closeButton)!=null?L:S},[l.closeButton,S]),Ac=f.useMemo(()=>l.duration||K||Kl,[l.duration,K]),oi=f.useRef(0),Ft=f.useRef(0),Dc=f.useRef(0),jt=f.useRef(null),[Hy,Uy]=W.split("-"),Mc=f.useMemo(()=>w.reduce((L,le,he)=>he>=Zn?L:L+le.height,0),[w,Zn]),Vc=Km(),Wy=l.invert||u,ii=be==="loading";Ft.current=f.useMemo(()=>Zn*Pe+Mc,[Zn,Mc]),f.useEffect(()=>{ln.current=Ac},[Ac]),f.useEffect(()=>{q(!0)},[]),f.useEffect(()=>{const L=He.current;if(L){const le=L.getBoundingClientRect().height;return Pc(le),g(he=>[{toastId:l.id,height:le,position:l.position},...he]),()=>g(he=>he.filter(we=>we.toastId!==l.id))}},[g,l.id]),f.useLayoutEffect(()=>{if(!O)return;const L=He.current,le=L.style.height;L.style.height="auto";const he=L.getBoundingClientRect().height;L.style.height=le,Pc(he),g(we=>we.find(de=>de.toastId===l.id)?we.map(de=>de.toastId===l.id?{...de,height:he}:de):[{toastId:l.id,height:he,position:l.position},...we])},[O,l.title,l.description,g,l.id,l.jsx,l.action,l.cancel]);const Qe=f.useCallback(()=>{ae(!0),ri(Ft.current),g(L=>L.filter(le=>le.toastId!==l.id)),setTimeout(()=>{A(l)},sg)},[l,A,g,Ft]);f.useEffect(()=>{if(l.promise&&be==="loading"||l.duration===1/0||l.type==="loading")return;let L;return b||m||Vc?(()=>{if(Dc.current<oi.current){const we=new Date().getTime()-oi.current;ln.current=ln.current-we}Dc.current=new Date().getTime()})():(()=>{ln.current!==1/0&&(oi.current=new Date().getTime(),L=setTimeout(()=>{l.onAutoClose==null||l.onAutoClose.call(l,l),Qe()},ln.current))})(),()=>clearTimeout(L)},[b,m,l,be,Vc,Qe]),f.useEffect(()=>{l.delete&&(Qe(),l.onDismiss==null||l.onDismiss.call(l,l))},[Qe,l.delete]);function Ky(){var L;if(N?.loading){var le;return f.createElement("div",{className:Be(F?.loader,l==null||(le=l.classNames)==null?void 0:le.loader,"sonner-loader"),"data-visible":be==="loading"},N.loading)}return f.createElement(Rm,{className:Be(F?.loader,l==null||(L=l.classNames)==null?void 0:L.loader),visible:be==="loading"})}const Yy=l.icon||N?.[be]||Fm(be);var $c,Ic;return f.createElement("li",{tabIndex:0,ref:He,className:Be(_,Ry,F?.toast,l==null||(t=l.classNames)==null?void 0:t.toast,F?.default,F?.[be],l==null||(n=l.classNames)==null?void 0:n[be]),"data-sonner-toast":"","data-rich-colors":($c=l.richColors)!=null?$c:C,"data-styled":!(l.jsx||l.unstyled||h),"data-mounted":O,"data-promise":!!l.promise,"data-swiped":_e,"data-removed":G,"data-visible":jy,"data-y-position":Hy,"data-x-position":Uy,"data-index":y,"data-front":Fy,"data-swiping":Ve,"data-dismissible":Ot,"data-type":be,"data-invert":Wy,"data-swipe-out":ve,"data-swipe-direction":oe,"data-expanded":!!(b||re&&O),"data-testid":l.testId,style:{"--index":y,"--toasts-before":y,"--z-index":x.length-y,"--offset":`${G?By:Ft.current}px`,"--initial-height":re?"auto":`${Oy}px`,...k,...l.style},onDragEnd:()=>{H(!1),j(null),jt.current=null},onPointerDown:L=>{L.button!==2&&(ii||!Ot||(Ec.current=new Date,ri(Ft.current),L.target.setPointerCapture(L.pointerId),L.target.tagName!=="BUTTON"&&(H(!0),jt.current={x:L.clientX,y:L.clientY})))},onPointerUp:()=>{var L,le,he;if(ve||!Ot)return;jt.current=null;const we=Number(((L=He.current)==null?void 0:L.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Jn=Number(((le=He.current)==null?void 0:le.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),de=new Date().getTime()-((he=Ec.current)==null?void 0:he.getTime()),Ee=$==="x"?we:Jn,Qn=Math.abs(Ee)/de;if(Math.abs(Ee)>=ig||Qn>.11){ri(Ft.current),l.onDismiss==null||l.onDismiss.call(l,l),ie($==="x"?we>0?"right":"left":Jn>0?"down":"up"),Qe(),Je(!0);return}else{var $e,Ie;($e=He.current)==null||$e.style.setProperty("--swipe-amount-x","0px"),(Ie=He.current)==null||Ie.style.setProperty("--swipe-amount-y","0px")}pe(!1),H(!1),j(null)},onPointerMove:L=>{var le,he,we;if(!jt.current||!Ot||((le=window.getSelection())==null?void 0:le.toString().length)>0)return;const de=L.clientY-jt.current.y,Ee=L.clientX-jt.current.x;var Qn;const $e=(Qn=e.swipeDirections)!=null?Qn:ag(W);!$&&(Math.abs(Ee)>1||Math.abs(de)>1)&&j(Math.abs(Ee)>Math.abs(de)?"x":"y");let Ie={x:0,y:0};const Nc=pt=>1/(1.5+Math.abs(pt)/20);if($==="y"){if($e.includes("top")||$e.includes("bottom"))if($e.includes("top")&&de<0||$e.includes("bottom")&&de>0)Ie.y=de;else{const pt=de*Nc(de);Ie.y=Math.abs(pt)<Math.abs(de)?pt:de}}else if($==="x"&&($e.includes("left")||$e.includes("right")))if($e.includes("left")&&Ee<0||$e.includes("right")&&Ee>0)Ie.x=Ee;else{const pt=Ee*Nc(Ee);Ie.x=Math.abs(pt)<Math.abs(Ee)?pt:Ee}(Math.abs(Ie.x)>0||Math.abs(Ie.y)>0)&&pe(!0),(he=He.current)==null||he.style.setProperty("--swipe-amount-x",`${Ie.x}px`),(we=He.current)==null||we.style.setProperty("--swipe-amount-y",`${Ie.y}px`)}},_y&&!l.jsx&&be!=="loading"?f.createElement("button",{"aria-label":R,"data-disabled":ii,"data-close-button":!0,onClick:ii||!Ot?()=>{}:()=>{Qe(),l.onDismiss==null||l.onDismiss.call(l,l)},className:Be(F?.closeButton,l==null||(r=l.classNames)==null?void 0:r.closeButton)},(Ic=N?.close)!=null?Ic:Wm):null,(be||l.icon||l.promise)&&l.icon!==null&&(N?.[be]!==null||l.icon)?f.createElement("div",{"data-icon":"",className:Be(F?.icon,l==null||(o=l.classNames)==null?void 0:o.icon)},l.promise||l.type==="loading"&&!l.icon?l.icon||Ky():null,l.type!=="loading"?Yy:null):null,f.createElement("div",{"data-content":"",className:Be(F?.content,l==null||(s=l.classNames)==null?void 0:s.content)},f.createElement("div",{"data-title":"",className:Be(F?.title,l==null||(i=l.classNames)==null?void 0:i.title)},l.jsx?l.jsx:typeof l.title=="function"?l.title():l.title),l.description?f.createElement("div",{"data-description":"",className:Be(M,zy,F?.description,l==null||(a=l.classNames)==null?void 0:a.description)},typeof l.description=="function"?l.description():l.description):null),f.isValidElement(l.cancel)?l.cancel:l.cancel&&Yn(l.cancel)?f.createElement("button",{"data-button":!0,"data-cancel":!0,style:l.cancelButtonStyle||D,onClick:L=>{Yn(l.cancel)&&Ot&&(l.cancel.onClick==null||l.cancel.onClick.call(l.cancel,L),Qe())},className:Be(F?.cancelButton,l==null||(c=l.classNames)==null?void 0:c.cancelButton)},l.cancel.label):null,f.isValidElement(l.action)?l.action:l.action&&Yn(l.action)?f.createElement("button",{"data-button":!0,"data-action":!0,style:l.actionButtonStyle||I,onClick:L=>{Yn(l.action)&&(l.action.onClick==null||l.action.onClick.call(l.action,L),!L.defaultPrevented&&Qe())},className:Be(F?.actionButton,l==null||(d=l.classNames)==null?void 0:d.actionButton)},l.action.label):null)};function Yl(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function cg(e,t){const n={};return[e,t].forEach((r,o)=>{const s=o===1,i=s?"--mobile-offset":"--offset",a=s?ng:tg;function c(d){["top","right","bottom","left"].forEach(u=>{n[`${i}-${u}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${i}-${d}`]=a:n[`${i}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):c(a)}),n}const dg=f.forwardRef(function(t,n){const{id:r,invert:o,position:s="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:c,className:d,offset:u,mobileOffset:l,theme:h="light",richColors:m,duration:g,style:v,visibleToasts:w=eg,toastOptions:y,dir:x=Yl(),gap:b=og,icons:A,containerAriaLabel:C="Notifications"}=t,[S,k]=f.useState([]),D=f.useMemo(()=>r?S.filter(O=>O.toasterId===r):S.filter(O=>!O.toasterId),[S,r]),I=f.useMemo(()=>Array.from(new Set([s].concat(D.filter(O=>O.position).map(O=>O.position)))),[D,s]),[_,M]=f.useState([]),[K,W]=f.useState(!1),[Pe,re]=f.useState(!1),[F,N]=f.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),R=f.useRef(null),$=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=f.useRef(null),oe=f.useRef(!1),ie=f.useCallback(O=>{k(q=>{var G;return(G=q.find(ae=>ae.id===O.id))!=null&&G.delete||ye.dismiss(O.id),q.filter(({id:ae})=>ae!==O.id)})},[]);return f.useEffect(()=>ye.subscribe(O=>{if(O.dismiss){requestAnimationFrame(()=>{k(q=>q.map(G=>G.id===O.id?{...G,delete:!0}:G))});return}setTimeout(()=>{si.flushSync(()=>{k(q=>{const G=q.findIndex(ae=>ae.id===O.id);return G!==-1?[...q.slice(0,G),{...q[G],...O},...q.slice(G+1)]:[O,...q]})})})}),[S]),f.useEffect(()=>{if(h!=="system"){N(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?N("dark"):N("light")),typeof window>"u")return;const O=window.matchMedia("(prefers-color-scheme: dark)");try{O.addEventListener("change",({matches:q})=>{N(q?"dark":"light")})}catch{O.addListener(({matches:G})=>{try{N(G?"dark":"light")}catch(ae){console.error(ae)}})}},[h]),f.useEffect(()=>{S.length<=1&&W(!1)},[S]),f.useEffect(()=>{const O=q=>{var G;if(i.every(H=>q[H]||q.code===H)){var Ve;W(!0),(Ve=R.current)==null||Ve.focus()}q.code==="Escape"&&(document.activeElement===R.current||(G=R.current)!=null&&G.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[i]),f.useEffect(()=>{if(R.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,oe.current=!1)}},[R.current]),f.createElement("section",{ref:n,"aria-label":`${C} ${$}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},I.map((O,q)=>{var G;const[ae,Ve]=O.split("-");return D.length?f.createElement("ol",{key:O,dir:x==="auto"?Yl():x,tabIndex:-1,ref:R,className:d,"data-sonner-toaster":!0,"data-sonner-theme":F,"data-y-position":ae,"data-x-position":Ve,style:{"--front-toast-height":`${((G=_[0])==null?void 0:G.height)||0}px`,"--width":`${rg}px`,"--gap":`${b}px`,...v,...cg(u,l)},onBlur:H=>{oe.current&&!H.currentTarget.contains(H.relatedTarget)&&(oe.current=!1,j.current&&(j.current.focus({preventScroll:!0}),j.current=null))},onFocus:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||oe.current||(oe.current=!0,j.current=H.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{Pe||W(!1)},onDragEnd:()=>W(!1),onPointerDown:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||re(!0)},onPointerUp:()=>re(!1)},D.filter(H=>!H.position&&q===0||H.position===O).map((H,ve)=>{var Je,_e;return f.createElement(lg,{key:H.id,icons:A,index:ve,toast:H,defaultRichColors:m,duration:(Je=y?.duration)!=null?Je:g,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:o,visibleToasts:w,closeButton:(_e=y?.closeButton)!=null?_e:c,interacting:Pe,position:O,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:ie,toasts:D.filter(pe=>pe.position==H.position),heights:_.filter(pe=>pe.position==H.position),setHeights:M,expandByDefault:a,gap:b,expanded:K,swipeDirections:t.swipeDirections})})):null}))}),ug=({spinnerColor:e="orange",...t})=>p.jsx(dg,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:p.jsx(Wl,{color:e})},...t}),hg={elevated:P`
401
401
  background-color: var(--color-main-white);
402
402
  box-shadow: var(--shadow-black-card);
403
403
  border: none;
@@ -424,7 +424,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
424
424
  &:active {
425
425
  border: none;
426
426
  }
427
- `},dg={sm:P`
427
+ `},fg={sm:P`
428
428
  padding: 0.75rem;
429
429
  gap: 0.5rem;
430
430
  `,md:P`
@@ -433,7 +433,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
433
433
  `,lg:P`
434
434
  padding: 1.25rem;
435
435
  gap: 0.5rem;
436
- `},ug=P`
436
+ `},pg=P`
437
437
  transition:
438
438
  box-shadow 0.3s ease-out,
439
439
  background-color 0.3s ease-out,
@@ -453,7 +453,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
453
453
  &:focus-visible {
454
454
  outline-color: var(--color-main-blue-primary);
455
455
  }
456
- `,hg=P`
456
+ `,mg=P`
457
457
  opacity: 0.6;
458
458
  cursor: not-allowed;
459
459
  pointer-events: none;
@@ -462,7 +462,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
462
462
  transform: none;
463
463
  box-shadow: inherit;
464
464
  }
465
- `,fg=k.div`
465
+ `,gg=T.div`
466
466
  display: flex;
467
467
  flex-direction: column;
468
468
  border-radius: var(--border-radius-card);
@@ -470,53 +470,53 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
470
470
  height: 100%;
471
471
  outline: 2px solid transparent;
472
472
  outline-offset: -1px;
473
- ${({$variant:e})=>cg[e]}
474
- ${({$clickable:e})=>e&&ug}
475
- ${({$disabled:e})=>e&&hg}
476
- ${({$size:e})=>dg[e]}
477
- `,pg=({variant:e="elevated",size:t="md",disabled:n=!1,onClick:r=void 0,children:o,...i})=>{const s=a=>{n||r&&r(a)};return m.jsx(fg,{$variant:e,$size:t,$disabled:n,$clickable:!!r,onClick:s,role:r?"button":void 0,tabIndex:r&&!n?0:void 0,onKeyDown:r&&!n?a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),s(a))}:void 0,...i,children:o})},mg=k.div`
473
+ ${({$variant:e})=>hg[e]}
474
+ ${({$clickable:e})=>e&&pg}
475
+ ${({$disabled:e})=>e&&mg}
476
+ ${({$size:e})=>fg[e]}
477
+ `,yg=({variant:e="elevated",size:t="md",disabled:n=!1,onClick:r=void 0,children:o,...s})=>{const i=a=>{n||r&&r(a)};return p.jsx(gg,{$variant:e,$size:t,$disabled:n,$clickable:!!r,onClick:i,role:r?"button":void 0,tabIndex:r&&!n?0:void 0,onKeyDown:r&&!n?a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),i(a))}:void 0,...s,children:o})},vg=T.div`
478
478
  display: flex;
479
479
  align-items: center;
480
480
  align-self: stretch;
481
481
  gap: 0.5rem;
482
- `,gg=({children:e,...t})=>m.jsx(mg,{...t,children:e}),yg=k.div`
482
+ `,bg=({children:e,...t})=>p.jsx(vg,{...t,children:e}),wg=T.div`
483
483
  flex: 1;
484
484
  display: flex;
485
485
  flex-direction: column;
486
- `,vg=({children:e,...t})=>m.jsx(yg,{...t,children:e}),bg=k.div`
486
+ `,xg=({children:e,...t})=>p.jsx(wg,{...t,children:e}),Sg=T.div`
487
487
  display: flex;
488
488
  align-items: center;
489
489
  align-self: stretch;
490
490
  gap: 0.5rem;
491
- `,wg=({children:e,...t})=>m.jsx(bg,{...t,children:e}),xg={sm:P`
491
+ `,Tg=({children:e,...t})=>p.jsx(Sg,{...t,children:e}),Cg={sm:P`
492
492
  ${z[12]}
493
493
  `,md:P`
494
494
  ${z[16]}
495
495
  `,lg:P`
496
496
  ${z[18]}
497
- `},Sg=k.div`
497
+ `},kg=T.div`
498
498
  color: var(--color-main-warning-state);
499
- ${({$size:e})=>xg[e]}
499
+ ${({$size:e})=>Cg[e]}
500
500
  font-weight: 400;
501
501
  margin-top: 0.25rem;
502
502
  display: flex;
503
503
  align-items: flex-start;
504
504
  gap: 0.25rem;
505
- `,Fo=({children:e,className:t,size:n="md",...r})=>m.jsx(Sg,{className:t,$size:n,...r,children:e}),Tg={sm:P`
505
+ `,Fo=({children:e,className:t,size:n="md",...r})=>p.jsx(kg,{className:t,$size:n,...r,children:e}),Pg={sm:P`
506
506
  ${z[16]}
507
507
  `,md:P`
508
508
  ${z[24]}
509
509
  `,lg:P`
510
510
  ${z[30]}
511
- `},Cg=k.label`
511
+ `},Eg=T.label`
512
512
  color: var(--color-main-blue-primary);
513
- ${({$size:e})=>Tg[e]}
514
- ${({$disabled:e})=>e&&kg}
513
+ ${({$size:e})=>Pg[e]}
514
+ ${({$disabled:e})=>e&&Ag}
515
515
  cursor: ${({$disabled:e,$htmlFor:t})=>e||!t?"default":"pointer"};
516
- `,kg=P`
516
+ `,Ag=P`
517
517
  cursor: not-allowed;
518
518
  opacity: 0.6;
519
- `,Gn=({children:e,htmlFor:t,className:n,required:r,disabled:o=!1,size:i="md",...s})=>m.jsxs(Cg,{className:n,htmlFor:t,$htmlFor:t,$size:i,$disabled:o,...s,children:[e,r&&m.jsx("span",{style:{color:"var(--color-main-warning-state)"},children:"*"})]}),Yl=["text","email","password","number","tel","url","date","datetime-local","time","search","textarea","select","checkbox","radio","pin"],Gl=e=>Yl.includes(e),Ge=e=>e.map(t=>({name:t.name||"",label:t.label||"",type:t.type&&Gl(t.type)?t.type:"text",placeholder:t.placeholder,required:t.required||!1,disabled:t.disabled||!1,options:t.options||[],validation:t.validation,checkboxLabel:t.checkboxLabel,radioName:t.radioName,pinLength:t.pinLength||6,pinType:t.pinType||"number",rows:t.rows||4,size:t.size||"md",inputClassName:t.inputClassName,labelClassName:t.labelClassName,messageErrorClassName:t.messageErrorClassName})),Pg=e=>e.map(t=>({value:t.value,label:t.label})),Eg={text:(e,t,n)=>Ge([{name:e,label:t,type:"text",...n}])[0],email:(e,t,n)=>Ge([{name:e,label:t,type:"email",required:!0,...n}])[0],password:(e,t,n)=>Ge([{name:e,label:t,type:"password",required:!0,validation:{pattern:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d@$!%*?&]{8,}$",custom:r=>{if(r&&r.length<8)return"Password must be at least 8 characters long"}},...n}])[0],select:(e,t,n,r)=>Ge([{name:e,label:t,type:"select",options:n,required:!0,...r}])[0],checkbox:(e,t,n)=>Ge([{name:e,label:t,type:"checkbox",checkboxLabel:t,...n}])[0],radio:(e,t,n,r)=>Ge([{name:e,label:t,type:"radio",options:n,radioName:e,required:!0,...r}])[0],pin:(e,t,n=6,r)=>Ge([{name:e,label:t,type:"pin",pinLength:n,pinType:"number",required:!0,validation:{custom:o=>{if(o&&o.length!==n)return`${t} must be ${n} digits long`}},...r}])[0]},Ag=(e,t,n,r,o,i,s,a)=>{const{field:l,...d}=t,u={...l,...d,size:d.size,hasError:d.hasError,disabled:d.disabled,placeholder:d.placeholder,className:d.className};switch(e){case"textarea":return{component:"textarea",props:{...u,rows:s?.rows||4}};case"select":return{component:"select",props:{...u,options:n?.options||[],onOptionSelect:n?.onOptionSelect,placeholder:t.placeholder||"Selecciona una opción"}};case"checkbox":return{component:"checkbox",props:{...u,label:r?.checkboxLabel||r?.label,checked:t.field.value||r?.checked||!1}};case"radio":return{component:"radio",props:{...u,options:o?.options||[],radioName:o?.radioName||t.name,onRadioChange:o?.onRadioChange}};case"pin":return{component:"pin",props:{...u,length:i?.pinLength||6,type:i?.pinType||"number",onComplete:i?.onPinComplete}};case"password":return{component:"password",props:{...u,type:"password"}};case"search":return{component:"search",props:{...u,onSearch:a?.onSearch}};default:return{component:"base",props:{...u,type:t.type||e||"text"}}}},dt=P`
519
+ `,Gn=({children:e,htmlFor:t,className:n,required:r,disabled:o=!1,size:s="md",...i})=>p.jsxs(Eg,{className:n,htmlFor:t,$htmlFor:t,$size:s,$disabled:o,...i,children:[e,r&&p.jsx("span",{style:{color:"var(--color-main-warning-state)"},children:"*"})]}),Gl=["text","email","password","number","tel","url","date","datetime-local","time","search","textarea","select","checkbox","radio","pin"],Xl=e=>Gl.includes(e),qe=e=>e.map(t=>({name:t.name||"",label:t.label||"",type:t.type&&Xl(t.type)?t.type:"text",placeholder:t.placeholder,required:t.required||!1,disabled:t.disabled||!1,options:t.options||[],validation:t.validation,checkboxLabel:t.checkboxLabel,radioName:t.radioName,pinLength:t.pinLength||6,pinType:t.pinType||"number",rows:t.rows||4,size:t.size||"md",inputClassName:t.inputClassName,labelClassName:t.labelClassName,messageErrorClassName:t.messageErrorClassName})),Dg=e=>e.map(t=>({value:t.value,label:t.label})),Mg={text:(e,t,n)=>qe([{name:e,label:t,type:"text",...n}])[0],email:(e,t,n)=>qe([{name:e,label:t,type:"email",required:!0,...n}])[0],password:(e,t,n)=>qe([{name:e,label:t,type:"password",required:!0,validation:{pattern:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d@$!%*?&]{8,}$",custom:r=>{if(r&&r.length<8)return"Password must be at least 8 characters long"}},...n}])[0],select:(e,t,n,r)=>qe([{name:e,label:t,type:"select",options:n,required:!0,...r}])[0],checkbox:(e,t,n)=>qe([{name:e,label:t,type:"checkbox",checkboxLabel:t,...n}])[0],radio:(e,t,n,r)=>qe([{name:e,label:t,type:"radio",options:n,radioName:e,required:!0,...r}])[0],pin:(e,t,n=6,r)=>qe([{name:e,label:t,type:"pin",pinLength:n,pinType:"number",required:!0,validation:{custom:o=>{if(o&&o.length!==n)return`${t} must be ${n} digits long`}},...r}])[0]},Vg=(e,t,n,r,o,s,i,a)=>{const{field:c,...d}=t,u={...c,...d,size:d.size,hasError:d.hasError,disabled:d.disabled,placeholder:d.placeholder,className:d.className};switch(e){case"textarea":return{component:"textarea",props:{...u,rows:i?.rows||4}};case"select":return{component:"select",props:{...u,options:n?.options||[],onOptionSelect:n?.onOptionSelect,placeholder:t.placeholder||"Selecciona una opción"}};case"checkbox":return{component:"checkbox",props:{...u,label:r?.checkboxLabel||r?.label,checked:t.field.value||r?.checked||!1}};case"radio":return{component:"radio",props:{...u,options:o?.options||[],radioName:o?.radioName||t.name,onRadioChange:o?.onRadioChange}};case"pin":return{component:"pin",props:{...u,length:s?.pinLength||6,type:s?.pinType||"number",onComplete:s?.onPinComplete}};case"password":return{component:"password",props:{...u,type:"password"}};case"search":return{component:"search",props:{...u,onSearch:a?.onSearch}};default:return{component:"base",props:{...u,type:t.type||e||"text"}}}},ut=P`
520
520
  display: flex;
521
521
  justify-content: space-between;
522
522
  align-items: center;
@@ -564,18 +564,18 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
564
564
  &::placeholder {
565
565
  color: var(--color-dark-200);
566
566
  }
567
- `,ut=P`
567
+ `,ht=P`
568
568
  border: var(--border-input-error) !important;
569
569
 
570
570
  &:focus-within {
571
571
  border: 1px solid var(--color-main-warning-state) !important;
572
572
  outline: none;
573
573
  }
574
- `,Xe=P`
574
+ `,Ze=P`
575
575
  border: var(--border-input-disabled) !important;
576
576
  cursor: not-allowed;
577
577
  opacity: 0.6;
578
- `,Xl=P`
578
+ `,ql=P`
579
579
  border: none;
580
580
  border-top: 0;
581
581
  border-right: 0;
@@ -601,7 +601,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
601
601
  border-bottom: var(--border-input-focus);
602
602
  outline: none;
603
603
  }
604
- `,rn={sm:P`
604
+ `,sn={sm:P`
605
605
  padding: 0.5rem 1rem;
606
606
  height: 2.5rem;
607
607
  ${z[18]}
@@ -613,47 +613,47 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
613
613
  padding: 0.5rem 1rem;
614
614
  height: 3rem;
615
615
  ${z[20]}
616
- `},on=P`
616
+ `},an=P`
617
617
  display: flex;
618
618
  align-items: center;
619
619
  justify-content: center;
620
620
  flex-shrink: 0;
621
621
  user-select: none;
622
- `,Dg=k.div`
623
- ${dt}
624
- ${({$size:e})=>rn[e]}
625
- ${({$hasError:e})=>e&&ut}
626
- ${({$disabled:e})=>e&&Xe}
627
- ${({$isFlushed:e})=>e&&Xl}
628
- `,Mg=k.input`
622
+ `,$g=T.div`
623
+ ${ut}
624
+ ${({$size:e})=>sn[e]}
625
+ ${({$hasError:e})=>e&&ht}
626
+ ${({$disabled:e})=>e&&Ze}
627
+ ${({$isFlushed:e})=>e&&ql}
628
+ `,Ig=T.input`
629
629
  ${Xn}
630
- `,jo=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,type:r="text",flushed:o=!1,leftIcon:i,rightIcon:s,iconSize:a="md",iconColor:l="currentColor",className:d,...u},c)=>m.jsxs(Dg,{$size:e,$hasError:t,className:d,$isFlushed:o,children:[i&&m.jsx(G,{component:i,size:a,color:n?"var(--color-dark-200)":l}),m.jsx(Mg,{ref:c,type:r,$hasError:t,disabled:n,...u}),s&&m.jsx(G,{component:s,size:a,color:n?"var(--color-dark-200)":l})]}));jo.displayName="BaseInput";const $g=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z"})),Vg=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})),Ig=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z"})),Ng=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})),Lg=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z"})),Bg=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z"})),Og=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M17.8827 19.2968C16.1814 20.3755 14.1638 21.0002 12.0003 21.0002C6.60812 21.0002 2.12215 17.1204 1.18164 12.0002C1.61832 9.62282 2.81932 7.5129 4.52047 5.93457L1.39366 2.80777L2.80788 1.39355L22.6069 21.1925L21.1927 22.6068L17.8827 19.2968ZM5.9356 7.3497C4.60673 8.56015 3.6378 10.1672 3.22278 12.0002C4.14022 16.0521 7.7646 19.0002 12.0003 19.0002C13.5997 19.0002 15.112 18.5798 16.4243 17.8384L14.396 15.8101C13.7023 16.2472 12.8808 16.5002 12.0003 16.5002C9.51498 16.5002 7.50026 14.4854 7.50026 12.0002C7.50026 11.1196 7.75317 10.2981 8.19031 9.60442L5.9356 7.3497ZM12.9139 14.328L9.67246 11.0866C9.5613 11.3696 9.50026 11.6777 9.50026 12.0002C9.50026 13.3809 10.6196 14.5002 12.0003 14.5002C12.3227 14.5002 12.6309 14.4391 12.9139 14.328ZM20.8068 16.5925L19.376 15.1617C20.0319 14.2268 20.5154 13.1586 20.7777 12.0002C19.8603 7.94818 16.2359 5.00016 12.0003 5.00016C11.1544 5.00016 10.3329 5.11773 9.55249 5.33818L7.97446 3.76015C9.22127 3.26959 10.5793 3.00016 12.0003 3.00016C17.3924 3.00016 21.8784 6.87992 22.8189 12.0002C22.5067 13.6998 21.8038 15.2628 20.8068 16.5925ZM11.7229 7.50857C11.8146 7.50299 11.9071 7.50016 12.0003 7.50016C14.4855 7.50016 16.5003 9.51488 16.5003 12.0002C16.5003 12.0933 16.4974 12.1858 16.4919 12.2775L11.7229 7.50857Z"})),ql=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M3 4H21V6H3V4ZM3 11H21V13H3V11ZM3 18H21V20H3V18Z"})),Fg=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM9 21H15V23H9V21Z"})),jg=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM18 17V10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10V17H18ZM9 21H15V23H9V21Z"})),Zl=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"})),Rg=k.div`
631
- ${dt}
632
- ${({$size:e})=>rn[e??"md"]}
633
- ${({$hasError:e})=>e&&ut}
634
- ${({$disabled:e})=>e&&Xe}
630
+ `,jo=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,type:r="text",flushed:o=!1,leftIcon:s,rightIcon:i,iconSize:a="md",iconColor:c="currentColor",className:d,...u},l)=>p.jsxs($g,{$size:e,$hasError:t,className:d,$isFlushed:o,children:[s&&p.jsx(Y,{component:s,size:a,color:n?"var(--color-dark-200)":c}),p.jsx(Ig,{ref:l,type:r,$hasError:t,disabled:n,...u}),i&&p.jsx(Y,{component:i,size:a,color:n?"var(--color-dark-200)":c})]}));jo.displayName="BaseInput";const Ng=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z"})),Lg=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"})),Bg=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})),Og=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z"})),Fg=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})),jg=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z"})),Rg=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z"})),zg=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M17.8827 19.2968C16.1814 20.3755 14.1638 21.0002 12.0003 21.0002C6.60812 21.0002 2.12215 17.1204 1.18164 12.0002C1.61832 9.62282 2.81932 7.5129 4.52047 5.93457L1.39366 2.80777L2.80788 1.39355L22.6069 21.1925L21.1927 22.6068L17.8827 19.2968ZM5.9356 7.3497C4.60673 8.56015 3.6378 10.1672 3.22278 12.0002C4.14022 16.0521 7.7646 19.0002 12.0003 19.0002C13.5997 19.0002 15.112 18.5798 16.4243 17.8384L14.396 15.8101C13.7023 16.2472 12.8808 16.5002 12.0003 16.5002C9.51498 16.5002 7.50026 14.4854 7.50026 12.0002C7.50026 11.1196 7.75317 10.2981 8.19031 9.60442L5.9356 7.3497ZM12.9139 14.328L9.67246 11.0866C9.5613 11.3696 9.50026 11.6777 9.50026 12.0002C9.50026 13.3809 10.6196 14.5002 12.0003 14.5002C12.3227 14.5002 12.6309 14.4391 12.9139 14.328ZM20.8068 16.5925L19.376 15.1617C20.0319 14.2268 20.5154 13.1586 20.7777 12.0002C19.8603 7.94818 16.2359 5.00016 12.0003 5.00016C11.1544 5.00016 10.3329 5.11773 9.55249 5.33818L7.97446 3.76015C9.22127 3.26959 10.5793 3.00016 12.0003 3.00016C17.3924 3.00016 21.8784 6.87992 22.8189 12.0002C22.5067 13.6998 21.8038 15.2628 20.8068 16.5925ZM11.7229 7.50857C11.8146 7.50299 11.9071 7.50016 12.0003 7.50016C14.4855 7.50016 16.5003 9.51488 16.5003 12.0002C16.5003 12.0933 16.4974 12.1858 16.4919 12.2775L11.7229 7.50857Z"})),_g=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M5 22C4.44772 22 4 21.5523 4 21V3C4 2.44772 4.44772 2 5 2H19C19.5523 2 20 2.44772 20 3V6H18V4H6V20H18V18H20V21C20 21.5523 19.5523 22 19 22H5ZM18 16V13H11V11H18V8L23 12L18 16Z"})),Zl=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M3 4H21V6H3V4ZM3 11H21V13H3V11ZM3 18H21V20H3V18Z"})),Hg=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM9 21H15V23H9V21Z"})),Ug=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM18 17V10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10V17H18ZM9 21H15V23H9V21Z"})),Jl=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"})),Wg=({color:e="currentColor",size:t=24,className:n,...r})=>f.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},f.createElement("path",{d:"M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z"})),Kg=T.div`
631
+ ${ut}
632
+ ${({$size:e})=>sn[e??"md"]}
633
+ ${({$hasError:e})=>e&&ht}
634
+ ${({$disabled:e})=>e&&Ze}
635
635
  position: relative;
636
- `,zg=k.input`
636
+ `,Yg=T.input`
637
637
  ${Xn}
638
- `,_g=k.span`
639
- ${on}
638
+ `,Gg=T.span`
639
+ ${an}
640
640
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
641
- `,Jl=({size:e="md",leftIcon:t,iconSize:n="sm",iconColor:r="currentColor",placeholder:o="Contraseña...",hasError:i=!1,disabled:s=!1,className:a,...l})=>{const[d,u]=f.useState(!1),c=()=>u(h=>!h);return m.jsxs(Rg,{$size:e,$hasError:i,$disabled:s,className:a,children:[t&&m.jsx(G,{component:t,size:n,color:s?"var(--color-dark-200)":r}),m.jsx(zg,{type:d?"text":"password",placeholder:o,disabled:s,...l}),m.jsx(_g,{$disabled:s,onClick:s?void 0:c,children:m.jsx(G,{component:d?Og:Bg,size:n,color:s?"var(--color-dark-200)":r})})]})},Ql=e=>{const t=e.findIndex(n=>!n.disabled);return t!==-1?t:0},Hg=e=>{const t=e.map((n,r)=>({...n,index:r})).reverse().find(n=>!n.disabled)?.index;return t!==void 0?t:e.length-1},Ug=(e,t,n)=>{let r=e;do r=(r+t+n.length)%n.length;while(n[r]?.disabled&&r!==e);return r},Wg=(e,t)=>({target:{value:String(e),name:t},currentTarget:{value:String(e),name:t}}),Kg=(e,t)=>{if(t>=0&&e.current){const n=e.current.children[t];n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}},Yg=(e,t)=>{if(typeof e=="string"||typeof e=="number"){const n=t.findIndex(r=>r.value===e);if(n!==-1&&!t[n].disabled)return n}return Ql(t)},Gg=k.div`
641
+ `,Ql=({size:e="md",leftIcon:t,iconSize:n="sm",iconColor:r="currentColor",placeholder:o="Contraseña...",hasError:s=!1,disabled:i=!1,className:a,...c})=>{const[d,u]=f.useState(!1),l=()=>u(h=>!h);return p.jsxs(Kg,{$size:e,$hasError:s,$disabled:i,className:a,children:[t&&p.jsx(Y,{component:t,size:n,color:i?"var(--color-dark-200)":r}),p.jsx(Yg,{type:d?"text":"password",placeholder:o,disabled:i,...c}),p.jsx(Gg,{$disabled:i,onClick:i?void 0:l,children:p.jsx(Y,{component:d?zg:Rg,size:n,color:i?"var(--color-dark-200)":r})})]})},ec=e=>{const t=e.findIndex(n=>!n.disabled);return t!==-1?t:0},Xg=e=>{const t=e.map((n,r)=>({...n,index:r})).reverse().find(n=>!n.disabled)?.index;return t!==void 0?t:e.length-1},qg=(e,t,n)=>{let r=e;do r=(r+t+n.length)%n.length;while(n[r]?.disabled&&r!==e);return r},Zg=(e,t)=>({target:{value:String(e),name:t},currentTarget:{value:String(e),name:t}}),Jg=(e,t)=>{if(t>=0&&e.current){const n=e.current.children[t];n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}},Qg=(e,t)=>{if(typeof e=="string"||typeof e=="number"){const n=t.findIndex(r=>r.value===e);if(n!==-1&&!t[n].disabled)return n}return ec(t)},e0=T.div`
642
642
  position: relative;
643
643
  width: 100%;
644
- `,Xg=k.div`
645
- ${on}
644
+ `,t0=T.div`
645
+ ${an}
646
646
  position: absolute;
647
647
  right: 1rem;
648
648
  top: 50%;
649
649
  transform: translateY(-50%) rotate(${({$open:e})=>e?"180deg":"0deg"});
650
650
  pointer-events: none;
651
651
  transition: transform 0.3s ease-out;
652
- `,qg=k.button`
653
- ${dt}
654
- ${({$size:e})=>rn[e]}
655
- ${({$hasError:e})=>e&&ut}
656
- ${({$disabled:e})=>e&&Xe}
652
+ `,n0=T.button`
653
+ ${ut}
654
+ ${({$size:e})=>sn[e]}
655
+ ${({$hasError:e})=>e&&ht}
656
+ ${({$disabled:e})=>e&&Ze}
657
657
 
658
658
  width: 100%;
659
659
  text-align: left;
@@ -671,7 +671,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
671
671
  &:hover {
672
672
  background-color: var(--color-main-alternative-secondary);
673
673
  }
674
- `,Zg=k(ct.ul)`
674
+ `,r0=T(ze.ul)`
675
675
  position: absolute;
676
676
  z-index: 50;
677
677
  left: 0;
@@ -693,11 +693,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
693
693
  border: var(--border-input-focus);
694
694
  outline: none;
695
695
  }
696
- `,Jg=k.div`
696
+ `,o0=T.div`
697
697
  max-height: 15rem;
698
698
  overflow-y: auto;
699
699
  outline: none;
700
- `,Qg=k.li`
700
+ `,i0=T.li`
701
701
  display: flex;
702
702
  align-items: center;
703
703
  gap: 0.5rem;
@@ -707,21 +707,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
707
707
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
708
708
  user-select: none;
709
709
 
710
- ${({$size:e})=>e0[e??"md"]}
710
+ ${({$size:e})=>s0[e??"md"]}
711
711
 
712
712
  background-color: ${({$active:e})=>e?"var(--color-main-alternative-secondary)":"transparent"};
713
713
  color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
714
- `,e0={sm:P`
714
+ `,s0={sm:P`
715
715
  ${z[16]}
716
716
  `,md:P`
717
717
  ${z[18]}
718
718
  `,lg:P`
719
719
  ${z[18]}
720
- `},Ro=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,options:r=[],placeholder:o,onOptionSelect:i,onChange:s,value:a,name:l,className:d,inputClassName:u,optionsClassName:c,optionClassName:h},p)=>{const g=f.useRef(null),v=f.useRef(null),w=f.useRef(null),y=f.useRef(null),x=f.useId(),[b,E]=f.useState(!1),[T,S]=f.useState(-1),C=r.find(M=>M.value===a);f.useEffect(()=>{b&&v.current&&(v.current.focus(),S(Yg(a,r)))},[b,r,a]),f.useEffect(()=>{Kg(w,T)},[T]),f.useEffect(()=>{if(!b)return;const M=K=>{g.current&&(g.current.contains(K.target)||E(!1))};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[b]),f.useEffect(()=>{b||requestAnimationFrame(()=>{p?.current?.focus?.(),y.current?.focus()})},[b,p]);const D=M=>{M.disabled||(i?.(M),s&&s(Wg(M.value,l)),E(!1),S(-1))},I=M=>{n||(M.key==="ArrowDown"||M.key==="ArrowUp"?(M.preventDefault(),E(!0)):(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),E(K=>!K)))},_=M=>{if(M.key==="Escape"){M.preventDefault(),E(!1),S(-1);return}if(M.key==="ArrowDown"||M.key==="ArrowUp"){M.preventDefault();const K=M.key==="ArrowDown"?1:-1;S(Ug(T,K,r))}else if(M.key==="Enter"){M.preventDefault();const K=r[T];K&&!K.disabled&&D(K)}else M.key==="Home"?(M.preventDefault(),S(Ql(r))):M.key==="End"&&(M.preventDefault(),S(Hg(r)))};return m.jsxs(Gg,{ref:g,className:d,children:[l&&m.jsx("input",{type:"hidden",name:l,value:C?.value??""}),m.jsx(qg,{type:"button",$size:e,$hasError:t,$hasValue:!!C,$disabled:n,disabled:n,className:u,ref:M=>{y.current=M,typeof p=="function"?p(M):p&&"current"in p&&(p.current=M)},onClick:()=>!n&&E(M=>!M),onKeyDown:I,"aria-haspopup":"listbox","aria-expanded":b,"aria-controls":`${x}-listbox`,"aria-invalid":t||void 0,title:C?.label??o??"Select an option",children:C?.label??o??""}),m.jsx(Xg,{$size:e,$disabled:n,$open:b,children:m.jsx(G,{component:Ig,size:e==="sm"||e==="md"?"sm":"md",color:n?"var(--color-dark-200)":"var(--color-main-blue-primary)"})}),m.jsx(On,{children:b&&m.jsx(Zg,{ref:v,className:"custom-scrollbar",id:`${x}-listbox`,role:"listbox",tabIndex:0,"aria-activedescendant":T>=0?`${x}-option-${T}`:void 0,initial:{opacity:0,height:0,scaleY:.8},animate:{opacity:1,height:"auto",scaleY:1},exit:{opacity:0,height:0,scaleY:.8},transition:{duration:.25,ease:[.4,0,.2,1]},onKeyDown:_,children:m.jsx(Jg,{ref:w,className:c,children:r.map((M,K)=>{const W=K===T;return m.jsx(Qg,{id:`${x}-option-${K}`,className:h,role:"option",$size:e,"aria-selected":a===M.value,$active:W,$disabled:M.disabled,onMouseEnter:()=>{!M.disabled&&b&&S(K)},onClick:()=>D(M),children:M.label},M.value)})})})})]})});Ro.displayName="SelectInput";const t0=k.textarea`
721
- ${dt}
722
- ${({$size:e})=>n0[e]}
723
- ${({$hasError:e})=>e&&ut}
724
- ${({$disabled:e})=>e&&Xe}
720
+ `},Ro=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,options:r=[],placeholder:o,onOptionSelect:s,onChange:i,value:a,name:c,className:d,inputClassName:u,optionsClassName:l,optionClassName:h},m)=>{const g=f.useRef(null),v=f.useRef(null),w=f.useRef(null),y=f.useRef(null),x=f.useId(),[b,A]=f.useState(!1),[C,S]=f.useState(-1),k=r.find(M=>M.value===a);f.useEffect(()=>{b&&v.current&&(v.current.focus(),S(Qg(a,r)))},[b,r,a]),f.useEffect(()=>{Jg(w,C)},[C]),f.useEffect(()=>{if(!b)return;const M=K=>{g.current&&(g.current.contains(K.target)||A(!1))};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[b]),f.useEffect(()=>{b||requestAnimationFrame(()=>{m?.current?.focus?.(),y.current?.focus()})},[b,m]);const D=M=>{M.disabled||(s?.(M),i&&i(Zg(M.value,c)),A(!1),S(-1))},I=M=>{n||(M.key==="ArrowDown"||M.key==="ArrowUp"?(M.preventDefault(),A(!0)):(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),A(K=>!K)))},_=M=>{if(M.key==="Escape"){M.preventDefault(),A(!1),S(-1);return}if(M.key==="ArrowDown"||M.key==="ArrowUp"){M.preventDefault();const K=M.key==="ArrowDown"?1:-1;S(qg(C,K,r))}else if(M.key==="Enter"){M.preventDefault();const K=r[C];K&&!K.disabled&&D(K)}else M.key==="Home"?(M.preventDefault(),S(ec(r))):M.key==="End"&&(M.preventDefault(),S(Xg(r)))};return p.jsxs(e0,{ref:g,className:d,children:[c&&p.jsx("input",{type:"hidden",name:c,value:k?.value??""}),p.jsx(n0,{type:"button",$size:e,$hasError:t,$hasValue:!!k,$disabled:n,disabled:n,className:u,ref:M=>{y.current=M,typeof m=="function"?m(M):m&&"current"in m&&(m.current=M)},onClick:()=>!n&&A(M=>!M),onKeyDown:I,"aria-haspopup":"listbox","aria-expanded":b,"aria-controls":`${x}-listbox`,"aria-invalid":t||void 0,title:k?.label??o??"Select an option",children:k?.label??o??""}),p.jsx(t0,{$size:e,$disabled:n,$open:b,children:p.jsx(Y,{component:Og,size:e==="sm"||e==="md"?"sm":"md",color:n?"var(--color-dark-200)":"var(--color-main-blue-primary)"})}),p.jsx(qt,{children:b&&p.jsx(r0,{ref:v,className:"custom-scrollbar",id:`${x}-listbox`,role:"listbox",tabIndex:0,"aria-activedescendant":C>=0?`${x}-option-${C}`:void 0,initial:{opacity:0,height:0,scaleY:.8},animate:{opacity:1,height:"auto",scaleY:1},exit:{opacity:0,height:0,scaleY:.8},transition:{duration:.25,ease:[.4,0,.2,1]},onKeyDown:_,children:p.jsx(o0,{ref:w,className:l,children:r.map((M,K)=>{const W=K===C;return p.jsx(i0,{id:`${x}-option-${K}`,className:h,role:"option",$size:e,"aria-selected":a===M.value,$active:W,$disabled:M.disabled,onMouseEnter:()=>{!M.disabled&&b&&S(K)},onClick:()=>D(M),children:M.label},M.value)})})})})]})});Ro.displayName="SelectInput";const a0=T.textarea`
721
+ ${ut}
722
+ ${({$size:e})=>l0[e]}
723
+ ${({$hasError:e})=>e&&ht}
724
+ ${({$disabled:e})=>e&&Ze}
725
725
  ${z[20]}
726
726
 
727
727
  resize: ${({$resize:e})=>e};
@@ -735,7 +735,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
735
735
  color: var(--color-dark-200);
736
736
  opacity: 1;
737
737
  }
738
- `,n0={sm:`
738
+ `,l0={sm:`
739
739
  ${z[20]}
740
740
  height: 6rem;
741
741
  max-height: 12rem;
@@ -750,14 +750,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
750
750
  height:12rem;
751
751
  max-height: 20rem;
752
752
  padding: 1rem 1.25rem;
753
- `},zo=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,resize:r="vertical",autoResize:o=!1,minRows:i=3,maxRows:s,className:a,onChange:l,...d},u)=>{const c=h=>{if(o){const p=h.target;p.style.height="auto";const g=p.scrollHeight,v=i*24,w=s?s*24:g;g>w?(p.style.height=`${w}px`,p.style.overflowY="scroll"):(p.style.height=`${Math.max(g,v)}px`,p.style.overflowY="hidden")}l?.(h)};return m.jsx(t0,{ref:u,$size:e,$hasError:t,$disabled:n,$resize:r,$autoResize:o,disabled:n,rows:i,className:a,onChange:c,...d})});zo.displayName="TextAreaInput";const r0=k.div`
754
- ${dt}
755
- ${({$size:e})=>rn[e??"md"]}
756
- `,o0=k.input`
753
+ `},zo=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,resize:r="vertical",autoResize:o=!1,minRows:s=3,maxRows:i,className:a,onChange:c,...d},u)=>{const l=h=>{if(o){const m=h.target;m.style.height="auto";const g=m.scrollHeight,v=s*24,w=i?i*24:g;g>w?(m.style.height=`${w}px`,m.style.overflowY="scroll"):(m.style.height=`${Math.max(g,v)}px`,m.style.overflowY="hidden")}c?.(h)};return p.jsx(a0,{ref:u,$size:e,$hasError:t,$disabled:n,$resize:r,$autoResize:o,disabled:n,rows:s,className:a,onChange:l,...d})});zo.displayName="TextAreaInput";const c0=T.div`
754
+ ${ut}
755
+ ${({$size:e})=>sn[e??"md"]}
756
+ `,d0=T.input`
757
757
  ${Xn}
758
- `,ec=({size:e="md",leftIcon:t,rightIcon:n=Zl,iconSize:r="sm",iconColor:o="currentColor",placeholder:i="Buscar...",onSearch:s,className:a})=>{const l=d=>{s?.(d.target.value)};return m.jsxs(r0,{$size:e,className:a,children:[t&&m.jsx(G,{component:t,size:r,color:o}),m.jsx(o0,{placeholder:i,onChange:l}),n?m.jsx(G,{component:n,size:r,color:o}):m.jsx(G,{component:Zl,size:r,color:o})]})},s0=k.div`
758
+ `,tc=({size:e="md",leftIcon:t,rightIcon:n=Jl,iconSize:r="sm",iconColor:o="currentColor",placeholder:s="Buscar...",onSearch:i,className:a})=>{const c=d=>{i?.(d.target.value)};return p.jsxs(c0,{$size:e,className:a,children:[t&&p.jsx(Y,{component:t,size:r,color:o}),p.jsx(d0,{placeholder:s,onChange:c}),n?p.jsx(Y,{component:n,size:r,color:o}):p.jsx(Y,{component:Jl,size:r,color:o})]})},u0=T.div`
759
759
  position: relative;
760
- `,i0=k.input`
760
+ `,h0=T.input`
761
761
  position: absolute;
762
762
  height: 1.5rem;
763
763
  width: 1.5rem;
@@ -774,7 +774,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
774
774
  outline-color: var(--color-main-orange-primary);
775
775
  outline-offset: 2px;
776
776
  }
777
- `,a0=k.div`
777
+ `,f0=T.div`
778
778
  height: 1.5rem;
779
779
  width: 1.5rem;
780
780
  border: 2px solid;
@@ -793,34 +793,34 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
793
793
  border-color: var(--color-main-orange-primary);
794
794
  }
795
795
 
796
- ${({$hasError:e})=>e&&ut}
797
- ${({$disabled:e})=>e&&Xe}
798
- ${({$checked:e})=>e&&l0}
799
- `,l0=P`
796
+ ${({$hasError:e})=>e&&ht}
797
+ ${({$disabled:e})=>e&&Ze}
798
+ ${({$checked:e})=>e&&p0}
799
+ `,p0=P`
800
800
  background-color: var(--color-main-orange-primary);
801
801
  border-color: var(--color-main-orange-primary);
802
- `,c0=k.svg`
802
+ `,m0=T.svg`
803
803
  height: 1.5rem;
804
804
  width: 1.5rem;
805
805
  color: ${({$disabled:e})=>e?"var(--color-dark-200)":"white"};
806
806
  fill: none;
807
807
  stroke: currentColor;
808
- `,d0=k.span`
808
+ `,g0=T.span`
809
809
  display: block;
810
810
  width: 60%;
811
811
  height: 2px;
812
812
  background-color: white;
813
813
  border-radius: 1px;
814
- `,_o=f.forwardRef(({hasError:e=!1,indeterminate:t=!1,checked:n,disabled:r=!1,onChange:o,className:i,checkboxClassName:s,...a},l)=>{const d=f.useId(),u=a.id??d,c=!!n,{size:h,...p}=a,g=f.useRef(null),v=f.useCallback(w=>{if(g.current=w,!!l)if(typeof l=="function")try{l(w)}catch{}else l.current=w},[l]);return f.useEffect(()=>{g.current&&(g.current.indeterminate=!!t)},[t]),m.jsxs(s0,{className:i,children:[m.jsx(i0,{ref:v,type:"checkbox",checked:c||!1,disabled:r,onChange:o,id:u,name:p.name,"aria-invalid":e||void 0,"aria-disabled":r||void 0,"aria-checked":t?"mixed":c?"true":"false",...p}),m.jsxs(a0,{$checked:!!c||!!t,$hasError:e,$disabled:r,className:s,children:[c&&!t&&m.jsx(c0,{$disabled:r,viewBox:"0 0 24 24",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})}),t&&m.jsx(d0,{})]})]})});_o.displayName="CheckboxInput";const tc=({children:e,size:t="md",disabled:n=!1,htmlFor:r,onLabelClick:o,className:i,onClick:s,...a})=>{const l=d=>{n||(o&&o(),s&&s(d))};return m.jsx(Gn,{size:t,disabled:n,htmlFor:r,onClick:l,className:i,...a,children:e})},u0=k.section`
814
+ `,_o=f.forwardRef(({hasError:e=!1,indeterminate:t=!1,checked:n,disabled:r=!1,onChange:o,className:s,checkboxClassName:i,...a},c)=>{const d=f.useId(),u=a.id??d,l=!!n,{size:h,...m}=a,g=f.useRef(null),v=f.useCallback(w=>{if(g.current=w,!!c)if(typeof c=="function")try{c(w)}catch{}else c.current=w},[c]);return f.useEffect(()=>{g.current&&(g.current.indeterminate=!!t)},[t]),p.jsxs(u0,{className:s,children:[p.jsx(h0,{ref:v,type:"checkbox",checked:l||!1,disabled:r,onChange:o,id:u,name:m.name,"aria-invalid":e||void 0,"aria-disabled":r||void 0,"aria-checked":t?"mixed":l?"true":"false",...m}),p.jsxs(f0,{$checked:!!l||!!t,$hasError:e,$disabled:r,className:i,children:[l&&!t&&p.jsx(m0,{$disabled:r,viewBox:"0 0 24 24",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})}),t&&p.jsx(g0,{})]})]})});_o.displayName="CheckboxInput";const nc=({children:e,size:t="md",disabled:n=!1,htmlFor:r,onLabelClick:o,className:s,onClick:i,...a})=>{const c=d=>{n||(o&&o(),i&&i(d))};return p.jsx(Gn,{size:t,disabled:n,htmlFor:r,onClick:c,className:s,...a,children:e})},y0=T.section`
815
815
  display: flex;
816
816
  align-items: center;
817
817
  justify-content: center;
818
818
  gap: 1rem;
819
- `,qn=f.forwardRef(({size:e="md",label:t,hasError:n=!1,indeterminate:r=!1,checked:o,disabled:i=!1,onChange:s,onLabelClick:a,className:l,checkboxClassName:d,labelClassName:u,...c},h)=>{const p=f.useId(),g=c.id??p;return m.jsxs(u0,{className:l,children:[m.jsx(_o,{ref:h,size:e,hasError:n,indeterminate:r,checked:o,disabled:i,onChange:s,checkboxClassName:d,id:g,...c}),t&&m.jsx(tc,{size:e,disabled:i,htmlFor:g,onLabelClick:a,className:u,children:t})]})});qn.displayName="Checkbox";const h0=k.div`
819
+ `,qn=f.forwardRef(({size:e="md",label:t,hasError:n=!1,indeterminate:r=!1,checked:o,disabled:s=!1,onChange:i,onLabelClick:a,className:c,checkboxClassName:d,labelClassName:u,...l},h)=>{const m=f.useId(),g=l.id??m;return p.jsxs(y0,{className:c,children:[p.jsx(_o,{ref:h,size:e,hasError:n,indeterminate:r,checked:o,disabled:s,onChange:i,checkboxClassName:d,id:g,...l}),t&&p.jsx(nc,{size:e,disabled:s,htmlFor:g,onLabelClick:a,className:u,children:t})]})});qn.displayName="Checkbox";const v0=T.div`
820
820
  position: relative;
821
821
  display: inline-block;
822
- `,f0=k.input`
823
- ${dt}
822
+ `,b0=T.input`
823
+ ${ut}
824
824
  text-align: center;
825
825
  padding: 0;
826
826
 
@@ -833,15 +833,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
833
833
  &[type='number'] {
834
834
  -moz-appearance: textfield;
835
835
  }
836
- ${({$size:e})=>m0[e]}
837
- ${({$variant:e})=>e&&p0[e??"outlined"]}
838
- ${({$hasError:e})=>e&&ut}
839
- ${({$disabled:e})=>e&&Xe}
836
+ ${({$size:e})=>x0[e]}
837
+ ${({$variant:e})=>e&&w0[e??"outlined"]}
838
+ ${({$hasError:e})=>e&&ht}
839
+ ${({$disabled:e})=>e&&Ze}
840
840
 
841
841
  &:focus {
842
842
  border: 2px solid var(--color-main-blue-primary);
843
843
  }
844
- `,p0={outlined:`
844
+ `,w0={outlined:`
845
845
  background-color: var(--color-main-white);
846
846
  border: 2px solid var(--color-main-input-borders);
847
847
 
@@ -860,7 +860,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
860
860
  background-color: var(--color-main-white);
861
861
  border: 2px solid var(--color-main-blue-primary);
862
862
  }
863
- `},m0={sm:`
863
+ `},x0={sm:`
864
864
  padding: 0.375rem;
865
865
  width: 2.5rem;
866
866
  height: 2.5rem;
@@ -875,13 +875,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
875
875
  width: 3.5rem;
876
876
  height: 4rem;
877
877
  ${z[40]}
878
- `},Ho=f.forwardRef(({size:e="md",hasError:t=!1,variant:n="outlined",disabled:r=!1,className:o,maxLength:i=1,type:s="text",...a},l)=>{const d=f.useId(),u=a.id??d;return m.jsx(h0,{children:m.jsx(f0,{ref:l,$size:e,$hasError:t,$disabled:r,$variant:n,className:o,maxLength:i,type:s,disabled:r,id:u,"aria-invalid":t||void 0,"aria-disabled":r||void 0,...a})})});Ho.displayName="PinInput";const nc=(e,t,n,r,o,i,s="text",a,l)=>{const d=e.target.value;if(d.length>1)return;const u=i??o.length;if(s==="number"&&d&&!/^\d$/.test(d))return;const c=[...n];c[t]=d,r(c);const h=c.join("");a?.(h),d&&t<i-1&&o[t+1].current?.focus(),c.every(p=>p!=="")&&c.length>=u&&l?.(h)},rc=(e,t,n,r,o,i)=>{if(e.key==="Backspace"&&!n[t]&&t>0){if(n[t]){if(o){r[t-1].current?.focus();const s=[...n];s[t-1]="",o(s),i?.(s.join(""))}return}if(t>0&&(r[t-1].current?.focus(),o)){const s=[...n];s[t-1]="",o(s),i?.(s.join(""))}}e.key==="ArrowLeft"&&t>0&&r[t-1]?.current?.focus(),e.key==="ArrowRight"&&t<r.length-1&&r[t+1]?.current?.focus()},oc=(e,t,n,r,o,i,s="text",a,l)=>{e.preventDefault();const d=e.clipboardData.getData("text");if(!d)return;const u=i??o.length,c=[...n];for(let v=0;v<d.length;v++){const w=t+v;if(w>=u)break;const y=d[v];s==="number"&&!/^\d$/.test(y)||(c[w]=y)}r(c),a?.(c.join(""));const h=c.findIndex(v=>v===""),p=h!==-1?Math.min(Math.max(h,t),u-1):u-1;o[p].current?.focus();const g=c.join("");c.every(v=>v!=="")&&c.length>=u&&l?.(g)},sc=e=>Array(e).fill(null).map(()=>f.createRef()),g0=(e,t,n="text")=>!(e.length!==t||n==="number"&&!/^\d+$/.test(e)),y0=k.div`
878
+ `},Ho=f.forwardRef(({size:e="md",hasError:t=!1,variant:n="outlined",disabled:r=!1,className:o,maxLength:s=1,type:i="text",...a},c)=>{const d=f.useId(),u=a.id??d;return p.jsx(v0,{children:p.jsx(b0,{ref:c,$size:e,$hasError:t,$disabled:r,$variant:n,className:o,maxLength:s,type:i,disabled:r,id:u,"aria-invalid":t||void 0,"aria-disabled":r||void 0,...a})})});Ho.displayName="PinInput";const rc=(e,t,n,r,o,s,i="text",a,c)=>{const d=e.target.value;if(d.length>1)return;const u=s??o.length;if(i==="number"&&d&&!/^\d$/.test(d))return;const l=[...n];l[t]=d,r(l);const h=l.join("");a?.(h),d&&t<s-1&&o[t+1].current?.focus(),l.every(m=>m!=="")&&l.length>=u&&c?.(h)},oc=(e,t,n,r,o,s)=>{if(e.key==="Backspace"&&!n[t]&&t>0){if(n[t]){if(o){r[t-1].current?.focus();const i=[...n];i[t-1]="",o(i),s?.(i.join(""))}return}if(t>0&&(r[t-1].current?.focus(),o)){const i=[...n];i[t-1]="",o(i),s?.(i.join(""))}}e.key==="ArrowLeft"&&t>0&&r[t-1]?.current?.focus(),e.key==="ArrowRight"&&t<r.length-1&&r[t+1]?.current?.focus()},ic=(e,t,n,r,o,s,i="text",a,c)=>{e.preventDefault();const d=e.clipboardData.getData("text");if(!d)return;const u=s??o.length,l=[...n];for(let v=0;v<d.length;v++){const w=t+v;if(w>=u)break;const y=d[v];i==="number"&&!/^\d$/.test(y)||(l[w]=y)}r(l),a?.(l.join(""));const h=l.findIndex(v=>v===""),m=h!==-1?Math.min(Math.max(h,t),u-1):u-1;o[m].current?.focus();const g=l.join("");l.every(v=>v!=="")&&l.length>=u&&c?.(g)},sc=e=>Array(e).fill(null).map(()=>f.createRef()),S0=(e,t,n="text")=>!(e.length!==t||n==="number"&&!/^\d+$/.test(e)),T0=T.div`
879
879
  display: flex;
880
880
  gap: 8px;
881
881
  align-items: center;
882
- `,Uo=({length:e=6,size:t="md",variant:n="outlined",hasError:r=!1,type:o="number",onChange:i,onComplete:s,className:a,pinInputClassName:l})=>{const[d,u]=f.useState(Array(e).fill("")),c=f.useMemo(()=>sc(e),[e]);return m.jsx(y0,{className:a,children:Array.from({length:e},(h,p)=>m.jsx(Ho,{className:l,size:t,variant:n,hasError:r,value:d[p],onChange:g=>nc(g,p,d,u,c,e,o,i,s),onKeyDown:g=>rc(g,p,d,c,u,i),onPaste:g=>oc(g,p,d,u,c,e,o,i,s),ref:c[p]},p))})};Uo.displayName="PinInputGroup";const v0=k.div`
882
+ `,Uo=({length:e=6,size:t="md",variant:n="outlined",hasError:r=!1,type:o="number",onChange:s,onComplete:i,className:a,pinInputClassName:c})=>{const[d,u]=f.useState(Array(e).fill("")),l=f.useMemo(()=>sc(e),[e]);return p.jsx(T0,{className:a,children:Array.from({length:e},(h,m)=>p.jsx(Ho,{className:c,size:t,variant:n,hasError:r,value:d[m],onChange:g=>rc(g,m,d,u,l,e,o,s,i),onKeyDown:g=>oc(g,m,d,l,u,s),onPaste:g=>ic(g,m,d,u,l,e,o,s,i),ref:l[m]},m))})};Uo.displayName="PinInputGroup";const C0=T.div`
883
883
  position: relative;
884
- `,b0=k.input`
884
+ `,k0=T.input`
885
885
  position: absolute;
886
886
  height: 1.5rem;
887
887
  width: 1.5rem;
@@ -899,9 +899,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
899
899
  outline-color: var(--color-main-orange-primary);
900
900
  outline-offset: 2px;
901
901
  }
902
- `,w0=P`
902
+ `,P0=P`
903
903
  border-color: var(--color-main-orange-primary);
904
- `,x0=k.div`
904
+ `,E0=T.div`
905
905
  height: 1.5rem;
906
906
  width: 1.5rem;
907
907
  border: 2px solid var(--color-main-input-borders);
@@ -919,11 +919,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
919
919
  border-color: var(--color-main-warning-state);
920
920
  `}
921
921
  ${({$disabled:e})=>e&&`
922
- ${Xe}
922
+ ${Ze}
923
923
  border: 2px solid var(--color-dark-200) !important;
924
924
  `}
925
- ${({$checked:e})=>e&&w0}
926
- `,S0=k.span`
925
+ ${({$checked:e})=>e&&P0}
926
+ `,A0=T.span`
927
927
  display: block;
928
928
  height: 0.625rem;
929
929
  width: 0.625rem;
@@ -932,21 +932,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
932
932
  background-color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-orange-primary)"};
933
933
  opacity: ${({$checked:e})=>e?1:0};
934
934
  transform: ${({$checked:e})=>e?"scale(1)":"scale(0.6)"};
935
- `,Wo=f.forwardRef(({hasError:e=!1,checked:t,disabled:n=!1,onChange:r,className:o,dotClassName:i,...s},a)=>{const l=f.useId(),d=s.id??l,u=!!t,{size:c,...h}=s;return m.jsxs(v0,{className:o,children:[m.jsx(b0,{ref:a,type:"radio",id:d,checked:u||!1,disabled:n,onChange:r,"aria-invalid":e||void 0,"aria-disabled":n||void 0,"aria-checked":u?"true":"false",...h}),m.jsx(x0,{$checked:!!u,$hasError:e,$disabled:n,className:i,children:m.jsx(S0,{$disabled:n,$checked:u})})]})});Wo.displayName="RadioInputDot";const Ko=({children:e,htmlFor:t,className:n,disabled:r=!1,size:o="md",...i})=>m.jsx(Gn,{className:n,htmlFor:t,size:o,disabled:r,...i,children:e});Ko.displayName="RadioInputLabel";const T0=k.section`
935
+ `,Wo=f.forwardRef(({hasError:e=!1,checked:t,disabled:n=!1,onChange:r,className:o,dotClassName:s,...i},a)=>{const c=f.useId(),d=i.id??c,u=!!t,{size:l,...h}=i;return p.jsxs(C0,{className:o,children:[p.jsx(k0,{ref:a,type:"radio",id:d,checked:u||!1,disabled:n,onChange:r,"aria-invalid":e||void 0,"aria-disabled":n||void 0,"aria-checked":u?"true":"false",...h}),p.jsx(E0,{$checked:!!u,$hasError:e,$disabled:n,className:s,children:p.jsx(A0,{$disabled:n,$checked:u})})]})});Wo.displayName="RadioInputDot";const Ko=({children:e,htmlFor:t,className:n,disabled:r=!1,size:o="md",...s})=>p.jsx(Gn,{className:n,htmlFor:t,size:o,disabled:r,...s,children:e});Ko.displayName="RadioInputLabel";const D0=T.section`
936
936
  display: flex;
937
937
  align-items: center;
938
938
  justify-content: center;
939
939
  gap: 1rem;
940
- `,Yo=f.forwardRef(({size:e="md",label:t,hasError:n=!1,checked:r,disabled:o=!1,onChange:i,className:s,dotClassName:a,labelClassName:l,...d},u)=>{const c=f.useId(),h=d.id??c;return m.jsxs(T0,{className:s,children:[m.jsx(Wo,{ref:u,size:e,hasError:n,checked:r,disabled:o,onChange:i,dotClassName:a,id:h,...d}),t&&m.jsx(Ko,{size:e,disabled:o,htmlFor:h,className:l,children:t})]})});Yo.displayName="RadioInput";const ic=k.div`
940
+ `,Yo=f.forwardRef(({size:e="md",label:t,hasError:n=!1,checked:r,disabled:o=!1,onChange:s,className:i,dotClassName:a,labelClassName:c,...d},u)=>{const l=f.useId(),h=d.id??l;return p.jsxs(D0,{className:i,children:[p.jsx(Wo,{ref:u,size:e,hasError:n,checked:r,disabled:o,onChange:s,dotClassName:a,id:h,...d}),t&&p.jsx(Ko,{size:e,disabled:o,htmlFor:h,className:c,children:t})]})});Yo.displayName="RadioInput";const ac=T.div`
941
941
  display: flex;
942
942
  flex-direction: column;
943
943
  gap: 0.5rem;
944
944
  width: 100%;
945
- `,C0=k.div`
945
+ `,M0=T.div`
946
946
  display: flex;
947
947
  flex-direction: column;
948
948
  gap: 0.75rem;
949
- `,k0=({id:e,name:t,label:n,type:r="text",size:o="md",placeholder:i,disabled:s=!1,required:a=!1,options:l=[],checkboxLabel:d,radioName:u,pinLength:c=6,pinType:h="number",className:p,inputClassName:g,labelClassName:v,messageErrorClassName:w,leftIcon:y,rightIcon:x,iconSize:b,iconColor:E,onOptionSelect:T,onRadioChange:S,onPinComplete:C,onChange:D,...I})=>{const[_,M,K]=Vc.useField(t),W=!!(M.touched&&M.error),Pe=W?M.error:void 0,re=e?.toString?.()||t,F={required:a||void 0,"aria-required":a||void 0,"aria-invalid":W||void 0,"aria-describedby":W?`${re}-error`:void 0},N=V=>{if(D)return D(V);_.onChange(V)};let R;switch(r){case"textarea":{const V=j=>{D?D(j):_.onChange(j)};R=m.jsx(zo,{id:re,name:t,className:g,hasError:W,disabled:s,value:_.value??"",size:o,placeholder:i,onChange:V,...I,...F});break}case"select":{R=m.jsx(Ro,{id:re,name:t,className:g,hasError:W,disabled:s,size:o,value:_.value??"",onChange:V=>{_.onChange(V);const j=l.find(oe=>String(oe.value)===V.target.value);j&&T?.(j)},options:l,placeholder:i||"Selecciona una opción",...I,...F});break}case"checkbox":{R=m.jsx(qn,{id:re,name:t,className:g,hasError:W,disabled:s,size:o,checked:!!_.value,label:d,onChange:V=>{K.setValue(V.target.checked)},...I,...F});break}case"radio":{const V=l;R=m.jsx(C0,{children:V.map(j=>m.jsx(Yo,{name:u||t,value:j.value,label:j.label,size:o,hasError:W,disabled:s,checked:_.value===j.value,onChange:oe=>{const se=oe.target.value,O=typeof j.value=="number"?Number(se):se;K.setValue(O),S?.(oe)},...F},j.value))});break}case"pin":{R=m.jsx(Uo,{length:c,type:h,size:o,hasError:W,onChange:V=>K.setValue(V),onComplete:V=>{K.setValue(V),C?.(V)},...I,...F});break}case"password":{const{rightIcon:V,...j}=I;R=m.jsx(Jl,{id:re,name:t,className:g,hasError:W,disabled:s,size:o,placeholder:i,leftIcon:y,iconSize:b,iconColor:E,onChange:N,...j,...F});break}case"search":{R=m.jsx(ec,{className:g,size:o,placeholder:i,leftIcon:y,rightIcon:x,iconSize:b,iconColor:E,onSearch:I.onSearch,...F});break}default:R=m.jsx(jo,{id:re,name:t,className:g,hasError:W,disabled:s,size:o,placeholder:i,type:["text","email","number","tel","url","date","date","datetime-local","time"].includes(r)?r:"text",leftIcon:y,rightIcon:x,iconSize:b,iconColor:E,value:_.value??"",onChange:N,...I,...F})}return r==="checkbox"?m.jsxs(ic,{className:p,children:[R,W&&m.jsx(Fo,{id:`${re}-error`,size:o,className:w,children:Pe})]}):m.jsxs(ic,{className:p,children:[n&&m.jsx(Gn,{htmlFor:re,size:o,required:a,disabled:s,className:v,children:n}),R,W&&m.jsx(Fo,{id:`${re}-error`,size:o,className:w,children:Pe})]})},P0={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},ac={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},E0={initial:{height:0,opacity:0,y:-6},animate:{height:"auto",opacity:1,y:0},exit:{height:0,opacity:0,y:-6},transition:{duration:.2,ease:"easeInOut"}},A0=k(ct.div)`
949
+ `,V0=({id:e,name:t,label:n,type:r="text",size:o="md",placeholder:s,disabled:i=!1,required:a=!1,options:c=[],checkboxLabel:d,radioName:u,pinLength:l=6,pinType:h="number",className:m,inputClassName:g,labelClassName:v,messageErrorClassName:w,leftIcon:y,rightIcon:x,iconSize:b,iconColor:A,onOptionSelect:C,onRadioChange:S,onPinComplete:k,onChange:D,...I})=>{const[_,M,K]=Lc.useField(t),W=!!(M.touched&&M.error),Pe=W?M.error:void 0,re=e?.toString?.()||t,F={required:a||void 0,"aria-required":a||void 0,"aria-invalid":W||void 0,"aria-describedby":W?`${re}-error`:void 0},N=$=>{if(D)return D($);_.onChange($)};let R;switch(r){case"textarea":{const $=j=>{D?D(j):_.onChange(j)};R=p.jsx(zo,{id:re,name:t,className:g,hasError:W,disabled:i,value:_.value??"",size:o,placeholder:s,onChange:$,...I,...F});break}case"select":{R=p.jsx(Ro,{id:re,name:t,className:g,hasError:W,disabled:i,size:o,value:_.value??"",onChange:$=>{_.onChange($);const j=c.find(oe=>String(oe.value)===$.target.value);j&&C?.(j)},options:c,placeholder:s||"Selecciona una opción",...I,...F});break}case"checkbox":{R=p.jsx(qn,{id:re,name:t,className:g,hasError:W,disabled:i,size:o,checked:!!_.value,label:d,onChange:$=>{K.setValue($.target.checked)},...I,...F});break}case"radio":{const $=c;R=p.jsx(M0,{children:$.map(j=>p.jsx(Yo,{name:u||t,value:j.value,label:j.label,size:o,hasError:W,disabled:i,checked:_.value===j.value,onChange:oe=>{const ie=oe.target.value,O=typeof j.value=="number"?Number(ie):ie;K.setValue(O),S?.(oe)},...F},j.value))});break}case"pin":{R=p.jsx(Uo,{length:l,type:h,size:o,hasError:W,onChange:$=>K.setValue($),onComplete:$=>{K.setValue($),k?.($)},...I,...F});break}case"password":{const{rightIcon:$,...j}=I;R=p.jsx(Ql,{id:re,name:t,className:g,hasError:W,disabled:i,size:o,placeholder:s,leftIcon:y,iconSize:b,iconColor:A,onChange:N,...j,...F});break}case"search":{R=p.jsx(tc,{className:g,size:o,placeholder:s,leftIcon:y,rightIcon:x,iconSize:b,iconColor:A,onSearch:I.onSearch,...F});break}default:R=p.jsx(jo,{id:re,name:t,className:g,hasError:W,disabled:i,size:o,placeholder:s,type:["text","email","number","tel","url","date","date","datetime-local","time"].includes(r)?r:"text",leftIcon:y,rightIcon:x,iconSize:b,iconColor:A,value:_.value??"",onChange:N,...I,...F})}return r==="checkbox"?p.jsxs(ac,{className:m,children:[R,W&&p.jsx(Fo,{id:`${re}-error`,size:o,className:w,children:Pe})]}):p.jsxs(ac,{className:m,children:[n&&p.jsx(Gn,{htmlFor:re,size:o,required:a,disabled:i,className:v,children:n}),R,W&&p.jsx(Fo,{id:`${re}-error`,size:o,className:w,children:Pe})]})},lc={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},Go={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},$0={fromBottom:{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.2,ease:"easeInOut"}},fromTop:{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.2,ease:"easeInOut"}},fromLeft:{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.2,ease:"easeInOut"}},fromRight:{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.2,ease:"easeInOut"}}},cc={initial:{height:0,opacity:0,y:-6},animate:{height:"auto",opacity:1,y:0},exit:{height:0,opacity:0,y:-6},transition:{duration:.2,ease:"easeInOut"}},I0=T(ze.div)`
950
950
  position: fixed;
951
951
  inset: 0;
952
952
  z-index: 50;
@@ -960,7 +960,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
960
960
  @media (max-width: 768px) {
961
961
  padding: 0.5rem;
962
962
  }
963
- `,D0=k(ct.div)`
963
+ `,N0=T(ze.div)`
964
964
  position: relative;
965
965
  display: flex;
966
966
  flex-direction: column;
@@ -987,7 +987,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
987
987
  outline: none;
988
988
  box-shadow: var(--shadow-hover-black-card);
989
989
  }
990
- `,M0=k.button`
990
+ `,L0=T.button`
991
991
  position: absolute;
992
992
  top: 1rem;
993
993
  right: 1rem;
@@ -1006,7 +1006,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1006
1006
  transform: scale(1.1);
1007
1007
  outline: none;
1008
1008
  }
1009
- `,lc=({isOpen:e,onClose:t,children:n,className:r,closeOnBackdropClick:o=!0,showCloseButton:i=!1,size:s="md",fullScreen:a=!1,closeOnEsc:l=!0,ariaLabel:d,ariaLabelledBy:u,ariaDescribedBy:c})=>{const h=f.useRef(null),p=f.useRef(null),g=w=>{o&&w.target===w.currentTarget&&t()};f.useEffect(()=>{const w=y=>{l&&y.key==="Escape"&&t()};return e?(document.addEventListener("keydown",w),document.body.style.overflow="hidden"):document.body.style.overflow="",()=>{document.removeEventListener("keydown",w),document.body.style.overflow=""}},[e,t,l]),f.useEffect(()=>{if(!e)return;p.current=document.activeElement;const w=h.current,y=()=>{w&&(w.hasAttribute("tabindex")||w.setAttribute("tabindex","-1"),w.focus())},x=window.setTimeout(y,0);function b(T){const S=["a[href]","area[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]'];return Array.from(T.querySelectorAll(S.join(","))).filter(C=>!!(C.offsetWidth||C.offsetHeight||C.getClientRects().length))}const E=T=>{if(T.key!=="Tab"||!w)return;const S=b(w);if(S.length===0){T.preventDefault(),w.focus();return}const C=S[0],D=S[S.length-1],I=document.activeElement;!T.shiftKey&&I===D?(T.preventDefault(),C.focus()):T.shiftKey&&I===C&&(T.preventDefault(),D.focus())};return document.addEventListener("keydown",E),()=>{window.clearTimeout(x),document.removeEventListener("keydown",E),p.current&&p.current.focus()}},[e]);const v=m.jsx(On,{children:e&&m.jsx(A0,{...ac,onClick:g,children:m.jsxs(D0,{...P0,ref:h,$size:s,$fullScreen:a,className:r,onClick:w=>w.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":d,"aria-labelledby":d?void 0:u,"aria-describedby":c,children:[i&&m.jsx(M0,{className:`${on} cursor-pointer`,onClick:t,"aria-label":"Close dialog",children:m.jsx(G,{component:Ng,size:"sm"})}),n]})})});return typeof document>"u"?v:ss.createPortal(v,document.body)},$0=k.div`
1009
+ `,dc=({isOpen:e,onClose:t,children:n,className:r,closeOnBackdropClick:o=!0,showCloseButton:s=!1,size:i="md",fullScreen:a=!1,closeOnEsc:c=!0,ariaLabel:d,ariaLabelledBy:u,ariaDescribedBy:l})=>{const h=f.useRef(null),m=f.useRef(null),g=w=>{o&&w.target===w.currentTarget&&t()};f.useEffect(()=>{const w=y=>{c&&y.key==="Escape"&&t()};return e?(document.addEventListener("keydown",w),document.body.style.overflow="hidden"):document.body.style.overflow="",()=>{document.removeEventListener("keydown",w),document.body.style.overflow=""}},[e,t,c]),f.useEffect(()=>{if(!e)return;m.current=document.activeElement;const w=h.current,y=()=>{w&&(w.hasAttribute("tabindex")||w.setAttribute("tabindex","-1"),w.focus())},x=window.setTimeout(y,0);function b(C){const S=["a[href]","area[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]'];return Array.from(C.querySelectorAll(S.join(","))).filter(k=>!!(k.offsetWidth||k.offsetHeight||k.getClientRects().length))}const A=C=>{if(C.key!=="Tab"||!w)return;const S=b(w);if(S.length===0){C.preventDefault(),w.focus();return}const k=S[0],D=S[S.length-1],I=document.activeElement;!C.shiftKey&&I===D?(C.preventDefault(),k.focus()):C.shiftKey&&I===k&&(C.preventDefault(),D.focus())};return document.addEventListener("keydown",A),()=>{window.clearTimeout(x),document.removeEventListener("keydown",A),m.current&&m.current.focus()}},[e]);const v=p.jsx(qt,{children:e&&p.jsx(I0,{...Go,onClick:g,children:p.jsxs(N0,{...lc,ref:h,$size:i,$fullScreen:a,className:r,onClick:w=>w.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":d,"aria-labelledby":d?void 0:u,"aria-describedby":l,children:[s&&p.jsx(L0,{className:`${an} cursor-pointer`,onClick:t,"aria-label":"Close dialog",children:p.jsx(Y,{component:Fg,size:"sm"})}),n]})})});return typeof document>"u"?v:si.createPortal(v,document.body)},B0=T.div`
1010
1010
  display: flex;
1011
1011
  align-items: center;
1012
1012
  justify-content: space-between;
@@ -1039,7 +1039,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1039
1039
  flex-shrink: 0;
1040
1040
  margin-left: auto;
1041
1041
  }
1042
- `,cc=({showDivider:e=!1,variant:t="default",children:n,className:r,...o})=>m.jsx($0,{$showDivider:e,$variant:t,className:r,...o,children:n}),V0=k.div`
1042
+ `,uc=({showDivider:e=!1,variant:t="default",children:n,className:r,...o})=>p.jsx(B0,{$showDivider:e,$variant:t,className:r,...o,children:n}),O0=T.div`
1043
1043
  position: relative;
1044
1044
  display: flex;
1045
1045
  flex-direction: column;
@@ -1052,7 +1052,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1052
1052
  ${({$showTopDivider:e})=>e&&"border-top: 1px solid var(--color-main-light-borders);"}
1053
1053
 
1054
1054
  ${({$showBottomDivider:e})=>e&&"border-bottom: 1px solid var(--color-main-light-borders);"}
1055
- `,dc=({children:e,padded:t=!0,showTopDivider:n=!1,showBottomDivider:r=!1,className:o,...i})=>m.jsx(V0,{$padded:t,$showTopDivider:n,$showBottomDivider:r,className:o,...i,children:e}),I0=k.div`
1055
+ `,hc=({children:e,padded:t=!0,showTopDivider:n=!1,showBottomDivider:r=!1,className:o,...s})=>p.jsx(O0,{$padded:t,$showTopDivider:n,$showBottomDivider:r,className:o,...s,children:e}),F0=T.div`
1056
1056
  display: flex;
1057
1057
  align-items: center;
1058
1058
  width: 100%;
@@ -1068,7 +1068,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1068
1068
  bottom: 0;
1069
1069
  background: var(--color-main-white);
1070
1070
  `}
1071
- `,uc=({align:e="end",showDivider:t=!1,gap:n=8,sticky:r=!1,children:o,className:i,...s})=>m.jsx(I0,{$align:e,$showDivider:t,$gap:n,$sticky:r,className:i,...s,children:o}),N0=({isOpen:e,onAccept:t,onCancel:n,title:r,subtitle:o,content:i,bodyFooter:s,confirmationLabel:a="I have read and agree to the Terms and Conditions",acceptLabel:l="Accept",cancelLabel:d="Cancel",size:u="md",fullScreen:c=!1,showCloseButton:h=!0,closeOnBackdropClick:p=!1,containerClassName:g,headerClassName:v,bodyClassName:w,footerClassName:y,initiallyConfirmed:x=!1,onConfirmChange:b})=>{const[E,T]=f.useState(x);f.useEffect(()=>{e||T(x)},[e,x]);const S=C=>{T(C),b?.(C)};return m.jsxs(lc,{isOpen:e,onClose:n,size:u,fullScreen:c,showCloseButton:h,closeOnBackdropClick:p,ariaLabelledBy:"tac-title",ariaDescribedBy:"tac-subtitle",className:`${g} !h-fit !max-w-[60rem]`,children:[m.jsx(cc,{showDivider:!0,className:v,children:m.jsx(Pn,{id:"tac-title",size:20,children:r})}),m.jsxs(dc,{padded:!0,showBottomDivider:!0,className:w,children:[o&&m.jsx(En,{id:"tac-subtitle",size:16,children:o}),i,s]}),m.jsxs(uc,{showDivider:!0,align:"space-between",className:y,children:[m.jsx(qn,{label:a,checked:E,onChange:C=>S(C.target.checked)}),m.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[m.jsx(Bo,{variant:"secondary",onClick:n,children:d}),m.jsx(Bo,{variant:"primary",onClick:t,disabled:!E,children:l})]})]})]})},Go=f.createContext(void 0),hc=({children:e})=>{const[t,n]=f.useState(!1),[r,o]=f.useState(!1);return m.jsx(Go.Provider,{value:{isCollapsed:t,setIsCollapsed:n,isMobileOpen:r,setIsMobileOpen:o},children:e})},fc=()=>{const e=f.useContext(Go);if(!e)throw new Error("useSidebar must be used within a SidebarProvider");return e},Xo=(e=[],t=[])=>!t||t.length===0?!1:t.includes("all")?!0:t.some(n=>e.includes(n)),L0=k.button`
1071
+ `,fc=({align:e="end",showDivider:t=!1,gap:n=8,sticky:r=!1,children:o,className:s,...i})=>p.jsx(F0,{$align:e,$showDivider:t,$gap:n,$sticky:r,className:s,...i,children:o}),j0=({isOpen:e,onAccept:t,onCancel:n,title:r,subtitle:o,content:s,bodyFooter:i,confirmationLabel:a="I have read and agree to the Terms and Conditions",acceptLabel:c="Accept",cancelLabel:d="Cancel",size:u="md",fullScreen:l=!1,showCloseButton:h=!0,closeOnBackdropClick:m=!1,containerClassName:g,headerClassName:v,bodyClassName:w,footerClassName:y,initiallyConfirmed:x=!1,onConfirmChange:b})=>{const[A,C]=f.useState(x);f.useEffect(()=>{e||C(x)},[e,x]);const S=k=>{C(k),b?.(k)};return p.jsxs(dc,{isOpen:e,onClose:n,size:u,fullScreen:l,showCloseButton:h,closeOnBackdropClick:m,ariaLabelledBy:"tac-title",ariaDescribedBy:"tac-subtitle",className:`${g} !h-fit !max-w-[60rem]`,children:[p.jsx(uc,{showDivider:!0,className:v,children:p.jsx(An,{id:"tac-title",size:20,children:r})}),p.jsxs(hc,{padded:!0,showBottomDivider:!0,className:w,children:[o&&p.jsx(We,{id:"tac-subtitle",size:16,children:o}),s,i]}),p.jsxs(fc,{showDivider:!0,align:"space-between",className:y,children:[p.jsx(qn,{label:a,checked:A,onChange:k=>S(k.target.checked)}),p.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[p.jsx(Bo,{variant:"secondary",onClick:n,children:d}),p.jsx(Bo,{variant:"primary",onClick:t,disabled:!A,children:c})]})]})]})},Xo=f.createContext(void 0),pc=({children:e})=>{const[t,n]=f.useState(!1),[r,o]=f.useState(!1);return p.jsx(Xo.Provider,{value:{isCollapsed:t,setIsCollapsed:n,isMobileOpen:r,setIsMobileOpen:o},children:e})},mc=()=>{const e=f.useContext(Xo);if(!e)throw new Error("useSidebar must be used within a SidebarProvider");return e},qo=(e=[],t=[])=>!t||t.length===0?!1:t.includes("all")?!0:t.some(n=>e.includes(n)),R0=T.button`
1072
1072
  width: 100%;
1073
1073
  display: flex;
1074
1074
  align-items: center;
@@ -1103,36 +1103,36 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1103
1103
  }
1104
1104
 
1105
1105
  ${({$collapsed:e})=>e?"justify-content: center;":""}
1106
- `,B0=k.span`
1106
+ `,z0=T.span`
1107
1107
  display: inline-flex;
1108
1108
  align-items: center;
1109
1109
  gap: 0.75rem;
1110
1110
  min-width: 0;
1111
- `,O0=k(En)`
1111
+ `,_0=T(We)`
1112
1112
  font-weight: ${({$level:e})=>e===0?600:500};
1113
1113
  color: var(--color-main-blue-primary);
1114
1114
  white-space: nowrap;
1115
1115
  overflow: hidden;
1116
1116
  text-overflow: ellipsis;
1117
- `,F0=k(ct.div)`
1117
+ `,H0=T(ze.div)`
1118
1118
  background-color: transparent;
1119
1119
  overflow: hidden;
1120
1120
  will-change: height, opacity, transform;
1121
- `,j0=k.div`
1121
+ `,U0=T.div`
1122
1122
  width: 100%;
1123
1123
  ${({$level:e})=>e>0?"border-top: 1px solid var(--color-light-200);":""}
1124
- `,R0=k.span`
1124
+ `,W0=T.span`
1125
1125
  width: 0.625rem;
1126
1126
  height: 0.125rem;
1127
1127
  background: var(--color-main-blue-primary);
1128
1128
  border-radius: 1px;
1129
1129
  flex: 0 0 auto;
1130
- `,z0=k.div`
1131
- ${on}
1130
+ `,K0=T.div`
1131
+ ${an}
1132
1132
  transform: rotate(${({$open:e})=>e?"90deg":"0deg"});
1133
1133
  pointer-events: none;
1134
1134
  transition: transform 0.3s ease-out;
1135
- `,pc=({item:e,userRoles:t,level:n=0,onNavigate:r,activePath:o})=>{const[i,s]=f.useState(!1),{isCollapsed:a}=fc(),l=f.useMemo(()=>(e.children||[]).filter(p=>Xo(t,p.permissions)),[e.children,t]);if(!f.useMemo(()=>Xo(t,e.permissions),[t,e.permissions]))return null;const u=l.length>0,c=!!(e.path&&o&&o.startsWith(e.path)),h=()=>{u?s(p=>!p):e.path&&r(e.path)};return m.jsxs(j0,{$level:n,children:[m.jsxs(L0,{onClick:h,$level:n,$collapsed:a,$active:c,$expanded:i&&u,title:a?e.label:"",children:[m.jsxs(B0,{children:[n>0&&!a&&m.jsx(R0,{}),e.icon&&m.jsx(G,{component:e.icon,size:n===0?"md":"sm",color:"var(--color-main-blue-primary)"}),!a&&m.jsx(O0,{$level:n,size:n===0?16:n===1?14:12,color:"var(--color-dark-700, #374151)",children:e.label})]}),!a&&u&&m.jsx(z0,{$disabled:a,$open:i,children:m.jsx(G,{component:Vg,size:"sm",color:"var(--color-main-blue-primary)"})})]}),m.jsx(On,{initial:!1,children:!a&&i&&u&&m.jsx(F0,{$level:n+1,...E0,children:l.map(p=>m.jsx(pc,{item:p,userRoles:t,level:n+1,onNavigate:r,activePath:o},p.id))})})]})},_0=k(ct.div)`
1135
+ `,gc=({item:e,userRoles:t,level:n=0,onNavigate:r,activePath:o})=>{const[s,i]=f.useState(!1),{isCollapsed:a}=mc(),c=f.useMemo(()=>(e.children||[]).filter(m=>qo(t,m.permissions)),[e.children,t]);if(!f.useMemo(()=>qo(t,e.permissions),[t,e.permissions]))return null;const u=c.length>0,l=!!(e.path&&o&&o.startsWith(e.path)),h=()=>{u?i(m=>!m):e.path&&r(e.path)};return p.jsxs(U0,{$level:n,children:[p.jsxs(R0,{onClick:h,$level:n,$collapsed:a,$active:l,$expanded:s&&u,title:a?e.label:"",children:[p.jsxs(z0,{children:[n>0&&!a&&p.jsx(W0,{}),e.icon&&p.jsx(Y,{component:e.icon,size:n===0?"md":"sm",color:"var(--color-main-blue-primary)"}),!a&&p.jsx(_0,{$level:n,size:n===0?16:n===1?14:12,color:"var(--color-dark-700, #374151)",children:e.label})]}),!a&&u&&p.jsx(K0,{$disabled:a,$open:s,children:p.jsx(Y,{component:Bg,size:"sm",color:"var(--color-main-blue-primary)"})})]}),p.jsx(qt,{initial:!1,children:!a&&s&&u&&p.jsx(H0,{$level:n+1,...cc,children:c.map(m=>p.jsx(gc,{item:m,userRoles:t,level:n+1,onNavigate:r,activePath:o},m.id))})})]})},Y0=T(ze.div)`
1136
1136
  position: fixed;
1137
1137
  inset: 0;
1138
1138
  background: rgba(0, 0, 0, 0.5);
@@ -1141,7 +1141,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1141
1141
  @media (max-width: 767px) {
1142
1142
  display: block;
1143
1143
  }
1144
- `,H0=k.aside`
1144
+ `,G0=T.aside`
1145
1145
  position: fixed;
1146
1146
  left: 0;
1147
1147
  top: 0;
@@ -1160,7 +1160,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1160
1160
  @media (min-width: 768px) {
1161
1161
  transform: translateX(0);
1162
1162
  }
1163
- `,U0=k.div`
1163
+ `,X0=T.div`
1164
1164
  display: flex;
1165
1165
  align-items: center;
1166
1166
  justify-content: space-between;
@@ -1168,11 +1168,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1168
1168
  padding: 1rem;
1169
1169
 
1170
1170
  ${({$collapsed:e})=>e?"flex-direction: column":""};
1171
- `,W0=k.div`
1171
+ `,q0=T.div`
1172
1172
  display: flex;
1173
1173
  align-items: center;
1174
1174
  gap: 0.5rem;
1175
- `,K0=k.nav`
1175
+ `,Z0=T.nav`
1176
1176
  display: flex;
1177
1177
  flex-direction: column;
1178
1178
  justify-content: flex-start;
@@ -1180,7 +1180,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1180
1180
  flex: 1;
1181
1181
  overflow-y: auto;
1182
1182
  padding: 0.25rem 0;
1183
- `,Y0=k.button`
1183
+ `,J0=T.button`
1184
1184
  display: flex;
1185
1185
  align-items: center;
1186
1186
  justify-content: center;
@@ -1206,7 +1206,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1206
1206
  @media (max-width: 767px) {
1207
1207
  display: none;
1208
1208
  }
1209
- `,G0=k.button`
1209
+ `,Q0=T.button`
1210
1210
  position: fixed;
1211
1211
  top: 0.5rem;
1212
1212
  left: 1rem;
@@ -1217,7 +1217,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1217
1217
  @media (min-width: 768px) {
1218
1218
  display: none;
1219
1219
  }
1220
- `,qo=({navigationConfig:e,userRoles:t=[],onNavigate:n=()=>{},activePath:r,logoImgExpanded:o,logoImgCollapsed:i})=>{const{isCollapsed:s,setIsCollapsed:a,isMobileOpen:l,setIsMobileOpen:d}=fc(),u=c=>{n(c),typeof window<"u"&&window.innerWidth<768&&d(!1)};return m.jsxs(m.Fragment,{children:[m.jsx(On,{children:l&&m.jsx(_0,{...ac,onClick:()=>d(!1)})}),m.jsxs(H0,{$collapsed:l?!1:s,$open:l,children:[m.jsxs(U0,{$collapsed:s,children:[m.jsx(W0,{children:s?i:o}),m.jsx(Y0,{onClick:()=>a(!s),"aria-label":"Toggle collapse",children:m.jsx(G,{component:ql,size:"md",color:"var(--color-main-blue-primary)"})})]}),m.jsx(K0,{children:e.map(c=>m.jsx(pc,{item:c,userRoles:t,onNavigate:u,activePath:r},c.id))})]}),m.jsx(G0,{onClick:()=>{d(!0),a(!1)},$hidden:l,children:m.jsx(G,{component:ql,size:30})})]})};qo.displayName="Sidebar";const X0={underlined:P`
1220
+ `,Zo=({navigationConfig:e,userRoles:t=[],onNavigate:n=()=>{},activePath:r,logoImgExpanded:o,logoImgCollapsed:s})=>{const{isCollapsed:i,setIsCollapsed:a,isMobileOpen:c,setIsMobileOpen:d}=mc(),u=l=>{n(l),typeof window<"u"&&window.innerWidth<768&&d(!1)};return p.jsxs(p.Fragment,{children:[p.jsx(qt,{children:c&&p.jsx(Y0,{...Go,onClick:()=>d(!1)})}),p.jsxs(G0,{$collapsed:c?!1:i,$open:c,children:[p.jsxs(X0,{$collapsed:i,children:[p.jsx(q0,{children:i?s:o}),p.jsx(J0,{onClick:()=>a(!i),"aria-label":"Toggle collapse",children:p.jsx(Y,{component:Zl,size:"md",color:"var(--color-main-blue-primary)"})})]}),p.jsx(Z0,{children:e.map(l=>p.jsx(gc,{item:l,userRoles:t,onNavigate:u,activePath:r},l.id))})]}),p.jsx(Q0,{onClick:()=>{d(!0),a(!1)},$hidden:c,children:p.jsx(Y,{component:Zl,size:30})})]})};Zo.displayName="Sidebar";const ey={underlined:P`
1221
1221
  color: var(--color-main-orange-primary);
1222
1222
  text-decoration-thickness: 1px;
1223
1223
  text-underline-offset: 2px;
@@ -1277,7 +1277,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1277
1277
  text-decoration-thickness: 1px;
1278
1278
  text-underline-offset: 2px;
1279
1279
  }
1280
- `},q0=P`
1280
+ `},ty=P`
1281
1281
  color: var(--color-dark-200);
1282
1282
  cursor: not-allowed;
1283
1283
  pointer-events: none;
@@ -1295,7 +1295,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1295
1295
  text-decoration: none;
1296
1296
  transform: none;
1297
1297
  }
1298
- `,Z0={sm:P`
1298
+ `,ny={sm:P`
1299
1299
  gap: 0.25rem;
1300
1300
  ${z[14]}
1301
1301
  `,md:P`
@@ -1304,7 +1304,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1304
1304
  `,lg:P`
1305
1305
  gap: 0.75rem;
1306
1306
  ${z[20]}
1307
- `},J0=k.a`
1307
+ `},ry=T.a`
1308
1308
  display: inline-flex;
1309
1309
  align-items: center;
1310
1310
  border-radius: 0.25rem;
@@ -1316,10 +1316,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1316
1316
 
1317
1317
  cursor: pointer;
1318
1318
 
1319
- ${({$size:e})=>Z0[e]}
1320
- ${({$variant:e})=>X0[e]}
1321
- ${({$disabled:e})=>e&&q0}
1322
- `,Q0=k.span`
1319
+ ${({$size:e})=>ny[e]}
1320
+ ${({$variant:e})=>ey[e]}
1321
+ ${({$disabled:e})=>e&&ty}
1322
+ `,oy=T.span`
1323
1323
  flex: 1 1 auto;
1324
1324
  min-width: 0;
1325
1325
  max-width: 18ch;
@@ -1328,7 +1328,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1328
1328
  text-overflow: ellipsis;
1329
1329
  white-space: nowrap;
1330
1330
  `}
1331
- `,mc=f.forwardRef(({id:e,size:t="md",variant:n="underlined",children:r,href:o,target:i,rel:s,className:a,disabled:l=!1,tabIndex:d,leftIcon:u,rightIcon:c,iconSize:h="tn",iconColor:p="currentColor",truncate:g=!1,"aria-label":v,"aria-describedby":w,onClick:y,...x},b)=>{const E=f.useCallback(S=>{if(l){S.preventDefault();return}y?.(S)},[l,y]),T={href:l?void 0:o,target:i||void 0,rel:s??(i==="_blank"?"noopener noreferrer":void 0),onClick:E,"aria-label":v??r,"aria-describedby":w,"aria-disabled":l,tabIndex:l?-1:d??0,...x};return m.jsxs(J0,{id:e,$variant:n,$size:t,$disabled:l,className:a,ref:b,...T,children:[u&&m.jsx(G,{component:u,size:h,color:p}),m.jsx(Q0,{$truncate:g,children:r}),m.jsx(G,{component:c||Lg,size:t==="lg"?"sm":h,color:p})]})});mc.displayName="Link";const gc={default:P`
1331
+ `,yc=f.forwardRef(({id:e,size:t="md",variant:n="underlined",children:r,href:o,target:s,rel:i,className:a,disabled:c=!1,tabIndex:d,leftIcon:u,rightIcon:l,iconSize:h="tn",iconColor:m="currentColor",truncate:g=!1,"aria-label":v,"aria-describedby":w,onClick:y,...x},b)=>{const A=f.useCallback(S=>{if(c){S.preventDefault();return}y?.(S)},[c,y]),C={href:c?void 0:o,target:s||void 0,rel:i??(s==="_blank"?"noopener noreferrer":void 0),onClick:A,"aria-label":v??r,"aria-describedby":w,"aria-disabled":c,tabIndex:c?-1:d??0,...x};return p.jsxs(ry,{id:e,$variant:n,$size:t,$disabled:c,className:a,ref:b,...C,children:[u&&p.jsx(Y,{component:u,size:h,color:m}),p.jsx(oy,{$truncate:g,children:r}),p.jsx(Y,{component:l||jg,size:t==="lg"?"sm":h,color:m})]})});yc.displayName="Link";const vc={default:P`
1332
1332
  thead tr:last-child th:first-child {
1333
1333
  border-top-left-radius: var(--border-radius-article);
1334
1334
  }
@@ -1369,11 +1369,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1369
1369
  tbody tr:last-child td:last-child {
1370
1370
  border-bottom-right-radius: var(--border-radius-article);
1371
1371
  }
1372
- `},yc=P`
1372
+ `},bc=P`
1373
1373
  tbody tr:hover td {
1374
1374
  background-color: var(--color-main-alternative-secondary);
1375
1375
  }
1376
- `,vc=P`
1376
+ `,wc=P`
1377
1377
  @media (max-width: 768px) {
1378
1378
  font-size: 0.875rem;
1379
1379
 
@@ -1382,13 +1382,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1382
1382
  padding: 0.5rem 0.75rem;
1383
1383
  }
1384
1384
  }
1385
- `,Zo=P`
1385
+ `,Jo=P`
1386
1386
  display: flex;
1387
1387
  align-items: center;
1388
1388
  gap: 0.5rem;
1389
1389
  width: 100%;
1390
1390
  overflow: hidden;
1391
- `,ht={sm:P`
1391
+ `,ft={sm:P`
1392
1392
  padding: 0.5rem 1rem;
1393
1393
  min-height: 2.25rem;
1394
1394
  `,md:P`
@@ -1397,22 +1397,22 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1397
1397
  `,lg:P`
1398
1398
  padding: 0.75rem 1.5rem;
1399
1399
  min-height: 2.75rem;
1400
- `},Jo=P`
1400
+ `},Qo=P`
1401
1401
  display: inline-flex;
1402
1402
  align-items: center;
1403
1403
  flex-shrink: 0;
1404
- `,ey={sm:P`
1405
- ${ht.sm}
1404
+ `,iy={sm:P`
1405
+ ${ft.sm}
1406
1406
  ${z[16]}
1407
1407
  `,md:P`
1408
- ${ht.md}
1408
+ ${ft.md}
1409
1409
  ${z[20]}
1410
1410
  `,lg:P`
1411
- ${ht.lg}
1411
+ ${ft.lg}
1412
1412
  ${z[24]}
1413
- `},ty=k.th`
1413
+ `},sy=T.th`
1414
1414
  background-color: var(--color-main-blue-primary);
1415
- ${({$size:e})=>ey[e]}
1415
+ ${({$size:e})=>iy[e]}
1416
1416
  transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
1417
1417
  min-width: 8rem;
1418
1418
  width: ${({$width:e})=>e?typeof e=="number"?`${e}px`:e:"fit-content"};
@@ -1424,10 +1424,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1424
1424
  ${({$active:e})=>e&&P`
1425
1425
  background-color: var(--color-blue-400);
1426
1426
  `}
1427
- `,ny=k.div`
1428
- ${Zo}
1427
+ `,ay=T.div`
1428
+ ${Jo}
1429
1429
  justify-content: ${({$align:e})=>e||"space-between"};
1430
- `,ry=k.button`
1430
+ `,ly=T.button`
1431
1431
  all: unset;
1432
1432
  display: inline-flex;
1433
1433
  align-items: center;
@@ -1446,11 +1446,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1446
1446
  outline-color: var(--color-main-white);
1447
1447
  outline-offset: 2px;
1448
1448
  }
1449
- `,oy=k.span`
1449
+ `,cy=T.span`
1450
1450
  transition: transform 0.3s ease-out;
1451
1451
  display: inline-flex;
1452
1452
  transform: ${({$dir:e})=>e==="asc"?"rotate(-180deg)":"none"};
1453
- `,bc=k.span`
1453
+ `,xc=T.span`
1454
1454
  display: inline-flex;
1455
1455
  align-items: center;
1456
1456
  gap: 0.5rem;
@@ -1459,28 +1459,28 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1459
1459
  text-overflow: ellipsis;
1460
1460
  white-space: nowrap;
1461
1461
  flex-shrink: 1;
1462
- `,sy=k(Pn)`
1462
+ `,dy=T(An)`
1463
1463
  overflow: hidden;
1464
1464
  text-overflow: ellipsis;
1465
1465
  white-space: nowrap;
1466
1466
  max-width: 100%;
1467
1467
  color: var(--color-main-white);
1468
- `,wc=k.span`
1469
- ${Jo}
1468
+ `,Sc=T.span`
1469
+ ${Qo}
1470
1470
  gap: 0.375rem;
1471
- `,Qo=({children:e,size:t="md",active:n=!1,sortDirection:r="none",leftIcon:o,rightIcon:i,iconSize:s="sm",iconColor:a="var(--color-main-white)",align:l="left",width:d,sortable:u,className:c,onSort:h,...p})=>{const g=r==="asc"?"desc":"asc",v=h?r==="none"?"none":r==="asc"?"ascending":"descending":void 0;return m.jsx(ty,{$size:t,$active:n,$width:d,className:c,scope:"col","aria-sort":v,...p,children:h||u?m.jsxs(ry,{onClick:()=>h?.(g),"aria-label":`Sort ${g}`,children:[m.jsxs(bc,{children:[o&&m.jsx(G,{component:o,size:s,color:a}),m.jsx(sy,{size:t==="sm"?16:t==="md"?20:24,children:e})]}),m.jsxs(wc,{children:[m.jsx(oy,{$dir:r,children:m.jsx(G,{component:$g,size:s,color:a})}),i&&m.jsx(G,{component:i,size:s,color:a})]})]}):m.jsxs(ny,{$align:l,children:[m.jsxs(bc,{children:[o&&m.jsx(G,{component:o,size:s,color:a}),m.jsx(Pn,{size:t==="sm"?16:t==="md"?20:24,color:"var(--color-main-white)",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},children:e})]}),m.jsx(wc,{children:i&&m.jsx(G,{component:i,size:s,color:a})})]})})};Qo.displayName="TableHeaderCell";const iy={sm:P`
1472
- ${ht.sm}
1471
+ `,ei=({children:e,size:t="md",active:n=!1,sortDirection:r="none",leftIcon:o,rightIcon:s,iconSize:i="sm",iconColor:a="var(--color-main-white)",align:c="left",width:d,sortable:u,className:l,onSort:h,...m})=>{const g=r==="asc"?"desc":"asc",v=h?r==="none"?"none":r==="asc"?"ascending":"descending":void 0;return p.jsx(sy,{$size:t,$active:n,$width:d,className:l,scope:"col","aria-sort":v,...m,children:h||u?p.jsxs(ly,{onClick:()=>h?.(g),"aria-label":`Sort ${g}`,children:[p.jsxs(xc,{children:[o&&p.jsx(Y,{component:o,size:i,color:a}),p.jsx(dy,{size:t==="sm"?16:t==="md"?20:24,children:e})]}),p.jsxs(Sc,{children:[p.jsx(cy,{$dir:r,children:p.jsx(Y,{component:Ng,size:i,color:a})}),s&&p.jsx(Y,{component:s,size:i,color:a})]})]}):p.jsxs(ay,{$align:c,children:[p.jsxs(xc,{children:[o&&p.jsx(Y,{component:o,size:i,color:a}),p.jsx(An,{size:t==="sm"?16:t==="md"?20:24,color:"var(--color-main-white)",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},children:e})]}),p.jsx(Sc,{children:s&&p.jsx(Y,{component:s,size:i,color:a})})]})})};ei.displayName="TableHeaderCell";const uy={sm:P`
1472
+ ${ft.sm}
1473
1473
  ${z[14]}
1474
1474
  `,md:P`
1475
- ${ht.md}
1475
+ ${ft.md}
1476
1476
  ${z[14]}
1477
1477
  `,lg:P`
1478
- ${ht.lg}
1478
+ ${ft.lg}
1479
1479
  ${z[16]}
1480
- `},ay=k.td`
1480
+ `},hy=T.td`
1481
1481
  vertical-align: middle;
1482
1482
  color: var(--color-main-blue-primary);
1483
- ${({$size:e})=>iy[e]}
1483
+ ${({$size:e})=>uy[e]}
1484
1484
  text-align: ${({$align:e,$variant:t})=>e||(t==="numeric"?"right":"left")};
1485
1485
  border-left: 1px solid var(--color-main-light-borders);
1486
1486
  border-top: 1px solid var(--color-main-light-borders);
@@ -1498,15 +1498,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1498
1498
  font-variant-numeric: tabular-nums;
1499
1499
  font-family: ui-monospace, monospace;
1500
1500
  `}
1501
- `,ly=k.div`
1502
- ${Zo}
1501
+ `,fy=T.div`
1502
+ ${Jo}
1503
1503
  justify-content: ${({$align:e})=>e==="center"?"center":e==="right"?"flex-end":"flex-start"};
1504
- `,cy=k(En)`
1504
+ `,py=T(We)`
1505
1505
  flex: 1;
1506
1506
  min-width: 0;
1507
- `,xc=k.span`
1508
- ${Jo}
1509
- `,es=({children:e,size:t="md",align:n,width:r,truncate:o=!1,variant:i="default",className:s,leftIcon:a,rightIcon:l,iconSize:d="sm",iconColor:u="var(--color-main-blue-primary)",...c})=>{const h=a||l;return m.jsx(ay,{$size:t,$align:n,$width:r,$truncate:o,$variant:i,className:s,...c,children:h?m.jsxs(ly,{$align:n,children:[a&&m.jsx(xc,{children:m.jsx(G,{component:a,size:d,color:u})}),m.jsx(cy,{children:e}),l&&m.jsx(xc,{children:m.jsx(G,{component:l,size:d,color:u})})]}):e})};es.displayName="TableCell";const dy=k.table`
1507
+ `,Tc=T.span`
1508
+ ${Qo}
1509
+ `,ti=({children:e,size:t="md",align:n,width:r,truncate:o=!1,variant:s="default",className:i,leftIcon:a,rightIcon:c,iconSize:d="sm",iconColor:u="var(--color-main-blue-primary)",...l})=>{const h=a||c;return p.jsx(hy,{$size:t,$align:n,$width:r,$truncate:o,$variant:s,className:i,...l,children:h?p.jsxs(fy,{$align:n,children:[a&&p.jsx(Tc,{children:p.jsx(Y,{component:a,size:d,color:u})}),p.jsx(py,{children:e}),c&&p.jsx(Tc,{children:p.jsx(Y,{component:c,size:d,color:u})})]}):e})};ti.displayName="TableCell";const my=T.table`
1510
1510
  width: 100%;
1511
1511
  table-layout: auto;
1512
1512
  border-collapse: separate;
@@ -1515,16 +1515,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1515
1515
  border-radius: var(--border-radius-article);
1516
1516
  border: 1px solid var(--color-main-light-borders);
1517
1517
 
1518
- ${({$variant:e})=>gc[e]}
1519
- ${vc}
1520
- ${yc}
1521
- `,uy=k.thead`
1518
+ ${({$variant:e})=>vc[e]}
1519
+ ${wc}
1520
+ ${bc}
1521
+ `,gy=T.thead`
1522
1522
  ${({$sticky:e})=>e&&P`
1523
1523
  position: sticky;
1524
1524
  top: 0;
1525
1525
  z-index: 10;
1526
1526
  `}
1527
- `,hy=k.div`
1527
+ `,yy=T.div`
1528
1528
  max-height: 37.5rem;
1529
1529
  overflow: auto;
1530
1530
  position: relative;
@@ -1539,7 +1539,86 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1539
1539
  pointer-events: none;
1540
1540
  z-index: 3;
1541
1541
  }
1542
- `,Sc=({columns:e,rows:t,size:n="md",variant:r="default",tableWrapperClassName:o,tableClassName:i,stickyHeader:s=!1,onSortChange:a})=>{const l=(d,u)=>c=>{d.onSort?.(c),a?.({columnId:d.id??String(u),direction:c})};return m.jsx(hy,{className:o,children:m.jsxs(dy,{$variant:r,className:i,children:[m.jsx(uy,{$sticky:s,children:m.jsx("tr",{children:e.map((d,u)=>m.jsx(Qo,{size:n,leftIcon:d.leftIcon,rightIcon:d.rightIcon,iconSize:d.iconSize,iconColor:d.iconColor,sortDirection:d.sortDirection,onSort:d.onSort??(a?l(d,u):void 0),width:d.width,align:d.align,sortable:d.sortable||!!d.onSort||!!a,className:d.className,children:d.header},d.id||`col-${u}`))})}),m.jsx("tbody",{children:t.map((d,u)=>{const c=d.cells;return!c||!Array.isArray(c)?null:m.jsx("tr",{children:c.map((h,p)=>{const g=e[p];return m.jsx(es,{size:h.size||d.size||n,align:h.align||d.align||g?.align,width:h.width||d.width||g?.width,truncate:h.truncate||d.truncate,variant:h.variant||d.variant,className:h.className||d.className||g?.className,leftIcon:h.leftIcon,rightIcon:h.rightIcon,iconSize:h.iconSize,iconColor:h.iconColor,children:h.content},`${d.id||u}-${p}`)})},d.id||u)})})]})})};Sc.displayName="Table";const fy=k.header`
1542
+ `,Cc=({columns:e,rows:t,size:n="md",variant:r="default",tableWrapperClassName:o,tableClassName:s,stickyHeader:i=!1,onSortChange:a})=>{const c=(d,u)=>l=>{d.onSort?.(l),a?.({columnId:d.id??String(u),direction:l})};return p.jsx(yy,{className:o,children:p.jsxs(my,{$variant:r,className:s,children:[p.jsx(gy,{$sticky:i,children:p.jsx("tr",{children:e.map((d,u)=>p.jsx(ei,{size:n,leftIcon:d.leftIcon,rightIcon:d.rightIcon,iconSize:d.iconSize,iconColor:d.iconColor,sortDirection:d.sortDirection,onSort:d.onSort??(a?c(d,u):void 0),width:d.width,align:d.align,sortable:d.sortable||!!d.onSort||!!a,className:d.className,children:d.header},d.id||`col-${u}`))})}),p.jsx("tbody",{children:t.map((d,u)=>{const l=d.cells;return!l||!Array.isArray(l)?null:p.jsx("tr",{children:l.map((h,m)=>{const g=e[m];return p.jsx(ti,{size:h.size||d.size||n,align:h.align||d.align||g?.align,width:h.width||d.width||g?.width,truncate:h.truncate||d.truncate,variant:h.variant||d.variant,className:h.className||d.className||g?.className,leftIcon:h.leftIcon,rightIcon:h.rightIcon,iconSize:h.iconSize,iconColor:h.iconColor,children:h.content},`${d.id||u}-${m}`)})},d.id||u)})})]})})};Cc.displayName="Table";const vy=T.div`
1543
+ position: relative;
1544
+ display: flex;
1545
+ align-items: center;
1546
+ gap: 0.75rem;
1547
+ padding: 0.5rem;
1548
+ border-radius: var(--border-radius-outline);
1549
+ cursor: pointer;
1550
+ transition: background-color 0.3s ease-out;
1551
+
1552
+ &:hover {
1553
+ background-color: var(--color-main-light-background);
1554
+ }
1555
+
1556
+ &:focus-visible {
1557
+ outline: 2px solid var(--color-main-blue-primary);
1558
+ outline-offset: 2px;
1559
+ }
1560
+ `,by=T.div`
1561
+ width: 2rem;
1562
+ height: 2rem;
1563
+ border-radius: 50%;
1564
+ background-color: var(--color-main-blue-primary);
1565
+ display: flex;
1566
+ align-items: center;
1567
+ justify-content: center;
1568
+ `,wy=T.div`
1569
+ display: flex;
1570
+ flex-direction: column;
1571
+ align-items: flex-start;
1572
+
1573
+ @media (max-width: 640px) {
1574
+ display: none;
1575
+ }
1576
+ `,xy=T(ze.div)`
1577
+ display: flex;
1578
+ align-items: center;
1579
+ justify-content: center;
1580
+ margin-left: 0.25rem;
1581
+
1582
+ @media (max-width: 640px) {
1583
+ display: none;
1584
+ }
1585
+ `,Sy=T(ze.div)`
1586
+ position: absolute;
1587
+ top: 100%;
1588
+ right: 0;
1589
+ margin-top: 0.5rem;
1590
+ min-width: 12rem;
1591
+ background: var(--color-main-white);
1592
+ border: 1px solid var(--color-main-light-borders);
1593
+ border-radius: var(--border-radius-article);
1594
+ box-shadow: var(--shadow-black-card);
1595
+ z-index: 100;
1596
+ overflow: hidden;
1597
+ `,Ty=T.button`
1598
+ width: 100%;
1599
+ display: flex;
1600
+ align-items: center;
1601
+ gap: 0.75rem;
1602
+ padding: 0.75rem 1rem;
1603
+ border: none;
1604
+ background: transparent;
1605
+ cursor: pointer;
1606
+ transition: background-color 0.3s ease-out;
1607
+ border-radius: var(--border-radius-article);
1608
+
1609
+ &:hover {
1610
+ background-color: var(--color-light-200);
1611
+ }
1612
+
1613
+ &:focus-visible {
1614
+ outline: 2px solid var(--color-main-blue-primary);
1615
+ outline-offset: -2px;
1616
+ }
1617
+
1618
+ &.danger {
1619
+ color: var(--color-main-waringn-state);
1620
+ }
1621
+ `,kc=({user:e,onProfileClick:t,onLogout:n,menuItems:r=[]})=>{const[o,s]=f.useState(!1),i=f.useRef(null);f.useEffect(()=>{if(!o)return;const u=l=>{i.current&&!i.current.contains(l.target)&&s(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[o]),f.useEffect(()=>{if(!o)return;const u=l=>{l.key==="Escape"&&s(!1)};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[o]);const a=u=>u.split(" ").map(l=>l[0]).join("").toUpperCase().slice(0,2),d=[...[{id:"profile",label:"Profile",icon:Wg,onClick:()=>{s(!1),t?.()},variant:"default"},{id:"logout",label:"Logout",icon:_g,onClick:()=>{s(!1),n?.()},variant:"danger"}],...r];return p.jsxs("div",{ref:i,children:[p.jsxs(vy,{onClick:()=>s(!o),role:"button",tabIndex:0,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),s(!o))},children:[p.jsx(by,{children:e.avatarUrl?p.jsx("img",{src:e.avatarUrl,alt:e.name}):p.jsx(We,{size:14,color:"var(--color-main-white)",className:"!font-semibold",children:a(e.name)})}),p.jsxs(wy,{children:[p.jsx(We,{size:14,className:"!font-semibold",children:e.name}),p.jsx(We,{size:12,children:e.role})]}),p.jsx(xy,{animate:{rotate:o?-180:0},transition:{duration:.3},children:p.jsx(Y,{component:Lg,size:"sm",color:"var(--color-main-blue-primary)"})})]}),p.jsx(qt,{children:o&&p.jsx(Sy,{initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.15},children:d.map(u=>p.jsx(f.Fragment,{children:p.jsxs(Ty,{onClick:u.onClick,className:u.variant==="danger"?"danger":"",children:[p.jsx(Y,{component:u.icon,size:"sm",color:u.variant==="danger"?"var(--color-main-warning-state)":"var(--color-main-blue-primary)"}),p.jsx(We,{size:14,color:`${u.variant==="danger"&&"var(--color-main-warning-state)"}`,children:u.label})]})},u.id))})})]})};kc.displayName="UserProfile";const Cy=T.header`
1543
1622
  position: fixed;
1544
1623
  top: 0;
1545
1624
  left: 0;
@@ -1554,19 +1633,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1554
1633
  justify-content: space-between;
1555
1634
  padding: 0 1rem;
1556
1635
  transition: padding-left 0.3s ease-out;
1557
-
1558
- @media (min-width: 768px) {
1559
- padding-left: ${({$sidebarCollapsed:e})=>e?"6rem":"17rem"};
1560
- }
1561
- `,py=k.div`
1636
+ margin-left: 5rem;
1637
+ `,ky=T.div`
1562
1638
  display: flex;
1563
1639
  align-items: center;
1564
1640
  gap: 1rem;
1565
- `,my=k.div`
1641
+ `,Py=T.div`
1566
1642
  display: flex;
1567
1643
  align-items: center;
1568
1644
  gap: 1rem;
1569
- `,gy=k.button`
1645
+ `,Ey=T.button`
1570
1646
  position: relative;
1571
1647
  display: flex;
1572
1648
  align-items: center;
@@ -1590,7 +1666,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1590
1666
  &:active {
1591
1667
  transform: scale(0.92);
1592
1668
  }
1593
- `,yy=k.span`
1669
+ `,Ay=T.span`
1594
1670
  position: absolute;
1595
1671
  top: 0.35rem;
1596
1672
  right: 0.35rem;
@@ -1606,57 +1682,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1606
1682
  display: flex;
1607
1683
  align-items: center;
1608
1684
  justify-content: center;
1609
- `,vy=k.div`
1610
- display: flex;
1611
- align-items: center;
1612
- gap: 0.75rem;
1613
- padding: 0.5rem;
1614
- border-radius: var(--border-radius-outline);
1615
- cursor: pointer;
1616
- transition: background-color 0.3s ease-out;
1617
-
1618
- &:hover {
1619
- background-color: var(--color-main-light-background);
1620
- }
1621
-
1622
- &:focus-visible {
1623
- outline: 2px solid var(--color-main-blue-primary);
1624
- outline-offset: 2px;
1625
- }
1626
- `,by=k.div`
1627
- width: 2rem;
1628
- height: 2rem;
1629
- border-radius: 50%;
1630
- background-color: var(--color-main-blue-primary);
1631
- display: flex;
1632
- align-items: center;
1633
- justify-content: center;
1634
- color: var(--color-main-white);
1635
- font-weight: 600;
1636
- font-size: 0.875rem;
1637
- `,wy=k.div`
1638
- display: flex;
1639
- flex-direction: column;
1640
- align-items: flex-start;
1641
-
1642
- @media (max-width: 640px) {
1643
- display: none;
1644
- }
1645
- `,xy=k.span`
1646
- font-weight: 600;
1647
- font-size: 0.875rem;
1648
- color: var(--color-main-dark-text);
1649
- line-height: 1.2;
1650
- `,Sy=k.span`
1651
- font-size: 0.75rem;
1652
- color: var(--color-main-gray-text);
1653
- line-height: 1.2;
1654
- `,ts=({sidebarCollapsed:e=!1,user:t,hasNotifications:n=!1,notificationCount:r,onNotificationClick:o,onUserProfileClick:i,children:s})=>{const a=h=>h.split(" ").map(p=>p[0]).join("").toUpperCase().slice(0,2),l=(r??0)>0||n,d=r&&r>0?r:void 0,u=d?`${d} notification${d===1?"":"s"}`:l?"New notifications":"No notifications",c=`Notifications: ${u}`;return m.jsxs(fy,{$sidebarCollapsed:e,children:[m.jsx(py,{children:s}),m.jsxs(my,{children:[m.jsxs(gy,{onClick:o,"aria-label":c,title:u,"data-has":l||void 0,children:[m.jsx(G,{component:l?Fg:jg,size:"md",color:"var(--color-main-blue-primary)"}),l&&m.jsx(yy,{$withCount:!!d,"aria-hidden":!!d,children:d&&(d>99?"99+":d)})]}),t&&m.jsxs(vy,{onClick:i,role:"button",tabIndex:0,onKeyDown:h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),i?.())},children:[m.jsx(by,{children:t.avatarUrl?m.jsx("img",{src:t.avatarUrl,alt:t.name,style:{width:"100%",height:"100%",borderRadius:"50%"}}):a(t.name)}),m.jsxs(wy,{children:[m.jsx(xy,{children:t.name}),m.jsx(Sy,{children:t.role})]})]})]})]})};ts.displayName="Header";const Ty=k.div`
1685
+ `,ni=({user:e,hasNotifications:t=!1,notificationCount:n,onNotificationClick:r,onUserProfileClick:o,onLogout:s,userMenuItems:i,children:a})=>{const c=(n??0)>0||t,d=n&&n>0?n:void 0,u=d?`${d} notification${d===1?"":"s"}`:c?"New notifications":"No notifications",l=`Notifications: ${u}`;return p.jsxs(Cy,{children:[p.jsx(ky,{children:a}),p.jsxs(Py,{children:[p.jsxs(Ey,{onClick:r,"aria-label":l,title:u,"data-has":c||void 0,children:[p.jsx(Y,{component:c?Hg:Ug,size:"md",color:"var(--color-main-blue-primary)"}),c&&p.jsx(Ay,{$withCount:!!d,"aria-hidden":!!d,children:d&&(d>99?"99+":d)})]}),e&&p.jsx(kc,{user:e,onProfileClick:o,onLogout:s,menuItems:i})]})]})};ni.displayName="Header";const Dy=T.div`
1655
1686
  display: flex;
1656
1687
  flex-direction: column;
1657
1688
  height: 100vh;
1658
1689
  overflow: hidden;
1659
- `,Cy=k.main`
1690
+ `,My=T.main`
1660
1691
  flex: 1;
1661
1692
  margin-top: 4rem;
1662
1693
  /* Mobile-first: no lateral offset so content occupies full width */
@@ -1672,4 +1703,4 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
1672
1703
  @media (min-width: 1200px) {
1673
1704
  margin-left: 5rem;
1674
1705
  }
1675
- `,ky=({children:e,navigationConfig:t,userRoles:n=[],activePath:r,user:o,hasNotifications:i=!1,onNavigate:s,onNotificationClick:a,onUserProfileClick:l,contentClassName:d,logoImgCollapsed:u,logoImgExpanded:c})=>m.jsxs(Ty,{children:[m.jsx(qo,{navigationConfig:t,userRoles:n,onNavigate:s,activePath:r,logoImgCollapsed:u,logoImgExpanded:c}),m.jsx(ts,{user:o,hasNotifications:i,onNotificationClick:a,onUserProfileClick:l}),m.jsx(Cy,{className:d,children:e})]}),Py=e=>m.jsx(hc,{children:m.jsx(ky,{...e})});A.ALLOWED_INPUT_TYPES=Yl,A.BaseInput=jo,A.Button=Bo,A.ButtonSpinner=Ul,A.Card=pg,A.CardBody=vg,A.CardFooter=wg,A.CardHeader=gg,A.Checkbox=qn,A.CheckboxInput=_o,A.CheckboxLabel=tc,A.Dialog=lc,A.DialogBody=dc,A.DialogFooter=uc,A.DialogHeader=cc,A.ErrorMessage=Fo,A.FormField=k0,A.FullScreenSpinner=Em,A.Header=ts,A.HeadingBold=Pn,A.HeadingRegular=Rd,A.Icon=G,A.IconWrapperStyles=on,A.Label=Gn,A.Layout=Py,A.Link=mc,A.PasswordInput=Jl,A.PinInput=Ho,A.PinInputGroup=Uo,A.RadioInput=Yo,A.RadioInputDot=Wo,A.RadioInputLabel=Ko,A.SearchInput=ec,A.SectionSpinner=Dm,A.SelectInput=Ro,A.Sidebar=qo,A.SidebarContext=Go,A.SidebarProvider=hc,A.Spinner=Kn,A.Table=Sc,A.TableCell=es,A.TableHeaderCell=Qo,A.TermsAndConditions=N0,A.Text=En,A.TextAreaInput=zo,A.ToastProvider=lg,A.baseContentTableStyles=Zo,A.baseFieldStyles=dt,A.baseInputStyles=Xn,A.baseTableCellsSizes=ht,A.bodyTextStyles=z,A.createFieldConfig=Eg,A.createInputRefs=sc,A.disabledStyles=Xe,A.errorStyles=ut,A.flushedStyles=Xl,A.getPropsForInputType=Ag,A.handleDigitChange=nc,A.handleKeyDown=rc,A.handlePaste=oc,A.hasPermission=Xo,A.headingBoldStyles=yr,A.headingRegularStyles=Gs,A.isAllowedInputType=Gl,A.normalizeFieldTypes=Ge,A.normalizeSelectOptions=Pg,A.sizeStyles=rn,A.tableHoverMixin=yc,A.tableIconContainerStyles=Jo,A.tableResponsiveMixin=vc,A.tableVariants=gc,A.toast=qm,A.validateCode=g0,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})}));
1706
+ `,Vy=({children:e,navigationConfig:t,userRoles:n=[],activePath:r,user:o,hasNotifications:s=!1,notificationCount:i,onNavigate:a,onNotificationClick:c,onUserProfileClick:d,onLogout:u,userMenuItems:l=[],contentClassName:h,logoImgCollapsed:m,logoImgExpanded:g})=>p.jsxs(Dy,{children:[p.jsx(Zo,{navigationConfig:t,userRoles:n,onNavigate:a,activePath:r,logoImgCollapsed:m,logoImgExpanded:g}),p.jsx(ni,{user:o,hasNotifications:s,notificationCount:i,onNotificationClick:c,onUserProfileClick:d,onLogout:u,userMenuItems:l}),p.jsx(My,{className:h,children:e})]}),$y=e=>p.jsx(pc,{children:p.jsx(Vy,{...e})});function Iy(e,t,n=1){const r=new Date(Date.now()+n*864e5).toUTCString();document.cookie=`${e}=${encodeURIComponent(t)}; expires=${r}; path=/; SameSite=Strict; Secure`}function Ny(e){return document.cookie.split("; ").reduce((t,n)=>{const r=n.split("=");return r[0]===e?decodeURIComponent(r[1]):t},"")}function Ly(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}E.ALLOWED_INPUT_TYPES=Gl,E.BaseInput=jo,E.Button=Bo,E.ButtonSpinner=Wl,E.Card=yg,E.CardBody=xg,E.CardFooter=Tg,E.CardHeader=bg,E.Checkbox=qn,E.CheckboxInput=_o,E.CheckboxLabel=nc,E.Dialog=dc,E.DialogBody=hc,E.DialogFooter=fc,E.DialogHeader=uc,E.ErrorMessage=Fo,E.FormField=V0,E.FullScreenSpinner=Mm,E.Header=ni,E.HeadingBold=An,E.HeadingRegular=Hd,E.Icon=Y,E.IconWrapperStyles=an,E.Label=Gn,E.Layout=$y,E.Link=yc,E.PasswordInput=Ql,E.PinInput=Ho,E.PinInputGroup=Uo,E.RadioInput=Yo,E.RadioInputDot=Wo,E.RadioInputLabel=Ko,E.SearchInput=tc,E.SectionSpinner=$m,E.SelectInput=Ro,E.Sidebar=Zo,E.SidebarContext=Xo,E.SidebarProvider=pc,E.Spinner=Kn,E.Table=Cc,E.TableCell=ti,E.TableHeaderCell=ei,E.TermsAndConditions=j0,E.Text=We,E.TextAreaInput=zo,E.ToastProvider=ug,E.baseContentTableStyles=Jo,E.baseFieldStyles=ut,E.baseInputStyles=Xn,E.baseTableCellsSizes=ft,E.bodyTextStyles=z,E.createFieldConfig=Mg,E.createInputRefs=sc,E.deleteCookie=Ly,E.disabledStyles=Ze,E.errorStyles=ht,E.flushedStyles=ql,E.getCookie=Ny,E.getPropsForInputType=Vg,E.handleDigitChange=rc,E.handleKeyDown=oc,E.handlePaste=ic,E.hasPermission=qo,E.headingBoldStyles=yr,E.headingRegularStyles=Xi,E.isAllowedInputType=Xl,E.normalizeFieldTypes=qe,E.normalizeSelectOptions=Dg,E.overlayAnimation=Go,E.setCookie=Iy,E.sizeStyles=sn,E.slideAnimation=$0,E.smartAnimation=lc,E.submenuAnimationTopDown=cc,E.tableHoverMixin=bc,E.tableIconContainerStyles=Qo,E.tableResponsiveMixin=wc,E.tableVariants=vc,E.toast=Qm,E.validateCode=S0,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})}));