tcce-design-system-test 0.3.30 → 0.3.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tcce-design-system-components.css +1 -1
- package/dist/tcce-design-system-components.d.ts +968 -195
- package/dist/tcce-design-system-components.js +9550 -6214
- package/dist/tcce-design-system-components.umd.cjs +810 -515
- package/package.json +26 -24
- package/dist/assets/brand/Logo_Total_Civil_Construction_Optimize/Entrega_Logo_Total_AW.webp:Zone.Identifier +0 -0
- package/dist/assets/brand/Logo_Total_Civil_Construction_Optimize/Entrega_Logo_Total_CB.webp:Zone.Identifier +0 -0
- package/dist/assets/brand/Logo_Total_Civil_Construction_Optimize/Entrega_Logo_Total_CBT.webp:Zone.Identifier +0 -0
- package/dist/assets/brand/Logo_Total_Civil_Construction_Optimize/Entrega_Logo_Total_CC.webp:Zone.Identifier +0 -0
- package/dist/assets/brand/Logo_Total_Civil_Construction_Optimize/Entrega_Logo_Total_M.webp:Zone.Identifier +0 -0
- package/dist/assets/brand/Logo_Total_Civil_Construction_Optimize/Entrega_Logo_Total_NT.webp:Zone.Identifier +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
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
|
-
`,
|
|
1
|
+
(function(C,p){typeof exports=="object"&&typeof module<"u"?p(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"],p):(C=typeof globalThis<"u"?globalThis:C||self,p(C["tcce-design-system-components"]={},C.React,C["react/jsx-runtime"],C.ReactDOM,C.Formik))})(this,(function(C,p,g,Ji,kd){"use strict";function Pd(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 ft=Pd(p);var be=function(){return be=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},be.apply(this,arguments)};function ht(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function $d(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|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,Md=$d(function(e){return Ed.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Q="-ms-",Qt="-moz-",U="-webkit-",Qi="comm",Mn="rule",kr="decl",Ad="@import",Dd="@namespace",es="@keyframes",Vd="@layer",ts=Math.abs,Pr=String.fromCharCode,$r=Object.assign;function Fd(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 ns(e){return e.trim()}function je(e,t){return(e=t.exec(e))?e[0]:e}function z(e,t,n){return e.replace(t,n)}function An(e,t,n){return e.indexOf(t,n)}function se(e,t){return e.charCodeAt(t)|0}function pt(e,t,n){return e.slice(t,n)}function De(e){return e.length}function rs(e){return e.length}function en(e,t){return t.push(e),e}function Id(e,t){return e.map(t).join("")}function os(e,t){return e.filter(function(n){return!je(n,t)})}var Dn=1,$t=1,is=0,Pe=0,oe=0,Et="";function Vn(e,t,n,r,o,i,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Dn,column:$t,length:s,return:"",siblings:a}}function Je(e,t){return $r(Vn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Mt(e){for(;e.root;)e=Je(e.root,{children:[e]});en(e,e.siblings)}function Rd(){return oe}function Ld(){return oe=Pe>0?se(Et,--Pe):0,$t--,oe===10&&($t=1,Dn--),oe}function Ve(){return oe=Pe<is?se(Et,Pe++):0,$t++,oe===10&&($t=1,Dn++),oe}function Qe(){return se(Et,Pe)}function Fn(){return Pe}function In(e,t){return pt(Et,e,t)}function tn(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 _d(e){return Dn=$t=1,is=De(Et=e),Pe=0,[]}function Nd(e){return Et="",e}function Er(e){return ns(In(Pe-1,Mr(e===91?e+2:e===40?e+1:e)))}function Od(e){for(;(oe=Qe())&&oe<33;)Ve();return tn(e)>2||tn(oe)>3?"":" "}function Bd(e,t){for(;--t&&Ve()&&!(oe<48||oe>102||oe>57&&oe<65||oe>70&&oe<97););return In(e,Fn()+(t<6&&Qe()==32&&Ve()==32))}function Mr(e){for(;Ve();)switch(oe){case e:return Pe;case 34:case 39:e!==34&&e!==39&&Mr(oe);break;case 40:e===41&&Mr(e);break;case 92:Ve();break}return Pe}function zd(e,t){for(;Ve()&&e+oe!==57;)if(e+oe===84&&Qe()===47)break;return"/*"+In(t,Pe-1)+"*"+Pr(e===47?e:Ve())}function Hd(e){for(;!tn(Qe());)Ve();return In(e,Pe)}function jd(e){return Nd(Rn("",null,null,null,[""],e=_d(e),0,[0],e))}function Rn(e,t,n,r,o,i,s,a,l){for(var c=0,d=0,u=s,h=0,f=0,m=0,y=1,x=1,v=1,T=0,w="",M=o,b=i,$=r,k=w;x;)switch(m=T,T=Ve()){case 40:if(m!=108&&se(k,u-1)==58){An(k+=z(Er(T),"&","&\f"),"&\f",ts(c?a[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:k+=Er(T);break;case 9:case 10:case 13:case 32:k+=Od(m);break;case 92:k+=Bd(Fn()-1,7);continue;case 47:switch(Qe()){case 42:case 47:en(Gd(zd(Ve(),Fn()),t,n,l),l),(tn(m||1)==5||tn(Qe()||1)==5)&&De(k)&&pt(k,-1,void 0)!==" "&&(k+=" ");break;default:k+="/"}break;case 123*y:a[c++]=De(k)*v;case 125*y:case 59:case 0:switch(T){case 0:case 125:x=0;case 59+d:v==-1&&(k=z(k,/\f/g,"")),f>0&&(De(k)-u||y===0&&m===47)&&en(f>32?as(k+";",r,n,u-1,l):as(z(k," ","")+";",r,n,u-2,l),l);break;case 59:k+=";";default:if(en($=ss(k,t,n,c,d,o,a,w,M=[],b=[],u,i),i),T===123)if(d===0)Rn(k,t,$,$,M,i,u,a,b);else{switch(h){case 99:if(se(k,3)===110)break;case 108:if(se(k,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Rn(e,$,$,r&&en(ss(e,$,$,0,0,o,a,w,o,M=[],u,b),b),o,b,u,a,r?M:b):Rn(k,$,$,$,[""],b,0,a,b)}}c=d=f=0,y=v=1,w=k="",u=s;break;case 58:u=1+De(k),f=m;default:if(y<1){if(T==123)--y;else if(T==125&&y++==0&&Ld()==125)continue}switch(k+=Pr(T),T*y){case 38:v=d>0?1:(k+="\f",-1);break;case 44:a[c++]=(De(k)-1)*v,v=1;break;case 64:Qe()===45&&(k+=Er(Ve())),h=Qe(),d=u=De(w=k+=Hd(Fn())),T++;break;case 45:m===45&&De(k)==2&&(y=0)}}return i}function ss(e,t,n,r,o,i,s,a,l,c,d,u){for(var h=o-1,f=o===0?i:[""],m=rs(f),y=0,x=0,v=0;y<r;++y)for(var T=0,w=pt(e,h+1,h=ts(x=s[y])),M=e;T<m;++T)(M=ns(x>0?f[T]+" "+w:z(w,/&\f/g,f[T])))&&(l[v++]=M);return Vn(e,t,n,o===0?Mn:a,l,c,d,u)}function Gd(e,t,n,r){return Vn(e,t,n,Qi,Pr(Rd()),pt(e,2,-2),0,r)}function as(e,t,n,r,o){return Vn(e,t,n,kr,pt(e,0,r),pt(e,r+1,-1),r,o)}function ls(e,t,n){switch(Fd(e,t)){case 5103:return U+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return U+e+e;case 4855:return U+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Qt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+Qt+e+Q+e+e;case 5936:switch(se(e,t+11)){case 114:return U+e+Q+z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+Q+z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+Q+z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return U+e+Q+e+e;case 6165:return U+e+Q+"flex-"+e+e;case 5187:return U+e+z(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+Q+"flex-$1$2")+e;case 5443:return U+e+Q+"flex-item-"+z(e,/flex-|-self/g,"")+(je(e,/flex-|baseline/)?"":Q+"grid-row-"+z(e,/flex-|-self/g,""))+e;case 4675:return U+e+Q+"flex-line-pack"+z(e,/align-content|flex-|-self/g,"")+e;case 5548:return U+e+Q+z(e,"shrink","negative")+e;case 5292:return U+e+Q+z(e,"basis","preferred-size")+e;case 6060:return U+"box-"+z(e,"-grow","")+U+e+Q+z(e,"grow","positive")+e;case 4554:return U+z(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return z(z(z(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return z(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return z(z(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+Q+"flex-pack:$3"),/space-between/,"justify")+U+e+e;case 4200:if(!je(e,/flex-|baseline/))return Q+"grid-column-align"+pt(e,t)+e;break;case 2592:case 3360:return Q+z(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,je(r.props,/grid-\w+-end/)})?~An(e+(n=n[t].value),"span",0)?e:Q+z(e,"-start","")+e+Q+"grid-row-span:"+(~An(n,"span",0)?je(n,/\d+/):+je(n,/\d+/)-+je(e,/\d+/))+";":Q+z(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return je(r.props,/grid-\w+-start/)})?e:Q+z(z(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return z(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(De(e)-1-t>6)switch(se(e,t+1)){case 109:if(se(e,t+4)!==45)break;case 102:return z(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+Qt+(se(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~An(e,"stretch",0)?ls(z(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return z(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,a,l,c){return Q+o+":"+i+c+(s?Q+o+"-span:"+(a?l:+l-+i)+c:"")+e});case 4949:if(se(e,t+6)===121)return z(e,":",":"+U)+e;break;case 6444:switch(se(e,se(e,14)===45?18:11)){case 120:return z(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+U+(se(e,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+Q+"$2box$3")+e;case 100:return z(e,":",":"+Q)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return z(e,"scroll-","scroll-snap-")+e}return e}function Ln(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ud(e,t,n,r){switch(e.type){case Vd:if(e.children.length)break;case Ad:case Dd:case kr:return e.return=e.return||e.value;case Qi:return"";case es:return e.return=e.value+"{"+Ln(e.children,r)+"}";case Mn:if(!De(e.value=e.props.join(",")))return""}return De(n=Ln(e.children,r))?e.return=e.value+"{"+n+"}":""}function Wd(e){var t=rs(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function Kd(e){return function(t){t.root||(t=t.return)&&e(t)}}function Yd(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case kr:e.return=ls(e.value,e.length,n);return;case es:return Ln([Je(e,{value:z(e.value,"@","@"+U)})],r);case Mn:if(e.length)return Id(n=e.props,function(o){switch(je(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Mt(Je(e,{props:[z(o,/:(read-\w+)/,":"+Qt+"$1")]})),Mt(Je(e,{props:[o]})),$r(e,{props:os(n,r)});break;case"::placeholder":Mt(Je(e,{props:[z(o,/:(plac\w+)/,":"+U+"input-$1")]})),Mt(Je(e,{props:[z(o,/:(plac\w+)/,":"+Qt+"$1")]})),Mt(Je(e,{props:[z(o,/:(plac\w+)/,Q+"input-$1")]})),Mt(Je(e,{props:[o]})),$r(e,{props:os(n,r)});break}return""})}}var qd={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},mt=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",cs="active",us="data-styled-version",_n="6.3.6",Ar=`/*!sc*/
|
|
2
|
+
`,Nn=typeof window<"u"&&typeof document<"u",At=p.createContext===void 0,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"),ds=/invalid hook call/i,On=new Set,Zd=function(e,t){if(process.env.NODE_ENV!=="production"){if(At)return;var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
|
|
3
3
|
`)+`You may see this warning because you've called styled inside another component.
|
|
4
4
|
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
5
5
|
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
6
|
-
`,o=console.error;try{var
|
|
6
|
+
`,o=console.error;try{var i=!0;console.error=function(s){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];ds.test(s)?(i=!1,On.delete(r)):o.apply(void 0,ht([s],a,!1))},typeof p.useState=="function"&&p.useState(null),i&&!On.has(r)&&(console.warn(r),On.add(r))}catch(s){ds.test(s.message)&&On.delete(r)}finally{console.error=o}}},Bn=Object.freeze([]),Dt=Object.freeze({});function Jd(e,t,n){return n===void 0&&(n=Dt),e.theme!==n.theme&&e.theme||t||n.theme}var Dr=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),Qd=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ef=/(^-|-$)/g;function fs(e){return e.replace(Qd,"-").replace(ef,"")}var tf=/(a)(d)/gi,hs=function(e){return String.fromCharCode(e+(e>25?39:97))};function Vr(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=hs(t%52)+n;return(hs(t%52)+n).replace(tf,"$1-$2")}var Fr,gt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ps=function(e){return gt(5381,e)};function ms(e){return Vr(ps(e)>>>0)}function gs(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Ir(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var ys=typeof Symbol=="function"&&Symbol.for,vs=ys?Symbol.for("react.memo"):60115,nf=ys?Symbol.for("react.forward_ref"):60112,rf={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},of={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ws={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},sf=((Fr={})[nf]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fr[vs]=ws,Fr);function bs(e){return("type"in(t=e)&&t.type.$$typeof)===vs?ws:"$$typeof"in e?sf[e.$$typeof]:rf;var t}var af=Object.defineProperty,lf=Object.getOwnPropertyNames,xs=Object.getOwnPropertySymbols,cf=Object.getOwnPropertyDescriptor,uf=Object.getPrototypeOf,Ss=Object.prototype;function Cs(e,t,n){if(typeof t!="string"){if(Ss){var r=uf(t);r&&r!==Ss&&Cs(e,r,n)}var o=lf(t);xs&&(o=o.concat(xs(t)));for(var i=bs(e),s=bs(t),a=0;a<o.length;++a){var l=o[a];if(!(l in of||n&&n[l]||s&&l in s||i&&l in i)){var c=cf(t,l);try{af(e,l,c)}catch{}}}}return e}function Vt(e){return typeof e=="function"}function Rr(e){return typeof e=="object"&&"styledComponentId"in e}function yt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Lr(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Ft(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function _r(e,t,n){if(n===void 0&&(n=!1),!n&&!Ft(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=_r(e[r],t[r]);else if(Ft(t))for(var r in t)e[r]=_r(e[r],t[r]);return e}function Nr(e,t){Object.defineProperty(e,"toString",{value:t})}var df=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
7
7
|
|
|
8
8
|
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
9
9
|
|
|
@@ -44,7 +44,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
44
44
|
|
|
45
45
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
46
46
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
47
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function 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,`.
|
|
47
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ff(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(s){n=n.replace(/%[a-z]/,s)}),n}function It(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(ff.apply(void 0,ht([df[e]],t,!1)).trim())}var hf=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,i=o;t>=i;)if((i<<=1)<0)throw It(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var s=o;s<i;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(t+1),l=(s=0,n.length);s<l;s++)this.tag.insertRule(a,n[s])&&(this.groupSizes[t]++,a++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var i=r;i<o;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),i=o+r,s=o;s<i;s++)n+="".concat(this.tag.getRule(s)).concat(Ar);return n},e})(),pf=1<<30,zn=new Map,Hn=new Map,jn=1,nn=function(e){if(zn.has(e))return zn.get(e);for(;Hn.has(jn);)jn++;var t=jn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>pf))throw It(16,"".concat(t));return zn.set(e,t),Hn.set(t,e),t},mf=function(e,t){jn=t+1,zn.set(e,t),Hn.set(t,e)},gf="style[".concat(mt,"][").concat(us,'="').concat(_n,'"]'),yf=new RegExp("^".concat(mt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),vf=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},wf=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Ar),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var l=a.match(yf);if(l){var c=0|parseInt(l[1],10),d=l[2];c!==0&&(mf(d,c),vf(e,d,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(a)}}},Ts=function(e){for(var t=document.querySelectorAll(gf),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(mt)!==cs&&(wf(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function bf(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var ks=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var l=Array.from(a.querySelectorAll("style[".concat(mt,"]")));return l[l.length-1]})(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(mt,cs),r.setAttribute(us,_n);var s=bf();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},xf=(function(){function e(t){this.element=ks(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,i=r.length;o<i;o++){var s=r[o];if(s.ownerNode===n)return s}throw It(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})(),Sf=(function(){function e(t){this.element=ks(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})(),Cf=(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})(),Ps=Nn,Tf={isServer:!Nn,useCSSOMInjection:!Xd},$s=(function(){function e(t,n,r){t===void 0&&(t=Dt),n===void 0&&(n={});var o=this;this.options=be(be({},Tf),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Nn&&Ps&&(Ps=!1,Ts(this)),Nr(this,function(){return(function(i){for(var s=i.getTag(),a=s.length,l="",c=function(u){var h=(function(v){return Hn.get(v)})(u);if(h===void 0)return"continue";var f=i.names.get(h),m=s.getGroup(u);if(f===void 0||!f.size||m.length===0)return"continue";var y="".concat(mt,".g").concat(u,'[id="').concat(h,'"]'),x="";f!==void 0&&f.forEach(function(v){v.length>0&&(x+="".concat(v,","))}),l+="".concat(m).concat(y,'{content:"').concat(x,'"}').concat(Ar)},d=0;d<a;d++)c(d);return l})(o)})}return e.registerId=function(t){return nn(t)},e.prototype.rehydrate=function(){!this.server&&Nn&&Ts(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(be(be({},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 Cf(o):r?new xf(o):new Sf(o)})(this.options),new hf(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(nn(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(nn(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(nn(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),kf=/&/g,Rt=47;function Es(e){if(e.indexOf("}")===-1)return!1;for(var t=e.length,n=0,r=0,o=!1,i=0;i<t;i++){var s=e.charCodeAt(i);if(r!==0||o||s!==Rt||e.charCodeAt(i+1)!==42)if(o)s===42&&e.charCodeAt(i+1)===Rt&&(o=!1,i++);else if(s!==34&&s!==39||i!==0&&e.charCodeAt(i-1)===92){if(r===0){if(s===123)n++;else if(s===125&&--n<0)return!0}}else r===0?r=s:r===s&&(r=0);else o=!0,i++}return n!==0||r!==0}function Ms(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=Ms(n.children,t)),n})}function Pf(e){var t,n,r,o=Dt,i=o.options,s=i===void 0?Dt:i,a=o.plugins,l=a===void 0?Bn:a,c=function(h,f,m){return m.startsWith(n)&&m.endsWith(n)&&m.replaceAll(n,"").length>0?".".concat(t):h},d=l.slice();d.push(function(h){h.type===Mn&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(kf,n).replace(r,c))}),s.prefix&&d.push(Yd),d.push(Ud);var u=function(h,f,m,y){f===void 0&&(f=""),m===void 0&&(m=""),y===void 0&&(y="&"),t=y,n=f,r=new RegExp("\\".concat(n,"\\b"),"g");var x=(function(w){if(!Es(w))return w;for(var M=w.length,b="",$=0,k=0,E=0,D=!1,A=0;A<M;A++){var I=w.charCodeAt(A);if(E!==0||D||I!==Rt||w.charCodeAt(A+1)!==42)if(D)I===42&&w.charCodeAt(A+1)===Rt&&(D=!1,A++);else if(I!==34&&I!==39||A!==0&&w.charCodeAt(A-1)===92){if(E===0)if(I===123)k++;else if(I===125){if(--k<0){for(var N=A+1;N<M;){var j=w.charCodeAt(N);if(j===59||j===10)break;N++}N<M&&w.charCodeAt(N)===59&&N++,k=0,A=N-1,$=N;continue}k===0&&(b+=w.substring($,A+1),$=A+1)}else I===59&&k===0&&(b+=w.substring($,A+1),$=A+1)}else E===0?E=I:E===I&&(E=0);else D=!0,A++}if($<M){var G=w.substring($);Es(G)||(b+=G)}return b})((function(w){if(w.indexOf("//")===-1)return w;for(var M=w.length,b=[],$=0,k=0,E=0,D=0;k<M;){var A=w.charCodeAt(k);if(A!==34&&A!==39||k!==0&&w.charCodeAt(k-1)===92)if(E===0)if(A===40&&k>=3&&(32|w.charCodeAt(k-1))==108&&(32|w.charCodeAt(k-2))==114&&(32|w.charCodeAt(k-3))==117)D=1,k++;else if(D>0)A===41?D--:A===40&&D++,k++;else if(A===Rt&&k+1<M&&w.charCodeAt(k+1)===Rt){for(k>$&&b.push(w.substring($,k));k<M&&w.charCodeAt(k)!==10;)k++;$=k}else k++;else k++;else E===0?E=A:E===A&&(E=0),k++}return $===0?w:($<M&&b.push(w.substring($)),b.join(""))})(h)),v=jd(m||f?"".concat(m," ").concat(f," { ").concat(x," }"):x);s.namespace&&(v=Ms(v,s.namespace));var T=[];return Ln(v,Wd(d.concat(Kd(function(w){return T.push(w)})))),T};return u.hash=l.length?l.reduce(function(h,f){return f.name||It(15),gt(h,f.name)},5381).toString():"",u}var $f=new $s,Or=Pf(),Br={shouldForwardProp:void 0,styleSheet:$f,stylis:Or},As=At?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(Br)}}:p.createContext(Br);As.Consumer,At||p.createContext(void 0);function Ds(){return!At&&p.useContext?p.useContext(As):Br}var zr=(function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=Or);var s=r.name+i.hash;o.hasNameForId(r.id,s)||o.insertRules(r.id,s,i(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Nr(this,function(){throw It(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Or),this.name+t.hash},e})();function Ef(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in qd||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var Mf=function(e){return e>="A"&&e<="Z"};function Vs(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Mf(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Fs=function(e){return e==null||e===!1||e===""},Is=function(e){var t=[];for(var n in e){var r=e[n];e.hasOwnProperty(n)&&!Fs(r)&&(Array.isArray(r)&&r.isCss||Vt(r)?t.push("".concat(Vs(n),":"),r,";"):Ft(r)?t.push.apply(t,ht(ht(["".concat(n," {")],Is(r),!1),["}"],!1)):t.push("".concat(Vs(n),": ").concat(Ef(n,r),";")))}return t};function vt(e,t,n,r){if(Fs(e))return[];if(Rr(e))return[".".concat(e.styledComponentId)];if(Vt(e)){if(!Vt(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof zr||Ft(o)||o===null||console.error("".concat(gs(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.")),vt(o,t,n,r)}var i;return e instanceof zr?n?(e.inject(n,r),[e.getName(r)]):[e]:Ft(e)?Is(e):Array.isArray(e)?Array.prototype.concat.apply(Bn,e.map(function(s){return vt(s,t,n,r)})):[e.toString()]}function Af(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Vt(n)&&!Rr(n))return!1}return!0}var Df=ps(_n),Vf=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Af(t),this.componentId=n,this.baseHash=gt(Df,n),this.baseStyle=r,$s.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=yt(o,this.staticRulesId);else{var i=Lr(vt(this.rules,t,n,r)),s=Vr(gt(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,s)){var a=r(i,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,a)}o=yt(o,s),this.staticRulesId=s}else{for(var l=gt(this.baseHash,r.hash),c="",d=0;d<this.rules.length;d++){var u=this.rules[d];if(typeof u=="string")c+=u,process.env.NODE_ENV!=="production"&&(l=gt(l,u));else if(u){var h=Lr(vt(u,t,n,r));l=gt(l,h+d),c+=h}}if(c){var f=Vr(l>>>0);if(!n.hasNameForId(this.componentId,f)){var m=r(c,".".concat(f),void 0,this.componentId);n.insertRules(this.componentId,f,m)}o=yt(o,f)}}return{className:o,css:typeof window>"u"?n.getTag().getGroup(nn(this.componentId)):""}},e})(),Rs=At?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:p.createContext(void 0);Rs.Consumer;var Hr={},Ls=new Set;function Ff(e,t,n){var r=Rr(e),o=e,i=!Ir(e),s=t.attrs,a=s===void 0?Bn:s,l=t.componentId,c=l===void 0?(function(M,b){var $=typeof M!="string"?"sc":fs(M);Hr[$]=(Hr[$]||0)+1;var k="".concat($,"-").concat(ms(_n+$+Hr[$]));return b?"".concat(b,"-").concat(k):k})(t.displayName,t.parentComponentId):l,d=t.displayName,u=d===void 0?(function(M){return Ir(M)?"styled.".concat(M):"Styled(".concat(gs(M),")")})(e):d,h=t.displayName&&t.componentId?"".concat(fs(t.displayName),"-").concat(t.componentId):t.componentId||c,f=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var y=o.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;m=function(M,b){return y(M,b)&&x(M,b)}}else m=y}var v=new Vf(n,h,r?o.componentStyle:void 0);function T(M,b){return(function($,k,E){var D=$.attrs,A=$.componentStyle,I=$.defaultProps,N=$.foldedComponentIds,j=$.styledComponentId,G=$.target,X=p.useContext?p.useContext(Rs):void 0,O=Ds(),R=$.shouldForwardProp||O.shouldForwardProp;process.env.NODE_ENV!=="production"&&p.useDebugValue&&p.useDebugValue(j);var W=Jd(k,X,I)||Dt,q=(function(K,Ce,Xe){for(var Le,ge=be(be({},Ce),{className:void 0,theme:Xe}),$n=0;$n<K.length;$n+=1){var ct=Vt(Le=K[$n])?Le(ge):Le;for(var ut in ct)ut==="className"?ge.className=yt(ge.className,ct[ut]):ut==="style"?ge.style=be(be({},ge.style),ct[ut]):ge[ut]=ct[ut]}return"className"in Ce&&typeof Ce.className=="string"&&(ge.className=yt(ge.className,Ce.className)),ge})(D,k,W),Z=q.as||G,de={};for(var le in q)q[le]===void 0||le[0]==="$"||le==="as"||le==="theme"&&q.theme===W||(le==="forwardedAs"?de.as=q.forwardedAs:R&&!R(le,Z)||(de[le]=q[le],R||process.env.NODE_ENV!=="development"||Md(le)||Ls.has(le)||!Dr.has(Z)||(Ls.add(le),console.warn('styled-components: it looks like an unknown prop "'.concat(le,'" 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 H=(function(K,Ce){var Xe=Ds(),Le=K.generateAndInjectStyles(Ce,Xe.styleSheet,Xe.stylis);return process.env.NODE_ENV!=="production"&&p.useDebugValue&&p.useDebugValue(Le.className),Le})(A,q),J=H.className,te=H.css;process.env.NODE_ENV!=="production"&&$.warnTooManyClasses&&$.warnTooManyClasses(J);var me=yt(N,j);J&&(me+=" "+J),q.className&&(me+=" "+q.className),de[Ir(Z)&&!Dr.has(Z)?"class":"className"]=me,E&&(de.ref=E);var qe=p.createElement(Z,de);return At&&te?p.createElement(p.Fragment,null,p.createElement("style",{precedence:"styled-components",href:"sc-".concat(j,"-").concat(J),children:te}),qe):qe})(w,M,b)}T.displayName=u;var w=p.forwardRef(T);return w.attrs=f,w.componentStyle=v,w.displayName=u,w.shouldForwardProp=m,w.foldedComponentIds=r?yt(o.foldedComponentIds,o.styledComponentId):"",w.styledComponentId=h,w.target=r?o.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(M){this._foldedDefaultProps=r?(function(b){for(var $=[],k=1;k<arguments.length;k++)$[k-1]=arguments[k];for(var E=0,D=$;E<D.length;E++)_r(b,D[E],!0);return b})({},o.defaultProps,M):M}}),process.env.NODE_ENV!=="production"&&(Zd(u,h),w.warnTooManyClasses=(function(M,b){var $={},k=!1;return function(E){if(!k&&($[E]=!0,Object.keys($).length>=200)){var D=b?' with the id of "'.concat(b,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(M).concat(D,`.
|
|
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,167 +53,167 @@ Example:
|
|
|
53
53
|
},
|
|
54
54
|
}))\`width: 100%;\`
|
|
55
55
|
|
|
56
|
-
<Component />`),
|
|
56
|
+
<Component />`),k=!0,$={}}}})(u,h)),Nr(w,function(){return".".concat(w.styledComponentId)}),i&&Cs(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function _s(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 Ns=function(e){return Object.assign(e,{isCss:!0})};function S(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Vt(e)||Ft(e))return Ns(vt(_s(Bn,ht([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?vt(r):Ns(vt(_s(r,t)))}function jr(e,t,n){if(n===void 0&&(n=Dt),!t)throw It(1,t);var r=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,n,S.apply(void 0,ht([o],i,!1)))};return r.attrs=function(o){return jr(e,t,be(be({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return jr(e,t,be(be({},n),o))},r}var Os=function(e){return jr(Ff,e)},P=Os;Dr.forEach(function(e){P[e]=Os(e)});function If(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=Lr(S.apply(void 0,ht([e],t,!1))),o=ms(r);return new zr(o,r)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
57
57
|
Perhaps you're looking to import 'styled-components/native'?
|
|
58
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var
|
|
58
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Gn="__sc-".concat(mt,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Gn]||(window[Gn]=0),window[Gn]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
59
59
|
|
|
60
|
-
See https://
|
|
60
|
+
See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info.`),window[Gn]+=1);const Gr={80:S`
|
|
61
61
|
font-family: 'Dax', serif;
|
|
62
62
|
font-size: 5em;
|
|
63
63
|
font-style: normal;
|
|
64
64
|
font-weight: 700;
|
|
65
65
|
line-height: 163.184%;
|
|
66
|
-
`,60:
|
|
66
|
+
`,60:S`
|
|
67
67
|
font-family: 'Dax', serif;
|
|
68
68
|
font-size: 3.75em;
|
|
69
69
|
font-style: normal;
|
|
70
70
|
font-weight: 700;
|
|
71
71
|
line-height: 161.76%;
|
|
72
|
-
`,40:
|
|
72
|
+
`,40:S`
|
|
73
73
|
font-family: 'Dax', serif;
|
|
74
74
|
font-size: 2.5em;
|
|
75
75
|
font-style: normal;
|
|
76
76
|
font-weight: 700;
|
|
77
77
|
line-height: 161.76%;
|
|
78
|
-
`,30:
|
|
78
|
+
`,30:S`
|
|
79
79
|
font-family: 'Dax', serif;
|
|
80
80
|
font-size: 1.875em;
|
|
81
81
|
font-style: normal;
|
|
82
82
|
font-weight: 700;
|
|
83
83
|
line-height: 161.76%;
|
|
84
|
-
`,24:
|
|
84
|
+
`,24:S`
|
|
85
85
|
font-family: 'Dax', serif;
|
|
86
86
|
font-size: 1.5em;
|
|
87
87
|
font-style: normal;
|
|
88
88
|
font-weight: 700;
|
|
89
89
|
line-height: 163.184%;
|
|
90
|
-
`,20:
|
|
90
|
+
`,20:S`
|
|
91
91
|
font-family: 'Dax', serif;
|
|
92
92
|
font-size: 1.25em;
|
|
93
93
|
font-style: normal;
|
|
94
94
|
font-weight: 700;
|
|
95
95
|
line-height: 161.76%;
|
|
96
|
-
`,16:
|
|
96
|
+
`,16:S`
|
|
97
97
|
font-family: 'Dax', serif;
|
|
98
98
|
font-size: 1em;
|
|
99
99
|
font-style: normal;
|
|
100
100
|
font-weight: 700;
|
|
101
101
|
line-height: 161.76%;
|
|
102
|
-
`},
|
|
102
|
+
`},Bs={80:S`
|
|
103
103
|
font-family: 'Dax', serif;
|
|
104
104
|
font-size: 5em;
|
|
105
105
|
font-style: normal;
|
|
106
106
|
font-weight: 400;
|
|
107
107
|
line-height: 163.184%;
|
|
108
|
-
`,60:
|
|
108
|
+
`,60:S`
|
|
109
109
|
font-family: 'Dax', serif;
|
|
110
110
|
font-size: 3.75em;
|
|
111
111
|
font-style: normal;
|
|
112
112
|
font-weight: 400;
|
|
113
113
|
line-height: 161.76%;
|
|
114
|
-
`,40:
|
|
114
|
+
`,40:S`
|
|
115
115
|
font-family: 'Dax', serif;
|
|
116
116
|
font-size: 2.5em;
|
|
117
117
|
font-style: normal;
|
|
118
118
|
font-weight: 400;
|
|
119
119
|
line-height: 161.76%;
|
|
120
|
-
`,30:
|
|
120
|
+
`,30:S`
|
|
121
121
|
font-family: 'Dax', serif;
|
|
122
122
|
font-size: 1.875em;
|
|
123
123
|
font-style: normal;
|
|
124
124
|
font-weight: 400;
|
|
125
125
|
line-height: 161.76%;
|
|
126
|
-
`,24:
|
|
126
|
+
`,24:S`
|
|
127
127
|
font-family: 'Dax', serif;
|
|
128
128
|
font-size: 1.5em;
|
|
129
129
|
font-style: normal;
|
|
130
130
|
font-weight: 400;
|
|
131
131
|
line-height: 163.184%;
|
|
132
|
-
`,20:
|
|
132
|
+
`,20:S`
|
|
133
133
|
font-family: 'Dax', serif;
|
|
134
134
|
font-size: 1.25em;
|
|
135
135
|
font-style: normal;
|
|
136
136
|
font-weight: 400;
|
|
137
137
|
line-height: 161.76%;
|
|
138
|
-
`,16:
|
|
138
|
+
`,16:S`
|
|
139
139
|
font-family: 'Dax', serif;
|
|
140
140
|
font-size: 1em;
|
|
141
141
|
font-style: normal;
|
|
142
142
|
font-weight: 400;
|
|
143
143
|
line-height: 161.76%;
|
|
144
|
-
`},
|
|
144
|
+
`},F={80:S`
|
|
145
145
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
146
146
|
font-size: 5em;
|
|
147
147
|
font-style: normal;
|
|
148
148
|
font-weight: 400;
|
|
149
149
|
line-height: 155.962%;
|
|
150
|
-
`,60:
|
|
150
|
+
`,60:S`
|
|
151
151
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
152
152
|
font-size: 3.75em;
|
|
153
153
|
font-style: normal;
|
|
154
154
|
font-weight: 400;
|
|
155
155
|
line-height: 176.782%;
|
|
156
|
-
`,40:
|
|
156
|
+
`,40:S`
|
|
157
157
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
158
158
|
font-size: 2.5em;
|
|
159
159
|
font-style: normal;
|
|
160
160
|
font-weight: 400;
|
|
161
161
|
line-height: 176.782%;
|
|
162
|
-
`,30:
|
|
162
|
+
`,30:S`
|
|
163
163
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
164
164
|
font-size: 1.875em;
|
|
165
165
|
font-style: normal;
|
|
166
166
|
font-weight: 400;
|
|
167
167
|
line-height: 176.782%;
|
|
168
|
-
`,24:
|
|
168
|
+
`,24:S`
|
|
169
169
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
170
170
|
font-size: 1.5em;
|
|
171
171
|
font-style: normal;
|
|
172
172
|
font-weight: 400;
|
|
173
173
|
line-height: 176.782%;
|
|
174
|
-
`,20:
|
|
174
|
+
`,20:S`
|
|
175
175
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
176
176
|
font-size: 1.25em;
|
|
177
177
|
font-style: normal;
|
|
178
178
|
font-weight: 400;
|
|
179
179
|
line-height: 155.962%;
|
|
180
|
-
`,18:
|
|
180
|
+
`,18:S`
|
|
181
181
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
182
182
|
font-size: 1.125em;
|
|
183
183
|
font-style: normal;
|
|
184
184
|
font-weight: 400;
|
|
185
185
|
line-height: 150.782%;
|
|
186
|
-
`,16:
|
|
186
|
+
`,16:S`
|
|
187
187
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
188
188
|
font-size: 1em;
|
|
189
189
|
font-style: normal;
|
|
190
190
|
font-weight: 400;
|
|
191
191
|
line-height: 140%;
|
|
192
|
-
`,14:
|
|
192
|
+
`,14:S`
|
|
193
193
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
194
194
|
font-size: 0.875em;
|
|
195
195
|
font-style: normal;
|
|
196
196
|
font-weight: 400;
|
|
197
197
|
line-height: 140%;
|
|
198
|
-
`,12:
|
|
198
|
+
`,12:S`
|
|
199
199
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
200
200
|
font-size: 0.75em;
|
|
201
201
|
font-style: normal;
|
|
202
202
|
font-weight: 400;
|
|
203
203
|
line-height: 133%;
|
|
204
|
-
`},
|
|
205
|
-
${({size:e=24})=>
|
|
204
|
+
`},zs=P.h1`
|
|
205
|
+
${({size:e=24})=>Gr[e]}
|
|
206
206
|
margin: 0;
|
|
207
207
|
color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
|
|
208
|
-
`,
|
|
209
|
-
${({size:e=24})=>
|
|
208
|
+
`,Rf=P.h2`
|
|
209
|
+
${({size:e=24})=>Bs[e]}
|
|
210
210
|
margin: 0;
|
|
211
211
|
color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
|
|
212
|
-
`,
|
|
213
|
-
${({size:e=16})=>
|
|
212
|
+
`,Ge=P.span`
|
|
213
|
+
${({size:e=16})=>F[e]}
|
|
214
214
|
margin: 0;
|
|
215
215
|
color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
|
|
216
|
-
`,
|
|
216
|
+
`,Lf=P.span`
|
|
217
217
|
display: inline-flex;
|
|
218
218
|
align-items: center;
|
|
219
219
|
justify-content: center;
|
|
@@ -223,74 +223,74 @@ 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((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(`
|
|
226
|
+
`,Hs={tn:"1rem",sm:"1.5rem",md:"2rem",lg:"3rem"},Y=({component:e,size:t="1.5rem",color:n="currentColor",className:r,iconProps:o={}})=>{const i=typeof t=="string"&&t in Hs?Hs[t]:t;return g.jsx(Lf,{$color:n,className:r,children:typeof e=="function"?g.jsx(e,{size:i,...o}):e})},Ur=p.createContext({});function Wr(e){const t=p.useRef(null);return t.current===null&&(t.current=e()),t.current}const js=typeof window<"u",Gs=js?p.useLayoutEffect:p.useEffect,Un=p.createContext(null);function Kr(e,t){e.indexOf(t)===-1&&e.push(t)}function Yr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Oe=(e,t,n)=>n>t?t:n<e?e:n;function qr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Lt=()=>{},Ue=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(Lt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(qr(t,n))},Ue=(e,t,n)=>{if(!e)throw new Error(qr(t,n))});const We={},Us=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Ws(e){return typeof e=="object"&&e!==null}const Ks=e=>/^0[^.\s]+$/u.test(e);function Xr(e){let t;return()=>(t===void 0&&(t=e()),t)}const $e=e=>e,_f=(e,t)=>n=>t(e(n)),rn=(...e)=>e.reduce(_f),on=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Zr{constructor(){this.subscriptions=[]}add(t){return Kr(this.subscriptions,t),()=>Yr(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Be=e=>e*1e3,Ee=e=>e/1e3;function Ys(e,t){return t?e*(1e3/t):0}const qs=new Set;function Jr(e,t,n){e||qs.has(t)||(console.warn(qr(t,n)),qs.add(t))}const Xs=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Nf=1e-7,Of=12;function Bf(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Xs(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>Nf&&++a<Of);return s}function sn(e,t,n,r){if(e===t&&n===r)return $e;const o=i=>Bf(i,0,1,e,n);return i=>i===0||i===1?i:Xs(o(i),t,r)}const Zs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Js=e=>t=>1-e(1-t),Qs=sn(.33,1.53,.69,.99),Qr=Js(Qs),ea=Zs(Qr),ta=e=>(e*=2)<1?.5*Qr(e):.5*(2-Math.pow(2,-10*(e-1))),eo=e=>1-Math.sin(Math.acos(e)),na=Js(eo),ra=Zs(eo),zf=sn(.42,0,1,1),Hf=sn(0,0,.58,1),oa=sn(.42,0,.58,1),jf=e=>Array.isArray(e)&&typeof e[0]!="number",ia=e=>Array.isArray(e)&&typeof e[0]=="number",sa={linear:$e,easeIn:zf,easeInOut:oa,easeOut:Hf,circIn:eo,circInOut:ra,circOut:na,backIn:Qr,backInOut:ea,backOut:Qs,anticipate:ta},Gf=e=>typeof e=="string",aa=e=>{if(ia(e)){Ue(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return sn(t,n,r,o)}else if(Gf(e))return Ue(sa[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),sa[e];return e},Wn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Uf(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(d){s.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,u=!1,h=!1)=>{const m=h&&o?n:r;return u&&s.add(d),m.has(d)||m.add(d),d},cancel:d=>{r.delete(d),s.delete(d)},process:d=>{if(a=d,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(l),n.clear(),o=!1,i&&(i=!1,c.process(d))}};return c}const Wf=40;function la(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Wn.reduce((w,M)=>(w[M]=Uf(i),w),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:h,render:f,postRender:m}=s,y=()=>{const w=We.useManualTiming?o.timestamp:performance.now();n=!1,We.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(w-o.timestamp,Wf),1)),o.timestamp=w,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),d.process(o),u.process(o),h.process(o),f.process(o),m.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(y))},x=()=>{n=!0,r=!0,o.isProcessing||e(y)};return{schedule:Wn.reduce((w,M)=>{const b=s[M];return w[M]=($,k=!1,E=!1)=>(n||x(),b.schedule($,k,E)),w},{}),cancel:w=>{for(let M=0;M<Wn.length;M++)s[Wn[M]].cancel(w)},state:o,steps:s}}const{schedule:ee,cancel:et,state:ue,steps:to}=la(typeof requestAnimationFrame<"u"?requestAnimationFrame:$e,!0);let Kn;function Kf(){Kn=void 0}const ve={now:()=>(Kn===void 0&&ve.set(ue.isProcessing||We.useManualTiming?ue.timestamp:performance.now()),Kn),set:e=>{Kn=e,queueMicrotask(Kf)}},ca=e=>t=>typeof t=="string"&&t.startsWith(e),ua=ca("--"),Yf=ca("var(--"),no=e=>Yf(e)?qf.test(e.split("/*")[0].trim()):!1,qf=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function da(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const _t={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},an={..._t,transform:e=>Oe(0,1,e)},Yn={..._t,default:1},ln=e=>Math.round(e*1e5)/1e5,ro=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Xf(e){return e==null}const Zf=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,oo=(e,t)=>n=>!!(typeof n=="string"&&Zf.test(n)&&n.startsWith(e)||t&&!Xf(n)&&Object.prototype.hasOwnProperty.call(n,t)),fa=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(ro);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Jf=e=>Oe(0,255,e),io={..._t,transform:e=>Math.round(Jf(e))},wt={test:oo("rgb","red"),parse:fa("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+io.transform(e)+", "+io.transform(t)+", "+io.transform(n)+", "+ln(an.transform(r))+")"};function Qf(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 so={test:oo("#"),parse:Qf,transform:wt.transform},cn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),tt=cn("deg"),ze=cn("%"),V=cn("px"),eh=cn("vh"),th=cn("vw"),ha={...ze,parse:e=>ze.parse(e)/100,transform:e=>ze.transform(e*100)},Nt={test:oo("hsl","hue"),parse:fa("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ze.transform(ln(t))+", "+ze.transform(ln(n))+", "+ln(an.transform(r))+")"},ie={test:e=>wt.test(e)||so.test(e)||Nt.test(e),parse:e=>wt.test(e)?wt.parse(e):Nt.test(e)?Nt.parse(e):so.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?wt.transform(e):Nt.transform(e),getAnimatableNone:e=>{const t=ie.parse(e);return t.alpha=0,ie.transform(t)}},nh=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function rh(e){return isNaN(e)&&typeof e=="string"&&(e.match(ro)?.length||0)+(e.match(nh)?.length||0)>0}const pa="number",ma="color",oh="var",ih="var(",ga="${}",sh=/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 un(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(sh,l=>(ie.test(l)?(r.color.push(i),o.push(ma),n.push(ie.parse(l))):l.startsWith(ih)?(r.var.push(i),o.push(oh),n.push(l)):(r.number.push(i),o.push(pa),n.push(parseFloat(l))),++i,ga)).split(ga);return{values:n,split:a,indexes:r,types:o}}function ya(e){return un(e).values}function va(e){const{split:t,types:n}=un(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===pa?i+=ln(o[s]):a===ma?i+=ie.transform(o[s]):i+=o[s]}return i}}const ah=e=>typeof e=="number"?0:ie.test(e)?ie.getAnimatableNone(e):e;function lh(e){const t=ya(e);return va(e)(t.map(ah))}const nt={test:rh,parse:ya,createTransformer:va,getAnimatableNone:lh};function ao(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 ch({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=ao(l,a,e+1/3),i=ao(l,a,e),s=ao(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function qn(e,t){return n=>n>0?t:e}const ne=(e,t,n)=>e+(t-e)*n,lo=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},uh=[so,wt,Nt],dh=e=>uh.find(t=>t.test(e));function wa(e){const t=dh(e);if(Lt(!!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===Nt&&(n=ch(n)),n}const ba=(e,t)=>{const n=wa(e),r=wa(t);if(!n||!r)return qn(e,t);const o={...n};return i=>(o.red=lo(n.red,r.red,i),o.green=lo(n.green,r.green,i),o.blue=lo(n.blue,r.blue,i),o.alpha=ne(n.alpha,r.alpha,i),wt.transform(o))},co=new Set(["none","hidden"]);function fh(e,t){return co.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function hh(e,t){return n=>ne(e,t,n)}function uo(e){return typeof e=="number"?hh:typeof e=="string"?no(e)?qn:ie.test(e)?ba:gh:Array.isArray(e)?xa:typeof e=="object"?ie.test(e)?ba:ph:qn}function xa(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>uo(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function ph(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=uo(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function mh(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}const gh=(e,t)=>{const n=nt.createTransformer(t),r=un(e),o=un(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?co.has(e)&&!o.values.length||co.has(t)&&!r.values.length?fh(e,t):rn(xa(mh(r,o),o.values),n):(Lt(!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"),qn(e,t))};function Sa(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ne(e,t,n):uo(e)(e,t)}const yh=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ee.update(t,n),stop:()=>et(t),now:()=>ue.isProcessing?ue.timestamp:ve.now()}},Ca=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Xn=2e4;function fo(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Xn;)t+=n,r=e.next(t);return t>=Xn?1/0:t}function vh(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(fo(r),Xn);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ee(o)}}const wh=5;function Ta(e,t,n){const r=Math.max(t-wh,0);return Ys(n-e(r),t-r)}const re={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},ho=.001;function bh({duration:e=re.duration,bounce:t=re.bounce,velocity:n=re.velocity,mass:r=re.mass}){let o,i;Lt(e<=Be(re.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Oe(re.minDamping,re.maxDamping,s),e=Oe(re.minDuration,re.maxDuration,Ee(e)),s<1?(o=c=>{const d=c*s,u=d*e,h=d-n,f=po(c,s),m=Math.exp(-u);return ho-h/f*m},i=c=>{const u=c*s*e,h=u*n+n,f=Math.pow(s,2)*Math.pow(c,2)*e,m=Math.exp(-u),y=po(Math.pow(c,2),s);return(-o(c)+ho>0?-1:1)*((h-f)*m)/y}):(o=c=>{const d=Math.exp(-c*e),u=(c-n)*e+1;return-ho+d*u},i=c=>{const d=Math.exp(-c*e),u=(n-c)*(e*e);return d*u});const a=5/e,l=Sh(o,i,a);if(e=Be(e),isNaN(l))return{stiffness:re.stiffness,damping:re.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const xh=12;function Sh(e,t,n){let r=n;for(let o=1;o<xh;o++)r=r-e(r)/t(r);return r}function po(e,t){return e*Math.sqrt(1-t*t)}const Ch=["duration","bounce"],Th=["stiffness","damping","mass"];function ka(e,t){return t.some(n=>e[n]!==void 0)}function kh(e){let t={velocity:re.velocity,stiffness:re.stiffness,damping:re.damping,mass:re.mass,isResolvedFromDuration:!1,...e};if(!ka(e,Th)&&ka(e,Ch))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Oe(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:re.mass,stiffness:o,damping:i}}else{const n=bh(e);t={...t,...n,mass:re.mass},t.isResolvedFromDuration=!0}return t}function Zn(e=re.visualDuration,t=re.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:d,duration:u,velocity:h,isResolvedFromDuration:f}=kh({...n,velocity:-Ee(n.velocity||0)}),m=h||0,y=c/(2*Math.sqrt(l*d)),x=s-i,v=Ee(Math.sqrt(l/d)),T=Math.abs(x)<5;r||(r=T?re.restSpeed.granular:re.restSpeed.default),o||(o=T?re.restDelta.granular:re.restDelta.default);let w;if(y<1){const b=po(v,y);w=$=>{const k=Math.exp(-y*v*$);return s-k*((m+y*v*x)/b*Math.sin(b*$)+x*Math.cos(b*$))}}else if(y===1)w=b=>s-Math.exp(-v*b)*(x+(m+v*x)*b);else{const b=v*Math.sqrt(y*y-1);w=$=>{const k=Math.exp(-y*v*$),E=Math.min(b*$,300);return s-k*((m+y*v*x)*Math.sinh(E)+b*x*Math.cosh(E))/b}}const M={calculatedDuration:f&&u||null,next:b=>{const $=w(b);if(f)a.done=b>=u;else{let k=b===0?m:0;y<1&&(k=b===0?Be(m):Ta(w,b,$));const E=Math.abs(k)<=r,D=Math.abs(s-$)<=o;a.done=E&&D}return a.value=a.done?s:$,a},toString:()=>{const b=Math.min(fo(M),Xn),$=Ca(k=>M.next(b*k).value,b,30);return b+"ms "+$},toTransition:()=>{}};return M}Zn.applyToOptions=e=>{const t=vh(e,100,Zn);return e.ease=t.ease,e.duration=Be(t.duration),e.type="keyframes",e};function mo({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:d}){const u=e[0],h={done:!1,value:u},f=E=>a!==void 0&&E<a||l!==void 0&&E>l,m=E=>a===void 0?l:l===void 0||Math.abs(a-E)<Math.abs(l-E)?a:l;let y=n*t;const x=u+y,v=s===void 0?x:s(x);v!==x&&(y=v-u);const T=E=>-y*Math.exp(-E/r),w=E=>v+T(E),M=E=>{const D=T(E),A=w(E);h.done=Math.abs(D)<=c,h.value=h.done?v:A};let b,$;const k=E=>{f(h.value)&&(b=E,$=Zn({keyframes:[h.value,m(h.value)],velocity:Ta(w,E,h.value),damping:o,stiffness:i,restDelta:c,restSpeed:d}))};return k(0),{calculatedDuration:null,next:E=>{let D=!1;return!$&&b===void 0&&(D=!0,M(E),k(E)),b!==void 0&&E>=b?$.next(E-b):(!D&&M(E),h)}}}function Ph(e,t,n){const r=[],o=n||We.mix||Sa,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||$e:t;a=rn(l,a)}r.push(a)}return r}function $h(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Ue(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Ph(t,r,o),l=a.length,c=d=>{if(s&&d<e[0])return t[0];let u=0;if(l>1)for(;u<e.length-2&&!(d<e[u+1]);u++);const h=on(e[u],e[u+1],d);return a[u](h)};return n?d=>c(Oe(e[0],e[i-1],d)):c}function Eh(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=on(0,t,r);e.push(ne(n,1,o))}}function Mh(e){const t=[0];return Eh(t,e.length-1),t}function Ah(e,t){return e.map(n=>n*t)}function Dh(e,t){return e.map(()=>t||oa).splice(0,e.length-1)}function Ot({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=jf(r)?r.map(aa):aa(r),i={done:!1,value:t[0]},s=Ah(n&&n.length===t.length?n:Mh(t),e),a=$h(s,t,{ease:Array.isArray(o)?o:Dh(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Vh=e=>e!==null;function go(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(Vh),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Fh={decay:mo,inertia:mo,tween:Ot,keyframes:Ot,spring:Zn};function Pa(e){typeof e.type=="string"&&(e.type=Fh[e.type])}class yo{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 Ih=e=>e/100;class vo extends yo{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!==ve.now()&&this.tick(ve.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;Pa(t);const{type:n=Ot,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Ot;process.env.NODE_ENV!=="production"&&l!==Ot&&Ue(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Ot&&typeof a[0]!="number"&&(this.mixKeyframes=rn(Ih,Sa(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=fo(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:d,repeat:u,repeatType:h,repeatDelay:f,type:m,onUpdate:y,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 v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,M=r;if(u){const E=Math.min(this.currentTime,o)/a;let D=Math.floor(E),A=E%1;!A&&E>=1&&(A=1),A===1&&D--,D=Math.min(D,u+1),D%2&&(h==="reverse"?(A=1-A,f&&(A-=f/a)):h==="mirror"&&(M=s)),w=Oe(0,1,A)*a}const b=T?{done:!1,value:d[0]}:M.next(w);i&&(b.value=i(b.value));let{done:$}=b;!T&&l!==null&&($=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);return k&&m!==mo&&(b.value=go(d,this.options,x,this.speed)),y&&y(b.value),k&&this.finish(),b}then(t,n){return this.finished.then(t,n)}get duration(){return Ee(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ee(t)}get time(){return Ee(this.currentTime)}set time(t){t=Be(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(ve.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ee(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=yh,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(ve.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 Rh(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const bt=e=>e*180/Math.PI,wo=e=>{const t=bt(Math.atan2(e[1],e[0]));return bo(t)},Lh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:wo,rotateZ:wo,skewX:e=>bt(Math.atan(e[1])),skewY:e=>bt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},bo=e=>(e=e%360,e<0&&(e+=360),e),$a=wo,Ea=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ma=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),_h={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ea,scaleY:Ma,scale:e=>(Ea(e)+Ma(e))/2,rotateX:e=>bo(bt(Math.atan2(e[6],e[5]))),rotateY:e=>bo(bt(Math.atan2(-e[2],e[0]))),rotateZ:$a,rotate:$a,skewX:e=>bt(Math.atan(e[4])),skewY:e=>bt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function xo(e){return e.includes("scale")?1:0}function So(e,t){if(!e||e==="none")return xo(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=_h,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Lh,o=a}if(!o)return xo(t);const i=r[t],s=o[1].split(",").map(Oh);return typeof i=="function"?i(s):s[i]}const Nh=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return So(n,t)};function Oh(e){return parseFloat(e.trim())}const Bt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],zt=new Set(Bt),Aa=e=>e===_t||e===V,Bh=new Set(["x","y","z"]),zh=Bt.filter(e=>!Bh.has(e));function Hh(e){const t=[];return zh.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const rt={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})=>So(t,"x"),y:(e,{transform:t})=>So(t,"y")};rt.translateX=rt.x,rt.translateY=rt.y;const xt=new Set;let Co=!1,To=!1,ko=!1;function Da(){if(To){const e=Array.from(xt).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(([i,s])=>{r.getValue(i)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}To=!1,Co=!1,xt.forEach(e=>e.complete(ko)),xt.clear()}function Va(){xt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(To=!0)})}function jh(){ko=!0,Va(),Da(),ko=!1}class Po{constructor(t,n,r,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(xt.add(this),Co||(Co=!0,ee.read(Va),ee.resolveKeyframes(Da))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}Rh(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),xt.delete(this)}cancel(){this.state==="scheduled"&&(xt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Gh=e=>e.startsWith("--");function Uh(e,t,n){Gh(t)?e.style.setProperty(t,n):e.style[t]=n}const Wh=Xr(()=>window.ScrollTimeline!==void 0),Kh={};function Yh(e,t){const n=Xr(e);return()=>Kh[t]??n()}const Fa=Yh(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),dn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ia={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:dn([0,.65,.55,1]),circOut:dn([.55,0,1,.45]),backIn:dn([.31,.01,.66,-.59]),backOut:dn([.33,1.53,.69,.99])};function Ra(e,t){if(e)return typeof e=="function"?Fa()?Ca(e,t):"ease-out":ia(e)?dn(e):Array.isArray(e)?e.map(n=>Ra(n,t)||Ia.easeOut):Ia[e]}function qh(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const d={[t]:n};l&&(d.offset=l);const u=Ra(a,o);Array.isArray(u)&&(d.easing=u);const h={delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(d,h)}function La(e){return typeof e=="function"&&"applyToOptions"in e}function Xh({type:e,...t}){return La(e)&&Fa()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Zh extends yo{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,Ue(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=Xh(t);this.animation=qh(n,r,o,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=go(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):Uh(n,r,d),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,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 Ee(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ee(t)}get time(){return Ee(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Be(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 this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Wh()?(this.animation.timeline=t,$e):n(this)}}const _a={anticipate:ta,backInOut:ea,circInOut:ra};function Jh(e){return e in _a}function Qh(e){typeof e.ease=="string"&&Jh(e.ease)&&(e.ease=_a[e.ease])}const $o=10;class ep extends Zh{constructor(t){Qh(t),Pa(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new vo({...s,autoplay:!1}),l=Math.max($o,ve.now()-this.startTime),c=Oe(0,$o,l-$o);n.setWithVelocity(a.sample(Math.max(0,l-c)).value,a.sample(l).value,c),a.stop()}}const Na=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(nt.test(e)||e==="0")&&!e.startsWith("url("));function tp(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 np(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=Na(o,t),a=Na(i,t);return Lt(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:tp(e)||(n==="spring"||La(n))&&r}function Eo(e){e.duration=0,e.type="keyframes"}const rp=new Set(["opacity","clipPath","filter","transform"]),op=Xr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ip(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return op()&&n&&rp.has(n)&&(n!=="transform"||!c)&&!l&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const sp=40;class ap extends yo{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:l,motionValue:c,element:d,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ve.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:c,element:d,...u},f=d?.KeyframeResolver||Po;this.keyframeResolver=new f(a,(m,y,x)=>this.onKeyframesResolved(m,y,h,!x),l,c,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:l,isHandoff:c,onUpdate:d}=r;this.resolvedAt=ve.now(),np(t,i,s,a)||((We.instantAnimations||!l)&&d?.(go(t,r,n)),t[0]=t[t.length-1],Eo(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>sp?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},f=!c&&ip(h)?new ep({...h,element:h.motionValue.owner.current}):new vo(h);f.finished.then(()=>this.notifyFinished()).catch($e),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}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(),jh()),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 lp=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function cp(e){const t=lp.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const up=4;function Oa(e,t,n=1){Ue(n<=up,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=cp(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Us(s)?parseFloat(s):s}return no(o)?Oa(o,t,n+1):o}function Mo(e,t){return e?.[t]??e?.default??e}const dp={type:"spring",stiffness:500,damping:25,restSpeed:10},fp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),hp={type:"keyframes",duration:.8},pp={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},mp=(e,{keyframes:t})=>t.length>2?hp:zt.has(e)?e.startsWith("scale")?fp(t[1]):dp:pp;function gp({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length}const yp=e=>e!==null;function vp(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(yp),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}function Ba(e,t,n,r=0,o=1){const i=Array.from(e).sort((c,d)=>c.sortNodePosition(d)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}const Ao=(e,t,n,r={},o,i)=>s=>{const a=Mo(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Be(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};gp(a)||Object.assign(d,mp(e,d)),d.duration&&(d.duration=Be(d.duration)),d.repeatDelay&&(d.repeatDelay=Be(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let u=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Eo(d),d.delay===0&&(u=!0)),(We.instantAnimations||We.skipAnimations)&&(u=!0,Eo(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,u&&!i&&t.get()!==void 0){const h=vp(d.keyframes,a);if(h!==void 0){ee.update(()=>{d.onUpdate(h),d.onComplete()});return}}return a.isSync?new vo(d):new ap(d)},za=new Set(["width","height","top","left","right","bottom",...Bt]),Ha=30,wp=e=>!isNaN(parseFloat(e));class bp{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=ve.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ve.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=wp(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Jr(!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 Zr);const r=this.events[t].add(n);return t==="change"?()=>{r(),ee.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=ve.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ha)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ha);return Ys(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 Ht(e,t){return new bp(e,t)}function ja(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Do(e,t,n,r){if(typeof t=="function"){const[o,i]=ja(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=ja(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function jt(e,t,n){const r=e.getProps();return Do(r,t,n!==void 0?n:r.custom,e)}const Vo=e=>Array.isArray(e);function xp(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ht(n))}function Sp(e){return Vo(e)?e[e.length-1]||0:e}function Cp(e,t){const n=jt(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=Sp(i[s]);xp(e,s,a)}}const he=e=>!!(e&&e.getVelocity);function Tp(e){return!!(he(e)&&e.add)}function Fo(e,t){const n=e.getValue("willChange");if(Tp(n))return n.add(t);if(!n&&We.WillChange){const r=new We.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Io(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Ga="data-"+Io("framerAppearId");function Ua(e){return e.props[Ga]}function kp({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Wa(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(i=r);const l=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in a){const u=e.getValue(d,e.latestValues[d]??null),h=a[d];if(h===void 0||c&&kp(c,d))continue;const f={delay:n,...Mo(i||{},d)},m=u.get();if(m!==void 0&&!u.isAnimating&&!Array.isArray(h)&&h===m&&!f.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const v=Ua(e);if(v){const T=window.MotionHandoffAnimation(v,d,ee);T!==null&&(f.startTime=T,y=!0)}}Fo(e,d),u.start(Ao(d,u,h,e.shouldReduceMotion&&za.has(d)?{type:!1}:f,e,y));const x=u.animation;x&&l.push(x)}return s&&Promise.all(l).then(()=>{ee.update(()=>{s&&Cp(e,s)})}),l}function Ro(e,t,n={}){const r=jt(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Wa(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:u}=o;return Pp(e,t,l,c,d,u,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,c]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>c())}else return Promise.all([i(),s(n.delay)])}function Pp(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Ro(l,t,{...s,delay:n+(typeof r=="function"?0:r)+Ba(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function $p(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Ro(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Ro(e,t,n);else{const o=typeof t=="function"?jt(e,t,n.custom):t;r=Promise.all(Wa(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Ep={test:e=>e==="auto",parse:e=>e},Ka=e=>t=>t.test(e),Ya=[_t,V,ze,tt,th,eh,Ep],qa=e=>Ya.find(Ka(e));function Mp(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ks(e):!0}const Ap=new Set(["brightness","contrast","saturate","opacity"]);function Dp(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ro)||[];if(!r)return e;const o=n.replace(r,"");let i=Ap.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Vp=/\b([a-z-]*)\(.*?\)/gu,Lo={...nt,getAnimatableNone:e=>{const t=e.match(Vp);return t?t.map(Dp).join(" "):e}},Xa={..._t,transform:Math.round},_o={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,inset:V,insetBlock:V,insetBlockStart:V,insetBlockEnd:V,insetInline:V,insetInlineStart:V,insetInlineEnd:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,paddingBlock:V,paddingBlockStart:V,paddingBlockEnd:V,paddingInline:V,paddingInlineStart:V,paddingInlineEnd:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,marginBlock:V,marginBlockStart:V,marginBlockEnd:V,marginInline:V,marginInlineStart:V,marginInlineEnd:V,backgroundPositionX:V,backgroundPositionY:V,...{rotate:tt,rotateX:tt,rotateY:tt,rotateZ:tt,scale:Yn,scaleX:Yn,scaleY:Yn,scaleZ:Yn,skew:tt,skewX:tt,skewY:tt,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:an,originX:ha,originY:ha,originZ:V},zIndex:Xa,fillOpacity:an,strokeOpacity:an,numOctaves:Xa},Fp={..._o,color:ie,backgroundColor:ie,outlineColor:ie,fill:ie,stroke:ie,borderColor:ie,borderTopColor:ie,borderRightColor:ie,borderBottomColor:ie,borderLeftColor:ie,filter:Lo,WebkitFilter:Lo},Za=e=>Fp[e];function Ja(e,t){let n=Za(e);return n!==Lo&&(n=nt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ip=new Set(["auto","none","0"]);function Rp(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!Ip.has(i)&&un(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=Ja(n,o)}class Lp extends Po{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let u=t[d];if(typeof u=="string"&&(u=u.trim(),no(u))){const h=Oa(u,n.current);h!==void 0&&(t[d]=h),d===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!za.has(r)||t.length!==2)return;const[o,i]=t,s=qa(o),a=qa(i),l=da(o),c=da(i);if(l!==c&&rt[r]){this.needsMeasurement=!0;return}if(s!==a)if(Aa(s)&&Aa(a))for(let d=0;d<t.length;d++){const u=t[d];typeof u=="string"&&(t[d]=parseFloat(u))}else rt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||Mp(t[o]))&&r.push(o);r.length&&Rp(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=rt[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=rt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function _p(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 Qa=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function el(e){return Ws(e)&&"offsetHeight"in e}const{schedule:No}=la(queueMicrotask,!1),Fe={x:!1,y:!1};function tl(){return Fe.x||Fe.y}function Np(e){return e==="x"||e==="y"?Fe[e]?null:(Fe[e]=!0,()=>{Fe[e]=!1}):Fe.x||Fe.y?null:(Fe.x=Fe.y=!0,()=>{Fe.x=Fe.y=!1})}function nl(e,t){const n=_p(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function rl(e){return!(e.pointerType==="touch"||tl())}function Op(e,t,n={}){const[r,o,i]=nl(e,n),s=a=>{if(!rl(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const d=u=>{rl(u)&&(c(u),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const ol=(e,t)=>t?e===t?!0:ol(e,t.parentElement):!1,Oo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Bp=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function il(e){return Bp.has(e.tagName)||e.isContentEditable===!0}const Jn=new WeakSet;function sl(e){return t=>{t.key==="Enter"&&e(t)}}function Bo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const zp=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=sl(()=>{if(Jn.has(n))return;Bo(n,"down");const o=sl(()=>{Bo(n,"up")}),i=()=>Bo(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function al(e){return Oo(e)&&!tl()}function Hp(e,t,n={}){const[r,o,i]=nl(e,n),s=a=>{const l=a.currentTarget;if(!al(a))return;Jn.add(l);const c=t(l,a),d=(f,m)=>{window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",h),Jn.has(l)&&Jn.delete(l),al(f)&&typeof c=="function"&&c(f,{success:m})},u=f=>{d(f,l===window||l===document||n.useGlobalTarget||ol(l,f.target))},h=f=>{d(f,!1)};window.addEventListener("pointerup",u,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),el(a)&&(a.addEventListener("focus",c=>zp(c,o)),!il(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function ll(e){return Ws(e)&&"ownerSVGElement"in e}function jp(e){return ll(e)&&e.tagName==="svg"}const Gp=[...Ya,ie,nt],Up=e=>Gp.find(Ka(e)),cl=()=>({translate:0,scale:1,origin:0,originPoint:0}),Gt=()=>({x:cl(),y:cl()}),ul=()=>({min:0,max:0}),ae=()=>({x:ul(),y:ul()}),zo={current:null},dl={current:!1},Wp=typeof window<"u";function Kp(){if(dl.current=!0,!!Wp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>zo.current=e.matches;e.addEventListener("change",t),t()}else zo.current=!1}const Yp=new WeakMap;function Qn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function fn(e){return typeof e=="string"||Array.isArray(e)}const Ho=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],jo=["initial",...Ho];function er(e){return Qn(e.animate)||jo.some(t=>fn(e[t]))}function fl(e){return!!(er(e)||e.variants)}function qp(e,t,n){for(const r in t){const o=t[r],i=n[r];if(he(o))e.addValue(r,o);else if(he(i))e.addValue(r,Ht(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,Ht(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const hl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let tr={};function pl(e){tr=e}function Xp(){return tr}class Zp{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Po,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=ve.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,ee.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=er(n),this.isVariantNode=fl(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...u}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in u){const f=u[h];l[h]!==void 0&&he(f)&&f.set(l[h])}}mount(t){this.current=t,Yp.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)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(dl.current||Kp(),this.shouldReduceMotion=zo.current),process.env.NODE_ENV!=="production"&&Jr(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(),et(this.notifyUpdate),et(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=zt.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&ee.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in tr){const n=tr[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ae()}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<hl.length;r++){const o=hl[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=qp(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=Ht(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"&&(Us(r)||Ks(r))?r=parseFloat(r):!Up(r)&&nt.test(n)&&(r=Ja(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 i=Do(this.props,n,this.presenceContext?.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!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 Zr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){No.render(this.render)}}class ot{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ml extends Zp{constructor(){super(...arguments),this.KeyframeResolver=Lp}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[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 gl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Jp({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Qp(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 Go(e){return e===void 0||e===1}function Uo({scale:e,scaleX:t,scaleY:n}){return!Go(e)||!Go(t)||!Go(n)}function St(e){return Uo(e)||yl(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function yl(e){return vl(e.x)||vl(e.y)}function vl(e){return e&&e!=="0%"}function nr(e,t,n){const r=e-n,o=t*r;return n+o}function wl(e,t,n,r,o){return o!==void 0&&(e=nr(e,o,r)),nr(e,n,r)+t}function Wo(e,t=0,n=1,r,o){e.min=wl(e.min,t,n,r,o),e.max=wl(e.max,t,n,r,o)}function bl(e,{x:t,y:n}){Wo(e.x,t.translate,t.scale,t.originPoint),Wo(e.y,n.translate,n.scale,n.originPoint)}const xl=.999999999999,Sl=1.0000000000001;function em(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Wt(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,bl(e,s)),r&&St(i.latestValues)&&Wt(e,i.latestValues))}t.x<Sl&&t.x>xl&&(t.x=1),t.y<Sl&&t.y>xl&&(t.y=1)}function Ut(e,t){e.min=e.min+t,e.max=e.max+t}function Cl(e,t,n,r,o=.5){const i=ne(e.min,e.max,o);Wo(e,t,n,i,r)}function Wt(e,t){Cl(e.x,t.x,t.scaleX,t.scale,t.originX),Cl(e.y,t.y,t.scaleY,t.scale,t.originY)}function Tl(e,t){return gl(Qp(e.getBoundingClientRect(),t))}function tm(e,t,n){const r=Tl(e,n),{scroll:o}=t;return o&&(Ut(r.x,o.offset.x),Ut(r.y,o.offset.y)),r}const nm={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rm=Bt.length;function om(e,t,n){let r="",o=!0;for(let i=0;i<rm;i++){const s=Bt[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=Qa(a,_o[s]);if(!l){o=!1;const d=nm[s]||s;r+=`${d}(${c}) `}n&&(t[s]=c)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Ko(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const c=t[l];if(zt.has(l)){s=!0;continue}else if(ua(l)){o[l]=c;continue}else{const d=Qa(c,_o[l]);l.startsWith("origin")?(a=!0,i[l]=d):r[l]=d}}if(t.transform||(s||n?r.transform=om(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:d=0}=i;r.transformOrigin=`${l} ${c} ${d}`}}function kl(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];o?.applyProjectionStyles(i,r);for(s in n)i.setProperty(s,n[s])}function Pl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const hn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=Pl(e,t.target.x),r=Pl(e,t.target.y);return`${n}% ${r}%`}},im={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=nt.parse(e);if(o.length>5)return r;const i=nt.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=ne(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),i(o)}},Yo={borderRadius:{...hn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:hn,borderTopRightRadius:hn,borderBottomLeftRadius:hn,borderBottomRightRadius:hn,boxShadow:im};function $l(e,{layout:t,layoutId:n}){return zt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Yo[e]||e==="opacity")}function qo(e,t,n){const r=e.style,o=t?.style,i={};if(!r)return i;for(const s in r)(he(r[s])||o&&he(o[s])||$l(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}function sm(e){return window.getComputedStyle(e)}class am extends ml{constructor(){super(...arguments),this.type="html",this.renderInstance=kl}readValueFromInstance(t,n){if(zt.has(n))return this.projection?.isProjecting?xo(n):Nh(t,n);{const r=sm(t),o=(ua(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Tl(t,n)}build(t,n,r){Ko(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return qo(t,n,r)}}const lm={offset:"stroke-dashoffset",array:"stroke-dasharray"},cm={offset:"strokeDashoffset",array:"strokeDasharray"};function um(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?lm:cm;e[i.offset]=V.transform(-r);const s=V.transform(t),a=V.transform(n);e[i.array]=`${s} ${a}`}const dm=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function El(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,c,d){if(Ko(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:u,style:h}=e;u.transform&&(h.transform=u.transform,delete u.transform),(h.transform||u.transformOrigin)&&(h.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),h.transform&&(h.transformBox=d?.transformBox??"fill-box",delete u.transformBox);for(const f of dm)u[f]!==void 0&&(h[f]=u[f],delete u[f]);t!==void 0&&(u.x=t),n!==void 0&&(u.y=n),r!==void 0&&(u.scale=r),o!==void 0&&um(u,o,i,s,!1)}const Ml=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"]),Al=e=>typeof e=="string"&&e.toLowerCase()==="svg";function fm(e,t,n,r){kl(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Ml.has(o)?o:Io(o),t.attrs[o])}function Dl(e,t,n){const r=qo(e,t,n);for(const o in e)if(he(e[o])||he(t[o])){const i=Bt.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}class hm extends ml{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ae}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(zt.has(n)){const r=Za(n);return r&&r.default||0}return n=Ml.has(n)?n:Io(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Dl(t,n,r)}build(t,n,r){El(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){fm(t,n,r,o)}mount(t){this.isSVGTag=Al(t.tagName),super.mount(t)}}const pm=jo.length;function Vl(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Vl(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<pm;n++){const r=jo[n],o=e.props[r];(fn(o)||o===!1)&&(t[r]=o)}return t}function Fl(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 mm=[...Ho].reverse(),gm=Ho.length;function ym(e){return t=>Promise.all(t.map(({animation:n,options:r})=>$p(e,n,r)))}function vm(e){let t=ym(e),n=Il(),r=!0;const o=l=>(c,d)=>{const u=jt(e,d,l==="exit"?e.presenceContext?.custom:void 0);if(u){const{transition:h,transitionEnd:f,...m}=u;c={...c,...m,...f}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,d=Vl(e.parent)||{},u=[],h=new Set;let f={},m=1/0;for(let x=0;x<gm;x++){const v=mm[x],T=n[v],w=c[v]!==void 0?c[v]:d[v],M=fn(w),b=v===l?T.isActive:null;b===!1&&(m=x);let $=w===d[v]&&w!==c[v]&&M;if($&&r&&e.manuallyAnimateOnMount&&($=!1),T.protectedKeys={...f},!T.isActive&&b===null||!w&&!T.prevProp||Qn(w)||typeof w=="boolean")continue;const k=wm(T.prevProp,w);let E=k||v===l&&T.isActive&&!$&&M||x>m&&M,D=!1;const A=Array.isArray(w)?w:[w];let I=A.reduce(o(v),{});b===!1&&(I={});const{prevResolvedValues:N={}}=T,j={...N,...I},G=R=>{E=!0,h.has(R)&&(D=!0,h.delete(R)),T.needsAnimating[R]=!0;const W=e.getValue(R);W&&(W.liveStyle=!1)};for(const R in j){const W=I[R],q=N[R];if(f.hasOwnProperty(R))continue;let Z=!1;Vo(W)&&Vo(q)?Z=!Fl(W,q):Z=W!==q,Z?W!=null?G(R):h.add(R):W!==void 0&&h.has(R)?G(R):T.protectedKeys[R]=!0}T.prevProp=w,T.prevResolvedValues=I,T.isActive&&(f={...f,...I}),r&&e.blockInitialAnimation&&(E=!1);const X=$&&k;E&&(!X||D)&&u.push(...A.map(R=>{const W={type:v};if(typeof R=="string"&&r&&!X&&e.manuallyAnimateOnMount&&e.parent){const{parent:q}=e,Z=jt(q,R);if(q.enteringChildren&&Z){const{delayChildren:de}=Z.transition||{};W.delay=Ba(q.enteringChildren,e,de)}}return{animation:R,options:W}}))}if(h.size){const x={};if(typeof c.initial!="boolean"){const v=jt(e,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(x.transition=v.transition)}h.forEach(v=>{const T=e.getBaseTarget(v),w=e.getValue(v);w&&(w.liveStyle=!0),x[v]=T??null}),u.push({animation:x})}let y=!!u.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(u):Promise.resolve()}function a(l,c){if(n[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(u=>u.animationState?.setActive(l,c)),n[l].isActive=c;const d=s(l);for(const u in n)n[u].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Il()}}}function wm(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Fl(t,e):!1}function Ct(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Il(){return{animate:Ct(!0),whileInView:Ct(),whileHover:Ct(),whileTap:Ct(),whileDrag:Ct(),whileFocus:Ct(),exit:Ct()}}const Rl=1e-4,bm=1-Rl,xm=1+Rl,Ll=.01,Sm=0-Ll,Cm=0+Ll;function we(e){return e.max-e.min}function Tm(e,t,n){return Math.abs(e-t)<=n}function _l(e,t,n,r=.5){e.origin=r,e.originPoint=ne(t.min,t.max,e.origin),e.scale=we(n)/we(t),e.translate=ne(n.min,n.max,e.origin)-e.originPoint,(e.scale>=bm&&e.scale<=xm||isNaN(e.scale))&&(e.scale=1),(e.translate>=Sm&&e.translate<=Cm||isNaN(e.translate))&&(e.translate=0)}function pn(e,t,n,r){_l(e.x,t.x,n.x,r?r.originX:void 0),_l(e.y,t.y,n.y,r?r.originY:void 0)}function Nl(e,t,n){e.min=n.min+t.min,e.max=e.min+we(t)}function km(e,t,n){Nl(e.x,t.x,n.x),Nl(e.y,t.y,n.y)}function Ol(e,t,n){e.min=t.min-n.min,e.max=e.min+we(t)}function rr(e,t,n){Ol(e.x,t.x,n.x),Ol(e.y,t.y,n.y)}function Bl(e,t,n,r,o){return e-=t,e=nr(e,1/n,r),o!==void 0&&(e=nr(e,1/o,r)),e}function Pm(e,t=0,n=1,r=.5,o,i=e,s=e){if(ze.test(t)&&(t=parseFloat(t),t=ne(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ne(i.min,i.max,r);e===i&&(a-=t),e.min=Bl(e.min,t,n,a,o),e.max=Bl(e.max,t,n,a,o)}function zl(e,t,[n,r,o],i,s){Pm(e,t[n],t[r],t[o],t.scale,i,s)}const $m=["x","scaleX","originX"],Em=["y","scaleY","originY"];function Hl(e,t,n,r){zl(e.x,t,$m,n?n.x:void 0,r?r.x:void 0),zl(e.y,t,Em,n?n.y:void 0,r?r.y:void 0)}function jl(e,t){e.min=t.min,e.max=t.max}function Ie(e,t){jl(e.x,t.x),jl(e.y,t.y)}function Gl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ul(e){return e.translate===0&&e.scale===1}function Wl(e){return Ul(e.x)&&Ul(e.y)}function Kl(e,t){return e.min===t.min&&e.max===t.max}function Mm(e,t){return Kl(e.x,t.x)&&Kl(e.y,t.y)}function Yl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ql(e,t){return Yl(e.x,t.x)&&Yl(e.y,t.y)}function Xl(e){return we(e.x)/we(e.y)}function Zl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Me(e){return[e("x"),e("y")]}function Am(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,rotateX:u,rotateY:h,skewX:f,skewY:m}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),u&&(r+=`rotateX(${u}deg) `),h&&(r+=`rotateY(${h}deg) `),f&&(r+=`skewX(${f}deg) `),m&&(r+=`skewY(${m}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 Jl=["TopLeft","TopRight","BottomLeft","BottomRight"],Dm=Jl.length,Ql=e=>typeof e=="string"?parseFloat(e):e,ec=e=>typeof e=="number"||V.test(e);function Vm(e,t,n,r,o,i){o?(e.opacity=ne(0,n.opacity??1,Fm(r)),e.opacityExit=ne(t.opacity??1,0,Im(r))):i&&(e.opacity=ne(t.opacity??1,n.opacity??1,r));for(let s=0;s<Dm;s++){const a=`border${Jl[s]}Radius`;let l=tc(t,a),c=tc(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||ec(l)===ec(c)?(e[a]=Math.max(ne(Ql(l),Ql(c),r),0),(ze.test(c)||ze.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=ne(t.rotate||0,n.rotate||0,r))}function tc(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Fm=nc(0,.5,na),Im=nc(.5,.95,$e);function nc(e,t,n){return r=>r<e?0:r>t?1:n(on(e,t,r))}function Rm(e,t){const n=ve.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(et(r),e(i-t))};return ee.setup(r,!0),()=>et(r)}function mn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function or(e){return he(e)?e.get():e}function Lm(e,t,n){const r=he(e)?e:Ht(e);return r.start(Ao("",r,t,n)),r.animation}const _m=(e,t)=>e.depth-t.depth;class Nm{constructor(){this.children=[],this.isDirty=!1}add(t){Kr(this.children,t),this.isDirty=!0}remove(t){Yr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_m),this.isDirty=!1,this.children.forEach(t)}}class Om{constructor(){this.members=[]}add(t){Kr(this.members,t),t.scheduleRender()}remove(t){if(Yr(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const ir={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Xo=["","X","Y","Z"],Bm=1e3;let zm=0;function Zo(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function rc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ua(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ee,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&rc(r)}function oc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=zm++,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.layoutVersion=0,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(Gm),this.nodes.forEach(Ym),this.nodes.forEach(qm),this.nodes.forEach(Um)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Nm)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Zr),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=ll(s)&&!jp(s),this.instance=s;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let d,u=0;const h=()=>this.root.updateBlockedByResize=!1;ee.read(()=>{u=window.innerWidth}),e(s,()=>{const f=window.innerWidth;f!==u&&(u=f,this.root.updateBlockedByResize=!0,d&&d(),d=Rm(h,250),ir.hasAnimatedSinceResize&&(ir.hasAnimatedSinceResize=!1,this.nodes.forEach(ac)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u,hasRelativeLayoutChanged:h,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||eg,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=c.getProps(),v=!this.targetLayout||!ql(this.targetLayout,f),T=!u&&h;if(this.options.layoutRoot||this.resumeFrom||T||u&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...Mo(m,"layout"),onPlay:y,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(d,T)}else u||ac(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),et(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(Xm),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&rc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const u=this.path[d];u.shouldResetTransform=!0,u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ic);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(sc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Km),this.nodes.forEach(Hm),this.nodes.forEach(jm)):this.nodes.forEach(sc),this.clearAllSnapshots();const a=ve.now();ue.delta=Oe(0,1e3/60,a-ue.timestamp),ue.timestamp=a,ue.isProcessing=!0,to.update.process(ue),to.preRender.process(ue),to.render.process(ue),ue.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,No.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Wm),this.sharedNodes.forEach(Zm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ee.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ee.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!we(this.snapshot.measuredBox.x)&&!we(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ae(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Wl(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;s&&this.instance&&(a||St(this.latestValues)||d)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),tg(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return ae();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ng))){const{scroll:c}=this.root;c&&(Ut(a.x,c.offset.x),Ut(a.y,c.offset.y))}return a}removeElementScroll(s){const a=ae();if(Ie(a,s),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:u}=c;c!==this.root&&d&&u.layoutScroll&&(d.wasRoot&&Ie(a,s),Ut(a.x,d.offset.x),Ut(a.y,d.offset.y))}return a}applyTransform(s,a=!1){const l=ae();Ie(l,s);for(let c=0;c<this.path.length;c++){const d=this.path[c];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Wt(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),St(d.latestValues)&&Wt(l,d.latestValues)}return St(this.latestValues)&&Wt(l,this.latestValues),l}removeTransform(s){const a=ae();Ie(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!St(c.latestValues))continue;Uo(c.latestValues)&&c.updateSnapshot();const d=ae(),u=c.measurePageBox();Ie(d,u),Hl(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return St(this.latestValues)&&Hl(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ue.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:u}=this.options;if(!this.layout||!(d||u))return;this.resolvedRelativeTargetAt=ue.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ae(),this.targetWithTransforms=ae()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),km(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ie(this.target,this.layout.layoutBox),bl(this.target,this.targetDelta)):Ie(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Uo(this.parent.latestValues)||yl(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,a,l){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ae(),this.relativeTargetOrigin=ae(),rr(this.relativeTargetOrigin,a,l),Ie(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===ue.timestamp&&(l=!1),l)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;Ie(this.layoutCorrected,this.layout.layoutBox);const u=this.treeScale.x,h=this.treeScale.y;em(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ae());const{target:f}=s;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Gl(this.prevProjectionDelta.x,this.projectionDelta.x),Gl(this.prevProjectionDelta.y,this.projectionDelta.y)),pn(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==u||this.treeScale.y!==h||!Zl(this.projectionDelta.x,this.prevProjectionDelta.x)||!Zl(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Gt(),this.projectionDelta=Gt(),this.projectionDeltaWithTransform=Gt()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},u=Gt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ae(),f=l?l.source:void 0,m=this.layout?this.layout.source:void 0,y=f!==m,x=this.getStack(),v=!x||x.members.length<=1,T=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(Qm));this.animationProgress=0;let w;this.mixTargetDelta=M=>{const b=M/1e3;lc(u.x,s.x,b),lc(u.y,s.y,b),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rr(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Jm(this.relativeTarget,this.relativeTargetOrigin,h,b),w&&Mm(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=ae()),Ie(w,this.relativeTarget)),y&&(this.animationValues=d,Vm(d,c,this.latestValues,b,T,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(et(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ee.update(()=>{ir.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ht(0)),this.currentAnimation=Lm(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Bm),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:d}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&hc(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||ae();const u=we(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+u;const h=we(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}Ie(a,l),Wt(a,d),pn(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Om),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Zo("z",s,c,this.animationValues);for(let d=0;d<Xo.length;d++)Zo(`rotate${Xo[d]}`,s,c,this.animationValues),Zo(`skew${Xo[d]}`,s,c,this.animationValues);s.render();for(const d in c)s.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=or(a?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=or(a?.pointerEvents)||""),this.hasProjected&&!St(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let u=Am(this.projectionDeltaWithTransform,this.treeScale,d);l&&(u=l(d,u)),s.transform=u;const{x:h,y:f}=this.projectionDelta;s.transformOrigin=`${h.origin*100}% ${f.origin*100}% 0`,c.animationValues?s.opacity=c===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const m in Yo){if(d[m]===void 0)continue;const{correct:y,applyTo:x,isCSSVariable:v}=Yo[m],T=u==="none"?d[m]:y(d[m],c);if(x){const w=x.length;for(let M=0;M<w;M++)s[x[M]]=T}else v?this.options.visualElement.renderState.vars[m]=T:s[m]=T}this.options.layoutId&&(s.pointerEvents=c===this?or(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(ic),this.root.sharedNodes.clear()}}}function Hm(e){e.updateLayout()}function jm(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;o==="size"?Me(d=>{const u=i?t.measuredBox[d]:t.layoutBox[d],h=we(u);u.min=n[d].min,u.max=u.min+h}):hc(o,t.layoutBox,n)&&Me(d=>{const u=i?t.measuredBox[d]:t.layoutBox[d],h=we(n[d]);u.max=u.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const s=Gt();pn(s,n,t.layoutBox);const a=Gt();i?pn(a,e.applyTransform(r,!0),t.measuredBox):pn(a,n,t.layoutBox);const l=!Wl(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:u,layout:h}=d;if(u&&h){const f=ae();rr(f,t.layoutBox,u.layoutBox);const m=ae();rr(m,n,h.layoutBox),ql(f,m)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=f,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Gm(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 Um(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Wm(e){e.clearSnapshot()}function ic(e){e.clearMeasurements()}function sc(e){e.isLayoutDirty=!1}function Km(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ac(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ym(e){e.resolveTargetDelta()}function qm(e){e.calcProjection()}function Xm(e){e.resetSkewAndRotation()}function Zm(e){e.removeLeadSnapshot()}function lc(e,t,n){e.translate=ne(t.translate,0,n),e.scale=ne(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function cc(e,t,n,r){e.min=ne(t.min,n.min,r),e.max=ne(t.max,n.max,r)}function Jm(e,t,n,r){cc(e.x,t.x,n.x,r),cc(e.y,t.y,n.y,r)}function Qm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const eg={duration:.45,ease:[.4,0,.1,1]},uc=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),dc=uc("applewebkit/")&&!uc("chrome/")?Math.round:$e;function fc(e){e.min=dc(e.min),e.max=dc(e.max)}function tg(e){fc(e.x),fc(e.y)}function hc(e,t,n){return e==="position"||e==="preserve-aspect"&&!Tm(Xl(t),Xl(n),.2)}function ng(e){return e!==e.root&&e.scroll?.wasRoot}const rg=oc({attachResizeListener:(e,t)=>mn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Jo={current:void 0},pc=oc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Jo.current){const e=new rg({});e.mount(window),e.setOptions({layoutScroll:!0}),Jo.current=e}return Jo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Qo=p.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function mc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function og(...e){return t=>{let n=!1;const r=e.map(o=>{const i=mc(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():mc(e[o],null)}}}}function ig(...e){return ft.useCallback(og(...e),e)}class sg extends ft.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=el(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function ag({children:e,isPresent:t,anchorX:n,root:r}){const o=p.useId(),i=p.useRef(null),s=p.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=p.useContext(Qo),l=e.props?.ref??e?.ref,c=ig(i,l);return p.useInsertionEffect(()=>{const{width:d,height:u,top:h,left:f,right:m}=s.current;if(t||!i.current||!d||!u)return;const y=n==="left"?`left: ${f}`:`right: ${m}`;i.current.dataset.motionPopId=o;const x=document.createElement("style");a&&(x.nonce=a);const v=r??document.head;return v.appendChild(x),x.sheet&&x.sheet.insertRule(`
|
|
227
227
|
[data-motion-pop-id="${o}"] {
|
|
228
228
|
position: absolute !important;
|
|
229
229
|
width: ${d}px !important;
|
|
230
230
|
height: ${u}px !important;
|
|
231
|
-
${
|
|
232
|
-
top: ${
|
|
231
|
+
${y}px !important;
|
|
232
|
+
top: ${h}px !important;
|
|
233
233
|
}
|
|
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`
|
|
234
|
+
`),()=>{v.contains(x)&&v.removeChild(x)}},[t]),g.jsx(sg,{isPresent:t,childRef:i,sizeRef:s,children:ft.cloneElement(e,{ref:c})})}const lg=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:l})=>{const c=Wr(cg),d=p.useId();let u=!0,h=p.useMemo(()=>(u=!1,{id:d,initial:t,isPresent:n,custom:o,onExitComplete:f=>{c.set(f,!0);for(const m of c.values())if(!m)return;r&&r()},register:f=>(c.set(f,!1),()=>c.delete(f))}),[n,c,r]);return i&&u&&(h={...h}),p.useMemo(()=>{c.forEach((f,m)=>c.set(m,!1))},[n]),ft.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),s==="popLayout"&&(e=g.jsx(ag,{isPresent:n,anchorX:a,root:l,children:e})),g.jsx(Un.Provider,{value:h,children:e})};function cg(){return new Map}function gc(e=!0){const t=p.useContext(Un);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=p.useId();p.useEffect(()=>{if(e)return o(i)},[e]);const s=p.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const sr=e=>e.key||"";function yc(e){const t=[];return p.Children.forEach(e,n=>{p.isValidElement(n)&&t.push(n)}),t}const gn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[c,d]=gc(s),u=p.useMemo(()=>yc(e),[e]),h=s&&!c?[]:u.map(sr),f=p.useRef(!0),m=p.useRef(u),y=Wr(()=>new Map),x=p.useRef(new Set),[v,T]=p.useState(u),[w,M]=p.useState(u);Gs(()=>{f.current=!1,m.current=u;for(let k=0;k<w.length;k++){const E=sr(w[k]);h.includes(E)?(y.delete(E),x.current.delete(E)):y.get(E)!==!0&&y.set(E,!1)}},[w,h.length,h.join("-")]);const b=[];if(u!==v){let k=[...u];for(let E=0;E<w.length;E++){const D=w[E],A=sr(D);h.includes(A)||(k.splice(E,0,D),b.push(D))}return i==="wait"&&b.length&&(k=b),M(yc(k)),T(u),null}process.env.NODE_ENV!=="production"&&i==="wait"&&w.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.useContext(Ur);return g.jsx(g.Fragment,{children:w.map(k=>{const E=sr(k),D=s&&!c?!1:u===w||h.includes(E),A=()=>{if(x.current.has(E))return;if(x.current.add(E),y.has(E))y.set(E,!0);else return;let I=!0;y.forEach(N=>{N||(I=!1)}),I&&($?.(),M(m.current),s&&d?.(),r&&r())};return g.jsx(lg,{isPresent:D,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:D?void 0:A,anchorX:a,children:k},E)})})},vc=p.createContext({strict:!1}),wc={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"]};let bc=!1;function ug(){if(bc)return;const e={};for(const t in wc)e[t]={isEnabled:n=>wc[t].some(r=>!!n[r])};pl(e),bc=!0}function xc(){return ug(),Xp()}function dg(e){const t=xc();for(const n in e)t[n]={...t[n],...e[n]};pl(t)}const fg=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 ar(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||fg.has(e)}let Sc=e=>!ar(e);function hg(e){typeof e=="function"&&(Sc=t=>t.startsWith("on")?!ar(t):e(t))}try{hg(require("@emotion/is-prop-valid").default)}catch{}function pg(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Sc(o)||n===!0&&ar(o)||!t&&!ar(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const lr=p.createContext({});function mg(e,t){if(er(e)){const{initial:n,animate:r}=e;return{initial:n===!1||fn(n)?n:void 0,animate:fn(r)?r:void 0}}return e.inherit!==!1?t:{}}function gg(e){const{initial:t,animate:n}=mg(e,p.useContext(lr));return p.useMemo(()=>({initial:t,animate:n}),[Cc(t),Cc(n)])}function Cc(e){return Array.isArray(e)?e.join(" "):e}const ei=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Tc(e,t,n){for(const r in t)!he(t[r])&&!$l(r,n)&&(e[r]=t[r])}function yg({transformTemplate:e},t){return p.useMemo(()=>{const n=ei();return Ko(n,t,e),Object.assign({},n.vars,n.style)},[t])}function vg(e,t){const n=e.style||{},r={};return Tc(r,n,e),Object.assign(r,yg(e,t)),r}function wg(e,t){const n={},r=vg(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 kc=()=>({...ei(),attrs:{}});function bg(e,t,n,r){const o=p.useMemo(()=>{const i=kc();return El(i,t,Al(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Tc(i,e.style,e),o.style={...i,...o.style}}return o}const xg=["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 ti(e){return typeof e!="string"||e.includes("-")?!1:!!(xg.indexOf(e)>-1||/[A-Z]/u.test(e))}function Sg(e,t,n,{latestValues:r},o,i=!1,s){const l=(s??ti(e)?bg:wg)(t,r,o,e),c=pg(t,typeof e=="string",i),d=e!==p.Fragment?{...c,...l,ref:n}:{},{children:u}=t,h=p.useMemo(()=>he(u)?u.get():u,[u]);return p.createElement(e,{...d,children:h})}function Cg({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Tg(n,r,o,e),renderState:t()}}function Tg(e,t,n,r){const o={},i=r(e,{});for(const h in i)o[h]=or(i[h]);let{initial:s,animate:a}=e;const l=er(e),c=fl(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const u=d?a:s;if(u&&typeof u!="boolean"&&!Qn(u)){const h=Array.isArray(u)?u:[u];for(let f=0;f<h.length;f++){const m=Do(e,h[f]);if(m){const{transitionEnd:y,transition:x,...v}=m;for(const T in v){let w=v[T];if(Array.isArray(w)){const M=d?w.length-1:0;w=w[M]}w!==null&&(o[T]=w)}for(const T in y)o[T]=y[T]}}}return o}const Pc=e=>(t,n)=>{const r=p.useContext(lr),o=p.useContext(Un),i=()=>Cg(e,t,r,o);return n?i():Wr(i)},kg=Pc({scrapeMotionValuesFromProps:qo,createRenderState:ei}),Pg=Pc({scrapeMotionValuesFromProps:Dl,createRenderState:kc}),$g=Symbol.for("motionComponentSymbol");function Eg(e,t,n){const r=p.useRef(n);p.useInsertionEffect(()=>{r.current=n});const o=p.useRef(null);return p.useCallback(i=>{i&&e.onMount?.(i),t&&(i?t.mount(i):t.unmount());const s=r.current;if(typeof s=="function")if(i){const a=s(i);typeof a=="function"&&(o.current=a)}else o.current?(o.current(),o.current=null):s(i);else s&&(s.current=i)},[t])}const $c=p.createContext({});function yn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Mg(e,t,n,r,o,i){const{visualElement:s}=p.useContext(lr),a=p.useContext(vc),l=p.useContext(Un),c=p.useContext(Qo).reducedMotion,d=p.useRef(null);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,isSVG:i}));const u=d.current,h=p.useContext($c);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&Ag(d.current,n,o,h);const f=p.useRef(!1);p.useInsertionEffect(()=>{u&&f.current&&u.update(n,l)});const m=n[Ga],y=p.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return Gs(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),y.current&&u.animationState&&u.animationState.animateChanges())}),p.useEffect(()=>{u&&(!y.current&&u.animationState&&u.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),y.current=!1),u.enteringChildren=void 0)}),u}function Ag(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ec(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&yn(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c})}function Ec(e){if(e)return e.options.allowProjection!==!1?e.projection:Ec(e.parent)}function ni(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&dg(r);const i=n?n==="svg":ti(e),s=i?Pg:kg;function a(c,d){let u;const h={...p.useContext(Qo),...c,layoutId:Dg(c)},{isStatic:f}=h,m=gg(c),y=s(c,f);if(!f&&js){Vg(h,r);const x=Fg(h);u=x.MeasureLayout,m.visualElement=Mg(e,y,h,o,x.ProjectionNode,i)}return g.jsxs(lr.Provider,{value:m,children:[u&&m.visualElement?g.jsx(u,{visualElement:m.visualElement,...h}):null,Sg(e,c,Eg(y,m.visualElement,d),y,f,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=p.forwardRef(a);return l[$g]=e,l}function Dg({layoutId:e}){const t=p.useContext(Ur).id;return t&&e!==void 0?t+"-"+e:e}function Vg(e,t){const n=p.useContext(vc).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?Lt(!1,r,"lazy-strict-mode"):Ue(!1,r,"lazy-strict-mode")}}function Fg(e){const t=xc(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function Ig(e,t){if(typeof Proxy>"u")return ni;const n=new Map,r=(i,s)=>ni(i,s,e,t),o=(i,s)=>(process.env.NODE_ENV!=="production"&&Jr(!1,"motion() is deprecated. Use motion.create() instead."),r(i,s));return new Proxy(o,{get:(i,s)=>s==="create"?r:(n.has(s)||n.set(s,ni(s,void 0,e,t)),n.get(s))})}const Rg=(e,t)=>t.isSVG??ti(e)?new hm(t):new am(t,{allowProjection:e!==p.Fragment});class Lg extends ot{constructor(t){super(t),t.animationState||(t.animationState=vm(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Qn(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 _g=0;class Ng extends ot{constructor(){super(...arguments),this.id=_g++}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 Og={animation:{Feature:Lg},exit:{Feature:Ng}};function vn(e){return{point:{x:e.pageX,y:e.pageY}}}const Bg=e=>t=>Oo(t)&&e(t,vn(t));function wn(e,t,n,r){return mn(e,t,Bg(n),r)}const Mc=({current:e})=>e?e.ownerDocument.defaultView:null,Ac=(e,t)=>Math.abs(e-t);function zg(e,t){const n=Ac(e.x,t.x),r=Ac(e.y,t.y);return Math.sqrt(n**2+r**2)}const Dc=new Set(["auto","scroll"]);class Vc{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=f=>{this.handleScroll(f.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=oi(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,y=zg(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!y)return;const{point:x}=f,{timestamp:v}=ue;this.history.push({...x,timestamp:v});const{onStart:T,onMove:w}=this.handlers;m||(T&&T(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=ri(m,this.transformPagePoint),ee.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:y,onSessionEnd:x,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=oi(f.type==="pointercancel"?this.lastMoveEventInfo:ri(m,this.transformPagePoint),this.history);this.startEvent&&y&&y(f,T),x&&x(f,T)},!Oo(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const l=vn(t),c=ri(l,this.transformPagePoint),{point:d}=c,{timestamp:u}=ue;this.history=[{...d,timestamp:u}];const{onSessionStart:h}=n;h&&h(t,oi(c,this.history)),this.removeListeners=rn(wn(this.contextWindow,"pointermove",this.handlePointerMove),wn(this.contextWindow,"pointerup",this.handlePointerUp),wn(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Dc.has(r.overflowX)||Dc.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:o.x-n.x,y:o.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,o),ee.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),et(this.updatePoint)}}function ri(e,t){return t?{point:t(e.point)}:e}function Fc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function oi({point:e},t){return{point:e,delta:Fc(e,Ic(t)),offset:Fc(e,Hg(t)),velocity:jg(t,.1)}}function Hg(e){return e[0]}function Ic(e){return e[e.length-1]}function jg(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Ic(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Be(t)));)n--;if(!r)return{x:0,y:0};const i=Ee(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Gg(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ne(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ne(n,e,r.max):Math.min(e,n)),e}function Rc(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 Ug(e,{top:t,left:n,bottom:r,right:o}){return{x:Rc(e.x,n,o),y:Rc(e.y,t,r)}}function Lc(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 Wg(e,t){return{x:Lc(e.x,t.x),y:Lc(e.y,t.y)}}function Kg(e,t){let n=.5;const r=we(e),o=we(t);return o>r?n=on(t.min,t.max-r,e.min):r>o&&(n=on(e.min,e.max-o,t.min)),Oe(0,1,n)}function Yg(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 ii=.35;function qg(e=ii){return e===!1?e=0:e===!0&&(e=ii),{x:_c(e,"left","right"),y:_c(e,"top","bottom")}}function _c(e,t,n){return{min:Nc(e,t),max:Nc(e,n)}}function Nc(e,t){return typeof e=="number"?e:e[t]||0}const Xg=new WeakMap;class Zg{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=ae(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=u=>{n?(this.stopAnimation(),this.snapToCursor(vn(u).point)):this.pauseAnimation()},s=(u,h)=>{this.stopAnimation();const{drag:f,dragPropagation:m,onDragStart:y}=this.getProps();if(f&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Np(f),!this.openDragLock))return;this.latestPointerEvent=u,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),Me(v=>{let T=this.getAxisMotionValue(v).get()||0;if(ze.test(T)){const{projection:w}=this.visualElement;if(w&&w.layout){const M=w.layout.layoutBox[v];M&&(T=we(M)*(parseFloat(T)/100))}}this.originPoint[v]=T}),y&&ee.postRender(()=>y(u,h)),Fo(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(u,h)=>{this.latestPointerEvent=u,this.latestPanInfo=h;const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:y,onDrag:x}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:v}=h;if(m&&this.currentDirection===null){this.currentDirection=Jg(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,v),this.updateAxis("y",h.point,v),this.visualElement.render(),x&&x(u,h)},l=(u,h)=>{this.latestPointerEvent=u,this.latestPanInfo=h,this.stop(u,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>Me(u=>this.getAnimationState(u)==="paused"&&this.getAxisMotionValue(u).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Vc(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:Mc(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&ee.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||!cr(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Gg(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&yn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Ug(r.layoutBox,t):this.constraints=!1,this.elastic=qg(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Me(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=Yg(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!yn(t))return!1;const r=t.current;Ue(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=tm(r,o.root,this.visualElement.getTransformPagePoint());let s=Wg(o.layout.layoutBox,i);if(n){const a=n(Jp(s));this.hasMutatedConstraints=!!a,a&&(s=gl(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Me(d=>{if(!cr(d,n,this.currentDirection))return;let u=l&&l[d]||{};s&&(u={min:0,max:0});const h=o?200:1e6,f=o?40:1e7,m={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(d,m)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Fo(this.visualElement,t),r.start(Ao(t,r,0,n,this.visualElement,!1))}stopAnimation(){Me(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Me(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){Me(n=>{const{drag:r}=this.getProps();if(!cr(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n],l=i.get()||0;i.set(t[n]-ne(s,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!yn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Me(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=Kg({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Me(s=>{if(!cr(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(ne(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;Xg.set(this.visualElement,this);const t=this.visualElement.current,n=wn(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&!il(l.target)&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();yn(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ee.read(r);const s=mn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Me(d=>{const u=this.getAxisMotionValue(d);u&&(this.originPoint[d]+=l[d].translate,u.set(u.get()+l[d].translate))}),this.visualElement.render())}));return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=ii,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function cr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Jg(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Qg extends ot{constructor(t){super(t),this.removeGroupControls=$e,this.removeListeners=$e,this.controls=new Zg(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$e}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const Oc=e=>(t,n)=>{e&&ee.postRender(()=>e(t,n))};class e0 extends ot{constructor(){super(...arguments),this.removePointerDownListener=$e}onPointerDown(t){this.session=new Vc(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Mc(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Oc(t),onStart:Oc(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&ee.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=wn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let si=!1;class t0 extends p.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),si&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),ir.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,si=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||ee.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),No.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;si=!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 Bc(e){const[t,n]=gc(),r=p.useContext(Ur);return g.jsx(t0,{...e,layoutGroup:r,switchLayoutGroup:p.useContext($c),isPresent:t,safeToRemove:n})}const n0={pan:{Feature:e0},drag:{Feature:Qg,ProjectionNode:pc,MeasureLayout:Bc}};function zc(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&ee.postRender(()=>i(t,vn(t)))}class r0 extends ot{mount(){const{current:t}=this.node;t&&(this.unmount=Op(t,(n,r)=>(zc(this.node,r,"Start"),o=>zc(this.node,o,"End"))))}unmount(){}}class o0 extends ot{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=rn(mn(this.node.current,"focus",()=>this.onFocus()),mn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Hc(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&ee.postRender(()=>i(t,vn(t)))}class i0 extends ot{mount(){const{current:t}=this.node;t&&(this.unmount=Hp(t,(n,r)=>(Hc(this.node,r,"Start"),(o,{success:i})=>Hc(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ai=new WeakMap,li=new WeakMap,s0=e=>{const t=ai.get(e.target);t&&t(e)},a0=e=>{e.forEach(s0)};function l0({root:e,...t}){const n=e||document;li.has(n)||li.set(n,{});const r=li.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(a0,{root:e,...t})),r[o]}function c0(e,t,n){const r=l0(t);return ai.set(e,n),r.observe(e),()=>{ai.delete(e),r.unobserve(e)}}const u0={some:0,all:1};class d0 extends ot{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:u0[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:u}=this.node.getProps(),h=c?d:u;h&&h(l)};return c0(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(f0(t,n))&&this.startObserver()}unmount(){}}function f0({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const h0={...Og,...{inView:{Feature:d0},tap:{Feature:i0},focus:{Feature:o0},hover:{Feature:r0}},...n0,...{layout:{ProjectionNode:pc,MeasureLayout:Bc}}},Ke=Ig(h0,Rg),p0={sm:S`
|
|
235
235
|
width: 1.25rem;
|
|
236
236
|
height: 1.25rem;
|
|
237
|
-
`,md:
|
|
237
|
+
`,md:S`
|
|
238
238
|
width: 1.75rem;
|
|
239
239
|
height: 1.75rem;
|
|
240
|
-
`,lg:
|
|
240
|
+
`,lg:S`
|
|
241
241
|
width: 3rem;
|
|
242
242
|
height: 3rem;
|
|
243
|
-
`,xl:
|
|
243
|
+
`,xl:S`
|
|
244
244
|
width: 4rem;
|
|
245
245
|
height: 4rem;
|
|
246
|
-
`},
|
|
246
|
+
`},jc={primary:S`
|
|
247
247
|
color: var(--color-main-blue-primary);
|
|
248
|
-
`,orange:
|
|
248
|
+
`,orange:S`
|
|
249
249
|
color: var(--color-main-orange-primary);
|
|
250
|
-
`,white:
|
|
250
|
+
`,white:S`
|
|
251
251
|
color: var(--color-main-white);
|
|
252
|
-
`,gray:
|
|
252
|
+
`,gray:S`
|
|
253
253
|
color: var(--color-main-grey);
|
|
254
|
-
`},
|
|
254
|
+
`},m0=P.div`
|
|
255
255
|
position: relative;
|
|
256
256
|
display: block;
|
|
257
|
-
${({$size:e="md"})=>
|
|
258
|
-
${({$color:e="primary"})=>
|
|
257
|
+
${({$size:e="md"})=>p0[e]}
|
|
258
|
+
${({$color:e="primary"})=>jc[e]}
|
|
259
259
|
user-select: none;
|
|
260
|
-
`,
|
|
260
|
+
`,g0=P.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
|
-
`,
|
|
266
|
+
`,y0=P.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
|
-
`,
|
|
273
|
-
${
|
|
274
|
-
${({$color:e="primary"})=>
|
|
272
|
+
`,v0=P(Ke.p)`
|
|
273
|
+
${F[16]}
|
|
274
|
+
${({$color:e="primary"})=>jc[e]}
|
|
275
275
|
margin: 0;
|
|
276
|
-
`,
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
276
|
+
`,w0=({variant:e,title:t})=>g.jsxs(Ke.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:e==="rotate"?{rotate:[0,360]}:{scale:[1,.7,1]},transition:e==="rotate"?{repeat:1/0,duration:2,ease:"linear"}:{repeat:1/0,duration:2,ease:"easeInOut"},children:[g.jsx("g",{transform:"scale(0.15) translate(-10, -1)",children:g.jsx("path",{fill:"currentColor",d:`M67.251411,286.749390
|
|
277
|
+
C42.999393,262.534088 27.711603,233.886490 21.140957,200.638245
|
|
278
|
+
C20.527918,197.536194 19.462318,196.344513 16.327942,196.535400
|
|
279
|
+
C12.711285,196.755646 9.070918,196.586609 4.251685,196.586609
|
|
280
|
+
C19.322153,168.738571 33.952221,141.704315 49.116634,113.682678
|
|
281
|
+
C64.235954,141.612656 78.833565,168.578873 93.908447,196.426758
|
|
282
|
+
C87.866776,196.426758 82.658516,196.426758 77.325577,196.426758
|
|
283
|
+
C85.232460,234.921478 123.925285,277.225311 178.933075,279.192719
|
|
284
|
+
C235.221680,281.205994 283.208466,242.542862 292.799011,187.509933
|
|
285
|
+
C302.126556,133.986282 269.828094,80.603485 218.135574,63.877277
|
|
286
|
+
C164.703934,46.588337 104.072327,71.370583 80.391907,129.314926
|
|
287
|
+
C72.897575,118.331955 65.656891,107.720695 58.038605,96.556068
|
|
288
|
+
C47.621204,103.552185 37.297256,110.485535 26.973309,117.418884
|
|
289
|
+
C46.211082,62.712753 82.779099,25.932369 138.202881,9.672956
|
|
290
|
+
C231.681030,-17.750278 329.482361,42.974667 346.823608,138.519577
|
|
291
|
+
C363.551025,230.682480 301.903687,318.479523 209.509521,332.564972
|
|
292
|
+
C155.049683,340.867371 107.495514,325.072021 67.251411,286.749390
|
|
293
|
+
z`})}),t&&g.jsx("title",{children:t})]}),ur=({size:e="md",color:t="primary",centered:n=!0,message:r,title:o,variant:i="rotate"})=>{const s=g.jsxs(g0,{children:[g.jsx(m0,{$size:e,$color:t,$variant:i,children:g.jsx(w0,{variant:i,title:o})}),r&&g.jsx(v0,{$color:t,animate:{opacity:[1,.5,1]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},children:r})]});return n?g.jsx(y0,{children:s}):s},b0=P.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
|
-
`,
|
|
302
|
+
`,x0=P.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,18 +310,18 @@ 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
|
-
`,
|
|
314
|
-
${
|
|
313
|
+
`,S0=P.h2`
|
|
314
|
+
${Gr[30]}
|
|
315
315
|
color: var(--color-main-blue-primary);
|
|
316
316
|
margin: 0 auto;
|
|
317
317
|
text-align: center;
|
|
318
|
-
`,
|
|
318
|
+
`,C0=({message:e="Loading...",color:t="primary",variant:n="rotate"})=>g.jsx(b0,{role:"status","aria-live":"polite",children:g.jsxs(x0,{children:[g.jsx(ur,{size:"xl",color:t,centered:!1,title:e,variant:n}),g.jsx(S0,{children:e})]})}),T0=P.div`
|
|
319
319
|
display: flex;
|
|
320
320
|
flex-direction: column;
|
|
321
321
|
align-items: center;
|
|
322
322
|
justify-content: center;
|
|
323
323
|
padding: 3rem 1rem;
|
|
324
|
-
`,
|
|
324
|
+
`,Gc=({message:e,color:t="primary",variant:n="rotate"})=>g.jsx(T0,{role:"status","aria-live":"polite",children:g.jsx(ur,{size:"lg",color:t,centered:!1,message:e,title:e,variant:n})}),k0={primary:S`
|
|
325
325
|
background-color: var(--color-main-blue-primary);
|
|
326
326
|
color: var(--color-main-white);
|
|
327
327
|
|
|
@@ -336,7 +336,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
336
336
|
&:focus-visible {
|
|
337
337
|
outline-color: var(--color-main-blue-primary);
|
|
338
338
|
}
|
|
339
|
-
`,secondary:
|
|
339
|
+
`,secondary:S`
|
|
340
340
|
background-color: var(--color-main-orange-primary);
|
|
341
341
|
color: var(--color-main-white);
|
|
342
342
|
|
|
@@ -348,7 +348,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
348
348
|
&:focus-visible {
|
|
349
349
|
outline-color: var(--color-main-orange-primary);
|
|
350
350
|
}
|
|
351
|
-
`,cancel:
|
|
351
|
+
`,cancel:S`
|
|
352
352
|
background-color: var(--color-main-warning-state);
|
|
353
353
|
color: var(--color-main-white);
|
|
354
354
|
|
|
@@ -360,7 +360,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
360
360
|
&:focus-visible {
|
|
361
361
|
outline-color: var(--color-main-warning-state);
|
|
362
362
|
}
|
|
363
|
-
`,outline:
|
|
363
|
+
`,outline:S`
|
|
364
364
|
background-color: transparent;
|
|
365
365
|
color: var(--color-main-blue-primary);
|
|
366
366
|
border: 2px solid var(--color-main-blue-primary);
|
|
@@ -376,24 +376,29 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
376
376
|
&:focus-visible {
|
|
377
377
|
outline-color: var(--color-main-blue-primary);
|
|
378
378
|
}
|
|
379
|
-
|
|
379
|
+
|
|
380
|
+
&:disabled {
|
|
381
|
+
border-color: var(--color-dark-200);
|
|
382
|
+
background-color: transparent;
|
|
383
|
+
}
|
|
384
|
+
`},P0=S`
|
|
380
385
|
background-color: var(--color-main-grey);
|
|
381
386
|
color: var(--color-dark-200);
|
|
382
387
|
cursor: not-allowed;
|
|
383
388
|
box-shadow: none;
|
|
384
|
-
|
|
389
|
+
`,$0={sm:S`
|
|
385
390
|
padding: 0.375rem 0.75rem;
|
|
386
391
|
min-height: 2.75rem;
|
|
387
|
-
${
|
|
388
|
-
`,md:
|
|
392
|
+
${F[12]}
|
|
393
|
+
`,md:S`
|
|
389
394
|
padding: 0.625rem 1.25rem;
|
|
390
395
|
min-height: 3.175rem;
|
|
391
|
-
${
|
|
392
|
-
`,lg:
|
|
396
|
+
${F[16]}
|
|
397
|
+
`,lg:S`
|
|
393
398
|
padding: 0.75rem 1.5rem;
|
|
394
399
|
min-height: 3.5rem;
|
|
395
|
-
${
|
|
396
|
-
`},
|
|
400
|
+
${F[20]}
|
|
401
|
+
`},E0=P.button`
|
|
397
402
|
border: none;
|
|
398
403
|
border-radius: var(--border-radius-button);
|
|
399
404
|
transition:
|
|
@@ -408,43 +413,43 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
408
413
|
outline: 2px solid transparent;
|
|
409
414
|
outline-offset: 2px;
|
|
410
415
|
|
|
411
|
-
${({$variant:e})=>
|
|
412
|
-
${({$size:e})
|
|
416
|
+
${({$variant:e})=>k0[e]}
|
|
417
|
+
${({$size:e})=>$0[e]}
|
|
413
418
|
|
|
414
419
|
&:disabled {
|
|
415
|
-
${
|
|
420
|
+
${P0}
|
|
416
421
|
}
|
|
417
|
-
`,
|
|
418
|
-
padding: 0.
|
|
422
|
+
`,Kt=({children:e,variant:t="primary",size:n="md",isLoading:r,disabled:o,leftIcon:i,rightIcon:s,iconSize:a="md",iconColor:l="currentColor",...c})=>g.jsxs(E0,{$variant:t,$size:n,disabled:o||r,"aria-busy":r,...c,children:[i&&g.jsx(Y,{color:l,size:a,component:i}),r?"Loading...":e,s&&g.jsx(Y,{color:l,size:a,component:s})]}),M0={sm:S`
|
|
423
|
+
padding: 0.25rem 0.625rem;
|
|
419
424
|
border-radius: var(--border-radius-button);
|
|
420
|
-
${
|
|
421
|
-
`,md:
|
|
425
|
+
${F[12]}
|
|
426
|
+
`,md:S`
|
|
422
427
|
padding: 0.375rem 0.75rem;
|
|
423
428
|
border-radius: var(--border-radius-button);
|
|
424
|
-
${
|
|
425
|
-
`,lg:
|
|
429
|
+
${F[14]}
|
|
430
|
+
`,lg:S`
|
|
426
431
|
padding: 0.5rem 1rem;
|
|
427
432
|
border-radius: var(--border-radius-button);
|
|
428
|
-
${
|
|
429
|
-
`},
|
|
433
|
+
${F[16]}
|
|
434
|
+
`},A0={primary:S`
|
|
430
435
|
background-color: var(--color-main-blue-primary);
|
|
431
436
|
color: var(--color-main-white);
|
|
432
|
-
`,secondary:
|
|
437
|
+
`,secondary:S`
|
|
433
438
|
background-color: var(--color-main-orange-primary);
|
|
434
439
|
color: var(--color-main-white);
|
|
435
|
-
`,success:
|
|
440
|
+
`,success:S`
|
|
436
441
|
background-color: var(--color-main-positive-state);
|
|
437
442
|
color: var(--color-main-white);
|
|
438
|
-
`,warning:
|
|
443
|
+
`,warning:S`
|
|
439
444
|
background-color: var(--color-main-yellow-primary);
|
|
440
445
|
color: var(--color-main-black);
|
|
441
|
-
`,danger:
|
|
446
|
+
`,danger:S`
|
|
442
447
|
background-color: var(--color-main-warning-state);
|
|
443
448
|
color: var(--color-main-white);
|
|
444
|
-
`,neutral:
|
|
449
|
+
`,neutral:S`
|
|
445
450
|
background-color: var(--color-light-200);
|
|
446
451
|
color: var(--color-main-grey);
|
|
447
|
-
`,outline:
|
|
452
|
+
`,outline:S``},D0=P.span`
|
|
448
453
|
display: inline-flex;
|
|
449
454
|
align-items: center;
|
|
450
455
|
gap: 0.375rem;
|
|
@@ -452,15 +457,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
452
457
|
white-space: nowrap;
|
|
453
458
|
user-select: none;
|
|
454
459
|
|
|
455
|
-
${({$size:e})=>
|
|
456
|
-
${({$variant:e})=>
|
|
460
|
+
${({$size:e})=>M0[e]}
|
|
461
|
+
${({$variant:e})=>A0[e]}
|
|
457
462
|
|
|
458
|
-
${({$variant:e,$outlineColor:t})=>e==="outline"?
|
|
463
|
+
${({$variant:e,$outlineColor:t})=>e==="outline"?S`
|
|
459
464
|
background-color: transparent;
|
|
460
465
|
color: ${t||"var(--color-main-blue-primary)"};
|
|
461
466
|
border: 1px solid ${t||"var(--color-main-blue-primary)"};
|
|
462
467
|
`:""}
|
|
463
|
-
`,
|
|
468
|
+
`,V0=({children:e,variant:t="neutral",size:n="md",color:r,leftIcon:o,rightIcon:i,iconColor:s="currentColor",iconSize:a="sm",...l})=>g.jsxs(D0,{$variant:t,$size:n,$outlineColor:r,...l,children:[o&&g.jsx(Y,{color:s,size:a,component:o}),e,i&&g.jsx(Y,{color:s,size:a,component:i})]}),F0=P.div`
|
|
464
469
|
background-color: ${({$color:e})=>e};
|
|
465
470
|
${({$orientation:e,$length:t,$thickness:n})=>e==="horizontal"?`
|
|
466
471
|
height: ${n||"1px"};
|
|
@@ -469,10 +474,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
469
474
|
width: ${n||"1px"};
|
|
470
475
|
height: ${t||"100%"};
|
|
471
476
|
`}
|
|
472
|
-
`,
|
|
473
|
-
${({$size:e})=>
|
|
477
|
+
`,I0=({orientation:e="horizontal",color:t="var(--color-dark-300)",length:n,thickness:r,className:o=""})=>g.jsx(F0,{$orientation:e,$color:t,$length:n,$thickness:r,className:o,role:"separator","aria-orientation":e}),R0=P.span`
|
|
478
|
+
${({$size:e})=>F[e]}
|
|
474
479
|
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: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`
|
|
480
|
+
`,bn=({children:e,size:t=16,color:n,className:r,style:o})=>g.jsx(R0,{$size:t,$color:n,className:r,style:o,children:e});function L0(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 _0=e=>{switch(e){case"success":return B0;case"info":return H0;case"warning":return z0;case"error":return j0;default:return null}},N0=Array(12).fill(0),O0=({visible:e,className:t})=>p.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},p.createElement("div",{className:"sonner-spinner"},N0.map((n,r)=>p.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),B0=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.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"})),z0=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},p.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"})),H0=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.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"})),j0=p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},p.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"})),G0=p.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"},p.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),p.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),U0=()=>{const[e,t]=p.useState(document.hidden);return p.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let ci=1;class W0{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,i=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:ci++,s=this.toasts.find(l=>l.id===i),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...t,id:i,title:r}),{...l,...t,id:i,dismissible:a,title:r}):l):this.addToast({title:r,...o,dismissible:a,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,s;const a=o.then(async c=>{if(s=["resolve",c],p.isValidElement(c))i=!1,this.create({id:r,type:"default",message:c});else if(Y0(c)&&!c.ok){i=!1;const u=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,m=typeof u=="object"&&!p.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:h,...m})}else if(c instanceof Error){i=!1;const u=typeof n.error=="function"?await n.error(c):n.error,h=typeof n.description=="function"?await n.description(c):n.description,m=typeof u=="object"&&!p.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:h,...m})}else if(n.success!==void 0){i=!1;const u=typeof n.success=="function"?await n.success(c):n.success,h=typeof n.description=="function"?await n.description(c):n.description,m=typeof u=="object"&&!p.isValidElement(u)?u:{message:u};this.create({id:r,type:"success",description:h,...m})}}).catch(async c=>{if(s=["reject",c],n.error!==void 0){i=!1;const d=typeof n.error=="function"?await n.error(c):n.error,u=typeof n.description=="function"?await n.description(c):n.description,f=typeof d=="object"&&!p.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:u,...f})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((c,d)=>a.then(()=>s[0]==="reject"?d(s[1]):c(s[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=n?.id||ci++;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 xe=new W0,K0=(e,t)=>{const n=t?.id||ci++;return xe.addToast({title:e,...t,id:n}),n},Y0=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",q0=K0,X0=()=>xe.toasts,Z0=()=>xe.getActiveToasts(),J0=Object.assign(q0,{success:xe.success,info:xe.info,warning:xe.warning,error:xe.error,custom:xe.custom,message:xe.message,promise:xe.promise,dismiss:xe.dismiss,loading:xe.loading},{getHistory:X0,getToasts:Z0});L0("[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 dr(e){return e.label!==void 0}const Q0=3,ey="24px",ty="16px",Uc=4e3,ny=356,ry=14,oy=45,iy=200;function He(...e){return e.filter(Boolean).join(" ")}function sy(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const ay=e=>{var t,n,r,o,i,s,a,l,c;const{invert:d,toast:u,unstyled:h,interacting:f,setHeights:m,visibleToasts:y,heights:x,index:v,toasts:T,expanded:w,removeToast:M,defaultRichColors:b,closeButton:$,style:k,cancelButtonStyle:E,actionButtonStyle:D,className:A="",descriptionClassName:I="",duration:N,position:j,gap:G,expandByDefault:X,classNames:O,icons:R,closeButtonAriaLabel:W="Close toast"}=e,[q,Z]=p.useState(null),[de,le]=p.useState(null),[H,J]=p.useState(!1),[te,me]=p.useState(!1),[qe,K]=p.useState(!1),[Ce,Xe]=p.useState(!1),[Le,ge]=p.useState(!1),[$n,ct]=p.useState(0),[ut,gd]=p.useState(0),En=p.useRef(u.duration||N||Uc),yd=p.useRef(null),Ze=p.useRef(null),$b=v===0,Eb=v+1<=y,Te=u.type,Xt=u.dismissible!==!1,Mb=u.className||"",Ab=u.descriptionClassName||"",Sr=p.useMemo(()=>x.findIndex(B=>B.toastId===u.id)||0,[x,u.id]),Db=p.useMemo(()=>{var B;return(B=u.closeButton)!=null?B:$},[u.closeButton,$]),vd=p.useMemo(()=>u.duration||N||Uc,[u.duration,N]),Xi=p.useRef(0),Zt=p.useRef(0),wd=p.useRef(0),Jt=p.useRef(null),[Vb,Fb]=j.split("-"),bd=p.useMemo(()=>x.reduce((B,ce,ye)=>ye>=Sr?B:B+ce.height,0),[x,Sr]),xd=U0(),Ib=u.invert||d,Zi=Te==="loading";Zt.current=p.useMemo(()=>Sr*G+bd,[Sr,bd]),p.useEffect(()=>{En.current=vd},[vd]),p.useEffect(()=>{J(!0)},[]),p.useEffect(()=>{const B=Ze.current;if(B){const ce=B.getBoundingClientRect().height;return gd(ce),m(ye=>[{toastId:u.id,height:ce,position:u.position},...ye]),()=>m(ye=>ye.filter(ke=>ke.toastId!==u.id))}},[m,u.id]),p.useLayoutEffect(()=>{if(!H)return;const B=Ze.current,ce=B.style.height;B.style.height="auto";const ye=B.getBoundingClientRect().height;B.style.height=ce,gd(ye),m(ke=>ke.find(fe=>fe.toastId===u.id)?ke.map(fe=>fe.toastId===u.id?{...fe,height:ye}:fe):[{toastId:u.id,height:ye,position:u.position},...ke])},[H,u.title,u.description,m,u.id,u.jsx,u.action,u.cancel]);const dt=p.useCallback(()=>{me(!0),ct(Zt.current),m(B=>B.filter(ce=>ce.toastId!==u.id)),setTimeout(()=>{M(u)},iy)},[u,M,m,Zt]);p.useEffect(()=>{if(u.promise&&Te==="loading"||u.duration===1/0||u.type==="loading")return;let B;return w||f||xd?(()=>{if(wd.current<Xi.current){const ke=new Date().getTime()-Xi.current;En.current=En.current-ke}wd.current=new Date().getTime()})():En.current!==1/0&&(Xi.current=new Date().getTime(),B=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),dt()},En.current)),()=>clearTimeout(B)},[w,f,u,Te,xd,dt]),p.useEffect(()=>{u.delete&&(dt(),u.onDismiss==null||u.onDismiss.call(u,u))},[dt,u.delete]);function Rb(){var B;if(R?.loading){var ce;return p.createElement("div",{className:He(O?.loader,u==null||(ce=u.classNames)==null?void 0:ce.loader,"sonner-loader"),"data-visible":Te==="loading"},R.loading)}return p.createElement(O0,{className:He(O?.loader,u==null||(B=u.classNames)==null?void 0:B.loader),visible:Te==="loading"})}const Lb=u.icon||R?.[Te]||_0(Te);var Sd,Cd;return p.createElement("li",{tabIndex:0,ref:Ze,className:He(A,Mb,O?.toast,u==null||(t=u.classNames)==null?void 0:t.toast,O?.default,O?.[Te],u==null||(n=u.classNames)==null?void 0:n[Te]),"data-sonner-toast":"","data-rich-colors":(Sd=u.richColors)!=null?Sd:b,"data-styled":!(u.jsx||u.unstyled||h),"data-mounted":H,"data-promise":!!u.promise,"data-swiped":Le,"data-removed":te,"data-visible":Eb,"data-y-position":Vb,"data-x-position":Fb,"data-index":v,"data-front":$b,"data-swiping":qe,"data-dismissible":Xt,"data-type":Te,"data-invert":Ib,"data-swipe-out":Ce,"data-swipe-direction":de,"data-expanded":!!(w||X&&H),"data-testid":u.testId,style:{"--index":v,"--toasts-before":v,"--z-index":T.length-v,"--offset":`${te?$n:Zt.current}px`,"--initial-height":X?"auto":`${ut}px`,...k,...u.style},onDragEnd:()=>{K(!1),Z(null),Jt.current=null},onPointerDown:B=>{B.button!==2&&(Zi||!Xt||(yd.current=new Date,ct(Zt.current),B.target.setPointerCapture(B.pointerId),B.target.tagName!=="BUTTON"&&(K(!0),Jt.current={x:B.clientX,y:B.clientY})))},onPointerUp:()=>{var B,ce,ye;if(Ce||!Xt)return;Jt.current=null;const ke=Number(((B=Ze.current)==null?void 0:B.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Cr=Number(((ce=Ze.current)==null?void 0:ce.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),fe=new Date().getTime()-((ye=yd.current)==null?void 0:ye.getTime()),Ae=q==="x"?ke:Cr,Tr=Math.abs(Ae)/fe;if(Math.abs(Ae)>=oy||Tr>.11){ct(Zt.current),u.onDismiss==null||u.onDismiss.call(u,u),le(q==="x"?ke>0?"right":"left":Cr>0?"down":"up"),dt(),Xe(!0);return}else{var _e,Ne;(_e=Ze.current)==null||_e.style.setProperty("--swipe-amount-x","0px"),(Ne=Ze.current)==null||Ne.style.setProperty("--swipe-amount-y","0px")}ge(!1),K(!1),Z(null)},onPointerMove:B=>{var ce,ye,ke;if(!Jt.current||!Xt||((ce=window.getSelection())==null?void 0:ce.toString().length)>0)return;const fe=B.clientY-Jt.current.y,Ae=B.clientX-Jt.current.x;var Tr;const _e=(Tr=e.swipeDirections)!=null?Tr:sy(j);!q&&(Math.abs(Ae)>1||Math.abs(fe)>1)&&Z(Math.abs(Ae)>Math.abs(fe)?"x":"y");let Ne={x:0,y:0};const Td=Pt=>1/(1.5+Math.abs(Pt)/20);if(q==="y"){if(_e.includes("top")||_e.includes("bottom"))if(_e.includes("top")&&fe<0||_e.includes("bottom")&&fe>0)Ne.y=fe;else{const Pt=fe*Td(fe);Ne.y=Math.abs(Pt)<Math.abs(fe)?Pt:fe}}else if(q==="x"&&(_e.includes("left")||_e.includes("right")))if(_e.includes("left")&&Ae<0||_e.includes("right")&&Ae>0)Ne.x=Ae;else{const Pt=Ae*Td(Ae);Ne.x=Math.abs(Pt)<Math.abs(Ae)?Pt:Ae}(Math.abs(Ne.x)>0||Math.abs(Ne.y)>0)&&ge(!0),(ye=Ze.current)==null||ye.style.setProperty("--swipe-amount-x",`${Ne.x}px`),(ke=Ze.current)==null||ke.style.setProperty("--swipe-amount-y",`${Ne.y}px`)}},Db&&!u.jsx&&Te!=="loading"?p.createElement("button",{"aria-label":W,"data-disabled":Zi,"data-close-button":!0,onClick:Zi||!Xt?()=>{}:()=>{dt(),u.onDismiss==null||u.onDismiss.call(u,u)},className:He(O?.closeButton,u==null||(r=u.classNames)==null?void 0:r.closeButton)},(Cd=R?.close)!=null?Cd:G0):null,(Te||u.icon||u.promise)&&u.icon!==null&&(R?.[Te]!==null||u.icon)?p.createElement("div",{"data-icon":"",className:He(O?.icon,u==null||(o=u.classNames)==null?void 0:o.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||Rb():null,u.type!=="loading"?Lb:null):null,p.createElement("div",{"data-content":"",className:He(O?.content,u==null||(i=u.classNames)==null?void 0:i.content)},p.createElement("div",{"data-title":"",className:He(O?.title,u==null||(s=u.classNames)==null?void 0:s.title)},u.jsx?u.jsx:typeof u.title=="function"?u.title():u.title),u.description?p.createElement("div",{"data-description":"",className:He(I,Ab,O?.description,u==null||(a=u.classNames)==null?void 0:a.description)},typeof u.description=="function"?u.description():u.description):null),p.isValidElement(u.cancel)?u.cancel:u.cancel&&dr(u.cancel)?p.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||E,onClick:B=>{dr(u.cancel)&&Xt&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,B),dt())},className:He(O?.cancelButton,u==null||(l=u.classNames)==null?void 0:l.cancelButton)},u.cancel.label):null,p.isValidElement(u.action)?u.action:u.action&&dr(u.action)?p.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||D,onClick:B=>{dr(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,B),!B.defaultPrevented&&dt())},className:He(O?.actionButton,u==null||(c=u.classNames)==null?void 0:c.actionButton)},u.action.label):null)};function Wc(){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 ly(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",a=i?ty:ey;function l(c){["top","right","bottom","left"].forEach(d=>{n[`${s}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${s}-${c}`]=a:n[`${s}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(a)}),n}const cy=p.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:a,closeButton:l,className:c,offset:d,mobileOffset:u,theme:h="light",richColors:f,duration:m,style:y,visibleToasts:x=Q0,toastOptions:v,dir:T=Wc(),gap:w=ry,icons:M,containerAriaLabel:b="Notifications"}=t,[$,k]=p.useState([]),E=p.useMemo(()=>r?$.filter(H=>H.toasterId===r):$.filter(H=>!H.toasterId),[$,r]),D=p.useMemo(()=>Array.from(new Set([i].concat(E.filter(H=>H.position).map(H=>H.position)))),[E,i]),[A,I]=p.useState([]),[N,j]=p.useState(!1),[G,X]=p.useState(!1),[O,R]=p.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),W=p.useRef(null),q=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),Z=p.useRef(null),de=p.useRef(!1),le=p.useCallback(H=>{k(J=>{var te;return(te=J.find(me=>me.id===H.id))!=null&&te.delete||xe.dismiss(H.id),J.filter(({id:me})=>me!==H.id)})},[]);return p.useEffect(()=>xe.subscribe(H=>{if(H.dismiss){requestAnimationFrame(()=>{k(J=>J.map(te=>te.id===H.id?{...te,delete:!0}:te))});return}setTimeout(()=>{Ji.flushSync(()=>{k(J=>{const te=J.findIndex(me=>me.id===H.id);return te!==-1?[...J.slice(0,te),{...J[te],...H},...J.slice(te+1)]:[H,...J]})})})}),[$]),p.useEffect(()=>{if(h!=="system"){R(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?R("dark"):R("light")),typeof window>"u")return;const H=window.matchMedia("(prefers-color-scheme: dark)");try{H.addEventListener("change",({matches:J})=>{R(J?"dark":"light")})}catch{H.addListener(({matches:te})=>{try{R(te?"dark":"light")}catch(me){console.error(me)}})}},[h]),p.useEffect(()=>{$.length<=1&&j(!1)},[$]),p.useEffect(()=>{const H=J=>{var te;if(s.every(K=>J[K]||J.code===K)){var qe;j(!0),(qe=W.current)==null||qe.focus()}J.code==="Escape"&&(document.activeElement===W.current||(te=W.current)!=null&&te.contains(document.activeElement))&&j(!1)};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[s]),p.useEffect(()=>{if(W.current)return()=>{Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null,de.current=!1)}},[W.current]),p.createElement("section",{ref:n,"aria-label":`${b} ${q}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},D.map((H,J)=>{var te;const[me,qe]=H.split("-");return E.length?p.createElement("ol",{key:H,dir:T==="auto"?Wc():T,tabIndex:-1,ref:W,className:c,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":me,"data-x-position":qe,style:{"--front-toast-height":`${((te=A[0])==null?void 0:te.height)||0}px`,"--width":`${ny}px`,"--gap":`${w}px`,...y,...ly(d,u)},onBlur:K=>{de.current&&!K.currentTarget.contains(K.relatedTarget)&&(de.current=!1,Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null))},onFocus:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||de.current||(de.current=!0,Z.current=K.relatedTarget)},onMouseEnter:()=>j(!0),onMouseMove:()=>j(!0),onMouseLeave:()=>{G||j(!1)},onDragEnd:()=>j(!1),onPointerDown:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||X(!0)},onPointerUp:()=>X(!1)},E.filter(K=>!K.position&&J===0||K.position===H).map((K,Ce)=>{var Xe,Le;return p.createElement(ay,{key:K.id,icons:M,index:Ce,toast:K,defaultRichColors:f,duration:(Xe=v?.duration)!=null?Xe:m,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:o,visibleToasts:x,closeButton:(Le=v?.closeButton)!=null?Le:l,interacting:G,position:H,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:le,toasts:E.filter(ge=>ge.position==K.position),heights:A.filter(ge=>ge.position==K.position),setHeights:I,expandByDefault:a,gap:w,expanded:N,swipeDirections:t.swipeDirections})})):null}))}),uy=({spinnerColor:e="orange",...t})=>g.jsx(cy,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:g.jsx(ur,{color:e,size:"sm"})},...t}),dy={elevated:S`
|
|
476
481
|
background-color: var(--color-main-white);
|
|
477
482
|
box-shadow: var(--shadow-black-card);
|
|
478
483
|
border: none;
|
|
@@ -480,7 +485,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
480
485
|
&:hover {
|
|
481
486
|
box-shadow: var(--shadow-hover-black-card);
|
|
482
487
|
}
|
|
483
|
-
`,flat:
|
|
488
|
+
`,flat:S`
|
|
484
489
|
background-color: var(--color-main-white);
|
|
485
490
|
box-shadow: none;
|
|
486
491
|
border: none;
|
|
@@ -488,7 +493,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
488
493
|
&:hover {
|
|
489
494
|
background-color: var(--color-main-alternative-secondary);
|
|
490
495
|
}
|
|
491
|
-
`,info:
|
|
496
|
+
`,info:S`
|
|
492
497
|
background-color: var(--color-main-white);
|
|
493
498
|
box-shadow: none;
|
|
494
499
|
|
|
@@ -499,16 +504,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
499
504
|
&:active {
|
|
500
505
|
border: none;
|
|
501
506
|
}
|
|
502
|
-
`},
|
|
507
|
+
`},fy={sm:S`
|
|
503
508
|
padding: 0.75rem;
|
|
504
509
|
gap: 0.5rem;
|
|
505
|
-
`,md:
|
|
510
|
+
`,md:S`
|
|
506
511
|
padding: 1rem;
|
|
507
512
|
gap: 0.5rem;
|
|
508
|
-
`,lg:
|
|
513
|
+
`,lg:S`
|
|
509
514
|
padding: 1.25rem;
|
|
510
515
|
gap: 0.5rem;
|
|
511
|
-
`},
|
|
516
|
+
`},hy=S`
|
|
512
517
|
transition:
|
|
513
518
|
box-shadow 0.3s ease-out,
|
|
514
519
|
background-color 0.3s ease-out,
|
|
@@ -528,7 +533,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
528
533
|
&:focus-visible {
|
|
529
534
|
outline-color: var(--color-main-blue-primary);
|
|
530
535
|
}
|
|
531
|
-
`,
|
|
536
|
+
`,py=S`
|
|
532
537
|
opacity: 0.6;
|
|
533
538
|
cursor: not-allowed;
|
|
534
539
|
pointer-events: none;
|
|
@@ -537,7 +542,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
537
542
|
transform: none;
|
|
538
543
|
box-shadow: inherit;
|
|
539
544
|
}
|
|
540
|
-
`,
|
|
545
|
+
`,my=P.div`
|
|
541
546
|
display: flex;
|
|
542
547
|
flex-direction: column;
|
|
543
548
|
border-radius: var(--border-radius-card);
|
|
@@ -545,60 +550,68 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
545
550
|
height: 100%;
|
|
546
551
|
outline: 2px solid transparent;
|
|
547
552
|
outline-offset: -1px;
|
|
548
|
-
${({$variant:e})=>
|
|
549
|
-
${({$clickable:e})=>e&&
|
|
550
|
-
${({$disabled:e})=>e&&
|
|
551
|
-
${({$size:e})=>
|
|
552
|
-
`,
|
|
553
|
+
${({$variant:e})=>dy[e]}
|
|
554
|
+
${({$clickable:e})=>e&&hy}
|
|
555
|
+
${({$disabled:e})=>e&&py}
|
|
556
|
+
${({$size:e})=>fy[e]}
|
|
557
|
+
`,gy=({variant:e="elevated",size:t="md",disabled:n=!1,onClick:r=void 0,children:o,...i})=>{const s=a=>{n||r&&r(a)};return g.jsx(my,{$variant:e,$size:t,$disabled:n,$clickable:!!r,onClick:s,role:r?"button":void 0,tabIndex:r&&!n?0:void 0,onKeyDown:r&&!n?a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),s(a))}:void 0,...i,children:o})},yy=P.div`
|
|
553
558
|
display: flex;
|
|
554
559
|
align-items: center;
|
|
555
560
|
align-self: stretch;
|
|
556
561
|
gap: 0.5rem;
|
|
557
|
-
|
|
562
|
+
|
|
563
|
+
${({$showDivider:e})=>e&&S`
|
|
564
|
+
border-bottom: 1px solid var(--color-divider);
|
|
565
|
+
padding-bottom: 0.5rem;
|
|
566
|
+
`}
|
|
567
|
+
`,vy=({children:e,showDivider:t=!1,...n})=>g.jsx(yy,{$showDivider:t,...n,children:e}),wy=P.div`
|
|
558
568
|
flex: 1;
|
|
559
569
|
display: flex;
|
|
560
570
|
flex-direction: column;
|
|
561
|
-
`,
|
|
571
|
+
`,by=({children:e,showDivider:t=!1,...n})=>g.jsx(wy,{$showDivider:t,...n,children:e}),xy=P.div`
|
|
562
572
|
display: flex;
|
|
563
573
|
align-items: center;
|
|
564
574
|
align-self: stretch;
|
|
565
575
|
gap: 0.5rem;
|
|
566
|
-
`,
|
|
567
|
-
${
|
|
568
|
-
`,
|
|
569
|
-
${
|
|
570
|
-
`,
|
|
571
|
-
${
|
|
572
|
-
|
|
576
|
+
`,Sy=({children:e,...t})=>g.jsx(xy,{...t,children:e}),Cy={xs:S`
|
|
577
|
+
${F[12]}
|
|
578
|
+
`,sm:S`
|
|
579
|
+
${F[12]}
|
|
580
|
+
`,md:S`
|
|
581
|
+
${F[16]}
|
|
582
|
+
`,lg:S`
|
|
583
|
+
${F[18]}
|
|
584
|
+
`},Ty=P.div`
|
|
573
585
|
color: var(--color-main-warning-state);
|
|
574
|
-
${({$size:e})=>
|
|
586
|
+
${({$size:e})=>Cy[e]}
|
|
575
587
|
font-weight: 400;
|
|
576
588
|
margin-top: 0.25rem;
|
|
577
589
|
display: flex;
|
|
578
590
|
align-items: flex-start;
|
|
579
591
|
gap: 0.25rem;
|
|
580
|
-
`,
|
|
581
|
-
${
|
|
582
|
-
`,
|
|
583
|
-
${
|
|
584
|
-
`,
|
|
585
|
-
${
|
|
586
|
-
|
|
592
|
+
`,ui=({children:e,className:t,size:n="md",...r})=>g.jsx(Ty,{className:t,$size:n,...r,children:e}),ky={xs:S`
|
|
593
|
+
${F[14]}
|
|
594
|
+
`,sm:S`
|
|
595
|
+
${F[16]}
|
|
596
|
+
`,md:S`
|
|
597
|
+
${F[24]}
|
|
598
|
+
`,lg:S`
|
|
599
|
+
${F[30]}
|
|
600
|
+
`},Py=P.label`
|
|
587
601
|
color: var(--color-main-blue-primary);
|
|
588
|
-
${({$size:e})=>
|
|
589
|
-
${({$disabled:e})=>e
|
|
602
|
+
${({$size:e})=>ky[e]}
|
|
603
|
+
${({$disabled:e})=>e&&$y}
|
|
590
604
|
cursor: ${({$disabled:e,$htmlFor:t})=>e||!t?"default":"pointer"};
|
|
591
|
-
|
|
605
|
+
`,$y=S`
|
|
592
606
|
cursor: not-allowed;
|
|
593
607
|
opacity: 0.6;
|
|
594
|
-
`,
|
|
608
|
+
`,fr=({children:e,htmlFor:t,className:n,required:r,disabled:o=!1,size:i="md",...s})=>g.jsxs(Py,{className:n,htmlFor:t,$htmlFor:t,$size:i,$disabled:o,...s,children:[e,r&&g.jsx("span",{style:{color:"var(--color-main-warning-state)"},children:"*"})]}),Kc=["text","email","password","number","tel","url","date","datetime-local","time","search","textarea","select","checkbox","radio","pin"],Yc=e=>Kc.includes(e),it=e=>e.map(t=>({name:t.name||"",label:t.label||"",type:t.type&&Yc(t.type)?t.type:"text",placeholder:t.placeholder,required:t.required||!1,disabled:t.disabled||!1,options:t.options||[],validation:t.validation,checkboxLabel:t.checkboxLabel,radioName:t.radioName,pinLength:t.pinLength||6,pinType:t.pinType||"number",rows:t.rows||4,size:t.size||"md",inputClassName:t.inputClassName,labelClassName:t.labelClassName,messageErrorClassName:t.messageErrorClassName})),Ey=e=>e.map(t=>({value:t.value,label:t.label})),My={text:(e,t,n)=>it([{name:e,label:t,type:"text",...n}])[0],email:(e,t,n)=>it([{name:e,label:t,type:"email",required:!0,...n}])[0],password:(e,t,n)=>it([{name:e,label:t,type:"password",required:!0,validation:{pattern:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d@$!%*?&]{8,}$",custom:r=>{if(r&&r.length<8)return"Password must be at least 8 characters long"}},...n}])[0],select:(e,t,n,r)=>it([{name:e,label:t,type:"select",options:n,required:!0,...r}])[0],checkbox:(e,t,n)=>it([{name:e,label:t,type:"checkbox",checkboxLabel:t,...n}])[0],radio:(e,t,n,r)=>it([{name:e,label:t,type:"radio",options:n,radioName:e,required:!0,...r}])[0],pin:(e,t,n=6,r)=>it([{name:e,label:t,type:"pin",pinLength:n,pinType:"number",required:!0,validation:{custom:o=>{if(o&&o.length!==n)return`${t} must be ${n} digits long`}},...r}])[0]},Ay=(e,t,n,r,o,i,s,a)=>{const{field:l,...c}=t,d={...l,...c,size:c.size,hasError:c.hasError,disabled:c.disabled,placeholder:c.placeholder,className:c.className};switch(e){case"textarea":return{component:"textarea",props:{...d,rows:s?.rows||4}};case"select":return{component:"select",props:{...d,options:n?.options||[],onOptionSelect:n?.onOptionSelect,placeholder:t.placeholder||"Selecciona una opción"}};case"checkbox":return{component:"checkbox",props:{...d,label:r?.checkboxLabel||r?.label,checked:t.field.value||r?.checked||!1}};case"radio":return{component:"radio",props:{...d,options:o?.options||[],radioName:o?.radioName||t.name,onRadioChange:o?.onRadioChange}};case"pin":return{component:"pin",props:{...d,length:i?.pinLength||6,type:i?.pinType||"number",onComplete:i?.onPinComplete}};case"password":return{component:"password",props:{...d,type:"password"}};case"search":return{component:"search",props:{...d,onSearch:a?.onSearch}};default:return{component:"base",props:{...d,type:t.type||e||"text"}}}},Tt=S`
|
|
595
609
|
display: flex;
|
|
596
610
|
justify-content: space-between;
|
|
597
611
|
align-items: center;
|
|
598
612
|
gap: 0.625rem;
|
|
599
613
|
width: 100%;
|
|
600
614
|
flex-shrink: 0;
|
|
601
|
-
outline: 2px solid transparent;
|
|
602
615
|
color: var(--color-main-blue-primary);
|
|
603
616
|
border: var(--border-input);
|
|
604
617
|
border-radius: var(--border-radius-article);
|
|
@@ -622,7 +635,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
622
635
|
&:disabled {
|
|
623
636
|
cursor: not-allowed;
|
|
624
637
|
}
|
|
625
|
-
`,
|
|
638
|
+
`,hr=S`
|
|
626
639
|
width: 100%;
|
|
627
640
|
border: none;
|
|
628
641
|
outline: none;
|
|
@@ -639,18 +652,18 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
639
652
|
&::placeholder {
|
|
640
653
|
color: var(--color-dark-200);
|
|
641
654
|
}
|
|
642
|
-
`,
|
|
655
|
+
`,kt=S`
|
|
643
656
|
border: var(--border-input-error) !important;
|
|
644
657
|
|
|
645
658
|
&:focus-within {
|
|
646
659
|
border: 1px solid var(--color-main-warning-state) !important;
|
|
647
660
|
outline: none;
|
|
648
661
|
}
|
|
649
|
-
`,
|
|
662
|
+
`,st=S`
|
|
650
663
|
border: var(--border-input-disabled) !important;
|
|
651
664
|
cursor: not-allowed;
|
|
652
665
|
opacity: 0.6;
|
|
653
|
-
`,
|
|
666
|
+
`,qc=S`
|
|
654
667
|
border: none;
|
|
655
668
|
border-top: 0;
|
|
656
669
|
border-right: 0;
|
|
@@ -676,59 +689,63 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
676
689
|
border-bottom: var(--border-input-focus);
|
|
677
690
|
outline: none;
|
|
678
691
|
}
|
|
679
|
-
`,
|
|
692
|
+
`,xn={xs:S`
|
|
693
|
+
padding: 0.375rem 0.75rem;
|
|
694
|
+
height: 2rem;
|
|
695
|
+
${F[16]}
|
|
696
|
+
`,sm:S`
|
|
680
697
|
padding: 0.5rem 1rem;
|
|
681
698
|
height: 2.5rem;
|
|
682
|
-
${
|
|
683
|
-
`,md:
|
|
699
|
+
${F[18]}
|
|
700
|
+
`,md:S`
|
|
684
701
|
padding: 0.5rem 1rem;
|
|
685
702
|
height: 2.75rem;
|
|
686
|
-
${
|
|
687
|
-
`,lg:
|
|
703
|
+
${F[20]}
|
|
704
|
+
`,lg:S`
|
|
688
705
|
padding: 0.5rem 1rem;
|
|
689
706
|
height: 3rem;
|
|
690
|
-
${
|
|
691
|
-
`},
|
|
707
|
+
${F[20]}
|
|
708
|
+
`},pr=S`
|
|
692
709
|
display: flex;
|
|
693
710
|
align-items: center;
|
|
694
711
|
justify-content: center;
|
|
695
712
|
flex-shrink: 0;
|
|
696
713
|
user-select: none;
|
|
697
|
-
`,
|
|
698
|
-
${
|
|
699
|
-
${({$size:e})=>
|
|
700
|
-
${({$hasError:e})=>e&&
|
|
701
|
-
${({$disabled:e})=>e&&
|
|
702
|
-
${({$isFlushed:e})=>e&&
|
|
703
|
-
`,
|
|
704
|
-
${
|
|
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
|
-
${
|
|
707
|
-
${({$size:e})=>
|
|
708
|
-
${({$hasError:e})=>e&&
|
|
709
|
-
${({$disabled:e})=>e&&
|
|
714
|
+
`,Dy=P.div`
|
|
715
|
+
${Tt}
|
|
716
|
+
${({$size:e})=>xn[e]}
|
|
717
|
+
${({$hasError:e})=>e&&kt}
|
|
718
|
+
${({$disabled:e})=>e&&st}
|
|
719
|
+
${({$isFlushed:e})=>e&&qc}
|
|
720
|
+
`,Vy=P.input`
|
|
721
|
+
${hr}
|
|
722
|
+
`,di=p.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,type:r="text",flushed:o=!1,leftIcon:i,rightIcon:s,iconSize:a="md",iconColor:l="currentColor",className:c,...d},u)=>g.jsxs(Dy,{$size:e,$hasError:t,className:c,$isFlushed:o,children:[i&&g.jsx(Y,{component:i,size:a,color:n?"var(--color-dark-200)":l}),g.jsx(Vy,{ref:u,type:r,$hasError:t,disabled:n,...d}),s&&g.jsx(Y,{component:s,size:a,color:n?"var(--color-dark-200)":l})]}));di.displayName="BaseInput";const Fy=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Xc=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Iy=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Ry=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.createElement("path",{d:"M11.9498 7.94975L10.5356 9.36396L8.00079 6.828L8.00004 20H6.00004L6.00079 6.828L3.46451 9.36396L2.05029 7.94975L7.00004 3L11.9498 7.94975ZM21.9498 16.0503L17 21L12.0503 16.0503L13.4645 14.636L16.0008 17.172L16 4H18L18.0008 17.172L20.5356 14.636L21.9498 16.0503Z"})),Zc=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Ly=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),_y=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Ny=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Oy=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.createElement("path",{d:"M21 4V6H20L14 15V22H10V15L4 6H3V4H21Z"})),By=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.createElement("path",{d:"M21 4V6H20L15 13.5V22H9V13.5L4 6H3V4H21ZM6.4037 6L11 12.8944V20H13V12.8944L17.5963 6H6.4037Z"})),zy=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Jc=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.createElement("path",{d:"M3 4H21V6H3V4ZM3 11H21V13H3V11ZM3 18H21V20H3V18Z"})),Hy=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.createElement("path",{d:"M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM9 21H15V23H9V21Z"})),jy=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Qc=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Gy=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Uy=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.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"})),Wy=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.createElement("path",{d:"M22.0003 13.0001L22.0004 11.0002L5.82845 11.0002L9.77817 7.05044L8.36396 5.63623L2 12.0002L8.36396 18.3642L9.77817 16.9499L5.8284 13.0002L22.0003 13.0001Z"})),Ky=({color:e="currentColor",size:t=24,className:n,...r})=>p.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...r,className:"remixicon "+(n||"")},p.createElement("path",{d:"M1.99974 13.0001L1.9996 11.0002L18.1715 11.0002L14.2218 7.05044L15.636 5.63623L22 12.0002L15.636 18.3642L14.2218 16.9499L18.1716 13.0002L1.99974 13.0001Z"})),Yy=P.div`
|
|
723
|
+
${Tt}
|
|
724
|
+
${({$size:e})=>xn[e??"md"]}
|
|
725
|
+
${({$hasError:e})=>e&&kt}
|
|
726
|
+
${({$disabled:e})=>e&&st}
|
|
710
727
|
position: relative;
|
|
711
|
-
`,
|
|
712
|
-
${
|
|
713
|
-
`,
|
|
714
|
-
${
|
|
728
|
+
`,qy=P.input`
|
|
729
|
+
${hr}
|
|
730
|
+
`,Xy=P.span`
|
|
731
|
+
${pr}
|
|
715
732
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
716
|
-
`,
|
|
733
|
+
`,eu=({size:e="md",leftIcon:t,iconSize:n="sm",iconColor:r="currentColor",placeholder:o="Contraseña...",hasError:i=!1,disabled:s=!1,className:a,...l})=>{const[c,d]=p.useState(!1),u=()=>d(h=>!h);return g.jsxs(Yy,{$size:e,$hasError:i,$disabled:s,className:a,children:[t&&g.jsx(Y,{component:t,size:n,color:s?"var(--color-dark-200)":r}),g.jsx(qy,{type:c?"text":"password",placeholder:o,disabled:s,...l}),g.jsx(Xy,{$disabled:s,onClick:s?void 0:u,children:g.jsx(Y,{component:c?Ny:_y,size:n,color:s?"var(--color-dark-200)":r})})]})},tu=e=>{const t=e.findIndex(n=>!n.disabled);return t!==-1?t:0},Zy=e=>{for(let t=e.length-1;t>=0;t--)if(!e[t].disabled)return t;return e.length-1},Jy=(e,t,n)=>{let r=e;do r=(r+t+n.length)%n.length;while(n[r]?.disabled&&r!==e);return r},Qy=(e,t)=>({target:{value:String(e),name:t},currentTarget:{value:String(e),name:t}}),ev=(e,t)=>{if(t>=0&&e.current){const n=e.current.children[t];n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}},tv=(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 tu(t)},nv=({options:e,value:t,name:n,disabled:r=!1,onChange:o,onOptionSelect:i})=>{const s=p.useRef(null),a=p.useRef(null),l=p.useRef(null),c=p.useRef(null),d=p.useRef(!1),u=p.useId(),[h,f]=p.useState(!1),[m,y]=p.useState(-1),x=e.find(b=>b.value===t);p.useEffect(()=>{h&&a.current&&(a.current.focus(),y(tv(t,e)))},[h,e,t]),p.useEffect(()=>{ev(l,m)},[m]),p.useEffect(()=>{if(!h)return;const b=$=>{s.current&&(s.current.contains($.target)||f(!1))};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[h]),p.useEffect(()=>{h?d.current=!0:d.current&&requestAnimationFrame(()=>{c.current?.focus()})},[h]);const v=b=>{b.disabled||(i?.(b),o&&o(Qy(b.value,n)),f(!1),y(-1))};return{open:h,activeIndex:m,selected:x,containerRef:s,menuRef:a,menuContentRef:l,buttonRef:c,id:u,setOpen:f,setActiveIndex:y,commitSelection:v,handleKeyDownButton:b=>{r||(b.key==="ArrowDown"||b.key==="ArrowUp"?(b.preventDefault(),f(!0)):(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),f($=>!$)))},handleKeyDownMenu:b=>{if(b.key==="Escape"){b.preventDefault(),f(!1),y(-1);return}if(b.key==="ArrowDown"||b.key==="ArrowUp"){b.preventDefault();const $=b.key==="ArrowDown"?1:-1;y(Jy(m,$,e))}else if(b.key==="Enter"){b.preventDefault();const $=e[m];$&&!$.disabled&&v($)}else b.key==="Home"?(b.preventDefault(),y(tu(e))):b.key==="End"&&(b.preventDefault(),y(Zy(e)))},handleToggle:()=>{r||f(b=>!b)}}},rv=P.div`
|
|
717
734
|
position: relative;
|
|
718
735
|
width: 100%;
|
|
719
|
-
`,
|
|
720
|
-
${
|
|
736
|
+
`,ov=P.div`
|
|
737
|
+
${pr};
|
|
721
738
|
position: absolute;
|
|
722
739
|
right: 1rem;
|
|
723
740
|
top: 50%;
|
|
724
|
-
transform: translateY(-50%) rotate(${({$open:e})=>e?"180deg":"0deg"});
|
|
741
|
+
transform: translateY(-50%) rotate(${({$open:e})=>e?"-180deg":"0deg"});
|
|
725
742
|
pointer-events: none;
|
|
726
743
|
transition: transform 0.3s ease-out;
|
|
727
|
-
`,
|
|
728
|
-
${
|
|
729
|
-
${({$size:e})=>
|
|
730
|
-
${({$hasError:e})=>e&&
|
|
731
|
-
${({$disabled:e})=>e&&
|
|
744
|
+
`,iv=P.button`
|
|
745
|
+
${Tt}
|
|
746
|
+
${({$size:e})=>xn[e]}
|
|
747
|
+
${({$hasError:e})=>e&&kt}
|
|
748
|
+
${({$disabled:e})=>e&&st}
|
|
732
749
|
|
|
733
750
|
width: 100%;
|
|
734
751
|
text-align: left;
|
|
@@ -746,7 +763,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
746
763
|
&:hover {
|
|
747
764
|
background-color: var(--color-main-alternative-secondary);
|
|
748
765
|
}
|
|
749
|
-
`,
|
|
766
|
+
`,sv=P(Ke.ul)`
|
|
750
767
|
position: absolute;
|
|
751
768
|
z-index: 50;
|
|
752
769
|
left: 0;
|
|
@@ -768,11 +785,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
768
785
|
border: var(--border-input-focus);
|
|
769
786
|
outline: none;
|
|
770
787
|
}
|
|
771
|
-
`,
|
|
788
|
+
`,av=P.div`
|
|
772
789
|
max-height: 15rem;
|
|
773
790
|
overflow-y: auto;
|
|
774
791
|
outline: none;
|
|
775
|
-
`,
|
|
792
|
+
`,lv=P.li`
|
|
776
793
|
display: flex;
|
|
777
794
|
align-items: center;
|
|
778
795
|
gap: 0.5rem;
|
|
@@ -782,23 +799,25 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
782
799
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
783
800
|
user-select: none;
|
|
784
801
|
|
|
785
|
-
${({$size:e})=>
|
|
802
|
+
${({$size:e})=>cv[e??"md"]}
|
|
786
803
|
|
|
787
804
|
background-color: ${({$active:e})=>e?"var(--color-main-alternative-secondary)":"transparent"};
|
|
788
805
|
color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
|
|
789
|
-
`,
|
|
790
|
-
${
|
|
791
|
-
`,
|
|
792
|
-
${
|
|
793
|
-
`,
|
|
794
|
-
${
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
${
|
|
799
|
-
${({$
|
|
800
|
-
${
|
|
801
|
-
|
|
806
|
+
`,cv={xs:S`
|
|
807
|
+
${F[14]}
|
|
808
|
+
`,sm:S`
|
|
809
|
+
${F[16]}
|
|
810
|
+
`,md:S`
|
|
811
|
+
${F[18]}
|
|
812
|
+
`,lg:S`
|
|
813
|
+
${F[18]}
|
|
814
|
+
`},nu=p.forwardRef(({size:e,hasError:t,disabled:n,hasValue:r,displayText:o,open:i,inputClassName:s,onClick:a,onKeyDown:l,ariaHaspopup:c,ariaExpanded:d,ariaControls:u,ariaInvalid:h,title:f},m)=>g.jsxs(g.Fragment,{children:[g.jsx(iv,{type:"button",$size:e,$hasError:t,$hasValue:r,$disabled:n,disabled:n,className:s,ref:m,onClick:a,onKeyDown:l,"aria-haspopup":c,"aria-expanded":d,"aria-controls":u,"aria-invalid":h,title:f,children:o}),g.jsx(ov,{$size:e,$disabled:n,$open:i,children:g.jsx(Y,{component:Xc,size:e==="sm"||e==="md"?"sm":"md",color:n?"var(--color-dark-200)":"var(--color-main-blue-primary)"})})]}));nu.displayName="SelectTrigger";const ru=({option:e,size:t,active:n,selected:r,id:o,className:i,onMouseEnter:s,onClick:a})=>g.jsx(lv,{id:o,className:i,role:"option",$size:t,"aria-selected":r,$active:n,$disabled:e.disabled,onMouseEnter:s,onClick:a,children:e.label});ru.displayName="SelectOption";const ou=({open:e,options:t,size:n,activeIndex:r,selectedValue:o,menuRef:i,menuContentRef:s,id:a,optionsClassName:l,optionClassName:c,onKeyDown:d,onOptionClick:u,onOptionMouseEnter:h})=>g.jsx(gn,{children:e&&g.jsx(sv,{ref:i,className:"custom-scrollbar",id:`${a}-listbox`,role:"listbox",tabIndex:0,"aria-activedescendant":r>=0?`${a}-option-${r}`: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:d,children:g.jsx(av,{ref:s,className:l,children:t.map((f,m)=>{const y=m===r;return g.jsx(ru,{option:f,size:n,active:y,selected:o===f.value,id:`${a}-option-${m}`,className:c,onMouseEnter:()=>{!f.disabled&&e&&h(m)},onClick:()=>u(f)},f.value)})})})});ou.displayName="SelectMenu";const mr=p.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,options:r=[],placeholder:o,onOptionSelect:i,onChange:s,value:a,name:l,className:c,inputClassName:d,optionsClassName:u,optionClassName:h},f)=>{const{open:m,activeIndex:y,selected:x,containerRef:v,menuRef:T,menuContentRef:w,buttonRef:M,id:b,setActiveIndex:$,commitSelection:k,handleKeyDownButton:E,handleKeyDownMenu:D,handleToggle:A}=nv({options:r,value:a,name:l,disabled:n,onChange:s,onOptionSelect:i}),I=N=>{M.current=N,typeof f=="function"?f(N):f&&"current"in f&&(f.current=N)};return g.jsxs(rv,{ref:v,className:c,children:[l&&g.jsx("input",{type:"hidden",name:l,value:x?.value??""}),g.jsx(nu,{ref:I,size:e,hasError:t,disabled:n,hasValue:!!x,displayText:x?.label??o??"",open:m,inputClassName:d,onClick:A,onKeyDown:E,ariaHaspopup:"listbox",ariaExpanded:m,ariaControls:`${b}-listbox`,ariaInvalid:t||void 0,title:x?.label??o??"Select an option"}),g.jsx(ou,{open:m,options:r,size:e,activeIndex:y,selectedValue:a,menuRef:T,menuContentRef:w,id:b,optionsClassName:u,optionClassName:h,onKeyDown:D,onOptionClick:k,onOptionMouseEnter:$})]})});mr.displayName="SelectInput";const uv=P.textarea`
|
|
815
|
+
${Tt}
|
|
816
|
+
${({$size:e})=>dv[e]}
|
|
817
|
+
${({$hasError:e})=>e&&kt}
|
|
818
|
+
${({$disabled:e})=>e&&st}
|
|
819
|
+
${F[20]}
|
|
820
|
+
|
|
802
821
|
resize: ${({$resize:e})=>e};
|
|
803
822
|
|
|
804
823
|
${({$autoResize:e})=>e&&`
|
|
@@ -810,61 +829,68 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
810
829
|
color: var(--color-dark-200);
|
|
811
830
|
opacity: 1;
|
|
812
831
|
}
|
|
813
|
-
`,
|
|
814
|
-
|
|
832
|
+
`,dv={xs:`
|
|
833
|
+
${F[16]}
|
|
834
|
+
height: 4rem;
|
|
835
|
+
max-height: 8rem;
|
|
836
|
+
padding: 0.75rem 1rem;
|
|
837
|
+
`,sm:`
|
|
838
|
+
${F[20]}
|
|
815
839
|
height: 6rem;
|
|
816
840
|
max-height: 12rem;
|
|
817
841
|
padding: 1rem 1.25rem;
|
|
818
842
|
`,md:`
|
|
819
|
-
${
|
|
843
|
+
${F[24]}
|
|
820
844
|
height: 8rem;
|
|
821
845
|
max-height: 16rem;
|
|
822
846
|
padding: 1rem 1.25rem;
|
|
823
847
|
`,lg:`
|
|
824
|
-
${
|
|
848
|
+
${F[24]}
|
|
825
849
|
height:12rem;
|
|
826
850
|
max-height: 20rem;
|
|
827
851
|
padding: 1rem 1.25rem;
|
|
828
|
-
`},
|
|
829
|
-
${
|
|
830
|
-
${({$size:e})=>
|
|
831
|
-
`,
|
|
832
|
-
${
|
|
833
|
-
`,
|
|
852
|
+
`},fi=p.forwardRef(({size:e="md",hasError:t=!1,disabled:n=!1,resize:r="vertical",autoResize:o=!1,minRows:i=3,maxRows:s,className:a,onChange:l,...c},d)=>{const u=h=>{if(o){const f=h.target;f.style.height="auto";const m=f.scrollHeight,y=i*24,x=s?s*24:m;m>x?(f.style.height=`${x}px`,f.style.overflowY="scroll"):(f.style.height=`${Math.max(m,y)}px`,f.style.overflowY="hidden")}l?.(h)};return g.jsx(uv,{ref:d,$size:e,$hasError:t,$disabled:n,$resize:r,$autoResize:o,disabled:n,rows:i,className:a,onChange:u,...c})});fi.displayName="TextAreaInput";const fv=P.div`
|
|
853
|
+
${Tt}
|
|
854
|
+
${({$size:e})=>xn[e??"md"]}
|
|
855
|
+
`,hv=P.input`
|
|
856
|
+
${hr}
|
|
857
|
+
`,hi=({size:e="md",leftIcon:t,rightIcon:n=Qc,iconSize:r="sm",iconColor:o="currentColor",placeholder:i="Buscar...",onSearch:s,className:a,...l})=>{const c=d=>{s?.(d.target.value)};return g.jsxs(fv,{$size:e,className:a,children:[t&&g.jsx(Y,{component:t,size:r,color:o}),g.jsx(hv,{placeholder:i,onChange:c,...l}),n?g.jsx(Y,{component:n,size:r,color:o}):g.jsx(Y,{component:Qc,size:r,color:o})]})},pv={default:S`
|
|
834
858
|
min-height: 18rem;
|
|
835
859
|
padding: 2rem;
|
|
836
|
-
`,compact:
|
|
860
|
+
`,compact:S`
|
|
837
861
|
min-height: 6rem;
|
|
838
862
|
padding: 1rem;
|
|
839
863
|
flex-direction: row;
|
|
840
|
-
`},
|
|
841
|
-
${
|
|
842
|
-
`,
|
|
843
|
-
${
|
|
844
|
-
`,
|
|
845
|
-
${
|
|
846
|
-
`
|
|
864
|
+
`},mv={xs:S`
|
|
865
|
+
${F[12]}
|
|
866
|
+
`,sm:S`
|
|
867
|
+
${F[12]}
|
|
868
|
+
`,md:S`
|
|
869
|
+
${F[16]}
|
|
870
|
+
`,lg:S`
|
|
871
|
+
${F[20]}
|
|
872
|
+
`},gv=S`
|
|
847
873
|
border: 2px dashed var(--color-main-input-borders);
|
|
848
874
|
background-color: var(--color-main-white);
|
|
849
|
-
`,
|
|
875
|
+
`,yv=S`
|
|
850
876
|
border-color: var(--color-main-blue-primary);
|
|
851
877
|
background-color: var(--color-main-alternative-secondary);
|
|
852
|
-
`,
|
|
878
|
+
`,vv=S`
|
|
853
879
|
border: 2px dashed var(--color-main-positive-state);
|
|
854
880
|
background-color: var(--color-green-100);
|
|
855
|
-
`,
|
|
881
|
+
`,wv=S`
|
|
856
882
|
border-color: var(--color-main-warning-state);
|
|
857
883
|
background-color: var(--color-red-100);
|
|
858
|
-
`,
|
|
884
|
+
`,bv=S`
|
|
859
885
|
border-color: var(--color-dark-200);
|
|
860
886
|
cursor: not-allowed;
|
|
861
887
|
opacity: 0.6;
|
|
862
|
-
`,
|
|
888
|
+
`,xv=P.div`
|
|
863
889
|
display: flex;
|
|
864
890
|
flex-direction: column;
|
|
865
891
|
width: 100%;
|
|
866
|
-
${({$size:e})=>
|
|
867
|
-
`,
|
|
892
|
+
${({$size:e})=>mv[e]}
|
|
893
|
+
`,Sv=P.div`
|
|
868
894
|
display: flex;
|
|
869
895
|
flex-direction: column;
|
|
870
896
|
align-items: center;
|
|
@@ -880,35 +906,35 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
880
906
|
outline: 2px solid transparent;
|
|
881
907
|
outline-offset: 2px;
|
|
882
908
|
|
|
883
|
-
${({$variant:e})=>
|
|
884
|
-
${
|
|
909
|
+
${({$variant:e})=>pv[e]}
|
|
910
|
+
${gv}
|
|
885
911
|
|
|
886
|
-
${({$disabled:e})=>e?
|
|
912
|
+
${({$disabled:e})=>e?bv:S`
|
|
887
913
|
&:hover {
|
|
888
|
-
${
|
|
914
|
+
${yv}
|
|
889
915
|
}
|
|
890
916
|
`}
|
|
891
917
|
|
|
892
|
-
${({$isDragging:e,$disabled:t})=>e&&!t&&
|
|
893
|
-
${({$hasError:e,$disabled:t})=>e&&!t&&
|
|
918
|
+
${({$isDragging:e,$disabled:t})=>e&&!t&&vv}
|
|
919
|
+
${({$hasError:e,$disabled:t})=>e&&!t&&wv}
|
|
894
920
|
|
|
895
921
|
&:focus-visible {
|
|
896
922
|
outline-color: var(--color-main-blue-primary);
|
|
897
923
|
outline-offset: 2px;
|
|
898
924
|
}
|
|
899
|
-
`,
|
|
925
|
+
`,Cv=P.div`
|
|
900
926
|
color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
|
|
901
927
|
|
|
902
928
|
strong {
|
|
903
929
|
color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
|
|
904
930
|
font-weight: 700;
|
|
905
931
|
}
|
|
906
|
-
`,
|
|
932
|
+
`,Tv=P.div`
|
|
907
933
|
display: flex;
|
|
908
934
|
flex-direction: column;
|
|
909
935
|
gap: 0.5rem;
|
|
910
936
|
margin-top: 1rem;
|
|
911
|
-
`,
|
|
937
|
+
`,kv=P.div`
|
|
912
938
|
display: flex;
|
|
913
939
|
align-items: center;
|
|
914
940
|
justify-content: space-between;
|
|
@@ -925,12 +951,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
925
951
|
&:hover {
|
|
926
952
|
background-color: var(--color-main-alternative-secondary);
|
|
927
953
|
}
|
|
928
|
-
`,
|
|
954
|
+
`,Pv=P(Ge)`
|
|
929
955
|
font-weight: 500;
|
|
930
956
|
overflow: hidden;
|
|
931
957
|
text-overflow: ellipsis;
|
|
932
958
|
white-space: nowrap;
|
|
933
|
-
|
|
959
|
+
`,$v=P.button`
|
|
934
960
|
background: none;
|
|
935
961
|
border: none;
|
|
936
962
|
color: var(--color-dark-400);
|
|
@@ -957,12 +983,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
957
983
|
cursor: not-allowed;
|
|
958
984
|
opacity: 0.5;
|
|
959
985
|
}
|
|
960
|
-
`,
|
|
986
|
+
`,Ev=(e,t)=>{const[n,r]=p.useState(!1),o=p.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||r(!0)},[t]),i=p.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||r(!1)},[t]),s=p.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]),a=p.useCallback(l=>{l.preventDefault(),l.stopPropagation(),t||(r(!1),e(l.dataTransfer.files))},[t,e]);return p.useEffect(()=>()=>{n&&r(!1)},[n]),{isDragging:n,dragHandlers:{onDragEnter:o,onDragLeave:i,onDragOver:s,onDrop:a}}},Mv=({maxFileSize:e,accept:t,multiple:n,onError:r})=>{const[o,i]=p.useState(""),s=p.useCallback(l=>{i(l),r?.(l)},[r]),a=p.useCallback(l=>{if(e&&l.some(c=>c.size>e)){const c=e/1048576,d=c>=1?`File size exceeds maximum of ${c.toFixed(1)}MB`:`File size exceeds maximum of ${Math.round(e/1024)}KB`;return s(d),!1}if(t){const c=t.split(",").map(u=>u.trim().toLowerCase());if(l.find(u=>{const h=u.type.toLowerCase(),f=`.${u.name.split(".").pop()?.toLowerCase()}`;return!c.some(m=>{if(m===h||m===f)return!0;if(m.endsWith("/*")){const y=m.slice(0,-2);return h.startsWith(`${y}/`)}return!1})})){const u=`File type not accepted. Allowed: ${t}`;return s(u),!1}}return!n&&l.length>1?(s("Only one file is allowed"),!1):(i(""),!0)},[e,t,n,s]);return{error:o,validateFiles:a,clearError:()=>i("")}},Av=e=>{const t=["Bytes","KB","MB"],n=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,n)).toFixed(2)} ${t[n]}`},iu=({files:e,onRemove:t,disabled:n})=>e.length===0?null:g.jsx(Tv,{children:e.map((r,o)=>g.jsxs(kv,{children:[g.jsxs("div",{className:"flex min-w-[0] flex-col gap-1",children:[g.jsx(Pv,{size:14,children:r.name}),g.jsx(bn,{size:12,children:Av(r.size)})]}),g.jsx($v,{type:"button",onClick:()=>t(o),"aria-label":`Remove ${r.name}`,disabled:n,children:g.jsx(Zc,{})})]},`${r.name}-${o}`))}),Dv=({variant:e="default",multiple:t=!1,maxFileSize:n=10,accept:r="image/*,application/pdf",helperText:o="Upload files here",value:i,defaultValue:s,onChange:a,onError:l,onFileRemove:c,disabled:d=!1,hasError:u=!1,errorMessage:h="",className:f="",dropZoneContainerClassName:m="",size:y="md"})=>{const x=i!==void 0,[v,T]=p.useState(s||[]),w=x?i:v,M=n*1024*1024,{error:b,validateFiles:$,clearError:k}=Mv({maxFileSize:M,accept:r,multiple:t,onError:l}),E=(G,X)=>{if(!G||G.length===0)return;const O=Array.from(G);if(!$(O))return;const R=t?[...w,...O]:O;x||T(R),a?.(R,X)},D=G=>{const X=w[G],O=w.filter((R,W)=>W!==G);x||T(O),c?.(X,G),a?.(O),O.length===0&&k()},{isDragging:A,dragHandlers:I}=Ev(E,d),N=u||!!b,j=h||b;return g.jsxs(xv,{$size:y,className:f,children:[g.jsxs("label",{"aria-label":"File upload area",className:`p-4 ${m}`,children:[g.jsxs(Sv,{$variant:e,$isDragging:A,$hasError:N,$disabled:d,role:"button",tabIndex:d?-1:0,"aria-disabled":d,onKeyDown:G=>{(G.key==="Enter"||G.key===" ")&&(G.preventDefault(),G.currentTarget.querySelector("input")?.click())},...I,children:[g.jsx(Y,{component:Gy,size:"lg",color:d?"var(--color-dark-200)":"var(--color-main-blue-primary)",className:"!text-[5rem]"}),g.jsxs(Cv,{$disabled:d,children:[g.jsx("strong",{children:"Click to upload"})," or drag and drop"]}),o&&!N&&g.jsx(Ge,{size:14,color:"var(--color-main-grey)",children:o})]}),g.jsx("input",{type:"file",multiple:t,accept:r,disabled:d,onChange:G=>E(G.target.files,G.nativeEvent),style:{display:"none"},"aria-label":"File input"})]}),N&&j&&g.jsx(ui,{size:"sm",children:j}),g.jsx(iu,{files:w,onRemove:D,disabled:d})]})},Yt={xs:"1rem",sm:"1.25rem",md:"1.5rem",lg:"1.75rem"},Vv=P.div`
|
|
961
987
|
position: relative;
|
|
962
|
-
`,
|
|
988
|
+
`,Fv=P.input`
|
|
963
989
|
position: absolute;
|
|
964
|
-
height:
|
|
965
|
-
width:
|
|
990
|
+
height: ${({$size:e})=>Yt[e]};
|
|
991
|
+
width: ${({$size:e})=>Yt[e]};
|
|
966
992
|
inset: 0;
|
|
967
993
|
cursor: pointer;
|
|
968
994
|
opacity: 0;
|
|
@@ -976,9 +1002,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
976
1002
|
outline-color: var(--color-main-orange-primary);
|
|
977
1003
|
outline-offset: 2px;
|
|
978
1004
|
}
|
|
979
|
-
`,
|
|
980
|
-
height:
|
|
981
|
-
width:
|
|
1005
|
+
`,Iv=P.div`
|
|
1006
|
+
height: ${({$size:e})=>Yt[e]};
|
|
1007
|
+
width: ${({$size:e})=>Yt[e]};
|
|
982
1008
|
border: 2px solid;
|
|
983
1009
|
border-radius: 0.25rem;
|
|
984
1010
|
display: flex;
|
|
@@ -995,34 +1021,34 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
995
1021
|
border-color: var(--color-main-orange-primary);
|
|
996
1022
|
}
|
|
997
1023
|
|
|
998
|
-
${({$hasError:e})=>e&&
|
|
999
|
-
${({$disabled:e})=>e&&
|
|
1000
|
-
${({$checked:e})=>e&&
|
|
1001
|
-
`,
|
|
1024
|
+
${({$hasError:e})=>e&&kt}
|
|
1025
|
+
${({$disabled:e})=>e&&st}
|
|
1026
|
+
${({$checked:e})=>e&&Rv}
|
|
1027
|
+
`,Rv=S`
|
|
1002
1028
|
background-color: var(--color-main-orange-primary);
|
|
1003
1029
|
border-color: var(--color-main-orange-primary);
|
|
1004
|
-
`,
|
|
1005
|
-
height:
|
|
1006
|
-
width:
|
|
1030
|
+
`,Lv=P.svg`
|
|
1031
|
+
height: ${({$size:e})=>Yt[e]};
|
|
1032
|
+
width: ${({$size:e})=>Yt[e]};
|
|
1007
1033
|
color: ${({$disabled:e})=>e?"var(--color-dark-200)":"white"};
|
|
1008
1034
|
fill: none;
|
|
1009
1035
|
stroke: currentColor;
|
|
1010
|
-
`,
|
|
1036
|
+
`,_v=P.span`
|
|
1011
1037
|
display: block;
|
|
1012
|
-
width: 60
|
|
1013
|
-
height: 2px;
|
|
1038
|
+
width: ${({$size:e})=>e==="xs"?"50%":"60%"};
|
|
1039
|
+
height: ${({$size:e})=>e==="xs"?"1.5px":"2px"};
|
|
1014
1040
|
background-color: white;
|
|
1015
1041
|
border-radius: 1px;
|
|
1016
|
-
`,
|
|
1042
|
+
`,pi=p.forwardRef(({size:e="md",hasError:t=!1,indeterminate:n=!1,checked:r,disabled:o=!1,onChange:i,className:s,checkboxClassName:a,...l},c)=>{const d=p.useId(),u=l.id??d,h=!!r,f=p.useRef(null),m=p.useCallback(y=>{if(f.current=y,!!c)if(typeof c=="function")try{c(y)}catch{}else c.current=y},[c]);return p.useEffect(()=>{f.current&&(f.current.indeterminate=!!n)},[n]),g.jsxs(Vv,{className:s,children:[g.jsx(Fv,{ref:m,type:"checkbox",checked:h||!1,disabled:o,onChange:i,id:u,name:l.name,"aria-invalid":t||void 0,"aria-disabled":o||void 0,"aria-checked":n?"mixed":h?"true":"false",$size:e,...l}),g.jsxs(Iv,{$checked:!!h||!!n,$hasError:t,$disabled:o,$size:e,className:a,children:[h&&!n&&g.jsx(Lv,{$disabled:o,$size:e,viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e==="xs"?2.5:3,d:"M5 13l4 4L19 7"})}),n&&g.jsx(_v,{$size:e})]})]})});pi.displayName="CheckboxInput";const su=({children:e,size:t="md",disabled:n=!1,htmlFor:r,onLabelClick:o,className:i,onClick:s,...a})=>{const l=c=>{n||(o&&o(),s&&s(c))};return g.jsx(fr,{size:t,disabled:n,htmlFor:r,onClick:l,className:i,...a,children:e})},Nv=P.section`
|
|
1017
1043
|
display: flex;
|
|
1018
1044
|
align-items: center;
|
|
1019
1045
|
justify-content: center;
|
|
1020
1046
|
gap: 1rem;
|
|
1021
|
-
`,
|
|
1047
|
+
`,Sn=p.forwardRef(({size:e="md",label:t,hasError:n=!1,indeterminate:r=!1,checked:o,disabled:i=!1,onChange:s,onLabelClick:a,className:l,checkboxClassName:c,labelClassName:d,...u},h)=>{const f=p.useId(),m=u.id??f;return g.jsxs(Nv,{className:l,children:[g.jsx(pi,{ref:h,size:e,hasError:n,indeterminate:r,checked:o,disabled:i,onChange:s,checkboxClassName:c,id:m,...u}),t&&g.jsx(su,{size:e,disabled:i,htmlFor:m,onLabelClick:a,className:d,children:t})]})});Sn.displayName="Checkbox";const Ov=P.div`
|
|
1022
1048
|
position: relative;
|
|
1023
1049
|
display: inline-block;
|
|
1024
|
-
`,
|
|
1025
|
-
${
|
|
1050
|
+
`,Bv=P.input`
|
|
1051
|
+
${Tt}
|
|
1026
1052
|
text-align: center;
|
|
1027
1053
|
padding: 0;
|
|
1028
1054
|
|
|
@@ -1035,15 +1061,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1035
1061
|
&[type='number'] {
|
|
1036
1062
|
-moz-appearance: textfield;
|
|
1037
1063
|
}
|
|
1038
|
-
${({$size:e})=>
|
|
1039
|
-
${({$variant:e})=>e&&
|
|
1040
|
-
${({$hasError:e})=>e&&
|
|
1041
|
-
${({$disabled:e})=>e&&
|
|
1064
|
+
${({$size:e})=>Hv[e]}
|
|
1065
|
+
${({$variant:e})=>e&&zv[e??"outlined"]}
|
|
1066
|
+
${({$hasError:e})=>e&&kt}
|
|
1067
|
+
${({$disabled:e})=>e&&st}
|
|
1042
1068
|
|
|
1043
1069
|
&:focus {
|
|
1044
1070
|
border: 2px solid var(--color-main-blue-primary);
|
|
1045
1071
|
}
|
|
1046
|
-
`,
|
|
1072
|
+
`,zv={outlined:`
|
|
1047
1073
|
background-color: var(--color-main-white);
|
|
1048
1074
|
border: 2px solid var(--color-main-input-borders);
|
|
1049
1075
|
|
|
@@ -1053,37 +1079,42 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1053
1079
|
`,filled:`
|
|
1054
1080
|
background-color: var(--color-main-alternative-secondary);
|
|
1055
1081
|
border: 2px solid transparent;
|
|
1056
|
-
|
|
1082
|
+
|
|
1057
1083
|
&:hover:not(:focus) {
|
|
1058
1084
|
background-color: var(--color-main-alternative-secondary);
|
|
1059
1085
|
}
|
|
1060
|
-
|
|
1086
|
+
|
|
1061
1087
|
&:focus {
|
|
1062
1088
|
background-color: var(--color-main-white);
|
|
1063
1089
|
border: 2px solid var(--color-main-blue-primary);
|
|
1064
1090
|
}
|
|
1065
|
-
`},
|
|
1091
|
+
`},Hv={xs:`
|
|
1092
|
+
padding: 0.25rem;
|
|
1093
|
+
width: 2rem;
|
|
1094
|
+
height: 2rem;
|
|
1095
|
+
${F[20]}
|
|
1096
|
+
`,sm:`
|
|
1066
1097
|
padding: 0.375rem;
|
|
1067
1098
|
width: 2.5rem;
|
|
1068
1099
|
height: 2.5rem;
|
|
1069
|
-
${
|
|
1100
|
+
${F[24]}
|
|
1070
1101
|
`,md:`
|
|
1071
1102
|
padding: 0.625rem;
|
|
1072
1103
|
width: 3rem;
|
|
1073
1104
|
height: 3.5rem;
|
|
1074
|
-
${
|
|
1105
|
+
${F[30]}
|
|
1075
1106
|
`,lg:`
|
|
1076
1107
|
padding: 0.75rem;
|
|
1077
1108
|
width: 3.5rem;
|
|
1078
1109
|
height: 4rem;
|
|
1079
|
-
${
|
|
1080
|
-
`},
|
|
1110
|
+
${F[40]}
|
|
1111
|
+
`},mi=p.forwardRef(({size:e="md",hasError:t=!1,variant:n="outlined",disabled:r=!1,className:o,maxLength:i=1,type:s="text",...a},l)=>{const c=p.useId(),d=a.id??c;return g.jsx(Ov,{children:g.jsx(Bv,{ref:l,$size:e,$hasError:t,$disabled:r,$variant:n,className:o,maxLength:i,type:s,disabled:r,id:d,"aria-invalid":t||void 0,"aria-disabled":r||void 0,...a})})});mi.displayName="PinInput";const au=(e,t,n,r,o,i,s="text",a,l)=>{const c=e.target.value;if(c.length>1)return;const d=i??o.length;if(s==="number"&&c&&!/^\d$/.test(c))return;const u=[...n];u[t]=c,r(u);const h=u.join("");a?.(h),c&&t<i-1&&o[t+1].current?.focus(),u.every(f=>f!=="")&&u.length>=d&&l?.(h)},lu=(e,t,n,r,o,i)=>{if(e.key==="Backspace"&&!n[t]&&t>0){if(n[t]){if(o){r[t-1].current?.focus();const s=[...n];s[t-1]="",o(s),i?.(s.join(""))}return}if(t>0&&(r[t-1].current?.focus(),o)){const s=[...n];s[t-1]="",o(s),i?.(s.join(""))}}e.key==="ArrowLeft"&&t>0&&r[t-1]?.current?.focus(),e.key==="ArrowRight"&&t<r.length-1&&r[t+1]?.current?.focus()},cu=(e,t,n,r,o,i,s="text",a,l)=>{e.preventDefault();const c=e.clipboardData.getData("text");if(!c)return;const d=i??o.length,u=[...n];for(let y=0;y<c.length;y++){const x=t+y;if(x>=d)break;const v=c[y];s==="number"&&!/^\d$/.test(v)||(u[x]=v)}r(u),a?.(u.join(""));const h=u.findIndex(y=>y===""),f=h!==-1?Math.min(Math.max(h,t),d-1):d-1;o[f].current?.focus();const m=u.join("");u.every(y=>y!=="")&&u.length>=d&&l?.(m)},uu=e=>Array(e).fill(null).map(()=>p.createRef()),jv=(e,t,n="text")=>!(e.length!==t||n==="number"&&!/^\d+$/.test(e)),Gv=P.div`
|
|
1081
1112
|
display: flex;
|
|
1082
1113
|
gap: 8px;
|
|
1083
1114
|
align-items: center;
|
|
1084
|
-
`,
|
|
1115
|
+
`,gi=({length:e=6,size:t="md",variant:n="outlined",hasError:r=!1,type:o="number",onChange:i,onComplete:s,className:a,pinInputClassName:l})=>{const[c,d]=p.useState(Array(e).fill("")),u=p.useMemo(()=>uu(e),[e]);return g.jsx(Gv,{className:a,children:Array.from({length:e},(h,f)=>g.jsx(mi,{className:l,size:t,variant:n,hasError:r,value:c[f],onChange:m=>au(m,f,c,d,u,e,o,i,s),onKeyDown:m=>lu(m,f,c,u,d,i),onPaste:m=>cu(m,f,c,d,u,e,o,i,s),ref:u[f]},f))})};gi.displayName="PinInputGroup";const Uv=P.div`
|
|
1085
1116
|
position: relative;
|
|
1086
|
-
`,
|
|
1117
|
+
`,Wv=P.input`
|
|
1087
1118
|
position: absolute;
|
|
1088
1119
|
height: 1.5rem;
|
|
1089
1120
|
width: 1.5rem;
|
|
@@ -1101,9 +1132,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1101
1132
|
outline-color: var(--color-main-orange-primary);
|
|
1102
1133
|
outline-offset: 2px;
|
|
1103
1134
|
}
|
|
1104
|
-
`,
|
|
1135
|
+
`,Kv=S`
|
|
1105
1136
|
border-color: var(--color-main-orange-primary);
|
|
1106
|
-
`,
|
|
1137
|
+
`,Yv=P.div`
|
|
1107
1138
|
height: 1.5rem;
|
|
1108
1139
|
width: 1.5rem;
|
|
1109
1140
|
border: 2px solid var(--color-main-input-borders);
|
|
@@ -1121,11 +1152,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1121
1152
|
border-color: var(--color-main-warning-state);
|
|
1122
1153
|
`}
|
|
1123
1154
|
${({$disabled:e})=>e&&`
|
|
1124
|
-
${
|
|
1155
|
+
${st}
|
|
1125
1156
|
border: 2px solid var(--color-dark-200) !important;
|
|
1126
1157
|
`}
|
|
1127
|
-
${({$checked:e})=>e&&
|
|
1128
|
-
`,
|
|
1158
|
+
${({$checked:e})=>e&&Kv}
|
|
1159
|
+
`,qv=P.span`
|
|
1129
1160
|
display: block;
|
|
1130
1161
|
height: 0.625rem;
|
|
1131
1162
|
width: 0.625rem;
|
|
@@ -1134,21 +1165,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1134
1165
|
background-color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-orange-primary)"};
|
|
1135
1166
|
opacity: ${({$checked:e})=>e?1:0};
|
|
1136
1167
|
transform: ${({$checked:e})=>e?"scale(1)":"scale(0.6)"};
|
|
1137
|
-
`,
|
|
1168
|
+
`,yi=p.forwardRef(({hasError:e=!1,checked:t,disabled:n=!1,onChange:r,className:o,dotClassName:i,...s},a)=>{const l=p.useId(),c=s.id??l,d=!!t,{size:u,...h}=s;return g.jsxs(Uv,{className:o,children:[g.jsx(Wv,{ref:a,type:"radio",id:c,checked:d||!1,disabled:n,onChange:r,"aria-invalid":e||void 0,"aria-disabled":n||void 0,"aria-checked":d?"true":"false",...h}),g.jsx(Yv,{$checked:!!d,$hasError:e,$disabled:n,className:i,children:g.jsx(qv,{$disabled:n,$checked:d})})]})});yi.displayName="RadioInputDot";const vi=({children:e,htmlFor:t,className:n,disabled:r=!1,size:o="md",...i})=>g.jsx(fr,{className:n,htmlFor:t,size:o,disabled:r,...i,children:e});vi.displayName="RadioInputLabel";const Xv=P.section`
|
|
1138
1169
|
display: flex;
|
|
1139
1170
|
align-items: center;
|
|
1140
1171
|
justify-content: center;
|
|
1141
1172
|
gap: 1rem;
|
|
1142
|
-
`,
|
|
1173
|
+
`,wi=p.forwardRef(({size:e="md",label:t,hasError:n=!1,checked:r,disabled:o=!1,onChange:i,className:s,dotClassName:a,labelClassName:l,...c},d)=>{const u=p.useId(),h=c.id??u;return g.jsxs(Xv,{className:s,children:[g.jsx(yi,{ref:d,size:e,hasError:n,checked:r,disabled:o,onChange:i,dotClassName:a,id:h,...c}),t&&g.jsx(vi,{size:e,disabled:o,htmlFor:h,className:l,children:t})]})});wi.displayName="RadioInput";const Zv=({name:e,required:t=!1,onChange:n,onOptionSelect:r,onRadioChange:o,onPinComplete:i,options:s=[]})=>{const[a,l,c]=kd.useField(e),d=p.useMemo(()=>!!(l.error&&(l.touched||l.value)),[l.error,l.touched,l.value]),u=p.useMemo(()=>d?l.error:void 0,[d,l.error]),h=p.useMemo(()=>a.name||e,[a.name,e]),f=p.useMemo(()=>({required:t||void 0,"aria-required":t||void 0,"aria-invalid":d||void 0,"aria-describedby":d?`${h}-error`:void 0}),[t,d,h]),m=p.useCallback(b=>{n?n(b):a.onChange(b)},[n,a]),y=p.useCallback(b=>{n?n(b):a.onChange(b)},[n,a]),x=p.useCallback(b=>{c.setValue(b.target.checked)},[c]),v=p.useCallback(b=>{a.onChange(b);const $=s.find(k=>String(k.value)===b.target.value);$&&r?.($)},[a,s,r]),T=p.useCallback((b,$)=>{const k=b.target.value,E=typeof $=="number"?Number(k):k;c.setValue(E),o?.(b)},[c,o]),w=p.useCallback(b=>{c.setValue(b)},[c]),M=p.useCallback(b=>{c.setValue(b),i?.(b)},[c,i]);return{field:a,meta:l,helpers:c,hasError:d,errorMessage:u,inputId:h,ariaProps:f,handleStandardChange:m,handleTextAreaChange:y,handleCheckboxChange:x,handleSelectChange:v,handleRadioChange:T,handlePinChange:w,handlePinComplete:M}},Jv=["text","email","number","tel","url","date","datetime-local","time"],Qv=P.div`
|
|
1143
1174
|
display: flex;
|
|
1144
1175
|
flex-direction: column;
|
|
1145
|
-
gap: 0.
|
|
1146
|
-
|
|
1147
|
-
`,gy=S.div`
|
|
1176
|
+
gap: 0.75rem;
|
|
1177
|
+
`,du=({type:e,inputId:t,name:n,size:r,hasError:o,disabled:i,placeholder:s,inputClassName:a,fieldValue:l,ariaProps:c,options:d=[],onSelectChange:u,checkboxLabel:h,onCheckboxChange:f,radioName:m,onRadioChange:y,pinLength:x=6,pinType:v="number",onPinChange:T,onPinComplete:w,onStandardChange:M,onTextAreaChange:b,leftIcon:$,rightIcon:k,iconSize:E,iconColor:D,additionalProps:A={}})=>{switch(e){case"textarea":return g.jsx(fi,{id:t,name:n,className:a,hasError:o,disabled:i,value:l??"",size:r,placeholder:s,onChange:b,...A,...c});case"select":return g.jsx(mr,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,value:l??"",onChange:u,options:d,placeholder:s||"Selecciona una opción",...A,...c});case"checkbox":return g.jsx(Sn,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,checked:!!l,label:h,onChange:f,...A,...c});case"radio":{const I=d;return g.jsx(Qv,{children:I.map(N=>g.jsx(wi,{name:m||n,value:N.value,label:N.label,size:r,hasError:o,disabled:i,checked:l===N.value,onChange:j=>y?.(j,N.value),...c},N.value))})}case"pin":return g.jsx(gi,{length:x,type:v,size:r,hasError:o,onChange:T,onComplete:w,...A,...c});case"password":{const{...I}=A;return g.jsx(eu,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,placeholder:s,leftIcon:$,iconSize:E,iconColor:D,onChange:M,...I,...c})}case"search":return g.jsx(hi,{className:a,size:r,placeholder:s,leftIcon:$,rightIcon:k,iconSize:E,iconColor:D,onSearch:A.onSearch,...c});default:return g.jsx(di,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,placeholder:s,type:Jv.includes(e)?e:"text",leftIcon:$,rightIcon:k,iconSize:E,iconColor:D,value:l??"",onChange:M,...A,...c})}};du.displayName="FieldRenderer";const e1=P.div`
|
|
1148
1178
|
display: flex;
|
|
1149
1179
|
flex-direction: column;
|
|
1150
|
-
gap: 0.
|
|
1151
|
-
|
|
1180
|
+
gap: 0.5rem;
|
|
1181
|
+
width: 100%;
|
|
1182
|
+
`,t1=p.memo(({inputId:e,label:t,size:n,required:r,disabled:o,hasError:i,errorMessage:s,isCheckbox:a=!1,className:l,labelClassName:c,messageErrorClassName:d,children:u})=>g.jsxs(e1,{className:l,children:[t&&!a&&g.jsx(fr,{htmlFor:e,size:n,required:r,disabled:o,className:c,children:t}),u,i&&s&&g.jsx(ui,{id:`${e}-error`,size:n,className:d,children:s})]})),n1=({id:e,name:t,label:n,type:r="text",size:o="md",placeholder:i,disabled:s=!1,required:a=!1,options:l=[],checkboxLabel:c,radioName:d,pinLength:u=6,pinType:h="number",rows:f=4,className:m,inputClassName:y,labelClassName:x,messageErrorClassName:v,leftIcon:T,rightIcon:w,iconSize:M,iconColor:b,onOptionSelect:$,onRadioChange:k,onPinComplete:E,onChange:D,...A})=>{const{field:I,hasError:N,errorMessage:j,inputId:G,ariaProps:X,handleStandardChange:O,handleTextAreaChange:R,handleCheckboxChange:W,handleSelectChange:q,handleRadioChange:Z,handlePinChange:de,handlePinComplete:le}=Zv({name:t,required:a,onChange:D,onOptionSelect:$,onRadioChange:k,onPinComplete:E,options:l}),H=e?.toString?.()||G;return g.jsx(t1,{inputId:H,label:n,size:o,required:a,disabled:s,hasError:N,errorMessage:j,isCheckbox:r==="checkbox",className:m,labelClassName:x,messageErrorClassName:v,children:g.jsx(du,{type:r,inputId:H,name:t,size:o,hasError:N,disabled:s,placeholder:i,inputClassName:y,fieldValue:I.value,ariaProps:X,options:l,onSelectChange:q,checkboxLabel:c,onCheckboxChange:W,radioName:d,onRadioChange:Z,pinLength:u,pinType:h,rows:f,onPinChange:de,onPinComplete:le,onStandardChange:O,onTextAreaChange:R,leftIcon:T,rightIcon:w,iconSize:M,iconColor:b,additionalProps:A})})},fu={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},bi={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},r1={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"}}},hu={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"}},o1=P(Ke.div)`
|
|
1152
1183
|
position: fixed;
|
|
1153
1184
|
inset: 0;
|
|
1154
1185
|
z-index: 50;
|
|
@@ -1162,7 +1193,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1162
1193
|
@media (max-width: 768px) {
|
|
1163
1194
|
padding: 0.5rem;
|
|
1164
1195
|
}
|
|
1165
|
-
`,
|
|
1196
|
+
`,i1=P(Ke.div)`
|
|
1166
1197
|
position: relative;
|
|
1167
1198
|
display: flex;
|
|
1168
1199
|
flex-direction: column;
|
|
@@ -1189,7 +1220,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1189
1220
|
outline: none;
|
|
1190
1221
|
box-shadow: var(--shadow-hover-black-card);
|
|
1191
1222
|
}
|
|
1192
|
-
`,
|
|
1223
|
+
`,s1=P.button`
|
|
1193
1224
|
position: absolute;
|
|
1194
1225
|
top: 1rem;
|
|
1195
1226
|
right: 1rem;
|
|
@@ -1208,7 +1239,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1208
1239
|
transform: scale(1.1);
|
|
1209
1240
|
outline: none;
|
|
1210
1241
|
}
|
|
1211
|
-
`,
|
|
1242
|
+
`,a1=e=>{const t=p.useRef(null),n=p.useRef(null);return p.useEffect(()=>{if(!e)return;n.current=document.activeElement;const r=t.current,o=()=>{r&&(r.hasAttribute("tabindex")||r.setAttribute("tabindex","-1"),r.focus())},i=window.setTimeout(o,0),s=l=>{const c=["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(l.querySelectorAll(c.join(","))).filter(d=>!!(d.offsetWidth||d.offsetHeight||d.getClientRects().length))},a=l=>{if(l.key!=="Tab"||!r)return;const c=s(r);if(c.length===0){l.preventDefault(),r.focus();return}const d=c[0],u=c[c.length-1],h=document.activeElement;!l.shiftKey&&h===u?(l.preventDefault(),d.focus()):l.shiftKey&&h===d&&(l.preventDefault(),u.focus())};return document.addEventListener("keydown",a),()=>{window.clearTimeout(i),document.removeEventListener("keydown",a),n.current&&n.current.focus()}},[e]),t},l1=(e,t,n=!0)=>{p.useEffect(()=>{if(!e||!n)return;const r=o=>{o.key==="Escape"&&t()};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[e,t,n])},c1=e=>{p.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e])},pu=({isOpen:e,onClose:t,children:n,className:r,closeOnBackdropClick:o=!0,showCloseButton:i=!1,size:s="md",fullScreen:a=!1,closeOnEsc:l=!0,ariaLabel:c,ariaLabelledBy:d,ariaDescribedBy:u})=>{const h=a1(e);l1(e,t,l),c1(e);const f=y=>{o&&y.target===y.currentTarget&&t()},m=g.jsx(gn,{children:e&&g.jsx(o1,{...bi,onClick:f,children:g.jsxs(i1,{...fu,ref:h,$size:s,$fullScreen:a,className:r,onClick:y=>y.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":c,"aria-labelledby":c?void 0:d,"aria-describedby":u,children:[i&&g.jsx(s1,{className:`${pr} cursor-pointer`,onClick:t,"aria-label":"Close dialog",children:g.jsx(Y,{component:Zc,size:"sm"})}),n]})})});return typeof document>"u"?m:Ji.createPortal(m,document.body)},u1=P.div`
|
|
1212
1243
|
display: flex;
|
|
1213
1244
|
align-items: center;
|
|
1214
1245
|
justify-content: space-between;
|
|
@@ -1241,7 +1272,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1241
1272
|
flex-shrink: 0;
|
|
1242
1273
|
margin-left: auto;
|
|
1243
1274
|
}
|
|
1244
|
-
`,
|
|
1275
|
+
`,mu=({showDivider:e=!1,variant:t="default",children:n,className:r,...o})=>g.jsx(u1,{$showDivider:e,$variant:t,className:r,...o,children:n}),d1=P.div`
|
|
1245
1276
|
position: relative;
|
|
1246
1277
|
display: flex;
|
|
1247
1278
|
flex-direction: column;
|
|
@@ -1254,7 +1285,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1254
1285
|
${({$showTopDivider:e})=>e&&"border-top: 1px solid var(--color-main-light-borders);"}
|
|
1255
1286
|
|
|
1256
1287
|
${({$showBottomDivider:e})=>e&&"border-bottom: 1px solid var(--color-main-light-borders);"}
|
|
1257
|
-
`,
|
|
1288
|
+
`,gu=({children:e,padded:t=!0,showTopDivider:n=!1,showBottomDivider:r=!1,className:o,...i})=>g.jsx(d1,{$padded:t,$showTopDivider:n,$showBottomDivider:r,className:o,...i,children:e}),f1=P.div`
|
|
1258
1289
|
display: flex;
|
|
1259
1290
|
align-items: center;
|
|
1260
1291
|
width: 100%;
|
|
@@ -1270,13 +1301,90 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1270
1301
|
bottom: 0;
|
|
1271
1302
|
background: var(--color-main-white);
|
|
1272
1303
|
`}
|
|
1273
|
-
`,
|
|
1304
|
+
`,yu=({align:e="end",showDivider:t=!1,gap:n=8,sticky:r=!1,children:o,className:i,...s})=>g.jsx(f1,{$align:e,$showDivider:t,$gap:n,$sticky:r,className:i,...s,children:o}),h1=({isOpen:e,onAccept:t,onCancel:n,title:r,subtitle:o,content:i,bodyFooter:s,confirmationLabel:a="I have read and agree to the Terms and Conditions",acceptLabel:l="Accept",cancelLabel:c="Cancel",size:d="md",fullScreen:u=!1,showCloseButton:h=!0,closeOnBackdropClick:f=!1,containerClassName:m,headerClassName:y,bodyClassName:x,footerClassName:v,initiallyConfirmed:T=!1,onConfirmChange:w})=>{const[M,b]=p.useState(T);p.useEffect(()=>{e||b(T)},[e,T]);const $=k=>{b(k),w?.(k)};return g.jsxs(pu,{isOpen:e,onClose:n,size:d,fullScreen:u,showCloseButton:h,closeOnBackdropClick:f,ariaLabelledBy:"tac-title",ariaDescribedBy:"tac-subtitle",className:`${m} !h-fit !max-w-[60rem]`,children:[g.jsx(mu,{showDivider:!0,className:y,children:g.jsx(zs,{id:"tac-title",size:20,children:r})}),g.jsxs(gu,{padded:!0,showBottomDivider:!0,className:x,children:[o&&g.jsx(Ge,{id:"tac-subtitle",size:16,children:o}),i,s]}),g.jsxs(yu,{showDivider:!0,align:"space-between",className:v,children:[g.jsx(Sn,{label:a,checked:M,onChange:k=>$(k.target.checked)}),g.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[g.jsx(Kt,{variant:"secondary",onClick:n,children:c}),g.jsx(Kt,{variant:"primary",onClick:t,disabled:!M,children:l})]})]})]})},p1=If`
|
|
1305
|
+
from {
|
|
1306
|
+
opacity: 0;
|
|
1307
|
+
}
|
|
1308
|
+
to {
|
|
1309
|
+
opacity: 1;
|
|
1310
|
+
}
|
|
1311
|
+
`,m1=P.div`
|
|
1312
|
+
position: relative;
|
|
1313
|
+
display: inline-block;
|
|
1314
|
+
`,g1=P.div`
|
|
1315
|
+
display: inline-block;
|
|
1316
|
+
cursor: pointer;
|
|
1317
|
+
`,y1=e=>{switch(e){case"top":return S`
|
|
1318
|
+
bottom: 100%;
|
|
1319
|
+
left: 50%;
|
|
1320
|
+
transform: translateX(-50%);
|
|
1321
|
+
margin-bottom: 0.5rem;
|
|
1322
|
+
`;case"bottom":return S`
|
|
1323
|
+
top: 100%;
|
|
1324
|
+
left: 50%;
|
|
1325
|
+
transform: translateX(-50%);
|
|
1326
|
+
margin-top: 0.5rem;
|
|
1327
|
+
`;case"left":return S`
|
|
1328
|
+
right: 100%;
|
|
1329
|
+
top: 50%;
|
|
1330
|
+
transform: translateY(-50%);
|
|
1331
|
+
margin-right: 0.5rem;
|
|
1332
|
+
`;case"right":return S`
|
|
1333
|
+
left: 100%;
|
|
1334
|
+
top: 50%;
|
|
1335
|
+
transform: translateY(-50%);
|
|
1336
|
+
margin-left: 0.5rem;
|
|
1337
|
+
`;default:return S``}},v1=P.div`
|
|
1338
|
+
position: absolute;
|
|
1339
|
+
z-index: 9999;
|
|
1340
|
+
pointer-events: auto;
|
|
1341
|
+
|
|
1342
|
+
/* Base styles */
|
|
1343
|
+
padding: 0.75rem;
|
|
1344
|
+
border-radius: var(--border-radius-outline);
|
|
1345
|
+
background-color: var(--color-dark-600);
|
|
1346
|
+
color: var(--color-main-white);
|
|
1347
|
+
font-size: 0.875rem;
|
|
1348
|
+
line-height: 1.5;
|
|
1349
|
+
box-shadow: var(--shadow-black-card);
|
|
1350
|
+
max-width: 20rem;
|
|
1351
|
+
word-wrap: break-word;
|
|
1352
|
+
|
|
1353
|
+
/* Animation */
|
|
1354
|
+
animation: ${p1} 0.2s ease-in-out;
|
|
1355
|
+
|
|
1356
|
+
/* Position based on placement */
|
|
1357
|
+
${({$placement:e})=>y1(e)}
|
|
1358
|
+
`,w1=e=>{switch(e){case"top":return S`
|
|
1359
|
+
bottom: -0.25rem;
|
|
1360
|
+
left: 50%;
|
|
1361
|
+
transform: translateX(-50%) rotate(45deg);
|
|
1362
|
+
`;case"bottom":return S`
|
|
1363
|
+
top: -0.25rem;
|
|
1364
|
+
left: 50%;
|
|
1365
|
+
transform: translateX(-50%) rotate(45deg);
|
|
1366
|
+
`;case"left":return S`
|
|
1367
|
+
right: -0.25rem;
|
|
1368
|
+
top: 50%;
|
|
1369
|
+
transform: translateY(-50%) rotate(45deg);
|
|
1370
|
+
`;case"right":return S`
|
|
1371
|
+
left: -0.25rem;
|
|
1372
|
+
top: 50%;
|
|
1373
|
+
transform: translateY(-50%) rotate(45deg);
|
|
1374
|
+
`;default:return S``}},b1=P.div`
|
|
1375
|
+
position: absolute;
|
|
1376
|
+
width: 0.5rem;
|
|
1377
|
+
height: 0.5rem;
|
|
1378
|
+
background-color: var(--color-dark-600);
|
|
1379
|
+
|
|
1380
|
+
${({$placement:e})=>w1(e)}
|
|
1381
|
+
`,vu=({content:e,children:t,placement:n="bottom",trigger:r="hover",className:o="",arrowClassName:i="",delay:s=200,showArrow:a=!0})=>{const[l,c]=p.useState(!1),d=p.useRef(null),u=p.useRef(null),h=p.useRef(null);p.useEffect(()=>{if(r!=="click"||!l)return;const v=T=>{u.current&&!u.current.contains(T.target)&&h.current&&!h.current.contains(T.target)&&c(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[l,r]),p.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const x=r==="hover"?{onMouseEnter:()=>{d.current&&clearTimeout(d.current),d.current=setTimeout(()=>c(!0),s)},onMouseLeave:()=>{d.current&&clearTimeout(d.current),d.current=setTimeout(()=>c(!1),100)}}:{onClick:()=>{c(v=>!v)}};return g.jsxs(m1,{children:[g.jsx(g1,{ref:h,...x,children:t}),l&&g.jsxs(v1,{ref:u,$placement:n,className:o,role:"tooltip","aria-hidden":!l,children:[e,a&&g.jsx(b1,{$placement:n,className:i})]})]})};vu.displayName="Tooltip";const xi=p.createContext(void 0),wu=({children:e})=>{const[t,n]=p.useState(!1),[r,o]=p.useState(!1);return g.jsx(xi.Provider,{value:{isCollapsed:t,setIsCollapsed:n,isMobileOpen:r,setIsMobileOpen:o},children:e})},Si=()=>{const e=p.useContext(xi);if(!e)throw new Error("useSidebar must be used within a SidebarProvider");return e},Ci=(e=[],t=[])=>!t||t.length===0?!1:t.includes("all")?!0:t.some(n=>e.includes(n)),x1=S`
|
|
1274
1382
|
display: flex;
|
|
1275
1383
|
align-items: center;
|
|
1276
1384
|
justify-content: center;
|
|
1277
1385
|
flex-shrink: 0;
|
|
1278
1386
|
user-select: none;
|
|
1279
|
-
`,
|
|
1387
|
+
`,bu=`
|
|
1280
1388
|
width: 100%;
|
|
1281
1389
|
display: flex;
|
|
1282
1390
|
align-items: center;
|
|
@@ -1293,8 +1401,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1293
1401
|
outline-color: var(--color-main-blue-primary);
|
|
1294
1402
|
outline-offset: -2px;
|
|
1295
1403
|
}
|
|
1296
|
-
`,
|
|
1297
|
-
${
|
|
1404
|
+
`,S1=P.button`
|
|
1405
|
+
${bu}
|
|
1298
1406
|
|
|
1299
1407
|
// Level-based padding
|
|
1300
1408
|
padding: ${({$level:e})=>e===0?"0.75rem 0.875rem":"0.55rem 0.75rem"};
|
|
@@ -1313,8 +1421,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1313
1421
|
}
|
|
1314
1422
|
|
|
1315
1423
|
${({$collapsed:e})=>e?"justify-content: center;":""}
|
|
1316
|
-
`,
|
|
1317
|
-
${
|
|
1424
|
+
`,C1=P.button`
|
|
1425
|
+
${bu}
|
|
1318
1426
|
|
|
1319
1427
|
// Level-based padding
|
|
1320
1428
|
padding: ${({$level:e})=>e===0?"0.75rem 0.875rem":"0.55rem 0.75rem"};
|
|
@@ -1333,36 +1441,36 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1333
1441
|
}
|
|
1334
1442
|
|
|
1335
1443
|
${({$collapsed:e})=>e?"justify-content: center;":""}
|
|
1336
|
-
`,
|
|
1444
|
+
`,T1=P.span`
|
|
1337
1445
|
display: inline-flex;
|
|
1338
1446
|
align-items: center;
|
|
1339
1447
|
gap: 0.75rem;
|
|
1340
1448
|
min-width: 0;
|
|
1341
|
-
|
|
1449
|
+
`,k1=P(Ge)`
|
|
1342
1450
|
font-weight: ${({$level:e})=>e===0?600:500};
|
|
1343
1451
|
color: var(--color-main-blue-primary);
|
|
1344
1452
|
white-space: nowrap;
|
|
1345
1453
|
overflow: hidden;
|
|
1346
1454
|
text-overflow: ellipsis;
|
|
1347
|
-
`,
|
|
1455
|
+
`,P1=P(Ke.div)`
|
|
1348
1456
|
background-color: transparent;
|
|
1349
1457
|
overflow: hidden;
|
|
1350
1458
|
will-change: height, opacity, transform;
|
|
1351
|
-
|
|
1459
|
+
`,$1=P.div`
|
|
1352
1460
|
width: 100%;
|
|
1353
1461
|
${({$level:e})=>e>0?"border-top: 1px solid var(--color-light-200);":""}
|
|
1354
|
-
`,
|
|
1462
|
+
`,E1=P.span`
|
|
1355
1463
|
width: 0.625rem;
|
|
1356
1464
|
height: 0.125rem;
|
|
1357
1465
|
background: var(--color-main-blue-primary);
|
|
1358
1466
|
border-radius: 1px;
|
|
1359
1467
|
flex: 0 0 auto;
|
|
1360
|
-
`,
|
|
1361
|
-
${
|
|
1468
|
+
`,M1=P.div`
|
|
1469
|
+
${x1}
|
|
1362
1470
|
transform: rotate(${({$open:e})=>e?"90deg":"0deg"});
|
|
1363
1471
|
pointer-events: none;
|
|
1364
1472
|
transition: transform 0.3s ease-out;
|
|
1365
|
-
`,
|
|
1473
|
+
`,xu=({item:e,userRoles:t,level:n=0,activePath:r,onNavigate:o})=>{const[i,s]=p.useState(!1),{isCollapsed:a,setIsMobileOpen:l,setIsCollapsed:c}=Si(),d=p.useMemo(()=>(e.children||[]).filter(w=>Ci(t,w.permissions)),[e.children,t]);if(!p.useMemo(()=>Ci(t,e.permissions),[t,e.permissions]))return null;const h=d.length>0,f=e.href||e.path||"",m=!!(f&&r&&r.startsWith(f)),y=()=>{a&&c(!1),s(w=>!w)},x=()=>{a&&c(!1),e.href&&o?.(e.href)},v=async()=>{if(a&&c(!1),!!e.path)try{typeof window<"u"&&window.open(e.path,"_blank","noopener,noreferrer"),l&&l(!1)}catch(w){console.error("Error al navegar a microservicio:",w)}},T=()=>g.jsxs(g.Fragment,{children:[g.jsxs(T1,{children:[n>0&&!a&&g.jsx(E1,{}),e.icon&&g.jsx(Y,{component:e.icon,size:n===0?"md":"sm",color:"var(--color-main-blue-primary)"}),!a&&g.jsx(k1,{$level:n,size:n===0?16:n===1?14:12,color:"var(--color-dark-700, #374151)",children:e.label})]}),!a&&h&&g.jsx(M1,{$disabled:a,$open:i,children:g.jsx(Y,{component:Iy,size:"sm",color:"var(--color-main-blue-primary)"})})]});return g.jsxs($1,{$level:n,children:[e.href&&!e.path&&!h?g.jsx(S1,{type:"button",onClick:x,$level:n,$collapsed:a,$active:m,title:a?e.label:"",children:T()}):g.jsx(C1,{type:"button",onClick:h?y:e.path?v:x,$level:n,$collapsed:a,$active:m,$expanded:i&&h,title:a?e.label:"",children:T()}),g.jsx(gn,{initial:!1,children:!a&&i&&h&&g.jsx(P1,{$level:n+1,...hu,children:d.map(w=>g.jsx(xu,{item:w,userRoles:t,level:n+1,onNavigate:o,activePath:r},w.id))})})]})},Su=P(Ke.div)`
|
|
1366
1474
|
position: fixed;
|
|
1367
1475
|
inset: 0;
|
|
1368
1476
|
background: rgba(0, 0, 0, 0.5);
|
|
@@ -1371,7 +1479,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1371
1479
|
@media (max-width: 767px) {
|
|
1372
1480
|
display: block;
|
|
1373
1481
|
}
|
|
1374
|
-
`,
|
|
1482
|
+
`,Cu=P.aside`
|
|
1375
1483
|
position: fixed;
|
|
1376
1484
|
left: 0;
|
|
1377
1485
|
top: 0;
|
|
@@ -1390,7 +1498,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1390
1498
|
@media (min-width: 768px) {
|
|
1391
1499
|
transform: translateX(0);
|
|
1392
1500
|
}
|
|
1393
|
-
`,
|
|
1501
|
+
`,Tu=P.div`
|
|
1394
1502
|
display: flex;
|
|
1395
1503
|
align-items: center;
|
|
1396
1504
|
justify-content: space-between;
|
|
@@ -1398,11 +1506,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1398
1506
|
padding: 1rem;
|
|
1399
1507
|
|
|
1400
1508
|
${({$collapsed:e})=>e?"flex-direction: column":""};
|
|
1401
|
-
`,
|
|
1509
|
+
`,ku=P.div`
|
|
1402
1510
|
display: flex;
|
|
1403
1511
|
align-items: center;
|
|
1404
1512
|
gap: 0.5rem;
|
|
1405
|
-
`,
|
|
1513
|
+
`,Pu=P.nav`
|
|
1406
1514
|
display: flex;
|
|
1407
1515
|
flex-direction: column;
|
|
1408
1516
|
justify-content: flex-start;
|
|
@@ -1410,7 +1518,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1410
1518
|
flex: 1;
|
|
1411
1519
|
overflow-y: auto;
|
|
1412
1520
|
padding: 0.25rem 0;
|
|
1413
|
-
|
|
1521
|
+
`,$u=P.button`
|
|
1414
1522
|
display: flex;
|
|
1415
1523
|
align-items: center;
|
|
1416
1524
|
justify-content: center;
|
|
@@ -1436,7 +1544,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1436
1544
|
@media (max-width: 767px) {
|
|
1437
1545
|
display: none;
|
|
1438
1546
|
}
|
|
1439
|
-
`,
|
|
1547
|
+
`,Eu=P.button`
|
|
1440
1548
|
position: fixed;
|
|
1441
1549
|
top: 0.5rem;
|
|
1442
1550
|
left: 1rem;
|
|
@@ -1447,7 +1555,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1447
1555
|
@media (min-width: 768px) {
|
|
1448
1556
|
display: none;
|
|
1449
1557
|
}
|
|
1450
|
-
`,
|
|
1558
|
+
`,Ti=({navigationConfig:e,userRoles:t=[],activePath:n,logoImgExpanded:r,logoImgCollapsed:o,onNavigate:i=()=>{}})=>{const{isCollapsed:s,setIsCollapsed:a,isMobileOpen:l,setIsMobileOpen:c}=Si(),d=u=>{i(u),typeof window<"u"&&window.innerWidth<768&&c(!1)};return g.jsxs(g.Fragment,{children:[g.jsx(gn,{children:l&&g.jsx(Su,{...bi,onClick:()=>c(!1)})}),g.jsxs(Cu,{$collapsed:l?!1:s,$open:l,children:[g.jsxs(Tu,{$collapsed:s,children:[g.jsx(ku,{children:s?o:r}),g.jsx($u,{onClick:()=>a(!s),"aria-label":"Toggle collapse",children:g.jsx(Y,{component:Jc,size:"md",color:"var(--color-main-blue-primary)"})})]}),g.jsx(Pu,{children:e.map(u=>g.jsx(xu,{item:u,userRoles:t,onNavigate:d,activePath:n},u.id))})]}),g.jsx(Eu,{onClick:()=>{c(!0),a(!1)},$hidden:l,children:g.jsx(Y,{component:Jc,size:30})})]})};Ti.displayName="Sidebar";const Mu={underlined:S`
|
|
1451
1559
|
color: var(--color-main-orange-primary);
|
|
1452
1560
|
text-decoration-thickness: 1px;
|
|
1453
1561
|
text-underline-offset: 2px;
|
|
@@ -1477,7 +1585,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1477
1585
|
text-decoration-thickness: 1px;
|
|
1478
1586
|
text-underline-offset: 2px;
|
|
1479
1587
|
}
|
|
1480
|
-
`,plain:
|
|
1588
|
+
`,plain:S`
|
|
1481
1589
|
color: var(--color-main-orange-primary);
|
|
1482
1590
|
text-decoration: none;
|
|
1483
1591
|
|
|
@@ -1507,7 +1615,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1507
1615
|
text-decoration-thickness: 1px;
|
|
1508
1616
|
text-underline-offset: 2px;
|
|
1509
1617
|
}
|
|
1510
|
-
`}
|
|
1618
|
+
`},Au=S`
|
|
1511
1619
|
color: var(--color-dark-200);
|
|
1512
1620
|
cursor: not-allowed;
|
|
1513
1621
|
pointer-events: none;
|
|
@@ -1525,16 +1633,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1525
1633
|
text-decoration: none;
|
|
1526
1634
|
transform: none;
|
|
1527
1635
|
}
|
|
1528
|
-
`,
|
|
1636
|
+
`,Du={sm:S`
|
|
1529
1637
|
gap: 0.25rem;
|
|
1530
|
-
${
|
|
1531
|
-
`,md:
|
|
1638
|
+
${F[14]}
|
|
1639
|
+
`,md:S`
|
|
1532
1640
|
gap: 0.5rem;
|
|
1533
|
-
${
|
|
1534
|
-
`,lg:
|
|
1641
|
+
${F[16]}
|
|
1642
|
+
`,lg:S`
|
|
1535
1643
|
gap: 0.75rem;
|
|
1536
|
-
${
|
|
1537
|
-
`},
|
|
1644
|
+
${F[20]}
|
|
1645
|
+
`},A1=P.a`
|
|
1538
1646
|
display: inline-flex;
|
|
1539
1647
|
align-items: center;
|
|
1540
1648
|
border-radius: 0.25rem;
|
|
@@ -1546,19 +1654,31 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1546
1654
|
|
|
1547
1655
|
cursor: pointer;
|
|
1548
1656
|
|
|
1549
|
-
${({$size:e})=>
|
|
1550
|
-
${({$variant:e})=>
|
|
1551
|
-
${({$disabled:e})=>e
|
|
1552
|
-
`,
|
|
1657
|
+
${({$size:e})=>Du[e]}
|
|
1658
|
+
${({$variant:e})=>Mu[e]}
|
|
1659
|
+
${({$disabled:e})=>e&&Au}
|
|
1660
|
+
`,D1=P.span`
|
|
1553
1661
|
flex: 1 1 auto;
|
|
1554
1662
|
min-width: 0;
|
|
1555
1663
|
max-width: 18ch;
|
|
1556
|
-
${({$truncate:e})=>e&&
|
|
1664
|
+
${({$truncate:e})=>e&&S`
|
|
1557
1665
|
overflow: hidden;
|
|
1558
1666
|
text-overflow: ellipsis;
|
|
1559
1667
|
white-space: nowrap;
|
|
1560
1668
|
`}
|
|
1561
|
-
`,
|
|
1669
|
+
`,Vu=p.forwardRef(({id:e,size:t="md",variant:n="underlined",children:r,href:o,target:i,rel:s,className:a,disabled:l=!1,tabIndex:c,leftIcon:d,rightIcon:u,iconSize:h="tn",iconColor:f="currentColor",truncate:m=!1,"aria-label":y,"aria-describedby":x,onClick:v,...T},w)=>{const M=p.useCallback($=>{if(l){$.preventDefault();return}v?.($)},[l,v]),b={href:l?void 0:o,target:i||void 0,rel:s??(i==="_blank"?"noopener noreferrer":void 0),onClick:M,"aria-label":y??r,"aria-describedby":x,"aria-disabled":l,tabIndex:l?-1:c??0,...T};return g.jsxs(A1,{id:e,$variant:n,$size:t,$disabled:l,className:a,ref:w,...b,children:[d&&g.jsx(Y,{component:d,size:h,color:f}),g.jsx(D1,{$truncate:m,children:r}),g.jsx(Y,{component:u||Ly,size:t==="lg"?"sm":h,color:f})]})});Vu.displayName="Link";function V1(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function at(e,t){return typeof e=="function"?e(t):e}function Se(e,t){return n=>{t.setState(r=>({...r,[e]:at(n,r[e])}))}}function gr(e){return e instanceof Function}function F1(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function I1(e,t){const n=[],r=o=>{o.forEach(i=>{n.push(i);const s=t(i);s!=null&&s.length&&r(s)})};return r(e),n}function L(e,t,n){let r=[],o;return i=>{let s;n.key&&n.debug&&(s=Date.now());const a=e(i);if(!(a.length!==r.length||a.some((d,u)=>r[u]!==d)))return o;r=a;let c;if(n.key&&n.debug&&(c=Date.now()),o=t(...a),n==null||n.onChange==null||n.onChange(o),n.key&&n.debug&&n!=null&&n.debug()){const d=Math.round((Date.now()-s)*100)/100,u=Math.round((Date.now()-c)*100)/100,h=u/16,f=(m,y)=>{for(m=String(m);m.length<y;)m=" "+m;return m};console.info(`%c⏱ ${f(u,5)} /${f(d,5)} ms`,`
|
|
1670
|
+
font-size: .6rem;
|
|
1671
|
+
font-weight: bold;
|
|
1672
|
+
color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,n?.key)}return o}}function _(e,t,n,r){return{debug:()=>{var o;return(o=e?.debugAll)!=null?o:e[t]},key:process.env.NODE_ENV==="development"&&n,onChange:r}}function R1(e,t,n,r){const o=()=>{var s;return(s=i.getValue())!=null?s:e.options.renderFallbackValue},i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:o,getContext:L(()=>[e,n,t,i],(s,a,l,c)=>({table:s,column:a,row:l,cell:c,getValue:c.getValue,renderValue:c.renderValue}),_(e.options,"debugCells","cell.getContext"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(i,n,t,e)},{}),i}function L1(e,t,n,r){var o,i;const a={...e._getDefaultColumnDef(),...t},l=a.accessorKey;let c=(o=(i=a.id)!=null?i:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?o:typeof a.header=="string"?a.header:void 0,d;if(a.accessorFn?d=a.accessorFn:l&&(l.includes(".")?d=h=>{let f=h;for(const y of l.split(".")){var m;f=(m=f)==null?void 0:m[y],process.env.NODE_ENV!=="production"&&f===void 0&&console.warn(`"${y}" in deeply nested key "${l}" returned undefined.`)}return f}:d=h=>h[a.accessorKey]),!c)throw process.env.NODE_ENV!=="production"?new Error(a.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let u={id:`${String(c)}`,accessorFn:d,parent:r,depth:n,columnDef:a,columns:[],getFlatColumns:L(()=>[!0],()=>{var h;return[u,...(h=u.columns)==null?void 0:h.flatMap(f=>f.getFlatColumns())]},_(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:L(()=>[e._getOrderColumnsFn()],h=>{var f;if((f=u.columns)!=null&&f.length){let m=u.columns.flatMap(y=>y.getLeafColumns());return h(m)}return[u]},_(e.options,"debugColumns","column.getLeafColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(u,e);return u}const pe="debugHeaders";function Fu(e,t,n){var r;let i={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],a=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(a),s.push(l)};return a(i),s},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(s=>{s.createHeader==null||s.createHeader(i,e)}),i}const _1={createTable:e=>{e.getHeaderGroups=L(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,s;const a=(i=r?.map(u=>n.find(h=>h.id===u)).filter(Boolean))!=null?i:[],l=(s=o?.map(u=>n.find(h=>h.id===u)).filter(Boolean))!=null?s:[],c=n.filter(u=>!(r!=null&&r.includes(u.id))&&!(o!=null&&o.includes(u.id)));return yr(t,[...a,...c,...l],e)},_(e.options,pe,"getHeaderGroups")),e.getCenterHeaderGroups=L(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(i=>!(r!=null&&r.includes(i.id))&&!(o!=null&&o.includes(i.id))),yr(t,n,e,"center")),_(e.options,pe,"getCenterHeaderGroups")),e.getLeftHeaderGroups=L(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=(o=r?.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?o:[];return yr(t,i,e,"left")},_(e.options,pe,"getLeftHeaderGroups")),e.getRightHeaderGroups=L(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=(o=r?.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?o:[];return yr(t,i,e,"right")},_(e.options,pe,"getRightHeaderGroups")),e.getFooterGroups=L(()=>[e.getHeaderGroups()],t=>[...t].reverse(),_(e.options,pe,"getFooterGroups")),e.getLeftFooterGroups=L(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),_(e.options,pe,"getLeftFooterGroups")),e.getCenterFooterGroups=L(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),_(e.options,pe,"getCenterFooterGroups")),e.getRightFooterGroups=L(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),_(e.options,pe,"getRightFooterGroups")),e.getFlatHeaders=L(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),_(e.options,pe,"getFlatHeaders")),e.getLeftFlatHeaders=L(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),_(e.options,pe,"getLeftFlatHeaders")),e.getCenterFlatHeaders=L(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),_(e.options,pe,"getCenterFlatHeaders")),e.getRightFlatHeaders=L(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),_(e.options,pe,"getRightFlatHeaders")),e.getCenterLeafHeaders=L(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),_(e.options,pe,"getCenterLeafHeaders")),e.getLeftLeafHeaders=L(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),_(e.options,pe,"getLeftLeafHeaders")),e.getRightLeafHeaders=L(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),_(e.options,pe,"getRightLeafHeaders")),e.getLeafHeaders=L(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var o,i,s,a,l,c;return[...(o=(i=t[0])==null?void 0:i.headers)!=null?o:[],...(s=(a=n[0])==null?void 0:a.headers)!=null?s:[],...(l=(c=r[0])==null?void 0:c.headers)!=null?l:[]].map(d=>d.getLeafHeaders()).flat()},_(e.options,pe,"getLeafHeaders"))}};function yr(e,t,n,r){var o,i;let s=0;const a=function(h,f){f===void 0&&(f=1),s=Math.max(s,f),h.filter(m=>m.getIsVisible()).forEach(m=>{var y;(y=m.columns)!=null&&y.length&&a(m.columns,f+1)},0)};a(e);let l=[];const c=(h,f)=>{const m={depth:f,id:[r,`${f}`].filter(Boolean).join("_"),headers:[]},y=[];h.forEach(x=>{const v=[...y].reverse()[0],T=x.column.depth===m.depth;let w,M=!1;if(T&&x.column.parent?w=x.column.parent:(w=x.column,M=!0),v&&v?.column===w)v.subHeaders.push(x);else{const b=Fu(n,w,{id:[r,f,w.id,x?.id].filter(Boolean).join("_"),isPlaceholder:M,placeholderId:M?`${y.filter($=>$.column===w).length}`:void 0,depth:f,index:y.length});b.subHeaders.push(x),y.push(b)}m.headers.push(x),x.headerGroup=m}),l.push(m),f>0&&c(y,f-1)},d=t.map((h,f)=>Fu(n,h,{depth:s,index:f}));c(d,s-1),l.reverse();const u=h=>h.filter(m=>m.column.getIsVisible()).map(m=>{let y=0,x=0,v=[0];m.subHeaders&&m.subHeaders.length?(v=[],u(m.subHeaders).forEach(w=>{let{colSpan:M,rowSpan:b}=w;y+=M,v.push(b)})):y=1;const T=Math.min(...v);return x=x+T,m.colSpan=y,m.rowSpan=x,{colSpan:y,rowSpan:x}});return u((o=(i=l[0])==null?void 0:i.headers)!=null?o:[]),l}const ki=(e,t,n,r,o,i,s)=>{let a={id:t,index:r,original:n,depth:o,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(a._valuesCache.hasOwnProperty(l))return a._valuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return a._valuesCache[l]=c.accessorFn(a.original,r),a._valuesCache[l]},getUniqueValues:l=>{if(a._uniqueValuesCache.hasOwnProperty(l))return a._uniqueValuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(a._uniqueValuesCache[l]=c.columnDef.getUniqueValues(a.original,r),a._uniqueValuesCache[l]):(a._uniqueValuesCache[l]=[a.getValue(l)],a._uniqueValuesCache[l])},renderValue:l=>{var c;return(c=a.getValue(l))!=null?c:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>I1(a.subRows,l=>l.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let l=[],c=a;for(;;){const d=c.getParentRow();if(!d)break;l.push(d),c=d}return l.reverse()},getAllCells:L(()=>[e.getAllLeafColumns()],l=>l.map(c=>R1(e,a,c,c.id)),_(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:L(()=>[a.getAllCells()],l=>l.reduce((c,d)=>(c[d.column.id]=d,c),{}),_(e.options,"debugRows","getAllCellsByColumnId"))};for(let l=0;l<e._features.length;l++){const c=e._features[l];c==null||c.createRow==null||c.createRow(a,e)}return a},N1={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Iu=(e,t,n)=>{var r,o;const i=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((o=e.getValue(t))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(i))};Iu.autoRemove=e=>Re(e);const Ru=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};Ru.autoRemove=e=>Re(e);const Lu=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===n?.toLowerCase()};Lu.autoRemove=e=>Re(e);const _u=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};_u.autoRemove=e=>Re(e);const Nu=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});Nu.autoRemove=e=>Re(e)||!(e!=null&&e.length);const Ou=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});Ou.autoRemove=e=>Re(e)||!(e!=null&&e.length);const Bu=(e,t,n)=>e.getValue(t)===n;Bu.autoRemove=e=>Re(e);const zu=(e,t,n)=>e.getValue(t)==n;zu.autoRemove=e=>Re(e);const Pi=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};Pi.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,o=typeof n!="number"?parseFloat(n):n,i=t===null||Number.isNaN(r)?-1/0:r,s=n===null||Number.isNaN(o)?1/0:o;if(i>s){const a=i;i=s,s=a}return[i,s]},Pi.autoRemove=e=>Re(e)||Re(e[0])&&Re(e[1]);const Ye={includesString:Iu,includesStringSensitive:Ru,equalsString:Lu,arrIncludes:_u,arrIncludesAll:Nu,arrIncludesSome:Ou,equals:Bu,weakEquals:zu,inNumberRange:Pi};function Re(e){return e==null||e===""}const O1={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Se("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n?.getValue(e.id);return typeof r=="string"?Ye.includesString:typeof r=="number"?Ye.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Ye.equals:Array.isArray(r)?Ye.arrIncludes:Ye.weakEquals},e.getFilterFn=()=>{var n,r;return gr(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:Ye[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const o=e.getFilterFn(),i=r?.find(d=>d.id===e.id),s=at(n,i?i.value:void 0);if(Hu(o,s,e)){var a;return(a=r?.filter(d=>d.id!==e.id))!=null?a:[]}const l={id:e.id,value:s};if(i){var c;return(c=r?.map(d=>d.id===e.id?l:d))!=null?c:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=o=>{var i;return(i=at(t,o))==null?void 0:i.filter(s=>{const a=n.find(l=>l.id===s.id);if(a){const l=a.getFilterFn();if(Hu(l,s.value,a))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Hu(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const $i={sum:(e,t,n)=>n.reduce((r,o)=>{const i=o.getValue(e);return r+(typeof i=="number"?i:0)},0),min:(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}),r},max:(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(i=>{const s=i.getValue(e);s!=null&&(r===void 0?s>=s&&(r=o=s):(r>s&&(r=s),o<s&&(o=s)))}),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(o=>{let i=o.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!F1(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),o=n.sort((i,s)=>i-s);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(n=>n.getValue(e))).size,count:(e,t)=>t.length},B1={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Se("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n?.getValue(e.id);if(typeof r=="number")return $i.sum;if(Object.prototype.toString.call(r)==="[object Date]")return $i.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return gr(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:$i[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}}};function z1(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(i=>!t.includes(i.id));return n==="remove"?r:[...t.map(i=>e.find(s=>s.id===i)).filter(Boolean),...r]}const H1={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Se("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=L(n=>[Cn(t,n)],n=>n.findIndex(r=>r.id===e.id),_(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=Cn(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=Cn(t,n);return((r=o[o.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=L(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>o=>{let i=[];if(!(t!=null&&t.length))i=o;else{const s=[...t],a=[...o];for(;a.length&&s.length;){const l=s.shift(),c=a.findIndex(d=>d.id===l);c>-1&&i.push(a.splice(c,1)[0])}i=[...i,...a]}return z1(i,n,r)},_(e.options,"debugTable","_getOrderColumnsFn"))}},Ei=()=>({left:[],right:[]}),j1={getInitialState:e=>({columnPinning:Ei(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Se("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var i,s;if(n==="right"){var a,l;return{left:((a=o?.left)!=null?a:[]).filter(u=>!(r!=null&&r.includes(u))),right:[...((l=o?.right)!=null?l:[]).filter(u=>!(r!=null&&r.includes(u))),...r]}}if(n==="left"){var c,d;return{left:[...((c=o?.left)!=null?c:[]).filter(u=>!(r!=null&&r.includes(u))),...r],right:((d=o?.right)!=null?d:[]).filter(u=>!(r!=null&&r.includes(u)))}}return{left:((i=o?.left)!=null?i:[]).filter(u=>!(r!=null&&r.includes(u))),right:((s=o?.right)!=null?s:[]).filter(u=>!(r!=null&&r.includes(u)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,i,s;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((i=(s=t.options.enableColumnPinning)!=null?s:t.options.enablePinning)!=null?i:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(a=>a.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(a=>r?.includes(a)),s=n.some(a=>o?.includes(a));return i?"left":s?"right":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?(n=(r=t.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=L(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,o)=>{const i=[...r??[],...o??[]];return n.filter(s=>!i.includes(s.column.id))},_(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=L(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),_(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=L(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),_(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?Ei():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Ei())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var o,i;return!!((o=r.left)!=null&&o.length||(i=r.right)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=L(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),_(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=L(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),_(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=L(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const o=[...n??[],...r??[]];return t.filter(i=>!o.includes(i.id))},_(e.options,"debugColumns","getCenterLeafColumns"))}};function G1(e){return e||(typeof document<"u"?document:null)}const vr={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Mi=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),U1={getDefaultColumnDef:()=>vr,getInitialState:e=>({columnSizing:{},columnSizingInfo:Mi(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Se("columnSizing",e),onColumnSizingInfoChange:Se("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:vr.minSize,(r=i??e.columnDef.size)!=null?r:vr.size),(o=e.columnDef.maxSize)!=null?o:vr.maxSize)},e.getStart=L(n=>[n,Cn(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((o,i)=>o+i.getSize(),0),_(t.options,"debugColumns","getStart")),e.getAfter=L(n=>[n,Cn(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((o,i)=>o+i.getSize(),0),_(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...o}=n;return o})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var i;n+=(i=o.column.getSize())!=null?i:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=r?.getCanResize();return i=>{if(!r||!o||(i.persist==null||i.persist(),Ai(i)&&i.touches&&i.touches.length>1))return;const s=e.getSize(),a=e?e.getLeafHeaders().map(v=>[v.column.id,v.column.getSize()]):[[r.id,r.getSize()]],l=Ai(i)?Math.round(i.touches[0].clientX):i.clientX,c={},d=(v,T)=>{typeof T=="number"&&(t.setColumnSizingInfo(w=>{var M,b;const $=t.options.columnResizeDirection==="rtl"?-1:1,k=(T-((M=w?.startOffset)!=null?M:0))*$,E=Math.max(k/((b=w?.startSize)!=null?b:0),-.999999);return w.columnSizingStart.forEach(D=>{let[A,I]=D;c[A]=Math.round(Math.max(I+I*E,0)*100)/100}),{...w,deltaOffset:k,deltaPercentage:E}}),(t.options.columnResizeMode==="onChange"||v==="end")&&t.setColumnSizing(w=>({...w,...c})))},u=v=>d("move",v),h=v=>{d("end",v),t.setColumnSizingInfo(T=>({...T,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=G1(n),m={moveHandler:v=>u(v.clientX),upHandler:v=>{f?.removeEventListener("mousemove",m.moveHandler),f?.removeEventListener("mouseup",m.upHandler),h(v.clientX)}},y={moveHandler:v=>(v.cancelable&&(v.preventDefault(),v.stopPropagation()),u(v.touches[0].clientX),!1),upHandler:v=>{var T;f?.removeEventListener("touchmove",y.moveHandler),f?.removeEventListener("touchend",y.upHandler),v.cancelable&&(v.preventDefault(),v.stopPropagation()),h((T=v.touches[0])==null?void 0:T.clientX)}},x=W1()?{passive:!1}:!1;Ai(i)?(f?.addEventListener("touchmove",y.moveHandler,x),f?.addEventListener("touchend",y.upHandler,x)):(f?.addEventListener("mousemove",m.moveHandler,x),f?.addEventListener("mouseup",m.upHandler,x)),t.setColumnSizingInfo(v=>({...v,startOffset:l,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?Mi():(n=e.initialState.columnSizingInfo)!=null?n:Mi())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0}}};let wr=null;function W1(){if(typeof wr=="boolean")return wr;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return wr=e,wr}function Ai(e){return e.type==="touchstart"}const K1={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Se("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return(n=o.length?o.some(i=>i.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=L(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),_(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=L(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],_(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,r)=>L(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),_(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function Cn(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Y1={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},q1={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Se("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,i;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Ye.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return gr(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Ye[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},X1={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Se("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,i;e.setExpanded(r?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const s=i.split(".");r=Math.max(r,s.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const i=r===!0?!0:!!(r!=null&&r[e.id]);let s={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(a=>{s[a]=!0}):s=r,n=(o=n)!=null?o:!i,!i&&n)return{...s,[e.id]:!0};if(i&&!n){const{[e.id]:a,...l}=s;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r?.[e.id])},e.getCanExpand=()=>{var n,r,o;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Di=0,Vi=10,Fi=()=>({pageIndex:Di,pageSize:Vi}),Z1={getInitialState:e=>({...e,pagination:{...Fi(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:Se("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const o=i=>at(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?Fi():(o=e.initialState.pagination)!=null?o:Fi())},e.setPageIndex=r=>{e.setPagination(o=>{let i=at(r,o.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,s)),{...o,pageIndex:i}})},e.resetPageIndex=r=>{var o,i;e.setPageIndex(r?Di:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?o:Di)},e.resetPageSize=r=>{var o,i;e.setPageSize(r?Vi:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?o:Vi)},e.setPageSize=r=>{e.setPagination(o=>{const i=Math.max(1,at(r,o.pageSize)),s=o.pageSize*o.pageIndex,a=Math.floor(s/i);return{...o,pageIndex:a,pageSize:i}})},e.setPageCount=r=>e.setPagination(o=>{var i;let s=at(r,(i=e.options.pageCount)!=null?i:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...o,pageCount:s}}),e.getPageOptions=L(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,s)=>s)),o},_(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},Ii=()=>({top:[],bottom:[]}),J1={getInitialState:e=>({rowPinning:Ii(),...e}),getDefaultOptions:e=>({onRowPinningChange:Se("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(l=>{let{id:c}=l;return c}):[],s=o?e.getParentRows().map(l=>{let{id:c}=l;return c}):[],a=new Set([...s,e.id,...i]);t.setRowPinning(l=>{var c,d;if(n==="bottom"){var u,h;return{top:((u=l?.top)!=null?u:[]).filter(y=>!(a!=null&&a.has(y))),bottom:[...((h=l?.bottom)!=null?h:[]).filter(y=>!(a!=null&&a.has(y))),...Array.from(a)]}}if(n==="top"){var f,m;return{top:[...((f=l?.top)!=null?f:[]).filter(y=>!(a!=null&&a.has(y))),...Array.from(a)],bottom:((m=l?.bottom)!=null?m:[]).filter(y=>!(a!=null&&a.has(y)))}}return{top:((c=l?.top)!=null?c:[]).filter(y=>!(a!=null&&a.has(y))),bottom:((d=l?.bottom)!=null?d:[]).filter(y=>!(a!=null&&a.has(y)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return typeof r=="function"?r(e):(n=r??o)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(a=>r?.includes(a)),s=n.some(a=>o?.includes(a));return i?"top":s?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=(n=o==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(s=>{let{id:a}=s;return a});return(r=i?.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?Ii():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Ii())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var o,i;return!!((o=r.top)!=null&&o.length||(i=r.bottom)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(n??[]).map(s=>{const a=e.getRow(s,!0);return a.getIsAllParentsExpanded()?a:null}):(n??[]).map(s=>t.find(a=>a.id===s))).filter(Boolean).map(s=>({...s,position:r}))},e.getTopRows=L(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),_(e.options,"debugRows","getTopRows")),e.getBottomRows=L(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),_(e.options,"debugRows","getBottomRows")),e.getCenterRows=L(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const o=new Set([...n??[],...r??[]]);return t.filter(i=>!o.has(i.id))},_(e.options,"debugRows","getCenterRows"))}},Q1={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Se("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(i=>{i.getCanSelect()&&(r[i.id]=!0)}):o.forEach(i=>{delete r[i.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(i=>{Ri(o,i.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=L(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Li(e,n):{rows:[],flatRows:[],rowsById:{}},_(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=L(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Li(e,n):{rows:[],flatRows:[],rowsById:{}},_(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=L(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Li(e,n):{rows:[],flatRows:[],rowsById:{}},_(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(o=>o.getCanSelect()&&!n[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(o=>!n[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(i=>{var s;if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return i;const a={...i};return Ri(a,e.id,n,(s=r?.selectChildren)!=null?s:!0,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return _i(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Ni(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Ni(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var o;n&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},Ri=(e,t,n,r,o)=>{var i;const s=o.getRow(t,!0);n?(s.getCanMultiSelect()||Object.keys(e).forEach(a=>delete e[a]),s.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(i=s.subRows)!=null&&i.length&&s.getCanSelectSubRows()&&s.subRows.forEach(a=>Ri(e,a.id,n,r,o))};function Li(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(s,a){return s.map(l=>{var c;const d=_i(l,n);if(d&&(r.push(l),o[l.id]=l),(c=l.subRows)!=null&&c.length&&(l={...l,subRows:i(l.subRows)}),d)return l}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function _i(e,t){var n;return(n=t[e.id])!=null?n:!1}function Ni(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,i=!1;return e.subRows.forEach(s=>{if(!(i&&!o)&&(s.getCanSelect()&&(_i(s,t)?i=!0:o=!1),s.subRows&&s.subRows.length)){const a=Ni(s,t);a==="all"?i=!0:(a==="some"&&(i=!0),o=!1)}}),o?"all":i?"some":!1}const Oi=/([0-9]+)/gm,ew=(e,t,n)=>ju(lt(e.getValue(n)).toLowerCase(),lt(t.getValue(n)).toLowerCase()),tw=(e,t,n)=>ju(lt(e.getValue(n)),lt(t.getValue(n))),nw=(e,t,n)=>Bi(lt(e.getValue(n)).toLowerCase(),lt(t.getValue(n)).toLowerCase()),rw=(e,t,n)=>Bi(lt(e.getValue(n)),lt(t.getValue(n))),ow=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},iw=(e,t,n)=>Bi(e.getValue(n),t.getValue(n));function Bi(e,t){return e===t?0:e>t?1:-1}function lt(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function ju(e,t){const n=e.split(Oi).filter(Boolean),r=t.split(Oi).filter(Boolean);for(;n.length&&r.length;){const o=n.shift(),i=r.shift(),s=parseInt(o,10),a=parseInt(i,10),l=[s,a].sort();if(isNaN(l[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(l[1]))return isNaN(s)?-1:1;if(s>a)return 1;if(a>s)return-1}return n.length-r.length}const Tn={alphanumeric:ew,alphanumericCaseSensitive:tw,text:nw,textCaseSensitive:rw,datetime:ow,basic:iw},sw=[_1,K1,H1,j1,N1,O1,Y1,q1,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Se("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of n){const i=o?.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return Tn.datetime;if(typeof i=="string"&&(r=!0,i.split(Oi).length>1))return Tn.alphanumeric}return r?Tn.text:Tn.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof n?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return gr(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Tn[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(s=>{const a=s?.find(f=>f.id===e.id),l=s?.findIndex(f=>f.id===e.id);let c=[],d,u=i?n:o==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&r?a?d="toggle":d="add":s!=null&&s.length&&l!==s.length-1?d="replace":a?d="toggle":d="replace",d==="toggle"&&(i||o||(d="remove")),d==="add"){var h;c=[...s,{id:e.id,desc:u}],c.splice(0,c.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else d==="toggle"?c=s.map(f=>f.id===e.id?{...f,desc:u}:f):d==="remove"?c=s.filter(f=>f.id!==e.id):c=[{id:e.id,desc:u}];return c})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==i&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(o=t.options.enableMultiRemove)!=null)||o)?!1:s==="desc"?"asc":"desc":i},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},B1,X1,Z1,J1,Q1,U1];function aw(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...sw,...(t=e._features)!=null?t:[]];let o={_features:r};const i=o._features.reduce((h,f)=>Object.assign(h,f.getDefaultOptions==null?void 0:f.getDefaultOptions(o)),{}),s=h=>o.options.mergeOptions?o.options.mergeOptions(i,h):{...i,...h};let l={...{},...(n=e.initialState)!=null?n:{}};o._features.forEach(h=>{var f;l=(f=h.getInitialState==null?void 0:h.getInitialState(l))!=null?f:l});const c=[];let d=!1;const u={_features:r,options:{...i,...e},initialState:l,_queue:h=>{c.push(h),d||(d=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();d=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{o.setState(o.initialState)},setOptions:h=>{const f=at(h,o.options);o.options=s(f)},getState:()=>o.options.state,setState:h=>{o.options.onStateChange==null||o.options.onStateChange(h)},_getRowId:(h,f,m)=>{var y;return(y=o.options.getRowId==null?void 0:o.options.getRowId(h,f,m))!=null?y:`${m?[m.id,f].join("."):f}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(h,f)=>{let m=(f?o.getPrePaginationRowModel():o.getRowModel()).rowsById[h];if(!m&&(m=o.getCoreRowModel().rowsById[h],!m))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${h}`):new Error;return m},_getDefaultColumnDef:L(()=>[o.options.defaultColumn],h=>{var f;return h=(f=h)!=null?f:{},{header:m=>{const y=m.header.column.columnDef;return y.accessorKey?y.accessorKey:y.accessorFn?y.id:null},cell:m=>{var y,x;return(y=(x=m.renderValue())==null||x.toString==null?void 0:x.toString())!=null?y:null},...o._features.reduce((m,y)=>Object.assign(m,y.getDefaultColumnDef==null?void 0:y.getDefaultColumnDef()),{}),...h}},_(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:L(()=>[o._getColumnDefs()],h=>{const f=function(m,y,x){return x===void 0&&(x=0),m.map(v=>{const T=L1(o,v,x,y),w=v;return T.columns=w.columns?f(w.columns,T,x+1):[],T})};return f(h)},_(e,"debugColumns","getAllColumns")),getAllFlatColumns:L(()=>[o.getAllColumns()],h=>h.flatMap(f=>f.getFlatColumns()),_(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:L(()=>[o.getAllFlatColumns()],h=>h.reduce((f,m)=>(f[m.id]=m,f),{}),_(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:L(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(h,f)=>{let m=h.flatMap(y=>y.getLeafColumns());return f(m)},_(e,"debugColumns","getAllLeafColumns")),getColumn:h=>{const f=o._getAllFlatColumnsById()[h];return process.env.NODE_ENV!=="production"&&!f&&console.error(`[Table] Column with id '${h}' does not exist.`),f}};Object.assign(o,u);for(let h=0;h<o._features.length;h++){const f=o._features[h];f==null||f.createTable==null||f.createTable(o)}return o}function lw(){return e=>L(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(o,i,s){i===void 0&&(i=0);const a=[];for(let c=0;c<o.length;c++){const d=ki(e,e._getRowId(o[c],c,s),o[c],c,i,void 0,s?.id);if(n.flatRows.push(d),n.rowsById[d.id]=d,a.push(d),e.options.getSubRows){var l;d.originalSubRows=e.options.getSubRows(o[c],c),(l=d.originalSubRows)!=null&&l.length&&(d.subRows=r(d.originalSubRows,i+1,d))}}return a};return n.rows=r(t),n},_(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function cw(e,t,n){return n.options.filterFromLeafRows?uw(e,t,n):dw(e,t,n)}function uw(e,t,n){var r;const o=[],i={},s=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,a=function(l,c){c===void 0&&(c=0);const d=[];for(let h=0;h<l.length;h++){var u;let f=l[h];const m=ki(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);if(m.columnFilters=f.columnFilters,(u=f.subRows)!=null&&u.length&&c<s){if(m.subRows=a(f.subRows,c+1),f=m,t(f)&&!m.subRows.length){d.push(f),i[f.id]=f,o.push(f);continue}if(t(f)||m.subRows.length){d.push(f),i[f.id]=f,o.push(f);continue}}else f=m,t(f)&&(d.push(f),i[f.id]=f,o.push(f))}return d};return{rows:a(e),flatRows:o,rowsById:i}}function dw(e,t,n){var r;const o=[],i={},s=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,a=function(l,c){c===void 0&&(c=0);const d=[];for(let h=0;h<l.length;h++){let f=l[h];if(t(f)){var u;if((u=f.subRows)!=null&&u.length&&c<s){const y=ki(n,f.id,f.original,f.index,f.depth,void 0,f.parentId);y.subRows=a(f.subRows,c+1),f=y}d.push(f),o.push(f),i[f.id]=f}}return d};return{rows:a(e),flatRows:o,rowsById:i}}function fw(){return e=>L(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let h=0;h<t.flatRows.length;h++)t.flatRows[h].columnFilters={},t.flatRows[h].columnFiltersMeta={};return t}const o=[],i=[];(n??[]).forEach(h=>{var f;const m=e.getColumn(h.id);if(!m)return;const y=m.getFilterFn();if(!y){process.env.NODE_ENV!=="production"&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${m.id}.`);return}o.push({id:h.id,filterFn:y,resolvedValue:(f=y.resolveFilterValue==null?void 0:y.resolveFilterValue(h.value))!=null?f:h.value})});const s=(n??[]).map(h=>h.id),a=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(h=>h.getCanGlobalFilter());r&&a&&l.length&&(s.push("__global__"),l.forEach(h=>{var f;i.push({id:h.id,filterFn:a,resolvedValue:(f=a.resolveFilterValue==null?void 0:a.resolveFilterValue(r))!=null?f:r})}));let c,d;for(let h=0;h<t.flatRows.length;h++){const f=t.flatRows[h];if(f.columnFilters={},o.length)for(let m=0;m<o.length;m++){c=o[m];const y=c.id;f.columnFilters[y]=c.filterFn(f,y,c.resolvedValue,x=>{f.columnFiltersMeta[y]=x})}if(i.length){for(let m=0;m<i.length;m++){d=i[m];const y=d.id;if(d.filterFn(f,y,d.resolvedValue,x=>{f.columnFiltersMeta[y]=x})){f.columnFilters.__global__=!0;break}}f.columnFilters.__global__!==!0&&(f.columnFilters.__global__=!1)}}const u=h=>{for(let f=0;f<s.length;f++)if(h.columnFilters[s[f]]===!1)return!1;return!0};return cw(t.rows,u,e)},_(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function hw(){return e=>L(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,o=[],i=r.filter(l=>{var c;return(c=e.getColumn(l.id))==null?void 0:c.getCanSort()}),s={};i.forEach(l=>{const c=e.getColumn(l.id);c&&(s[l.id]={sortUndefined:c.columnDef.sortUndefined,invertSorting:c.columnDef.invertSorting,sortingFn:c.getSortingFn()})});const a=l=>{const c=l.map(d=>({...d}));return c.sort((d,u)=>{for(let f=0;f<i.length;f+=1){var h;const m=i[f],y=s[m.id],x=y.sortUndefined,v=(h=m?.desc)!=null?h:!1;let T=0;if(x){const w=d.getValue(m.id),M=u.getValue(m.id),b=w===void 0,$=M===void 0;if(b||$){if(x==="first")return b?-1:1;if(x==="last")return b?1:-1;T=b&&$?0:b?x:-x}}if(T===0&&(T=y.sortingFn(d,u,m.id)),T!==0)return v&&(T*=-1),y.invertSorting&&(T*=-1),T}return d.index-u.index}),c.forEach(d=>{var u;o.push(d),(u=d.subRows)!=null&&u.length&&(d.subRows=a(d.subRows))}),c};return{rows:a(n.rows),flatRows:o,rowsById:n.rowsById}},_(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}function br(e,t){return e?pw(e)?ft.createElement(e,t):e:null}function pw(e){return mw(e)||typeof e=="function"||gw(e)}function mw(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function gw(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function yw(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=ft.useState(()=>({current:aw(t)})),[r,o]=ft.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...r,...e.state},onStateChange:s=>{o(s),e.onStateChange==null||e.onStateChange(s)}})),n.current}const vw=S`
|
|
1673
|
+
@media (max-width: 768px) {
|
|
1674
|
+
font-size: 0.875rem;
|
|
1675
|
+
|
|
1676
|
+
th,
|
|
1677
|
+
td {
|
|
1678
|
+
padding: 0.5rem 0.75rem;
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
`,ww={default:S`
|
|
1562
1682
|
thead tr:last-child th:first-child {
|
|
1563
1683
|
border-top-left-radius: var(--border-radius-article);
|
|
1564
1684
|
}
|
|
@@ -1574,13 +1694,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1574
1694
|
tbody tr:last-child td:last-child {
|
|
1575
1695
|
border-bottom-right-radius: var(--border-radius-article);
|
|
1576
1696
|
}
|
|
1577
|
-
`,striped:
|
|
1697
|
+
`,striped:S`
|
|
1578
1698
|
border-radius: var(--border-radius-article);
|
|
1579
1699
|
tbody tr:nth-child(even) td {
|
|
1580
|
-
background-color: var(--color-dark-200);
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1583
|
-
tbody tr:nth-child(even):hover td {
|
|
1584
1700
|
background-color: var(--color-main-alternative-secondary);
|
|
1585
1701
|
}
|
|
1586
1702
|
|
|
@@ -1599,50 +1715,68 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1599
1715
|
tbody tr:last-child td:last-child {
|
|
1600
1716
|
border-bottom-right-radius: var(--border-radius-article);
|
|
1601
1717
|
}
|
|
1602
|
-
`},
|
|
1603
|
-
tbody tr:hover td {
|
|
1604
|
-
background-color: var(--color-main-alternative-secondary);
|
|
1605
|
-
}
|
|
1606
|
-
`,Nc=b`
|
|
1607
|
-
@media (max-width: 768px) {
|
|
1608
|
-
font-size: 0.875rem;
|
|
1609
|
-
|
|
1610
|
-
th,
|
|
1611
|
-
td {
|
|
1612
|
-
padding: 0.5rem 0.75rem;
|
|
1613
|
-
}
|
|
1614
|
-
}
|
|
1615
|
-
`,ei=b`
|
|
1616
|
-
display: flex;
|
|
1617
|
-
align-items: center;
|
|
1618
|
-
gap: 0.5rem;
|
|
1619
|
-
width: 100%;
|
|
1620
|
-
overflow: hidden;
|
|
1621
|
-
`,ft={sm:b`
|
|
1718
|
+
`},qt={sm:S`
|
|
1622
1719
|
padding: 0.5rem 1rem;
|
|
1623
1720
|
min-height: 2.25rem;
|
|
1624
|
-
`,md:
|
|
1721
|
+
`,md:S`
|
|
1625
1722
|
padding: 0.625rem 1.25rem;
|
|
1626
1723
|
min-height: 2.5rem;
|
|
1627
|
-
`,lg:
|
|
1724
|
+
`,lg:S`
|
|
1628
1725
|
padding: 0.75rem 1.5rem;
|
|
1629
1726
|
min-height: 2.75rem;
|
|
1630
|
-
`},
|
|
1727
|
+
`},Gu=S`
|
|
1728
|
+
display: flex;
|
|
1729
|
+
align-items: center;
|
|
1730
|
+
gap: 0.5rem;
|
|
1731
|
+
width: 100%;
|
|
1732
|
+
`,bw=P.div`
|
|
1733
|
+
position: relative;
|
|
1734
|
+
border-radius: var(--border-radius-article);
|
|
1735
|
+
overflow: ${({$maxHeight:e})=>e?"auto":"visible"};
|
|
1736
|
+
max-height: ${({$maxHeight:e})=>e?typeof e=="number"?`${e}px`:e:"none"};
|
|
1737
|
+
`,Uu=P.table`
|
|
1738
|
+
width: 100%;
|
|
1739
|
+
border-collapse: separate;
|
|
1740
|
+
border-spacing: 0;
|
|
1741
|
+
table-layout: auto;
|
|
1742
|
+
border-radius: var(--border-radius-article);
|
|
1743
|
+
border: 1px solid var(--color-main-light-borders);
|
|
1744
|
+
|
|
1745
|
+
${({$variant:e})=>ww[e]}
|
|
1746
|
+
${vw}
|
|
1747
|
+
`,xw=P.thead`
|
|
1748
|
+
${({$sticky:e})=>e&&S`
|
|
1749
|
+
position: sticky;
|
|
1750
|
+
top: 0;
|
|
1751
|
+
z-index: 10;
|
|
1752
|
+
`}
|
|
1753
|
+
`,Wu=P.tr`
|
|
1754
|
+
&:hover {
|
|
1755
|
+
background-color: var(--color-main-alternative-secondary);
|
|
1756
|
+
}
|
|
1757
|
+
${({$clickable:e})=>e&&S`
|
|
1758
|
+
cursor: pointer;
|
|
1759
|
+
`}
|
|
1760
|
+
`;P.span`
|
|
1631
1761
|
display: inline-flex;
|
|
1632
1762
|
align-items: center;
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
${
|
|
1639
|
-
${
|
|
1640
|
-
`,
|
|
1641
|
-
${
|
|
1642
|
-
${
|
|
1643
|
-
|
|
1763
|
+
justify-content: center;
|
|
1764
|
+
transition: transform 0.2s ease-out;
|
|
1765
|
+
opacity: ${({$direction:e})=>e==="none"?.5:1};
|
|
1766
|
+
transform: ${({$direction:e})=>e==="asc"?"rotate(180deg)":"none"};
|
|
1767
|
+
`;const Sw={sm:S`
|
|
1768
|
+
${qt.sm}
|
|
1769
|
+
${F[12]}
|
|
1770
|
+
`,md:S`
|
|
1771
|
+
${qt.md}
|
|
1772
|
+
${F[16]}
|
|
1773
|
+
`,lg:S`
|
|
1774
|
+
${qt.lg}
|
|
1775
|
+
${F[16]}
|
|
1776
|
+
`},Cw=P.th`
|
|
1644
1777
|
background-color: var(--color-main-blue-primary);
|
|
1645
|
-
|
|
1778
|
+
color: var(--color-main-white);
|
|
1779
|
+
${({$size:e})=>Sw[e]}
|
|
1646
1780
|
transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
|
|
1647
1781
|
min-width: 8rem;
|
|
1648
1782
|
width: ${({$width:e})=>e?typeof e=="number"?`${e}px`:e:"fit-content"};
|
|
@@ -1651,13 +1785,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1651
1785
|
background-color: var(--color-purple-600);
|
|
1652
1786
|
}
|
|
1653
1787
|
|
|
1654
|
-
${({$active:e})=>e&&
|
|
1788
|
+
${({$active:e})=>e&&S`
|
|
1655
1789
|
background-color: var(--color-blue-400);
|
|
1656
1790
|
`}
|
|
1657
|
-
`,
|
|
1658
|
-
${
|
|
1791
|
+
`,Ku=P.div`
|
|
1792
|
+
${Gu};
|
|
1659
1793
|
justify-content: ${({$align:e})=>e||"space-between"};
|
|
1660
|
-
`,
|
|
1794
|
+
`,Yu=P.button`
|
|
1661
1795
|
all: unset;
|
|
1662
1796
|
display: inline-flex;
|
|
1663
1797
|
align-items: center;
|
|
@@ -1667,109 +1801,270 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1667
1801
|
cursor: pointer;
|
|
1668
1802
|
border-radius: 6px;
|
|
1669
1803
|
padding: 0.125rem 0.25rem;
|
|
1670
|
-
overflow: hidden;
|
|
1671
1804
|
outline: 2px solid transparent;
|
|
1672
1805
|
outline-offset: 2px;
|
|
1673
1806
|
transition: outline 0.3s ease-out;
|
|
1674
1807
|
|
|
1675
1808
|
&:focus-visible {
|
|
1676
1809
|
outline-color: var(--color-main-white);
|
|
1677
|
-
outline-offset: 2px;
|
|
1678
1810
|
}
|
|
1679
|
-
`,
|
|
1680
|
-
transition: transform 0.3s ease-out;
|
|
1681
|
-
display: inline-flex;
|
|
1682
|
-
transform: ${({$dir:e})=>e==="asc"?"rotate(-180deg)":"none"};
|
|
1683
|
-
`,Bc=S.span`
|
|
1811
|
+
`,Tw=P.span`
|
|
1684
1812
|
display: inline-flex;
|
|
1685
1813
|
align-items: center;
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
overflow: hidden;
|
|
1689
|
-
text-overflow: ellipsis;
|
|
1690
|
-
white-space: nowrap;
|
|
1691
|
-
flex-shrink: 1;
|
|
1692
|
-
`,_y=S(An)`
|
|
1693
|
-
overflow: hidden;
|
|
1694
|
-
text-overflow: ellipsis;
|
|
1695
|
-
white-space: nowrap;
|
|
1696
|
-
max-width: 100%;
|
|
1814
|
+
justify-content: center;
|
|
1815
|
+
flex-shrink: 0;
|
|
1697
1816
|
color: var(--color-main-white);
|
|
1698
|
-
|
|
1699
|
-
${
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1817
|
+
opacity: ${({$direction:e})=>e==="none"?.6:1};
|
|
1818
|
+
transform: rotate(${({$direction:e})=>e==="asc"?"180deg":"0deg"});
|
|
1819
|
+
transition:
|
|
1820
|
+
transform 0.25s ease-out,
|
|
1821
|
+
opacity 0.2s ease-out;
|
|
1822
|
+
|
|
1823
|
+
${Yu}:hover & {
|
|
1824
|
+
opacity: 1;
|
|
1825
|
+
}
|
|
1826
|
+
`,kw=P.div`
|
|
1827
|
+
display: flex;
|
|
1828
|
+
align-items: center;
|
|
1829
|
+
padding: 0.5rem 0.75rem;
|
|
1830
|
+
cursor: pointer;
|
|
1831
|
+
transition: background-color 0.15s ease;
|
|
1832
|
+
border-radius: 0.25rem;
|
|
1833
|
+
|
|
1834
|
+
&:hover {
|
|
1835
|
+
background-color: var(--color-neutral-100);
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
&:active {
|
|
1839
|
+
background-color: var(--color-neutral-200);
|
|
1840
|
+
}
|
|
1841
|
+
`,zi=p.memo(({value:e,label:t,checked:n,onChange:r})=>{const o=i=>{r(e,i.target.checked)};return g.jsx(kw,{children:g.jsx(Sn,{checked:n,onChange:o,size:"xs",checkboxClassName:"filter-option-checkbox",label:t})})});zi.displayName="FilterOption";function Hi(e,t,n){const r=new Set;return e.forEach((o,i)=>{let s;n?s=n(o,i):s=o[t],s!=null&&r.add(String(s))}),Array.from(r).sort((o,i)=>o.localeCompare(i))}function qu(e,t,n){const r=n;if(!r||r.length===0)return!0;const o=e.getValue(t);return o!=null?r.includes(String(o)):!1}function Xu(e,t){if(!t||t.trim()==="")return e;const n=t.toLowerCase().trim();return e.filter(r=>r.toLowerCase().includes(n))}function Pw(e,t,n){const r={};return e.forEach((o,i)=>{let s;if(n?s=n(o,i):s=o[t],s!=null){const a=String(s);r[a]=(r[a]||0)+1}}),r}function $w(e,t){const n=e.find(r=>r.id===t);return n?n.value?.length>0:!1}function Zu(e,t){const n=e.find(r=>r.id===t);return n?n.value||[]:[]}function Ew(e){return e.reduce((t,n)=>{const r=n.value;return t+(r?.length||0)},0)}const Mw=P.div`
|
|
1842
|
+
position: absolute;
|
|
1843
|
+
top: 100%;
|
|
1844
|
+
right: 0;
|
|
1845
|
+
margin-top: 0.25rem;
|
|
1846
|
+
background: var(--color-neutral-50);
|
|
1847
|
+
border: 1px solid var(--color-neutral-200);
|
|
1848
|
+
border-radius: 0.5rem;
|
|
1849
|
+
box-shadow:
|
|
1850
|
+
0 4px 6px -1px rgba(0, 0, 0, 0.1),
|
|
1851
|
+
0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
1852
|
+
min-width: 200px;
|
|
1853
|
+
max-width: 280px;
|
|
1854
|
+
z-index: 50;
|
|
1855
|
+
display: flex;
|
|
1856
|
+
flex-direction: column;
|
|
1857
|
+
max-height: 400px;
|
|
1858
|
+
`,Aw=P.div`
|
|
1859
|
+
flex: 1;
|
|
1860
|
+
overflow-y: auto;
|
|
1861
|
+
padding: 0.5rem;
|
|
1862
|
+
max-height: 280px;
|
|
1863
|
+
`,Dw=P.div`
|
|
1864
|
+
display: flex;
|
|
1865
|
+
gap: 0.5rem;
|
|
1866
|
+
padding: 0.75rem;
|
|
1867
|
+
border-top: 1px solid var(--color-neutral-200);
|
|
1868
|
+
background: var(--color-neutral-50);
|
|
1869
|
+
`,Vw=P.div`
|
|
1870
|
+
padding: 0.5rem 0.75rem;
|
|
1871
|
+
border-bottom: 1px solid var(--color-neutral-200);
|
|
1872
|
+
display: flex;
|
|
1873
|
+
gap: 0.5rem;
|
|
1874
|
+
`,Fw=P.button`
|
|
1875
|
+
flex: 1;
|
|
1876
|
+
padding: 0.375rem 0.5rem;
|
|
1877
|
+
font-size: 0.75rem;
|
|
1878
|
+
font-weight: 500;
|
|
1879
|
+
border-radius: 0.25rem;
|
|
1880
|
+
cursor: pointer;
|
|
1881
|
+
transition: all 0.15s ease;
|
|
1882
|
+
border: 1px solid var(--color-neutral-300);
|
|
1883
|
+
background: var(--color-neutral-50);
|
|
1884
|
+
color: var(--color-neutral-700);
|
|
1885
|
+
|
|
1886
|
+
&:hover {
|
|
1887
|
+
background: var(--color-neutral-100);
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
&:active {
|
|
1891
|
+
transform: scale(0.98);
|
|
1892
|
+
}
|
|
1893
|
+
`,ji=({options:e,selectedValues:t,onChange:n,onClose:r,searchPlaceholder:o="Search..."})=>{const[i,s]=p.useState(""),a=p.useMemo(()=>Xu(e,i),[e,i]),l=p.useMemo(()=>a.length===0?!1:a.every(m=>t.includes(m)),[a,t]),c=p.useCallback((m,y)=>{n(y?[...t,m]:t.filter(x=>x!==m))},[t,n]),d=p.useCallback(()=>{const m=[...new Set([...t,...a])];n(m)},[t,a,n]),u=p.useCallback(()=>{const m=t.filter(y=>!a.includes(y));n(m)},[t,a,n]),h=p.useCallback(()=>{n([])},[n]),f=p.useCallback(()=>{r()},[r]);return g.jsx(g.Fragment,{children:g.jsxs(Mw,{onClick:m=>m.stopPropagation(),children:[g.jsx("div",{className:"p-2",children:g.jsx(hi,{value:i,onSearch:s,placeholder:o,size:"xs"})}),a.length>0&&g.jsx(Vw,{children:g.jsx(Fw,{onClick:l?u:d,type:"button",children:l?"Deselect All":"Select All"})}),g.jsx(Aw,{children:a.length>0?a.map(m=>g.jsx(zi,{value:m,label:m,checked:t.includes(m),onChange:c},m)):g.jsx(bn,{children:i?"No matching options":"No options available"})}),g.jsxs(Dw,{children:[g.jsx(Kt,{variant:"outline",size:"sm",onClick:h,disabled:t.length===0,className:"flex-1",children:"Clear"}),g.jsx(Kt,{variant:"primary",size:"sm",onClick:f,className:"flex-1",children:"Close"})]})]})})};ji.displayName="ColumnFilterMenu";function Iw(e,t,n=!0){p.useEffect(()=>{if(!n)return;const r=o=>{const i=o.target;e.current&&!e.current.contains(i)&&t()};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[e,t,n])}const Rw=P.div`
|
|
1894
|
+
position: relative;
|
|
1895
|
+
display: inline-flex;
|
|
1896
|
+
`,Lw=P(Kt)`
|
|
1897
|
+
min-height: auto;
|
|
1898
|
+
padding: 0.25rem;
|
|
1899
|
+
border: none;
|
|
1900
|
+
background: transparent;
|
|
1901
|
+
opacity: 0.6;
|
|
1902
|
+
|
|
1903
|
+
&:hover {
|
|
1904
|
+
background: none;
|
|
1905
|
+
opacity: 1;
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1908
|
+
&:active {
|
|
1909
|
+
transform: scale(0.95);
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
&:focus-visible {
|
|
1913
|
+
outline-color: var(--color-main-white);
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
${({$isActive:e})=>e&&`
|
|
1917
|
+
opacity: 1;
|
|
1918
|
+
`}
|
|
1919
|
+
`,xr=({column:e,uniqueValues:t,selectedValues:n,onChange:r})=>{const[o,i]=p.useState(!1),s=p.useRef(null),a=n.length>0,l=()=>{i(u=>!u)},c=()=>{i(!1)},d=u=>{r(u)};return p.useEffect(()=>{const u=h=>{h.key==="Escape"&&o&&c()};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[o]),Iw(s,c,o),g.jsx(g.Fragment,{children:g.jsxs(Rw,{ref:s,onClick:u=>u.stopPropagation(),children:[g.jsx(Lw,{size:"sm",onClick:l,"aria-label":`Filter ${e.id}`,"aria-expanded":o,$isActive:a,leftIcon:g.jsx(Y,{component:a?Oy:By,size:16,"aria-hidden":"true",color:"white"})}),o&&g.jsx(ji,{options:t,selectedValues:n,onChange:d,onClose:c,searchPlaceholder:`Search ${e.id}...`})]})})};xr.displayName="ColumnFilter";const Ju=e=>{const{columnFilters:t,setColumnFilters:n}=kn(),r=Zu(t,e),o=p.useCallback(i=>{const s=[...t],a=s.findIndex(l=>l.id===e);i.length>0?a>=0?s[a]={id:e,value:i}:s.push({id:e,value:i}):a>=0&&s.splice(a,1),n(s)},[t,e,n]);return{selectedValues:r,handleChange:o}},Qu=P.div`
|
|
1920
|
+
display: flex;
|
|
1921
|
+
align-items: center;
|
|
1922
|
+
gap: 0.25rem;
|
|
1923
|
+
width: 100%;
|
|
1924
|
+
`,ed=({header:e})=>{const{size:t,getUniqueValues:n}=kn(),{selectedValues:r,handleChange:o}=Ju(e.column.id),i=e.column.columnDef.meta,s=e.column.getCanSort()&&i?.sortable!==!1,a=i?.filterable!==!1&&e.column.getCanFilter(),l=e.column.getIsSorted(),c=l||"none",d=e.column.id,u=a?n(d):[];return g.jsx(Cw,{$size:i?.size||t,$active:!!l,colSpan:e.colSpan,$width:e.getSize(),children:s?g.jsxs("section",{className:"flex",onClick:e.column.getToggleSortingHandler(),children:[g.jsx(Yu,{onClick:e.column.getToggleSortingHandler(),type:"button","aria-label":`Sort by ${br(e.column.columnDef.header,e.getContext())}`,"aria-sort":c==="asc"?"ascending":c==="desc"?"descending":"none",children:g.jsx(Ku,{$align:i?.align,children:g.jsxs(Qu,{children:[br(e.column.columnDef.header,e.getContext()),g.jsx(Tw,{$direction:c,children:c==="none"?g.jsx(Y,{component:Ry,size:"tn"}):g.jsx(Y,{component:Fy,size:"tn"})})]})})}),a&&g.jsx(xr,{column:e.column,uniqueValues:u,selectedValues:r,onChange:o})]}):g.jsx(Ku,{$align:i?.align,children:g.jsxs(Qu,{children:[br(e.column.columnDef.header,e.getContext()),a&&g.jsx(xr,{column:e.column,uniqueValues:u,selectedValues:r,onChange:o})]})})})},td=({headerGroup:e})=>g.jsx(Wu,{children:e.headers.map(t=>g.jsx(ed,{header:t},t.id))}),Gi=({headerGroups:e,stickyHeader:t,className:n})=>g.jsx(xw,{$sticky:t,className:n,children:e.map(r=>g.jsx(td,{headerGroup:r},r.id))}),_w={sm:S`
|
|
1925
|
+
${qt.sm}
|
|
1926
|
+
${F[14]}
|
|
1927
|
+
`,md:S`
|
|
1928
|
+
${qt.md}
|
|
1929
|
+
${F[14]}
|
|
1930
|
+
`,lg:S`
|
|
1931
|
+
${qt.lg}
|
|
1932
|
+
${F[16]}
|
|
1933
|
+
`},Nw=P.td`
|
|
1934
|
+
min-width: 0;
|
|
1935
|
+
max-width: ${({$width:e})=>e?typeof e=="number"?`${e}px`:e:"auto"};
|
|
1936
|
+
|
|
1937
|
+
${({$width:e})=>e?S`
|
|
1938
|
+
min-width: ${typeof e=="number"?`${e}px`:e};
|
|
1939
|
+
max-width: ${typeof e=="number"?`${e}px`:e};
|
|
1940
|
+
width: ${typeof e=="number"?`${e}px`:e};
|
|
1941
|
+
`:S`
|
|
1942
|
+
min-width: 0;
|
|
1943
|
+
width: auto;
|
|
1944
|
+
`}
|
|
1945
|
+
|
|
1711
1946
|
vertical-align: middle;
|
|
1712
1947
|
color: var(--color-main-blue-primary);
|
|
1713
|
-
${({$size:e})=>
|
|
1714
|
-
text-align: ${({$align:e
|
|
1948
|
+
${({$size:e})=>_w[e]}
|
|
1949
|
+
text-align: ${({$align:e})=>e||"left"};
|
|
1715
1950
|
border-left: 1px solid var(--color-main-light-borders);
|
|
1716
1951
|
border-top: 1px solid var(--color-main-light-borders);
|
|
1717
1952
|
transition: background-color 0.3s ease-out;
|
|
1718
|
-
|
|
1953
|
+
`,Ow=P.section`
|
|
1954
|
+
${Gu};
|
|
1955
|
+
justify-content: ${({$align:e})=>e==="center"?"center":e==="right"?"flex-end":"flex-start"};
|
|
1719
1956
|
|
|
1720
|
-
|
|
1721
|
-
|
|
1957
|
+
width: 100%;
|
|
1958
|
+
`,Bw=P.span`
|
|
1959
|
+
width: 100%;
|
|
1960
|
+
${({$ellipsis:e})=>e&&S`
|
|
1961
|
+
min-width: 0;
|
|
1722
1962
|
overflow: hidden;
|
|
1723
1963
|
text-overflow: ellipsis;
|
|
1724
1964
|
white-space: nowrap;
|
|
1725
1965
|
`}
|
|
1966
|
+
`,nd=({cell:e,rowClassName:t})=>{const{size:n}=kn(),r=e.column.columnDef.meta,o=e.getValue(),i=typeof o=="string"||typeof o=="number"?String(o):void 0,s=[r?.className||"",t||""].filter(Boolean).join(" ");return g.jsx(Nw,{$size:r?.size||n,$align:r?.align,$width:e.column.getSize(),title:r?.ellipsis&&i?i:void 0,className:s,children:g.jsx(Ow,{$align:r?.align,children:g.jsx(Bw,{$ellipsis:r?.ellipsis,children:br(e.column.columnDef.cell,e.getContext())})})})};function zw({row:e,className:t,cellClassName:n}){const{onRowClick:r}=kn(),o=!!r;return g.jsx(Wu,{$clickable:o,onClick:()=>o&&r(e.original),role:o?"button":void 0,tabIndex:o?0:void 0,className:t,children:e.getVisibleCells().map(i=>g.jsx(nd,{cell:i,rowClassName:n},i.id))})}const rd=p.memo(zw),Ui=({rows:e,className:t,rowClassName:n,cellClassName:r})=>g.jsxs("tbody",{className:t,children:[e.map(o=>{const i=typeof n=="function"?n(o):n,s=typeof r=="function"?r(o):r;return g.jsx(rd,{row:o,className:i,cellClassName:s},o.id)}),e.length===0&&g.jsx("tr",{children:g.jsx("td",{colSpan:100,className:"py-4 text-center text-[var(--color-main-grey)]",children:"No results found"})})]}),Hw=P.section`
|
|
1967
|
+
display: flex;
|
|
1968
|
+
align-items: center;
|
|
1969
|
+
gap: 0.5rem;
|
|
1970
|
+
padding: 1rem 0;
|
|
1971
|
+
flex-wrap: wrap;
|
|
1726
1972
|
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
`,
|
|
1732
|
-
${
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
min-width:
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
border:
|
|
1973
|
+
@media (max-width: 768px) {
|
|
1974
|
+
justify-content: center;
|
|
1975
|
+
gap: 0.25rem;
|
|
1976
|
+
}
|
|
1977
|
+
`,od=P.button`
|
|
1978
|
+
${F[14]}
|
|
1979
|
+
display: flex;
|
|
1980
|
+
align-items: center;
|
|
1981
|
+
justify-content: center;
|
|
1982
|
+
min-width: 2rem;
|
|
1983
|
+
height: 2rem;
|
|
1984
|
+
padding: 0.625rem;
|
|
1985
|
+
transition:
|
|
1986
|
+
background-color 0.3s ease-out,
|
|
1987
|
+
border-color 0.3s ease-out,
|
|
1988
|
+
color 0.3s ease-out,
|
|
1989
|
+
outline 0.3s ease-out;
|
|
1990
|
+
background-color: ${({$active:e})=>e?"var(--color-main-blue-primary)":"var(--color-main-white)"};
|
|
1991
|
+
color: ${({$active:e})=>e?"var(--color-main-white)":"var(--color-main-blue-primary)"};
|
|
1992
|
+
border-radius: var(--border-radius-outline);
|
|
1993
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1994
|
+
opacity: ${({$disabled:e})=>e?.5:1};
|
|
1747
1995
|
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
${({$sticky:e})=>e&&b`
|
|
1753
|
-
position: sticky;
|
|
1754
|
-
top: 0;
|
|
1755
|
-
z-index: 10;
|
|
1756
|
-
`}
|
|
1757
|
-
`,Xy=S.div`
|
|
1758
|
-
max-height: 37.5rem;
|
|
1759
|
-
overflow: auto;
|
|
1760
|
-
position: relative;
|
|
1761
|
-
border-radius: var(--border-radius-article);
|
|
1762
|
-
box-shadow: var(--shadow-black-card);
|
|
1996
|
+
&:hover:not(:disabled) {
|
|
1997
|
+
background-color: ${({$active:e})=>e?"var(--color-blue-400)":"var(--color-main-alternative-secondary)"};
|
|
1998
|
+
border-color: ${({$active:e})=>e?"var(--color-blue-400)":"var(--color-main-blue-primary)"};
|
|
1999
|
+
}
|
|
1763
2000
|
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
pointer-events: none;
|
|
1770
|
-
z-index: 3;
|
|
2001
|
+
outline: 2px solid transparent;
|
|
2002
|
+
|
|
2003
|
+
&:focus-visible {
|
|
2004
|
+
outline-color: var(--color-main-blue-primary);
|
|
2005
|
+
outline-offset: 2px;
|
|
1771
2006
|
}
|
|
1772
|
-
`,
|
|
2007
|
+
`,id=P(od)`
|
|
2008
|
+
gap: 0.25rem;
|
|
2009
|
+
padding: 0 0.75rem;
|
|
2010
|
+
font-weight: 400;
|
|
2011
|
+
|
|
2012
|
+
@media (max-width: 768px) {
|
|
2013
|
+
padding: 0 0.5rem;
|
|
2014
|
+
font-size: 0.75rem;
|
|
2015
|
+
|
|
2016
|
+
svg {
|
|
2017
|
+
width: 1rem;
|
|
2018
|
+
height: 1rem;
|
|
2019
|
+
}
|
|
2020
|
+
}
|
|
2021
|
+
`,jw=P(od)`
|
|
2022
|
+
min-width: 2rem;
|
|
2023
|
+
`,Gw=P.span`
|
|
2024
|
+
${F[14]}
|
|
2025
|
+
display: flex;
|
|
2026
|
+
align-items: center;
|
|
2027
|
+
justify-content: center;
|
|
2028
|
+
min-width: 2rem;
|
|
2029
|
+
height: 2rem;
|
|
2030
|
+
color: var(--color-main-blue-primary);
|
|
2031
|
+
user-select: none;
|
|
2032
|
+
`,Uw=P.div`
|
|
2033
|
+
display: flex;
|
|
2034
|
+
align-items: center;
|
|
2035
|
+
gap: 0.5rem;
|
|
2036
|
+
margin-left: 1rem;
|
|
2037
|
+
padding-left: 1rem;
|
|
2038
|
+
border-left: 1px solid var(--color-light-300);
|
|
2039
|
+
white-space: nowrap;
|
|
2040
|
+
|
|
2041
|
+
@media (max-width: 768px) {
|
|
2042
|
+
margin-left: 0;
|
|
2043
|
+
padding-left: 0;
|
|
2044
|
+
border-left: none;
|
|
2045
|
+
border-top: 1px solid var(--color-light-300);
|
|
2046
|
+
padding-top: 0.5rem;
|
|
2047
|
+
width: 100%;
|
|
2048
|
+
justify-content: center;
|
|
2049
|
+
order: 10; /* Move to bottom on mobile */
|
|
2050
|
+
}
|
|
2051
|
+
`,Ww=P(mr)`
|
|
2052
|
+
button {
|
|
2053
|
+
${F[14]}
|
|
2054
|
+
height: 2rem;
|
|
2055
|
+
min-height: 2rem;
|
|
2056
|
+
border-radius: var(--border-radius-outline);
|
|
2057
|
+
width: 100%;
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
li {
|
|
2061
|
+
${F[14]}
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
div {
|
|
2065
|
+
right: 10%;
|
|
2066
|
+
}
|
|
2067
|
+
`,Kw=({onPageChange:e,onPerPageChange:t,perPage:n=10,page:r=1,totalPages:o,totalRecords:i,rowsPerPageOptions:s})=>{const l=(()=>{const f=[];if(o<=7)for(let y=1;y<=o;y++)f.push(y);else{f.push(1),r>3&&f.push("...");const y=Math.max(2,r-1),x=Math.min(o-1,r+1);for(let v=y;v<=x;v++)f.push(v);r<o-2&&f.push("..."),f.push(o)}return f})(),c=[{value:10,label:"10"},{value:25,label:"25"},{value:50,label:"50"},{value:100,label:"100"}],d=i!==void 0&&i>0,u=d?(r-1)*n+1:0,h=d?Math.min(r*n,i):0;return g.jsxs(Hw,{children:[d&&g.jsxs(bn,{size:14,children:["Showing ",u,"-",h," of ",i]}),g.jsxs(id,{onClick:()=>e(r-1),$disabled:r===1,disabled:r===1,"aria-label":"Previous page",children:[g.jsx(Wy,{size:24}),"Previous"]}),l.map((f,m)=>f==="..."?g.jsx(Gw,{children:"..."},`ellipsis-${m}`):g.jsx(jw,{onClick:()=>e(f),$active:r===f,"aria-label":`Go to page ${f}`,"aria-current":r===f?"page":void 0,children:f},f)),g.jsxs(id,{onClick:()=>e(r+1),$disabled:r===o,disabled:r===o,"aria-label":"Next page",children:["Next",g.jsx(Ky,{size:24})]}),g.jsxs(Uw,{children:[g.jsx(Ww,{size:"sm",value:n,options:s||c,onOptionSelect:f=>t(Number(f.value))}),g.jsx(bn,{size:12,children:"Rows per page"})]})]})},sd=({sorting:e,defaultSorting:t=[],onSortingChange:n})=>{const[r,o]=p.useState(t),i=e!==void 0,s=i?e:r,a=p.useCallback(c=>{const d=typeof c=="function"?c(s):c;i||o(d),n?.(d)},[i,s,n]),l=p.useCallback(c=>{i||o(c),n?.(c)},[i,n]);return{sortingState:s,handleSortingChange:a,isControlled:i,setSorting:l}},ad=({columnFilters:e,defaultColumnFilters:t=[],onColumnFiltersChange:n})=>{const[r,o]=p.useState(t),i=e!==void 0,s=i?e:r,a=p.useCallback(c=>{const d=typeof c=="function"?c(s):c;i||o(d),n?.(d)},[i,s,n]),l=p.useCallback(c=>{i||o(c),n?.(c)},[i,n]);return{columnFiltersState:s,handleColumnFiltersChange:a,isControlled:i,setColumnFilters:l}},ld=p.createContext(void 0),kn=()=>{const e=p.useContext(ld);if(!e)throw new Error("useTableContext debe usarse dentro de Table");return e},cd=({data:e,columns:t,size:n="md",variant:r="default",stickyHeader:o=!1,maxHeight:i,sorting:s,defaultSorting:a,onSortingChange:l,columnFilters:c,defaultColumnFilters:d,onColumnFiltersChange:u,onRowClick:h,classNames:f,enableSorting:m=!0,manualSorting:y=!1,enableFiltering:x=!0,manualFiltering:v=!1,isLoading:T=!1,getUniqueValues:w})=>{const{sortingState:M,handleSortingChange:b,setSorting:$}=sd({sorting:s,defaultSorting:a,onSortingChange:l}),{columnFiltersState:k,handleColumnFiltersChange:E,setColumnFilters:D}=ad({columnFilters:c,defaultColumnFilters:d,onColumnFiltersChange:u}),A=p.useMemo(()=>{if(w)return null;const X=new Map;return t.forEach(O=>{const R=O.id??("accessorKey"in O&&O.accessorKey?String(O.accessorKey):void 0);if(!R)return;const W="accessorFn"in O?O.accessorFn:void 0;X.set(R,Hi(e,R,W))}),X},[e,t,w]),I=p.useMemo(()=>w||(X=>A?.get(X)||[]),[A,w]),N=p.useMemo(()=>t.map(X=>{const R=X.meta?.filterable!==!1;return x&&R&&!X.filterFn?{...X,filterFn:"multiSelect"}:X}),[t,x]),j=yw({data:e,columns:N,state:{sorting:M,columnFilters:k},onSortingChange:b,onColumnFiltersChange:E,getCoreRowModel:lw(),getSortedRowModel:y?void 0:hw(),getFilteredRowModel:v?void 0:fw(),enableSorting:m,enableSortingRemoval:!0,manualSorting:y,enableColumnFilters:x,manualFiltering:v,filterFns:{multiSelect:qu},globalFilterFn:"includesString"}),G={size:n,variant:r,sorting:M,setSorting:$,columnFilters:k,setColumnFilters:D,getUniqueValues:I,onRowClick:h};return g.jsx(ld.Provider,{value:G,children:g.jsx(bw,{$maxHeight:i,$stickyHeader:o,className:f?.wrapper,children:T?g.jsx(Gc,{message:"Loading data..."}):e.length===0?g.jsxs(Uu,{$variant:r,className:f?.table,children:[g.jsx(Gi,{headerGroups:j.getHeaderGroups(),stickyHeader:o,className:f?.header}),g.jsx(Ui,{rows:[],className:f?.body,rowClassName:f?.row})]}):g.jsxs(Uu,{$variant:r,className:f?.table,children:[g.jsx(Gi,{headerGroups:j.getHeaderGroups(),stickyHeader:o,className:f?.header}),g.jsx(Ui,{rows:j.getRowModel().rows,className:f?.body,rowClassName:f?.row,cellClassName:f?.cell})]})})})};cd.displayName="Table";function ud(e){const t={};for(const n of e)t[n.id]=n.desc?"desc":"asc";return t}function Yw(e){return Object.entries(e).map(([t,n])=>({id:t,desc:n==="desc"}))}function dd(e){return e.length===0?"":JSON.stringify(ud(e))}function qw(e){const t=new URLSearchParams;return e.sorting&&e.sorting.length>0&&t.append("sorts",dd(e.sorting)),e.perPage&&t.append("perPage",e.perPage.toString()),e.genericSearch&&t.append("genericSearch",e.genericSearch),e.filters&&Object.keys(e.filters).length>0&&t.append("filters",JSON.stringify(e.filters)),t}const Xw=({data:e,columns:t,initialPage:n=1,initialPerPage:r=10,initialSorting:o=[],initialColumnFilters:i=[]})=>{const[s,a]=p.useState(n),[l,c]=p.useState(r),[d,u]=p.useState(o),[h,f]=p.useState(i),m=p.useMemo(()=>{const E=new Map;return t.forEach(D=>{const A=D.id??("accessorKey"in D&&D.accessorKey?String(D.accessorKey):void 0);if(!A)return;const I="accessorFn"in D?D.accessorFn:void 0;E.set(A,Hi(e,A,I))}),E},[e,t]),y=p.useMemo(()=>E=>m.get(E)||[],[m]),x=p.useMemo(()=>h.length===0?e:e.filter(E=>h.every(D=>{const A=D.value;if(!A||A.length===0)return!0;const I=E[D.id];return I==null?!1:A.includes(String(I))})),[e,h]),v=p.useMemo(()=>d.length===0?x:[...x].sort((E,D)=>{for(const A of d){const I=E[A.id],N=D[A.id];if(I==null&&N==null)continue;if(I==null)return A.desc?-1:1;if(N==null)return A.desc?1:-1;let j=0;if(typeof I=="string"&&typeof N=="string"?j=I.localeCompare(N):typeof I=="number"&&typeof N=="number"?j=I-N:j=String(I).localeCompare(String(N)),j!==0)return A.desc?-j:j}return 0}),[x,d]),T=p.useMemo(()=>{const E=(s-1)*l,D=E+l;return v.slice(E,D)},[v,s,l]),w=e.length,M=v.length,b=Math.max(1,Math.ceil(M/l)),$=p.useCallback(E=>{a(Math.min(E,b))},[b]),k=p.useCallback(E=>{c(E),a(1)},[]);return p.useMemo(()=>{s>b&&a(1)},[s,b]),{paginatedData:T,processedData:v,page:s,perPage:l,totalPages:b,totalRecords:w,filteredRecords:M,setPage:$,setPerPage:k,sorting:d,setSorting:u,columnFilters:h,setColumnFilters:f,getUniqueValues:y}};function fd(e){const t={};return e.forEach(n=>{t[n.id]=n.value}),t}function hd(e){return JSON.stringify(fd(e))}function Zw(e,t=","){const n={};return e.forEach(r=>{const o=r.value;o&&o.length>0&&(n[`filter[${r.id}]`]=o.join(t))}),n}function Jw(e){const t={};return e.forEach(n=>{const r=n.value;r&&r.length>0&&(t[`filter[${n.id}]`]=r)}),t}function Qw({filters:e,sorts:t,page:n,perPage:r}){const o={};if(n!==void 0&&(o.page=n),r!==void 0&&(o.per_page=r),t&&t.length>0){const i=t.map(a=>a.id).join(","),s=t.map(a=>a.desc?"desc":"asc").join(",");o.sort_by=i,o.sort_order=s}return e&&e.length>0&&(o.filters=hd(e)),o}function eb(e,t=","){const n=typeof e=="string"?new URLSearchParams(e):e,r=[];return n.forEach((o,i)=>{const s=i.match(/^filter\[(.+)\]$/);if(s){const a=s[1],l=o.split(t).filter(Boolean);l.length>0&&r.push({id:a,value:l})}}),r}function tb(e){try{const t=JSON.parse(e);return Object.entries(t).map(([n,r])=>({id:n,value:r}))}catch{return[]}}function nb(...e){const t=new Map;return e.forEach(n=>{n.forEach(r=>{t.set(r.id,r.value)})}),Array.from(t.entries()).map(([n,r])=>({id:n,value:r}))}const rb=P.div`
|
|
1773
2068
|
position: relative;
|
|
1774
2069
|
display: flex;
|
|
1775
2070
|
align-items: center;
|
|
@@ -1787,7 +2082,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1787
2082
|
outline: 2px solid var(--color-main-blue-primary);
|
|
1788
2083
|
outline-offset: 2px;
|
|
1789
2084
|
}
|
|
1790
|
-
`,
|
|
2085
|
+
`,ob=P.div`
|
|
1791
2086
|
width: 2rem;
|
|
1792
2087
|
height: 2rem;
|
|
1793
2088
|
border-radius: 50%;
|
|
@@ -1795,7 +2090,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1795
2090
|
display: flex;
|
|
1796
2091
|
align-items: center;
|
|
1797
2092
|
justify-content: center;
|
|
1798
|
-
`,
|
|
2093
|
+
`,ib=P.div`
|
|
1799
2094
|
display: flex;
|
|
1800
2095
|
flex-direction: column;
|
|
1801
2096
|
align-items: flex-start;
|
|
@@ -1803,7 +2098,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1803
2098
|
@media (max-width: 640px) {
|
|
1804
2099
|
display: none;
|
|
1805
2100
|
}
|
|
1806
|
-
`,
|
|
2101
|
+
`,sb=P(Ke.div)`
|
|
1807
2102
|
display: flex;
|
|
1808
2103
|
align-items: center;
|
|
1809
2104
|
justify-content: center;
|
|
@@ -1812,7 +2107,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1812
2107
|
@media (max-width: 640px) {
|
|
1813
2108
|
display: none;
|
|
1814
2109
|
}
|
|
1815
|
-
`,
|
|
2110
|
+
`,ab=P(Ke.div)`
|
|
1816
2111
|
position: absolute;
|
|
1817
2112
|
top: 100%;
|
|
1818
2113
|
right: 0;
|
|
@@ -1824,7 +2119,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1824
2119
|
box-shadow: var(--shadow-black-card);
|
|
1825
2120
|
z-index: 100;
|
|
1826
2121
|
overflow: hidden;
|
|
1827
|
-
`,
|
|
2122
|
+
`,lb=P.button`
|
|
1828
2123
|
width: 100%;
|
|
1829
2124
|
display: flex;
|
|
1830
2125
|
align-items: center;
|
|
@@ -1848,40 +2143,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1848
2143
|
&.danger {
|
|
1849
2144
|
color: var(--color-main-waringn-state);
|
|
1850
2145
|
}
|
|
1851
|
-
`,
|
|
1852
|
-
position: fixed;
|
|
1853
|
-
top: 0;
|
|
1854
|
-
left: 0;
|
|
1855
|
-
right: 0;
|
|
1856
|
-
height: 4rem;
|
|
1857
|
-
background: var(--color-main-white);
|
|
1858
|
-
border-bottom: 1px solid var(--color-main-light-borders);
|
|
1859
|
-
box-shadow: var(--shadow-black-button);
|
|
1860
|
-
z-index: 40;
|
|
1861
|
-
display: flex;
|
|
1862
|
-
align-items: center;
|
|
1863
|
-
justify-content: space-between;
|
|
1864
|
-
padding: 0 1rem;
|
|
1865
|
-
transition: padding-left 0.3s ease-out;
|
|
1866
|
-
padding-left: 5rem;
|
|
1867
|
-
`,r1=S.div`
|
|
1868
|
-
display: flex;
|
|
1869
|
-
align-items: center;
|
|
1870
|
-
gap: 1rem;
|
|
1871
|
-
`,o1=S.div`
|
|
1872
|
-
display: flex;
|
|
1873
|
-
align-items: center;
|
|
1874
|
-
gap: 1rem;
|
|
1875
|
-
`,i1=S.button`
|
|
2146
|
+
`,Wi=({user:e,onProfileClick:t,onLogout:n,menuItems:r=[]})=>{const[o,i]=p.useState(!1),s=p.useRef(null);p.useEffect(()=>{if(!o)return;const d=u=>{s.current&&!s.current.contains(u.target)&&i(!1)};return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[o]),p.useEffect(()=>{if(!o)return;const d=u=>{u.key==="Escape"&&i(!1)};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[o]);const a=d=>d.split(" ").map(u=>u[0]).join("").toUpperCase().slice(0,2),c=[...[{id:"profile",label:"Profile",icon:Uy,onClick:()=>{i(!1),t?.()},variant:"default"},{id:"logout",label:"Logout",icon:zy,onClick:()=>{i(!1),n?.()},variant:"danger"}],...r];return g.jsxs("div",{ref:s,children:[g.jsxs(rb,{onClick:()=>i(!o),role:"button",tabIndex:0,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),i(!o))},children:[g.jsx(ob,{children:e.avatarUrl?g.jsx("img",{src:e.avatarUrl,alt:e.name}):g.jsx(Ge,{size:14,color:"var(--color-main-white)",className:"!font-semibold",children:a(e.name)})}),g.jsxs(ib,{children:[g.jsx(Ge,{size:14,className:"!font-semibold",children:e.name}),g.jsx(Ge,{size:12,children:e.role})]}),g.jsx(sb,{animate:{rotate:o?-180:0},transition:{duration:.3},children:g.jsx(Y,{component:Xc,size:"sm",color:"var(--color-main-blue-primary)"})})]}),g.jsx(gn,{children:o&&g.jsx(ab,{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:c.map(d=>g.jsx(p.Fragment,{children:g.jsxs(lb,{onClick:d.onClick,className:d.variant==="danger"?"danger":"",children:[g.jsx(Y,{component:d.icon,size:"sm",color:d.variant==="danger"?"var(--color-main-warning-state)":"var(--color-main-blue-primary)"}),g.jsx(Ge,{size:14,color:`${d.variant==="danger"&&"var(--color-main-warning-state)"}`,children:d.label})]})},d.id))})})]})};Wi.displayName="UserProfile";const pd=({hasNotifications:e=!1,notificationCount:t})=>{const n=(t??0)>0||e,r=t&&t>0?t:void 0,o=r?`${r} notification${r===1?"":"s"}`:n?"New notifications":"No notifications",i=`Notifications: ${o}`;return{effectiveHasNotifications:n,displayCount:r,badgeLabel:o,bellAriaLabel:i}},cb=P.button`
|
|
1876
2147
|
position: relative;
|
|
2148
|
+
background: transparent;
|
|
2149
|
+
border: none;
|
|
2150
|
+
cursor: pointer;
|
|
2151
|
+
padding: 0.5rem;
|
|
1877
2152
|
display: flex;
|
|
1878
2153
|
align-items: center;
|
|
1879
2154
|
justify-content: center;
|
|
1880
|
-
padding: 0.5rem;
|
|
1881
|
-
border: none;
|
|
1882
|
-
background: transparent;
|
|
1883
2155
|
border-radius: var(--border-radius-outline);
|
|
1884
|
-
cursor: pointer;
|
|
1885
2156
|
transition: transform 0.15s ease-out;
|
|
1886
2157
|
|
|
1887
2158
|
&:hover {
|
|
@@ -1896,28 +2167,47 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1896
2167
|
&:active {
|
|
1897
2168
|
transform: scale(0.92);
|
|
1898
2169
|
}
|
|
1899
|
-
`,
|
|
2170
|
+
`,ub=P.span`
|
|
1900
2171
|
position: absolute;
|
|
1901
2172
|
top: 0.35rem;
|
|
1902
2173
|
right: 0.35rem;
|
|
1903
|
-
min-width: ${({$withCount:e})=>e?"1rem":"0.55rem"};
|
|
1904
|
-
height: ${({$withCount:e})=>e?"1rem":"0.55rem"};
|
|
1905
|
-
padding: ${({$withCount:e})=>e?"0 0.25rem":"0"};
|
|
1906
2174
|
background-color: var(--color-main-orange-primary);
|
|
1907
2175
|
color: var(--color-main-white);
|
|
1908
|
-
font-size: 0.55rem;
|
|
1909
|
-
font-weight: 600;
|
|
1910
2176
|
border-radius: 100%;
|
|
1911
2177
|
border: 1px solid var(--color-main-white);
|
|
2178
|
+
font-size: 0.55rem;
|
|
2179
|
+
font-weight: 600;
|
|
1912
2180
|
display: flex;
|
|
1913
2181
|
align-items: center;
|
|
1914
2182
|
justify-content: center;
|
|
1915
|
-
|
|
2183
|
+
min-width: ${({$withCount:e})=>e?"1rem":"0.55rem"};
|
|
2184
|
+
height: ${({$withCount:e})=>e?"1rem":"0.55rem"};
|
|
2185
|
+
padding: ${({$withCount:e})=>e?"0 0.25rem":"0"};
|
|
2186
|
+
`,Ki=({hasNotifications:e=!1,notificationCount:t,onNotificationClick:n})=>{const{effectiveHasNotifications:r,displayCount:o,bellAriaLabel:i}=pd({hasNotifications:e,notificationCount:t});return g.jsxs(cb,{onClick:n,"aria-label":i,title:i,"data-has":r||void 0,children:[g.jsx(Y,{component:r?Hy:jy,size:"md",color:"var(--color-main-blue-primary)"}),r&&g.jsx(ub,{$withCount:!!o,"aria-hidden":!!o,children:o&&(o>99?"99+":o)})]})};Ki.displayName="NotificationButton";const db=P.header`
|
|
2187
|
+
position: fixed;
|
|
2188
|
+
top: 0;
|
|
2189
|
+
left: 0;
|
|
2190
|
+
right: 0;
|
|
2191
|
+
height: 4rem;
|
|
2192
|
+
background: var(--color-main-white);
|
|
2193
|
+
border-bottom: 1px solid var(--color-main-light-borders);
|
|
2194
|
+
box-shadow: var(--shadow-black-button);
|
|
2195
|
+
z-index: 40;
|
|
1916
2196
|
display: flex;
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
2197
|
+
align-items: center;
|
|
2198
|
+
justify-content: space-between;
|
|
2199
|
+
padding: 0 1rem;
|
|
2200
|
+
transition: padding-left 0.3s ease-out;
|
|
2201
|
+
padding-left: 5rem;
|
|
2202
|
+
`,fb=P.div`
|
|
2203
|
+
display: flex;
|
|
2204
|
+
align-items: center;
|
|
2205
|
+
gap: 1rem;
|
|
2206
|
+
`,hb=P.div`
|
|
2207
|
+
display: flex;
|
|
2208
|
+
align-items: center;
|
|
2209
|
+
gap: 1rem;
|
|
2210
|
+
`,Yi=({user:e,hasNotifications:t=!1,notificationCount:n,onNotificationClick:r,onUserProfileClick:o,onLogout:i,userMenuItems:s,children:a})=>g.jsxs(db,{children:[g.jsx(fb,{children:a}),g.jsxs(hb,{children:[g.jsx(Ki,{hasNotifications:t,notificationCount:n,onNotificationClick:r}),e&&g.jsx(Wi,{user:e,onProfileClick:o,onLogout:i,menuItems:s})]})]});Yi.displayName="Header";const pb=P.main`
|
|
1921
2211
|
flex: 1;
|
|
1922
2212
|
margin-top: 4rem;
|
|
1923
2213
|
/* Mobile-first: no lateral offset so content occupies full width */
|
|
@@ -1933,25 +2223,30 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1933
2223
|
@media (min-width: 1200px) {
|
|
1934
2224
|
margin-left: 5rem;
|
|
1935
2225
|
}
|
|
1936
|
-
`,
|
|
2226
|
+
`,qi=({children:e,className:t})=>g.jsx(pb,{className:t,children:e});qi.displayName="LayoutMainContent";const mb=P.div`
|
|
2227
|
+
display: flex;
|
|
2228
|
+
flex-direction: column;
|
|
2229
|
+
height: 100vh;
|
|
2230
|
+
overflow: hidden;
|
|
2231
|
+
`,gb=({children:e,navigationConfig:t,userRoles:n=[],activePath:r,user:o,hasNotifications:i=!1,notificationCount:s,onNotificationClick:a,onUserProfileClick:l,onNavigate:c,onLogout:d,userMenuItems:u=[],contentClassName:h,logoImgCollapsed:f,logoImgExpanded:m})=>g.jsxs(mb,{children:[g.jsx(Ti,{navigationConfig:t,userRoles:n,activePath:r,logoImgCollapsed:f,logoImgExpanded:m,onNavigate:c}),g.jsx(Yi,{user:o,hasNotifications:i,notificationCount:s,onNotificationClick:a,onUserProfileClick:l,onLogout:d,userMenuItems:u}),g.jsx(qi,{className:h,children:e})]}),yb=e=>g.jsx(wu,{children:g.jsx(gb,{...e})});function vb(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 wb(e){return document.cookie.split("; ").reduce((t,n)=>{const r=n.split("=");return r[0]===e?decodeURIComponent(r[1]):t},"")}function bb(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}const Pn={sm:{circle:"2rem",fontSize:F[14],line:"2px"},md:{circle:"2.5rem",fontSize:F[18],line:"2px"},lg:{circle:"3.25rem",fontSize:F[20],line:"3px"}},xb=P.div`
|
|
1937
2232
|
display: flex;
|
|
1938
2233
|
width: 100%;
|
|
1939
|
-
`,
|
|
2234
|
+
`,Sb=P.div`
|
|
1940
2235
|
display: flex;
|
|
1941
2236
|
flex-direction: ${({$orientation:e})=>e==="vertical"?"column":"row"};
|
|
1942
2237
|
align-items: center;
|
|
1943
2238
|
width: 100%;
|
|
1944
|
-
`,
|
|
2239
|
+
`,Cb=P.div`
|
|
1945
2240
|
display: flex;
|
|
1946
2241
|
align-items: center;
|
|
1947
2242
|
justify-content: center;
|
|
1948
2243
|
position: relative;
|
|
1949
|
-
`,
|
|
2244
|
+
`,md=P.div`
|
|
1950
2245
|
display: flex;
|
|
1951
2246
|
align-items: center;
|
|
1952
2247
|
justify-content: center;
|
|
1953
|
-
width: ${({$size:e})=>
|
|
1954
|
-
height: ${({$size:e})=>
|
|
2248
|
+
width: ${({$size:e})=>Pn[e].circle};
|
|
2249
|
+
height: ${({$size:e})=>Pn[e].circle};
|
|
1955
2250
|
outline-offset: 2px;
|
|
1956
2251
|
outline: 2px solid transparent;
|
|
1957
2252
|
border-radius: 50%;
|
|
@@ -1965,21 +2260,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1965
2260
|
flex-shrink: 0;
|
|
1966
2261
|
box-shadow: var(--shadow-black-button);
|
|
1967
2262
|
|
|
1968
|
-
${({$size:e})=>
|
|
2263
|
+
${({$size:e})=>Pn[e].fontSize}
|
|
1969
2264
|
|
|
1970
|
-
${({$isCompleted:e,$isActive:t})=>t?
|
|
2265
|
+
${({$isCompleted:e,$isActive:t})=>t?S`
|
|
1971
2266
|
background-color: var(--color-main-blue-primary);
|
|
1972
2267
|
color: var(--color-main-white);
|
|
1973
2268
|
box-shadow: var(--shadow-hover-black-button);
|
|
1974
|
-
`:e?
|
|
2269
|
+
`:e?S`
|
|
1975
2270
|
background-color: var(--color-main-blue-primary);
|
|
1976
2271
|
color: var(--color-main-white);
|
|
1977
|
-
`:
|
|
2272
|
+
`:S`
|
|
1978
2273
|
background-color: var(--color-dark-300);
|
|
1979
2274
|
color: var(--color-main-white);
|
|
1980
2275
|
`}
|
|
1981
2276
|
|
|
1982
|
-
${({$isClickable:e})=>e&&
|
|
2277
|
+
${({$isClickable:e})=>e&&S`
|
|
1983
2278
|
cursor: pointer;
|
|
1984
2279
|
|
|
1985
2280
|
&:hover {
|
|
@@ -1992,21 +2287,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
1992
2287
|
box-shadow: var(--shadow-hover-black-button);
|
|
1993
2288
|
}
|
|
1994
2289
|
`}
|
|
1995
|
-
`,
|
|
2290
|
+
`,Tb=P.div`
|
|
1996
2291
|
background-color: ${({$isCompleted:e})=>e?"var(--color-main-blue-primary)":"var(--color-dark-300)"};
|
|
1997
2292
|
transition: background-color 0.3s ease;
|
|
1998
2293
|
|
|
1999
|
-
${({$orientation:e,$size:t})=>e==="vertical"?
|
|
2000
|
-
width: ${
|
|
2294
|
+
${({$orientation:e,$size:t})=>e==="vertical"?S`
|
|
2295
|
+
width: ${Pn[t].line};
|
|
2001
2296
|
height: 2rem;
|
|
2002
|
-
`:
|
|
2003
|
-
height: ${
|
|
2297
|
+
`:S`
|
|
2298
|
+
height: ${Pn[t].line};
|
|
2004
2299
|
flex: 1;
|
|
2005
2300
|
min-width: 2rem;
|
|
2006
2301
|
`}
|
|
2007
|
-
`,
|
|
2302
|
+
`,kb=P.span`
|
|
2008
2303
|
position: absolute;
|
|
2009
|
-
${
|
|
2304
|
+
${F[14]}
|
|
2010
2305
|
font-weight: 500;
|
|
2011
2306
|
color: var(--color-main-white);
|
|
2012
2307
|
background-color: var(--color-main-blue-primary);
|
|
@@ -2034,7 +2329,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const br={80:b`
|
|
|
2034
2329
|
border-left-color: var(--color-main-blue-primary);
|
|
2035
2330
|
}
|
|
2036
2331
|
|
|
2037
|
-
${
|
|
2332
|
+
${md}:hover & {
|
|
2038
2333
|
opacity: 1;
|
|
2039
2334
|
}
|
|
2040
|
-
`,
|
|
2335
|
+
`,Pb=({steps:e,currentStep:t,orientation:n="horizontal",size:r="md",onStepClick:o,className:i})=>{const s=a=>{o?.(a)};return g.jsx(xb,{$orientation:n,className:i,children:g.jsx(Sb,{$orientation:n,children:e.map((a,l)=>{const c=l===t,d=l<t,u=o!=null;return g.jsxs(g.Fragment,{children:[g.jsx(Cb,{$orientation:n,children:g.jsxs(md,{$isActive:c,$isCompleted:d,$size:r,$isClickable:u,onClick:()=>u&&s(l),role:u?"button":void 0,tabIndex:u?0:void 0,"aria-current":c?"step":void 0,"aria-label":a.label,onKeyDown:h=>{u&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),s(l))},children:[a.content??l+1,a.label&&n==="vertical"&&g.jsx(kb,{children:a.label})]})}),l<e.length-1&&g.jsx(Tb,{$isCompleted:d,$orientation:n,$size:r})]},a.id)})})})};C.ALLOWED_INPUT_TYPES=Kc,C.Aside=Cu,C.Badge=V0,C.BaseInput=di,C.BrandLogo=ku,C.Button=Kt,C.Card=gy,C.CardBody=by,C.CardFooter=Sy,C.CardHeader=vy,C.Checkbox=Sn,C.CheckboxInput=pi,C.CheckboxLabel=su,C.CloseOpenButton=$u,C.ColumnFilter=xr,C.ColumnFilterMenu=ji,C.Dialog=pu,C.DialogBody=gu,C.DialogFooter=yu,C.DialogHeader=mu,C.Divider=I0,C.ErrorMessage=ui,C.FileList=iu,C.FileUpload=Dv,C.FilterOption=zi,C.FormField=n1,C.FullScreenSpinner=C0,C.Header=Yi,C.HeadingBold=zs,C.HeadingRegular=Rf,C.Icon=Y,C.IconWrapperStyles=pr,C.InfoLabel=bn,C.Label=fr,C.Layout=yb,C.LayoutMainContent=qi,C.Link=Vu,C.LinkDisabledStyles=Au,C.LinkSizeStyles=Du,C.LinkVariantStyles=Mu,C.MobileOpenBtn=Eu,C.Nav=Pu,C.NotificationButton=Ki,C.Overlay=Su,C.PasswordInput=eu,C.PinInput=mi,C.PinInputGroup=gi,C.RadioInput=wi,C.RadioInputDot=yi,C.RadioInputLabel=vi,C.SearchInput=hi,C.SectionSpinner=Gc,C.SelectInput=mr,C.Sidebar=Ti,C.SidebarContext=xi,C.SidebarHeader=Tu,C.SidebarProvider=wu,C.Spinner=ur,C.Stepper=Pb,C.Table=cd,C.TableBody=Ui,C.TableCell=nd,C.TableHeader=Gi,C.TableHeaderCell=ed,C.TableHeaderRow=td,C.TablePagination=Kw,C.TableRow=rd,C.TermsAndConditions=h1,C.Text=Ge,C.TextAreaInput=fi,C.ToastProvider=uy,C.Tooltip=vu,C.UserProfile=Wi,C.baseFieldStyles=Tt,C.baseInputStyles=hr,C.bodyTextStyles=F,C.columnFiltersToArrayQueryParams=Jw,C.columnFiltersToJsonString=hd,C.columnFiltersToQueryParams=Zw,C.columnFiltersToRecord=fd,C.createBackendParams=qw,C.createBackendParamsWithFilters=Qw,C.createColumnHelper=V1,C.createFieldConfig=My,C.createInputRefs=uu,C.deleteCookie=bb,C.disabledStyles=st,C.errorStyles=kt,C.flushedStyles=qc,C.getActiveFilterCount=Ew,C.getActiveFilterValues=Zu,C.getColumnValueCounts=Pw,C.getCookie=wb,C.getPropsForInputType=Ay,C.getUniqueColumnValues=Hi,C.handleDigitChange=au,C.handleKeyDown=lu,C.handlePaste=cu,C.hasActiveFilters=$w,C.hasPermission=Ci,C.headingBoldStyles=Gr,C.headingRegularStyles=Bs,C.isAllowedInputType=Yc,C.mergeFilters=nb,C.multiSelectFilter=qu,C.normalizeFieldTypes=it,C.normalizeSelectOptions=Ey,C.overlayAnimation=bi,C.parseJsonToFilters=tb,C.parseQueryParamsToFilters=eb,C.searchInArray=Xu,C.setCookie=vb,C.sizeStyles=xn,C.slideAnimation=r1,C.smartAnimation=fu,C.sortRecordToSortingState=Yw,C.sortingStateToJsonString=dd,C.sortingStateToRecord=ud,C.submenuAnimationTopDown=hu,C.toast=J0,C.useColumnFilter=Ju,C.useNotifications=pd,C.useSidebar=Si,C.useTableContext=kn,C.useTableData=Xw,C.useTableFiltering=ad,C.useTableSorting=sd,C.validateCode=jv,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));
|