tcce-design-system-test 0.3.28 → 0.3.30

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,4 +1,4 @@
1
- (function(T,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):(T=typeof globalThis<"u"?globalThis:T||self,f(T["tcce-design-system-components"]={},T.React,T["react/jsx-runtime"],T.ReactDOM,T.Formik))})(this,(function(T,f,p,li,qc){"use strict";function Jc(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=Jc(f);var ge=function(){return ge=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},ge.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 Qc(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ed=/^((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)-.*))$/,td=Qc(function(e){return ed.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Z="-ms-",zt="-moz-",Y="-webkit-",ci="comm",dn="rule",nr="decl",nd="@import",di="@keyframes",rd="@layer",ui=Math.abs,rr=String.fromCharCode,or=Object.assign;function od(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 hi(e){return e.trim()}function Fe(e,t){return(e=t.exec(e))?e[0]:e}function j(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 Le(e){return e.length}function fi(e){return e.length}function Rt(e,t){return t.push(e),e}function id(e,t){return e.map(t).join("")}function pi(e,t){return e.filter(function(n){return!Fe(n,t)})}var hn=1,yt=1,mi=0,Se=0,ne=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 We(e,t){return or(fn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function bt(e){for(;e.root;)e=We(e.root,{children:[e]});Rt(e,e.siblings)}function sd(){return ne}function ad(){return ne=Se>0?se(vt,--Se):0,yt--,ne===10&&(yt=1,hn--),ne}function Ae(){return ne=Se<mi?se(vt,Se++):0,yt++,ne===10&&(yt=1,hn++),ne}function et(){return se(vt,Se)}function pn(){return Se}function mn(e,t){return gt(vt,e,t)}function ir(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 ld(e){return hn=yt=1,mi=Le(vt=e),Se=0,[]}function cd(e){return vt="",e}function sr(e){return hi(mn(Se-1,ar(e===91?e+2:e===40?e+1:e)))}function dd(e){for(;(ne=et())&&ne<33;)Ae();return ir(e)>2||ir(ne)>3?"":" "}function ud(e,t){for(;--t&&Ae()&&!(ne<48||ne>102||ne>57&&ne<65||ne>70&&ne<97););return mn(e,pn()+(t<6&&et()==32&&Ae()==32))}function ar(e){for(;Ae();)switch(ne){case e:return Se;case 34:case 39:e!==34&&e!==39&&ar(ne);break;case 40:e===41&&ar(e);break;case 92:Ae();break}return Se}function hd(e,t){for(;Ae()&&e+ne!==57;)if(e+ne===84&&et()===47)break;return"/*"+mn(t,Se-1)+"*"+rr(e===47?e:Ae())}function fd(e){for(;!ir(et());)Ae();return mn(e,Se)}function pd(e){return cd(gn("",null,null,null,[""],e=ld(e),0,[0],e))}function gn(e,t,n,r,o,s,i,a,l){for(var d=0,u=0,c=i,h=0,m=0,g=0,v=1,w=1,y=1,S=0,x="",A=o,P=s,k=r,E=x;w;)switch(g=S,S=Ae()){case 40:if(g!=108&&se(E,c-1)==58){un(E+=j(sr(S),"&","&\f"),"&\f",ui(d?a[d-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:E+=sr(S);break;case 9:case 10:case 13:case 32:E+=dd(g);break;case 92:E+=ud(pn()-1,7);continue;case 47:switch(et()){case 42:case 47:Rt(md(hd(Ae(),pn()),t,n,l),l);break;default:E+="/"}break;case 123*v:a[d++]=Le(E)*y;case 125*v:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+u:y==-1&&(E=j(E,/\f/g,"")),m>0&&Le(E)-c&&Rt(m>32?yi(E+";",r,n,c-1,l):yi(j(E," ","")+";",r,n,c-2,l),l);break;case 59:E+=";";default:if(Rt(k=gi(E,t,n,d,u,o,a,x,A=[],P=[],c,s),s),S===123)if(u===0)gn(E,t,k,k,A,s,c,a,P);else switch(h===99&&se(E,3)===110?100:h){case 100:case 108:case 109:case 115:gn(e,k,k,r&&Rt(gi(e,k,k,0,0,o,a,x,o,A=[],c,P),P),o,P,c,a,r?A:P);break;default:gn(E,k,k,k,[""],P,0,a,P)}}d=u=m=0,v=y=1,x=E="",c=i;break;case 58:c=1+Le(E),m=g;default:if(v<1){if(S==123)--v;else if(S==125&&v++==0&&ad()==125)continue}switch(E+=rr(S),S*v){case 38:y=u>0?1:(E+="\f",-1);break;case 44:a[d++]=(Le(E)-1)*y,y=1;break;case 64:et()===45&&(E+=sr(Ae())),h=et(),u=c=Le(x=E+=fd(pn())),S++;break;case 45:g===45&&Le(E)==2&&(v=0)}}return s}function gi(e,t,n,r,o,s,i,a,l,d,u,c){for(var h=o-1,m=o===0?s:[""],g=fi(m),v=0,w=0,y=0;v<r;++v)for(var S=0,x=gt(e,h+1,h=ui(w=i[v])),A=e;S<g;++S)(A=hi(w>0?m[S]+" "+x:j(x,/&\f/g,m[S])))&&(l[y++]=A);return fn(e,t,n,o===0?dn:a,l,d,u,c)}function md(e,t,n,r){return fn(e,t,n,ci,rr(sd()),gt(e,2,-2),0,r)}function yi(e,t,n,r,o){return fn(e,t,n,nr,gt(e,0,r),gt(e,r+1,-1),r,o)}function vi(e,t,n){switch(od(e,t)){case 5103:return Y+"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 Y+e+e;case 4789:return zt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+zt+e+Z+e+e;case 5936:switch(se(e,t+11)){case 114:return Y+e+Z+j(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+Z+j(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+Z+j(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Y+e+Z+e+e;case 6165:return Y+e+Z+"flex-"+e+e;case 5187:return Y+e+j(e,/(\w+).+(:[^]+)/,Y+"box-$1$2"+Z+"flex-$1$2")+e;case 5443:return Y+e+Z+"flex-item-"+j(e,/flex-|-self/g,"")+(Fe(e,/flex-|baseline/)?"":Z+"grid-row-"+j(e,/flex-|-self/g,""))+e;case 4675:return Y+e+Z+"flex-line-pack"+j(e,/align-content|flex-|-self/g,"")+e;case 5548:return Y+e+Z+j(e,"shrink","negative")+e;case 5292:return Y+e+Z+j(e,"basis","preferred-size")+e;case 6060:return Y+"box-"+j(e,"-grow","")+Y+e+Z+j(e,"grow","positive")+e;case 4554:return Y+j(e,/([^-])(transform)/g,"$1"+Y+"$2")+e;case 6187:return j(j(j(e,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),e,"")+e;case 5495:case 3959:return j(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return j(j(e,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+Z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Y+e+e;case 4200:if(!Fe(e,/flex-|baseline/))return Z+"grid-column-align"+gt(e,t)+e;break;case 2592:case 3360:return Z+j(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Fe(r.props,/grid-\w+-end/)})?~un(e+(n=n[t].value),"span",0)?e:Z+j(e,"-start","")+e+Z+"grid-row-span:"+(~un(n,"span",0)?Fe(n,/\d+/):+Fe(n,/\d+/)-+Fe(e,/\d+/))+";":Z+j(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Fe(r.props,/grid-\w+-start/)})?e:Z+j(j(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return j(e,/(.+)-inline(.+)/,Y+"$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(Le(e)-1-t>6)switch(se(e,t+1)){case 109:if(se(e,t+4)!==45)break;case 102:return j(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+zt+(se(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~un(e,"stretch",0)?vi(j(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return j(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,i,a,l,d){return Z+o+":"+s+d+(i?Z+o+"-span:"+(a?l:+l-+s)+d:"")+e});case 4949:if(se(e,t+6)===121)return j(e,":",":"+Y)+e;break;case 6444:switch(se(e,se(e,14)===45?18:11)){case 120:return j(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Y+(se(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+Z+"$2box$3")+e;case 100:return j(e,":",":"+Z)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return j(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 gd(e,t,n,r){switch(e.type){case rd:if(e.children.length)break;case nd:case nr:return e.return=e.return||e.value;case ci:return"";case di:return e.return=e.value+"{"+yn(e.children,r)+"}";case dn:if(!Le(e.value=e.props.join(",")))return""}return Le(n=yn(e.children,r))?e.return=e.value+"{"+n+"}":""}function yd(e){var t=fi(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 vd(e){return function(t){t.root||(t=t.return)&&e(t)}}function bd(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case nr:e.return=vi(e.value,e.length,n);return;case di:return yn([We(e,{value:j(e.value,"@","@"+Y)})],r);case dn:if(e.length)return id(n=e.props,function(o){switch(Fe(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":bt(We(e,{props:[j(o,/:(read-\w+)/,":"+zt+"$1")]})),bt(We(e,{props:[o]})),or(e,{props:pi(n,r)});break;case"::placeholder":bt(We(e,{props:[j(o,/:(plac\w+)/,":"+Y+"input-$1")]})),bt(We(e,{props:[j(o,/:(plac\w+)/,":"+zt+"$1")]})),bt(We(e,{props:[j(o,/:(plac\w+)/,Z+"input-$1")]})),bt(We(e,{props:[o]})),or(e,{props:pi(n,r)});break}return""})}}var wd={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",bi="active",wi="data-styled-version",vn="6.1.19",lr=`/*!sc*/
1
+ (function(T,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):(T=typeof globalThis<"u"?globalThis:T||self,f(T["tcce-design-system-components"]={},T.React,T["react/jsx-runtime"],T.ReactDOM,T.Formik))})(this,(function(T,f,p,li,qc){"use strict";function Jc(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=Jc(f);var ge=function(){return ge=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},ge.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 Qc(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ed=/^((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)-.*))$/,td=Qc(function(e){return ed.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Z="-ms-",zt="-moz-",Y="-webkit-",ci="comm",dn="rule",nr="decl",nd="@import",di="@keyframes",rd="@layer",ui=Math.abs,rr=String.fromCharCode,or=Object.assign;function od(e,t){return ae(e,0)^45?(((t<<2^ae(e,0))<<2^ae(e,1))<<2^ae(e,2))<<2^ae(e,3):0}function hi(e){return e.trim()}function Fe(e,t){return(e=t.exec(e))?e[0]:e}function F(e,t,n){return e.replace(t,n)}function un(e,t,n){return e.indexOf(t,n)}function ae(e,t){return e.charCodeAt(t)|0}function gt(e,t,n){return e.slice(t,n)}function Le(e){return e.length}function fi(e){return e.length}function Rt(e,t){return t.push(e),e}function id(e,t){return e.map(t).join("")}function pi(e,t){return e.filter(function(n){return!Fe(n,t)})}var hn=1,yt=1,mi=0,Se=0,re=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 We(e,t){return or(fn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function bt(e){for(;e.root;)e=We(e.root,{children:[e]});Rt(e,e.siblings)}function sd(){return re}function ad(){return re=Se>0?ae(vt,--Se):0,yt--,re===10&&(yt=1,hn--),re}function Ae(){return re=Se<mi?ae(vt,Se++):0,yt++,re===10&&(yt=1,hn++),re}function et(){return ae(vt,Se)}function pn(){return Se}function mn(e,t){return gt(vt,e,t)}function ir(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 ld(e){return hn=yt=1,mi=Le(vt=e),Se=0,[]}function cd(e){return vt="",e}function sr(e){return hi(mn(Se-1,ar(e===91?e+2:e===40?e+1:e)))}function dd(e){for(;(re=et())&&re<33;)Ae();return ir(e)>2||ir(re)>3?"":" "}function ud(e,t){for(;--t&&Ae()&&!(re<48||re>102||re>57&&re<65||re>70&&re<97););return mn(e,pn()+(t<6&&et()==32&&Ae()==32))}function ar(e){for(;Ae();)switch(re){case e:return Se;case 34:case 39:e!==34&&e!==39&&ar(re);break;case 40:e===41&&ar(e);break;case 92:Ae();break}return Se}function hd(e,t){for(;Ae()&&e+re!==57;)if(e+re===84&&et()===47)break;return"/*"+mn(t,Se-1)+"*"+rr(e===47?e:Ae())}function fd(e){for(;!ir(et());)Ae();return mn(e,Se)}function pd(e){return cd(gn("",null,null,null,[""],e=ld(e),0,[0],e))}function gn(e,t,n,r,o,s,i,a,l){for(var d=0,u=0,c=i,h=0,m=0,g=0,v=1,x=1,y=1,C=0,w="",A=o,E=s,k=r,P=w;x;)switch(g=C,C=Ae()){case 40:if(g!=108&&ae(P,c-1)==58){un(P+=F(sr(C),"&","&\f"),"&\f",ui(d?a[d-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:P+=sr(C);break;case 9:case 10:case 13:case 32:P+=dd(g);break;case 92:P+=ud(pn()-1,7);continue;case 47:switch(et()){case 42:case 47:Rt(md(hd(Ae(),pn()),t,n,l),l);break;default:P+="/"}break;case 123*v:a[d++]=Le(P)*y;case 125*v:case 59:case 0:switch(C){case 0:case 125:x=0;case 59+u:y==-1&&(P=F(P,/\f/g,"")),m>0&&Le(P)-c&&Rt(m>32?yi(P+";",r,n,c-1,l):yi(F(P," ","")+";",r,n,c-2,l),l);break;case 59:P+=";";default:if(Rt(k=gi(P,t,n,d,u,o,a,w,A=[],E=[],c,s),s),C===123)if(u===0)gn(P,t,k,k,A,s,c,a,E);else switch(h===99&&ae(P,3)===110?100:h){case 100:case 108:case 109:case 115:gn(e,k,k,r&&Rt(gi(e,k,k,0,0,o,a,w,o,A=[],c,E),E),o,E,c,a,r?A:E);break;default:gn(P,k,k,k,[""],E,0,a,E)}}d=u=m=0,v=y=1,w=P="",c=i;break;case 58:c=1+Le(P),m=g;default:if(v<1){if(C==123)--v;else if(C==125&&v++==0&&ad()==125)continue}switch(P+=rr(C),C*v){case 38:y=u>0?1:(P+="\f",-1);break;case 44:a[d++]=(Le(P)-1)*y,y=1;break;case 64:et()===45&&(P+=sr(Ae())),h=et(),u=c=Le(w=P+=fd(pn())),C++;break;case 45:g===45&&Le(P)==2&&(v=0)}}return s}function gi(e,t,n,r,o,s,i,a,l,d,u,c){for(var h=o-1,m=o===0?s:[""],g=fi(m),v=0,x=0,y=0;v<r;++v)for(var C=0,w=gt(e,h+1,h=ui(x=i[v])),A=e;C<g;++C)(A=hi(x>0?m[C]+" "+w:F(w,/&\f/g,m[C])))&&(l[y++]=A);return fn(e,t,n,o===0?dn:a,l,d,u,c)}function md(e,t,n,r){return fn(e,t,n,ci,rr(sd()),gt(e,2,-2),0,r)}function yi(e,t,n,r,o){return fn(e,t,n,nr,gt(e,0,r),gt(e,r+1,-1),r,o)}function vi(e,t,n){switch(od(e,t)){case 5103:return Y+"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 Y+e+e;case 4789:return zt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+zt+e+Z+e+e;case 5936:switch(ae(e,t+11)){case 114:return Y+e+Z+F(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+Z+F(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+Z+F(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Y+e+Z+e+e;case 6165:return Y+e+Z+"flex-"+e+e;case 5187:return Y+e+F(e,/(\w+).+(:[^]+)/,Y+"box-$1$2"+Z+"flex-$1$2")+e;case 5443:return Y+e+Z+"flex-item-"+F(e,/flex-|-self/g,"")+(Fe(e,/flex-|baseline/)?"":Z+"grid-row-"+F(e,/flex-|-self/g,""))+e;case 4675:return Y+e+Z+"flex-line-pack"+F(e,/align-content|flex-|-self/g,"")+e;case 5548:return Y+e+Z+F(e,"shrink","negative")+e;case 5292:return Y+e+Z+F(e,"basis","preferred-size")+e;case 6060:return Y+"box-"+F(e,"-grow","")+Y+e+Z+F(e,"grow","positive")+e;case 4554:return Y+F(e,/([^-])(transform)/g,"$1"+Y+"$2")+e;case 6187:return F(F(F(e,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),e,"")+e;case 5495:case 3959:return F(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return F(F(e,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+Z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Y+e+e;case 4200:if(!Fe(e,/flex-|baseline/))return Z+"grid-column-align"+gt(e,t)+e;break;case 2592:case 3360:return Z+F(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Fe(r.props,/grid-\w+-end/)})?~un(e+(n=n[t].value),"span",0)?e:Z+F(e,"-start","")+e+Z+"grid-row-span:"+(~un(n,"span",0)?Fe(n,/\d+/):+Fe(n,/\d+/)-+Fe(e,/\d+/))+";":Z+F(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Fe(r.props,/grid-\w+-start/)})?e:Z+F(F(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return F(e,/(.+)-inline(.+)/,Y+"$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(Le(e)-1-t>6)switch(ae(e,t+1)){case 109:if(ae(e,t+4)!==45)break;case 102:return F(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+zt+(ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~un(e,"stretch",0)?vi(F(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return F(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,i,a,l,d){return Z+o+":"+s+d+(i?Z+o+"-span:"+(a?l:+l-+s)+d:"")+e});case 4949:if(ae(e,t+6)===121)return F(e,":",":"+Y)+e;break;case 6444:switch(ae(e,ae(e,14)===45?18:11)){case 120:return F(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Y+(ae(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+Z+"$2box$3")+e;case 100:return F(e,":",":"+Z)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return F(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 gd(e,t,n,r){switch(e.type){case rd:if(e.children.length)break;case nd:case nr:return e.return=e.return||e.value;case ci:return"";case di:return e.return=e.value+"{"+yn(e.children,r)+"}";case dn:if(!Le(e.value=e.props.join(",")))return""}return Le(n=yn(e.children,r))?e.return=e.value+"{"+n+"}":""}function yd(e){var t=fi(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 vd(e){return function(t){t.root||(t=t.return)&&e(t)}}function bd(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case nr:e.return=vi(e.value,e.length,n);return;case di:return yn([We(e,{value:F(e.value,"@","@"+Y)})],r);case dn:if(e.length)return id(n=e.props,function(o){switch(Fe(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":bt(We(e,{props:[F(o,/:(read-\w+)/,":"+zt+"$1")]})),bt(We(e,{props:[o]})),or(e,{props:pi(n,r)});break;case"::placeholder":bt(We(e,{props:[F(o,/:(plac\w+)/,":"+Y+"input-$1")]})),bt(We(e,{props:[F(o,/:(plac\w+)/,":"+zt+"$1")]})),bt(We(e,{props:[F(o,/:(plac\w+)/,Z+"input-$1")]})),bt(We(e,{props:[o]})),or(e,{props:pi(n,r)});break}return""})}}var wd={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",bi="active",wi="data-styled-version",vn="6.1.19",lr=`/*!sc*/
2
2
  `,bn=typeof window<"u"&&typeof document<"u",xd=!!(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"),xi=/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.
@@ -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 Od(){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 Ct(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(Od.apply(void 0,mt([Bd[e]],t,!1)).trim())}var Fd=(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 Ct(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),l=(i=0,n.length);i<l;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(lr);return n},e})(),jd=1<<30,Cn=new Map,Tn=new Map,kn=1,En=function(e){if(Cn.has(e))return Cn.get(e);for(;Tn.has(kn);)kn++;var t=kn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>jd))throw Ct(16,"".concat(t));return Cn.set(e,t),Tn.set(t,e),t},zd=function(e,t){kn=t+1,Cn.set(e,t),Tn.set(t,e)},Rd="style[".concat(tt,"][").concat(wi,'="').concat(vn,'"]'),_d=new RegExp("^".concat(tt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Hd=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)},Ud=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(lr),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var l=a.match(_d);if(l){var d=0|parseInt(l[1],10),u=l[2];d!==0&&(zd(u,d),Hd(e,u,l[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(a)}}},Ni=function(e){for(var t=document.querySelectorAll(Rd),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(tt)!==bi&&(Ud(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Wd(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Bi=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var l=Array.from(a.querySelectorAll("style[".concat(tt,"]")));return l[l.length-1]})(n),s=o!==void 0?o.nextSibling:null;r.setAttribute(tt,bi),r.setAttribute(wi,vn);var i=Wd();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},Kd=(function(){function e(t){this.element=Bi(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 Ct(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})(),Yd=(function(){function e(t){this.element=Bi(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})(),Gd=(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})(),Oi=bn,Xd={isServer:!bn,useCSSOMInjection:!xd},Fi=(function(){function e(t,n,r){t===void 0&&(t=wt),n===void 0&&(n={});var o=this;this.options=ge(ge({},Xd),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&bn&&Oi&&(Oi=!1,Ni(this)),mr(this,function(){return(function(s){for(var i=s.getTag(),a=i.length,l="",d=function(c){var h=(function(y){return Tn.get(y)})(c);if(h===void 0)return"continue";var m=s.names.get(h),g=i.getGroup(c);if(m===void 0||!m.size||g.length===0)return"continue";var v="".concat(tt,".g").concat(c,'[id="').concat(h,'"]'),w="";m!==void 0&&m.forEach(function(y){y.length>0&&(w+="".concat(y,","))}),l+="".concat(g).concat(v,'{content:"').concat(w,'"}').concat(lr)},u=0;u<a;u++)d(u);return l})(o)})}return e.registerId=function(t){return En(t)},e.prototype.rehydrate=function(){!this.server&&bn&&Ni(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(ge(ge({},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 Gd(o):r?new Kd(o):new Yd(o)})(this.options),new Fd(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(En(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(En(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(En(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Zd=/&/g,qd=/^\s*\/\/.*$/gm;function ji(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=ji(n.children,t)),n})}function Jd(e){var t,n,r,o=wt,s=o.options,i=s===void 0?wt:s,a=o.plugins,l=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=l.slice();u.push(function(h){h.type===dn&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(Zd,n).replace(r,d))}),i.prefix&&u.push(bd),u.push(gd);var c=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(qd,""),y=pd(g||m?"".concat(g," ").concat(m," { ").concat(w," }"):w);i.namespace&&(y=ji(y,i.namespace));var S=[];return yn(y,yd(u.concat(vd(function(x){return S.push(x)})))),S};return c.hash=l.length?l.reduce(function(h,m){return m.name||Ct(15),nt(h,m.name)},Ti).toString():"",c}var Qd=new Fi,gr=Jd(),zi=f.createContext({shouldForwardProp:void 0,styleSheet:Qd,stylis:gr});zi.Consumer,f.createContext(void 0);function Ri(){return f.useContext(zi)}var _i=(function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=gr);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,mr(this,function(){throw Ct(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=gr),this.name+t.hash},e})(),eu=function(e){return e>="A"&&e<="Z"};function Hi(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;eu(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ui=function(e){return e==null||e===!1||e===""},Wi=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!Ui(s)&&(Array.isArray(s)&&s.isCss||xt(s)?r.push("".concat(Hi(o),":"),s,";"):St(s)?r.push.apply(r,mt(mt(["".concat(o," {")],Wi(s),!1),["}"],!1)):r.push("".concat(Hi(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in wd||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ot(e,t,n,r){if(Ui(e))return[];if(fr(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 _i||St(o)||o===null||console.error("".concat(Ei(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 _i?n?(e.inject(n,r),[e.getName(r)]):[e]:St(e)?Wi(e):Array.isArray(e)?Array.prototype.concat.apply(xn,e.map(function(i){return ot(i,t,n,r)})):[e.toString()]}function tu(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(xt(n)&&!fr(n))return!1}return!0}var nu=ki(vn),ru=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&tu(t),this.componentId=n,this.baseHash=nt(nu,n),this.baseStyle=r,Fi.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=Li(ot(this.rules,t,n,r)),i=dr(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 l=nt(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=nt(l,c));else if(c){var h=Li(ot(c,t,n,r));l=nt(l,h+u),d+=h}}if(d){var m=dr(l>>>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})(),Ki=f.createContext(void 0);Ki.Consumer;var yr={},Yi=new Set;function ou(e,t,n){var r=fr(e),o=e,s=!hr(e),i=t.attrs,a=i===void 0?xn:i,l=t.componentId,d=l===void 0?(function(A,P){var k=typeof A!="string"?"sc":Si(A);yr[k]=(yr[k]||0)+1;var E="".concat(k,"-").concat(Pd(vn+k+yr[k]));return P?"".concat(P,"-").concat(E):E})(t.displayName,t.parentComponentId):l,u=t.displayName,c=u===void 0?(function(A){return hr(A)?"styled.".concat(A):"Styled(".concat(Ei(A),")")})(e):u,h=t.displayName&&t.componentId?"".concat(Si(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,P){return v(A,P)&&w(A,P)}}else g=v}var y=new ru(n,h,r?o.componentStyle:void 0);function S(A,P){return(function(k,E,D){var L=k.attrs,_=k.componentStyle,$=k.defaultProps,U=k.foldedComponentIds,V=k.styledComponentId,he=k.target,G=f.useContext(Ki),O=Ri(),N=k.shouldForwardProp||O.shouldForwardProp;process.env.NODE_ENV!=="production"&&f.useDebugValue(V);var H=Cd(E,G,$)||wt,B=(function(X,ae,Me){for(var K,be=ge(ge({},ae),{className:void 0,theme:Me}),Je=0;Je<X.length;Je+=1){var He=xt(K=X[Je])?K(be):K;for(var me in He)be[me]=me==="className"?rt(be[me],He[me]):me==="style"?ge(ge({},be[me]),He[me]):He[me]}return ae.className&&(be.className=rt(be.className,ae.className)),be})(L,E,H),R=B.as||he,oe={};for(var ie in B)B[ie]===void 0||ie[0]==="$"||ie==="as"||ie==="theme"&&B.theme===H||(ie==="forwardedAs"?oe.as=B.forwardedAs:N&&!N(ie,R)||(oe[ie]=B[ie],N||process.env.NODE_ENV!=="development"||td(ie)||Yi.has(ie)||!cr.has(R)||(Yi.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 z=(function(X,ae){var Me=Ri(),K=X.generateAndInjectStyles(ae,Me.styleSheet,Me.stylis);return process.env.NODE_ENV!=="production"&&f.useDebugValue(K),K})(_,B);process.env.NODE_ENV!=="production"&&k.warnTooManyClasses&&k.warnTooManyClasses(z);var q=rt(U,V);return z&&(q+=" "+z),B.className&&(q+=" "+B.className),oe[hr(R)&&!cr.has(R)?"class":"className"]=q,D&&(oe.ref=D),f.createElement(R,oe)})(x,A,P)}S.displayName=c;var x=f.forwardRef(S);return x.attrs=m,x.componentStyle=y,x.displayName=c,x.shouldForwardProp=g,x.foldedComponentIds=r?rt(o.foldedComponentIds,o.styledComponentId):"",x.styledComponentId=h,x.target=r?o.target:e,Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(A){this._foldedDefaultProps=r?(function(P){for(var k=[],E=1;E<arguments.length;E++)k[E-1]=arguments[E];for(var D=0,L=k;D<L.length;D++)pr(P,L[D],!0);return P})({},o.defaultProps,A):A}}),process.env.NODE_ENV!=="production"&&(Sd(c,h),x.warnTooManyClasses=(function(A,P){var k={},E=!1;return function(D){if(!E&&(k[D]=!0,Object.keys(k).length>=200)){var L=P?' with the id of "'.concat(P,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(A).concat(L,`.
47
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Od(){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 Ct(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(Od.apply(void 0,mt([Bd[e]],t,!1)).trim())}var Fd=(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 Ct(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),l=(i=0,n.length);i<l;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(lr);return n},e})(),jd=1<<30,Cn=new Map,Tn=new Map,kn=1,En=function(e){if(Cn.has(e))return Cn.get(e);for(;Tn.has(kn);)kn++;var t=kn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>jd))throw Ct(16,"".concat(t));return Cn.set(e,t),Tn.set(t,e),t},zd=function(e,t){kn=t+1,Cn.set(e,t),Tn.set(t,e)},Rd="style[".concat(tt,"][").concat(wi,'="').concat(vn,'"]'),_d=new RegExp("^".concat(tt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Hd=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)},Ud=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(lr),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var l=a.match(_d);if(l){var d=0|parseInt(l[1],10),u=l[2];d!==0&&(zd(u,d),Hd(e,u,l[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(a)}}},Ni=function(e){for(var t=document.querySelectorAll(Rd),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(tt)!==bi&&(Ud(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Wd(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Bi=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var l=Array.from(a.querySelectorAll("style[".concat(tt,"]")));return l[l.length-1]})(n),s=o!==void 0?o.nextSibling:null;r.setAttribute(tt,bi),r.setAttribute(wi,vn);var i=Wd();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},Kd=(function(){function e(t){this.element=Bi(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 Ct(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})(),Yd=(function(){function e(t){this.element=Bi(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})(),Gd=(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})(),Oi=bn,Xd={isServer:!bn,useCSSOMInjection:!xd},Fi=(function(){function e(t,n,r){t===void 0&&(t=wt),n===void 0&&(n={});var o=this;this.options=ge(ge({},Xd),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&bn&&Oi&&(Oi=!1,Ni(this)),mr(this,function(){return(function(s){for(var i=s.getTag(),a=i.length,l="",d=function(c){var h=(function(y){return Tn.get(y)})(c);if(h===void 0)return"continue";var m=s.names.get(h),g=i.getGroup(c);if(m===void 0||!m.size||g.length===0)return"continue";var v="".concat(tt,".g").concat(c,'[id="').concat(h,'"]'),x="";m!==void 0&&m.forEach(function(y){y.length>0&&(x+="".concat(y,","))}),l+="".concat(g).concat(v,'{content:"').concat(x,'"}').concat(lr)},u=0;u<a;u++)d(u);return l})(o)})}return e.registerId=function(t){return En(t)},e.prototype.rehydrate=function(){!this.server&&bn&&Ni(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(ge(ge({},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 Gd(o):r?new Kd(o):new Yd(o)})(this.options),new Fd(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(En(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(En(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(En(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Zd=/&/g,qd=/^\s*\/\/.*$/gm;function ji(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=ji(n.children,t)),n})}function Jd(e){var t,n,r,o=wt,s=o.options,i=s===void 0?wt:s,a=o.plugins,l=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=l.slice();u.push(function(h){h.type===dn&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(Zd,n).replace(r,d))}),i.prefix&&u.push(bd),u.push(gd);var c=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 x=h.replace(qd,""),y=pd(g||m?"".concat(g," ").concat(m," { ").concat(x," }"):x);i.namespace&&(y=ji(y,i.namespace));var C=[];return yn(y,yd(u.concat(vd(function(w){return C.push(w)})))),C};return c.hash=l.length?l.reduce(function(h,m){return m.name||Ct(15),nt(h,m.name)},Ti).toString():"",c}var Qd=new Fi,gr=Jd(),zi=f.createContext({shouldForwardProp:void 0,styleSheet:Qd,stylis:gr});zi.Consumer,f.createContext(void 0);function Ri(){return f.useContext(zi)}var _i=(function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=gr);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,mr(this,function(){throw Ct(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=gr),this.name+t.hash},e})(),eu=function(e){return e>="A"&&e<="Z"};function Hi(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;eu(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ui=function(e){return e==null||e===!1||e===""},Wi=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!Ui(s)&&(Array.isArray(s)&&s.isCss||xt(s)?r.push("".concat(Hi(o),":"),s,";"):St(s)?r.push.apply(r,mt(mt(["".concat(o," {")],Wi(s),!1),["}"],!1)):r.push("".concat(Hi(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in wd||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ot(e,t,n,r){if(Ui(e))return[];if(fr(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 _i||St(o)||o===null||console.error("".concat(Ei(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 _i?n?(e.inject(n,r),[e.getName(r)]):[e]:St(e)?Wi(e):Array.isArray(e)?Array.prototype.concat.apply(xn,e.map(function(i){return ot(i,t,n,r)})):[e.toString()]}function tu(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(xt(n)&&!fr(n))return!1}return!0}var nu=ki(vn),ru=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&tu(t),this.componentId=n,this.baseHash=nt(nu,n),this.baseStyle=r,Fi.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=Li(ot(this.rules,t,n,r)),i=dr(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 l=nt(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=nt(l,c));else if(c){var h=Li(ot(c,t,n,r));l=nt(l,h+u),d+=h}}if(d){var m=dr(l>>>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})(),Ki=f.createContext(void 0);Ki.Consumer;var yr={},Yi=new Set;function ou(e,t,n){var r=fr(e),o=e,s=!hr(e),i=t.attrs,a=i===void 0?xn:i,l=t.componentId,d=l===void 0?(function(A,E){var k=typeof A!="string"?"sc":Si(A);yr[k]=(yr[k]||0)+1;var P="".concat(k,"-").concat(Pd(vn+k+yr[k]));return E?"".concat(E,"-").concat(P):P})(t.displayName,t.parentComponentId):l,u=t.displayName,c=u===void 0?(function(A){return hr(A)?"styled.".concat(A):"Styled(".concat(Ei(A),")")})(e):u,h=t.displayName&&t.componentId?"".concat(Si(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 x=t.shouldForwardProp;g=function(A,E){return v(A,E)&&x(A,E)}}else g=v}var y=new ru(n,h,r?o.componentStyle:void 0);function C(A,E){return(function(k,P,D){var N=k.attrs,_=k.componentStyle,$=k.defaultProps,H=k.foldedComponentIds,U=k.styledComponentId,G=k.target,Q=f.useContext(Ki),V=Ri(),I=k.shouldForwardProp||V.shouldForwardProp;process.env.NODE_ENV!=="production"&&f.useDebugValue(U);var R=Cd(P,Q,$)||wt,B=(function(X,le,Me){for(var K,be=ge(ge({},le),{className:void 0,theme:Me}),Je=0;Je<X.length;Je+=1){var He=xt(K=X[Je])?K(be):K;for(var me in He)be[me]=me==="className"?rt(be[me],He[me]):me==="style"?ge(ge({},be[me]),He[me]):He[me]}return le.className&&(be.className=rt(be.className,le.className)),be})(N,P,R),z=B.as||G,ie={};for(var se in B)B[se]===void 0||se[0]==="$"||se==="as"||se==="theme"&&B.theme===R||(se==="forwardedAs"?ie.as=B.forwardedAs:I&&!I(se,z)||(ie[se]=B[se],I||process.env.NODE_ENV!=="development"||td(se)||Yi.has(se)||!cr.has(z)||(Yi.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 j=(function(X,le){var Me=Ri(),K=X.generateAndInjectStyles(le,Me.styleSheet,Me.stylis);return process.env.NODE_ENV!=="production"&&f.useDebugValue(K),K})(_,B);process.env.NODE_ENV!=="production"&&k.warnTooManyClasses&&k.warnTooManyClasses(j);var q=rt(H,U);return j&&(q+=" "+j),B.className&&(q+=" "+B.className),ie[hr(z)&&!cr.has(z)?"class":"className"]=q,D&&(ie.ref=D),f.createElement(z,ie)})(w,A,E)}C.displayName=c;var w=f.forwardRef(C);return w.attrs=m,w.componentStyle=y,w.displayName=c,w.shouldForwardProp=g,w.foldedComponentIds=r?rt(o.foldedComponentIds,o.styledComponentId):"",w.styledComponentId=h,w.target=r?o.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(A){this._foldedDefaultProps=r?(function(E){for(var k=[],P=1;P<arguments.length;P++)k[P-1]=arguments[P];for(var D=0,N=k;D<N.length;D++)pr(E,N[D],!0);return E})({},o.defaultProps,A):A}}),process.env.NODE_ENV!=="production"&&(Sd(c,h),w.warnTooManyClasses=(function(A,E){var k={},P=!1;return function(D){if(!P&&(k[D]=!0,Object.keys(k).length>=200)){var N=E?' with the id of "'.concat(E,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(A).concat(N,`.
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,7 +53,7 @@ Example:
53
53
  },
54
54
  }))\`width: 100%;\`
55
55
 
56
- <Component />`),E=!0,k={}}}})(c,h)),mr(x,function(){return".".concat(x.styledComponentId)}),s&&Ii(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),x}function Gi(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 Xi=function(e){return Object.assign(e,{isCss:!0})};function b(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(xt(e)||St(e))return Xi(ot(Gi(xn,mt([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ot(r):Xi(ot(Gi(r,t)))}function vr(e,t,n){if(n===void 0&&(n=wt),!t)throw Ct(1,t);var r=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return e(t,n,b.apply(void 0,mt([o],s,!1)))};return r.attrs=function(o){return vr(e,t,ge(ge({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return vr(e,t,ge(ge({},n),o))},r}var Zi=function(e){return vr(ou,e)},C=Zi;cr.forEach(function(e){C[e]=Zi(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 />`),P=!0,k={}}}})(c,h)),mr(w,function(){return".".concat(w.styledComponentId)}),s&&Ii(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function Gi(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 Xi=function(e){return Object.assign(e,{isCss:!0})};function b(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(xt(e)||St(e))return Xi(ot(Gi(xn,mt([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ot(r):Xi(ot(Gi(r,t)))}function vr(e,t,n){if(n===void 0&&(n=wt),!t)throw Ct(1,t);var r=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return e(t,n,b.apply(void 0,mt([o],s,!1)))};return r.attrs=function(o){return vr(e,t,ge(ge({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return vr(e,t,ge(ge({},n),o))},r}var Zi=function(e){return vr(ou,e)},S=Zi;cr.forEach(function(e){S[e]=Zi(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
58
  Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Pn="__sc-".concat(tt,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Pn]||(window[Pn]=0),window[Pn]===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
 
@@ -141,7 +141,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
141
141
  font-style: normal;
142
142
  font-weight: 400;
143
143
  line-height: 161.76%;
144
- `},I={80:b`
144
+ `},L={80:b`
145
145
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
146
146
  font-size: 5em;
147
147
  font-style: normal;
@@ -201,19 +201,19 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
201
201
  font-style: normal;
202
202
  font-weight: 400;
203
203
  line-height: 133%;
204
- `},An=C.h1`
204
+ `},An=S.h1`
205
205
  ${({size:e=24})=>br[e]}
206
206
  margin: 0;
207
207
  color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
208
- `,iu=C.h2`
208
+ `,iu=S.h2`
209
209
  ${({size:e=24})=>qi[e]}
210
210
  margin: 0;
211
211
  color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
212
- `,Ne=C.span`
213
- ${({size:e=16})=>I[e]}
212
+ `,Ne=S.span`
213
+ ${({size:e=16})=>L[e]}
214
214
  margin: 0;
215
215
  color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
216
- `,su=C.span`
216
+ `,su=S.span`
217
217
  display: inline-flex;
218
218
  align-items: center;
219
219
  justify-content: center;
@@ -223,7 +223,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
223
223
  outline: none;
224
224
  box-shadow: var(--shadow-hover-black-card);
225
225
  }
226
- `,Ji={tn:"1rem",sm:"1.5rem",md:"2rem",lg:"3rem"},W=({component:e,size:t="1.5rem",color:n="currentColor",className:r,iconProps:o={}})=>{const s=typeof t=="string"&&t in Ji?Ji[t]:t;return p.jsx(su,{$color:n,className:r,children:typeof e=="function"?p.jsx(e,{size:s,...o}):e})},wr=f.createContext({});function xr(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const Sr=typeof window<"u",Qi=Sr?f.useLayoutEffect:f.useEffect,Dn=f.createContext(null);function Cr(e,t){e.indexOf(t)===-1&&e.push(t)}function Tr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const je=(e,t,n)=>n>t?t:n<e?e:n;function kr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Tt=()=>{},ze=()=>{};process.env.NODE_ENV!=="production"&&(Tt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(kr(t,n))},ze=(e,t,n)=>{if(!e)throw new Error(kr(t,n))});const Re={},es=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ts(e){return typeof e=="object"&&e!==null}const ns=e=>/^0[^.\s]+$/u.test(e);function Er(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ce=e=>e,au=(e,t)=>n=>t(e(n)),_t=(...e)=>e.reduce(au),Ht=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Pr{constructor(){this.subscriptions=[]}add(t){return Cr(this.subscriptions,t),()=>Tr(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 rs(e,t){return t?e*(1e3/t):0}const os=new Set;function Ar(e,t,n){e||os.has(t)||(console.warn(kr(t,n)),os.add(t))}const is=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,lu=1e-7,cu=12;function du(e,t,n,r,o){let s,i,a=0;do i=t+(n-t)/2,s=is(i,r,o)-e,s>0?n=i:t=i;while(Math.abs(s)>lu&&++a<cu);return i}function Ut(e,t,n,r){if(e===t&&n===r)return Ce;const o=s=>du(s,0,1,e,n);return s=>s===0||s===1?s:is(o(s),t,r)}const ss=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,as=e=>t=>1-e(1-t),ls=Ut(.33,1.53,.69,.99),Dr=as(ls),cs=ss(Dr),ds=e=>(e*=2)<1?.5*Dr(e):.5*(2-Math.pow(2,-10*(e-1))),$r=e=>1-Math.sin(Math.acos(e)),us=as($r),hs=ss($r),uu=Ut(.42,0,1,1),hu=Ut(0,0,.58,1),fs=Ut(.42,0,.58,1),fu=e=>Array.isArray(e)&&typeof e[0]!="number",ps=e=>Array.isArray(e)&&typeof e[0]=="number",ms={linear:Ce,easeIn:uu,easeInOut:fs,easeOut:hu,circIn:$r,circInOut:hs,circOut:us,backIn:Dr,backInOut:cs,backOut:ls,anticipate:ds},pu=e=>typeof e=="string",gs=e=>{if(ps(e)){ze(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(pu(e))return ze(ms[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),ms[e];return e},$n=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function mu(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 l(u){i.has(u)&&(d.schedule(u),e()),u(a)}const d={schedule:(u,c=!1,h=!1)=>{const g=h&&o?n:r;return c&&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(l),n.clear(),o=!1,s&&(s=!1,d.process(u))}};return d}const gu=40;function ys(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=$n.reduce((x,A)=>(x[A]=mu(s),x),{}),{setup:a,read:l,resolveKeyframes:d,preUpdate:u,update:c,preRender:h,render:m,postRender:g}=i,v=()=>{const x=Re.useManualTiming?o.timestamp:performance.now();n=!1,Re.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(x-o.timestamp,gu),1)),o.timestamp=x,o.isProcessing=!0,a.process(o),l.process(o),d.process(o),u.process(o),c.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:$n.reduce((x,A)=>{const P=i[A];return x[A]=(k,E=!1,D=!1)=>(n||w(),P.schedule(k,E,D)),x},{}),cancel:x=>{for(let A=0;A<$n.length;A++)i[$n[A]].cancel(x)},state:o,steps:i}}const{schedule:J,cancel:Ke,state:ce,steps:Mr}=ys(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ce,!0);let Mn;function yu(){Mn=void 0}const ye={now:()=>(Mn===void 0&&ye.set(ce.isProcessing||Re.useManualTiming?ce.timestamp:performance.now()),Mn),set:e=>{Mn=e,queueMicrotask(yu)}},vs=e=>t=>typeof t=="string"&&t.startsWith(e),Vr=vs("--"),vu=vs("var(--"),Ir=e=>vu(e)?bu.test(e.split("/*")[0].trim()):!1,bu=/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=>je(0,1,e)},Vn={...kt,default:1},Kt=e=>Math.round(e*1e5)/1e5,Lr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wu(e){return e==null}const xu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nr=(e,t)=>n=>!!(typeof n=="string"&&xu.test(n)&&n.startsWith(e)||t&&!wu(n)&&Object.prototype.hasOwnProperty.call(n,t)),bs=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,i,a]=r.match(Lr);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},Su=e=>je(0,255,e),Br={...kt,transform:e=>Math.round(Su(e))},it={test:Nr("rgb","red"),parse:bs("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Br.transform(e)+", "+Br.transform(t)+", "+Br.transform(n)+", "+Kt(Wt.transform(r))+")"};function Cu(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 Or={test:Nr("#"),parse:Cu,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"),Be=Yt("%"),M=Yt("px"),Tu=Yt("vh"),ku=Yt("vw"),ws={...Be,parse:e=>Be.parse(e)/100,transform:e=>Be.transform(e*100)},Et={test:Nr("hsl","hue"),parse:bs("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Be.transform(Kt(t))+", "+Be.transform(Kt(n))+", "+Kt(Wt.transform(r))+")"},re={test:e=>it.test(e)||Or.test(e)||Et.test(e),parse:e=>it.test(e)?it.parse(e):Et.test(e)?Et.parse(e):Or.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?it.transform(e):Et.transform(e),getAnimatableNone:e=>{const t=re.parse(e);return t.alpha=0,re.transform(t)}},Eu=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Pu(e){return isNaN(e)&&typeof e=="string"&&(e.match(Lr)?.length||0)+(e.match(Eu)?.length||0)>0}const xs="number",Ss="color",Au="var",Du="var(",Cs="${}",$u=/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($u,l=>(re.test(l)?(r.color.push(s),o.push(Ss),n.push(re.parse(l))):l.startsWith(Du)?(r.var.push(s),o.push(Au),n.push(l)):(r.number.push(s),o.push(xs),n.push(parseFloat(l))),++s,Cs)).split(Cs);return{values:n,split:a,indexes:r,types:o}}function Ts(e){return Gt(e).values}function ks(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===xs?s+=Kt(o[i]):a===Ss?s+=re.transform(o[i]):s+=o[i]}return s}}const Mu=e=>typeof e=="number"?0:re.test(e)?re.getAnimatableNone(e):e;function Vu(e){const t=Ts(e);return ks(e)(t.map(Mu))}const Ge={test:Pu,parse:Ts,createTransformer:ks,getAnimatableNone:Vu};function Fr(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 Iu({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,l=2*n-a;o=Fr(l,a,e+1/3),s=Fr(l,a,e),i=Fr(l,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 Q=(e,t,n)=>e+(t-e)*n,jr=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Lu=[Or,it,Et],Nu=e=>Lu.find(t=>t.test(e));function Es(e){const t=Nu(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===Et&&(n=Iu(n)),n}const Ps=(e,t)=>{const n=Es(e),r=Es(t);if(!n||!r)return In(e,t);const o={...n};return s=>(o.red=jr(n.red,r.red,s),o.green=jr(n.green,r.green,s),o.blue=jr(n.blue,r.blue,s),o.alpha=Q(n.alpha,r.alpha,s),it.transform(o))},zr=new Set(["none","hidden"]);function Bu(e,t){return zr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ou(e,t){return n=>Q(e,t,n)}function Rr(e){return typeof e=="number"?Ou:typeof e=="string"?Ir(e)?In:re.test(e)?Ps:zu:Array.isArray(e)?As:typeof e=="object"?re.test(e)?Ps:Fu:In}function As(e,t){const n=[...e],r=n.length,o=e.map((s,i)=>Rr(s)(s,t[i]));return s=>{for(let i=0;i<r;i++)n[i]=o[i](s);return n}}function Fu(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Rr(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function ju(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 zu=(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?zr.has(e)&&!o.values.length||zr.has(t)&&!r.values.length?Bu(e,t):_t(As(ju(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"),In(e,t))};function Ds(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Q(e,t,n):Rr(e)(e,t)}const Ru=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>J.update(t,n),stop:()=>Ke(t),now:()=>ce.isProcessing?ce.timestamp:ye.now()}},$s=(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)})`},Ln=2e4;function _r(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ln;)t+=n,r=e.next(t);return t>=Ln?1/0:t}function _u(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(_r(r),Ln);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:Te(o)}}const Hu=5;function Ms(e,t,n){const r=Math.max(t-Hu,0);return rs(n-e(r),t-r)}const ee={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},Hr=.001;function Uu({duration:e=ee.duration,bounce:t=ee.bounce,velocity:n=ee.velocity,mass:r=ee.mass}){let o,s;Tt(e<=De(ee.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=je(ee.minDamping,ee.maxDamping,i),e=je(ee.minDuration,ee.maxDuration,Te(e)),i<1?(o=d=>{const u=d*i,c=u*e,h=u-n,m=Ur(d,i),g=Math.exp(-c);return Hr-h/m*g},s=d=>{const c=d*i*e,h=c*n+n,m=Math.pow(i,2)*Math.pow(d,2)*e,g=Math.exp(-c),v=Ur(Math.pow(d,2),i);return(-o(d)+Hr>0?-1:1)*((h-m)*g)/v}):(o=d=>{const u=Math.exp(-d*e),c=(d-n)*e+1;return-Hr+u*c},s=d=>{const u=Math.exp(-d*e),c=(n-d)*(e*e);return u*c});const a=5/e,l=Ku(o,s,a);if(e=De(e),isNaN(l))return{stiffness:ee.stiffness,damping:ee.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:i*2*Math.sqrt(r*d),duration:e}}}const Wu=12;function Ku(e,t,n){let r=n;for(let o=1;o<Wu;o++)r=r-e(r)/t(r);return r}function Ur(e,t){return e*Math.sqrt(1-t*t)}const Yu=["duration","bounce"],Gu=["stiffness","damping","mass"];function Vs(e,t){return t.some(n=>e[n]!==void 0)}function Xu(e){let t={velocity:ee.velocity,stiffness:ee.stiffness,damping:ee.damping,mass:ee.mass,isResolvedFromDuration:!1,...e};if(!Vs(e,Gu)&&Vs(e,Yu))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*je(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:ee.mass,stiffness:o,damping:s}}else{const n=Uu(e);t={...t,...n,mass:ee.mass},t.isResolvedFromDuration=!0}return t}function Nn(e=ee.visualDuration,t=ee.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:l,damping:d,mass:u,duration:c,velocity:h,isResolvedFromDuration:m}=Xu({...n,velocity:-Te(n.velocity||0)}),g=h||0,v=d/(2*Math.sqrt(l*u)),w=i-s,y=Te(Math.sqrt(l/u)),S=Math.abs(w)<5;r||(r=S?ee.restSpeed.granular:ee.restSpeed.default),o||(o=S?ee.restDelta.granular:ee.restDelta.default);let x;if(v<1){const P=Ur(y,v);x=k=>{const E=Math.exp(-v*y*k);return i-E*((g+v*y*w)/P*Math.sin(P*k)+w*Math.cos(P*k))}}else if(v===1)x=P=>i-Math.exp(-y*P)*(w+(g+y*w)*P);else{const P=y*Math.sqrt(v*v-1);x=k=>{const E=Math.exp(-v*y*k),D=Math.min(P*k,300);return i-E*((g+v*y*w)*Math.sinh(D)+P*w*Math.cosh(D))/P}}const A={calculatedDuration:m&&c||null,next:P=>{const k=x(P);if(m)a.done=P>=c;else{let E=P===0?g:0;v<1&&(E=P===0?De(g):Ms(x,P,k));const D=Math.abs(E)<=r,L=Math.abs(i-k)<=o;a.done=D&&L}return a.value=a.done?i:k,a},toString:()=>{const P=Math.min(_r(A),Ln),k=$s(E=>A.next(P*E).value,P,30);return P+"ms "+k},toTransition:()=>{}};return A}Nn.applyToOptions=e=>{const t=_u(e,100,Nn);return e.ease=t.ease,e.duration=De(t.duration),e.type="keyframes",e};function Wr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:l,restDelta:d=.5,restSpeed:u}){const c=e[0],h={done:!1,value:c},m=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=i===void 0?w:i(w);y!==w&&(v=y-c);const S=D=>-v*Math.exp(-D/r),x=D=>y+S(D),A=D=>{const L=S(D),_=x(D);h.done=Math.abs(L)<=d,h.value=h.done?y:_};let P,k;const E=D=>{m(h.value)&&(P=D,k=Nn({keyframes:[h.value,g(h.value)],velocity:Ms(x,D,h.value),damping:o,stiffness:s,restDelta:d,restSpeed:u}))};return E(0),{calculatedDuration:null,next:D=>{let L=!1;return!k&&P===void 0&&(L=!0,A(D),E(D)),P!==void 0&&D>=P?k.next(D-P):(!L&&A(D),h)}}}function Zu(e,t,n){const r=[],o=n||Re.mix||Ds,s=e.length-1;for(let i=0;i<s;i++){let a=o(e[i],e[i+1]);if(t){const l=Array.isArray(t)?t[i]||Ce:t;a=_t(l,a)}r.push(a)}return r}function qu(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(ze(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=Zu(t,r,o),l=a.length,d=u=>{if(i&&u<e[0])return t[0];let c=0;if(l>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const h=Ht(e[c],e[c+1],u);return a[c](h)};return n?u=>d(je(e[0],e[s-1],u)):d}function Ju(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Ht(0,t,r);e.push(Q(n,1,o))}}function Qu(e){const t=[0];return Ju(t,e.length-1),t}function eh(e,t){return e.map(n=>n*t)}function th(e,t){return e.map(()=>t||fs).splice(0,e.length-1)}function Pt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=fu(r)?r.map(gs):gs(r),s={done:!1,value:t[0]},i=eh(n&&n.length===t.length?n:Qu(t),e),a=qu(i,t,{ease:Array.isArray(o)?o:th(t,o)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const nh=e=>e!==null;function Kr(e,{repeat:t,repeatType:n="loop"},r,o=1){const s=e.filter(nh),a=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const rh={decay:Wr,inertia:Wr,tween:Pt,keyframes:Pt,spring:Nn};function Is(e){typeof e.type=="string"&&(e.type=rh[e.type])}class Yr{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 oh=e=>e/100;class Gr extends Yr{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!==ye.now()&&this.tick(ye.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;Is(t);const{type:n=Pt,repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:i=0}=t;let{keyframes:a}=t;const l=n||Pt;process.env.NODE_ENV!=="production"&&l!==Pt&&ze(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=_t(oh,Ds(a[0],a[1])),a=[0,100]);const d=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-i})),d.calculatedDuration===null&&(d.calculatedDuration=_r(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:l}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:u,repeat:c,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),S=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let x=this.currentTime,A=r;if(c){const D=Math.min(this.currentTime,o)/a;let L=Math.floor(D),_=D%1;!_&&D>=1&&(_=1),_===1&&L--,L=Math.min(L,c+1),!!(L%2)&&(h==="reverse"?(_=1-_,m&&(_-=m/a)):h==="mirror"&&(A=i)),x=je(0,1,_)*a}const P=S?{done:!1,value:u[0]}:A.next(x);s&&(P.value=s(P.value));let{done:k}=P;!S&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return E&&g!==Wr&&(P.value=Kr(u,this.options,w,this.speed)),v&&v(P.value),E&&this.finish(),P}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(ye.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Te(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Ru,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(ye.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 ih(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const st=e=>e*180/Math.PI,Xr=e=>{const t=st(Math.atan2(e[1],e[0]));return Zr(t)},sh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Xr,rotateZ:Xr,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},Zr=e=>(e=e%360,e<0&&(e+=360),e),Ls=Xr,Ns=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Bs=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ah={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ns,scaleY:Bs,scale:e=>(Ns(e)+Bs(e))/2,rotateX:e=>Zr(st(Math.atan2(e[6],e[5]))),rotateY:e=>Zr(st(Math.atan2(-e[2],e[0]))),rotateZ:Ls,rotate:Ls,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 qr(e){return e.includes("scale")?1:0}function Jr(e,t){if(!e||e==="none")return qr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=ah,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=sh,o=a}if(!o)return qr(t);const s=r[t],i=o[1].split(",").map(ch);return typeof s=="function"?s(i):i[s]}const lh=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Jr(n,t)};function ch(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),Os=e=>e===kt||e===M,dh=new Set(["x","y","z"]),uh=At.filter(e=>!dh.has(e));function hh(e){const t=[];return uh.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})=>Jr(t,"x"),y:(e,{transform:t})=>Jr(t,"y")};at.translateX=at.x,at.translateY=at.y;const lt=new Set;let Qr=!1,eo=!1,to=!1;function Fs(){if(eo){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=hh(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)})}eo=!1,Qr=!1,lt.forEach(e=>e.complete(to)),lt.clear()}function js(){lt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eo=!0)})}function fh(){to=!0,js(),Fs(),to=!1}class no{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),Qr||(Qr=!0,J.read(js),J.resolveKeyframes(Fs))):(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])}ih(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 ph=e=>e.startsWith("--");function mh(e,t,n){ph(t)?e.style.setProperty(t,n):e.style[t]=n}const gh=Er(()=>window.ScrollTimeline!==void 0),yh={};function vh(e,t){const n=Er(e);return()=>yh[t]??n()}const zs=vh(()=>{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})`,Rs={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 _s(e,t){if(e)return typeof e=="function"?zs()?$s(e,t):"ease-out":ps(e)?Xt(e):Array.isArray(e)?e.map(n=>_s(n,t)||Rs.easeOut):Rs[e]}function bh(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:i="loop",ease:a="easeOut",times:l}={},d=void 0){const u={[t]:n};l&&(u.offset=l);const c=_s(a,o);Array.isArray(c)&&(u.easing=c);const h={delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"};return d&&(h.pseudoElement=d),e.animate(u,h)}function Hs(e){return typeof e=="function"&&"applyToOptions"in e}function wh({type:e,...t}){return Hs(e)&&zs()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class xh extends Yr{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:l}=t;this.isPseudoElement=!!s,this.allowFlatten=i,this.options=t,ze(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=wh(t);this.animation=bh(n,r,o,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const u=Kr(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):mh(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&&gh()?(this.animation.timeline=t,Ce):n(this)}}const Us={anticipate:ds,backInOut:cs,circInOut:hs};function Sh(e){return e in Us}function Ch(e){typeof e.ease=="string"&&Sh(e.ease)&&(e.ease=Us[e.ease])}const Ws=10;class Th extends xh{constructor(t){Ch(t),Is(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 Gr({...i,autoplay:!1}),l=De(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Ws).value,a.sample(l).value,Ws),a.stop()}}const Ks=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ge.test(e)||e==="0")&&!e.startsWith("url("));function kh(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 Eh(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=Ks(o,t),a=Ks(s,t);return Tt(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:kh(e)||(n==="spring"||Hs(n))&&r}function ro(e){e.duration=0,e.type="keyframes"}const Ph=new Set(["opacity","clipPath","filter","transform"]),Ah=Er(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Dh(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:l,transformTemplate:d}=t.owner.getProps();return Ah()&&n&&Ph.has(n)&&(n!=="transform"||!d)&&!l&&!r&&o!=="mirror"&&s!==0&&i!=="inertia"}const $h=40;class Mh extends Yr{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:i="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=ye.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:i,name:l,motionValue:d,element:u,...c},m=u?.KeyframeResolver||no;this.keyframeResolver=new m(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:s,type:i,velocity:a,delay:l,isHandoff:d,onUpdate:u}=r;this.resolvedAt=ye.now(),Eh(t,s,i,a)||((Re.instantAnimations||!l)&&u?.(Kr(t,r,n)),t[0]=t[t.length-1],ro(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>$h?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!d&&Dh(h)?new Th({...h,element:h.motionValue.owner.current}):new Gr(h);m.finished.then(()=>this.notifyFinished()).catch(Ce),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(),fh()),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 Vh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ih(e){const t=Vh.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Lh=4;function Ys(e,t,n=1){ze(n<=Lh,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=Ih(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const i=s.trim();return es(i)?parseFloat(i):i}return Ir(o)?Ys(o,t,n+1):o}function oo(e,t){return e?.[t]??e?.default??e}const Gs=new Set(["width","height","top","left","right","bottom",...At]),Nh={test:e=>e==="auto",parse:e=>e},Xs=e=>t=>t.test(e),Zs=[kt,M,Be,Ye,ku,Tu,Nh],qs=e=>Zs.find(Xs(e));function Bh(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ns(e):!0}const Oh=new Set(["brightness","contrast","saturate","opacity"]);function Fh(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lr)||[];if(!r)return e;const o=n.replace(r,"");let s=Oh.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const jh=/\b([a-z-]*)\(.*?\)/gu,io={...Ge,getAnimatableNone:e=>{const t=e.match(jh);return t?t.map(Fh).join(" "):e}},Js={...kt,transform:Math.round},so={borderWidth:M,borderTopWidth:M,borderRightWidth:M,borderBottomWidth:M,borderLeftWidth:M,borderRadius:M,radius:M,borderTopLeftRadius:M,borderTopRightRadius:M,borderBottomRightRadius:M,borderBottomLeftRadius:M,width:M,maxWidth:M,height:M,maxHeight:M,top:M,right:M,bottom:M,left:M,padding:M,paddingTop:M,paddingRight:M,paddingBottom:M,paddingLeft:M,margin:M,marginTop:M,marginRight:M,marginBottom:M,marginLeft:M,backgroundPositionX:M,backgroundPositionY:M,...{rotate:Ye,rotateX:Ye,rotateY:Ye,rotateZ:Ye,scale:Vn,scaleX:Vn,scaleY:Vn,scaleZ:Vn,skew:Ye,skewX:Ye,skewY:Ye,distance:M,translateX:M,translateY:M,translateZ:M,x:M,y:M,z:M,perspective:M,transformPerspective:M,opacity:Wt,originX:ws,originY:ws,originZ:M},zIndex:Js,fillOpacity:Wt,strokeOpacity:Wt,numOctaves:Js},zh={...so,color:re,backgroundColor:re,outlineColor:re,fill:re,stroke:re,borderColor:re,borderTopColor:re,borderRightColor:re,borderBottomColor:re,borderLeftColor:re,filter:io,WebkitFilter:io},Qs=e=>zh[e];function ea(e,t){let n=Qs(e);return n!==io&&(n=Ge),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Rh=new Set(["auto","none","0"]);function _h(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!Rh.has(s)&&Gt(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=ea(n,o)}class Hh extends no{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 l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),Ir(d))){const u=Ys(d,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Gs.has(r)||t.length!==2)return;const[o,s]=t,i=qs(o),a=qs(s);if(i!==a)if(Os(i)&&Os(a))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=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||Bh(t[o]))&&r.push(o);r.length&&_h(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,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Uh(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 ta=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function na(e){return ts(e)&&"offsetHeight"in e}const ra=30,Wh=e=>!isNaN(parseFloat(e));class Kh{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=ye.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=ye.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Wh(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ar(!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 Pr);const r=this.events[t].add(n);return t==="change"?()=>{r(),J.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=ye.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ra)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ra);return rs(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 $t(e,t){return new Kh(e,t)}const{schedule:ao}=ys(queueMicrotask,!1),$e={x:!1,y:!1};function oa(){return $e.x||$e.y}function Yh(e){return e==="x"||e==="y"?$e[e]?null:($e[e]=!0,()=>{$e[e]=!1}):$e.x||$e.y?null:($e.x=$e.y=!0,()=>{$e.x=$e.y=!1})}function ia(e,t){const n=Uh(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function sa(e){return!(e.pointerType==="touch"||oa())}function Gh(e,t,n={}){const[r,o,s]=ia(e,n),i=a=>{if(!sa(a))return;const{target:l}=a,d=t(l,a);if(typeof d!="function"||!l)return;const u=c=>{sa(c)&&(d(c),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",i,o)}),s}const aa=(e,t)=>t?e===t?!0:aa(e,t.parentElement):!1,lo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Xh=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Zh(e){return Xh.has(e.tagName)||e.tabIndex!==-1}const Bn=new WeakSet;function la(e){return t=>{t.key==="Enter"&&e(t)}}function co(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const qh=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=la(()=>{if(Bn.has(n))return;co(n,"down");const o=la(()=>{co(n,"up")}),s=()=>co(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 ca(e){return lo(e)&&!oa()}function Jh(e,t,n={}){const[r,o,s]=ia(e,n),i=a=>{const l=a.currentTarget;if(!ca(a))return;Bn.add(l);const d=t(l,a),u=(m,g)=>{window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",h),Bn.has(l)&&Bn.delete(l),ca(m)&&typeof d=="function"&&d(m,{success:g})},c=m=>{u(m,l===window||l===document||n.useGlobalTarget||aa(l,m.target))},h=m=>{u(m,!1)};window.addEventListener("pointerup",c,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",i,o),na(a)&&(a.addEventListener("focus",d=>qh(d,o)),!Zh(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function da(e){return ts(e)&&"ownerSVGElement"in e}function Qh(e){return da(e)&&e.tagName==="svg"}const ue=e=>!!(e&&e.getVelocity),ef=[...Zs,re,Ge],tf=e=>ef.find(Xs(e)),uo=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ua(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function nf(...e){return t=>{let n=!1;const r=e.map(o=>{const s=ua(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():ua(e[o],null)}}}}function rf(...e){return cn.useCallback(nf(...e),e)}class of extends cn.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=na(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 sf({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(uo),l=rf(s,e?.ref);return f.useInsertionEffect(()=>{const{width:d,height:u,top:c,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(`
226
+ `,Ji={tn:"1rem",sm:"1.5rem",md:"2rem",lg:"3rem"},W=({component:e,size:t="1.5rem",color:n="currentColor",className:r,iconProps:o={}})=>{const s=typeof t=="string"&&t in Ji?Ji[t]:t;return p.jsx(su,{$color:n,className:r,children:typeof e=="function"?p.jsx(e,{size:s,...o}):e})},wr=f.createContext({});function xr(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const Sr=typeof window<"u",Qi=Sr?f.useLayoutEffect:f.useEffect,Dn=f.createContext(null);function Cr(e,t){e.indexOf(t)===-1&&e.push(t)}function Tr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const je=(e,t,n)=>n>t?t:n<e?e:n;function kr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Tt=()=>{},ze=()=>{};process.env.NODE_ENV!=="production"&&(Tt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(kr(t,n))},ze=(e,t,n)=>{if(!e)throw new Error(kr(t,n))});const Re={},es=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ts(e){return typeof e=="object"&&e!==null}const ns=e=>/^0[^.\s]+$/u.test(e);function Er(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ce=e=>e,au=(e,t)=>n=>t(e(n)),_t=(...e)=>e.reduce(au),Ht=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Pr{constructor(){this.subscriptions=[]}add(t){return Cr(this.subscriptions,t),()=>Tr(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 rs(e,t){return t?e*(1e3/t):0}const os=new Set;function Ar(e,t,n){e||os.has(t)||(console.warn(kr(t,n)),os.add(t))}const is=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,lu=1e-7,cu=12;function du(e,t,n,r,o){let s,i,a=0;do i=t+(n-t)/2,s=is(i,r,o)-e,s>0?n=i:t=i;while(Math.abs(s)>lu&&++a<cu);return i}function Ut(e,t,n,r){if(e===t&&n===r)return Ce;const o=s=>du(s,0,1,e,n);return s=>s===0||s===1?s:is(o(s),t,r)}const ss=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,as=e=>t=>1-e(1-t),ls=Ut(.33,1.53,.69,.99),Dr=as(ls),cs=ss(Dr),ds=e=>(e*=2)<1?.5*Dr(e):.5*(2-Math.pow(2,-10*(e-1))),$r=e=>1-Math.sin(Math.acos(e)),us=as($r),hs=ss($r),uu=Ut(.42,0,1,1),hu=Ut(0,0,.58,1),fs=Ut(.42,0,.58,1),fu=e=>Array.isArray(e)&&typeof e[0]!="number",ps=e=>Array.isArray(e)&&typeof e[0]=="number",ms={linear:Ce,easeIn:uu,easeInOut:fs,easeOut:hu,circIn:$r,circInOut:hs,circOut:us,backIn:Dr,backInOut:cs,backOut:ls,anticipate:ds},pu=e=>typeof e=="string",gs=e=>{if(ps(e)){ze(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(pu(e))return ze(ms[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),ms[e];return e},$n=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function mu(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 l(u){i.has(u)&&(d.schedule(u),e()),u(a)}const d={schedule:(u,c=!1,h=!1)=>{const g=h&&o?n:r;return c&&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(l),n.clear(),o=!1,s&&(s=!1,d.process(u))}};return d}const gu=40;function ys(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=$n.reduce((w,A)=>(w[A]=mu(s),w),{}),{setup:a,read:l,resolveKeyframes:d,preUpdate:u,update:c,preRender:h,render:m,postRender:g}=i,v=()=>{const w=Re.useManualTiming?o.timestamp:performance.now();n=!1,Re.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(w-o.timestamp,gu),1)),o.timestamp=w,o.isProcessing=!0,a.process(o),l.process(o),d.process(o),u.process(o),c.process(o),h.process(o),m.process(o),g.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(v))},x=()=>{n=!0,r=!0,o.isProcessing||e(v)};return{schedule:$n.reduce((w,A)=>{const E=i[A];return w[A]=(k,P=!1,D=!1)=>(n||x(),E.schedule(k,P,D)),w},{}),cancel:w=>{for(let A=0;A<$n.length;A++)i[$n[A]].cancel(w)},state:o,steps:i}}const{schedule:J,cancel:Ke,state:de,steps:Mr}=ys(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ce,!0);let Mn;function yu(){Mn=void 0}const ye={now:()=>(Mn===void 0&&ye.set(de.isProcessing||Re.useManualTiming?de.timestamp:performance.now()),Mn),set:e=>{Mn=e,queueMicrotask(yu)}},vs=e=>t=>typeof t=="string"&&t.startsWith(e),Vr=vs("--"),vu=vs("var(--"),Ir=e=>vu(e)?bu.test(e.split("/*")[0].trim()):!1,bu=/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=>je(0,1,e)},Vn={...kt,default:1},Kt=e=>Math.round(e*1e5)/1e5,Lr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wu(e){return e==null}const xu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nr=(e,t)=>n=>!!(typeof n=="string"&&xu.test(n)&&n.startsWith(e)||t&&!wu(n)&&Object.prototype.hasOwnProperty.call(n,t)),bs=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,i,a]=r.match(Lr);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},Su=e=>je(0,255,e),Br={...kt,transform:e=>Math.round(Su(e))},it={test:Nr("rgb","red"),parse:bs("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Br.transform(e)+", "+Br.transform(t)+", "+Br.transform(n)+", "+Kt(Wt.transform(r))+")"};function Cu(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 Or={test:Nr("#"),parse:Cu,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"),Be=Yt("%"),M=Yt("px"),Tu=Yt("vh"),ku=Yt("vw"),ws={...Be,parse:e=>Be.parse(e)/100,transform:e=>Be.transform(e*100)},Et={test:Nr("hsl","hue"),parse:bs("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Be.transform(Kt(t))+", "+Be.transform(Kt(n))+", "+Kt(Wt.transform(r))+")"},oe={test:e=>it.test(e)||Or.test(e)||Et.test(e),parse:e=>it.test(e)?it.parse(e):Et.test(e)?Et.parse(e):Or.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?it.transform(e):Et.transform(e),getAnimatableNone:e=>{const t=oe.parse(e);return t.alpha=0,oe.transform(t)}},Eu=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Pu(e){return isNaN(e)&&typeof e=="string"&&(e.match(Lr)?.length||0)+(e.match(Eu)?.length||0)>0}const xs="number",Ss="color",Au="var",Du="var(",Cs="${}",$u=/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($u,l=>(oe.test(l)?(r.color.push(s),o.push(Ss),n.push(oe.parse(l))):l.startsWith(Du)?(r.var.push(s),o.push(Au),n.push(l)):(r.number.push(s),o.push(xs),n.push(parseFloat(l))),++s,Cs)).split(Cs);return{values:n,split:a,indexes:r,types:o}}function Ts(e){return Gt(e).values}function ks(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===xs?s+=Kt(o[i]):a===Ss?s+=oe.transform(o[i]):s+=o[i]}return s}}const Mu=e=>typeof e=="number"?0:oe.test(e)?oe.getAnimatableNone(e):e;function Vu(e){const t=Ts(e);return ks(e)(t.map(Mu))}const Ge={test:Pu,parse:Ts,createTransformer:ks,getAnimatableNone:Vu};function Fr(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 Iu({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,l=2*n-a;o=Fr(l,a,e+1/3),s=Fr(l,a,e),i=Fr(l,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 ee=(e,t,n)=>e+(t-e)*n,jr=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Lu=[Or,it,Et],Nu=e=>Lu.find(t=>t.test(e));function Es(e){const t=Nu(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===Et&&(n=Iu(n)),n}const Ps=(e,t)=>{const n=Es(e),r=Es(t);if(!n||!r)return In(e,t);const o={...n};return s=>(o.red=jr(n.red,r.red,s),o.green=jr(n.green,r.green,s),o.blue=jr(n.blue,r.blue,s),o.alpha=ee(n.alpha,r.alpha,s),it.transform(o))},zr=new Set(["none","hidden"]);function Bu(e,t){return zr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ou(e,t){return n=>ee(e,t,n)}function Rr(e){return typeof e=="number"?Ou:typeof e=="string"?Ir(e)?In:oe.test(e)?Ps:zu:Array.isArray(e)?As:typeof e=="object"?oe.test(e)?Ps:Fu:In}function As(e,t){const n=[...e],r=n.length,o=e.map((s,i)=>Rr(s)(s,t[i]));return s=>{for(let i=0;i<r;i++)n[i]=o[i](s);return n}}function Fu(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Rr(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function ju(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 zu=(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?zr.has(e)&&!o.values.length||zr.has(t)&&!r.values.length?Bu(e,t):_t(As(ju(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"),In(e,t))};function Ds(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ee(e,t,n):Rr(e)(e,t)}const Ru=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>J.update(t,n),stop:()=>Ke(t),now:()=>de.isProcessing?de.timestamp:ye.now()}},$s=(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)})`},Ln=2e4;function _r(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ln;)t+=n,r=e.next(t);return t>=Ln?1/0:t}function _u(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(_r(r),Ln);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:Te(o)}}const Hu=5;function Ms(e,t,n){const r=Math.max(t-Hu,0);return rs(n-e(r),t-r)}const te={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},Hr=.001;function Uu({duration:e=te.duration,bounce:t=te.bounce,velocity:n=te.velocity,mass:r=te.mass}){let o,s;Tt(e<=De(te.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=je(te.minDamping,te.maxDamping,i),e=je(te.minDuration,te.maxDuration,Te(e)),i<1?(o=d=>{const u=d*i,c=u*e,h=u-n,m=Ur(d,i),g=Math.exp(-c);return Hr-h/m*g},s=d=>{const c=d*i*e,h=c*n+n,m=Math.pow(i,2)*Math.pow(d,2)*e,g=Math.exp(-c),v=Ur(Math.pow(d,2),i);return(-o(d)+Hr>0?-1:1)*((h-m)*g)/v}):(o=d=>{const u=Math.exp(-d*e),c=(d-n)*e+1;return-Hr+u*c},s=d=>{const u=Math.exp(-d*e),c=(n-d)*(e*e);return u*c});const a=5/e,l=Ku(o,s,a);if(e=De(e),isNaN(l))return{stiffness:te.stiffness,damping:te.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:i*2*Math.sqrt(r*d),duration:e}}}const Wu=12;function Ku(e,t,n){let r=n;for(let o=1;o<Wu;o++)r=r-e(r)/t(r);return r}function Ur(e,t){return e*Math.sqrt(1-t*t)}const Yu=["duration","bounce"],Gu=["stiffness","damping","mass"];function Vs(e,t){return t.some(n=>e[n]!==void 0)}function Xu(e){let t={velocity:te.velocity,stiffness:te.stiffness,damping:te.damping,mass:te.mass,isResolvedFromDuration:!1,...e};if(!Vs(e,Gu)&&Vs(e,Yu))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*je(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:te.mass,stiffness:o,damping:s}}else{const n=Uu(e);t={...t,...n,mass:te.mass},t.isResolvedFromDuration=!0}return t}function Nn(e=te.visualDuration,t=te.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:l,damping:d,mass:u,duration:c,velocity:h,isResolvedFromDuration:m}=Xu({...n,velocity:-Te(n.velocity||0)}),g=h||0,v=d/(2*Math.sqrt(l*u)),x=i-s,y=Te(Math.sqrt(l/u)),C=Math.abs(x)<5;r||(r=C?te.restSpeed.granular:te.restSpeed.default),o||(o=C?te.restDelta.granular:te.restDelta.default);let w;if(v<1){const E=Ur(y,v);w=k=>{const P=Math.exp(-v*y*k);return i-P*((g+v*y*x)/E*Math.sin(E*k)+x*Math.cos(E*k))}}else if(v===1)w=E=>i-Math.exp(-y*E)*(x+(g+y*x)*E);else{const E=y*Math.sqrt(v*v-1);w=k=>{const P=Math.exp(-v*y*k),D=Math.min(E*k,300);return i-P*((g+v*y*x)*Math.sinh(D)+E*x*Math.cosh(D))/E}}const A={calculatedDuration:m&&c||null,next:E=>{const k=w(E);if(m)a.done=E>=c;else{let P=E===0?g:0;v<1&&(P=E===0?De(g):Ms(w,E,k));const D=Math.abs(P)<=r,N=Math.abs(i-k)<=o;a.done=D&&N}return a.value=a.done?i:k,a},toString:()=>{const E=Math.min(_r(A),Ln),k=$s(P=>A.next(E*P).value,E,30);return E+"ms "+k},toTransition:()=>{}};return A}Nn.applyToOptions=e=>{const t=_u(e,100,Nn);return e.ease=t.ease,e.duration=De(t.duration),e.type="keyframes",e};function Wr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:l,restDelta:d=.5,restSpeed:u}){const c=e[0],h={done:!1,value:c},m=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 x=c+v,y=i===void 0?x:i(x);y!==x&&(v=y-c);const C=D=>-v*Math.exp(-D/r),w=D=>y+C(D),A=D=>{const N=C(D),_=w(D);h.done=Math.abs(N)<=d,h.value=h.done?y:_};let E,k;const P=D=>{m(h.value)&&(E=D,k=Nn({keyframes:[h.value,g(h.value)],velocity:Ms(w,D,h.value),damping:o,stiffness:s,restDelta:d,restSpeed:u}))};return P(0),{calculatedDuration:null,next:D=>{let N=!1;return!k&&E===void 0&&(N=!0,A(D),P(D)),E!==void 0&&D>=E?k.next(D-E):(!N&&A(D),h)}}}function Zu(e,t,n){const r=[],o=n||Re.mix||Ds,s=e.length-1;for(let i=0;i<s;i++){let a=o(e[i],e[i+1]);if(t){const l=Array.isArray(t)?t[i]||Ce:t;a=_t(l,a)}r.push(a)}return r}function qu(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(ze(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=Zu(t,r,o),l=a.length,d=u=>{if(i&&u<e[0])return t[0];let c=0;if(l>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const h=Ht(e[c],e[c+1],u);return a[c](h)};return n?u=>d(je(e[0],e[s-1],u)):d}function Ju(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Ht(0,t,r);e.push(ee(n,1,o))}}function Qu(e){const t=[0];return Ju(t,e.length-1),t}function eh(e,t){return e.map(n=>n*t)}function th(e,t){return e.map(()=>t||fs).splice(0,e.length-1)}function Pt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=fu(r)?r.map(gs):gs(r),s={done:!1,value:t[0]},i=eh(n&&n.length===t.length?n:Qu(t),e),a=qu(i,t,{ease:Array.isArray(o)?o:th(t,o)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const nh=e=>e!==null;function Kr(e,{repeat:t,repeatType:n="loop"},r,o=1){const s=e.filter(nh),a=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const rh={decay:Wr,inertia:Wr,tween:Pt,keyframes:Pt,spring:Nn};function Is(e){typeof e.type=="string"&&(e.type=rh[e.type])}class Yr{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 oh=e=>e/100;class Gr extends Yr{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!==ye.now()&&this.tick(ye.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;Is(t);const{type:n=Pt,repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:i=0}=t;let{keyframes:a}=t;const l=n||Pt;process.env.NODE_ENV!=="production"&&l!==Pt&&ze(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=_t(oh,Ds(a[0],a[1])),a=[0,100]);const d=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-i})),d.calculatedDuration===null&&(d.calculatedDuration=_r(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:l}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:u,repeat:c,repeatType:h,repeatDelay:m,type:g,onUpdate:v,finalKeyframe:x}=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),C=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,A=r;if(c){const D=Math.min(this.currentTime,o)/a;let N=Math.floor(D),_=D%1;!_&&D>=1&&(_=1),_===1&&N--,N=Math.min(N,c+1),!!(N%2)&&(h==="reverse"?(_=1-_,m&&(_-=m/a)):h==="mirror"&&(A=i)),w=je(0,1,_)*a}const E=C?{done:!1,value:u[0]}:A.next(w);s&&(E.value=s(E.value));let{done:k}=E;!C&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return P&&g!==Wr&&(E.value=Kr(u,this.options,x,this.speed)),v&&v(E.value),P&&this.finish(),E}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(ye.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Te(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Ru,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(ye.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 ih(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const st=e=>e*180/Math.PI,Xr=e=>{const t=st(Math.atan2(e[1],e[0]));return Zr(t)},sh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Xr,rotateZ:Xr,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},Zr=e=>(e=e%360,e<0&&(e+=360),e),Ls=Xr,Ns=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Bs=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ah={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ns,scaleY:Bs,scale:e=>(Ns(e)+Bs(e))/2,rotateX:e=>Zr(st(Math.atan2(e[6],e[5]))),rotateY:e=>Zr(st(Math.atan2(-e[2],e[0]))),rotateZ:Ls,rotate:Ls,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 qr(e){return e.includes("scale")?1:0}function Jr(e,t){if(!e||e==="none")return qr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=ah,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=sh,o=a}if(!o)return qr(t);const s=r[t],i=o[1].split(",").map(ch);return typeof s=="function"?s(i):i[s]}const lh=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Jr(n,t)};function ch(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),Os=e=>e===kt||e===M,dh=new Set(["x","y","z"]),uh=At.filter(e=>!dh.has(e));function hh(e){const t=[];return uh.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})=>Jr(t,"x"),y:(e,{transform:t})=>Jr(t,"y")};at.translateX=at.x,at.translateY=at.y;const lt=new Set;let Qr=!1,eo=!1,to=!1;function Fs(){if(eo){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=hh(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)})}eo=!1,Qr=!1,lt.forEach(e=>e.complete(to)),lt.clear()}function js(){lt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eo=!0)})}function fh(){to=!0,js(),Fs(),to=!1}class no{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),Qr||(Qr=!0,J.read(js),J.resolveKeyframes(Fs))):(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])}ih(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 ph=e=>e.startsWith("--");function mh(e,t,n){ph(t)?e.style.setProperty(t,n):e.style[t]=n}const gh=Er(()=>window.ScrollTimeline!==void 0),yh={};function vh(e,t){const n=Er(e);return()=>yh[t]??n()}const zs=vh(()=>{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})`,Rs={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 _s(e,t){if(e)return typeof e=="function"?zs()?$s(e,t):"ease-out":ps(e)?Xt(e):Array.isArray(e)?e.map(n=>_s(n,t)||Rs.easeOut):Rs[e]}function bh(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:i="loop",ease:a="easeOut",times:l}={},d=void 0){const u={[t]:n};l&&(u.offset=l);const c=_s(a,o);Array.isArray(c)&&(u.easing=c);const h={delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"};return d&&(h.pseudoElement=d),e.animate(u,h)}function Hs(e){return typeof e=="function"&&"applyToOptions"in e}function wh({type:e,...t}){return Hs(e)&&zs()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class xh extends Yr{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:l}=t;this.isPseudoElement=!!s,this.allowFlatten=i,this.options=t,ze(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=wh(t);this.animation=bh(n,r,o,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const u=Kr(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):mh(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&&gh()?(this.animation.timeline=t,Ce):n(this)}}const Us={anticipate:ds,backInOut:cs,circInOut:hs};function Sh(e){return e in Us}function Ch(e){typeof e.ease=="string"&&Sh(e.ease)&&(e.ease=Us[e.ease])}const Ws=10;class Th extends xh{constructor(t){Ch(t),Is(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 Gr({...i,autoplay:!1}),l=De(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Ws).value,a.sample(l).value,Ws),a.stop()}}const Ks=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ge.test(e)||e==="0")&&!e.startsWith("url("));function kh(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 Eh(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=Ks(o,t),a=Ks(s,t);return Tt(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:kh(e)||(n==="spring"||Hs(n))&&r}function ro(e){e.duration=0,e.type="keyframes"}const Ph=new Set(["opacity","clipPath","filter","transform"]),Ah=Er(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Dh(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:l,transformTemplate:d}=t.owner.getProps();return Ah()&&n&&Ph.has(n)&&(n!=="transform"||!d)&&!l&&!r&&o!=="mirror"&&s!==0&&i!=="inertia"}const $h=40;class Mh extends Yr{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:i="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=ye.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:i,name:l,motionValue:d,element:u,...c},m=u?.KeyframeResolver||no;this.keyframeResolver=new m(a,(g,v,x)=>this.onKeyframesResolved(g,v,h,!x),l,d,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:s,type:i,velocity:a,delay:l,isHandoff:d,onUpdate:u}=r;this.resolvedAt=ye.now(),Eh(t,s,i,a)||((Re.instantAnimations||!l)&&u?.(Kr(t,r,n)),t[0]=t[t.length-1],ro(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>$h?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!d&&Dh(h)?new Th({...h,element:h.motionValue.owner.current}):new Gr(h);m.finished.then(()=>this.notifyFinished()).catch(Ce),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(),fh()),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 Vh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ih(e){const t=Vh.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Lh=4;function Ys(e,t,n=1){ze(n<=Lh,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=Ih(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const i=s.trim();return es(i)?parseFloat(i):i}return Ir(o)?Ys(o,t,n+1):o}function oo(e,t){return e?.[t]??e?.default??e}const Gs=new Set(["width","height","top","left","right","bottom",...At]),Nh={test:e=>e==="auto",parse:e=>e},Xs=e=>t=>t.test(e),Zs=[kt,M,Be,Ye,ku,Tu,Nh],qs=e=>Zs.find(Xs(e));function Bh(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ns(e):!0}const Oh=new Set(["brightness","contrast","saturate","opacity"]);function Fh(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lr)||[];if(!r)return e;const o=n.replace(r,"");let s=Oh.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const jh=/\b([a-z-]*)\(.*?\)/gu,io={...Ge,getAnimatableNone:e=>{const t=e.match(jh);return t?t.map(Fh).join(" "):e}},Js={...kt,transform:Math.round},so={borderWidth:M,borderTopWidth:M,borderRightWidth:M,borderBottomWidth:M,borderLeftWidth:M,borderRadius:M,radius:M,borderTopLeftRadius:M,borderTopRightRadius:M,borderBottomRightRadius:M,borderBottomLeftRadius:M,width:M,maxWidth:M,height:M,maxHeight:M,top:M,right:M,bottom:M,left:M,padding:M,paddingTop:M,paddingRight:M,paddingBottom:M,paddingLeft:M,margin:M,marginTop:M,marginRight:M,marginBottom:M,marginLeft:M,backgroundPositionX:M,backgroundPositionY:M,...{rotate:Ye,rotateX:Ye,rotateY:Ye,rotateZ:Ye,scale:Vn,scaleX:Vn,scaleY:Vn,scaleZ:Vn,skew:Ye,skewX:Ye,skewY:Ye,distance:M,translateX:M,translateY:M,translateZ:M,x:M,y:M,z:M,perspective:M,transformPerspective:M,opacity:Wt,originX:ws,originY:ws,originZ:M},zIndex:Js,fillOpacity:Wt,strokeOpacity:Wt,numOctaves:Js},zh={...so,color:oe,backgroundColor:oe,outlineColor:oe,fill:oe,stroke:oe,borderColor:oe,borderTopColor:oe,borderRightColor:oe,borderBottomColor:oe,borderLeftColor:oe,filter:io,WebkitFilter:io},Qs=e=>zh[e];function ea(e,t){let n=Qs(e);return n!==io&&(n=Ge),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Rh=new Set(["auto","none","0"]);function _h(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!Rh.has(s)&&Gt(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=ea(n,o)}class Hh extends no{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 l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),Ir(d))){const u=Ys(d,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Gs.has(r)||t.length!==2)return;const[o,s]=t,i=qs(o),a=qs(s);if(i!==a)if(Os(i)&&Os(a))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=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||Bh(t[o]))&&r.push(o);r.length&&_h(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,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Uh(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 ta=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function na(e){return ts(e)&&"offsetHeight"in e}const ra=30,Wh=e=>!isNaN(parseFloat(e));class Kh{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=ye.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=ye.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Wh(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ar(!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 Pr);const r=this.events[t].add(n);return t==="change"?()=>{r(),J.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=ye.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ra)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ra);return rs(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 $t(e,t){return new Kh(e,t)}const{schedule:ao}=ys(queueMicrotask,!1),$e={x:!1,y:!1};function oa(){return $e.x||$e.y}function Yh(e){return e==="x"||e==="y"?$e[e]?null:($e[e]=!0,()=>{$e[e]=!1}):$e.x||$e.y?null:($e.x=$e.y=!0,()=>{$e.x=$e.y=!1})}function ia(e,t){const n=Uh(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function sa(e){return!(e.pointerType==="touch"||oa())}function Gh(e,t,n={}){const[r,o,s]=ia(e,n),i=a=>{if(!sa(a))return;const{target:l}=a,d=t(l,a);if(typeof d!="function"||!l)return;const u=c=>{sa(c)&&(d(c),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",i,o)}),s}const aa=(e,t)=>t?e===t?!0:aa(e,t.parentElement):!1,lo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Xh=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Zh(e){return Xh.has(e.tagName)||e.tabIndex!==-1}const Bn=new WeakSet;function la(e){return t=>{t.key==="Enter"&&e(t)}}function co(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const qh=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=la(()=>{if(Bn.has(n))return;co(n,"down");const o=la(()=>{co(n,"up")}),s=()=>co(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 ca(e){return lo(e)&&!oa()}function Jh(e,t,n={}){const[r,o,s]=ia(e,n),i=a=>{const l=a.currentTarget;if(!ca(a))return;Bn.add(l);const d=t(l,a),u=(m,g)=>{window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",h),Bn.has(l)&&Bn.delete(l),ca(m)&&typeof d=="function"&&d(m,{success:g})},c=m=>{u(m,l===window||l===document||n.useGlobalTarget||aa(l,m.target))},h=m=>{u(m,!1)};window.addEventListener("pointerup",c,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",i,o),na(a)&&(a.addEventListener("focus",d=>qh(d,o)),!Zh(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function da(e){return ts(e)&&"ownerSVGElement"in e}function Qh(e){return da(e)&&e.tagName==="svg"}const he=e=>!!(e&&e.getVelocity),ef=[...Zs,oe,Ge],tf=e=>ef.find(Xs(e)),uo=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ua(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function nf(...e){return t=>{let n=!1;const r=e.map(o=>{const s=ua(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():ua(e[o],null)}}}}function rf(...e){return cn.useCallback(nf(...e),e)}class of extends cn.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=na(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 sf({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(uo),l=rf(s,e?.ref);return f.useInsertionEffect(()=>{const{width:d,height:u,top:c,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 x=r??document.head;return x.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;
@@ -231,7 +231,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
231
231
  ${g}px !important;
232
232
  top: ${c}px !important;
233
233
  }
234
- `),()=>{w.contains(v)&&w.removeChild(v)}},[t]),p.jsx(of,{isPresent:t,childRef:s,sizeRef:i,children:cn.cloneElement(e,{ref:l})})}const af=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:i,anchorX:a,root:l})=>{const d=xr(lf),u=f.useId();let c=!0,h=f.useMemo(()=>(c=!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&&c&&(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(sf,{isPresent:n,anchorX:a,root:l,children:e})),p.jsx(Dn.Provider,{value:h,children:e})};function lf(){return new Map}function ha(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 fa(e){const t=[];return f.Children.forEach(e,n=>{f.isValidElement(n)&&t.push(n)}),t}const Zt=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:i=!1,anchorX:a="left",root:l})=>{const[d,u]=ha(i),c=f.useMemo(()=>fa(e),[e]),h=i&&!d?[]:c.map(On),m=f.useRef(!0),g=f.useRef(c),v=xr(()=>new Map),[w,y]=f.useState(c),[S,x]=f.useState(c);Qi(()=>{m.current=!1,g.current=c;for(let k=0;k<S.length;k++){const E=On(S[k]);h.includes(E)?v.delete(E):v.get(E)!==!0&&v.set(E,!1)}},[S,h.length,h.join("-")]);const A=[];if(c!==w){let k=[...c];for(let E=0;E<S.length;E++){const D=S[E],L=On(D);h.includes(L)||(k.splice(E,0,D),A.push(D))}return s==="wait"&&A.length&&(k=A),x(fa(k)),y(c),null}process.env.NODE_ENV!=="production"&&s==="wait"&&S.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:P}=f.useContext(wr);return p.jsx(p.Fragment,{children:S.map(k=>{const E=On(k),D=i&&!d?!1:c===S||h.includes(E),L=()=>{if(v.has(E))v.set(E,!0);else return;let _=!0;v.forEach($=>{$||(_=!1)}),_&&(P?.(),x(g.current),i&&u?.(),r&&r())};return p.jsx(af,{isPresent:D,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:l,onExitComplete:D?void 0:L,anchorX:a,children:k},E)})})},pa=f.createContext({strict:!1}),ma={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 ma)Mt[e]={isEnabled:t=>ma[e].some(n=>!!t[n])};function cf(e){for(const t in e)Mt[t]={...Mt[t],...e[t]}}const df=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")||df.has(e)}let ga=e=>!Fn(e);function uf(e){typeof e=="function"&&(ga=t=>t.startsWith("on")?!Fn(t):e(t))}try{uf(require("@emotion/is-prop-valid").default)}catch{}function hf(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(ga(o)||n===!0&&Fn(o)||!t&&!Fn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const jn=f.createContext({});function zn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function qt(e){return typeof e=="string"||Array.isArray(e)}const ho=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],fo=["initial",...ho];function Rn(e){return zn(e.animate)||fo.some(t=>qt(e[t]))}function ya(e){return!!(Rn(e)||e.variants)}function ff(e,t){if(Rn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||qt(n)?n:void 0,animate:qt(r)?r:void 0}}return e.inherit!==!1?t:{}}function pf(e){const{initial:t,animate:n}=ff(e,f.useContext(jn));return f.useMemo(()=>({initial:t,animate:n}),[va(t),va(n)])}function va(e){return Array.isArray(e)?e.join(" "):e}const Jt={};function mf(e){for(const t in e)Jt[t]=e[t],Vr(t)&&(Jt[t].isCSSVariable=!0)}function ba(e,{layout:t,layoutId:n}){return Dt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Jt[e]||e==="opacity")}const gf={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},yf=At.length;function vf(e,t,n){let r="",o=!0;for(let s=0;s<yf;s++){const i=At[s],a=e[i];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(i.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const d=ta(a,so[i]);if(!l){o=!1;const u=gf[i]||i;r+=`${u}(${d}) `}n&&(t[i]=d)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function po(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let i=!1,a=!1;for(const l in t){const d=t[l];if(Dt.has(l)){i=!0;continue}else if(Vr(l)){o[l]=d;continue}else{const u=ta(d,so[l]);l.startsWith("origin")?(a=!0,s[l]=u):r[l]=u}}if(t.transform||(i||n?r.transform=vf(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:d="50%",originZ:u=0}=s;r.transformOrigin=`${l} ${d} ${u}`}}const mo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function wa(e,t,n){for(const r in t)!ue(t[r])&&!ba(r,n)&&(e[r]=t[r])}function bf({transformTemplate:e},t){return f.useMemo(()=>{const n=mo();return po(n,t,e),Object.assign({},n.vars,n.style)},[t])}function wf(e,t){const n=e.style||{},r={};return wa(r,n,e),Object.assign(r,bf(e,t)),r}function xf(e,t){const n={},r=wf(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"},Cf={offset:"strokeDashoffset",array:"strokeDasharray"};function Tf(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?Sf:Cf;e[s.offset]=M.transform(-r);const i=M.transform(t),a=M.transform(n);e[s.array]=`${i} ${a}`}function xa(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:s=1,pathOffset:i=0,...a},l,d,u){if(po(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&&Tf(c,o,s,i,!1)}const Sa=()=>({...mo(),attrs:{}}),Ca=e=>typeof e=="string"&&e.toLowerCase()==="svg";function kf(e,t,n,r){const o=f.useMemo(()=>{const s=Sa();return xa(s,t,Ca(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};wa(s,e.style,e),o.style={...s,...o.style}}return o}const Ef=["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 go(e){return typeof e!="string"||e.includes("-")?!1:!!(Ef.indexOf(e)>-1||/[A-Z]/u.test(e))}function Pf(e,t,n,{latestValues:r},o,s=!1){const a=(go(e)?kf:xf)(t,r,o,e),l=hf(t,typeof e=="string",s),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 Ta(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function yo(e,t,n,r){if(typeof t=="function"){const[o,s]=Ta(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]=Ta(r);t=t(n!==void 0?n:e.custom,o,s)}return t}function _n(e){return ue(e)?e.get():e}function Af({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Df(n,r,o,e),renderState:t()}}function Df(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 l=Rn(e),d=ya(e);t&&d&&!l&&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 c=u?a:i;if(c&&typeof c!="boolean"&&!zn(c)){const h=Array.isArray(c)?c:[c];for(let m=0;m<h.length;m++){const g=yo(e,h[m]);if(g){const{transitionEnd:v,transition:w,...y}=g;for(const S in y){let x=y[S];if(Array.isArray(x)){const A=u?x.length-1:0;x=x[A]}x!==null&&(o[S]=x)}for(const S in v)o[S]=v[S]}}}return o}const ka=e=>(t,n)=>{const r=f.useContext(jn),o=f.useContext(Dn),s=()=>Af(e,t,r,o);return n?s():xr(s)};function vo(e,t,n){const{style:r}=e,o={};for(const s in r)(ue(r[s])||t.style&&ue(t.style[s])||ba(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(o[s]=r[s]);return o}const $f=ka({scrapeMotionValuesFromProps:vo,createRenderState:mo});function Ea(e,t,n){const r=vo(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=ka({scrapeMotionValuesFromProps:Ea,createRenderState:Sa}),Vf=Symbol.for("motionComponentSymbol");function Vt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function If(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):Vt(n)&&(n.current=r))},[t])}const bo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Pa="data-"+bo("framerAppearId"),Aa=f.createContext({});function Lf(e,t,n,r,o){const{visualElement:s}=f.useContext(jn),i=f.useContext(pa),a=f.useContext(Dn),l=f.useContext(uo).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:l}));const u=d.current,c=f.useContext(Aa);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&Nf(d.current,n,o,c);const h=f.useRef(!1);f.useInsertionEffect(()=>{u&&h.current&&u.update(n,a)});const m=n[Pa],g=f.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return Qi(()=>{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 Nf(e,t,n,r){const{layoutId:o,layout:s,drag:i,dragConstraints:a,layoutScroll:l,layoutRoot:d,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Da(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!i||a&&Vt(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:d})}function Da(e){if(e)return e.options.allowProjection!==!1?e.projection:Da(e.parent)}function wo(e,{forwardMotionProps:t=!1}={},n,r){n&&cf(n);const o=go(e)?Mf:$f;function s(a,l){let d;const u={...f.useContext(uo),...a,layoutId:Bf(a)},{isStatic:c}=u,h=pf(a),m=o(a,c);if(!c&&Sr){Of(u,n);const g=Ff(u);d=g.MeasureLayout,h.visualElement=Lf(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,Pf(e,a,If(m,h.visualElement,l),m,c,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const i=f.forwardRef(s);return i[Vf]=e,i}function Bf({layoutId:e}){const t=f.useContext(wr).id;return t&&e!==void 0?t+"-"+e:e}function Of(e,t){const n=f.useContext(pa).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"):ze(!1,r,"lazy-strict-mode")}}function Ff(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 jf(e,t){if(typeof Proxy>"u")return wo;const n=new Map,r=(s,i)=>wo(s,i,e,t),o=(s,i)=>(process.env.NODE_ENV!=="production"&&Ar(!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,wo(i,void 0,e,t)),n.get(i))})}function $a({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function zf({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Rf(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 xo(e){return e===void 0||e===1}function So({scale:e,scaleX:t,scaleY:n}){return!xo(e)||!xo(t)||!xo(n)}function ct(e){return So(e)||Ma(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ma(e){return Va(e.x)||Va(e.y)}function Va(e){return e&&e!=="0%"}function Hn(e,t,n){const r=e-n,o=t*r;return n+o}function Ia(e,t,n,r,o){return o!==void 0&&(e=Hn(e,o,r)),Hn(e,n,r)+t}function Co(e,t=0,n=1,r,o){e.min=Ia(e.min,t,n,r,o),e.max=Ia(e.max,t,n,r,o)}function La(e,{x:t,y:n}){Co(e.x,t.translate,t.scale,t.originPoint),Co(e.y,n.translate,n.scale,n.originPoint)}const Na=.999999999999,Ba=1.0000000000001;function _f(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:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Lt(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,La(e,i)),r&&ct(s.latestValues)&&Lt(e,s.latestValues))}t.x<Ba&&t.x>Na&&(t.x=1),t.y<Ba&&t.y>Na&&(t.y=1)}function It(e,t){e.min=e.min+t,e.max=e.max+t}function Oa(e,t,n,r,o=.5){const s=Q(e.min,e.max,o);Co(e,t,n,s,r)}function Lt(e,t){Oa(e.x,t.x,t.scaleX,t.scale,t.originX),Oa(e.y,t.y,t.scaleY,t.scale,t.originY)}function Fa(e,t){return $a(Rf(e.getBoundingClientRect(),t))}function Hf(e,t,n){const r=Fa(e,n),{scroll:o}=t;return o&&(It(r.x,o.offset.x),It(r.y,o.offset.y)),r}const ja=()=>({translate:0,scale:1,origin:0,originPoint:0}),Nt=()=>({x:ja(),y:ja()}),za=()=>({min:0,max:0}),te=()=>({x:za(),y:za()}),To={current:null},Ra={current:!1};function Uf(){if(Ra.current=!0,!!Sr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>To.current=e.matches;e.addEventListener("change",t),t()}else To.current=!1}const Wf=new WeakMap;function Kf(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,$t(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,$t(i!==void 0?i:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const _a=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Yf{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=no,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=ye.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,J.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=i;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=!!s,this.isControllingVariants=Rn(n),this.isVariantNode=ya(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 m=c[h];l[h]!==void 0&&ue(m)&&m.set(l[h])}}mount(t){this.current=t,Wf.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)),Ra.current||Uf(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:To.current,process.env.NODE_ENV!=="production"&&Ar(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&&J.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 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 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):te()}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<_a.length;r++){const o=_a[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=Kf(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=$t(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"&&(es(r)||ns(r))?r=parseFloat(r):!tf(r)&&Ge.test(n)&&(r=ea(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=yo(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 Pr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ao.render(this.render)}}class Ha extends Yf{constructor(){super(...arguments),this.KeyframeResolver=Hh}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 Ua(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 Gf(e){return window.getComputedStyle(e)}class Xf extends Ha{constructor(){super(...arguments),this.type="html",this.renderInstance=Ua}readValueFromInstance(t,n){if(Dt.has(n))return this.projection?.isProjecting?qr(n):lh(t,n);{const r=Gf(t),o=(Vr(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Fa(t,n)}build(t,n,r){po(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return vo(t,n,r)}}const Wa=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 Zf(e,t,n,r){Ua(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Wa.has(o)?o:bo(o),t.attrs[o])}class qf extends Ha{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Dt.has(n)){const r=Qs(n);return r&&r.default||0}return n=Wa.has(n)?n:bo(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Ea(t,n,r)}build(t,n,r){xa(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){Zf(t,n,r,o)}mount(t){this.isSVGTag=Ca(t.tagName),super.mount(t)}}const Jf=(e,t)=>go(e)?new qf(t):new Xf(t,{allowProjection:e!==f.Fragment});function Bt(e,t,n){const r=e.getProps();return yo(r,t,n!==void 0?n:r.custom,e)}const ko=e=>Array.isArray(e);function Qf(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,$t(n))}function ep(e){return ko(e)?e[e.length-1]||0:e}function tp(e,t){const n=Bt(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const i in s){const a=ep(s[i]);Qf(e,i,a)}}function np(e){return!!(ue(e)&&e.add)}function Eo(e,t){const n=e.getValue("willChange");if(np(n))return n.add(t);if(!n&&Re.WillChange){const r=new Re.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ka(e){return e.props[Pa]}const rp=e=>e!==null;function op(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(rp),s=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[s]}const ip={type:"spring",stiffness:500,damping:25,restSpeed:10},sp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ap={type:"keyframes",duration:.8},lp={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cp=(e,{keyframes:t})=>t.length>2?ap:Dt.has(e)?e.startsWith("scale")?sp(t[1]):ip:lp;function dp({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:l,elapsed:d,...u}){return!!Object.keys(u).length}const Po=(e,t,n,r={},o,s)=>i=>{const a=oo(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:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:o};dp(a)||Object.assign(u,cp(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)&&(ro(u),u.delay===0&&(c=!0)),(Re.instantAnimations||Re.skipAnimations)&&(c=!0,ro(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,c&&!s&&t.get()!==void 0){const h=op(u.keyframes,a);if(h!==void 0){J.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Gr(u):new Mh(u)};function up({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ya(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:i,...a}=t;r&&(s=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&&up(d,u))continue;const m={delay:n,...oo(s||{},u)},g=c.get();if(g!==void 0&&!c.isAnimating&&!Array.isArray(h)&&h===g&&!m.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const y=Ka(e);if(y){const S=window.MotionHandoffAnimation(y,u,J);S!==null&&(m.startTime=S,v=!0)}}Eo(e,u),c.start(Po(u,c,h,e.shouldReduceMotion&&Gs.has(u)?{type:!1}:m,e,v));const w=c.animation;w&&l.push(w)}return i&&Promise.all(l).then(()=>{J.update(()=>{i&&tp(e,i)})}),l}function Ga(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 Ao(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(Ya(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:c}=o;return hp(e,t,l,d,u,c,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,d]=a==="beforeChildren"?[s,i]:[i,s];return l().then(()=>d())}else return Promise.all([s(),i(n.delay)])}function hp(e,t,n=0,r=0,o=0,s=1,i){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Ao(l,t,{...i,delay:n+(typeof r=="function"?0:r)+Ga(e.variantChildren,l,r,o,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function fp(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>Ao(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=Ao(e,t,n);else{const o=typeof t=="function"?Bt(e,t,n.custom):t;r=Promise.all(Ya(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Xa(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 pp=fo.length;function Za(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Za(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<pp;n++){const r=fo[n],o=e.props[r];(qt(o)||o===!1)&&(t[r]=o)}return t}const mp=[...ho].reverse(),gp=ho.length;function yp(e){return t=>Promise.all(t.map(({animation:n,options:r})=>fp(e,n,r)))}function vp(e){let t=yp(e),n=qa(),r=!0;const o=l=>(d,u)=>{const c=Bt(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(c){const{transition:h,transitionEnd:m,...g}=c;d={...d,...g,...m}}return d};function s(l){t=l(e)}function i(l){const{props:d}=e,u=Za(e.parent)||{},c=[],h=new Set;let m={},g=1/0;for(let w=0;w<gp;w++){const y=mp[w],S=n[y],x=d[y]!==void 0?d[y]:u[y],A=qt(x),P=y===l?S.isActive:null;P===!1&&(g=w);let k=x===u[y]&&x!==d[y]&&A;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),S.protectedKeys={...m},!S.isActive&&P===null||!x&&!S.prevProp||zn(x)||typeof x=="boolean")continue;const E=bp(S.prevProp,x);let D=E||y===l&&S.isActive&&!k&&A||w>g&&A,L=!1;const _=Array.isArray(x)?x:[x];let $=_.reduce(o(y),{});P===!1&&($={});const{prevResolvedValues:U={}}=S,V={...U,...$},he=N=>{D=!0,h.has(N)&&(L=!0,h.delete(N)),S.needsAnimating[N]=!0;const H=e.getValue(N);H&&(H.liveStyle=!1)};for(const N in V){const H=$[N],B=U[N];if(m.hasOwnProperty(N))continue;let R=!1;ko(H)&&ko(B)?R=!Xa(H,B):R=H!==B,R?H!=null?he(N):h.add(N):H!==void 0&&h.has(N)?he(N):S.protectedKeys[N]=!0}S.prevProp=x,S.prevResolvedValues=$,S.isActive&&(m={...m,...$}),r&&e.blockInitialAnimation&&(D=!1);const G=k&&E;D&&(!G||L)&&c.push(..._.map(N=>{const H={type:y};if(typeof N=="string"&&r&&!G&&e.manuallyAnimateOnMount&&e.parent){const{parent:B}=e,R=Bt(B,N);if(B.enteringChildren&&R){const{delayChildren:oe}=R.transition||{};H.delay=Ga(B.enteringChildren,e,oe)}}return{animation:N,options:H}}))}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 S=e.getBaseTarget(y),x=e.getValue(y);x&&(x.liveStyle=!0),w[y]=S??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=i(l);for(const c in n)n[c].protectedKeys={};return u}return{animateChanges:i,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=qa(),r=!0}}}function bp(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Xa(t,e):!1}function dt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qa(){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 wp extends Xe{constructor(t){super(t),t.animationState||(t.animationState=vp(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();zn(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 xp=0;class Sp extends Xe{constructor(){super(...arguments),this.id=xp++}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 Cp={animation:{Feature:wp},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 Tp=e=>t=>lo(t)&&e(t,en(t));function tn(e,t,n,r){return Qt(e,t,Tp(n),r)}const Ja=1e-4,kp=1-Ja,Ep=1+Ja,Qa=.01,Pp=0-Qa,Ap=0+Qa;function pe(e){return e.max-e.min}function Dp(e,t,n){return Math.abs(e-t)<=n}function el(e,t,n,r=.5){e.origin=r,e.originPoint=Q(t.min,t.max,e.origin),e.scale=pe(n)/pe(t),e.translate=Q(n.min,n.max,e.origin)-e.originPoint,(e.scale>=kp&&e.scale<=Ep||isNaN(e.scale))&&(e.scale=1),(e.translate>=Pp&&e.translate<=Ap||isNaN(e.translate))&&(e.translate=0)}function nn(e,t,n,r){el(e.x,t.x,n.x,r?r.originX:void 0),el(e.y,t.y,n.y,r?r.originY:void 0)}function tl(e,t,n){e.min=n.min+t.min,e.max=e.min+pe(t)}function $p(e,t,n){tl(e.x,t.x,n.x),tl(e.y,t.y,n.y)}function nl(e,t,n){e.min=t.min-n.min,e.max=e.min+pe(t)}function rn(e,t,n){nl(e.x,t.x,n.x),nl(e.y,t.y,n.y)}function ke(e){return[e("x"),e("y")]}const rl=({current:e})=>e?e.ownerDocument.defaultView:null,ol=(e,t)=>Math.abs(e-t);function Mp(e,t){const n=ol(e.x,t.x),r=ol(e.y,t.y);return Math.sqrt(n**2+r**2)}class il{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=$o(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:S}=this.handlers;m||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Do(m,this.transformPagePoint),J.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=$o(h.type==="pointercancel"?this.lastMoveEventInfo:Do(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,y),v&&v(h,y)},!lo(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=o||window;const a=en(t),l=Do(a,this.transformPagePoint),{point:d}=l,{timestamp:u}=ce;this.history=[{...d,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,$o(l,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 Do(e,t){return t?{point:t(e.point)}:e}function sl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $o({point:e},t){return{point:e,delta:sl(e,al(t)),offset:sl(e,Vp(t)),velocity:Ip(t,.1)}}function Vp(e){return e[0]}function al(e){return e[e.length-1]}function Ip(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=al(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 Lp(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Q(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Q(n,e,r.max):Math.min(e,n)),e}function ll(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 Np(e,{top:t,left:n,bottom:r,right:o}){return{x:ll(e.x,n,o),y:ll(e.y,t,r)}}function cl(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 Bp(e,t){return{x:cl(e.x,t.x),y:cl(e.y,t.y)}}function Op(e,t){let n=.5;const r=pe(e),o=pe(t);return o>r?n=Ht(t.min,t.max-r,e.min):r>o&&(n=Ht(e.min,e.max-o,t.min)),je(0,1,n)}function Fp(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 Mo=.35;function jp(e=Mo){return e===!1?e=0:e===!0&&(e=Mo),{x:dl(e,"left","right"),y:dl(e,"top","bottom")}}function dl(e,t,n){return{min:ul(e,t),max:ul(e,n)}}function ul(e,t){return typeof e=="number"?e:e[t]||0}const zp=new WeakMap;class Rp{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=te(),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=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(en(c).point)},i=(c,h)=>{const{drag:m,dragPropagation:g,onDragStart:v}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Yh(m),!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),ke(y=>{let S=this.getAxisMotionValue(y).get()||0;if(Be.test(S)){const{projection:x}=this.visualElement;if(x&&x.layout){const A=x.layout.layoutBox[y];A&&(S=pe(A)*(parseFloat(S)/100))}}this.originPoint[y]=S}),v&&J.postRender(()=>v(c,h)),Eo(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(c,h)=>{this.latestPointerEvent=c,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=_p(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=()=>ke(c=>this.getAnimationState(c)==="paused"&&this.getAxisMotionValue(c).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new il(t,{onSessionStart:s,onStart:i,onMove:a,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:rl(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&&J.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=Lp(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&&Vt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Np(r.layoutBox,t):this.constraints=!1,this.elastic=jp(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ke(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Fp(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Vt(t))return!1;const r=t.current;ze(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=Hf(r,o.root,this.visualElement.getTransformPagePoint());let i=Bp(o.layout.layoutBox,s);if(n){const a=n(zf(i));this.hasMutatedConstraints=!!a,a&&(i=$a(a))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},d=ke(u=>{if(!Un(u,n,this.currentDirection))return;let c=l&&l[u]||{};i&&(c={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,...c};return this.startAxisValueAnimation(u,g)});return Promise.all(d).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Eo(this.visualElement,t),r.start(Po(t,r,0,n,this.visualElement,!1))}stopAnimation(){ke(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ke(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){ke(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]-Q(i,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Vt(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ke(i=>{const a=this.getAxisMotionValue(i);if(a&&this.constraints!==!1){const l=a.get();o[i]=Op({min:l,max:l},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(),ke(i=>{if(!Un(i,t,null))return;const a=this.getAxisMotionValue(i),{min:l,max:d}=this.constraints[i];a.set(Q(l,d,o[i]))})}addListeners(){if(!this.visualElement.current)return;zp.set(this.visualElement,this);const t=this.visualElement.current,n=tn(t,"pointerdown",l=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Vt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),J.read(r);const i=Qt(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(ke(u=>{const c=this.getAxisMotionValue(u);c&&(this.originPoint[u]+=l[u].translate,c.set(c.get()+l[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=Mo,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 _p(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Hp extends Xe{constructor(t){super(t),this.removeGroupControls=Ce,this.removeListeners=Ce,this.controls=new Rp(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ce}unmount(){this.removeGroupControls(),this.removeListeners()}}const hl=e=>(t,n)=>{e&&J.postRender(()=>e(t,n))};class Up extends Xe{constructor(){super(...arguments),this.removePointerDownListener=Ce}onPointerDown(t){this.session=new il(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:hl(t),onStart:hl(n),onMove:r,onEnd:(s,i)=>{delete this.session,o&&J.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 fl(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(M.test(e))e=parseFloat(e);else return e;const n=fl(e,t.target.x),r=fl(e,t.target.y);return`${n}% ${r}%`}},Wp={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,l=n.y.scale*t.y;o[0+i]/=a,o[1+i]/=l;const d=Q(a,l,.5);return typeof o[2+i]=="number"&&(o[2+i]/=d),typeof o[3+i]=="number"&&(o[3+i]/=d),s(o)}};let Vo=!1;class Kp extends f.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;mf(Yp),s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),Vo&&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,Vo=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||J.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ao.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Vo=!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 pl(e){const[t,n]=ha(),r=f.useContext(wr);return p.jsx(Kp,{...e,layoutGroup:r,switchLayoutGroup:f.useContext(Aa),isPresent:t,safeToRemove:n})}const Yp={borderRadius:{...on,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:on,borderTopRightRadius:on,borderBottomLeftRadius:on,borderBottomRightRadius:on,boxShadow:Wp};function Gp(e,t,n){const r=ue(e)?e:$t(e);return r.start(Po("",r,t,n)),r.animation}const Xp=(e,t)=>e.depth-t.depth;class Zp{constructor(){this.children=[],this.isDirty=!1}add(t){Cr(this.children,t),this.isDirty=!0}remove(t){Tr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Xp),this.isDirty=!1,this.children.forEach(t)}}function qp(e,t){const n=ye.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(Ke(r),e(s-t))};return J.setup(r,!0),()=>Ke(r)}const ml=["TopLeft","TopRight","BottomLeft","BottomRight"],Jp=ml.length,gl=e=>typeof e=="string"?parseFloat(e):e,yl=e=>typeof e=="number"||M.test(e);function Qp(e,t,n,r,o,s){o?(e.opacity=Q(0,n.opacity??1,em(r)),e.opacityExit=Q(t.opacity??1,0,tm(r))):s&&(e.opacity=Q(t.opacity??1,n.opacity??1,r));for(let i=0;i<Jp;i++){const a=`border${ml[i]}Radius`;let l=vl(t,a),d=vl(n,a);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||yl(l)===yl(d)?(e[a]=Math.max(Q(gl(l),gl(d),r),0),(Be.test(d)||Be.test(l))&&(e[a]+="%")):e[a]=d}(t.rotate||n.rotate)&&(e.rotate=Q(t.rotate||0,n.rotate||0,r))}function vl(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const em=bl(0,.5,us),tm=bl(.5,.95,Ce);function bl(e,t,n){return r=>r<e?0:r>t?1:n(Ht(e,t,r))}function wl(e,t){e.min=t.min,e.max=t.max}function Ee(e,t){wl(e.x,t.x),wl(e.y,t.y)}function xl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Sl(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 nm(e,t=0,n=1,r=.5,o,s=e,i=e){if(Be.test(t)&&(t=parseFloat(t),t=Q(i.min,i.max,t/100)-i.min),typeof t!="number")return;let a=Q(s.min,s.max,r);e===s&&(a-=t),e.min=Sl(e.min,t,n,a,o),e.max=Sl(e.max,t,n,a,o)}function Cl(e,t,[n,r,o],s,i){nm(e,t[n],t[r],t[o],t.scale,s,i)}const rm=["x","scaleX","originX"],om=["y","scaleY","originY"];function Tl(e,t,n,r){Cl(e.x,t,rm,n?n.x:void 0,r?r.x:void 0),Cl(e.y,t,om,n?n.y:void 0,r?r.y:void 0)}function kl(e){return e.translate===0&&e.scale===1}function El(e){return kl(e.x)&&kl(e.y)}function Pl(e,t){return e.min===t.min&&e.max===t.max}function im(e,t){return Pl(e.x,t.x)&&Pl(e.y,t.y)}function Al(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Dl(e,t){return Al(e.x,t.x)&&Al(e.y,t.y)}function $l(e){return pe(e.x)/pe(e.y)}function Ml(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class sm{constructor(){this.members=[]}add(t){Cr(this.members,t),t.scheduleRender()}remove(t){if(Tr(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 am(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:c,rotateY:h,skewX:m,skewY:g}=n;d&&(r=`perspective(${d}px) ${r}`),u&&(r+=`rotate(${u}deg) `),c&&(r+=`rotateX(${c}deg) `),h&&(r+=`rotateY(${h}deg) `),m&&(r+=`skewX(${m}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 Io=["","X","Y","Z"],lm=1e3;let cm=0;function Lo(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Vl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ka(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",J,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Vl(r)}function Il({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i={},a=t?.()){this.id=cm++,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(hm),this.nodes.forEach(gm),this.nodes.forEach(ym),this.nodes.forEach(fm)},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 l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Zp)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new Pr),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const l=this.eventHandlers.get(i);l&&l.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=da(i)&&!Qh(i),this.instance=i;const{layoutId:a,layout:l,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&&(l||a)&&(this.isLayoutDirty=!0),e){let u,c=0;const h=()=>this.root.updateBlockedByResize=!1;J.read(()=>{c=window.innerWidth}),e(i,()=>{const m=window.innerWidth;m!==c&&(c=m,this.root.updateBlockedByResize=!0,u&&u(),u=qp(h,250),Wn.hasAnimatedSinceResize&&(Wn.hasAnimatedSinceResize=!1,this.nodes.forEach(Bl)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&d&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c,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||!Dl(this.targetLayout,m),S=!c&&h;if(this.options.layoutRoot||this.resumeFrom||S||c&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...oo(g,"layout"),onPlay:v,onComplete:w};(d.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(u,S)}else c||Bl(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(vm),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&&Vl(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(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ll);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Nl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mm),this.nodes.forEach(dm),this.nodes.forEach(um)):this.nodes.forEach(Nl),this.clearAllSnapshots();const a=ye.now();ce.delta=je(0,1e3/60,a-ce.timestamp),ce.timestamp=a,ce.isProcessing=!0,Mr.update.process(ce),Mr.preRender.process(ce),Mr.render.process(ce),ce.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ao.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(pm),this.sharedNodes.forEach(bm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,J.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){J.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!pe(this.snapshot.measuredBox.x)&&!pe(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 i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=te(),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 l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!El(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(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 l=this.removeElementScroll(a);return i&&(l=this.removeTransform(l)),Cm(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return te();const a=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Tm))){const{scroll:d}=this.root;d&&(It(a.x,d.offset.x),It(a.y,d.offset.y))}return a}removeElementScroll(i){const a=te();if(Ee(a,i),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&&Ee(a,i),It(a.x,u.offset.x),It(a.y,u.offset.y))}return a}applyTransform(i,a=!1){const l=te();Ee(l,i);for(let d=0;d<this.path.length;d++){const u=this.path[d];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Lt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ct(u.latestValues)&&Lt(l,u.latestValues)}return ct(this.latestValues)&&Lt(l,this.latestValues),l}removeTransform(i){const a=te();Ee(a,i);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!ct(d.latestValues))continue;So(d.latestValues)&&d.updateSnapshot();const u=te(),c=d.measurePageBox();Ee(u,c),Tl(a,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return ct(this.latestValues)&&Tl(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 l=!!this.resumingFrom||this!==a;if(!(i||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=te(),this.relativeTargetOrigin=te(),rn(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Ee(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=te(),this.targetWithTransforms=te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$p(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ee(this.target,this.layout.layoutBox),La(this.target,this.targetDelta)):Ee(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=te(),this.relativeTargetOrigin=te(),rn(this.relativeTargetOrigin,this.target,h.target),Ee(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||So(this.parent.latestValues)||Ma(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 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;Ee(this.layoutCorrected,this.layout.layoutBox);const c=this.treeScale.x,h=this.treeScale.y;_f(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=te());const{target:m}=i;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(xl(this.prevProjectionDelta.x,this.projectionDelta.x),xl(this.prevProjectionDelta.y,this.projectionDelta.y)),nn(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==c||this.treeScale.y!==h||!Ml(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ml(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=Nt(),this.projectionDelta=Nt(),this.projectionDeltaWithTransform=Nt()}setAnimationOrigin(i,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=te(),m=l?l.source:void 0,g=this.layout?this.layout.source:void 0,v=m!==g,w=this.getStack(),y=!w||w.members.length<=1,S=!!(v&&!y&&this.options.crossfade===!0&&!this.path.some(xm));this.animationProgress=0;let x;this.mixTargetDelta=A=>{const P=A/1e3;Ol(c.x,i.x,P),Ol(c.y,i.y,P),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rn(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wm(this.relativeTarget,this.relativeTargetOrigin,h,P),x&&im(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=te()),Ee(x,this.relativeTarget)),v&&(this.animationValues=u,Qp(u,d,this.latestValues,P,S,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},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=J.update(()=>{Wn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=$t(0)),this.currentAnimation=Gp(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(lm),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:l,layout:d,latestValues:u}=i;if(!(!a||!l||!d)){if(this!==i&&this.layout&&d&&_l(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||te();const c=pe(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+c;const h=pe(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+h}Ee(a,l),Lt(a,u),nn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new sm),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:l}={}){const d=this.getStack();d&&d.promote(this,l),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:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const d={};l.z&&Lo("z",i,d,this.animationValues);for(let u=0;u<Io.length;u++)Lo(`rotate${Io[u]}`,i,d,this.animationValues),Lo(`skew${Io[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 l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=_n(a?.pointerEvents)||"",i.transform=l?l(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=l?l({},""):"none",this.hasProjected=!1);return}i.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let c=am(this.projectionDeltaWithTransform,this.treeScale,u);l&&(c=l(u,c)),i.transform=c;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],S=c==="none"?u[g]:v(u[g],d);if(w){const x=w.length;for(let A=0;A<x;A++)i[w[A]]=S}else y?this.options.visualElement.renderState.vars[g]=S:i[g]=S}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(Ll),this.root.sharedNodes.clear()}}}function dm(e){e.updateLayout()}function um(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"?ke(u=>{const c=s?t.measuredBox[u]:t.layoutBox[u],h=pe(c);c.min=n[u].min,c.max=c.min+h}):_l(o,t.layoutBox,n)&&ke(u=>{const c=s?t.measuredBox[u]:t.layoutBox[u],h=pe(n[u]);c.max=c.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const i=Nt();nn(i,n,t.layoutBox);const a=Nt();s?nn(a,e.applyTransform(r,!0),t.measuredBox):nn(a,n,t.layoutBox);const l=!El(i);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:c,layout:h}=u;if(c&&h){const m=te();rn(m,t.layoutBox,c.layoutBox);const g=te();rn(g,n,h.layoutBox),Dl(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:l,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function hm(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 fm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pm(e){e.clearSnapshot()}function Ll(e){e.clearMeasurements()}function Nl(e){e.isLayoutDirty=!1}function mm(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Bl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function gm(e){e.resolveTargetDelta()}function ym(e){e.calcProjection()}function vm(e){e.resetSkewAndRotation()}function bm(e){e.removeLeadSnapshot()}function Ol(e,t,n){e.translate=Q(t.translate,0,n),e.scale=Q(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Fl(e,t,n,r){e.min=Q(t.min,n.min,r),e.max=Q(t.max,n.max,r)}function wm(e,t,n,r){Fl(e.x,t.x,n.x,r),Fl(e.y,t.y,n.y,r)}function xm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Sm={duration:.45,ease:[.4,0,.1,1]},jl=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),zl=jl("applewebkit/")&&!jl("chrome/")?Math.round:Ce;function Rl(e){e.min=zl(e.min),e.max=zl(e.max)}function Cm(e){Rl(e.x),Rl(e.y)}function _l(e,t,n){return e==="position"||e==="preserve-aspect"&&!Dp($l(t),$l(n),.2)}function Tm(e){return e!==e.root&&e.scroll?.wasRoot}const km=Il({attachResizeListener:(e,t)=>Qt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),No={current:void 0},Hl=Il({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!No.current){const e=new km({});e.mount(window),e.setOptions({layoutScroll:!0}),No.current=e}return No.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Em={pan:{Feature:Up},drag:{Feature:Hp,ProjectionNode:Hl,MeasureLayout:pl}};function Ul(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&&J.postRender(()=>s(t,en(t)))}class Pm extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=Gh(t,(n,r)=>(Ul(this.node,r,"Start"),o=>Ul(this.node,o,"End"))))}unmount(){}}class Am 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 Wl(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&&J.postRender(()=>s(t,en(t)))}class Dm extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=Jh(t,(n,r)=>(Wl(this.node,r,"Start"),(o,{success:s})=>Wl(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Bo=new WeakMap,Oo=new WeakMap,$m=e=>{const t=Bo.get(e.target);t&&t(e)},Mm=e=>{e.forEach($m)};function Vm({root:e,...t}){const n=e||document;Oo.has(n)||Oo.set(n,{});const r=Oo.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Mm,{root:e,...t})),r[o]}function Im(e,t,n){const r=Vm(t);return Bo.set(e,n),r.observe(e),()=>{Bo.delete(e),r.unobserve(e)}}const Lm={some:0,all:1};class Nm 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:Lm[o]},a=l=>{const{isIntersecting:d}=l;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:c}=this.node.getProps(),h=d?u:c;h&&h(l)};return Im(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(Bm(t,n))&&this.startObserver()}unmount(){}}function Bm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Om={...Cp,...{inView:{Feature:Nm},tap:{Feature:Dm},focus:{Feature:Am},hover:{Feature:Pm}},...Em,...{layout:{ProjectionNode:Hl,MeasureLayout:pl}}},_e=jf(Om,Jf),Fm={sm:b`
234
+ `),()=>{x.contains(v)&&x.removeChild(v)}},[t]),p.jsx(of,{isPresent:t,childRef:s,sizeRef:i,children:cn.cloneElement(e,{ref:l})})}const af=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:i,anchorX:a,root:l})=>{const d=xr(lf),u=f.useId();let c=!0,h=f.useMemo(()=>(c=!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&&c&&(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(sf,{isPresent:n,anchorX:a,root:l,children:e})),p.jsx(Dn.Provider,{value:h,children:e})};function lf(){return new Map}function ha(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 fa(e){const t=[];return f.Children.forEach(e,n=>{f.isValidElement(n)&&t.push(n)}),t}const Zt=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:i=!1,anchorX:a="left",root:l})=>{const[d,u]=ha(i),c=f.useMemo(()=>fa(e),[e]),h=i&&!d?[]:c.map(On),m=f.useRef(!0),g=f.useRef(c),v=xr(()=>new Map),[x,y]=f.useState(c),[C,w]=f.useState(c);Qi(()=>{m.current=!1,g.current=c;for(let k=0;k<C.length;k++){const P=On(C[k]);h.includes(P)?v.delete(P):v.get(P)!==!0&&v.set(P,!1)}},[C,h.length,h.join("-")]);const A=[];if(c!==x){let k=[...c];for(let P=0;P<C.length;P++){const D=C[P],N=On(D);h.includes(N)||(k.splice(P,0,D),A.push(D))}return s==="wait"&&A.length&&(k=A),w(fa(k)),y(c),null}process.env.NODE_ENV!=="production"&&s==="wait"&&C.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:E}=f.useContext(wr);return p.jsx(p.Fragment,{children:C.map(k=>{const P=On(k),D=i&&!d?!1:c===C||h.includes(P),N=()=>{if(v.has(P))v.set(P,!0);else return;let _=!0;v.forEach($=>{$||(_=!1)}),_&&(E?.(),w(g.current),i&&u?.(),r&&r())};return p.jsx(af,{isPresent:D,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:l,onExitComplete:D?void 0:N,anchorX:a,children:k},P)})})},pa=f.createContext({strict:!1}),ma={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 ma)Mt[e]={isEnabled:t=>ma[e].some(n=>!!t[n])};function cf(e){for(const t in e)Mt[t]={...Mt[t],...e[t]}}const df=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")||df.has(e)}let ga=e=>!Fn(e);function uf(e){typeof e=="function"&&(ga=t=>t.startsWith("on")?!Fn(t):e(t))}try{uf(require("@emotion/is-prop-valid").default)}catch{}function hf(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(ga(o)||n===!0&&Fn(o)||!t&&!Fn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const jn=f.createContext({});function zn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function qt(e){return typeof e=="string"||Array.isArray(e)}const ho=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],fo=["initial",...ho];function Rn(e){return zn(e.animate)||fo.some(t=>qt(e[t]))}function ya(e){return!!(Rn(e)||e.variants)}function ff(e,t){if(Rn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||qt(n)?n:void 0,animate:qt(r)?r:void 0}}return e.inherit!==!1?t:{}}function pf(e){const{initial:t,animate:n}=ff(e,f.useContext(jn));return f.useMemo(()=>({initial:t,animate:n}),[va(t),va(n)])}function va(e){return Array.isArray(e)?e.join(" "):e}const Jt={};function mf(e){for(const t in e)Jt[t]=e[t],Vr(t)&&(Jt[t].isCSSVariable=!0)}function ba(e,{layout:t,layoutId:n}){return Dt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Jt[e]||e==="opacity")}const gf={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},yf=At.length;function vf(e,t,n){let r="",o=!0;for(let s=0;s<yf;s++){const i=At[s],a=e[i];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(i.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const d=ta(a,so[i]);if(!l){o=!1;const u=gf[i]||i;r+=`${u}(${d}) `}n&&(t[i]=d)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function po(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let i=!1,a=!1;for(const l in t){const d=t[l];if(Dt.has(l)){i=!0;continue}else if(Vr(l)){o[l]=d;continue}else{const u=ta(d,so[l]);l.startsWith("origin")?(a=!0,s[l]=u):r[l]=u}}if(t.transform||(i||n?r.transform=vf(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:d="50%",originZ:u=0}=s;r.transformOrigin=`${l} ${d} ${u}`}}const mo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function wa(e,t,n){for(const r in t)!he(t[r])&&!ba(r,n)&&(e[r]=t[r])}function bf({transformTemplate:e},t){return f.useMemo(()=>{const n=mo();return po(n,t,e),Object.assign({},n.vars,n.style)},[t])}function wf(e,t){const n=e.style||{},r={};return wa(r,n,e),Object.assign(r,bf(e,t)),r}function xf(e,t){const n={},r=wf(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"},Cf={offset:"strokeDashoffset",array:"strokeDasharray"};function Tf(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?Sf:Cf;e[s.offset]=M.transform(-r);const i=M.transform(t),a=M.transform(n);e[s.array]=`${i} ${a}`}function xa(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:s=1,pathOffset:i=0,...a},l,d,u){if(po(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&&Tf(c,o,s,i,!1)}const Sa=()=>({...mo(),attrs:{}}),Ca=e=>typeof e=="string"&&e.toLowerCase()==="svg";function kf(e,t,n,r){const o=f.useMemo(()=>{const s=Sa();return xa(s,t,Ca(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};wa(s,e.style,e),o.style={...s,...o.style}}return o}const Ef=["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 go(e){return typeof e!="string"||e.includes("-")?!1:!!(Ef.indexOf(e)>-1||/[A-Z]/u.test(e))}function Pf(e,t,n,{latestValues:r},o,s=!1){const a=(go(e)?kf:xf)(t,r,o,e),l=hf(t,typeof e=="string",s),d=e!==f.Fragment?{...l,...a,ref:n}:{},{children:u}=t,c=f.useMemo(()=>he(u)?u.get():u,[u]);return f.createElement(e,{...d,children:c})}function Ta(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function yo(e,t,n,r){if(typeof t=="function"){const[o,s]=Ta(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]=Ta(r);t=t(n!==void 0?n:e.custom,o,s)}return t}function _n(e){return he(e)?e.get():e}function Af({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Df(n,r,o,e),renderState:t()}}function Df(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 l=Rn(e),d=ya(e);t&&d&&!l&&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 c=u?a:i;if(c&&typeof c!="boolean"&&!zn(c)){const h=Array.isArray(c)?c:[c];for(let m=0;m<h.length;m++){const g=yo(e,h[m]);if(g){const{transitionEnd:v,transition:x,...y}=g;for(const C in y){let w=y[C];if(Array.isArray(w)){const A=u?w.length-1:0;w=w[A]}w!==null&&(o[C]=w)}for(const C in v)o[C]=v[C]}}}return o}const ka=e=>(t,n)=>{const r=f.useContext(jn),o=f.useContext(Dn),s=()=>Af(e,t,r,o);return n?s():xr(s)};function vo(e,t,n){const{style:r}=e,o={};for(const s in r)(he(r[s])||t.style&&he(t.style[s])||ba(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(o[s]=r[s]);return o}const $f=ka({scrapeMotionValuesFromProps:vo,createRenderState:mo});function Ea(e,t,n){const r=vo(e,t,n);for(const o in e)if(he(e[o])||he(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=ka({scrapeMotionValuesFromProps:Ea,createRenderState:Sa}),Vf=Symbol.for("motionComponentSymbol");function Vt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function If(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):Vt(n)&&(n.current=r))},[t])}const bo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Pa="data-"+bo("framerAppearId"),Aa=f.createContext({});function Lf(e,t,n,r,o){const{visualElement:s}=f.useContext(jn),i=f.useContext(pa),a=f.useContext(Dn),l=f.useContext(uo).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:l}));const u=d.current,c=f.useContext(Aa);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&Nf(d.current,n,o,c);const h=f.useRef(!1);f.useInsertionEffect(()=>{u&&h.current&&u.update(n,a)});const m=n[Pa],g=f.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return Qi(()=>{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 Nf(e,t,n,r){const{layoutId:o,layout:s,drag:i,dragConstraints:a,layoutScroll:l,layoutRoot:d,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Da(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!i||a&&Vt(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:d})}function Da(e){if(e)return e.options.allowProjection!==!1?e.projection:Da(e.parent)}function wo(e,{forwardMotionProps:t=!1}={},n,r){n&&cf(n);const o=go(e)?Mf:$f;function s(a,l){let d;const u={...f.useContext(uo),...a,layoutId:Bf(a)},{isStatic:c}=u,h=pf(a),m=o(a,c);if(!c&&Sr){Of(u,n);const g=Ff(u);d=g.MeasureLayout,h.visualElement=Lf(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,Pf(e,a,If(m,h.visualElement,l),m,c,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const i=f.forwardRef(s);return i[Vf]=e,i}function Bf({layoutId:e}){const t=f.useContext(wr).id;return t&&e!==void 0?t+"-"+e:e}function Of(e,t){const n=f.useContext(pa).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"):ze(!1,r,"lazy-strict-mode")}}function Ff(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 jf(e,t){if(typeof Proxy>"u")return wo;const n=new Map,r=(s,i)=>wo(s,i,e,t),o=(s,i)=>(process.env.NODE_ENV!=="production"&&Ar(!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,wo(i,void 0,e,t)),n.get(i))})}function $a({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function zf({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Rf(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 xo(e){return e===void 0||e===1}function So({scale:e,scaleX:t,scaleY:n}){return!xo(e)||!xo(t)||!xo(n)}function ct(e){return So(e)||Ma(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ma(e){return Va(e.x)||Va(e.y)}function Va(e){return e&&e!=="0%"}function Hn(e,t,n){const r=e-n,o=t*r;return n+o}function Ia(e,t,n,r,o){return o!==void 0&&(e=Hn(e,o,r)),Hn(e,n,r)+t}function Co(e,t=0,n=1,r,o){e.min=Ia(e.min,t,n,r,o),e.max=Ia(e.max,t,n,r,o)}function La(e,{x:t,y:n}){Co(e.x,t.translate,t.scale,t.originPoint),Co(e.y,n.translate,n.scale,n.originPoint)}const Na=.999999999999,Ba=1.0000000000001;function _f(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:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Lt(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,La(e,i)),r&&ct(s.latestValues)&&Lt(e,s.latestValues))}t.x<Ba&&t.x>Na&&(t.x=1),t.y<Ba&&t.y>Na&&(t.y=1)}function It(e,t){e.min=e.min+t,e.max=e.max+t}function Oa(e,t,n,r,o=.5){const s=ee(e.min,e.max,o);Co(e,t,n,s,r)}function Lt(e,t){Oa(e.x,t.x,t.scaleX,t.scale,t.originX),Oa(e.y,t.y,t.scaleY,t.scale,t.originY)}function Fa(e,t){return $a(Rf(e.getBoundingClientRect(),t))}function Hf(e,t,n){const r=Fa(e,n),{scroll:o}=t;return o&&(It(r.x,o.offset.x),It(r.y,o.offset.y)),r}const ja=()=>({translate:0,scale:1,origin:0,originPoint:0}),Nt=()=>({x:ja(),y:ja()}),za=()=>({min:0,max:0}),ne=()=>({x:za(),y:za()}),To={current:null},Ra={current:!1};function Uf(){if(Ra.current=!0,!!Sr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>To.current=e.matches;e.addEventListener("change",t),t()}else To.current=!1}const Wf=new WeakMap;function Kf(e,t,n){for(const r in t){const o=t[r],s=n[r];if(he(o))e.addValue(r,o);else if(he(s))e.addValue(r,$t(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,$t(i!==void 0?i:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const _a=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Yf{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=no,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=ye.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,J.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=i;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=!!s,this.isControllingVariants=Rn(n),this.isVariantNode=ya(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 m=c[h];l[h]!==void 0&&he(m)&&m.set(l[h])}}mount(t){this.current=t,Wf.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)),Ra.current||Uf(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:To.current,process.env.NODE_ENV!=="production"&&Ar(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&&J.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 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 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):ne()}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<_a.length;r++){const o=_a[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=Kf(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=$t(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"&&(es(r)||ns(r))?r=parseFloat(r):!tf(r)&&Ge.test(n)&&(r=ea(t,n)),this.setBaseTarget(t,he(r)?r.get():r)),he(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=yo(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&&!he(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 Pr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ao.render(this.render)}}class Ha extends Yf{constructor(){super(...arguments),this.KeyframeResolver=Hh}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;he(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ua(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 Gf(e){return window.getComputedStyle(e)}class Xf extends Ha{constructor(){super(...arguments),this.type="html",this.renderInstance=Ua}readValueFromInstance(t,n){if(Dt.has(n))return this.projection?.isProjecting?qr(n):lh(t,n);{const r=Gf(t),o=(Vr(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Fa(t,n)}build(t,n,r){po(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return vo(t,n,r)}}const Wa=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 Zf(e,t,n,r){Ua(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Wa.has(o)?o:bo(o),t.attrs[o])}class qf extends Ha{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ne}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Dt.has(n)){const r=Qs(n);return r&&r.default||0}return n=Wa.has(n)?n:bo(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Ea(t,n,r)}build(t,n,r){xa(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){Zf(t,n,r,o)}mount(t){this.isSVGTag=Ca(t.tagName),super.mount(t)}}const Jf=(e,t)=>go(e)?new qf(t):new Xf(t,{allowProjection:e!==f.Fragment});function Bt(e,t,n){const r=e.getProps();return yo(r,t,n!==void 0?n:r.custom,e)}const ko=e=>Array.isArray(e);function Qf(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,$t(n))}function ep(e){return ko(e)?e[e.length-1]||0:e}function tp(e,t){const n=Bt(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const i in s){const a=ep(s[i]);Qf(e,i,a)}}function np(e){return!!(he(e)&&e.add)}function Eo(e,t){const n=e.getValue("willChange");if(np(n))return n.add(t);if(!n&&Re.WillChange){const r=new Re.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ka(e){return e.props[Pa]}const rp=e=>e!==null;function op(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(rp),s=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[s]}const ip={type:"spring",stiffness:500,damping:25,restSpeed:10},sp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ap={type:"keyframes",duration:.8},lp={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cp=(e,{keyframes:t})=>t.length>2?ap:Dt.has(e)?e.startsWith("scale")?sp(t[1]):ip:lp;function dp({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:l,elapsed:d,...u}){return!!Object.keys(u).length}const Po=(e,t,n,r={},o,s)=>i=>{const a=oo(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:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:o};dp(a)||Object.assign(u,cp(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)&&(ro(u),u.delay===0&&(c=!0)),(Re.instantAnimations||Re.skipAnimations)&&(c=!0,ro(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,c&&!s&&t.get()!==void 0){const h=op(u.keyframes,a);if(h!==void 0){J.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Gr(u):new Mh(u)};function up({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ya(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:i,...a}=t;r&&(s=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&&up(d,u))continue;const m={delay:n,...oo(s||{},u)},g=c.get();if(g!==void 0&&!c.isAnimating&&!Array.isArray(h)&&h===g&&!m.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const y=Ka(e);if(y){const C=window.MotionHandoffAnimation(y,u,J);C!==null&&(m.startTime=C,v=!0)}}Eo(e,u),c.start(Po(u,c,h,e.shouldReduceMotion&&Gs.has(u)?{type:!1}:m,e,v));const x=c.animation;x&&l.push(x)}return i&&Promise.all(l).then(()=>{J.update(()=>{i&&tp(e,i)})}),l}function Ga(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 Ao(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(Ya(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:c}=o;return hp(e,t,l,d,u,c,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,d]=a==="beforeChildren"?[s,i]:[i,s];return l().then(()=>d())}else return Promise.all([s(),i(n.delay)])}function hp(e,t,n=0,r=0,o=0,s=1,i){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Ao(l,t,{...i,delay:n+(typeof r=="function"?0:r)+Ga(e.variantChildren,l,r,o,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function fp(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>Ao(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=Ao(e,t,n);else{const o=typeof t=="function"?Bt(e,t,n.custom):t;r=Promise.all(Ya(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Xa(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 pp=fo.length;function Za(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Za(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<pp;n++){const r=fo[n],o=e.props[r];(qt(o)||o===!1)&&(t[r]=o)}return t}const mp=[...ho].reverse(),gp=ho.length;function yp(e){return t=>Promise.all(t.map(({animation:n,options:r})=>fp(e,n,r)))}function vp(e){let t=yp(e),n=qa(),r=!0;const o=l=>(d,u)=>{const c=Bt(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(c){const{transition:h,transitionEnd:m,...g}=c;d={...d,...g,...m}}return d};function s(l){t=l(e)}function i(l){const{props:d}=e,u=Za(e.parent)||{},c=[],h=new Set;let m={},g=1/0;for(let x=0;x<gp;x++){const y=mp[x],C=n[y],w=d[y]!==void 0?d[y]:u[y],A=qt(w),E=y===l?C.isActive:null;E===!1&&(g=x);let k=w===u[y]&&w!==d[y]&&A;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),C.protectedKeys={...m},!C.isActive&&E===null||!w&&!C.prevProp||zn(w)||typeof w=="boolean")continue;const P=bp(C.prevProp,w);let D=P||y===l&&C.isActive&&!k&&A||x>g&&A,N=!1;const _=Array.isArray(w)?w:[w];let $=_.reduce(o(y),{});E===!1&&($={});const{prevResolvedValues:H={}}=C,U={...H,...$},G=I=>{D=!0,h.has(I)&&(N=!0,h.delete(I)),C.needsAnimating[I]=!0;const R=e.getValue(I);R&&(R.liveStyle=!1)};for(const I in U){const R=$[I],B=H[I];if(m.hasOwnProperty(I))continue;let z=!1;ko(R)&&ko(B)?z=!Xa(R,B):z=R!==B,z?R!=null?G(I):h.add(I):R!==void 0&&h.has(I)?G(I):C.protectedKeys[I]=!0}C.prevProp=w,C.prevResolvedValues=$,C.isActive&&(m={...m,...$}),r&&e.blockInitialAnimation&&(D=!1);const Q=k&&P;D&&(!Q||N)&&c.push(..._.map(I=>{const R={type:y};if(typeof I=="string"&&r&&!Q&&e.manuallyAnimateOnMount&&e.parent){const{parent:B}=e,z=Bt(B,I);if(B.enteringChildren&&z){const{delayChildren:ie}=z.transition||{};R.delay=Ga(B.enteringChildren,e,ie)}}return{animation:I,options:R}}))}if(h.size){const x={};if(typeof d.initial!="boolean"){const y=Bt(e,Array.isArray(d.initial)?d.initial[0]:d.initial);y&&y.transition&&(x.transition=y.transition)}h.forEach(y=>{const C=e.getBaseTarget(y),w=e.getValue(y);w&&(w.liveStyle=!0),x[y]=C??null}),c.push({animation:x})}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=i(l);for(const c in n)n[c].protectedKeys={};return u}return{animateChanges:i,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=qa(),r=!0}}}function bp(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Xa(t,e):!1}function dt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qa(){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 wp extends Xe{constructor(t){super(t),t.animationState||(t.animationState=vp(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();zn(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 xp=0;class Sp extends Xe{constructor(){super(...arguments),this.id=xp++}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 Cp={animation:{Feature:wp},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 Tp=e=>t=>lo(t)&&e(t,en(t));function tn(e,t,n,r){return Qt(e,t,Tp(n),r)}const Ja=1e-4,kp=1-Ja,Ep=1+Ja,Qa=.01,Pp=0-Qa,Ap=0+Qa;function pe(e){return e.max-e.min}function Dp(e,t,n){return Math.abs(e-t)<=n}function el(e,t,n,r=.5){e.origin=r,e.originPoint=ee(t.min,t.max,e.origin),e.scale=pe(n)/pe(t),e.translate=ee(n.min,n.max,e.origin)-e.originPoint,(e.scale>=kp&&e.scale<=Ep||isNaN(e.scale))&&(e.scale=1),(e.translate>=Pp&&e.translate<=Ap||isNaN(e.translate))&&(e.translate=0)}function nn(e,t,n,r){el(e.x,t.x,n.x,r?r.originX:void 0),el(e.y,t.y,n.y,r?r.originY:void 0)}function tl(e,t,n){e.min=n.min+t.min,e.max=e.min+pe(t)}function $p(e,t,n){tl(e.x,t.x,n.x),tl(e.y,t.y,n.y)}function nl(e,t,n){e.min=t.min-n.min,e.max=e.min+pe(t)}function rn(e,t,n){nl(e.x,t.x,n.x),nl(e.y,t.y,n.y)}function ke(e){return[e("x"),e("y")]}const rl=({current:e})=>e?e.ownerDocument.defaultView:null,ol=(e,t)=>Math.abs(e-t);function Mp(e,t){const n=ol(e.x,t.x),r=ol(e.y,t.y);return Math.sqrt(n**2+r**2)}class il{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=$o(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:x}=de;this.history.push({...v,timestamp:x});const{onStart:y,onMove:C}=this.handlers;m||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Do(m,this.transformPagePoint),J.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=$o(h.type==="pointercancel"?this.lastMoveEventInfo:Do(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,y),v&&v(h,y)},!lo(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=o||window;const a=en(t),l=Do(a,this.transformPagePoint),{point:d}=l,{timestamp:u}=de;this.history=[{...d,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,$o(l,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 Do(e,t){return t?{point:t(e.point)}:e}function sl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $o({point:e},t){return{point:e,delta:sl(e,al(t)),offset:sl(e,Vp(t)),velocity:Ip(t,.1)}}function Vp(e){return e[0]}function al(e){return e[e.length-1]}function Ip(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=al(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 Lp(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ee(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ee(n,e,r.max):Math.min(e,n)),e}function ll(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 Np(e,{top:t,left:n,bottom:r,right:o}){return{x:ll(e.x,n,o),y:ll(e.y,t,r)}}function cl(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 Bp(e,t){return{x:cl(e.x,t.x),y:cl(e.y,t.y)}}function Op(e,t){let n=.5;const r=pe(e),o=pe(t);return o>r?n=Ht(t.min,t.max-r,e.min):r>o&&(n=Ht(e.min,e.max-o,t.min)),je(0,1,n)}function Fp(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 Mo=.35;function jp(e=Mo){return e===!1?e=0:e===!0&&(e=Mo),{x:dl(e,"left","right"),y:dl(e,"top","bottom")}}function dl(e,t,n){return{min:ul(e,t),max:ul(e,n)}}function ul(e,t){return typeof e=="number"?e:e[t]||0}const zp=new WeakMap;class Rp{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=ne(),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=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(en(c).point)},i=(c,h)=>{const{drag:m,dragPropagation:g,onDragStart:v}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Yh(m),!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),ke(y=>{let C=this.getAxisMotionValue(y).get()||0;if(Be.test(C)){const{projection:w}=this.visualElement;if(w&&w.layout){const A=w.layout.layoutBox[y];A&&(C=pe(A)*(parseFloat(C)/100))}}this.originPoint[y]=C}),v&&J.postRender(()=>v(c,h)),Eo(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(c,h)=>{this.latestPointerEvent=c,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:v,onDrag:x}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:y}=h;if(g&&this.currentDirection===null){this.currentDirection=_p(y),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),x&&x(c,h)},l=(c,h)=>{this.latestPointerEvent=c,this.latestPanInfo=h,this.stop(c,h),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>ke(c=>this.getAnimationState(c)==="paused"&&this.getAxisMotionValue(c).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new il(t,{onSessionStart:s,onStart:i,onMove:a,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:rl(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&&J.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=Lp(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&&Vt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Np(r.layoutBox,t):this.constraints=!1,this.elastic=jp(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ke(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Fp(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Vt(t))return!1;const r=t.current;ze(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=Hf(r,o.root,this.visualElement.getTransformPagePoint());let i=Bp(o.layout.layoutBox,s);if(n){const a=n(zf(i));this.hasMutatedConstraints=!!a,a&&(i=$a(a))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},d=ke(u=>{if(!Un(u,n,this.currentDirection))return;let c=l&&l[u]||{};i&&(c={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,...c};return this.startAxisValueAnimation(u,g)});return Promise.all(d).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Eo(this.visualElement,t),r.start(Po(t,r,0,n,this.visualElement,!1))}stopAnimation(){ke(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ke(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){ke(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]-ee(i,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Vt(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ke(i=>{const a=this.getAxisMotionValue(i);if(a&&this.constraints!==!1){const l=a.get();o[i]=Op({min:l,max:l},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(),ke(i=>{if(!Un(i,t,null))return;const a=this.getAxisMotionValue(i),{min:l,max:d}=this.constraints[i];a.set(ee(l,d,o[i]))})}addListeners(){if(!this.visualElement.current)return;zp.set(this.visualElement,this);const t=this.visualElement.current,n=tn(t,"pointerdown",l=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Vt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),J.read(r);const i=Qt(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(ke(u=>{const c=this.getAxisMotionValue(u);c&&(this.originPoint[u]+=l[u].translate,c.set(c.get()+l[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=Mo,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 _p(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Hp extends Xe{constructor(t){super(t),this.removeGroupControls=Ce,this.removeListeners=Ce,this.controls=new Rp(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ce}unmount(){this.removeGroupControls(),this.removeListeners()}}const hl=e=>(t,n)=>{e&&J.postRender(()=>e(t,n))};class Up extends Xe{constructor(){super(...arguments),this.removePointerDownListener=Ce}onPointerDown(t){this.session=new il(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:hl(t),onStart:hl(n),onMove:r,onEnd:(s,i)=>{delete this.session,o&&J.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 fl(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(M.test(e))e=parseFloat(e);else return e;const n=fl(e,t.target.x),r=fl(e,t.target.y);return`${n}% ${r}%`}},Wp={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,l=n.y.scale*t.y;o[0+i]/=a,o[1+i]/=l;const d=ee(a,l,.5);return typeof o[2+i]=="number"&&(o[2+i]/=d),typeof o[3+i]=="number"&&(o[3+i]/=d),s(o)}};let Vo=!1;class Kp extends f.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;mf(Yp),s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),Vo&&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,Vo=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||J.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ao.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Vo=!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 pl(e){const[t,n]=ha(),r=f.useContext(wr);return p.jsx(Kp,{...e,layoutGroup:r,switchLayoutGroup:f.useContext(Aa),isPresent:t,safeToRemove:n})}const Yp={borderRadius:{...on,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:on,borderTopRightRadius:on,borderBottomLeftRadius:on,borderBottomRightRadius:on,boxShadow:Wp};function Gp(e,t,n){const r=he(e)?e:$t(e);return r.start(Po("",r,t,n)),r.animation}const Xp=(e,t)=>e.depth-t.depth;class Zp{constructor(){this.children=[],this.isDirty=!1}add(t){Cr(this.children,t),this.isDirty=!0}remove(t){Tr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Xp),this.isDirty=!1,this.children.forEach(t)}}function qp(e,t){const n=ye.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(Ke(r),e(s-t))};return J.setup(r,!0),()=>Ke(r)}const ml=["TopLeft","TopRight","BottomLeft","BottomRight"],Jp=ml.length,gl=e=>typeof e=="string"?parseFloat(e):e,yl=e=>typeof e=="number"||M.test(e);function Qp(e,t,n,r,o,s){o?(e.opacity=ee(0,n.opacity??1,em(r)),e.opacityExit=ee(t.opacity??1,0,tm(r))):s&&(e.opacity=ee(t.opacity??1,n.opacity??1,r));for(let i=0;i<Jp;i++){const a=`border${ml[i]}Radius`;let l=vl(t,a),d=vl(n,a);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||yl(l)===yl(d)?(e[a]=Math.max(ee(gl(l),gl(d),r),0),(Be.test(d)||Be.test(l))&&(e[a]+="%")):e[a]=d}(t.rotate||n.rotate)&&(e.rotate=ee(t.rotate||0,n.rotate||0,r))}function vl(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const em=bl(0,.5,us),tm=bl(.5,.95,Ce);function bl(e,t,n){return r=>r<e?0:r>t?1:n(Ht(e,t,r))}function wl(e,t){e.min=t.min,e.max=t.max}function Ee(e,t){wl(e.x,t.x),wl(e.y,t.y)}function xl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Sl(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 nm(e,t=0,n=1,r=.5,o,s=e,i=e){if(Be.test(t)&&(t=parseFloat(t),t=ee(i.min,i.max,t/100)-i.min),typeof t!="number")return;let a=ee(s.min,s.max,r);e===s&&(a-=t),e.min=Sl(e.min,t,n,a,o),e.max=Sl(e.max,t,n,a,o)}function Cl(e,t,[n,r,o],s,i){nm(e,t[n],t[r],t[o],t.scale,s,i)}const rm=["x","scaleX","originX"],om=["y","scaleY","originY"];function Tl(e,t,n,r){Cl(e.x,t,rm,n?n.x:void 0,r?r.x:void 0),Cl(e.y,t,om,n?n.y:void 0,r?r.y:void 0)}function kl(e){return e.translate===0&&e.scale===1}function El(e){return kl(e.x)&&kl(e.y)}function Pl(e,t){return e.min===t.min&&e.max===t.max}function im(e,t){return Pl(e.x,t.x)&&Pl(e.y,t.y)}function Al(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Dl(e,t){return Al(e.x,t.x)&&Al(e.y,t.y)}function $l(e){return pe(e.x)/pe(e.y)}function Ml(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class sm{constructor(){this.members=[]}add(t){Cr(this.members,t),t.scheduleRender()}remove(t){if(Tr(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 am(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:c,rotateY:h,skewX:m,skewY:g}=n;d&&(r=`perspective(${d}px) ${r}`),u&&(r+=`rotate(${u}deg) `),c&&(r+=`rotateX(${c}deg) `),h&&(r+=`rotateY(${h}deg) `),m&&(r+=`skewX(${m}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 Io=["","X","Y","Z"],lm=1e3;let cm=0;function Lo(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Vl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ka(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",J,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Vl(r)}function Il({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i={},a=t?.()){this.id=cm++,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(hm),this.nodes.forEach(gm),this.nodes.forEach(ym),this.nodes.forEach(fm)},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 l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Zp)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new Pr),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const l=this.eventHandlers.get(i);l&&l.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=da(i)&&!Qh(i),this.instance=i;const{layoutId:a,layout:l,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&&(l||a)&&(this.isLayoutDirty=!0),e){let u,c=0;const h=()=>this.root.updateBlockedByResize=!1;J.read(()=>{c=window.innerWidth}),e(i,()=>{const m=window.innerWidth;m!==c&&(c=m,this.root.updateBlockedByResize=!0,u&&u(),u=qp(h,250),Wn.hasAnimatedSinceResize&&(Wn.hasAnimatedSinceResize=!1,this.nodes.forEach(Bl)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&d&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c,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:x}=d.getProps(),y=!this.targetLayout||!Dl(this.targetLayout,m),C=!c&&h;if(this.options.layoutRoot||this.resumeFrom||C||c&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...oo(g,"layout"),onPlay:v,onComplete:x};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(u,C)}else c||Bl(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(vm),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&&Vl(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(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ll);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Nl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mm),this.nodes.forEach(dm),this.nodes.forEach(um)):this.nodes.forEach(Nl),this.clearAllSnapshots();const a=ye.now();de.delta=je(0,1e3/60,a-de.timestamp),de.timestamp=a,de.isProcessing=!0,Mr.update.process(de),Mr.preRender.process(de),Mr.render.process(de),de.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ao.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(pm),this.sharedNodes.forEach(bm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,J.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){J.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!pe(this.snapshot.measuredBox.x)&&!pe(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 i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ne(),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 l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!El(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(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 l=this.removeElementScroll(a);return i&&(l=this.removeTransform(l)),Cm(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return ne();const a=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Tm))){const{scroll:d}=this.root;d&&(It(a.x,d.offset.x),It(a.y,d.offset.y))}return a}removeElementScroll(i){const a=ne();if(Ee(a,i),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&&Ee(a,i),It(a.x,u.offset.x),It(a.y,u.offset.y))}return a}applyTransform(i,a=!1){const l=ne();Ee(l,i);for(let d=0;d<this.path.length;d++){const u=this.path[d];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Lt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ct(u.latestValues)&&Lt(l,u.latestValues)}return ct(this.latestValues)&&Lt(l,this.latestValues),l}removeTransform(i){const a=ne();Ee(a,i);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!ct(d.latestValues))continue;So(d.latestValues)&&d.updateSnapshot();const u=ne(),c=d.measurePageBox();Ee(u,c),Tl(a,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return ct(this.latestValues)&&Tl(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!==de.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 l=!!this.resumingFrom||this!==a;if(!(i||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=de.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ne(),this.relativeTargetOrigin=ne(),rn(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Ee(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ne(),this.targetWithTransforms=ne()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$p(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ee(this.target,this.layout.layoutBox),La(this.target,this.targetDelta)):Ee(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=ne(),this.relativeTargetOrigin=ne(),rn(this.relativeTargetOrigin,this.target,h.target),Ee(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||So(this.parent.latestValues)||Ma(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 l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===de.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;Ee(this.layoutCorrected,this.layout.layoutBox);const c=this.treeScale.x,h=this.treeScale.y;_f(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=ne());const{target:m}=i;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(xl(this.prevProjectionDelta.x,this.projectionDelta.x),xl(this.prevProjectionDelta.y,this.projectionDelta.y)),nn(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==c||this.treeScale.y!==h||!Ml(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ml(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=Nt(),this.projectionDelta=Nt(),this.projectionDeltaWithTransform=Nt()}setAnimationOrigin(i,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=ne(),m=l?l.source:void 0,g=this.layout?this.layout.source:void 0,v=m!==g,x=this.getStack(),y=!x||x.members.length<=1,C=!!(v&&!y&&this.options.crossfade===!0&&!this.path.some(xm));this.animationProgress=0;let w;this.mixTargetDelta=A=>{const E=A/1e3;Ol(c.x,i.x,E),Ol(c.y,i.y,E),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rn(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wm(this.relativeTarget,this.relativeTargetOrigin,h,E),w&&im(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=ne()),Ee(w,this.relativeTarget)),v&&(this.animationValues=u,Qp(u,d,this.latestValues,E,C,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},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=J.update(()=>{Wn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=$t(0)),this.currentAnimation=Gp(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(lm),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:l,layout:d,latestValues:u}=i;if(!(!a||!l||!d)){if(this!==i&&this.layout&&d&&_l(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||ne();const c=pe(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+c;const h=pe(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+h}Ee(a,l),Lt(a,u),nn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new sm),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:l}={}){const d=this.getStack();d&&d.promote(this,l),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:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const d={};l.z&&Lo("z",i,d,this.animationValues);for(let u=0;u<Io.length;u++)Lo(`rotate${Io[u]}`,i,d,this.animationValues),Lo(`skew${Io[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 l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=_n(a?.pointerEvents)||"",i.transform=l?l(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=l?l({},""):"none",this.hasProjected=!1);return}i.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let c=am(this.projectionDeltaWithTransform,this.treeScale,u);l&&(c=l(u,c)),i.transform=c;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:x,isCSSVariable:y}=Jt[g],C=c==="none"?u[g]:v(u[g],d);if(x){const w=x.length;for(let A=0;A<w;A++)i[x[A]]=C}else y?this.options.visualElement.renderState.vars[g]=C:i[g]=C}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(Ll),this.root.sharedNodes.clear()}}}function dm(e){e.updateLayout()}function um(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"?ke(u=>{const c=s?t.measuredBox[u]:t.layoutBox[u],h=pe(c);c.min=n[u].min,c.max=c.min+h}):_l(o,t.layoutBox,n)&&ke(u=>{const c=s?t.measuredBox[u]:t.layoutBox[u],h=pe(n[u]);c.max=c.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const i=Nt();nn(i,n,t.layoutBox);const a=Nt();s?nn(a,e.applyTransform(r,!0),t.measuredBox):nn(a,n,t.layoutBox);const l=!El(i);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:c,layout:h}=u;if(c&&h){const m=ne();rn(m,t.layoutBox,c.layoutBox);const g=ne();rn(g,n,h.layoutBox),Dl(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:l,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function hm(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 fm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pm(e){e.clearSnapshot()}function Ll(e){e.clearMeasurements()}function Nl(e){e.isLayoutDirty=!1}function mm(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Bl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function gm(e){e.resolveTargetDelta()}function ym(e){e.calcProjection()}function vm(e){e.resetSkewAndRotation()}function bm(e){e.removeLeadSnapshot()}function Ol(e,t,n){e.translate=ee(t.translate,0,n),e.scale=ee(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Fl(e,t,n,r){e.min=ee(t.min,n.min,r),e.max=ee(t.max,n.max,r)}function wm(e,t,n,r){Fl(e.x,t.x,n.x,r),Fl(e.y,t.y,n.y,r)}function xm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Sm={duration:.45,ease:[.4,0,.1,1]},jl=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),zl=jl("applewebkit/")&&!jl("chrome/")?Math.round:Ce;function Rl(e){e.min=zl(e.min),e.max=zl(e.max)}function Cm(e){Rl(e.x),Rl(e.y)}function _l(e,t,n){return e==="position"||e==="preserve-aspect"&&!Dp($l(t),$l(n),.2)}function Tm(e){return e!==e.root&&e.scroll?.wasRoot}const km=Il({attachResizeListener:(e,t)=>Qt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),No={current:void 0},Hl=Il({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!No.current){const e=new km({});e.mount(window),e.setOptions({layoutScroll:!0}),No.current=e}return No.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Em={pan:{Feature:Up},drag:{Feature:Hp,ProjectionNode:Hl,MeasureLayout:pl}};function Ul(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&&J.postRender(()=>s(t,en(t)))}class Pm extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=Gh(t,(n,r)=>(Ul(this.node,r,"Start"),o=>Ul(this.node,o,"End"))))}unmount(){}}class Am 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 Wl(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&&J.postRender(()=>s(t,en(t)))}class Dm extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=Jh(t,(n,r)=>(Wl(this.node,r,"Start"),(o,{success:s})=>Wl(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Bo=new WeakMap,Oo=new WeakMap,$m=e=>{const t=Bo.get(e.target);t&&t(e)},Mm=e=>{e.forEach($m)};function Vm({root:e,...t}){const n=e||document;Oo.has(n)||Oo.set(n,{});const r=Oo.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Mm,{root:e,...t})),r[o]}function Im(e,t,n){const r=Vm(t);return Bo.set(e,n),r.observe(e),()=>{Bo.delete(e),r.unobserve(e)}}const Lm={some:0,all:1};class Nm 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:Lm[o]},a=l=>{const{isIntersecting:d}=l;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:c}=this.node.getProps(),h=d?u:c;h&&h(l)};return Im(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(Bm(t,n))&&this.startObserver()}unmount(){}}function Bm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Om={...Cp,...{inView:{Feature:Nm},tap:{Feature:Dm},focus:{Feature:Am},hover:{Feature:Pm}},...Em,...{layout:{ProjectionNode:Hl,MeasureLayout:pl}}},_e=jf(Om,Jf),Fm={sm:b`
235
235
  width: 1.25rem;
236
236
  height: 1.25rem;
237
237
  `,md:b`
@@ -251,26 +251,26 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
251
251
  color: var(--color-main-white);
252
252
  `,gray:b`
253
253
  color: var(--color-main-grey);
254
- `},jm=C.div`
254
+ `},jm=S.div`
255
255
  position: relative;
256
256
  display: block;
257
257
  ${({$size:e="md"})=>Fm[e]}
258
258
  ${({$color:e="primary"})=>Kl[e]}
259
259
  user-select: none;
260
- `,zm=C.div`
260
+ `,zm=S.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
- `,Rm=C.div`
266
+ `,Rm=S.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
- `,_m=C(_e.p)`
273
- ${I[16]}
272
+ `,_m=S(_e.p)`
273
+ ${L[16]}
274
274
  ${({$color:e="primary"})=>Kl[e]}
275
275
  margin: 0;
276
276
  `,Kn=({size:e="md",color:t="primary",centered:n=!0,message:r,title:o,variant:s="rotate"})=>{const i=p.jsxs(zm,{children:[p.jsxs(jm,{$size:e,$color:t,$variant:s,children:[p.jsx(_e.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
@@ -290,7 +290,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
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&&p.jsx("title",{children:o})]}),r&&p.jsx(_m,{$color:t,animate:{opacity:[1,.5,1]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},children:r})]});return n?p.jsx(Rm,{children:i}):i},Hm=C.div`
293
+ z`})})}),o&&p.jsx("title",{children:o})]}),r&&p.jsx(_m,{$color:t,animate:{opacity:[1,.5,1]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},children:r})]});return n?p.jsx(Rm,{children:i}):i},Hm=S.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[Pn]+=1);const br={80:b`
299
299
  align-items: center;
300
300
  justify-content: center;
301
301
  z-index: 50;
302
- `,Um=C.div`
302
+ `,Um=S.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,12 +310,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
310
310
  gap: 1rem;
311
311
  width: 90%;
312
312
  max-width: 24rem;
313
- `,Wm=C.h2`
313
+ `,Wm=S.h2`
314
314
  ${br[30]}
315
315
  color: var(--color-main-blue-primary);
316
316
  margin: 0 auto;
317
317
  text-align: center;
318
- `,Km=({message:e="Loading...",color:t="primary",variant:n="rotate"})=>p.jsx(Hm,{role:"status","aria-live":"polite",children:p.jsxs(Um,{children:[p.jsx(Kn,{size:"xl",color:t,centered:!1,title:e,variant:n}),p.jsx(Wm,{children:e})]})}),Ym=C.div`
318
+ `,Km=({message:e="Loading...",color:t="primary",variant:n="rotate"})=>p.jsx(Hm,{role:"status","aria-live":"polite",children:p.jsxs(Um,{children:[p.jsx(Kn,{size:"xl",color:t,centered:!1,title:e,variant:n}),p.jsx(Wm,{children:e})]})}),Ym=S.div`
319
319
  display: flex;
320
320
  flex-direction: column;
321
321
  align-items: center;
@@ -384,16 +384,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
384
384
  `,qm={sm:b`
385
385
  padding: 0.375rem 0.75rem;
386
386
  min-height: 2.75rem;
387
- ${I[12]}
387
+ ${L[12]}
388
388
  `,md:b`
389
389
  padding: 0.625rem 1.25rem;
390
390
  min-height: 3.175rem;
391
- ${I[16]}
391
+ ${L[16]}
392
392
  `,lg:b`
393
393
  padding: 0.75rem 1.5rem;
394
394
  min-height: 3.5rem;
395
- ${I[20]}
396
- `},Jm=C.button`
395
+ ${L[20]}
396
+ `},Jm=S.button`
397
397
  border: none;
398
398
  border-radius: var(--border-radius-button);
399
399
  transition:
@@ -417,15 +417,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
417
417
  `,Fo=({children:e,variant:t="primary",size:n="md",isLoading:r,disabled:o,leftIcon:s,rightIcon:i,iconSize:a="md",iconColor:l="currentColor",...d})=>p.jsxs(Jm,{$variant:t,$size:n,disabled:o||r,"aria-busy":r,...d,children:[s&&p.jsx(W,{color:l,size:a,component:s}),r?"Loading...":e,i&&p.jsx(W,{color:l,size:a,component:i})]}),Qm={sm:b`
418
418
  padding: 0.2rem 0.625rem;
419
419
  border-radius: var(--border-radius-button);
420
- ${I[12]}
420
+ ${L[12]}
421
421
  `,md:b`
422
422
  padding: 0.375rem 0.75rem;
423
423
  border-radius: var(--border-radius-button);
424
- ${I[14]}
424
+ ${L[14]}
425
425
  `,lg:b`
426
426
  padding: 0.5rem 1rem;
427
427
  border-radius: var(--border-radius-button);
428
- ${I[16]}
428
+ ${L[16]}
429
429
  `},eg={primary:b`
430
430
  background-color: var(--color-main-blue-primary);
431
431
  color: var(--color-main-white);
@@ -444,7 +444,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
444
444
  `,neutral:b`
445
445
  background-color: var(--color-light-200);
446
446
  color: var(--color-main-grey);
447
- `,outline:b``},tg=C.span`
447
+ `,outline:b``},tg=S.span`
448
448
  display: inline-flex;
449
449
  align-items: center;
450
450
  gap: 0.375rem;
@@ -460,7 +460,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
460
460
  color: ${t||"var(--color-main-blue-primary)"};
461
461
  border: 1px solid ${t||"var(--color-main-blue-primary)"};
462
462
  `:""}
463
- `,ng=({children:e,variant:t="neutral",size:n="md",color:r,leftIcon:o,rightIcon:s,iconColor:i="currentColor",iconSize:a="sm",...l})=>p.jsxs(tg,{$variant:t,$size:n,$outlineColor:r,...l,children:[o&&p.jsx(W,{color:i,size:a,component:o}),e,s&&p.jsx(W,{color:i,size:a,component:s})]}),rg=C.div`
463
+ `,ng=({children:e,variant:t="neutral",size:n="md",color:r,leftIcon:o,rightIcon:s,iconColor:i="currentColor",iconSize:a="sm",...l})=>p.jsxs(tg,{$variant:t,$size:n,$outlineColor:r,...l,children:[o&&p.jsx(W,{color:i,size:a,component:o}),e,s&&p.jsx(W,{color:i,size:a,component:s})]}),rg=S.div`
464
464
  background-color: ${({$color:e})=>e};
465
465
  ${({$orientation:e,$length:t,$thickness:n})=>e==="horizontal"?`
466
466
  height: ${n||"1px"};
@@ -469,10 +469,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
469
469
  width: ${n||"1px"};
470
470
  height: ${t||"100%"};
471
471
  `}
472
- `,og=({orientation:e="horizontal",color:t="var(--color-dark-300)",length:n,thickness:r,className:o=""})=>p.jsx(rg,{$orientation:e,$color:t,$length:n,$thickness:r,className:o,role:"separator","aria-orientation":e}),ig=C.span`
473
- ${({$size:e})=>I[e]}
472
+ `,og=({orientation:e="horizontal",color:t="var(--color-dark-300)",length:n,thickness:r,className:o=""})=>p.jsx(rg,{$orientation:e,$color:t,$length:n,$thickness:r,className:o,role:"separator","aria-orientation":e}),ig=S.span`
473
+ ${({$size:e})=>L[e]}
474
474
  color: ${({$color:e})=>e||"var(--color-main-grey)"};
475
- `,Gl=({children:e,size:t=16,color:n,className:r,style:o})=>p.jsx(ig,{$size:t,$color:n,className:r,style:o,children:e});function sg(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 ag=e=>{switch(e){case"success":return dg;case"info":return hg;case"warning":return ug;case"error":return fg;default:return null}},lg=Array(12).fill(0),cg=({visible:e,className:t})=>f.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},f.createElement("div",{className:"sonner-spinner"},lg.map((n,r)=>f.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),dg=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"})),ug=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"})),hg=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"})),fg=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"})),pg=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"})),mg=()=>{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 jo=1;class gg{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:jo++,i=this.toasts.find(l=>l.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(l=>l.id===s?(this.publish({...l,...t,id:s,title:r}),{...l,...t,id:s,dismissible:a,title:r}):l):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(vg(d)&&!d.ok){s=!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){s=!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){s=!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(i=["reject",d],n.error!==void 0){s=!1;const u=typeof n.error=="function"?await n.error(d):n.error,c=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:c,...m})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>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:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||jo++;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 ve=new gg,yg=(e,t)=>{const n=t?.id||jo++;return ve.addToast({title:e,...t,id:n}),n},vg=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",bg=yg,wg=()=>ve.toasts,xg=()=>ve.getActiveToasts(),Sg=Object.assign(bg,{success:ve.success,info:ve.info,warning:ve.warning,error:ve.error,custom:ve.custom,message:ve.message,promise:ve.promise,dismiss:ve.dismiss,loading:ve.loading},{getHistory:wg,getToasts:xg});sg("[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 Cg=3,Tg="24px",kg="16px",Xl=4e3,Eg=356,Pg=14,Ag=45,Dg=200;function Oe(...e){return e.filter(Boolean).join(" ")}function $g(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Mg=e=>{var t,n,r,o,s,i,a,l,d;const{invert:u,toast:c,unstyled:h,interacting:m,setHeights:g,visibleToasts:v,heights:w,index:y,toasts:S,expanded:x,removeToast:A,defaultRichColors:P,closeButton:k,style:E,cancelButtonStyle:D,actionButtonStyle:L,className:_="",descriptionClassName:$="",duration:U,position:V,gap:he,expandByDefault:G,classNames:O,icons:N,closeButtonAriaLabel:H="Close toast"}=e,[B,R]=f.useState(null),[oe,ie]=f.useState(null),[z,q]=f.useState(!1),[X,ae]=f.useState(!1),[Me,K]=f.useState(!1),[be,Je]=f.useState(!1),[He,me]=f.useState(!1),[w1,ii]=f.useState(0),[x1,_c]=f.useState(0),ln=f.useRef(c.duration||U||Xl),Hc=f.useRef(null),Ue=f.useRef(null),S1=y===0,C1=y+1<=v,we=c.type,Ot=c.dismissible!==!1,T1=c.className||"",k1=c.descriptionClassName||"",Qn=f.useMemo(()=>w.findIndex(F=>F.toastId===c.id)||0,[w,c.id]),E1=f.useMemo(()=>{var F;return(F=c.closeButton)!=null?F:k},[c.closeButton,k]),Uc=f.useMemo(()=>c.duration||U||Xl,[c.duration,U]),si=f.useRef(0),Ft=f.useRef(0),Wc=f.useRef(0),jt=f.useRef(null),[P1,A1]=V.split("-"),Kc=f.useMemo(()=>w.reduce((F,le,fe)=>fe>=Qn?F:F+le.height,0),[w,Qn]),Yc=mg(),D1=c.invert||u,ai=we==="loading";Ft.current=f.useMemo(()=>Qn*he+Kc,[Qn,Kc]),f.useEffect(()=>{ln.current=Uc},[Uc]),f.useEffect(()=>{q(!0)},[]),f.useEffect(()=>{const F=Ue.current;if(F){const le=F.getBoundingClientRect().height;return _c(le),g(fe=>[{toastId:c.id,height:le,position:c.position},...fe]),()=>g(fe=>fe.filter(xe=>xe.toastId!==c.id))}},[g,c.id]),f.useLayoutEffect(()=>{if(!z)return;const F=Ue.current,le=F.style.height;F.style.height="auto";const fe=F.getBoundingClientRect().height;F.style.height=le,_c(fe),g(xe=>xe.find(de=>de.toastId===c.id)?xe.map(de=>de.toastId===c.id?{...de,height:fe}:de):[{toastId:c.id,height:fe,position:c.position},...xe])},[z,c.title,c.description,g,c.id,c.jsx,c.action,c.cancel]);const Qe=f.useCallback(()=>{ae(!0),ii(Ft.current),g(F=>F.filter(le=>le.toastId!==c.id)),setTimeout(()=>{A(c)},Dg)},[c,A,g,Ft]);f.useEffect(()=>{if(c.promise&&we==="loading"||c.duration===1/0||c.type==="loading")return;let F;return x||m||Yc?(()=>{if(Wc.current<si.current){const xe=new Date().getTime()-si.current;ln.current=ln.current-xe}Wc.current=new Date().getTime()})():(()=>{ln.current!==1/0&&(si.current=new Date().getTime(),F=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Qe()},ln.current))})(),()=>clearTimeout(F)},[x,m,c,we,Yc,Qe]),f.useEffect(()=>{c.delete&&(Qe(),c.onDismiss==null||c.onDismiss.call(c,c))},[Qe,c.delete]);function $1(){var F;if(N?.loading){var le;return f.createElement("div",{className:Oe(O?.loader,c==null||(le=c.classNames)==null?void 0:le.loader,"sonner-loader"),"data-visible":we==="loading"},N.loading)}return f.createElement(cg,{className:Oe(O?.loader,c==null||(F=c.classNames)==null?void 0:F.loader),visible:we==="loading"})}const M1=c.icon||N?.[we]||ag(we);var Gc,Xc;return f.createElement("li",{tabIndex:0,ref:Ue,className:Oe(_,T1,O?.toast,c==null||(t=c.classNames)==null?void 0:t.toast,O?.default,O?.[we],c==null||(n=c.classNames)==null?void 0:n[we]),"data-sonner-toast":"","data-rich-colors":(Gc=c.richColors)!=null?Gc:P,"data-styled":!(c.jsx||c.unstyled||h),"data-mounted":z,"data-promise":!!c.promise,"data-swiped":He,"data-removed":X,"data-visible":C1,"data-y-position":P1,"data-x-position":A1,"data-index":y,"data-front":S1,"data-swiping":Me,"data-dismissible":Ot,"data-type":we,"data-invert":D1,"data-swipe-out":be,"data-swipe-direction":oe,"data-expanded":!!(x||G&&z),"data-testid":c.testId,style:{"--index":y,"--toasts-before":y,"--z-index":S.length-y,"--offset":`${X?w1:Ft.current}px`,"--initial-height":G?"auto":`${x1}px`,...E,...c.style},onDragEnd:()=>{K(!1),R(null),jt.current=null},onPointerDown:F=>{F.button!==2&&(ai||!Ot||(Hc.current=new Date,ii(Ft.current),F.target.setPointerCapture(F.pointerId),F.target.tagName!=="BUTTON"&&(K(!0),jt.current={x:F.clientX,y:F.clientY})))},onPointerUp:()=>{var F,le,fe;if(be||!Ot)return;jt.current=null;const xe=Number(((F=Ue.current)==null?void 0:F.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),er=Number(((le=Ue.current)==null?void 0:le.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),de=new Date().getTime()-((fe=Hc.current)==null?void 0:fe.getTime()),Pe=B==="x"?xe:er,tr=Math.abs(Pe)/de;if(Math.abs(Pe)>=Ag||tr>.11){ii(Ft.current),c.onDismiss==null||c.onDismiss.call(c,c),ie(B==="x"?xe>0?"right":"left":er>0?"down":"up"),Qe(),Je(!0);return}else{var Ve,Ie;(Ve=Ue.current)==null||Ve.style.setProperty("--swipe-amount-x","0px"),(Ie=Ue.current)==null||Ie.style.setProperty("--swipe-amount-y","0px")}me(!1),K(!1),R(null)},onPointerMove:F=>{var le,fe,xe;if(!jt.current||!Ot||((le=window.getSelection())==null?void 0:le.toString().length)>0)return;const de=F.clientY-jt.current.y,Pe=F.clientX-jt.current.x;var tr;const Ve=(tr=e.swipeDirections)!=null?tr:$g(V);!B&&(Math.abs(Pe)>1||Math.abs(de)>1)&&R(Math.abs(Pe)>Math.abs(de)?"x":"y");let Ie={x:0,y:0};const Zc=pt=>1/(1.5+Math.abs(pt)/20);if(B==="y"){if(Ve.includes("top")||Ve.includes("bottom"))if(Ve.includes("top")&&de<0||Ve.includes("bottom")&&de>0)Ie.y=de;else{const pt=de*Zc(de);Ie.y=Math.abs(pt)<Math.abs(de)?pt:de}}else if(B==="x"&&(Ve.includes("left")||Ve.includes("right")))if(Ve.includes("left")&&Pe<0||Ve.includes("right")&&Pe>0)Ie.x=Pe;else{const pt=Pe*Zc(Pe);Ie.x=Math.abs(pt)<Math.abs(Pe)?pt:Pe}(Math.abs(Ie.x)>0||Math.abs(Ie.y)>0)&&me(!0),(fe=Ue.current)==null||fe.style.setProperty("--swipe-amount-x",`${Ie.x}px`),(xe=Ue.current)==null||xe.style.setProperty("--swipe-amount-y",`${Ie.y}px`)}},E1&&!c.jsx&&we!=="loading"?f.createElement("button",{"aria-label":H,"data-disabled":ai,"data-close-button":!0,onClick:ai||!Ot?()=>{}:()=>{Qe(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Oe(O?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(Xc=N?.close)!=null?Xc:pg):null,(we||c.icon||c.promise)&&c.icon!==null&&(N?.[we]!==null||c.icon)?f.createElement("div",{"data-icon":"",className:Oe(O?.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||$1():null,c.type!=="loading"?M1:null):null,f.createElement("div",{"data-content":"",className:Oe(O?.content,c==null||(s=c.classNames)==null?void 0:s.content)},f.createElement("div",{"data-title":"",className:Oe(O?.title,c==null||(i=c.classNames)==null?void 0:i.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?f.createElement("div",{"data-description":"",className:Oe($,k1,O?.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:F=>{Yn(c.cancel)&&Ot&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,F),Qe())},className:Oe(O?.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||L,onClick:F=>{Yn(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,F),!F.defaultPrevented&&Qe())},className:Oe(O?.actionButton,c==null||(d=c.classNames)==null?void 0:d.actionButton)},c.action.label):null)};function Zl(){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 Vg(e,t){const n={};return[e,t].forEach((r,o)=>{const s=o===1,i=s?"--mobile-offset":"--offset",a=s?kg:Tg;function l(d){["top","right","bottom","left"].forEach(u=>{n[`${i}-${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[`${i}-${d}`]=a:n[`${i}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):l(a)}),n}const Ig=f.forwardRef(function(t,n){const{id:r,invert:o,position:s="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:l,className:d,offset:u,mobileOffset:c,theme:h="light",richColors:m,duration:g,style:v,visibleToasts:w=Cg,toastOptions:y,dir:S=Zl(),gap:x=Pg,icons:A,containerAriaLabel:P="Notifications"}=t,[k,E]=f.useState([]),D=f.useMemo(()=>r?k.filter(z=>z.toasterId===r):k.filter(z=>!z.toasterId),[k,r]),L=f.useMemo(()=>Array.from(new Set([s].concat(D.filter(z=>z.position).map(z=>z.position)))),[D,s]),[_,$]=f.useState([]),[U,V]=f.useState(!1),[he,G]=f.useState(!1),[O,N]=f.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=f.useRef(null),B=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=f.useRef(null),oe=f.useRef(!1),ie=f.useCallback(z=>{E(q=>{var X;return(X=q.find(ae=>ae.id===z.id))!=null&&X.delete||ve.dismiss(z.id),q.filter(({id:ae})=>ae!==z.id)})},[]);return f.useEffect(()=>ve.subscribe(z=>{if(z.dismiss){requestAnimationFrame(()=>{E(q=>q.map(X=>X.id===z.id?{...X,delete:!0}:X))});return}setTimeout(()=>{li.flushSync(()=>{E(q=>{const X=q.findIndex(ae=>ae.id===z.id);return X!==-1?[...q.slice(0,X),{...q[X],...z},...q.slice(X+1)]:[z,...q]})})})}),[k]),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 z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:q})=>{N(q?"dark":"light")})}catch{z.addListener(({matches:X})=>{try{N(X?"dark":"light")}catch(ae){console.error(ae)}})}},[h]),f.useEffect(()=>{k.length<=1&&V(!1)},[k]),f.useEffect(()=>{const z=q=>{var X;if(i.every(K=>q[K]||q.code===K)){var Me;V(!0),(Me=H.current)==null||Me.focus()}q.code==="Escape"&&(document.activeElement===H.current||(X=H.current)!=null&&X.contains(document.activeElement))&&V(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[i]),f.useEffect(()=>{if(H.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,oe.current=!1)}},[H.current]),f.createElement("section",{ref:n,"aria-label":`${P} ${B}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((z,q)=>{var X;const[ae,Me]=z.split("-");return D.length?f.createElement("ol",{key:z,dir:S==="auto"?Zl():S,tabIndex:-1,ref:H,className:d,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":ae,"data-x-position":Me,style:{"--front-toast-height":`${((X=_[0])==null?void 0:X.height)||0}px`,"--width":`${Eg}px`,"--gap":`${x}px`,...v,...Vg(u,c)},onBlur:K=>{oe.current&&!K.currentTarget.contains(K.relatedTarget)&&(oe.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||oe.current||(oe.current=!0,R.current=K.relatedTarget)},onMouseEnter:()=>V(!0),onMouseMove:()=>V(!0),onMouseLeave:()=>{he||V(!1)},onDragEnd:()=>V(!1),onPointerDown:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||G(!0)},onPointerUp:()=>G(!1)},D.filter(K=>!K.position&&q===0||K.position===z).map((K,be)=>{var Je,He;return f.createElement(Mg,{key:K.id,icons:A,index:be,toast:K,defaultRichColors:m,duration:(Je=y?.duration)!=null?Je:g,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:o,visibleToasts:w,closeButton:(He=y?.closeButton)!=null?He:l,interacting:he,position:z,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:ie,toasts:D.filter(me=>me.position==K.position),heights:_.filter(me=>me.position==K.position),setHeights:$,expandByDefault:a,gap:x,expanded:U,swipeDirections:t.swipeDirections})})):null}))}),Lg=({spinnerColor:e="orange",...t})=>p.jsx(Ig,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:p.jsx(Yl,{color:e})},...t}),Ng={elevated:b`
475
+ `,Gl=({children:e,size:t=16,color:n,className:r,style:o})=>p.jsx(ig,{$size:t,$color:n,className:r,style:o,children:e});function sg(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 ag=e=>{switch(e){case"success":return dg;case"info":return hg;case"warning":return ug;case"error":return fg;default:return null}},lg=Array(12).fill(0),cg=({visible:e,className:t})=>f.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},f.createElement("div",{className:"sonner-spinner"},lg.map((n,r)=>f.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),dg=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"})),ug=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"})),hg=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"})),fg=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"})),pg=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"})),mg=()=>{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 jo=1;class gg{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:jo++,i=this.toasts.find(l=>l.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(l=>l.id===s?(this.publish({...l,...t,id:s,title:r}),{...l,...t,id:s,dismissible:a,title:r}):l):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(vg(d)&&!d.ok){s=!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){s=!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){s=!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(i=["reject",d],n.error!==void 0){s=!1;const u=typeof n.error=="function"?await n.error(d):n.error,c=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:c,...m})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>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:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||jo++;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 ve=new gg,yg=(e,t)=>{const n=t?.id||jo++;return ve.addToast({title:e,...t,id:n}),n},vg=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",bg=yg,wg=()=>ve.toasts,xg=()=>ve.getActiveToasts(),Sg=Object.assign(bg,{success:ve.success,info:ve.info,warning:ve.warning,error:ve.error,custom:ve.custom,message:ve.message,promise:ve.promise,dismiss:ve.dismiss,loading:ve.loading},{getHistory:wg,getToasts:xg});sg("[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 Cg=3,Tg="24px",kg="16px",Xl=4e3,Eg=356,Pg=14,Ag=45,Dg=200;function Oe(...e){return e.filter(Boolean).join(" ")}function $g(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Mg=e=>{var t,n,r,o,s,i,a,l,d;const{invert:u,toast:c,unstyled:h,interacting:m,setHeights:g,visibleToasts:v,heights:x,index:y,toasts:C,expanded:w,removeToast:A,defaultRichColors:E,closeButton:k,style:P,cancelButtonStyle:D,actionButtonStyle:N,className:_="",descriptionClassName:$="",duration:H,position:U,gap:G,expandByDefault:Q,classNames:V,icons:I,closeButtonAriaLabel:R="Close toast"}=e,[B,z]=f.useState(null),[ie,se]=f.useState(null),[j,q]=f.useState(!1),[X,le]=f.useState(!1),[Me,K]=f.useState(!1),[be,Je]=f.useState(!1),[He,me]=f.useState(!1),[w1,ii]=f.useState(0),[x1,_c]=f.useState(0),ln=f.useRef(c.duration||H||Xl),Hc=f.useRef(null),Ue=f.useRef(null),S1=y===0,C1=y+1<=v,we=c.type,Ot=c.dismissible!==!1,T1=c.className||"",k1=c.descriptionClassName||"",Qn=f.useMemo(()=>x.findIndex(O=>O.toastId===c.id)||0,[x,c.id]),E1=f.useMemo(()=>{var O;return(O=c.closeButton)!=null?O:k},[c.closeButton,k]),Uc=f.useMemo(()=>c.duration||H||Xl,[c.duration,H]),si=f.useRef(0),Ft=f.useRef(0),Wc=f.useRef(0),jt=f.useRef(null),[P1,A1]=U.split("-"),Kc=f.useMemo(()=>x.reduce((O,ce,fe)=>fe>=Qn?O:O+ce.height,0),[x,Qn]),Yc=mg(),D1=c.invert||u,ai=we==="loading";Ft.current=f.useMemo(()=>Qn*G+Kc,[Qn,Kc]),f.useEffect(()=>{ln.current=Uc},[Uc]),f.useEffect(()=>{q(!0)},[]),f.useEffect(()=>{const O=Ue.current;if(O){const ce=O.getBoundingClientRect().height;return _c(ce),g(fe=>[{toastId:c.id,height:ce,position:c.position},...fe]),()=>g(fe=>fe.filter(xe=>xe.toastId!==c.id))}},[g,c.id]),f.useLayoutEffect(()=>{if(!j)return;const O=Ue.current,ce=O.style.height;O.style.height="auto";const fe=O.getBoundingClientRect().height;O.style.height=ce,_c(fe),g(xe=>xe.find(ue=>ue.toastId===c.id)?xe.map(ue=>ue.toastId===c.id?{...ue,height:fe}:ue):[{toastId:c.id,height:fe,position:c.position},...xe])},[j,c.title,c.description,g,c.id,c.jsx,c.action,c.cancel]);const Qe=f.useCallback(()=>{le(!0),ii(Ft.current),g(O=>O.filter(ce=>ce.toastId!==c.id)),setTimeout(()=>{A(c)},Dg)},[c,A,g,Ft]);f.useEffect(()=>{if(c.promise&&we==="loading"||c.duration===1/0||c.type==="loading")return;let O;return w||m||Yc?(()=>{if(Wc.current<si.current){const xe=new Date().getTime()-si.current;ln.current=ln.current-xe}Wc.current=new Date().getTime()})():(()=>{ln.current!==1/0&&(si.current=new Date().getTime(),O=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Qe()},ln.current))})(),()=>clearTimeout(O)},[w,m,c,we,Yc,Qe]),f.useEffect(()=>{c.delete&&(Qe(),c.onDismiss==null||c.onDismiss.call(c,c))},[Qe,c.delete]);function $1(){var O;if(I?.loading){var ce;return f.createElement("div",{className:Oe(V?.loader,c==null||(ce=c.classNames)==null?void 0:ce.loader,"sonner-loader"),"data-visible":we==="loading"},I.loading)}return f.createElement(cg,{className:Oe(V?.loader,c==null||(O=c.classNames)==null?void 0:O.loader),visible:we==="loading"})}const M1=c.icon||I?.[we]||ag(we);var Gc,Xc;return f.createElement("li",{tabIndex:0,ref:Ue,className:Oe(_,T1,V?.toast,c==null||(t=c.classNames)==null?void 0:t.toast,V?.default,V?.[we],c==null||(n=c.classNames)==null?void 0:n[we]),"data-sonner-toast":"","data-rich-colors":(Gc=c.richColors)!=null?Gc:E,"data-styled":!(c.jsx||c.unstyled||h),"data-mounted":j,"data-promise":!!c.promise,"data-swiped":He,"data-removed":X,"data-visible":C1,"data-y-position":P1,"data-x-position":A1,"data-index":y,"data-front":S1,"data-swiping":Me,"data-dismissible":Ot,"data-type":we,"data-invert":D1,"data-swipe-out":be,"data-swipe-direction":ie,"data-expanded":!!(w||Q&&j),"data-testid":c.testId,style:{"--index":y,"--toasts-before":y,"--z-index":C.length-y,"--offset":`${X?w1:Ft.current}px`,"--initial-height":Q?"auto":`${x1}px`,...P,...c.style},onDragEnd:()=>{K(!1),z(null),jt.current=null},onPointerDown:O=>{O.button!==2&&(ai||!Ot||(Hc.current=new Date,ii(Ft.current),O.target.setPointerCapture(O.pointerId),O.target.tagName!=="BUTTON"&&(K(!0),jt.current={x:O.clientX,y:O.clientY})))},onPointerUp:()=>{var O,ce,fe;if(be||!Ot)return;jt.current=null;const xe=Number(((O=Ue.current)==null?void 0:O.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),er=Number(((ce=Ue.current)==null?void 0:ce.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ue=new Date().getTime()-((fe=Hc.current)==null?void 0:fe.getTime()),Pe=B==="x"?xe:er,tr=Math.abs(Pe)/ue;if(Math.abs(Pe)>=Ag||tr>.11){ii(Ft.current),c.onDismiss==null||c.onDismiss.call(c,c),se(B==="x"?xe>0?"right":"left":er>0?"down":"up"),Qe(),Je(!0);return}else{var Ve,Ie;(Ve=Ue.current)==null||Ve.style.setProperty("--swipe-amount-x","0px"),(Ie=Ue.current)==null||Ie.style.setProperty("--swipe-amount-y","0px")}me(!1),K(!1),z(null)},onPointerMove:O=>{var ce,fe,xe;if(!jt.current||!Ot||((ce=window.getSelection())==null?void 0:ce.toString().length)>0)return;const ue=O.clientY-jt.current.y,Pe=O.clientX-jt.current.x;var tr;const Ve=(tr=e.swipeDirections)!=null?tr:$g(U);!B&&(Math.abs(Pe)>1||Math.abs(ue)>1)&&z(Math.abs(Pe)>Math.abs(ue)?"x":"y");let Ie={x:0,y:0};const Zc=pt=>1/(1.5+Math.abs(pt)/20);if(B==="y"){if(Ve.includes("top")||Ve.includes("bottom"))if(Ve.includes("top")&&ue<0||Ve.includes("bottom")&&ue>0)Ie.y=ue;else{const pt=ue*Zc(ue);Ie.y=Math.abs(pt)<Math.abs(ue)?pt:ue}}else if(B==="x"&&(Ve.includes("left")||Ve.includes("right")))if(Ve.includes("left")&&Pe<0||Ve.includes("right")&&Pe>0)Ie.x=Pe;else{const pt=Pe*Zc(Pe);Ie.x=Math.abs(pt)<Math.abs(Pe)?pt:Pe}(Math.abs(Ie.x)>0||Math.abs(Ie.y)>0)&&me(!0),(fe=Ue.current)==null||fe.style.setProperty("--swipe-amount-x",`${Ie.x}px`),(xe=Ue.current)==null||xe.style.setProperty("--swipe-amount-y",`${Ie.y}px`)}},E1&&!c.jsx&&we!=="loading"?f.createElement("button",{"aria-label":R,"data-disabled":ai,"data-close-button":!0,onClick:ai||!Ot?()=>{}:()=>{Qe(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Oe(V?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(Xc=I?.close)!=null?Xc:pg):null,(we||c.icon||c.promise)&&c.icon!==null&&(I?.[we]!==null||c.icon)?f.createElement("div",{"data-icon":"",className:Oe(V?.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||$1():null,c.type!=="loading"?M1:null):null,f.createElement("div",{"data-content":"",className:Oe(V?.content,c==null||(s=c.classNames)==null?void 0:s.content)},f.createElement("div",{"data-title":"",className:Oe(V?.title,c==null||(i=c.classNames)==null?void 0:i.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?f.createElement("div",{"data-description":"",className:Oe($,k1,V?.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:O=>{Yn(c.cancel)&&Ot&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,O),Qe())},className:Oe(V?.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||N,onClick:O=>{Yn(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,O),!O.defaultPrevented&&Qe())},className:Oe(V?.actionButton,c==null||(d=c.classNames)==null?void 0:d.actionButton)},c.action.label):null)};function Zl(){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 Vg(e,t){const n={};return[e,t].forEach((r,o)=>{const s=o===1,i=s?"--mobile-offset":"--offset",a=s?kg:Tg;function l(d){["top","right","bottom","left"].forEach(u=>{n[`${i}-${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[`${i}-${d}`]=a:n[`${i}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):l(a)}),n}const Ig=f.forwardRef(function(t,n){const{id:r,invert:o,position:s="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:l,className:d,offset:u,mobileOffset:c,theme:h="light",richColors:m,duration:g,style:v,visibleToasts:x=Cg,toastOptions:y,dir:C=Zl(),gap:w=Pg,icons:A,containerAriaLabel:E="Notifications"}=t,[k,P]=f.useState([]),D=f.useMemo(()=>r?k.filter(j=>j.toasterId===r):k.filter(j=>!j.toasterId),[k,r]),N=f.useMemo(()=>Array.from(new Set([s].concat(D.filter(j=>j.position).map(j=>j.position)))),[D,s]),[_,$]=f.useState([]),[H,U]=f.useState(!1),[G,Q]=f.useState(!1),[V,I]=f.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),R=f.useRef(null),B=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),z=f.useRef(null),ie=f.useRef(!1),se=f.useCallback(j=>{P(q=>{var X;return(X=q.find(le=>le.id===j.id))!=null&&X.delete||ve.dismiss(j.id),q.filter(({id:le})=>le!==j.id)})},[]);return f.useEffect(()=>ve.subscribe(j=>{if(j.dismiss){requestAnimationFrame(()=>{P(q=>q.map(X=>X.id===j.id?{...X,delete:!0}:X))});return}setTimeout(()=>{li.flushSync(()=>{P(q=>{const X=q.findIndex(le=>le.id===j.id);return X!==-1?[...q.slice(0,X),{...q[X],...j},...q.slice(X+1)]:[j,...q]})})})}),[k]),f.useEffect(()=>{if(h!=="system"){I(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?I("dark"):I("light")),typeof window>"u")return;const j=window.matchMedia("(prefers-color-scheme: dark)");try{j.addEventListener("change",({matches:q})=>{I(q?"dark":"light")})}catch{j.addListener(({matches:X})=>{try{I(X?"dark":"light")}catch(le){console.error(le)}})}},[h]),f.useEffect(()=>{k.length<=1&&U(!1)},[k]),f.useEffect(()=>{const j=q=>{var X;if(i.every(K=>q[K]||q.code===K)){var Me;U(!0),(Me=R.current)==null||Me.focus()}q.code==="Escape"&&(document.activeElement===R.current||(X=R.current)!=null&&X.contains(document.activeElement))&&U(!1)};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[i]),f.useEffect(()=>{if(R.current)return()=>{z.current&&(z.current.focus({preventScroll:!0}),z.current=null,ie.current=!1)}},[R.current]),f.createElement("section",{ref:n,"aria-label":`${E} ${B}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((j,q)=>{var X;const[le,Me]=j.split("-");return D.length?f.createElement("ol",{key:j,dir:C==="auto"?Zl():C,tabIndex:-1,ref:R,className:d,"data-sonner-toaster":!0,"data-sonner-theme":V,"data-y-position":le,"data-x-position":Me,style:{"--front-toast-height":`${((X=_[0])==null?void 0:X.height)||0}px`,"--width":`${Eg}px`,"--gap":`${w}px`,...v,...Vg(u,c)},onBlur:K=>{ie.current&&!K.currentTarget.contains(K.relatedTarget)&&(ie.current=!1,z.current&&(z.current.focus({preventScroll:!0}),z.current=null))},onFocus:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||ie.current||(ie.current=!0,z.current=K.relatedTarget)},onMouseEnter:()=>U(!0),onMouseMove:()=>U(!0),onMouseLeave:()=>{G||U(!1)},onDragEnd:()=>U(!1),onPointerDown:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||Q(!0)},onPointerUp:()=>Q(!1)},D.filter(K=>!K.position&&q===0||K.position===j).map((K,be)=>{var Je,He;return f.createElement(Mg,{key:K.id,icons:A,index:be,toast:K,defaultRichColors:m,duration:(Je=y?.duration)!=null?Je:g,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:o,visibleToasts:x,closeButton:(He=y?.closeButton)!=null?He:l,interacting:G,position:j,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:se,toasts:D.filter(me=>me.position==K.position),heights:_.filter(me=>me.position==K.position),setHeights:$,expandByDefault:a,gap:w,expanded:H,swipeDirections:t.swipeDirections})})):null}))}),Lg=({spinnerColor:e="orange",...t})=>p.jsx(Ig,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:p.jsx(Yl,{color:e})},...t}),Ng={elevated:b`
476
476
  background-color: var(--color-main-white);
477
477
  box-shadow: var(--shadow-black-card);
478
478
  border: none;
@@ -537,7 +537,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
537
537
  transform: none;
538
538
  box-shadow: inherit;
539
539
  }
540
- `,jg=C.div`
540
+ `,jg=S.div`
541
541
  display: flex;
542
542
  flex-direction: column;
543
543
  border-radius: var(--border-radius-card);
@@ -549,27 +549,27 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
549
549
  ${({$clickable:e})=>e&&Og}
550
550
  ${({$disabled:e})=>e&&Fg}
551
551
  ${({$size:e})=>Bg[e]}
552
- `,zg=({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(jg,{$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})},Rg=C.div`
552
+ `,zg=({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(jg,{$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})},Rg=S.div`
553
553
  display: flex;
554
554
  align-items: center;
555
555
  align-self: stretch;
556
556
  gap: 0.5rem;
557
- `,_g=({children:e,...t})=>p.jsx(Rg,{...t,children:e}),Hg=C.div`
557
+ `,_g=({children:e,...t})=>p.jsx(Rg,{...t,children:e}),Hg=S.div`
558
558
  flex: 1;
559
559
  display: flex;
560
560
  flex-direction: column;
561
- `,Ug=({children:e,...t})=>p.jsx(Hg,{...t,children:e}),Wg=C.div`
561
+ `,Ug=({children:e,...t})=>p.jsx(Hg,{...t,children:e}),Wg=S.div`
562
562
  display: flex;
563
563
  align-items: center;
564
564
  align-self: stretch;
565
565
  gap: 0.5rem;
566
566
  `,Kg=({children:e,...t})=>p.jsx(Wg,{...t,children:e}),Yg={sm:b`
567
- ${I[12]}
567
+ ${L[12]}
568
568
  `,md:b`
569
- ${I[16]}
569
+ ${L[16]}
570
570
  `,lg:b`
571
- ${I[18]}
572
- `},Gg=C.div`
571
+ ${L[18]}
572
+ `},Gg=S.div`
573
573
  color: var(--color-main-warning-state);
574
574
  ${({$size:e})=>Yg[e]}
575
575
  font-weight: 400;
@@ -578,12 +578,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
578
578
  align-items: flex-start;
579
579
  gap: 0.25rem;
580
580
  `,Gn=({children:e,className:t,size:n="md",...r})=>p.jsx(Gg,{className:t,$size:n,...r,children:e}),Xg={sm:b`
581
- ${I[16]}
581
+ ${L[16]}
582
582
  `,md:b`
583
- ${I[24]}
583
+ ${L[24]}
584
584
  `,lg:b`
585
- ${I[30]}
586
- `},Zg=C.label`
585
+ ${L[30]}
586
+ `},Zg=S.label`
587
587
  color: var(--color-main-blue-primary);
588
588
  ${({$size:e})=>Xg[e]}
589
589
  ${({$disabled:e})=>e&&qg}
@@ -679,44 +679,44 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
679
679
  `,sn={sm:b`
680
680
  padding: 0.5rem 1rem;
681
681
  height: 2.5rem;
682
- ${I[18]}
682
+ ${L[18]}
683
683
  `,md:b`
684
684
  padding: 0.5rem 1rem;
685
685
  height: 2.75rem;
686
- ${I[20]}
686
+ ${L[20]}
687
687
  `,lg:b`
688
688
  padding: 0.5rem 1rem;
689
689
  height: 3rem;
690
- ${I[20]}
690
+ ${L[20]}
691
691
  `},qn=b`
692
692
  display: flex;
693
693
  align-items: center;
694
694
  justify-content: center;
695
695
  flex-shrink: 0;
696
696
  user-select: none;
697
- `,t0=C.div`
697
+ `,t0=S.div`
698
698
  ${ut}
699
699
  ${({$size:e})=>sn[e]}
700
700
  ${({$hasError:e})=>e&&ht}
701
701
  ${({$disabled:e})=>e&&qe}
702
702
  ${({$isFlushed:e})=>e&&Ql}
703
- `,n0=C.input`
703
+ `,n0=S.input`
704
704
  ${Zn}
705
- `,zo=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:l="currentColor",className:d,...u},c)=>p.jsxs(t0,{$size:e,$hasError:t,className:d,$isFlushed:o,children:[s&&p.jsx(W,{component:s,size:a,color:n?"var(--color-dark-200)":l}),p.jsx(n0,{ref:c,type:r,$hasError:t,disabled:n,...u}),i&&p.jsx(W,{component:i,size:a,color:n?"var(--color-dark-200)":l})]}));zo.displayName="BaseInput";const r0=({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"})),o0=({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"})),i0=({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"})),s0=({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"})),ec=({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"})),a0=({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"})),l0=({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"})),c0=({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"})),d0=({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"})),tc=({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"})),u0=({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"})),h0=({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"})),nc=({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"})),f0=({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 12.5858L16.2426 16.8284L14.8284 18.2426L13 16.415V22H11V16.413L9.17157 18.2426L7.75736 16.8284L12 12.5858ZM12 2C15.5934 2 18.5544 4.70761 18.9541 8.19395C21.2858 8.83154 23 10.9656 23 13.5C23 16.3688 20.8036 18.7246 18.0006 18.9776L18.0009 16.9644C19.6966 16.7214 21 15.2629 21 13.5C21 11.567 19.433 10 17.5 10C17.2912 10 17.0867 10.0183 16.8887 10.054C16.9616 9.7142 17 9.36158 17 9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9C7 9.36158 7.03838 9.7142 7.11205 10.0533C6.91331 10.0183 6.70879 10 6.5 10C4.567 10 3 11.567 3 13.5C3 15.2003 4.21241 16.6174 5.81986 16.934L6.00005 16.9646L6.00039 18.9776C3.19696 18.7252 1 16.3692 1 13.5C1 10.9656 2.71424 8.83154 5.04648 8.19411C5.44561 4.70761 8.40661 2 12 2Z"})),p0=({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"})),m0=C.div`
705
+ `,zo=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:l="currentColor",className:d,...u},c)=>p.jsxs(t0,{$size:e,$hasError:t,className:d,$isFlushed:o,children:[s&&p.jsx(W,{component:s,size:a,color:n?"var(--color-dark-200)":l}),p.jsx(n0,{ref:c,type:r,$hasError:t,disabled:n,...u}),i&&p.jsx(W,{component:i,size:a,color:n?"var(--color-dark-200)":l})]}));zo.displayName="BaseInput";const r0=({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"})),o0=({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"})),i0=({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"})),s0=({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"})),ec=({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"})),a0=({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"})),l0=({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"})),c0=({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"})),d0=({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"})),tc=({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"})),u0=({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"})),h0=({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"})),nc=({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"})),f0=({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 12.5858L16.2426 16.8284L14.8284 18.2426L13 16.415V22H11V16.413L9.17157 18.2426L7.75736 16.8284L12 12.5858ZM12 2C15.5934 2 18.5544 4.70761 18.9541 8.19395C21.2858 8.83154 23 10.9656 23 13.5C23 16.3688 20.8036 18.7246 18.0006 18.9776L18.0009 16.9644C19.6966 16.7214 21 15.2629 21 13.5C21 11.567 19.433 10 17.5 10C17.2912 10 17.0867 10.0183 16.8887 10.054C16.9616 9.7142 17 9.36158 17 9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9C7 9.36158 7.03838 9.7142 7.11205 10.0533C6.91331 10.0183 6.70879 10 6.5 10C4.567 10 3 11.567 3 13.5C3 15.2003 4.21241 16.6174 5.81986 16.934L6.00005 16.9646L6.00039 18.9776C3.19696 18.7252 1 16.3692 1 13.5C1 10.9656 2.71424 8.83154 5.04648 8.19411C5.44561 4.70761 8.40661 2 12 2Z"})),p0=({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"})),m0=S.div`
706
706
  ${ut}
707
707
  ${({$size:e})=>sn[e??"md"]}
708
708
  ${({$hasError:e})=>e&&ht}
709
709
  ${({$disabled:e})=>e&&qe}
710
710
  position: relative;
711
- `,g0=C.input`
711
+ `,g0=S.input`
712
712
  ${Zn}
713
- `,y0=C.span`
713
+ `,y0=S.span`
714
714
  ${qn}
715
715
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
716
- `,rc=({size:e="md",leftIcon:t,iconSize:n="sm",iconColor:r="currentColor",placeholder:o="Contraseña...",hasError:s=!1,disabled:i=!1,className:a,...l})=>{const[d,u]=f.useState(!1),c=()=>u(h=>!h);return p.jsxs(m0,{$size:e,$hasError:s,$disabled:i,className:a,children:[t&&p.jsx(W,{component:t,size:n,color:i?"var(--color-dark-200)":r}),p.jsx(g0,{type:d?"text":"password",placeholder:o,disabled:i,...l}),p.jsx(y0,{$disabled:i,onClick:i?void 0:c,children:p.jsx(W,{component:d?c0:l0,size:n,color:i?"var(--color-dark-200)":r})})]})},oc=e=>{const t=e.findIndex(n=>!n.disabled);return t!==-1?t:0},v0=e=>{const t=e.map((n,r)=>({...n,index:r})).reverse().find(n=>!n.disabled)?.index;return t!==void 0?t:e.length-1},b0=(e,t,n)=>{let r=e;do r=(r+t+n.length)%n.length;while(n[r]?.disabled&&r!==e);return r},w0=(e,t)=>({target:{value:String(e),name:t},currentTarget:{value:String(e),name:t}}),x0=(e,t)=>{if(t>=0&&e.current){const n=e.current.children[t];n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}},S0=(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 oc(t)},C0=C.div`
716
+ `,rc=({size:e="md",leftIcon:t,iconSize:n="sm",iconColor:r="currentColor",placeholder:o="Contraseña...",hasError:s=!1,disabled:i=!1,className:a,...l})=>{const[d,u]=f.useState(!1),c=()=>u(h=>!h);return p.jsxs(m0,{$size:e,$hasError:s,$disabled:i,className:a,children:[t&&p.jsx(W,{component:t,size:n,color:i?"var(--color-dark-200)":r}),p.jsx(g0,{type:d?"text":"password",placeholder:o,disabled:i,...l}),p.jsx(y0,{$disabled:i,onClick:i?void 0:c,children:p.jsx(W,{component:d?c0:l0,size:n,color:i?"var(--color-dark-200)":r})})]})},oc=e=>{const t=e.findIndex(n=>!n.disabled);return t!==-1?t:0},v0=e=>{const t=e.map((n,r)=>({...n,index:r})).reverse().find(n=>!n.disabled)?.index;return t!==void 0?t:e.length-1},b0=(e,t,n)=>{let r=e;do r=(r+t+n.length)%n.length;while(n[r]?.disabled&&r!==e);return r},w0=(e,t)=>({target:{value:String(e),name:t},currentTarget:{value:String(e),name:t}}),x0=(e,t)=>{if(t>=0&&e.current){const n=e.current.children[t];n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}},S0=(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 oc(t)},C0=S.div`
717
717
  position: relative;
718
718
  width: 100%;
719
- `,T0=C.div`
719
+ `,T0=S.div`
720
720
  ${qn}
721
721
  position: absolute;
722
722
  right: 1rem;
@@ -724,7 +724,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
724
724
  transform: translateY(-50%) rotate(${({$open:e})=>e?"180deg":"0deg"});
725
725
  pointer-events: none;
726
726
  transition: transform 0.3s ease-out;
727
- `,k0=C.button`
727
+ `,k0=S.button`
728
728
  ${ut}
729
729
  ${({$size:e})=>sn[e]}
730
730
  ${({$hasError:e})=>e&&ht}
@@ -746,7 +746,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
746
746
  &:hover {
747
747
  background-color: var(--color-main-alternative-secondary);
748
748
  }
749
- `,E0=C(_e.ul)`
749
+ `,E0=S(_e.ul)`
750
750
  position: absolute;
751
751
  z-index: 50;
752
752
  left: 0;
@@ -768,11 +768,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
768
768
  border: var(--border-input-focus);
769
769
  outline: none;
770
770
  }
771
- `,P0=C.div`
771
+ `,P0=S.div`
772
772
  max-height: 15rem;
773
773
  overflow-y: auto;
774
774
  outline: none;
775
- `,A0=C.li`
775
+ `,A0=S.li`
776
776
  display: flex;
777
777
  align-items: center;
778
778
  gap: 0.5rem;
@@ -787,17 +787,17 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
787
787
  background-color: ${({$active:e})=>e?"var(--color-main-alternative-secondary)":"transparent"};
788
788
  color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
789
789
  `,D0={sm:b`
790
- ${I[16]}
790
+ ${L[16]}
791
791
  `,md:b`
792
- ${I[18]}
792
+ ${L[18]}
793
793
  `,lg:b`
794
- ${I[18]}
795
- `},Ro=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,options:r=[],placeholder:o,onOptionSelect:s,onChange:i,value:a,name:l,className:d,inputClassName:u,optionsClassName:c,optionClassName:h},m)=>{const g=f.useRef(null),v=f.useRef(null),w=f.useRef(null),y=f.useRef(null),S=f.useId(),[x,A]=f.useState(!1),[P,k]=f.useState(-1),E=r.find($=>$.value===a);f.useEffect(()=>{x&&v.current&&(v.current.focus(),k(S0(a,r)))},[x,r,a]),f.useEffect(()=>{x0(w,P)},[P]),f.useEffect(()=>{if(!x)return;const $=U=>{g.current&&(g.current.contains(U.target)||A(!1))};return document.addEventListener("mousedown",$),()=>document.removeEventListener("mousedown",$)},[x]),f.useEffect(()=>{x||requestAnimationFrame(()=>{m?.current?.focus?.(),y.current?.focus()})},[x,m]);const D=$=>{$.disabled||(s?.($),i&&i(w0($.value,l)),A(!1),k(-1))},L=$=>{n||($.key==="ArrowDown"||$.key==="ArrowUp"?($.preventDefault(),A(!0)):($.key==="Enter"||$.key===" ")&&($.preventDefault(),A(U=>!U)))},_=$=>{if($.key==="Escape"){$.preventDefault(),A(!1),k(-1);return}if($.key==="ArrowDown"||$.key==="ArrowUp"){$.preventDefault();const U=$.key==="ArrowDown"?1:-1;k(b0(P,U,r))}else if($.key==="Enter"){$.preventDefault();const U=r[P];U&&!U.disabled&&D(U)}else $.key==="Home"?($.preventDefault(),k(oc(r))):$.key==="End"&&($.preventDefault(),k(v0(r)))};return p.jsxs(C0,{ref:g,className:d,children:[l&&p.jsx("input",{type:"hidden",name:l,value:E?.value??""}),p.jsx(k0,{type:"button",$size:e,$hasError:t,$hasValue:!!E,$disabled:n,disabled:n,className:u,ref:$=>{y.current=$,typeof m=="function"?m($):m&&"current"in m&&(m.current=$)},onClick:()=>!n&&A($=>!$),onKeyDown:L,"aria-haspopup":"listbox","aria-expanded":x,"aria-controls":`${S}-listbox`,"aria-invalid":t||void 0,title:E?.label??o??"Select an option",children:E?.label??o??""}),p.jsx(T0,{$size:e,$disabled:n,$open:x,children:p.jsx(W,{component:s0,size:e==="sm"||e==="md"?"sm":"md",color:n?"var(--color-dark-200)":"var(--color-main-blue-primary)"})}),p.jsx(Zt,{children:x&&p.jsx(E0,{ref:v,className:"custom-scrollbar",id:`${S}-listbox`,role:"listbox",tabIndex:0,"aria-activedescendant":P>=0?`${S}-option-${P}`: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(P0,{ref:w,className:c,children:r.map(($,U)=>{const V=U===P;return p.jsx(A0,{id:`${S}-option-${U}`,className:h,role:"option",$size:e,"aria-selected":a===$.value,$active:V,$disabled:$.disabled,onMouseEnter:()=>{!$.disabled&&x&&k(U)},onClick:()=>D($),children:$.label},$.value)})})})})]})});Ro.displayName="SelectInput";const $0=C.textarea`
794
+ ${L[18]}
795
+ `},Ro=f.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,options:r=[],placeholder:o,onOptionSelect:s,onChange:i,value:a,name:l,className:d,inputClassName:u,optionsClassName:c,optionClassName:h},m)=>{const g=f.useRef(null),v=f.useRef(null),x=f.useRef(null),y=f.useRef(null),C=f.useId(),[w,A]=f.useState(!1),[E,k]=f.useState(-1),P=r.find($=>$.value===a);f.useEffect(()=>{w&&v.current&&(v.current.focus(),k(S0(a,r)))},[w,r,a]),f.useEffect(()=>{x0(x,E)},[E]),f.useEffect(()=>{if(!w)return;const $=H=>{g.current&&(g.current.contains(H.target)||A(!1))};return document.addEventListener("mousedown",$),()=>document.removeEventListener("mousedown",$)},[w]),f.useEffect(()=>{w||requestAnimationFrame(()=>{m?.current?.focus?.(),y.current?.focus()})},[w,m]);const D=$=>{$.disabled||(s?.($),i&&i(w0($.value,l)),A(!1),k(-1))},N=$=>{n||($.key==="ArrowDown"||$.key==="ArrowUp"?($.preventDefault(),A(!0)):($.key==="Enter"||$.key===" ")&&($.preventDefault(),A(H=>!H)))},_=$=>{if($.key==="Escape"){$.preventDefault(),A(!1),k(-1);return}if($.key==="ArrowDown"||$.key==="ArrowUp"){$.preventDefault();const H=$.key==="ArrowDown"?1:-1;k(b0(E,H,r))}else if($.key==="Enter"){$.preventDefault();const H=r[E];H&&!H.disabled&&D(H)}else $.key==="Home"?($.preventDefault(),k(oc(r))):$.key==="End"&&($.preventDefault(),k(v0(r)))};return p.jsxs(C0,{ref:g,className:d,children:[l&&p.jsx("input",{type:"hidden",name:l,value:P?.value??""}),p.jsx(k0,{type:"button",$size:e,$hasError:t,$hasValue:!!P,$disabled:n,disabled:n,className:u,ref:$=>{y.current=$,typeof m=="function"?m($):m&&"current"in m&&(m.current=$)},onClick:()=>!n&&A($=>!$),onKeyDown:N,"aria-haspopup":"listbox","aria-expanded":w,"aria-controls":`${C}-listbox`,"aria-invalid":t||void 0,title:P?.label??o??"Select an option",children:P?.label??o??""}),p.jsx(T0,{$size:e,$disabled:n,$open:w,children:p.jsx(W,{component:s0,size:e==="sm"||e==="md"?"sm":"md",color:n?"var(--color-dark-200)":"var(--color-main-blue-primary)"})}),p.jsx(Zt,{children:w&&p.jsx(E0,{ref:v,className:"custom-scrollbar",id:`${C}-listbox`,role:"listbox",tabIndex:0,"aria-activedescendant":E>=0?`${C}-option-${E}`: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(P0,{ref:x,className:c,children:r.map(($,H)=>{const U=H===E;return p.jsx(A0,{id:`${C}-option-${H}`,className:h,role:"option",$size:e,"aria-selected":a===$.value,$active:U,$disabled:$.disabled,onMouseEnter:()=>{!$.disabled&&w&&k(H)},onClick:()=>D($),children:$.label},$.value)})})})})]})});Ro.displayName="SelectInput";const $0=S.textarea`
796
796
  ${ut}
797
797
  ${({$size:e})=>M0[e]}
798
798
  ${({$hasError:e})=>e&&ht}
799
799
  ${({$disabled:e})=>e&&qe}
800
- ${I[20]}
800
+ ${L[20]}
801
801
 
802
802
  resize: ${({$resize:e})=>e};
803
803
 
@@ -811,24 +811,24 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
811
811
  opacity: 1;
812
812
  }
813
813
  `,M0={sm:`
814
- ${I[20]}
814
+ ${L[20]}
815
815
  height: 6rem;
816
816
  max-height: 12rem;
817
817
  padding: 1rem 1.25rem;
818
818
  `,md:`
819
- ${I[24]}
819
+ ${L[24]}
820
820
  height: 8rem;
821
821
  max-height: 16rem;
822
822
  padding: 1rem 1.25rem;
823
823
  `,lg:`
824
- ${I[24]}
824
+ ${L[24]}
825
825
  height:12rem;
826
826
  max-height: 20rem;
827
827
  padding: 1rem 1.25rem;
828
- `},_o=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:l,...d},u)=>{const c=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")}l?.(h)};return p.jsx($0,{ref:u,$size:e,$hasError:t,$disabled:n,$resize:r,$autoResize:o,disabled:n,rows:s,className:a,onChange:c,...d})});_o.displayName="TextAreaInput";const V0=C.div`
828
+ `},_o=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:l,...d},u)=>{const c=h=>{if(o){const m=h.target;m.style.height="auto";const g=m.scrollHeight,v=s*24,x=i?i*24:g;g>x?(m.style.height=`${x}px`,m.style.overflowY="scroll"):(m.style.height=`${Math.max(g,v)}px`,m.style.overflowY="hidden")}l?.(h)};return p.jsx($0,{ref:u,$size:e,$hasError:t,$disabled:n,$resize:r,$autoResize:o,disabled:n,rows:s,className:a,onChange:c,...d})});_o.displayName="TextAreaInput";const V0=S.div`
829
829
  ${ut}
830
830
  ${({$size:e})=>sn[e??"md"]}
831
- `,I0=C.input`
831
+ `,I0=S.input`
832
832
  ${Zn}
833
833
  `,ic=({size:e="md",leftIcon:t,rightIcon:n=nc,iconSize:r="sm",iconColor:o="currentColor",placeholder:s="Buscar...",onSearch:i,className:a,...l})=>{const d=u=>{i?.(u.target.value)};return p.jsxs(V0,{$size:e,className:a,children:[t&&p.jsx(W,{component:t,size:r,color:o}),p.jsx(I0,{placeholder:s,onChange:d,...l}),n?p.jsx(W,{component:n,size:r,color:o}):p.jsx(W,{component:nc,size:r,color:o})]})},L0={default:b`
834
834
  min-height: 18rem;
@@ -838,14 +838,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
838
838
  padding: 1rem;
839
839
  flex-direction: row;
840
840
  `},N0={sm:b`
841
- ${I[12]}
841
+ ${L[12]}
842
842
  `,md:b`
843
- ${I[16]}
843
+ ${L[16]}
844
844
  `,lg:b`
845
- ${I[20]}
845
+ ${L[20]}
846
846
  `},B0=b`
847
847
  border: 2px dashed var(--color-main-input-borders);
848
- background-color: transparent;
848
+ background-color: var(--color-main-white);
849
849
  `,O0=b`
850
850
  border-color: var(--color-main-blue-primary);
851
851
  background-color: var(--color-main-alternative-secondary);
@@ -859,13 +859,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
859
859
  border-color: var(--color-dark-200);
860
860
  cursor: not-allowed;
861
861
  opacity: 0.6;
862
- `,R0=C.div`
862
+ `,R0=S.div`
863
863
  display: flex;
864
864
  flex-direction: column;
865
- gap: 0.5rem;
866
865
  width: 100%;
867
866
  ${({$size:e})=>N0[e]}
868
- `,_0=C.div`
867
+ `,_0=S.div`
869
868
  display: flex;
870
869
  flex-direction: column;
871
870
  align-items: center;
@@ -880,7 +879,6 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
880
879
  text-align: center;
881
880
  outline: 2px solid transparent;
882
881
  outline-offset: 2px;
883
- background-color: var(--color-main-white);
884
882
 
885
883
  ${({$variant:e})=>L0[e]}
886
884
  ${B0}
@@ -898,19 +896,19 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
898
896
  outline-color: var(--color-main-blue-primary);
899
897
  outline-offset: 2px;
900
898
  }
901
- `,H0=C.div`
899
+ `,H0=S.div`
902
900
  color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
903
901
 
904
902
  strong {
905
903
  color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
906
904
  font-weight: 700;
907
905
  }
908
- `,U0=C.div`
906
+ `,U0=S.div`
909
907
  display: flex;
910
908
  flex-direction: column;
911
909
  gap: 0.5rem;
912
910
  margin-top: 1rem;
913
- `,W0=C.div`
911
+ `,W0=S.div`
914
912
  display: flex;
915
913
  align-items: center;
916
914
  justify-content: space-between;
@@ -927,12 +925,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
927
925
  &:hover {
928
926
  background-color: var(--color-main-alternative-secondary);
929
927
  }
930
- `,K0=C(Ne)`
928
+ `,K0=S(Ne)`
931
929
  font-weight: 500;
932
930
  overflow: hidden;
933
931
  text-overflow: ellipsis;
934
932
  white-space: nowrap;
935
- `,Y0=C.button`
933
+ `,Y0=S.button`
936
934
  background: none;
937
935
  border: none;
938
936
  color: var(--color-dark-400);
@@ -959,9 +957,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
959
957
  cursor: not-allowed;
960
958
  opacity: 0.5;
961
959
  }
962
- `,G0=(e,t)=>{const[n,r]=f.useState(!1),o=f.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||r(!0)},[t]),s=f.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||r(!1)},[t]),i=f.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]),a=f.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||(r(!1),e(l.dataTransfer.files))},[t,e]);return{isDragging:n,dragHandlers:{onDragEnter:o,onDragLeave:s,onDragOver:i,onDrop:a}}},X0=({maxFileSize:e,accept:t,multiple:n,onError:r})=>{const[o,s]=f.useState(""),i=f.useCallback(l=>{s(l),r?.(l)},[r]),a=f.useCallback(l=>{if(e&&l.some(d=>d.size>e)){const d=`File size exceeds maximum allowed size of ${Math.round(e/1024)} KB or ${Math.round(e/1048576)} MB`;return i(d),!1}if(t){const d=t.split(",").map(c=>c.trim());if(l.find(c=>{const h=c.type,m=`.${c.name.split(".").pop()}`;return!d.some(g=>g===h||g===m)})){const c=`File type not accepted. Allowed: ${t}`;return i(c),!1}}return!n&&l.length>1?(i("Only one file is allowed"),!1):(s(""),!0)},[e,t,n,i]);return{error:o,validateFiles:a,clearError:()=>s("")}},sc=({files:e,onRemove:t,disabled:n})=>{const r=o=>{const s=["Bytes","KB","MB"],i=Math.floor(Math.log(o)/Math.log(1024));return`${(o/Math.pow(1024,i)).toFixed(2)} ${s[i]}`};return e.length===0?null:p.jsx(U0,{children:e.map((o,s)=>p.jsxs(W0,{children:[p.jsxs("div",{className:"flex min-w-[0] flex-col gap-1",children:[p.jsx(K0,{size:14,children:o.name}),p.jsx(Gl,{size:12,children:r(o.size)})]}),p.jsx(Y0,{type:"button",onClick:()=>t(s),"aria-label":`Remove ${o.name}`,disabled:n,children:p.jsx(ec,{})})]},`${o.name}-${s}`))})},Z0=({variant:e="default",multiple:t=!1,maxFileSize:n=10,accept:r="image/*,application/pdf",helperText:o="Upload files here",value:s,defaultValue:i,onChange:a,onError:l,onFileRemove:d,disabled:u=!1,hasError:c=!1,errorMessage:h="",className:m="",size:g="md"})=>{const v=s!==void 0,[w,y]=f.useState(i||[]),S=v?s:w,x=n*1024*1024,{error:A,validateFiles:P,clearError:k}=X0({maxFileSize:x,accept:r,multiple:t,onError:l}),E=(V,he)=>{if(!V||V.length===0)return;const G=Array.from(V);if(!P(G))return;const O=t?[...S,...G]:G;v||y(O),a?.(O,he)},D=V=>{const he=S[V],G=S.filter((O,N)=>N!==V);v||y(G),d?.(he,V),a?.(G),G.length===0&&k()},{isDragging:L,dragHandlers:_}=G0(E,u),$=c||!!A,U=h||A;return p.jsxs(R0,{$size:g,className:m,children:[p.jsxs("label",{"aria-label":"File upload area",children:[p.jsxs(_0,{$variant:e,$isDragging:L,$hasError:$,$disabled:u,role:"button",tabIndex:u?-1:0,"aria-disabled":u,onKeyDown:V=>{(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),V.currentTarget.querySelector("input")?.click())},..._,children:[p.jsx(W,{component:f0,size:"lg",color:u?"var(--color-dark-200)":"var(--color-main-blue-primary)",className:"!text-[5rem]"}),p.jsxs(H0,{$disabled:u,children:[p.jsx("strong",{children:"Click to upload"})," or drag and drop"]}),o&&!$&&p.jsx(Ne,{size:14,color:"var(--color-main-grey)",children:o})]}),p.jsx("input",{type:"file",multiple:t,accept:r,disabled:u,onChange:V=>E(V.target.files,V.nativeEvent),style:{display:"none"},"aria-label":"File input"})]}),$&&U&&p.jsx(Gn,{size:"sm",children:U}),p.jsx(sc,{files:S,onRemove:D,disabled:u})]})},q0=C.div`
960
+ `,G0=(e,t)=>{const[n,r]=f.useState(!1),o=f.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||r(!0)},[t]),s=f.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||r(!1)},[t]),i=f.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]),a=f.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||(r(!1),e(l.dataTransfer.files))},[t,e]);return f.useEffect(()=>()=>{n&&r(!1)},[n]),{isDragging:n,dragHandlers:{onDragEnter:o,onDragLeave:s,onDragOver:i,onDrop:a}}},X0=({maxFileSize:e,accept:t,multiple:n,onError:r})=>{const[o,s]=f.useState(""),i=f.useCallback(l=>{s(l),r?.(l)},[r]),a=f.useCallback(l=>{if(e&&l.some(d=>d.size>e)){const d=e/1048576,u=d>=1?`File size exceeds maximum of ${d.toFixed(1)}MB`:`File size exceeds maximum of ${Math.round(e/1024)}KB`;return i(u),!1}if(t){const d=t.split(",").map(c=>c.trim().toLowerCase());if(l.find(c=>{const h=c.type.toLowerCase(),m=`.${c.name.split(".").pop()?.toLowerCase()}`;return!d.some(g=>{if(g===h||g===m)return!0;if(g.endsWith("/*")){const v=g.slice(0,-2);return h.startsWith(`${v}/`)}return!1})})){const c=`File type not accepted. Allowed: ${t}`;return i(c),!1}}return!n&&l.length>1?(i("Only one file is allowed"),!1):(s(""),!0)},[e,t,n,i]);return{error:o,validateFiles:a,clearError:()=>s("")}},sc=({files:e,onRemove:t,disabled:n})=>{const r=o=>{const s=["Bytes","KB","MB"],i=Math.floor(Math.log(o)/Math.log(1024));return`${(o/Math.pow(1024,i)).toFixed(2)} ${s[i]}`};return e.length===0?null:p.jsx(U0,{children:e.map((o,s)=>p.jsxs(W0,{children:[p.jsxs("div",{className:"flex min-w-[0] flex-col gap-1",children:[p.jsx(K0,{size:14,children:o.name}),p.jsx(Gl,{size:12,children:r(o.size)})]}),p.jsx(Y0,{type:"button",onClick:()=>t(s),"aria-label":`Remove ${o.name}`,disabled:n,children:p.jsx(ec,{})})]},`${o.name}-${s}`))})},Z0=({variant:e="default",multiple:t=!1,maxFileSize:n=10,accept:r="image/*,application/pdf",helperText:o="Upload files here",value:s,defaultValue:i,onChange:a,onError:l,onFileRemove:d,disabled:u=!1,hasError:c=!1,errorMessage:h="",className:m="",dropZoneContainerClassName:g="",size:v="md"})=>{const x=s!==void 0,[y,C]=f.useState(i||[]),w=x?s:y,A=n*1024*1024,{error:E,validateFiles:k,clearError:P}=X0({maxFileSize:A,accept:r,multiple:t,onError:l}),D=(G,Q)=>{if(!G||G.length===0)return;const V=Array.from(G);if(!k(V))return;const I=t?[...w,...V]:V;x||C(I),a?.(I,Q)},N=G=>{const Q=w[G],V=w.filter((I,R)=>R!==G);x||C(V),d?.(Q,G),a?.(V),V.length===0&&P()},{isDragging:_,dragHandlers:$}=G0(D,u),H=c||!!E,U=h||E;return p.jsxs(R0,{$size:v,className:m,children:[p.jsxs("label",{"aria-label":"File upload area",className:`p-4 ${g}`,children:[p.jsxs(_0,{$variant:e,$isDragging:_,$hasError:H,$disabled:u,role:"button",tabIndex:u?-1:0,"aria-disabled":u,onKeyDown:G=>{(G.key==="Enter"||G.key===" ")&&(G.preventDefault(),G.currentTarget.querySelector("input")?.click())},...$,children:[p.jsx(W,{component:f0,size:"lg",color:u?"var(--color-dark-200)":"var(--color-main-blue-primary)",className:"!text-[5rem]"}),p.jsxs(H0,{$disabled:u,children:[p.jsx("strong",{children:"Click to upload"})," or drag and drop"]}),o&&!H&&p.jsx(Ne,{size:14,color:"var(--color-main-grey)",children:o})]}),p.jsx("input",{type:"file",multiple:t,accept:r,disabled:u,onChange:G=>D(G.target.files,G.nativeEvent),style:{display:"none"},"aria-label":"File input"})]}),H&&U&&p.jsx(Gn,{size:"sm",children:U}),p.jsx(sc,{files:w,onRemove:N,disabled:u})]})},q0=S.div`
963
961
  position: relative;
964
- `,J0=C.input`
962
+ `,J0=S.input`
965
963
  position: absolute;
966
964
  height: 1.5rem;
967
965
  width: 1.5rem;
@@ -978,7 +976,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
978
976
  outline-color: var(--color-main-orange-primary);
979
977
  outline-offset: 2px;
980
978
  }
981
- `,Q0=C.div`
979
+ `,Q0=S.div`
982
980
  height: 1.5rem;
983
981
  width: 1.5rem;
984
982
  border: 2px solid;
@@ -1003,27 +1001,27 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1003
1001
  `,ey=b`
1004
1002
  background-color: var(--color-main-orange-primary);
1005
1003
  border-color: var(--color-main-orange-primary);
1006
- `,ty=C.svg`
1004
+ `,ty=S.svg`
1007
1005
  height: 1.5rem;
1008
1006
  width: 1.5rem;
1009
1007
  color: ${({$disabled:e})=>e?"var(--color-dark-200)":"white"};
1010
1008
  fill: none;
1011
1009
  stroke: currentColor;
1012
- `,ny=C.span`
1010
+ `,ny=S.span`
1013
1011
  display: block;
1014
1012
  width: 60%;
1015
1013
  height: 2px;
1016
1014
  background-color: white;
1017
1015
  border-radius: 1px;
1018
- `,Ho=f.forwardRef(({hasError:e=!1,indeterminate:t=!1,checked:n,disabled:r=!1,onChange:o,className:s,checkboxClassName:i,...a},l)=>{const d=f.useId(),u=a.id??d,c=!!n,{size:h,...m}=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]),p.jsxs(q0,{className:s,children:[p.jsx(J0,{ref:v,type:"checkbox",checked:c||!1,disabled:r,onChange:o,id:u,name:m.name,"aria-invalid":e||void 0,"aria-disabled":r||void 0,"aria-checked":t?"mixed":c?"true":"false",...m}),p.jsxs(Q0,{$checked:!!c||!!t,$hasError:e,$disabled:r,className:i,children:[c&&!t&&p.jsx(ty,{$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(ny,{})]})]})});Ho.displayName="CheckboxInput";const ac=({children:e,size:t="md",disabled:n=!1,htmlFor:r,onLabelClick:o,className:s,onClick:i,...a})=>{const l=d=>{n||(o&&o(),i&&i(d))};return p.jsx(Xn,{size:t,disabled:n,htmlFor:r,onClick:l,className:s,...a,children:e})},ry=C.section`
1016
+ `,Ho=f.forwardRef(({hasError:e=!1,indeterminate:t=!1,checked:n,disabled:r=!1,onChange:o,className:s,checkboxClassName:i,...a},l)=>{const d=f.useId(),u=a.id??d,c=!!n,{size:h,...m}=a,g=f.useRef(null),v=f.useCallback(x=>{if(g.current=x,!!l)if(typeof l=="function")try{l(x)}catch{}else l.current=x},[l]);return f.useEffect(()=>{g.current&&(g.current.indeterminate=!!t)},[t]),p.jsxs(q0,{className:s,children:[p.jsx(J0,{ref:v,type:"checkbox",checked:c||!1,disabled:r,onChange:o,id:u,name:m.name,"aria-invalid":e||void 0,"aria-disabled":r||void 0,"aria-checked":t?"mixed":c?"true":"false",...m}),p.jsxs(Q0,{$checked:!!c||!!t,$hasError:e,$disabled:r,className:i,children:[c&&!t&&p.jsx(ty,{$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(ny,{})]})]})});Ho.displayName="CheckboxInput";const ac=({children:e,size:t="md",disabled:n=!1,htmlFor:r,onLabelClick:o,className:s,onClick:i,...a})=>{const l=d=>{n||(o&&o(),i&&i(d))};return p.jsx(Xn,{size:t,disabled:n,htmlFor:r,onClick:l,className:s,...a,children:e})},ry=S.section`
1019
1017
  display: flex;
1020
1018
  align-items: center;
1021
1019
  justify-content: center;
1022
1020
  gap: 1rem;
1023
- `,Jn=f.forwardRef(({size:e="md",label:t,hasError:n=!1,indeterminate:r=!1,checked:o,disabled:s=!1,onChange:i,onLabelClick:a,className:l,checkboxClassName:d,labelClassName:u,...c},h)=>{const m=f.useId(),g=c.id??m;return p.jsxs(ry,{className:l,children:[p.jsx(Ho,{ref:h,size:e,hasError:n,indeterminate:r,checked:o,disabled:s,onChange:i,checkboxClassName:d,id:g,...c}),t&&p.jsx(ac,{size:e,disabled:s,htmlFor:g,onLabelClick:a,className:u,children:t})]})});Jn.displayName="Checkbox";const oy=C.div`
1021
+ `,Jn=f.forwardRef(({size:e="md",label:t,hasError:n=!1,indeterminate:r=!1,checked:o,disabled:s=!1,onChange:i,onLabelClick:a,className:l,checkboxClassName:d,labelClassName:u,...c},h)=>{const m=f.useId(),g=c.id??m;return p.jsxs(ry,{className:l,children:[p.jsx(Ho,{ref:h,size:e,hasError:n,indeterminate:r,checked:o,disabled:s,onChange:i,checkboxClassName:d,id:g,...c}),t&&p.jsx(ac,{size:e,disabled:s,htmlFor:g,onLabelClick:a,className:u,children:t})]})});Jn.displayName="Checkbox";const oy=S.div`
1024
1022
  position: relative;
1025
1023
  display: inline-block;
1026
- `,iy=C.input`
1024
+ `,iy=S.input`
1027
1025
  ${ut}
1028
1026
  text-align: center;
1029
1027
  padding: 0;
@@ -1068,24 +1066,24 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1068
1066
  padding: 0.375rem;
1069
1067
  width: 2.5rem;
1070
1068
  height: 2.5rem;
1071
- ${I[24]}
1069
+ ${L[24]}
1072
1070
  `,md:`
1073
1071
  padding: 0.625rem;
1074
1072
  width: 3rem;
1075
1073
  height: 3.5rem;
1076
- ${I[30]}
1074
+ ${L[30]}
1077
1075
  `,lg:`
1078
1076
  padding: 0.75rem;
1079
1077
  width: 3.5rem;
1080
1078
  height: 4rem;
1081
- ${I[40]}
1082
- `},Uo=f.forwardRef(({size:e="md",hasError:t=!1,variant:n="outlined",disabled:r=!1,className:o,maxLength:s=1,type:i="text",...a},l)=>{const d=f.useId(),u=a.id??d;return p.jsx(oy,{children:p.jsx(iy,{ref:l,$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})})});Uo.displayName="PinInput";const lc=(e,t,n,r,o,s,i="text",a,l)=>{const d=e.target.value;if(d.length>1)return;const u=s??o.length;if(i==="number"&&d&&!/^\d$/.test(d))return;const c=[...n];c[t]=d,r(c);const h=c.join("");a?.(h),d&&t<s-1&&o[t+1].current?.focus(),c.every(m=>m!=="")&&c.length>=u&&l?.(h)},cc=(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()},dc=(e,t,n,r,o,s,i="text",a,l)=>{e.preventDefault();const d=e.clipboardData.getData("text");if(!d)return;const u=s??o.length,c=[...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)||(c[w]=y)}r(c),a?.(c.join(""));const h=c.findIndex(v=>v===""),m=h!==-1?Math.min(Math.max(h,t),u-1):u-1;o[m].current?.focus();const g=c.join("");c.every(v=>v!=="")&&c.length>=u&&l?.(g)},uc=e=>Array(e).fill(null).map(()=>f.createRef()),ly=(e,t,n="text")=>!(e.length!==t||n==="number"&&!/^\d+$/.test(e)),cy=C.div`
1079
+ ${L[40]}
1080
+ `},Uo=f.forwardRef(({size:e="md",hasError:t=!1,variant:n="outlined",disabled:r=!1,className:o,maxLength:s=1,type:i="text",...a},l)=>{const d=f.useId(),u=a.id??d;return p.jsx(oy,{children:p.jsx(iy,{ref:l,$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})})});Uo.displayName="PinInput";const lc=(e,t,n,r,o,s,i="text",a,l)=>{const d=e.target.value;if(d.length>1)return;const u=s??o.length;if(i==="number"&&d&&!/^\d$/.test(d))return;const c=[...n];c[t]=d,r(c);const h=c.join("");a?.(h),d&&t<s-1&&o[t+1].current?.focus(),c.every(m=>m!=="")&&c.length>=u&&l?.(h)},cc=(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()},dc=(e,t,n,r,o,s,i="text",a,l)=>{e.preventDefault();const d=e.clipboardData.getData("text");if(!d)return;const u=s??o.length,c=[...n];for(let v=0;v<d.length;v++){const x=t+v;if(x>=u)break;const y=d[v];i==="number"&&!/^\d$/.test(y)||(c[x]=y)}r(c),a?.(c.join(""));const h=c.findIndex(v=>v===""),m=h!==-1?Math.min(Math.max(h,t),u-1):u-1;o[m].current?.focus();const g=c.join("");c.every(v=>v!=="")&&c.length>=u&&l?.(g)},uc=e=>Array(e).fill(null).map(()=>f.createRef()),ly=(e,t,n="text")=>!(e.length!==t||n==="number"&&!/^\d+$/.test(e)),cy=S.div`
1083
1081
  display: flex;
1084
1082
  gap: 8px;
1085
1083
  align-items: center;
1086
- `,Wo=({length:e=6,size:t="md",variant:n="outlined",hasError:r=!1,type:o="number",onChange:s,onComplete:i,className:a,pinInputClassName:l})=>{const[d,u]=f.useState(Array(e).fill("")),c=f.useMemo(()=>uc(e),[e]);return p.jsx(cy,{className:a,children:Array.from({length:e},(h,m)=>p.jsx(Uo,{className:l,size:t,variant:n,hasError:r,value:d[m],onChange:g=>lc(g,m,d,u,c,e,o,s,i),onKeyDown:g=>cc(g,m,d,c,u,s),onPaste:g=>dc(g,m,d,u,c,e,o,s,i),ref:c[m]},m))})};Wo.displayName="PinInputGroup";const dy=C.div`
1084
+ `,Wo=({length:e=6,size:t="md",variant:n="outlined",hasError:r=!1,type:o="number",onChange:s,onComplete:i,className:a,pinInputClassName:l})=>{const[d,u]=f.useState(Array(e).fill("")),c=f.useMemo(()=>uc(e),[e]);return p.jsx(cy,{className:a,children:Array.from({length:e},(h,m)=>p.jsx(Uo,{className:l,size:t,variant:n,hasError:r,value:d[m],onChange:g=>lc(g,m,d,u,c,e,o,s,i),onKeyDown:g=>cc(g,m,d,c,u,s),onPaste:g=>dc(g,m,d,u,c,e,o,s,i),ref:c[m]},m))})};Wo.displayName="PinInputGroup";const dy=S.div`
1087
1085
  position: relative;
1088
- `,uy=C.input`
1086
+ `,uy=S.input`
1089
1087
  position: absolute;
1090
1088
  height: 1.5rem;
1091
1089
  width: 1.5rem;
@@ -1105,7 +1103,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1105
1103
  }
1106
1104
  `,hy=b`
1107
1105
  border-color: var(--color-main-orange-primary);
1108
- `,fy=C.div`
1106
+ `,fy=S.div`
1109
1107
  height: 1.5rem;
1110
1108
  width: 1.5rem;
1111
1109
  border: 2px solid var(--color-main-input-borders);
@@ -1127,7 +1125,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1127
1125
  border: 2px solid var(--color-dark-200) !important;
1128
1126
  `}
1129
1127
  ${({$checked:e})=>e&&hy}
1130
- `,py=C.span`
1128
+ `,py=S.span`
1131
1129
  display: block;
1132
1130
  height: 0.625rem;
1133
1131
  width: 0.625rem;
@@ -1136,21 +1134,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1136
1134
  background-color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-orange-primary)"};
1137
1135
  opacity: ${({$checked:e})=>e?1:0};
1138
1136
  transform: ${({$checked:e})=>e?"scale(1)":"scale(0.6)"};
1139
- `,Ko=f.forwardRef(({hasError:e=!1,checked:t,disabled:n=!1,onChange:r,className:o,dotClassName:s,...i},a)=>{const l=f.useId(),d=i.id??l,u=!!t,{size:c,...h}=i;return p.jsxs(dy,{className:o,children:[p.jsx(uy,{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(fy,{$checked:!!u,$hasError:e,$disabled:n,className:s,children:p.jsx(py,{$disabled:n,$checked:u})})]})});Ko.displayName="RadioInputDot";const Yo=({children:e,htmlFor:t,className:n,disabled:r=!1,size:o="md",...s})=>p.jsx(Xn,{className:n,htmlFor:t,size:o,disabled:r,...s,children:e});Yo.displayName="RadioInputLabel";const my=C.section`
1137
+ `,Ko=f.forwardRef(({hasError:e=!1,checked:t,disabled:n=!1,onChange:r,className:o,dotClassName:s,...i},a)=>{const l=f.useId(),d=i.id??l,u=!!t,{size:c,...h}=i;return p.jsxs(dy,{className:o,children:[p.jsx(uy,{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(fy,{$checked:!!u,$hasError:e,$disabled:n,className:s,children:p.jsx(py,{$disabled:n,$checked:u})})]})});Ko.displayName="RadioInputDot";const Yo=({children:e,htmlFor:t,className:n,disabled:r=!1,size:o="md",...s})=>p.jsx(Xn,{className:n,htmlFor:t,size:o,disabled:r,...s,children:e});Yo.displayName="RadioInputLabel";const my=S.section`
1140
1138
  display: flex;
1141
1139
  align-items: center;
1142
1140
  justify-content: center;
1143
1141
  gap: 1rem;
1144
- `,Go=f.forwardRef(({size:e="md",label:t,hasError:n=!1,checked:r,disabled:o=!1,onChange:s,className:i,dotClassName:a,labelClassName:l,...d},u)=>{const c=f.useId(),h=d.id??c;return p.jsxs(my,{className:i,children:[p.jsx(Ko,{ref:u,size:e,hasError:n,checked:r,disabled:o,onChange:s,dotClassName:a,id:h,...d}),t&&p.jsx(Yo,{size:e,disabled:o,htmlFor:h,className:l,children:t})]})});Go.displayName="RadioInput";const hc=C.div`
1142
+ `,Go=f.forwardRef(({size:e="md",label:t,hasError:n=!1,checked:r,disabled:o=!1,onChange:s,className:i,dotClassName:a,labelClassName:l,...d},u)=>{const c=f.useId(),h=d.id??c;return p.jsxs(my,{className:i,children:[p.jsx(Ko,{ref:u,size:e,hasError:n,checked:r,disabled:o,onChange:s,dotClassName:a,id:h,...d}),t&&p.jsx(Yo,{size:e,disabled:o,htmlFor:h,className:l,children:t})]})});Go.displayName="RadioInput";const hc=S.div`
1145
1143
  display: flex;
1146
1144
  flex-direction: column;
1147
1145
  gap: 0.5rem;
1148
1146
  width: 100%;
1149
- `,gy=C.div`
1147
+ `,gy=S.div`
1150
1148
  display: flex;
1151
1149
  flex-direction: column;
1152
1150
  gap: 0.75rem;
1153
- `,yy=({id:e,name:t,label:n,type:r="text",size:o="md",placeholder:s,disabled:i=!1,required:a=!1,options:l=[],checkboxLabel:d,radioName:u,pinLength:c=6,pinType:h="number",className:m,inputClassName:g,labelClassName:v,messageErrorClassName:w,leftIcon:y,rightIcon:S,iconSize:x,iconColor:A,onOptionSelect:P,onRadioChange:k,onPinComplete:E,onChange:D,...L})=>{const[_,$,U]=qc.useField(t),V=!!($.error&&($.touched||$.value)),he=V?$.error:void 0,G=e?.toString?.()||t,O={required:a||void 0,"aria-required":a||void 0,"aria-invalid":V||void 0,"aria-describedby":V?`${G}-error`:void 0},N=B=>{if(D)return D(B);_.onChange(B)};let H;switch(r){case"textarea":{const B=R=>{D?D(R):_.onChange(R)};H=p.jsx(_o,{id:G,name:t,className:g,hasError:V,disabled:i,value:_.value??"",size:o,placeholder:s,onChange:B,...L,...O});break}case"select":{H=p.jsx(Ro,{id:G,name:t,className:g,hasError:V,disabled:i,size:o,value:_.value??"",onChange:B=>{_.onChange(B);const R=l.find(oe=>String(oe.value)===B.target.value);R&&P?.(R)},options:l,placeholder:s||"Selecciona una opción",...L,...O});break}case"checkbox":{H=p.jsx(Jn,{id:G,name:t,className:g,hasError:V,disabled:i,size:o,checked:!!_.value,label:d,onChange:B=>{U.setValue(B.target.checked)},...L,...O});break}case"radio":{const B=l;H=p.jsx(gy,{children:B.map(R=>p.jsx(Go,{name:u||t,value:R.value,label:R.label,size:o,hasError:V,disabled:i,checked:_.value===R.value,onChange:oe=>{const ie=oe.target.value,z=typeof R.value=="number"?Number(ie):ie;U.setValue(z),k?.(oe)},...O},R.value))});break}case"pin":{H=p.jsx(Wo,{length:c,type:h,size:o,hasError:V,onChange:B=>U.setValue(B),onComplete:B=>{U.setValue(B),E?.(B)},...L,...O});break}case"password":{const{rightIcon:B,...R}=L;H=p.jsx(rc,{id:G,name:t,className:g,hasError:V,disabled:i,size:o,placeholder:s,leftIcon:y,iconSize:x,iconColor:A,onChange:N,...R,...O});break}case"search":{H=p.jsx(ic,{className:g,size:o,placeholder:s,leftIcon:y,rightIcon:S,iconSize:x,iconColor:A,onSearch:L.onSearch,...O});break}default:H=p.jsx(zo,{id:G,name:t,className:g,hasError:V,disabled:i,size:o,placeholder:s,type:["text","email","number","tel","url","date","date","datetime-local","time"].includes(r)?r:"text",leftIcon:y,rightIcon:S,iconSize:x,iconColor:A,value:_.value??"",onChange:N,...L,...O})}return r==="checkbox"?p.jsxs(hc,{className:m,children:[H,V&&p.jsx(Gn,{id:`${G}-error`,size:o,className:w,children:he})]}):p.jsxs(hc,{className:m,children:[n&&p.jsx(Xn,{htmlFor:G,size:o,required:a,disabled:i,className:v,children:n}),H,V&&p.jsx(Gn,{id:`${G}-error`,size:o,className:w,children:he})]})},fc={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},Xo={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},vy={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"}}},pc={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"}},by=C(_e.div)`
1151
+ `,yy=({id:e,name:t,label:n,type:r="text",size:o="md",placeholder:s,disabled:i=!1,required:a=!1,options:l=[],checkboxLabel:d,radioName:u,pinLength:c=6,pinType:h="number",className:m,inputClassName:g,labelClassName:v,messageErrorClassName:x,leftIcon:y,rightIcon:C,iconSize:w,iconColor:A,onOptionSelect:E,onRadioChange:k,onPinComplete:P,onChange:D,...N})=>{const[_,$,H]=qc.useField(t),U=!!($.error&&($.touched||$.value)),G=U?$.error:void 0,Q=e?.toString?.()||t,V={required:a||void 0,"aria-required":a||void 0,"aria-invalid":U||void 0,"aria-describedby":U?`${Q}-error`:void 0},I=B=>{if(D)return D(B);_.onChange(B)};let R;switch(r){case"textarea":{const B=z=>{D?D(z):_.onChange(z)};R=p.jsx(_o,{id:Q,name:t,className:g,hasError:U,disabled:i,value:_.value??"",size:o,placeholder:s,onChange:B,...N,...V});break}case"select":{R=p.jsx(Ro,{id:Q,name:t,className:g,hasError:U,disabled:i,size:o,value:_.value??"",onChange:B=>{_.onChange(B);const z=l.find(ie=>String(ie.value)===B.target.value);z&&E?.(z)},options:l,placeholder:s||"Selecciona una opción",...N,...V});break}case"checkbox":{R=p.jsx(Jn,{id:Q,name:t,className:g,hasError:U,disabled:i,size:o,checked:!!_.value,label:d,onChange:B=>{H.setValue(B.target.checked)},...N,...V});break}case"radio":{const B=l;R=p.jsx(gy,{children:B.map(z=>p.jsx(Go,{name:u||t,value:z.value,label:z.label,size:o,hasError:U,disabled:i,checked:_.value===z.value,onChange:ie=>{const se=ie.target.value,j=typeof z.value=="number"?Number(se):se;H.setValue(j),k?.(ie)},...V},z.value))});break}case"pin":{R=p.jsx(Wo,{length:c,type:h,size:o,hasError:U,onChange:B=>H.setValue(B),onComplete:B=>{H.setValue(B),P?.(B)},...N,...V});break}case"password":{const{rightIcon:B,...z}=N;R=p.jsx(rc,{id:Q,name:t,className:g,hasError:U,disabled:i,size:o,placeholder:s,leftIcon:y,iconSize:w,iconColor:A,onChange:I,...z,...V});break}case"search":{R=p.jsx(ic,{className:g,size:o,placeholder:s,leftIcon:y,rightIcon:C,iconSize:w,iconColor:A,onSearch:N.onSearch,...V});break}default:R=p.jsx(zo,{id:Q,name:t,className:g,hasError:U,disabled:i,size:o,placeholder:s,type:["text","email","number","tel","url","date","date","datetime-local","time"].includes(r)?r:"text",leftIcon:y,rightIcon:C,iconSize:w,iconColor:A,value:_.value??"",onChange:I,...N,...V})}return r==="checkbox"?p.jsxs(hc,{className:m,children:[R,U&&p.jsx(Gn,{id:`${Q}-error`,size:o,className:x,children:G})]}):p.jsxs(hc,{className:m,children:[n&&p.jsx(Xn,{htmlFor:Q,size:o,required:a,disabled:i,className:v,children:n}),R,U&&p.jsx(Gn,{id:`${Q}-error`,size:o,className:x,children:G})]})},fc={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},Xo={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},vy={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"}}},pc={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"}},by=S(_e.div)`
1154
1152
  position: fixed;
1155
1153
  inset: 0;
1156
1154
  z-index: 50;
@@ -1164,7 +1162,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1164
1162
  @media (max-width: 768px) {
1165
1163
  padding: 0.5rem;
1166
1164
  }
1167
- `,wy=C(_e.div)`
1165
+ `,wy=S(_e.div)`
1168
1166
  position: relative;
1169
1167
  display: flex;
1170
1168
  flex-direction: column;
@@ -1191,7 +1189,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1191
1189
  outline: none;
1192
1190
  box-shadow: var(--shadow-hover-black-card);
1193
1191
  }
1194
- `,xy=C.button`
1192
+ `,xy=S.button`
1195
1193
  position: absolute;
1196
1194
  top: 1rem;
1197
1195
  right: 1rem;
@@ -1210,7 +1208,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1210
1208
  transform: scale(1.1);
1211
1209
  outline: none;
1212
1210
  }
1213
- `,mc=({isOpen:e,onClose:t,children:n,className:r,closeOnBackdropClick:o=!0,showCloseButton:s=!1,size:i="md",fullScreen:a=!1,closeOnEsc:l=!0,ariaLabel:d,ariaLabelledBy:u,ariaDescribedBy:c})=>{const h=f.useRef(null),m=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;m.current=document.activeElement;const w=h.current,y=()=>{w&&(w.hasAttribute("tabindex")||w.setAttribute("tabindex","-1"),w.focus())},S=window.setTimeout(y,0);function x(P){const k=["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(P.querySelectorAll(k.join(","))).filter(E=>!!(E.offsetWidth||E.offsetHeight||E.getClientRects().length))}const A=P=>{if(P.key!=="Tab"||!w)return;const k=x(w);if(k.length===0){P.preventDefault(),w.focus();return}const E=k[0],D=k[k.length-1],L=document.activeElement;!P.shiftKey&&L===D?(P.preventDefault(),E.focus()):P.shiftKey&&L===E&&(P.preventDefault(),D.focus())};return document.addEventListener("keydown",A),()=>{window.clearTimeout(S),document.removeEventListener("keydown",A),m.current&&m.current.focus()}},[e]);const v=p.jsx(Zt,{children:e&&p.jsx(by,{...Xo,onClick:g,children:p.jsxs(wy,{...fc,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":c,children:[s&&p.jsx(xy,{className:`${qn} cursor-pointer`,onClick:t,"aria-label":"Close dialog",children:p.jsx(W,{component:ec,size:"sm"})}),n]})})});return typeof document>"u"?v:li.createPortal(v,document.body)},Sy=C.div`
1211
+ `,mc=({isOpen:e,onClose:t,children:n,className:r,closeOnBackdropClick:o=!0,showCloseButton:s=!1,size:i="md",fullScreen:a=!1,closeOnEsc:l=!0,ariaLabel:d,ariaLabelledBy:u,ariaDescribedBy:c})=>{const h=f.useRef(null),m=f.useRef(null),g=x=>{o&&x.target===x.currentTarget&&t()};f.useEffect(()=>{const x=y=>{l&&y.key==="Escape"&&t()};return e?(document.addEventListener("keydown",x),document.body.style.overflow="hidden"):document.body.style.overflow="",()=>{document.removeEventListener("keydown",x),document.body.style.overflow=""}},[e,t,l]),f.useEffect(()=>{if(!e)return;m.current=document.activeElement;const x=h.current,y=()=>{x&&(x.hasAttribute("tabindex")||x.setAttribute("tabindex","-1"),x.focus())},C=window.setTimeout(y,0);function w(E){const k=["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(E.querySelectorAll(k.join(","))).filter(P=>!!(P.offsetWidth||P.offsetHeight||P.getClientRects().length))}const A=E=>{if(E.key!=="Tab"||!x)return;const k=w(x);if(k.length===0){E.preventDefault(),x.focus();return}const P=k[0],D=k[k.length-1],N=document.activeElement;!E.shiftKey&&N===D?(E.preventDefault(),P.focus()):E.shiftKey&&N===P&&(E.preventDefault(),D.focus())};return document.addEventListener("keydown",A),()=>{window.clearTimeout(C),document.removeEventListener("keydown",A),m.current&&m.current.focus()}},[e]);const v=p.jsx(Zt,{children:e&&p.jsx(by,{...Xo,onClick:g,children:p.jsxs(wy,{...fc,ref:h,$size:i,$fullScreen:a,className:r,onClick:x=>x.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":d,"aria-labelledby":d?void 0:u,"aria-describedby":c,children:[s&&p.jsx(xy,{className:`${qn} cursor-pointer`,onClick:t,"aria-label":"Close dialog",children:p.jsx(W,{component:ec,size:"sm"})}),n]})})});return typeof document>"u"?v:li.createPortal(v,document.body)},Sy=S.div`
1214
1212
  display: flex;
1215
1213
  align-items: center;
1216
1214
  justify-content: space-between;
@@ -1243,7 +1241,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1243
1241
  flex-shrink: 0;
1244
1242
  margin-left: auto;
1245
1243
  }
1246
- `,gc=({showDivider:e=!1,variant:t="default",children:n,className:r,...o})=>p.jsx(Sy,{$showDivider:e,$variant:t,className:r,...o,children:n}),Cy=C.div`
1244
+ `,gc=({showDivider:e=!1,variant:t="default",children:n,className:r,...o})=>p.jsx(Sy,{$showDivider:e,$variant:t,className:r,...o,children:n}),Cy=S.div`
1247
1245
  position: relative;
1248
1246
  display: flex;
1249
1247
  flex-direction: column;
@@ -1256,7 +1254,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1256
1254
  ${({$showTopDivider:e})=>e&&"border-top: 1px solid var(--color-main-light-borders);"}
1257
1255
 
1258
1256
  ${({$showBottomDivider:e})=>e&&"border-bottom: 1px solid var(--color-main-light-borders);"}
1259
- `,yc=({children:e,padded:t=!0,showTopDivider:n=!1,showBottomDivider:r=!1,className:o,...s})=>p.jsx(Cy,{$padded:t,$showTopDivider:n,$showBottomDivider:r,className:o,...s,children:e}),Ty=C.div`
1257
+ `,yc=({children:e,padded:t=!0,showTopDivider:n=!1,showBottomDivider:r=!1,className:o,...s})=>p.jsx(Cy,{$padded:t,$showTopDivider:n,$showBottomDivider:r,className:o,...s,children:e}),Ty=S.div`
1260
1258
  display: flex;
1261
1259
  align-items: center;
1262
1260
  width: 100%;
@@ -1272,7 +1270,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1272
1270
  bottom: 0;
1273
1271
  background: var(--color-main-white);
1274
1272
  `}
1275
- `,vc=({align:e="end",showDivider:t=!1,gap:n=8,sticky:r=!1,children:o,className:s,...i})=>p.jsx(Ty,{$align:e,$showDivider:t,$gap:n,$sticky:r,className:s,...i,children:o}),ky=({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:l="Accept",cancelLabel:d="Cancel",size:u="md",fullScreen:c=!1,showCloseButton:h=!0,closeOnBackdropClick:m=!1,containerClassName:g,headerClassName:v,bodyClassName:w,footerClassName:y,initiallyConfirmed:S=!1,onConfirmChange:x})=>{const[A,P]=f.useState(S);f.useEffect(()=>{e||P(S)},[e,S]);const k=E=>{P(E),x?.(E)};return p.jsxs(mc,{isOpen:e,onClose:n,size:u,fullScreen:c,showCloseButton:h,closeOnBackdropClick:m,ariaLabelledBy:"tac-title",ariaDescribedBy:"tac-subtitle",className:`${g} !h-fit !max-w-[60rem]`,children:[p.jsx(gc,{showDivider:!0,className:v,children:p.jsx(An,{id:"tac-title",size:20,children:r})}),p.jsxs(yc,{padded:!0,showBottomDivider:!0,className:w,children:[o&&p.jsx(Ne,{id:"tac-subtitle",size:16,children:o}),s,i]}),p.jsxs(vc,{showDivider:!0,align:"space-between",className:y,children:[p.jsx(Jn,{label:a,checked:A,onChange:E=>k(E.target.checked)}),p.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[p.jsx(Fo,{variant:"secondary",onClick:n,children:d}),p.jsx(Fo,{variant:"primary",onClick:t,disabled:!A,children:l})]})]})]})},Zo=f.createContext(void 0),bc=({children:e})=>{const[t,n]=f.useState(!1),[r,o]=f.useState(!1);return p.jsx(Zo.Provider,{value:{isCollapsed:t,setIsCollapsed:n,isMobileOpen:r,setIsMobileOpen:o},children:e})},qo=()=>{const e=f.useContext(Zo);if(!e)throw new Error("useSidebar must be used within a SidebarProvider");return e},Jo=(e=[],t=[])=>!t||t.length===0?!1:t.includes("all")?!0:t.some(n=>e.includes(n)),Ey=b`
1273
+ `,vc=({align:e="end",showDivider:t=!1,gap:n=8,sticky:r=!1,children:o,className:s,...i})=>p.jsx(Ty,{$align:e,$showDivider:t,$gap:n,$sticky:r,className:s,...i,children:o}),ky=({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:l="Accept",cancelLabel:d="Cancel",size:u="md",fullScreen:c=!1,showCloseButton:h=!0,closeOnBackdropClick:m=!1,containerClassName:g,headerClassName:v,bodyClassName:x,footerClassName:y,initiallyConfirmed:C=!1,onConfirmChange:w})=>{const[A,E]=f.useState(C);f.useEffect(()=>{e||E(C)},[e,C]);const k=P=>{E(P),w?.(P)};return p.jsxs(mc,{isOpen:e,onClose:n,size:u,fullScreen:c,showCloseButton:h,closeOnBackdropClick:m,ariaLabelledBy:"tac-title",ariaDescribedBy:"tac-subtitle",className:`${g} !h-fit !max-w-[60rem]`,children:[p.jsx(gc,{showDivider:!0,className:v,children:p.jsx(An,{id:"tac-title",size:20,children:r})}),p.jsxs(yc,{padded:!0,showBottomDivider:!0,className:x,children:[o&&p.jsx(Ne,{id:"tac-subtitle",size:16,children:o}),s,i]}),p.jsxs(vc,{showDivider:!0,align:"space-between",className:y,children:[p.jsx(Jn,{label:a,checked:A,onChange:P=>k(P.target.checked)}),p.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[p.jsx(Fo,{variant:"secondary",onClick:n,children:d}),p.jsx(Fo,{variant:"primary",onClick:t,disabled:!A,children:l})]})]})]})},Zo=f.createContext(void 0),bc=({children:e})=>{const[t,n]=f.useState(!1),[r,o]=f.useState(!1);return p.jsx(Zo.Provider,{value:{isCollapsed:t,setIsCollapsed:n,isMobileOpen:r,setIsMobileOpen:o},children:e})},qo=()=>{const e=f.useContext(Zo);if(!e)throw new Error("useSidebar must be used within a SidebarProvider");return e},Jo=(e=[],t=[])=>!t||t.length===0?!1:t.includes("all")?!0:t.some(n=>e.includes(n)),Ey=b`
1276
1274
  display: flex;
1277
1275
  align-items: center;
1278
1276
  justify-content: center;
@@ -1295,7 +1293,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1295
1293
  outline-color: var(--color-main-blue-primary);
1296
1294
  outline-offset: -2px;
1297
1295
  }
1298
- `,Py=C.button`
1296
+ `,Py=S.button`
1299
1297
  ${wc}
1300
1298
 
1301
1299
  // Level-based padding
@@ -1315,7 +1313,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1315
1313
  }
1316
1314
 
1317
1315
  ${({$collapsed:e})=>e?"justify-content: center;":""}
1318
- `,Ay=C.button`
1316
+ `,Ay=S.button`
1319
1317
  ${wc}
1320
1318
 
1321
1319
  // Level-based padding
@@ -1335,36 +1333,36 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1335
1333
  }
1336
1334
 
1337
1335
  ${({$collapsed:e})=>e?"justify-content: center;":""}
1338
- `,Dy=C.span`
1336
+ `,Dy=S.span`
1339
1337
  display: inline-flex;
1340
1338
  align-items: center;
1341
1339
  gap: 0.75rem;
1342
1340
  min-width: 0;
1343
- `,$y=C(Ne)`
1341
+ `,$y=S(Ne)`
1344
1342
  font-weight: ${({$level:e})=>e===0?600:500};
1345
1343
  color: var(--color-main-blue-primary);
1346
1344
  white-space: nowrap;
1347
1345
  overflow: hidden;
1348
1346
  text-overflow: ellipsis;
1349
- `,My=C(_e.div)`
1347
+ `,My=S(_e.div)`
1350
1348
  background-color: transparent;
1351
1349
  overflow: hidden;
1352
1350
  will-change: height, opacity, transform;
1353
- `,Vy=C.div`
1351
+ `,Vy=S.div`
1354
1352
  width: 100%;
1355
1353
  ${({$level:e})=>e>0?"border-top: 1px solid var(--color-light-200);":""}
1356
- `,Iy=C.span`
1354
+ `,Iy=S.span`
1357
1355
  width: 0.625rem;
1358
1356
  height: 0.125rem;
1359
1357
  background: var(--color-main-blue-primary);
1360
1358
  border-radius: 1px;
1361
1359
  flex: 0 0 auto;
1362
- `,Ly=C.div`
1360
+ `,Ly=S.div`
1363
1361
  ${Ey}
1364
1362
  transform: rotate(${({$open:e})=>e?"90deg":"0deg"});
1365
1363
  pointer-events: none;
1366
1364
  transition: transform 0.3s ease-out;
1367
- `,xc=({item:e,userRoles:t,level:n=0,activePath:r,onNavigate:o})=>{const[s,i]=f.useState(!1),{isCollapsed:a,setIsMobileOpen:l}=qo(),d=f.useMemo(()=>(e.children||[]).filter(S=>Jo(t,S.permissions)),[e.children,t]);if(!f.useMemo(()=>Jo(t,e.permissions),[t,e.permissions]))return null;const c=d.length>0,h=e.href||e.path||"",m=!!(h&&r&&r.startsWith(h)),g=()=>{i(S=>!S)},v=()=>{e.href&&o?.(e.href)},w=async()=>{if(e.path)try{typeof window<"u"&&window.open(e.path,"_blank","noopener,noreferrer"),l&&l(!1)}catch(S){console.error("Error al navegar a microservicio:",S)}},y=()=>p.jsxs(p.Fragment,{children:[p.jsxs(Dy,{children:[n>0&&!a&&p.jsx(Iy,{}),e.icon&&p.jsx(W,{component:e.icon,size:n===0?"md":"sm",color:"var(--color-main-blue-primary)"}),!a&&p.jsx($y,{$level:n,size:n===0?16:n===1?14:12,color:"var(--color-dark-700, #374151)",children:e.label})]}),!a&&c&&p.jsx(Ly,{$disabled:a,$open:s,children:p.jsx(W,{component:i0,size:"sm",color:"var(--color-main-blue-primary)"})})]});return p.jsxs(Vy,{$level:n,children:[e.href&&!e.path&&!c?p.jsx(Py,{type:"button",onClick:v,$level:n,$collapsed:a,$active:m,title:a?e.label:"",children:y()}):p.jsx(Ay,{type:"button",onClick:c?g:e.path?w:v,$level:n,$collapsed:a,$active:m,$expanded:s&&c,title:a?e.label:"",children:y()}),p.jsx(Zt,{initial:!1,children:!a&&s&&c&&p.jsx(My,{$level:n+1,...pc,children:d.map(S=>p.jsx(xc,{item:S,userRoles:t,level:n+1,onNavigate:o,activePath:r},S.id))})})]})},Sc=C(_e.div)`
1365
+ `,xc=({item:e,userRoles:t,level:n=0,activePath:r,onNavigate:o})=>{const[s,i]=f.useState(!1),{isCollapsed:a,setIsMobileOpen:l}=qo(),d=f.useMemo(()=>(e.children||[]).filter(C=>Jo(t,C.permissions)),[e.children,t]);if(!f.useMemo(()=>Jo(t,e.permissions),[t,e.permissions]))return null;const c=d.length>0,h=e.href||e.path||"",m=!!(h&&r&&r.startsWith(h)),g=()=>{i(C=>!C)},v=()=>{e.href&&o?.(e.href)},x=async()=>{if(e.path)try{typeof window<"u"&&window.open(e.path,"_blank","noopener,noreferrer"),l&&l(!1)}catch(C){console.error("Error al navegar a microservicio:",C)}},y=()=>p.jsxs(p.Fragment,{children:[p.jsxs(Dy,{children:[n>0&&!a&&p.jsx(Iy,{}),e.icon&&p.jsx(W,{component:e.icon,size:n===0?"md":"sm",color:"var(--color-main-blue-primary)"}),!a&&p.jsx($y,{$level:n,size:n===0?16:n===1?14:12,color:"var(--color-dark-700, #374151)",children:e.label})]}),!a&&c&&p.jsx(Ly,{$disabled:a,$open:s,children:p.jsx(W,{component:i0,size:"sm",color:"var(--color-main-blue-primary)"})})]});return p.jsxs(Vy,{$level:n,children:[e.href&&!e.path&&!c?p.jsx(Py,{type:"button",onClick:v,$level:n,$collapsed:a,$active:m,title:a?e.label:"",children:y()}):p.jsx(Ay,{type:"button",onClick:c?g:e.path?x:v,$level:n,$collapsed:a,$active:m,$expanded:s&&c,title:a?e.label:"",children:y()}),p.jsx(Zt,{initial:!1,children:!a&&s&&c&&p.jsx(My,{$level:n+1,...pc,children:d.map(C=>p.jsx(xc,{item:C,userRoles:t,level:n+1,onNavigate:o,activePath:r},C.id))})})]})},Sc=S(_e.div)`
1368
1366
  position: fixed;
1369
1367
  inset: 0;
1370
1368
  background: rgba(0, 0, 0, 0.5);
@@ -1373,7 +1371,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1373
1371
  @media (max-width: 767px) {
1374
1372
  display: block;
1375
1373
  }
1376
- `,Cc=C.aside`
1374
+ `,Cc=S.aside`
1377
1375
  position: fixed;
1378
1376
  left: 0;
1379
1377
  top: 0;
@@ -1392,7 +1390,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1392
1390
  @media (min-width: 768px) {
1393
1391
  transform: translateX(0);
1394
1392
  }
1395
- `,Tc=C.div`
1393
+ `,Tc=S.div`
1396
1394
  display: flex;
1397
1395
  align-items: center;
1398
1396
  justify-content: space-between;
@@ -1400,11 +1398,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1400
1398
  padding: 1rem;
1401
1399
 
1402
1400
  ${({$collapsed:e})=>e?"flex-direction: column":""};
1403
- `,kc=C.div`
1401
+ `,kc=S.div`
1404
1402
  display: flex;
1405
1403
  align-items: center;
1406
1404
  gap: 0.5rem;
1407
- `,Ec=C.nav`
1405
+ `,Ec=S.nav`
1408
1406
  display: flex;
1409
1407
  flex-direction: column;
1410
1408
  justify-content: flex-start;
@@ -1412,7 +1410,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1412
1410
  flex: 1;
1413
1411
  overflow-y: auto;
1414
1412
  padding: 0.25rem 0;
1415
- `,Pc=C.button`
1413
+ `,Pc=S.button`
1416
1414
  display: flex;
1417
1415
  align-items: center;
1418
1416
  justify-content: center;
@@ -1438,7 +1436,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1438
1436
  @media (max-width: 767px) {
1439
1437
  display: none;
1440
1438
  }
1441
- `,Ac=C.button`
1439
+ `,Ac=S.button`
1442
1440
  position: fixed;
1443
1441
  top: 0.5rem;
1444
1442
  left: 1rem;
@@ -1529,14 +1527,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1529
1527
  }
1530
1528
  `,Mc={sm:b`
1531
1529
  gap: 0.25rem;
1532
- ${I[14]}
1530
+ ${L[14]}
1533
1531
  `,md:b`
1534
1532
  gap: 0.5rem;
1535
- ${I[16]}
1533
+ ${L[16]}
1536
1534
  `,lg:b`
1537
1535
  gap: 0.75rem;
1538
- ${I[20]}
1539
- `},Ny=C.a`
1536
+ ${L[20]}
1537
+ `},Ny=S.a`
1540
1538
  display: inline-flex;
1541
1539
  align-items: center;
1542
1540
  border-radius: 0.25rem;
@@ -1551,7 +1549,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1551
1549
  ${({$size:e})=>Mc[e]}
1552
1550
  ${({$variant:e})=>Dc[e]}
1553
1551
  ${({$disabled:e})=>e&&$c}
1554
- `,By=C.span`
1552
+ `,By=S.span`
1555
1553
  flex: 1 1 auto;
1556
1554
  min-width: 0;
1557
1555
  max-width: 18ch;
@@ -1560,7 +1558,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1560
1558
  text-overflow: ellipsis;
1561
1559
  white-space: nowrap;
1562
1560
  `}
1563
- `,Vc=f.forwardRef(({id:e,size:t="md",variant:n="underlined",children:r,href:o,target:s,rel:i,className:a,disabled:l=!1,tabIndex:d,leftIcon:u,rightIcon:c,iconSize:h="tn",iconColor:m="currentColor",truncate:g=!1,"aria-label":v,"aria-describedby":w,onClick:y,...S},x)=>{const A=f.useCallback(k=>{if(l){k.preventDefault();return}y?.(k)},[l,y]),P={href:l?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":l,tabIndex:l?-1:d??0,...S};return p.jsxs(Ny,{id:e,$variant:n,$size:t,$disabled:l,className:a,ref:x,...P,children:[u&&p.jsx(W,{component:u,size:h,color:m}),p.jsx(By,{$truncate:g,children:r}),p.jsx(W,{component:c||a0,size:t==="lg"?"sm":h,color:m})]})});Vc.displayName="Link";const Ic={default:b`
1561
+ `,Vc=f.forwardRef(({id:e,size:t="md",variant:n="underlined",children:r,href:o,target:s,rel:i,className:a,disabled:l=!1,tabIndex:d,leftIcon:u,rightIcon:c,iconSize:h="tn",iconColor:m="currentColor",truncate:g=!1,"aria-label":v,"aria-describedby":x,onClick:y,...C},w)=>{const A=f.useCallback(k=>{if(l){k.preventDefault();return}y?.(k)},[l,y]),E={href:l?void 0:o,target:s||void 0,rel:i??(s==="_blank"?"noopener noreferrer":void 0),onClick:A,"aria-label":v??r,"aria-describedby":x,"aria-disabled":l,tabIndex:l?-1:d??0,...C};return p.jsxs(Ny,{id:e,$variant:n,$size:t,$disabled:l,className:a,ref:w,...E,children:[u&&p.jsx(W,{component:u,size:h,color:m}),p.jsx(By,{$truncate:g,children:r}),p.jsx(W,{component:c||a0,size:t==="lg"?"sm":h,color:m})]})});Vc.displayName="Link";const Ic={default:b`
1564
1562
  thead tr:last-child th:first-child {
1565
1563
  border-top-left-radius: var(--border-radius-article);
1566
1564
  }
@@ -1635,14 +1633,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1635
1633
  flex-shrink: 0;
1636
1634
  `,Oy={sm:b`
1637
1635
  ${ft.sm}
1638
- ${I[16]}
1636
+ ${L[16]}
1639
1637
  `,md:b`
1640
1638
  ${ft.md}
1641
- ${I[20]}
1639
+ ${L[20]}
1642
1640
  `,lg:b`
1643
1641
  ${ft.lg}
1644
- ${I[24]}
1645
- `},Fy=C.th`
1642
+ ${L[24]}
1643
+ `},Fy=S.th`
1646
1644
  background-color: var(--color-main-blue-primary);
1647
1645
  ${({$size:e})=>Oy[e]}
1648
1646
  transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
@@ -1656,10 +1654,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1656
1654
  ${({$active:e})=>e&&b`
1657
1655
  background-color: var(--color-blue-400);
1658
1656
  `}
1659
- `,jy=C.div`
1657
+ `,jy=S.div`
1660
1658
  ${ei}
1661
1659
  justify-content: ${({$align:e})=>e||"space-between"};
1662
- `,zy=C.button`
1660
+ `,zy=S.button`
1663
1661
  all: unset;
1664
1662
  display: inline-flex;
1665
1663
  align-items: center;
@@ -1678,11 +1676,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1678
1676
  outline-color: var(--color-main-white);
1679
1677
  outline-offset: 2px;
1680
1678
  }
1681
- `,Ry=C.span`
1679
+ `,Ry=S.span`
1682
1680
  transition: transform 0.3s ease-out;
1683
1681
  display: inline-flex;
1684
1682
  transform: ${({$dir:e})=>e==="asc"?"rotate(-180deg)":"none"};
1685
- `,Bc=C.span`
1683
+ `,Bc=S.span`
1686
1684
  display: inline-flex;
1687
1685
  align-items: center;
1688
1686
  gap: 0.5rem;
@@ -1691,25 +1689,25 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1691
1689
  text-overflow: ellipsis;
1692
1690
  white-space: nowrap;
1693
1691
  flex-shrink: 1;
1694
- `,_y=C(An)`
1692
+ `,_y=S(An)`
1695
1693
  overflow: hidden;
1696
1694
  text-overflow: ellipsis;
1697
1695
  white-space: nowrap;
1698
1696
  max-width: 100%;
1699
1697
  color: var(--color-main-white);
1700
- `,Oc=C.span`
1698
+ `,Oc=S.span`
1701
1699
  ${ti}
1702
1700
  gap: 0.375rem;
1703
1701
  `,ni=({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:l="left",width:d,sortable:u,className:c,onSort:h,...m})=>{const g=r==="asc"?"desc":"asc",v=h?r==="none"?"none":r==="asc"?"ascending":"descending":void 0;return p.jsx(Fy,{$size:t,$active:n,$width:d,className:c,scope:"col","aria-sort":v,...m,children:h||u?p.jsxs(zy,{onClick:()=>h?.(g),"aria-label":`Sort ${g}`,children:[p.jsxs(Bc,{children:[o&&p.jsx(W,{component:o,size:i,color:a}),p.jsx(_y,{size:t==="sm"?16:t==="md"?20:24,children:e})]}),p.jsxs(Oc,{children:[p.jsx(Ry,{$dir:r,children:p.jsx(W,{component:r0,size:i,color:a})}),s&&p.jsx(W,{component:s,size:i,color:a})]})]}):p.jsxs(jy,{$align:l,children:[p.jsxs(Bc,{children:[o&&p.jsx(W,{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(Oc,{children:s&&p.jsx(W,{component:s,size:i,color:a})})]})})};ni.displayName="TableHeaderCell";const Hy={sm:b`
1704
1702
  ${ft.sm}
1705
- ${I[14]}
1703
+ ${L[14]}
1706
1704
  `,md:b`
1707
1705
  ${ft.md}
1708
- ${I[14]}
1706
+ ${L[14]}
1709
1707
  `,lg:b`
1710
1708
  ${ft.lg}
1711
- ${I[16]}
1712
- `},Uy=C.td`
1709
+ ${L[16]}
1710
+ `},Uy=S.td`
1713
1711
  vertical-align: middle;
1714
1712
  color: var(--color-main-blue-primary);
1715
1713
  ${({$size:e})=>Hy[e]}
@@ -1730,15 +1728,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1730
1728
  font-variant-numeric: tabular-nums;
1731
1729
  font-family: ui-monospace, monospace;
1732
1730
  `}
1733
- `,Wy=C.div`
1731
+ `,Wy=S.div`
1734
1732
  ${ei}
1735
1733
  justify-content: ${({$align:e})=>e==="center"?"center":e==="right"?"flex-end":"flex-start"};
1736
- `,Ky=C(Ne)`
1734
+ `,Ky=S(Ne)`
1737
1735
  flex: 1;
1738
1736
  min-width: 0;
1739
- `,Fc=C.span`
1737
+ `,Fc=S.span`
1740
1738
  ${ti}
1741
- `,ri=({children:e,size:t="md",align:n,width:r,truncate:o=!1,variant:s="default",className:i,leftIcon:a,rightIcon:l,iconSize:d="sm",iconColor:u="var(--color-main-blue-primary)",...c})=>{const h=a||l;return p.jsx(Uy,{$size:t,$align:n,$width:r,$truncate:o,$variant:s,className:i,...c,children:h?p.jsxs(Wy,{$align:n,children:[a&&p.jsx(Fc,{children:p.jsx(W,{component:a,size:d,color:u})}),p.jsx(Ky,{children:e}),l&&p.jsx(Fc,{children:p.jsx(W,{component:l,size:d,color:u})})]}):e})};ri.displayName="TableCell";const Yy=C.table`
1739
+ `,ri=({children:e,size:t="md",align:n,width:r,truncate:o=!1,variant:s="default",className:i,leftIcon:a,rightIcon:l,iconSize:d="sm",iconColor:u="var(--color-main-blue-primary)",...c})=>{const h=a||l;return p.jsx(Uy,{$size:t,$align:n,$width:r,$truncate:o,$variant:s,className:i,...c,children:h?p.jsxs(Wy,{$align:n,children:[a&&p.jsx(Fc,{children:p.jsx(W,{component:a,size:d,color:u})}),p.jsx(Ky,{children:e}),l&&p.jsx(Fc,{children:p.jsx(W,{component:l,size:d,color:u})})]}):e})};ri.displayName="TableCell";const Yy=S.table`
1742
1740
  width: 100%;
1743
1741
  table-layout: auto;
1744
1742
  border-collapse: separate;
@@ -1750,13 +1748,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1750
1748
  ${({$variant:e})=>Ic[e]}
1751
1749
  ${Nc}
1752
1750
  ${Lc}
1753
- `,Gy=C.thead`
1751
+ `,Gy=S.thead`
1754
1752
  ${({$sticky:e})=>e&&b`
1755
1753
  position: sticky;
1756
1754
  top: 0;
1757
1755
  z-index: 10;
1758
1756
  `}
1759
- `,Xy=C.div`
1757
+ `,Xy=S.div`
1760
1758
  max-height: 37.5rem;
1761
1759
  overflow: auto;
1762
1760
  position: relative;
@@ -1771,7 +1769,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1771
1769
  pointer-events: none;
1772
1770
  z-index: 3;
1773
1771
  }
1774
- `,jc=({columns:e,rows:t,size:n="md",variant:r="default",tableWrapperClassName:o,tableClassName:s,stickyHeader:i=!1,onSortChange:a})=>{const l=(d,u)=>c=>{d.onSort?.(c),a?.({columnId:d.id??String(u),direction:c})};return p.jsx(Xy,{className:o,children:p.jsxs(Yy,{$variant:r,className:s,children:[p.jsx(Gy,{$sticky:i,children:p.jsx("tr",{children:e.map((d,u)=>p.jsx(ni,{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}`))})}),p.jsx("tbody",{children:t.map((d,u)=>{const c=d.cells;return!c||!Array.isArray(c)?null:p.jsx("tr",{children:c.map((h,m)=>{const g=e[m];return p.jsx(ri,{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)})})]})})};jc.displayName="Table";const Zy=C.div`
1772
+ `,jc=({columns:e,rows:t,size:n="md",variant:r="default",tableWrapperClassName:o,tableClassName:s,stickyHeader:i=!1,onSortChange:a})=>{const l=(d,u)=>c=>{d.onSort?.(c),a?.({columnId:d.id??String(u),direction:c})};return p.jsx(Xy,{className:o,children:p.jsxs(Yy,{$variant:r,className:s,children:[p.jsx(Gy,{$sticky:i,children:p.jsx("tr",{children:e.map((d,u)=>p.jsx(ni,{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}`))})}),p.jsx("tbody",{children:t.map((d,u)=>{const c=d.cells;return!c||!Array.isArray(c)?null:p.jsx("tr",{children:c.map((h,m)=>{const g=e[m];return p.jsx(ri,{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)})})]})})};jc.displayName="Table";const Zy=S.div`
1775
1773
  position: relative;
1776
1774
  display: flex;
1777
1775
  align-items: center;
@@ -1789,7 +1787,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1789
1787
  outline: 2px solid var(--color-main-blue-primary);
1790
1788
  outline-offset: 2px;
1791
1789
  }
1792
- `,qy=C.div`
1790
+ `,qy=S.div`
1793
1791
  width: 2rem;
1794
1792
  height: 2rem;
1795
1793
  border-radius: 50%;
@@ -1797,7 +1795,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1797
1795
  display: flex;
1798
1796
  align-items: center;
1799
1797
  justify-content: center;
1800
- `,Jy=C.div`
1798
+ `,Jy=S.div`
1801
1799
  display: flex;
1802
1800
  flex-direction: column;
1803
1801
  align-items: flex-start;
@@ -1805,7 +1803,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1805
1803
  @media (max-width: 640px) {
1806
1804
  display: none;
1807
1805
  }
1808
- `,Qy=C(_e.div)`
1806
+ `,Qy=S(_e.div)`
1809
1807
  display: flex;
1810
1808
  align-items: center;
1811
1809
  justify-content: center;
@@ -1814,7 +1812,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1814
1812
  @media (max-width: 640px) {
1815
1813
  display: none;
1816
1814
  }
1817
- `,e1=C(_e.div)`
1815
+ `,e1=S(_e.div)`
1818
1816
  position: absolute;
1819
1817
  top: 100%;
1820
1818
  right: 0;
@@ -1826,7 +1824,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1826
1824
  box-shadow: var(--shadow-black-card);
1827
1825
  z-index: 100;
1828
1826
  overflow: hidden;
1829
- `,t1=C.button`
1827
+ `,t1=S.button`
1830
1828
  width: 100%;
1831
1829
  display: flex;
1832
1830
  align-items: center;
@@ -1850,7 +1848,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1850
1848
  &.danger {
1851
1849
  color: var(--color-main-waringn-state);
1852
1850
  }
1853
- `,zc=({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=c=>{i.current&&!i.current.contains(c.target)&&s(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[o]),f.useEffect(()=>{if(!o)return;const u=c=>{c.key==="Escape"&&s(!1)};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[o]);const a=u=>u.split(" ").map(c=>c[0]).join("").toUpperCase().slice(0,2),d=[...[{id:"profile",label:"Profile",icon:p0,onClick:()=>{s(!1),t?.()},variant:"default"},{id:"logout",label:"Logout",icon:d0,onClick:()=>{s(!1),n?.()},variant:"danger"}],...r];return p.jsxs("div",{ref:i,children:[p.jsxs(Zy,{onClick:()=>s(!o),role:"button",tabIndex:0,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),s(!o))},children:[p.jsx(qy,{children:e.avatarUrl?p.jsx("img",{src:e.avatarUrl,alt:e.name}):p.jsx(Ne,{size:14,color:"var(--color-main-white)",className:"!font-semibold",children:a(e.name)})}),p.jsxs(Jy,{children:[p.jsx(Ne,{size:14,className:"!font-semibold",children:e.name}),p.jsx(Ne,{size:12,children:e.role})]}),p.jsx(Qy,{animate:{rotate:o?-180:0},transition:{duration:.3},children:p.jsx(W,{component:o0,size:"sm",color:"var(--color-main-blue-primary)"})})]}),p.jsx(Zt,{children:o&&p.jsx(e1,{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(t1,{onClick:u.onClick,className:u.variant==="danger"?"danger":"",children:[p.jsx(W,{component:u.icon,size:"sm",color:u.variant==="danger"?"var(--color-main-warning-state)":"var(--color-main-blue-primary)"}),p.jsx(Ne,{size:14,color:`${u.variant==="danger"&&"var(--color-main-warning-state)"}`,children:u.label})]})},u.id))})})]})};zc.displayName="UserProfile";const n1=C.header`
1851
+ `,zc=({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=c=>{i.current&&!i.current.contains(c.target)&&s(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[o]),f.useEffect(()=>{if(!o)return;const u=c=>{c.key==="Escape"&&s(!1)};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[o]);const a=u=>u.split(" ").map(c=>c[0]).join("").toUpperCase().slice(0,2),d=[...[{id:"profile",label:"Profile",icon:p0,onClick:()=>{s(!1),t?.()},variant:"default"},{id:"logout",label:"Logout",icon:d0,onClick:()=>{s(!1),n?.()},variant:"danger"}],...r];return p.jsxs("div",{ref:i,children:[p.jsxs(Zy,{onClick:()=>s(!o),role:"button",tabIndex:0,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),s(!o))},children:[p.jsx(qy,{children:e.avatarUrl?p.jsx("img",{src:e.avatarUrl,alt:e.name}):p.jsx(Ne,{size:14,color:"var(--color-main-white)",className:"!font-semibold",children:a(e.name)})}),p.jsxs(Jy,{children:[p.jsx(Ne,{size:14,className:"!font-semibold",children:e.name}),p.jsx(Ne,{size:12,children:e.role})]}),p.jsx(Qy,{animate:{rotate:o?-180:0},transition:{duration:.3},children:p.jsx(W,{component:o0,size:"sm",color:"var(--color-main-blue-primary)"})})]}),p.jsx(Zt,{children:o&&p.jsx(e1,{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(t1,{onClick:u.onClick,className:u.variant==="danger"?"danger":"",children:[p.jsx(W,{component:u.icon,size:"sm",color:u.variant==="danger"?"var(--color-main-warning-state)":"var(--color-main-blue-primary)"}),p.jsx(Ne,{size:14,color:`${u.variant==="danger"&&"var(--color-main-warning-state)"}`,children:u.label})]})},u.id))})})]})};zc.displayName="UserProfile";const n1=S.header`
1854
1852
  position: fixed;
1855
1853
  top: 0;
1856
1854
  left: 0;
@@ -1866,15 +1864,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1866
1864
  padding: 0 1rem;
1867
1865
  transition: padding-left 0.3s ease-out;
1868
1866
  padding-left: 5rem;
1869
- `,r1=C.div`
1867
+ `,r1=S.div`
1870
1868
  display: flex;
1871
1869
  align-items: center;
1872
1870
  gap: 1rem;
1873
- `,o1=C.div`
1871
+ `,o1=S.div`
1874
1872
  display: flex;
1875
1873
  align-items: center;
1876
1874
  gap: 1rem;
1877
- `,i1=C.button`
1875
+ `,i1=S.button`
1878
1876
  position: relative;
1879
1877
  display: flex;
1880
1878
  align-items: center;
@@ -1898,7 +1896,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1898
1896
  &:active {
1899
1897
  transform: scale(0.92);
1900
1898
  }
1901
- `,s1=C.span`
1899
+ `,s1=S.span`
1902
1900
  position: absolute;
1903
1901
  top: 0.35rem;
1904
1902
  right: 0.35rem;
@@ -1914,12 +1912,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1914
1912
  display: flex;
1915
1913
  align-items: center;
1916
1914
  justify-content: center;
1917
- `,oi=({user:e,hasNotifications:t=!1,notificationCount:n,onNotificationClick:r,onUserProfileClick:o,onLogout:s,userMenuItems:i,children:a})=>{const l=(n??0)>0||t,d=n&&n>0?n:void 0,u=d?`${d} notification${d===1?"":"s"}`:l?"New notifications":"No notifications",c=`Notifications: ${u}`;return p.jsxs(n1,{children:[p.jsx(r1,{children:a}),p.jsxs(o1,{children:[p.jsxs(i1,{onClick:r,"aria-label":c,title:u,"data-has":l||void 0,children:[p.jsx(W,{component:l?u0:h0,size:"md",color:"var(--color-main-blue-primary)"}),l&&p.jsx(s1,{$withCount:!!d,"aria-hidden":!!d,children:d&&(d>99?"99+":d)})]}),e&&p.jsx(zc,{user:e,onProfileClick:o,onLogout:s,menuItems:i})]})]})};oi.displayName="Header";const a1=C.div`
1915
+ `,oi=({user:e,hasNotifications:t=!1,notificationCount:n,onNotificationClick:r,onUserProfileClick:o,onLogout:s,userMenuItems:i,children:a})=>{const l=(n??0)>0||t,d=n&&n>0?n:void 0,u=d?`${d} notification${d===1?"":"s"}`:l?"New notifications":"No notifications",c=`Notifications: ${u}`;return p.jsxs(n1,{children:[p.jsx(r1,{children:a}),p.jsxs(o1,{children:[p.jsxs(i1,{onClick:r,"aria-label":c,title:u,"data-has":l||void 0,children:[p.jsx(W,{component:l?u0:h0,size:"md",color:"var(--color-main-blue-primary)"}),l&&p.jsx(s1,{$withCount:!!d,"aria-hidden":!!d,children:d&&(d>99?"99+":d)})]}),e&&p.jsx(zc,{user:e,onProfileClick:o,onLogout:s,menuItems:i})]})]})};oi.displayName="Header";const a1=S.div`
1918
1916
  display: flex;
1919
1917
  flex-direction: column;
1920
1918
  height: 100vh;
1921
1919
  overflow: hidden;
1922
- `,l1=C.main`
1920
+ `,l1=S.main`
1923
1921
  flex: 1;
1924
1922
  margin-top: 4rem;
1925
1923
  /* Mobile-first: no lateral offset so content occupies full width */
@@ -1935,20 +1933,20 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1935
1933
  @media (min-width: 1200px) {
1936
1934
  margin-left: 5rem;
1937
1935
  }
1938
- `,c1=({children:e,navigationConfig:t,userRoles:n=[],activePath:r,user:o,hasNotifications:s=!1,notificationCount:i,onNotificationClick:a,onUserProfileClick:l,onNavigate:d,onLogout:u,userMenuItems:c=[],contentClassName:h,logoImgCollapsed:m,logoImgExpanded:g})=>p.jsxs(a1,{children:[p.jsx(Qo,{navigationConfig:t,userRoles:n,activePath:r,logoImgCollapsed:m,logoImgExpanded:g,onNavigate:d}),p.jsx(oi,{user:o,hasNotifications:s,notificationCount:i,onNotificationClick:a,onUserProfileClick:l,onLogout:u,userMenuItems:c}),p.jsx(l1,{className:h,children:e})]}),d1=e=>p.jsx(bc,{children:p.jsx(c1,{...e})});function u1(e,t,n){let r=`${e}=${encodeURIComponent(t)}; path=/; SameSite=Strict; Secure`;if(n){const o=new Date(Date.now()+n*864e5).toUTCString();r+=`; expires=${o}`}document.cookie=r}function h1(e){return document.cookie.split("; ").reduce((t,n)=>{const r=n.split("=");return r[0]===e?decodeURIComponent(r[1]):t},"")}function f1(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}const an={sm:{circle:"2rem",fontSize:I[14],line:"2px"},md:{circle:"2.5rem",fontSize:I[18],line:"2px"},lg:{circle:"3.25rem",fontSize:I[20],line:"3px"}},p1=C.div`
1936
+ `,c1=({children:e,navigationConfig:t,userRoles:n=[],activePath:r,user:o,hasNotifications:s=!1,notificationCount:i,onNotificationClick:a,onUserProfileClick:l,onNavigate:d,onLogout:u,userMenuItems:c=[],contentClassName:h,logoImgCollapsed:m,logoImgExpanded:g})=>p.jsxs(a1,{children:[p.jsx(Qo,{navigationConfig:t,userRoles:n,activePath:r,logoImgCollapsed:m,logoImgExpanded:g,onNavigate:d}),p.jsx(oi,{user:o,hasNotifications:s,notificationCount:i,onNotificationClick:a,onUserProfileClick:l,onLogout:u,userMenuItems:c}),p.jsx(l1,{className:h,children:e})]}),d1=e=>p.jsx(bc,{children:p.jsx(c1,{...e})});function u1(e,t,n){let r=`${e}=${encodeURIComponent(t)}; path=/; SameSite=Strict; Secure`;if(n){const o=new Date(Date.now()+n*864e5).toUTCString();r+=`; expires=${o}`}document.cookie=r}function h1(e){return document.cookie.split("; ").reduce((t,n)=>{const r=n.split("=");return r[0]===e?decodeURIComponent(r[1]):t},"")}function f1(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}const an={sm:{circle:"2rem",fontSize:L[14],line:"2px"},md:{circle:"2.5rem",fontSize:L[18],line:"2px"},lg:{circle:"3.25rem",fontSize:L[20],line:"3px"}},p1=S.div`
1939
1937
  display: flex;
1940
1938
  width: 100%;
1941
- `,m1=C.div`
1939
+ `,m1=S.div`
1942
1940
  display: flex;
1943
1941
  flex-direction: ${({$orientation:e})=>e==="vertical"?"column":"row"};
1944
1942
  align-items: center;
1945
1943
  width: 100%;
1946
- `,g1=C.div`
1944
+ `,g1=S.div`
1947
1945
  display: flex;
1948
1946
  align-items: center;
1949
1947
  justify-content: center;
1950
1948
  position: relative;
1951
- `,Rc=C.div`
1949
+ `,Rc=S.div`
1952
1950
  display: flex;
1953
1951
  align-items: center;
1954
1952
  justify-content: center;
@@ -1994,7 +1992,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
1994
1992
  box-shadow: var(--shadow-hover-black-button);
1995
1993
  }
1996
1994
  `}
1997
- `,y1=C.div`
1995
+ `,y1=S.div`
1998
1996
  background-color: ${({$isCompleted:e})=>e?"var(--color-main-blue-primary)":"var(--color-dark-300)"};
1999
1997
  transition: background-color 0.3s ease;
2000
1998
 
@@ -2006,9 +2004,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
2006
2004
  flex: 1;
2007
2005
  min-width: 2rem;
2008
2006
  `}
2009
- `,v1=C.span`
2007
+ `,v1=S.span`
2010
2008
  position: absolute;
2011
- ${I[14]}
2009
+ ${L[14]}
2012
2010
  font-weight: 500;
2013
2011
  color: var(--color-main-white);
2014
2012
  background-color: var(--color-main-blue-primary);
@@ -2039,4 +2037,4 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
2039
2037
  ${Rc}:hover & {
2040
2038
  opacity: 1;
2041
2039
  }
2042
- `,b1=({steps:e,currentStep:t,orientation:n="horizontal",size:r="md",onStepClick:o,className:s})=>{const i=a=>{o?.(a)};return p.jsx(p1,{$orientation:n,className:s,children:p.jsx(m1,{$orientation:n,children:e.map((a,l)=>{const d=l===t,u=l<t,c=o!=null;return p.jsxs(f.Fragment,{children:[p.jsx(g1,{$orientation:n,children:p.jsxs(Rc,{$isActive:d,$isCompleted:u,$size:r,$isClickable:c,onClick:()=>c&&i(l),role:c?"button":void 0,tabIndex:c?0:void 0,"aria-current":d?"step":void 0,"aria-label":a.label,onKeyDown:h=>{c&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),i(l))},children:[a.content??l+1,a.label&&n==="vertical"&&p.jsx(v1,{children:a.label})]})}),l<e.length-1&&p.jsx(y1,{$isCompleted:u,$orientation:n,$size:r})]},a.id)})})})};T.ALLOWED_INPUT_TYPES=ql,T.Aside=Cc,T.Badge=ng,T.BaseInput=zo,T.BrandLogo=kc,T.Button=Fo,T.ButtonSpinner=Yl,T.Card=zg,T.CardBody=Ug,T.CardFooter=Kg,T.CardHeader=_g,T.Checkbox=Jn,T.CheckboxInput=Ho,T.CheckboxLabel=ac,T.CloseOpenButton=Pc,T.Dialog=mc,T.DialogBody=yc,T.DialogFooter=vc,T.DialogHeader=gc,T.Divider=og,T.ErrorMessage=Gn,T.FileList=sc,T.FileUpload=Z0,T.FormField=yy,T.FullScreenSpinner=Km,T.Header=oi,T.HeadingBold=An,T.HeadingRegular=iu,T.Icon=W,T.IconWrapperStyles=qn,T.InfoLabel=Gl,T.Label=Xn,T.Layout=d1,T.Link=Vc,T.LinkDisabledStyles=$c,T.LinkSizeStyles=Mc,T.LinkVariantStyles=Dc,T.MobileOpenBtn=Ac,T.Nav=Ec,T.Overlay=Sc,T.PasswordInput=rc,T.PinInput=Uo,T.PinInputGroup=Wo,T.RadioInput=Go,T.RadioInputDot=Ko,T.RadioInputLabel=Yo,T.SearchInput=ic,T.SectionSpinner=Gm,T.SelectInput=Ro,T.Sidebar=Qo,T.SidebarContext=Zo,T.SidebarHeader=Tc,T.SidebarProvider=bc,T.Spinner=Kn,T.Stepper=b1,T.Table=jc,T.TableCell=ri,T.TableHeaderCell=ni,T.TermsAndConditions=ky,T.Text=Ne,T.TextAreaInput=_o,T.ToastProvider=Lg,T.baseContentTableStyles=ei,T.baseFieldStyles=ut,T.baseInputStyles=Zn,T.baseTableCellsSizes=ft,T.bodyTextStyles=I,T.createFieldConfig=Qg,T.createInputRefs=uc,T.deleteCookie=f1,T.disabledStyles=qe,T.errorStyles=ht,T.flushedStyles=Ql,T.getCookie=h1,T.getPropsForInputType=e0,T.handleDigitChange=lc,T.handleKeyDown=cc,T.handlePaste=dc,T.hasPermission=Jo,T.headingBoldStyles=br,T.headingRegularStyles=qi,T.isAllowedInputType=Jl,T.normalizeFieldTypes=Ze,T.normalizeSelectOptions=Jg,T.overlayAnimation=Xo,T.setCookie=u1,T.sizeStyles=sn,T.slideAnimation=vy,T.smartAnimation=fc,T.submenuAnimationTopDown=pc,T.tableHoverMixin=Lc,T.tableIconContainerStyles=ti,T.tableResponsiveMixin=Nc,T.tableVariants=Ic,T.toast=Sg,T.useSidebar=qo,T.validateCode=ly,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
2040
+ `,b1=({steps:e,currentStep:t,orientation:n="horizontal",size:r="md",onStepClick:o,className:s})=>{const i=a=>{o?.(a)};return p.jsx(p1,{$orientation:n,className:s,children:p.jsx(m1,{$orientation:n,children:e.map((a,l)=>{const d=l===t,u=l<t,c=o!=null;return p.jsxs(f.Fragment,{children:[p.jsx(g1,{$orientation:n,children:p.jsxs(Rc,{$isActive:d,$isCompleted:u,$size:r,$isClickable:c,onClick:()=>c&&i(l),role:c?"button":void 0,tabIndex:c?0:void 0,"aria-current":d?"step":void 0,"aria-label":a.label,onKeyDown:h=>{c&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),i(l))},children:[a.content??l+1,a.label&&n==="vertical"&&p.jsx(v1,{children:a.label})]})}),l<e.length-1&&p.jsx(y1,{$isCompleted:u,$orientation:n,$size:r})]},a.id)})})})};T.ALLOWED_INPUT_TYPES=ql,T.Aside=Cc,T.Badge=ng,T.BaseInput=zo,T.BrandLogo=kc,T.Button=Fo,T.ButtonSpinner=Yl,T.Card=zg,T.CardBody=Ug,T.CardFooter=Kg,T.CardHeader=_g,T.Checkbox=Jn,T.CheckboxInput=Ho,T.CheckboxLabel=ac,T.CloseOpenButton=Pc,T.Dialog=mc,T.DialogBody=yc,T.DialogFooter=vc,T.DialogHeader=gc,T.Divider=og,T.ErrorMessage=Gn,T.FileList=sc,T.FileUpload=Z0,T.FormField=yy,T.FullScreenSpinner=Km,T.Header=oi,T.HeadingBold=An,T.HeadingRegular=iu,T.Icon=W,T.IconWrapperStyles=qn,T.InfoLabel=Gl,T.Label=Xn,T.Layout=d1,T.Link=Vc,T.LinkDisabledStyles=$c,T.LinkSizeStyles=Mc,T.LinkVariantStyles=Dc,T.MobileOpenBtn=Ac,T.Nav=Ec,T.Overlay=Sc,T.PasswordInput=rc,T.PinInput=Uo,T.PinInputGroup=Wo,T.RadioInput=Go,T.RadioInputDot=Ko,T.RadioInputLabel=Yo,T.SearchInput=ic,T.SectionSpinner=Gm,T.SelectInput=Ro,T.Sidebar=Qo,T.SidebarContext=Zo,T.SidebarHeader=Tc,T.SidebarProvider=bc,T.Spinner=Kn,T.Stepper=b1,T.Table=jc,T.TableCell=ri,T.TableHeaderCell=ni,T.TermsAndConditions=ky,T.Text=Ne,T.TextAreaInput=_o,T.ToastProvider=Lg,T.baseContentTableStyles=ei,T.baseFieldStyles=ut,T.baseInputStyles=Zn,T.baseTableCellsSizes=ft,T.bodyTextStyles=L,T.createFieldConfig=Qg,T.createInputRefs=uc,T.deleteCookie=f1,T.disabledStyles=qe,T.errorStyles=ht,T.flushedStyles=Ql,T.getCookie=h1,T.getPropsForInputType=e0,T.handleDigitChange=lc,T.handleKeyDown=cc,T.handlePaste=dc,T.hasPermission=Jo,T.headingBoldStyles=br,T.headingRegularStyles=qi,T.isAllowedInputType=Jl,T.normalizeFieldTypes=Ze,T.normalizeSelectOptions=Jg,T.overlayAnimation=Xo,T.setCookie=u1,T.sizeStyles=sn,T.slideAnimation=vy,T.smartAnimation=fc,T.submenuAnimationTopDown=pc,T.tableHoverMixin=Lc,T.tableIconContainerStyles=ti,T.tableResponsiveMixin=Nc,T.tableVariants=Ic,T.toast=Sg,T.useSidebar=qo,T.validateCode=ly,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));